/* ============================================================
   Lorenz Villalba — Dark Architectural (Theme 04)
   Locked design direction. Source: design-references/anthropic-theme-options.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #0B1117;
  font-family: "Archivo", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: #E5ECF2;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ----- T4 base ----- */
.t4 {
  font-family: "Archivo", "Helvetica Neue", sans-serif;
  color: #E5ECF2;
  background: #0B1117;
  letter-spacing: -0.01em;
  font-feature-settings: "ss01";
}

.t4 .wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@supports (height: 100dvh) {
  .t4 .wrap { min-height: 100dvh; }
}

.t4 .grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(229,236,242,0.04) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  pointer-events: none;
}

/* ----- Nav ----- */
.t4 .nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 24px 48px;
  border-bottom: 1px solid rgba(229,236,242,0.12);
  font-size: 13px;
  position: relative;
  z-index: 2;
}
.t4 .nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: inherit;
}
.t4 .nav .logo img { display: block; height: 34px; width: auto; }

.t4 .nav .links {
  display: flex;
  gap: 28px;
  justify-self: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94A3B4;
}
.t4 .nav .links a { color: #94A3B4; text-decoration: none; transition: color 160ms ease; }
.t4 .nav .links a:hover { color: #E5ECF2; }
.t4 .nav .links a.on { color: #E5ECF2; }

/* PLAY — basketball orange, stays orange even when active or hovered */
.t4 .nav .links a.play-link { color: #E0673A; }
.t4 .nav .links a.play-link:hover { color: #FF8852; }
.t4 .nav .links a.play-link.on { color: #E0673A; }

.t4 .nav .right {
  display: flex;
  gap: 18px;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #94A3B4;
  letter-spacing: 0.04em;
}
.t4 .nav .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5BA98B;
  display: inline-block;
  margin-right: 6px;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ----- Hero ----- */
/* Hero contents (typewriter + lede/stats) vertically centre within the
   space between nav and footstrip. */
.t4 .hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.t4 .type-wrap { padding: 0 48px; position: relative; }

.t4 .type-prompt {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #6B7A8C;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.t4 .type-prompt .pchev { color: #9BC2DC; }
.t4 .type-prompt .pdim  { color: #4D5C70; }

.t4 .type-line {
  font-family: "Archivo", sans-serif;
  /* Cap by viewport height too so the full hero stack (eyebrow + name +
     lede + emphasis + stats) fits within 100dvh on wide-but-short
     displays. Without the vh ceiling the name alone consumed >60vh. */
  font-size: clamp(64px, min(14vw, 21vh), 232px);
  font-weight: 800;
  /* Source design used -0.055em at 168px. At our larger cap the same
     negative em value visually doubles the pull and made the outlined
     L→A pair on VILLALBA cross. Neutral tracking reads cleanly across
     every pair without losing the dense display feel from the weight. */
  letter-spacing: 0;
  line-height: 0.92;
  color: #E5ECF2;
  display: flex;
  flex-direction: column;
  margin: 0;
}
.t4 .type-line .row {
  display: flex;
  align-items: baseline;
  white-space: nowrap;
  min-height: 1em;
}
.t4 .type-line .row .txt { display: inline-block; }
.t4 .type-line .row.r2 .txt {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(229,236,242,0.42);
}
.t4 .type-line .caret {
  display: inline-block;
  width: 0.08em;
  height: 0.78em;
  background: #9BC2DC;
  margin-left: 0.06em;
  align-self: center;
  transform: translateY(0.06em);
  animation: caret-blink 1s steps(1, end) infinite;
  box-shadow: 0 0 12px rgba(155,194,220,0.55);
  visibility: hidden;
}
.t4 .type-line .row.active .caret { visibility: visible; }
@keyframes caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ----- Press-Enter hint (fades in after typewriter finishes) ----- */
.t4 .press-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 22px;
  align-self: center;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 600ms ease 250ms, transform 600ms ease 250ms;
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
  text-transform: none;
}
.t4 .type-line.is-done .press-hint {
  opacity: 1;
  transform: translateY(0);
}
.t4 .press-hint__key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(155, 194, 220, 0.45);
  background: rgba(155, 194, 220, 0.08);
  color: #9BC2DC;
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: press-hint-glow 2.4s ease-in-out infinite;
}
.t4 .press-hint__glyph {
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0;
}
.t4 .press-hint__text {
  color: #94A3B4;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@keyframes press-hint-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(155, 194, 220, 0);
    border-color: rgba(155, 194, 220, 0.35);
  }
  50% {
    box-shadow: 0 0 12px 1px rgba(155, 194, 220, 0.30);
    border-color: rgba(155, 194, 220, 0.7);
  }
}

/* ----- Hero body (lede + emphasis line) ----- */
.t4 .hero-body {
  padding: 32px 48px 24px;
  border-bottom: 1px solid rgba(229,236,242,0.12);
}
.t4 .hero-body .lede {
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.45;
  font-weight: 400;
  color: #C8D2DC;
  text-wrap: pretty;
  letter-spacing: -0.005em;
  margin: 0;
  max-width: 62ch;
}
.t4 .hero-body .lede-emphasis {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.25;
  font-weight: 600;
  color: #E5ECF2;
  letter-spacing: -0.02em;
  margin: 20px 0 0;
  text-wrap: balance;
  max-width: 28ch;
}

/* ----- Hero stats: Practice (wide) | Years | Role | Availability ----- */
.t4 .hero-stats {
  padding: 20px 48px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr 1.4fr;
  column-gap: 32px;
}
.t4 .hero-stats .k {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #6B7A8C;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.t4 .hero-stats .v {
  font-size: 24px;
  font-weight: 600;
  color: #E5ECF2;
  letter-spacing: -0.02em;
}
.t4 .hero-stats .v small {
  font-size: 13px;
  color: #9BC2DC;
  font-weight: 400;
  margin-left: 4px;
}
.t4 .hero-stats .v .nb { white-space: nowrap; }
.t4 .hero-stats .v .v-line { display: block; line-height: 1.2; }
.t4 .hero-stats .v .v-line-2 { margin-top: 6px; }

/* ----- Next-section banner (replaces old footstrip) ----- */
.t4 .next-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 48px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94A3B4;
  text-decoration: none;
  background: rgba(229,236,242,0.02);
  border-top: 1px solid rgba(229,236,242,0.08);
  position: relative;
  z-index: 2;
  transition: background 200ms ease, color 200ms ease;
}
.t4 .next-banner:hover {
  background: rgba(229,236,242,0.05);
  color: #E5ECF2;
}
.t4 .next-banner__label { color: #6B7A8C; }
.t4 .next-banner__sep   { color: #4D5C70; }
.t4 .next-banner__target { color: inherit; }
.t4 .next-banner__arrow {
  color: #9BC2DC;
  transition: transform 220ms ease;
  display: inline-block;
}
.t4 .next-banner:hover .next-banner__arrow {
  transform: translateY(2px);
}

/* ============================================================
   Document pages (About, Projects, etc.) — natural-flow variant
   The home/hero uses .wrap with flex column + viewport pinning.
   Document pages override that so sections stack normally.
   ============================================================ */
.t4 .wrap--page { min-height: auto; display: block; }

/* ----- Page head (h1 + lede + crumb) ----- */
.t4 .page-head {
  position: relative;
  z-index: 2;
  padding: 64px 48px 40px;
  border-bottom: 1px solid rgba(229,236,242,0.12);
}
.t4 .page-head .crumb {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #6B7A8C;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.t4 .page-head .crumb b { color: #9BC2DC; font-weight: 500; }
.t4 .page-head__title {
  font-size: clamp(64px, 9vw, 128px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0;
  color: #E5ECF2;
}
.t4 .page-head__identity {
  margin: 28px 0 0;
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 400;
  color: #C8D2DC;
  line-height: 1.45;
  letter-spacing: -0.005em;
  max-width: 48ch;
  text-wrap: pretty;
}
.t4 .page-head__identity b { color: #E5ECF2; font-weight: 600; }

/* ----- Section block (12-col grid, mono label left, body right) ----- */
.t4 .section {
  position: relative;
  z-index: 2;
  padding: 56px 48px 64px;
  border-bottom: 1px solid rgba(229,236,242,0.12);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  align-items: start;
}
.t4 .section__label {
  grid-column: 1 / span 3;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: #6B7A8C;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: sticky;
  top: 24px;
}
.t4 .section__label .num {
  display: block;
  color: #4D5C70;
  margin-bottom: 10px;
  font-size: 13px;
}
.t4 .section__label b {
  display: block;
  color: #E5ECF2;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.t4 .section__body {
  grid-column: 5 / span 8;
  font-size: 20px;
  line-height: 1.55;
  color: #C8D2DC;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.t4 .section__body p { margin: 0 0 14px; }
.t4 .section__body p:last-child { margin-bottom: 0; }
.t4 .section__body b { color: #E5ECF2; font-weight: 600; }
.t4 .section__body a {
  color: #9BC2DC;
  text-decoration: none;
  border-bottom: 1px solid rgba(155,194,220,0.4);
}
.t4 .section__intro { margin-bottom: 20px; }

/* ----- List (leading em-dash, tight rhythm) ----- */
.t4 .list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.t4 .list li {
  padding-left: 22px;
  position: relative;
  color: #C8D2DC;
  line-height: 1.5;
  font-size: 20px;
}
.t4 .list li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: #4D5C70;
}
.t4 .list li b { color: #E5ECF2; font-weight: 600; }

/* Proof — grouped lists (Built / Shipped / Scaled) with mono group headings. */
.t4 .proof-groups {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.t4 .proof-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.t4 .proof-group__head {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #9BC2DC;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 500;
}
.t4 .proof-group .list li::before {
  content: "+";
  color: #9BC2DC;
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
}

/* List variant — ice-blue square bullet, bigger type, generous rhythm.
   Used for feature/value lists where each item is its own statement. */
.t4 .list--features { gap: 28px; }
.t4 .list--features li {
  padding-left: 28px;
  font-size: 20px;
  line-height: 1.5;
}
.t4 .list--features li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #9BC2DC;
  top: 0.6em;
  left: 0;
}

/* ----- Numbered principles (P / 01 + bold lead + body) ----- */
.t4 .principles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.t4 .principles li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: baseline;
}
.t4 .principles__n {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #9BC2DC;
  letter-spacing: 0.08em;
}
.t4 .principles__t {
  font-size: 20px;
  color: #C8D2DC;
  line-height: 1.5;
}
.t4 .principles__t b {
  color: #E5ECF2;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

/* ----- CTA block (closing line + buttons) ----- */
.t4 .cta {
  position: relative;
  z-index: 2;
  padding: 64px 48px 80px;
}
.t4 .cta__closing {
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.45;
  font-weight: 400;
  color: #C8D2DC;
  letter-spacing: -0.005em;
  max-width: 52ch;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.t4 .cta__closing b { color: #E5ECF2; font-weight: 600; }
.t4 .cta__row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.t4 .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.t4 .btn--primary {
  background: #E5ECF2;
  color: #0B1117;
}
.t4 .btn--primary:hover { background: #FFFFFF; }
.t4 .btn--secondary {
  color: #94A3B4;
  border: 1px solid rgba(229,236,242,0.18);
  background: transparent;
}
.t4 .btn--secondary:hover {
  color: #E5ECF2;
  border-color: rgba(229,236,242,0.32);
}

/* ============================================================
   PLAY — basketball game UI
   Pixel-art canvas (320x180 logical) scaled up with crisp pixels.
   Sidebar hosts HUD + leaderboard. Overlays sit on top of the frame.
   ============================================================ */
.t4 .game {
  position: relative;
  z-index: 2;
  padding: 56px 48px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  column-gap: 32px;
  align-items: start;
  border-bottom: 1px solid rgba(229,236,242,0.12);
}

.t4 .game__frame {
  position: relative;
  background: #050a10;
  border: 1px solid rgba(229,236,242,0.14);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.t4 .game__frame canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
  cursor: grab;
}
.t4 .game__frame canvas:active { cursor: grabbing; }

.t4 .game__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11,17,23,0.86);
  backdrop-filter: blur(2px);
  z-index: 5;
}
.t4 .game__overlay[hidden] { display: none; }
.t4 .game__overlay-inner {
  max-width: 420px;
  padding: 28px;
  text-align: center;
}
.t4 .game__title {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9BC2DC;
  margin-bottom: 14px;
}
.t4 .game__subtitle {
  font-size: 18px;
  line-height: 1.5;
  color: #C8D2DC;
  margin: 0 0 24px;
}
.t4 .game__subtitle b { color: #E5ECF2; font-weight: 600; }
.t4 .game__final-score {
  color: #9BC2DC;
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  font-size: 22px;
  margin: 0 2px;
}

.t4 .game__name-form {
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.t4 .game__label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #6B7A8C;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}
.t4 .game__name-row {
  display: flex;
  gap: 8px;
}
.t4 .game__name-row input {
  flex: 1;
  background: #0B1117;
  border: 1px solid rgba(229,236,242,0.18);
  color: #E5ECF2;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 12px 14px;
  text-transform: uppercase;
}
.t4 .game__name-row input:focus {
  outline: none;
  border-color: #9BC2DC;
}
.t4 .game__name-row .btn { padding: 12px 18px; }

/* ----- Sidebar (HUD + leaderboard) ----- */
.t4 .game__sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 24px;
}
.t4 .game__hud {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(229,236,242,0.12);
  background: rgba(229,236,242,0.02);
}
.t4 .game__hud-stat .k {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #6B7A8C;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.t4 .game__hud-stat .v {
  font-family: "JetBrains Mono", monospace;
  font-size: 28px;
  font-weight: 500;
  color: #E5ECF2;
  letter-spacing: -0.01em;
}

.t4 .game__board {
  padding: 18px;
  border: 1px solid rgba(229,236,242,0.12);
  background: rgba(229,236,242,0.02);
}
.t4 .game__board-head {
  display: flex;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #6B7A8C;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.t4 .game__board-head .k:last-child { color: #E5ECF2; font-weight: 500; }

.t4 .game__board-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100px;
}
.t4 .game__board-list li {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  align-items: baseline;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #C8D2DC;
  letter-spacing: 0.06em;
}
.t4 .game__board-list li .rank { color: #4D5C70; }
.t4 .game__board-list li .alias { color: #E5ECF2; text-transform: uppercase; }
.t4 .game__board-list li .score { color: #9BC2DC; }
.t4 .game__board-list li.is-current .alias { color: #9BC2DC; }
.t4 .game__board-list .empty {
  display: block;
  color: #4D5C70;
  font-style: normal;
  grid-column: 1 / -1;
  text-align: center;
  padding: 14px 0;
}

.t4 .game__board-reset {
  background: transparent;
  border: 1px solid rgba(229,236,242,0.12);
  color: #6B7A8C;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 12px;
  cursor: pointer;
  width: 100%;
  transition: color 180ms ease, border-color 180ms ease;
}
.t4 .game__board-reset:hover {
  color: #E5ECF2;
  border-color: rgba(229,236,242,0.24);
}

/* ============================================================
   Projects page — directory / file-tree layout.
   Two-column grid of folders. Each folder is a mono header + items
   with [ ] / [x] indicators that flip on hover/focus. Filter chips
   dim non-matching items via .is-dim (no layout reflow).
   Hover accent: mint, set via --hl on .t4.t4--projects.
   ============================================================ */
.t4--projects { --hl: #8FD3B4; }

.t4 .page-head--split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  align-items: end;
  padding-top: 56px;
}
.t4 .page-head--split .page-head__title {
  grid-column: 1 / span 7;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.95;
}
.t4 .page-head--split .page-head__identity {
  grid-column: 8 / span 5;
  margin: 0;
  padding-bottom: 8px;
  max-width: none;
  font-size: 17px;
  line-height: 1.5;
}

.t4 .filters {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 48px;
  border-bottom: 1px solid rgba(229,236,242,0.12);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94A3B4;
  flex-wrap: wrap;
}
.t4 .filters .k { color: #4D5C70; margin-right: 8px; }
.t4 .filters .tag {
  padding: 5px 10px;
  border: 1px solid rgba(229,236,242,0.16);
  color: #94A3B4;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}
.t4 .filters .tag:hover { color: #E5ECF2; border-color: rgba(229,236,242,0.32); }
.t4 .filters .tag.on {
  color: #0B1117;
  background: #E5ECF2;
  border-color: #E5ECF2;
}
.t4 .filters .tag:focus-visible {
  outline: 2px solid rgba(155,194,220,0.55);
  outline-offset: 3px;
}
.t4 .filters .sort { margin-left: auto; color: #6B7A8C; }
.t4 .filters .sort b { color: #E5ECF2; font-weight: 500; }

.t4 .dir {
  position: relative;
  z-index: 2;
  padding: 64px 48px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  row-gap: 56px;
  align-items: start;
  font-family: "JetBrains Mono", monospace;
}

.t4 .folder { display: flex; flex-direction: column; gap: 14px; transition: opacity 200ms ease; }
.t4 .folder .fhead {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #E5ECF2;
  margin-bottom: 6px;
}
.t4 .folder .fhead .ficon {
  width: 22px;
  height: 18px;
  flex: none;
  color: #9BC2DC;
}
.t4 .folder .fhead .fcount {
  margin-left: auto;
  font-weight: 400;
  font-size: 11px;
  color: #4D5C70;
  letter-spacing: 0.06em;
}
.t4 .folder.is-empty { opacity: 0.35; }

.t4 .item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  column-gap: 14px;
  padding: 7px 10px 7px 8px;
  margin-left: -10px;
  color: #94A3B4;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 120ms ease, background 120ms ease, opacity 200ms ease;
  border-radius: 2px;
  cursor: pointer;
}
.t4 .item .check {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: #4D5C70;
  letter-spacing: 0;
  flex: none;
  transition: color 120ms ease;
}
.t4 .item .check::before { content: "[ ]"; }
.t4 .item .name { color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t4 .item .meta { font-size: 10px; color: #4D5C70; letter-spacing: 0.08em; font-weight: 400; }
.t4 .item:hover,
.t4 .item:focus-visible {
  color: #0B1117;
  background: var(--hl, #8FD3B4);
  outline: none;
}
.t4 .item:hover .check,
.t4 .item:focus-visible .check { color: #0B1117; }
.t4 .item:hover .meta,
.t4 .item:focus-visible .meta { color: rgba(11,17,23,0.62); }
.t4 .item:hover .check::before,
.t4 .item:focus-visible .check::before { content: "[x]"; }

.t4 .item.is-dim { opacity: 0.18; pointer-events: none; }
.t4 .item.is-draft { cursor: default; }
.t4 .item.is-draft:hover,
.t4 .item.is-draft:focus-visible { color: #94A3B4; background: transparent; }
.t4 .item.is-draft:hover .check,
.t4 .item.is-draft:focus-visible .check { color: #4D5C70; }
.t4 .item.is-draft:hover .meta,
.t4 .item.is-draft:focus-visible .meta { color: #4D5C70; }
.t4 .item.is-draft:hover .check::before,
.t4 .item.is-draft:focus-visible .check::before { content: "[ ]"; }

.t4 .legend {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 48px;
  border-top: 1px solid rgba(229,236,242,0.10);
  border-bottom: 1px solid rgba(229,236,242,0.10);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #6B7A8C;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.t4 .legend .lk { color: #4D5C70; margin-right: 6px; }
.t4 .legend .swatch { display: inline-flex; align-items: center; gap: 8px; }
.t4 .legend .swatch .sq { width: 11px; height: 11px; background: var(--hl, #8FD3B4); display: inline-block; }
.t4 .legend .updated { margin-left: auto; }

/* ============================================================
   Contact page — focal email + copy affordance + secondary link.
   Reuses .page-head, .section, .next-banner; only adds local bits.
   Page is short, so we keep the .wrap flex column (min-height: 100dvh)
   and let .section grow to fill, pinning the next-banner to the bottom.
   ============================================================ */
.t4 .wrap--contact .section { flex: 1; }

.t4 .contact-focal {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-bottom: 32px;
}
.t4 .contact-email {
  font-family: "Archivo", sans-serif;
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #E5ECF2;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}
.t4 .contact-email:hover { color: #9BC2DC; border-bottom-color: rgba(155,194,220,0.6); }
.t4 .contact-email:focus-visible {
  color: #9BC2DC;
  border-bottom-color: rgba(155,194,220,0.6);
  outline: 2px solid rgba(155,194,220,0.55);
  outline-offset: 4px;
}

.t4 .contact-copy-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
}
.t4 .contact-copy {
  background: transparent;
  border: 1px solid rgba(229,236,242,0.18);
  color: #94A3B4;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}
.t4 .contact-copy:hover { color: #E5ECF2; border-color: rgba(229,236,242,0.32); }
.t4 .contact-copy:focus-visible {
  color: #E5ECF2;
  border-color: rgba(155,194,220,0.6);
  outline: 2px solid rgba(155,194,220,0.55);
  outline-offset: 3px;
}
.t4 .contact-copy-status {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9BC2DC;
  min-width: 60px;
}

.t4 .contact-secondary {
  margin: 0 0 32px;
  font-size: 16px;
  color: #94A3B4;
  letter-spacing: -0.005em;
}
.t4 .contact-secondary a {
  color: #C8D2DC;
  text-decoration: none;
  border-bottom: 1px solid rgba(155,194,220,0.4);
  transition: color 180ms ease, border-color 180ms ease;
  margin-left: 4px;
}
.t4 .contact-secondary a:hover { color: #9BC2DC; border-bottom-color: rgba(155,194,220,0.8); }
.t4 .contact-secondary a:focus-visible {
  color: #9BC2DC;
  border-bottom-color: rgba(155,194,220,0.8);
  outline: 2px solid rgba(155,194,220,0.55);
  outline-offset: 3px;
}

.t4 .contact-note {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.55;
  color: #C8D2DC;
  max-width: 56ch;
  text-wrap: pretty;
  letter-spacing: -0.005em;
}
.t4 .contact-footnote {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #6B7A8C;
  text-transform: uppercase;
}

/* ============================================================
   Tech page — workflow pipeline + filterable tool catalogue.
   Reuses .page-head shell + .section + .next-banner. Adds:
   - .page-head--tech (12-col grid with crumb above, h1 left + blurb right)
   - .section--stacked (label above body, body takes full width)
   - .pipeline (6 stage columns of mono-tile chips)
   - .mono-tile (small monogram square or logo tile)
   - .cat-row + .cards + .card (grid of 4 tool cards per category row)
   - .badge--daily / --proficient / --familiar (proficiency markers)
   - .prof / .tier (3-up proficiency definitions block)
   - density + connector variants via data-attrs on .t4--tech
   ============================================================ */

.t4 .page-head--tech {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  align-items: end;
  padding-top: 56px;
}
.t4 .page-head--tech .crumb {
  grid-column: 1 / span 12;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6B7A8C;
}
.t4 .page-head--tech .crumb .meta { color: #4D5C70; }
.t4 .page-head--tech .page-head__title {
  grid-column: 1 / span 7;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.95;
}
.t4 .page-head--tech .page-head__identity {
  grid-column: 8 / span 5;
  margin: 0;
  padding-bottom: 8px;
  max-width: none;
  font-size: 17px;
  line-height: 1.5;
}

/* Stacked section: num on the left, title and description stacked on the right. */
.t4 .section.section--stacked {
  display: block;
  padding-bottom: 56px;
}
.t4 .section.section--stacked .section__label {
  position: static;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: baseline;
  margin-bottom: 48px;
}
.t4 .section.section--stacked .section__label .num {
  grid-column: 1;
  margin-bottom: 0;
  display: inline;
}
.t4 .section.section--stacked .section__label b {
  grid-column: 2;
  display: inline;
}
.t4 .section.section--stacked .section__label .sub {
  grid-column: 2;
  display: block;
  max-width: 720px;
  margin: 14px 0 0;
  color: #6B7A8C;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 12px;
  line-height: 1.6;
}
.t4 .section .section__label .sub {
  display: block;
  margin-top: 14px;
  color: #6B7A8C;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 12px;
  line-height: 1.6;
  max-width: 30ch;
}
.t4 .section.section--stacked .section__body { grid-column: 1 / -1; }

/* Filter chip count suffix (".ct" inside .filters .tag) */
.t4 .filters .tag .ct { color: #4D5C70; margin-left: 6px; font-weight: 400; }
.t4 .filters .tag.on .ct { color: rgba(11,17,23,0.55); }

/* Tech-only: filter bar reads as a distinct solid-black band. */
.t4--tech .filters { background: #000000; }

/* Tech-only: cover the 12-col grid overlay inside the workflow section. */
.t4--tech .section.section--stacked { background: #0B1117; }

/* Tech-only: pin next-banner to viewport bottom when content is short.
   Flex column layout lets the workflow section absorb any extra space. */
.t4--tech .wrap--page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
.t4--tech .wrap--page .section--workflow { flex: 1; }
.t4--tech .wrap--page .section--strat {
  flex: 1;
  display: block;
  padding: 32px 0 40px;
  border-bottom: none;
}

/* Stratified-by-proficiency view: three bands (Daily Drivers / Proficient / Familiar). */
.t4 .strat {
  display: flex;
  flex-direction: column;
}
.t4 .band {
  padding: 32px 0;
  border-top: 1px solid rgba(229,236,242,0.12);
}
.t4 .band:first-child { border-top: none; padding-top: 8px; }
.t4 .band .bhead {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 24px;
  align-items: end;
  padding: 0 48px 24px;
}
.t4 .band .bhead .meta {
  display: flex;
  flex-direction: row;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #6B7A8C;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.t4 .band .bhead .meta .num { color: #4D5C70; }
.t4 .band .bhead .btext h2 {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1;
  color: #E5ECF2;
  margin: 0 0 14px;
}
.t4 .band .bhead .what {
  font-family: 'Archivo', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #C8D2DC;
  margin: 0;
  max-width: 680px;
}
.t4 .band .bhead .ct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 500;
  color: #E5ECF2;
  text-align: right;
  letter-spacing: 0.02em;
}
.t4 .band .stack {
  padding: 0 48px;
}
.t4 .band--card .stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.t4 .band--chip .stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Stratified card (Daily Driver / Proficient). */
.t4 .scard {
  border: 1px solid rgba(229,236,242,0.12);
  background: rgba(229,236,242,0.02);
  padding: 16px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 120ms ease, border-color 120ms ease;
}
.t4 .scard:hover,
.t4 .scard:focus-visible {
  background: #8FD3B4;
  border-color: #8FD3B4;
  outline: none;
}
.t4 .scard:hover .nm,
.t4 .scard:focus-visible .nm,
.t4 .scard:hover .desc,
.t4 .scard:focus-visible .desc { color: #0B1117; }
.t4 .scard:hover .cat,
.t4 .scard:focus-visible .cat { color: rgba(11,17,23,0.68); }
.t4 .scard .stop {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
}
.t4 .scard .stop .mono-tile {
  width: 36px;
  height: 36px;
  font-size: 11px;
  border-radius: 3px;
}
.t4 .scard .stop .nm {
  font-family: 'Archivo', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #E5ECF2;
  line-height: 1.15;
}
.t4 .scard .stop .cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6B7A8C;
  margin-top: 4px;
}
.t4 .scard .desc {
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #94A3B4;
  margin: 0;
}

/* Stratified chip (Familiar — compact). */
.t4 .schip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid rgba(229,236,242,0.12);
  background: rgba(229,236,242,0.02);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}
.t4 .schip:hover,
.t4 .schip:focus-visible {
  background: #8FD3B4;
  border-color: #8FD3B4;
  outline: none;
}
.t4 .schip:hover .nm,
.t4 .schip:focus-visible .nm { color: #0B1117; }
.t4 .schip:hover .cat,
.t4 .schip:focus-visible .cat { color: rgba(11,17,23,0.68); }
.t4 .schip .mono-tile {
  width: 26px;
  height: 26px;
  font-size: 10px;
  border-radius: 2px;
}
.t4 .schip .nm {
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #E5ECF2;
}
.t4 .schip .cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6B7A8C;
}

.t4 .scard.is-dim,
.t4 .schip.is-dim { opacity: 0.22; }

/* Category accent colour applied to the .cat label inside scards/schips. */
.t4 .scard[data-cat="AI & Automation"]        .cat,
.t4 .schip[data-cat="AI & Automation"]        .cat { color: #D9A777; }
.t4 .scard[data-cat="Development"]            .cat,
.t4 .schip[data-cat="Development"]            .cat { color: #9BC2DC; }
.t4 .scard[data-cat="Design"]                 .cat,
.t4 .schip[data-cat="Design"]                 .cat { color: #E8C76B; }
.t4 .scard[data-cat="Project Management"]     .cat,
.t4 .schip[data-cat="Project Management"]     .cat { color: #E08FB3; }
.t4 .scard[data-cat="Productivity & Docs"]    .cat,
.t4 .schip[data-cat="Productivity & Docs"]    .cat { color: #7CC8E0; }
.t4 .scard[data-cat="Communication"]          .cat,
.t4 .schip[data-cat="Communication"]          .cat { color: #B5A5E8; }
.t4 .scard[data-cat="E-commerce & Marketing"] .cat,
.t4 .schip[data-cat="E-commerce & Marketing"] .cat { color: #8DC78F; }
.t4 .scard[data-cat="CRM"]                    .cat,
.t4 .schip[data-cat="CRM"]                    .cat { color: #E89A6B; }
.t4 .scard[data-cat="Browser & Utilities"]    .cat,
.t4 .schip[data-cat="Browser & Utilities"]    .cat { color: #E8A5B3; }

@media (max-width: 1180px) {
  .t4 .band--card .stack { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .t4 .band--card .stack { grid-template-columns: repeat(2, 1fr); }
}

/* Workflow pipeline — six columns of mono-chip stacks. */
.t4 .pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 0;
  padding-top: 8px;
}
.t4 .pipeline .stage {
  position: relative;
  padding: 0;
  min-width: 0;
  text-align: center;
}
.t4 .pipeline .stage + .stage {
  padding-left: 0;
  border-left: 1px dashed rgba(229,236,242,0.10);
}
.t4 .pipeline .stage .snum {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.10em;
  color: #4D5C70;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.t4 .pipeline .stage .sname {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #E5ECF2;
  line-height: 1.2;
  margin-bottom: 6px;
  text-wrap: balance;
}
.t4 .pipeline .stage .scount {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #6B7A8C;
  margin-bottom: 22px;
  text-transform: uppercase;
}
.t4 .pipeline .chip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 10px;
  padding: 8px 0;
  cursor: pointer;
}
.t4 .pipeline .chip .mono-tile { justify-self: end; }
.t4 .pipeline .chip .nm { justify-self: start; }
.t4 .pipeline .chip:focus-visible {
  outline: 1px solid rgba(155,194,220,0.55);
  outline-offset: 4px;
}
.t4 .pipeline .chip .nm {
  font-size: 15px;
  font-weight: 500;
  color: #E5ECF2;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t4 .pipeline .chip:hover { background: rgba(155,194,220,0.06); }
.t4 .pipeline .chip.is-dim { opacity: 0.22; }

/* Stage flow indicator on the dashed divider between stages. */
.t4 .pipeline .stage + .stage::before {
  content: "→";
  position: absolute;
  left: -7px;
  top: 18px;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0B1117;
  color: #9BC2DC;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

/* Mono tile — used on pipeline chips (small) and tool cards (large). */
.t4 .mono-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  color: #0B1117;
  background: var(--tint, #E5ECF2);
  border-radius: 2px;
  letter-spacing: 0;
  overflow: hidden;
}
.t4 .mono-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t4 .mono-tile.has-logo {
  background: #FFFFFF;
  padding: 3px;
}
.t4 .mono-tile.has-logo img { object-fit: contain; }
.t4 .modal__tile .mono-tile.has-logo { padding: 6px; }
.t4 .pipeline .chip .mono-tile { width: 28px; height: 28px; font-size: 10px; }
.t4 .card .mono-tile { width: 38px; height: 38px; flex: none; font-size: 12px; border-radius: 3px; }

/* Category row — left-aligned label only (no divider rule). */
.t4 .grid-wrap { position: relative; z-index: 2; padding: 40px 48px 56px; }
.t4 .cat-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 44px 0 18px;
}
.t4 .cat-row:first-child { margin-top: 0; }
.t4 .cat-row .cat-label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: #6B7A8C;
}
.t4 .cat-row .cat-label .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.10em;
  color: #4D5C70;
}
.t4 .cat-row .cat-label b {
  font-family: "Archivo", sans-serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #E5ECF2;
  text-transform: none;
}
.t4 .cat-row .cat-label > span:last-child {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #6B7A8C;
}
.t4 .cat-row .cat-rule { display: none; }
.t4 .cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 8px;
}
.t4 .card {
  position: relative;
  padding: 14px 18px 16px;
  background: linear-gradient(rgba(229,236,242,0.025), rgba(229,236,242,0.025)), #0B1117;
  border: 1px solid rgba(229,236,242,0.10);
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.t4 .card:hover {
  background: linear-gradient(rgba(155,196,220,0.08), rgba(155,196,220,0.08)), #0B1117;
  border-color: rgba(229,236,242,0.22);
  transform: translateY(-2px);
}
.t4 .card .badge-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 18px;
  margin-bottom: 8px;
}
.t4 .card .top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.t4 .card .name {
  font-size: 16px;
  font-weight: 600;
  color: #E5ECF2;
  letter-spacing: -0.01em;
  line-height: 1.15;
  flex: 1;
  min-width: 0;
}
.t4 .card .desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: #94A3B4;
  text-wrap: pretty;
  letter-spacing: -0.005em;
  margin: 0;
}

/* Proficiency badge — three treatments, inline at top of each card. */
.t4 .badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 2px;
  line-height: 1.4;
  white-space: nowrap;
}
.t4 .badge--daily { background: #9BC2DC; color: #0B1117; font-weight: 600; }
.t4 .badge--proficient {
  background: transparent;
  color: #9BC2DC;
  border: 1px solid rgba(155,194,220,0.55);
  font-weight: 500;
}
.t4 .badge--familiar {
  background: transparent;
  color: #4D5C70;
  border: none;
  padding: 3px 0;
  font-weight: 500;
}
.t4 .badge--familiar::before { content: "[ "; }
.t4 .badge--familiar::after { content: " ]"; }

/* Filter dimming — keep layout, fade non-matching items. */
.t4 .card.is-dim { opacity: 0.15; pointer-events: none; }
.t4 .cat-row.is-empty,
.t4 .cards.is-empty { display: none; }

/* Density tweak (data-density on .t4--tech). */
.t4[data-density="dense"]  .card { padding: 10px 14px 12px; }
.t4[data-density="dense"]  .card .mono-tile { width: 32px; height: 32px; font-size: 11px; }
.t4[data-density="dense"]  .card .name { font-size: 14px; }
.t4[data-density="dense"]  .card .desc { font-size: 11.5px; }
.t4[data-density="dense"]  .card .top { margin-bottom: 10px; }
.t4[data-density="dense"]  .card .badge-row { margin-bottom: 6px; }
.t4[data-density="cozy"]   .card { padding: 16px 20px 20px; }
.t4[data-density="cozy"]   .card .mono-tile { width: 42px; height: 42px; font-size: 13px; }

/* Connector style tweak (data-conn on .t4--tech). */
.t4[data-conn="solid"] .pipeline .stage + .stage { border-left: 1px solid rgba(229,236,242,0.12); }
.t4[data-conn="none"]  .pipeline .stage + .stage { border-left: none; }
.t4[data-conn="none"]  .pipeline .stage + .stage::before { display: none; }

/* Proficiency definitions block — three tiers side by side. */
.t4 .prof { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 18px; }
.t4 .prof .tier {
  padding: 22px 20px 20px;
  border: 1px solid rgba(229,236,242,0.10);
  background: rgba(229,236,242,0.02);
}
.t4 .prof .tier .ttop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.t4 .prof .tier h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #E5ECF2;
  margin: 0;
}
.t4 .prof .tier p {
  font-size: 13.5px;
  line-height: 1.5;
  color: #94A3B4;
  margin: 0;
  text-wrap: pretty;
}
.t4 .prof .tier .ex {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #6B7A8C;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px dashed rgba(229,236,242,0.10);
}
.t4 .prof .tier .ex b { color: #9BC2DC; font-weight: 500; }

/* ============================================================
   Tool detail modal — opened from pipeline chips.
   T4 dark architectural shell: black panel, hairline borders,
   mono labels above Archivo body text.
   ============================================================ */
.t4 .modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.t4 .modal[hidden] { display: none; }
.t4 .modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.t4 .modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  background: #0E141B;
  border: 1px solid rgba(229,236,242,0.16);
  padding: 32px 34px 30px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  animation: t4ModalIn 200ms ease;
}
@keyframes t4ModalIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.t4 .modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: #6B7A8C;
  font-family: "JetBrains Mono", monospace;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
  transition: color 150ms ease;
}
.t4 .modal__close:hover { color: #E5ECF2; }
.t4 .modal__close:focus-visible {
  color: #E5ECF2;
  outline: 1px solid rgba(155,194,220,0.55);
  outline-offset: 2px;
}
.t4 .modal__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(229,236,242,0.10);
}
.t4 .modal__tile { flex: none; }
.t4 .modal__tile .mono-tile {
  width: 56px;
  height: 56px;
  font-size: 18px;
  border-radius: 4px;
}
.t4 .modal__head-text { min-width: 0; flex: 1; }
.t4 .modal__title {
  font-family: "Archivo", sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #E5ECF2;
  margin: 0 0 8px;
  line-height: 1.15;
}
.t4 .modal__meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.t4 .modal__meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6B7A8C;
}
.t4 .modal__section { margin-bottom: 22px; }
.t4 .modal__section:last-child { margin-bottom: 0; }
.t4 .modal__section[hidden] { display: none; }
.t4 .modal__section-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #4D5C70;
  margin: 0 0 10px;
  font-weight: 500;
}
.t4 .modal__section-title [data-modal-tier] { color: #9BC2DC; }
.t4 .modal__desc,
.t4 .modal__tier-def {
  font-size: 15px;
  line-height: 1.55;
  color: #C8D2DC;
  margin: 0;
  text-wrap: pretty;
}
.t4 .modal__stages {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #C8D2DC;
  margin: 0;
}

/* ----- Responsive ----- */
@media (max-width: 880px) {
  .t4 .nav { padding: 18px 24px; grid-template-columns: auto auto; }
  .t4 .nav .links { display: none; }
  .t4 .hero { padding-top: 32px; }
  .t4 .type-wrap { padding: 0 24px; }
  .t4 .hero-body { padding: 24px 24px 20px; }
  .t4 .hero-body .lede { font-size: 19px; }
  .t4 .hero-body .lede-emphasis { font-size: 22px; margin-top: 20px; }
  .t4 .hero-stats { padding: 20px 24px 24px; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
  .t4 .next-banner { padding: 16px 24px; font-size: 10px; gap: 10px; }
  .t4 .press-hint { margin-left: 14px; gap: 8px; font-size: 11px; }
  .t4 .press-hint__key, .t4 .press-hint__text { font-size: 10px; }

  /* Document pages */
  .t4 .page-head { padding: 40px 24px 28px; }
  .t4 .section {
    padding: 36px 24px 44px;
    grid-template-columns: 1fr;
    row-gap: 20px;
  }
  .t4 .section__label {
    grid-column: 1;
    position: static;
    top: auto;
  }
  .t4 .section__body { grid-column: 1; font-size: 18px; }
  .t4 .list li { font-size: 18px; }
  .t4 .principles li { grid-template-columns: 44px 1fr; gap: 12px; }
  .t4 .principles__t { font-size: 18px; }
  .t4 .cta { padding: 40px 24px 56px; }

  /* Play page */
  .t4 .game {
    padding: 32px 24px 48px;
    grid-template-columns: 1fr;
    row-gap: 24px;
  }
  .t4 .game__sidebar { position: static; }
  .t4 .game__hud-stat .v { font-size: 24px; }

  /* Contact page */
  .t4 .contact-focal { gap: 14px 18px; margin-bottom: 24px; }
  .t4 .contact-email { font-size: clamp(24px, 7vw, 34px); }
  .t4 .contact-note { font-size: 16px; }
  .t4 .contact-secondary { font-size: 15px; margin-bottom: 24px; }

  /* Projects page */
  .t4 .page-head--split {
    grid-template-columns: 1fr;
    row-gap: 20px;
    padding: 40px 24px 28px;
  }
  .t4 .page-head--split .page-head__title { grid-column: 1; font-size: clamp(48px, 11vw, 80px); }
  .t4 .page-head--split .page-head__identity { grid-column: 1; padding-bottom: 0; font-size: 16px; }
  .t4 .filters { padding: 14px 24px; gap: 6px; }
  .t4 .filters .sort { margin-left: 0; margin-top: 6px; width: 100%; }
  .t4 .dir {
    padding: 40px 24px 32px;
    grid-template-columns: 1fr;
    row-gap: 40px;
    column-gap: 0;
  }
  .t4 .item { font-size: 13px; }
  .t4 .item .name { white-space: normal; }
  .t4 .legend { padding: 14px 24px; gap: 14px 20px; }
  .t4 .legend .updated { margin-left: 0; width: 100%; }

  /* Tech page */
  .t4 .page-head--tech {
    grid-template-columns: 1fr;
    row-gap: 18px;
    padding: 40px 24px 28px;
  }
  .t4 .page-head--tech .crumb { grid-column: 1; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 8px; }
  .t4 .page-head--tech .page-head__title { grid-column: 1; font-size: clamp(48px, 11vw, 80px); }
  .t4 .page-head--tech .page-head__identity { grid-column: 1; padding-bottom: 0; font-size: 16px; }
  .t4 .section.section--stacked { padding: 32px 24px 40px; }
  .t4 .section.section--stacked .section__label {
    flex-wrap: wrap;
    gap: 8px 14px;
  }
  .t4 .pipeline {
    grid-template-columns: 1fr;
    row-gap: 28px;
    padding-top: 0;
  }
  .t4 .pipeline .stage,
  .t4 .pipeline .stage + .stage {
    padding: 16px 0 0;
    border-left: none;
    border-top: 1px dashed rgba(229,236,242,0.10);
  }
  .t4 .pipeline .stage:first-child { border-top: none; padding-top: 0; }
  .t4 .pipeline .stage + .stage::before {
    content: "↓";
    top: -8px;
    left: 0;
    width: auto;
    height: 14px;
    padding: 0 6px;
  }
  .t4 .grid-wrap { padding: 24px 24px 40px; }
  .t4 .cat-row { grid-template-columns: 1fr; row-gap: 8px; margin: 24px 0 12px; }
  .t4 .cat-row .cat-label { grid-column: 1; }
  .t4 .cat-row .cat-rule { grid-column: 1; }
  .t4 .cards { grid-template-columns: 1fr; gap: 10px; }
  .t4 .prof { grid-template-columns: 1fr; row-gap: 12px; }

  /* Stratified bands — collapse the head to single column, stack to 1-col. */
  .t4--tech .wrap--page .section--strat { padding: 16px 0 32px; }
  .t4 .band { padding: 24px 0; }
  .t4 .band .bhead {
    grid-template-columns: 1fr;
    row-gap: 10px;
    padding: 0 24px 18px;
  }
  .t4 .band .bhead .ct { text-align: left; font-size: 22px; }
  .t4 .band .stack { padding: 0 24px; }
  .t4 .band--card .stack { grid-template-columns: 1fr; gap: 10px; }

  /* Tool detail modal */
  .t4 .modal { padding: 16px; }
  .t4 .modal__panel { padding: 28px 22px 24px; }
  .t4 .modal__head { gap: 14px; margin-bottom: 22px; padding-bottom: 18px; }
  .t4 .modal__tile .mono-tile { width: 48px; height: 48px; font-size: 16px; }
  .t4 .modal__title { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .t4 .nav .dot { animation: none; opacity: 1; }
  .t4 .type-line .caret { animation: none; opacity: 1; }
  .t4 .press-hint { transition: none; transform: none; }
  .t4 .press-hint__key { animation: none; }
}

/* ============================================================
   Case study page — Option D (modular bento + vertical timeline).
   Scoped to `.t4--case`. Each card lives on a 12-col canvas grid.
   ============================================================ */
.t4--case .wrap--page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.t4--case .case-crumb-bar {
  position: relative; z-index: 2;
  padding: 22px 48px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #6B7A8C;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(229,236,242,0.10);
}
.t4--case .case-crumb-bar a { color: inherit; text-decoration: none; }
.t4--case .case-crumb-bar a:hover { color: #E5ECF2; }
.t4--case .case-crumb-bar b { color: #9BC2DC; font-weight: 500; }

.t4--case .case-canvas {
  position: relative; z-index: 2;
  padding: 28px 48px 32px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(0, auto);
  gap: 14px;
  flex: 1;
}

/* Shared card chrome */
.t4--case .case-card {
  background: #11181F;
  border: 1px solid rgba(229,236,242,0.10);
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
}
.t4--case .case-card .pin {
  position: absolute; top: 18px; right: 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; color: #4D5C70; letter-spacing: 0.08em; text-transform: uppercase;
}
.t4--case .ttl {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; color: #9BC2DC; letter-spacing: 0.1em; text-transform: uppercase;
  margin: 0 0 14px;
}
.t4--case .case-card .body {
  font-size: 15px; line-height: 1.55; color: #C8D2DC;
  text-wrap: pretty;
}
.t4--case .case-card .body b { color: #E5ECF2; font-weight: 600; }
.t4--case .case-card .body em {
  color: #9BC2DC;
  font-style: normal;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.92em;
}
.t4--case .case-card .body > p { margin: 0 0 14px; }
.t4--case .case-card .body > p:last-child { margin-bottom: 0; }

/* Hero card — spans full width */
.t4--case .case-hero {
  grid-column: 1 / span 12;
  background: #0B1117;
  border: 1px solid rgba(229,236,242,0.16);
  padding: 44px 44px 36px;
  min-height: 380px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
}
.t4--case .case-hero .left {
  display: flex; flex-direction: column; justify-content: space-between;
  height: 100%; gap: 24px;
}
.t4--case .case-hero .eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: #9BC2DC; letter-spacing: 0.12em; text-transform: uppercase;
  margin: 0 0 16px;
}
.t4--case .case-hero h1 {
  font-size: clamp(48px, 6.4vw, 88px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0; color: #E5ECF2;
  text-wrap: balance;
}
.t4--case .case-hero .one-line {
  font-size: 18px; line-height: 1.5; color: #C8D2DC; margin: 0;
  max-width: 560px;
  text-wrap: pretty;
}
.t4--case .case-hero .one-line b { color: #E5ECF2; font-weight: 600; }
.t4--case .case-hero .meta-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  padding-top: 18px; border-top: 1px solid rgba(229,236,242,0.12);
  margin-top: 16px;
}
.t4--case .case-hero .meta-row .k {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; color: #6B7A8C; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 6px;
}
.t4--case .case-hero .meta-row .v {
  font-size: 13px; color: #E5ECF2; font-weight: 500;
}
.t4--case .case-hero .visual {
  height: 280px;
  align-self: stretch;
}

/* Striped placeholder visual */
.t4--case .case-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(229,236,242,0.05) 0 8px, rgba(229,236,242,0) 8px 16px),
    #0F1620;
  border: 1px solid rgba(229,236,242,0.12);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.t4--case .case-placeholder .tag {
  position: absolute; top: 14px; left: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; color: #6B7A8C; letter-spacing: 0.1em; text-transform: uppercase;
}
.t4--case .case-placeholder .corner {
  position: absolute; bottom: 14px; right: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; color: #6B7A8C; letter-spacing: 0.1em; text-transform: uppercase;
}
.t4--case .case-placeholder .blurb {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: #94A3B4; letter-spacing: 0.08em;
  text-transform: uppercase; text-align: center; padding: 0 24px; line-height: 1.6;
}

/* Headline metrics — 4 small cards */
.t4--case .case-metric {
  grid-column: span 3;
  background: #11181F;
  padding: 22px;
  min-height: 140px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  border: 1px solid rgba(229,236,242,0.10);
}
.t4--case .case-metric .k {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; color: #6B7A8C; letter-spacing: 0.08em; text-transform: uppercase;
}
.t4--case .case-metric .v {
  font-size: 44px; font-weight: 600; color: #E5ECF2;
  letter-spacing: -0.035em; line-height: 1;
}
.t4--case .case-metric .v small {
  font-size: 14px; color: #9BC2DC; font-weight: 400; margin-left: 4px; letter-spacing: 0;
}
.t4--case .case-metric .note {
  font-size: 12px; color: #94A3B4;
  font-family: "JetBrains Mono", monospace; letter-spacing: 0.04em;
}

/* Context (7) + Role (5) split */
.t4--case .case-ctx  { grid-column: span 7; min-height: 240px; }
.t4--case .case-role { grid-column: span 5; min-height: 240px; }
.t4--case .case-role ol {
  list-style: none; padding: 0; margin: 8px 0 0;
  display: flex; flex-direction: column; gap: 14px;
}
.t4--case .case-role ol li {
  display: grid; grid-template-columns: 40px 1fr; gap: 10px;
  align-items: baseline; font-size: 14px; line-height: 1.5; color: #C8D2DC;
}
.t4--case .case-role ol li .n {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; color: #6B7A8C; letter-spacing: 0.08em;
}
.t4--case .case-role ol li b { color: #E5ECF2; font-weight: 600; }

/* Vertical timeline card — spans full width */
.t4--case .case-timeline-card {
  grid-column: 1 / span 12;
  background: #11181F;
  border: 1px solid rgba(229,236,242,0.10);
  padding: 28px 32px 32px;
}
.t4--case .case-timeline {
  display: grid; grid-template-columns: 140px 1fr; gap: 0;
}
.t4--case .case-timeline .row { display: contents; }
.t4--case .case-timeline .row .when {
  padding: 18px 18px 18px 0;
  border-top: 1px solid rgba(229,236,242,0.10);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: #9BC2DC; letter-spacing: 0.06em;
  text-transform: uppercase; line-height: 1.5;
}
.t4--case .case-timeline .row .what {
  padding: 18px 0 18px 28px;
  border-top: 1px solid rgba(229,236,242,0.10);
  border-left: 1px solid rgba(229,236,242,0.16);
  font-size: 15px; line-height: 1.55; color: #C8D2DC;
  position: relative;
}
.t4--case .case-timeline .row .what::before {
  content: "";
  position: absolute; left: -5px; top: 24px;
  width: 9px; height: 9px;
  background: #E5ECF2;
  border: 2px solid #11181F;
  border-radius: 50%;
}
.t4--case .case-timeline .row .what b {
  color: #E5ECF2; font-weight: 600;
  display: block; margin-bottom: 4px; font-size: 16px;
}
.t4--case .case-timeline .row:first-child .when,
.t4--case .case-timeline .row:first-child .what {
  border-top: none; padding-top: 4px;
}
.t4--case .case-timeline .row:first-child .what::before { top: 10px; }
.t4--case .case-timeline .row:last-child .when,
.t4--case .case-timeline .row:last-child .what {
  padding-bottom: 0;
}

/* Tools (7) + Outcome (5) split */
.t4--case .case-tools   { grid-column: span 7; min-height: 200px; }
.t4--case .case-tools .chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}
.t4--case .case-tools .chips span {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: #94A3B4; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid rgba(229,236,242,0.16);
}
.t4--case .case-tools .body { margin-bottom: 14px; }

.t4--case .case-outcome {
  grid-column: span 5;
  background: #0B1117;
  border: 1px solid rgba(229,236,242,0.24);
  padding: 28px;
  min-height: 200px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  position: relative;
}
.t4--case .case-outcome .k {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; color: #9BC2DC; letter-spacing: 0.1em;
  text-transform: uppercase; margin: 0 0 8px;
}
.t4--case .case-outcome .v {
  font-size: clamp(44px, 5.5vw, 64px); font-weight: 700; color: #E5ECF2;
  letter-spacing: -0.04em; line-height: 1;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.t4--case .case-outcome .v small {
  font-size: 18px; color: #9BC2DC; font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}
.t4--case .case-outcome .note {
  font-size: 13px; color: #94A3B4; line-height: 1.45; margin-top: 6px;
}

/* Reflect card — full-width pull-quote */
.t4--case .case-reflect {
  grid-column: 1 / span 12;
  background: #11181F;
  border: 1px solid rgba(229,236,242,0.10);
  padding: 44px;
  min-height: 200px;
}
.t4--case .case-reflect .quote {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; color: #E5ECF2;
  margin: 0 0 18px; text-wrap: balance; max-width: 1100px;
}
.t4--case .case-reflect .src {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: #6B7A8C; letter-spacing: 0.08em; text-transform: uppercase;
}

/* Responsive */
@media (max-width: 1180px) {
  .t4--case .case-canvas { padding: 24px 32px 28px; }
  .t4--case .case-crumb-bar { padding: 18px 32px; }
}
@media (max-width: 980px) {
  .t4--case .case-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 28px;
    align-items: start;
  }
  .t4--case .case-hero .visual { height: 220px; }
  .t4--case .case-metric { grid-column: span 6; }
  .t4--case .case-ctx,
  .t4--case .case-role,
  .t4--case .case-tools,
  .t4--case .case-outcome { grid-column: 1 / span 12; }
}
@media (max-width: 880px) {
  .t4--case .case-crumb-bar {
    padding: 14px 24px;
    flex-wrap: wrap; gap: 6px 14px;
    font-size: 10px;
  }
  .t4--case .case-canvas { padding: 20px 24px 28px; gap: 12px; }
  .t4--case .case-hero { padding: 28px 24px; min-height: 320px; }
  .t4--case .case-hero h1 { font-size: clamp(40px, 11vw, 64px); }
  .t4--case .case-hero .meta-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .t4--case .case-card { padding: 22px; }
  .t4--case .case-metric { grid-column: 1 / span 12; min-height: 0; }
  .t4--case .case-metric .v { font-size: 36px; }
  .t4--case .case-timeline-card { padding: 22px 20px 24px; }
  .t4--case .case-timeline { grid-template-columns: 90px 1fr; }
  .t4--case .case-timeline .row .when {
    padding: 14px 10px 14px 0; font-size: 10px;
  }
  .t4--case .case-timeline .row .what {
    padding: 14px 0 14px 18px; font-size: 14px;
  }
  .t4--case .case-timeline .row .what b { font-size: 15px; }
  .t4--case .case-outcome { padding: 22px; }
  .t4--case .case-reflect { padding: 28px 24px; }
}
