/* About, Contact and 404. Same rules as the rest: ruled lines, plain type, mono only for small labels. */

/* ---------- page hero ---------- */
.page-hero { padding-top: clamp(28px, 5vh, 64px); }
.page-k { font-family: var(--mono); font-size: 12px; line-height: 1.45; color: var(--ink-2); }
.page-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 36px; align-items: end; margin-top: 18px; }
.page-main { grid-column: 1 / 8; }
.page-hero h1 { font-weight: 440; font-size: clamp(38px, 4vw, 60px); line-height: 1.06; letter-spacing: -.024em; text-wrap: balance;
  font-variation-settings: "wght" 440; }
.page-lede { margin-top: 22px; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 38em; text-wrap: pretty; }
.page-hero .actions { margin-top: 28px; }

/* ---------- a typographic name block instead of a photo ---------- */
.idc { grid-column: 9 / 13; border: 1px solid var(--ink); padding: 18px 20px 16px; }
.idc-in { font-weight: 300; font-size: clamp(64px, 6.4vw, 104px); line-height: .9; letter-spacing: -.05em; }
.idc-n { margin-top: 14px; font-size: 16px; font-weight: 540; line-height: 1.3; }
.idc-r { font-family: var(--mono); font-size: 12px; line-height: 1.45; color: var(--ink-2); }
/* four roles to scale, then the dashed next one: the home chart in one line */
.idc-bar { display: flex; height: 8px; margin-top: 16px; gap: 2px; }
.idc-bar i { flex: var(--m) 1 0; background: var(--data); }
.idc-bar i:nth-child(odd) { background: color-mix(in srgb, var(--data) 70%, var(--paper)); }
.idc-bar b { flex: 14 1 0; border: 1.25px dashed var(--data); }
.idc-ax { display: flex; gap: 2px; margin-top: 6px; font-family: var(--mono); font-size: 11.5px; line-height: 1.45; color: var(--ink-2); }
.idc dl { margin-top: 14px; border-top: 1px solid var(--rule); }
.idc dl div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); column-gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.idc dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.idc dt { font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.idc dd { font-size: 14.5px; line-height: 1.45; }

/* ---------- sections ---------- */
.psec { padding-top: clamp(80px, 9vw, 136px); }
.psec .sec-head { margin-bottom: clamp(28px, 3.4vw, 48px); }

/* focus areas and the four results */
.focus { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--g); row-gap: 28px; }
.focus li { border-top: 1px solid var(--ink); padding-top: 12px; }
.focus h3 { font-size: 18px; font-weight: 520; line-height: 1.3; }
.focus p { margin-top: 8px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.results { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--g); row-gap: 20px; margin-top: clamp(36px, 4vw, 56px); }
.results li { display: grid; gap: 4px; align-content: start; }
.results b { font-family: var(--mono); font-weight: 400; font-size: clamp(30px, 2.8vw, 42px); line-height: 1; color: var(--data-ink); letter-spacing: -.02em; }
.results span { font-size: 15px; line-height: 1.4; }
.results small { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }

/* experience */
.xp { list-style: none; border-top: 1px solid var(--ink); }
.xp > li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 10px; padding: 20px 0 24px; border-bottom: 1px solid var(--rule); }
.xp-d { grid-column: 1 / 3; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; color: var(--ink-2); padding-top: 3px; }
.xp-d span { display: block; }
.xp-h { grid-column: 3 / 7; }
.xp-h h3 { font-size: 20px; font-weight: 520; line-height: 1.3; letter-spacing: -.006em; }
.xp-t { margin-top: 2px; font-size: 15.5px; line-height: 1.45; }
.xp-p { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.xp-cs { margin-top: 10px; font-size: 14px; line-height: 1.4; }
.xp-cs a { display: inline-flex; align-items: center; gap: .3em; min-height: 32px; white-space: nowrap; }
.xp-b { grid-column: 7 / 13; list-style: none; display: grid; gap: 8px; }
.xp-b li { position: relative; padding-inline-start: 18px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.xp-b li::before { content: ""; position: absolute; inset-inline-start: 0; top: .74em; width: 9px; height: 1px; background: var(--ink-2); }

/* how I work */
.how { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--g); row-gap: 8px; }
.how li { border-top: 1px solid var(--rule); padding: 14px 0 18px; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 8px; }
.how .n { font-family: var(--mono); font-size: 12px; line-height: 1.9; color: var(--data-ink); }
.how h3 { font-size: 18px; font-weight: 520; line-height: 1.3; }
.how p { margin-top: 6px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }

/* skills and tools */
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--g); row-gap: 26px; }
.skills div { border-top: 1px solid var(--rule); padding-top: 12px; }
.skills dt { font-family: var(--mono); font-size: 12px; line-height: 1.45; color: var(--ink-2); }
.skills dd { margin-top: 10px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 14px; line-height: 1.3; padding: 5px 10px; border: 1px solid var(--rule-2); white-space: nowrap; }

/* education, setup */
.two { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 36px; }
.two > div { grid-column: span 6; }
.lines { list-style: none; border-top: 1px solid var(--rule); }
.lines li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; line-height: 1.5; }
.lines li b { font-weight: 540; }
.lines small { display: block; font-size: 14px; color: var(--ink-2); }
.k-h { font-size: 15px; font-weight: 540; line-height: 1.3; margin-bottom: 12px; }

/* ---------- contact page ---------- */
.cpage { margin-top: clamp(40px, 5vw, 72px); }
.cpage .contact-in { border-top: 1px solid var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--g); row-gap: 28px; margin-top: clamp(64px, 7vw, 104px); }
.tile { border-top: 1px solid var(--ink); padding-top: 12px; }
.tile h2 { font-size: 18px; font-weight: 520; line-height: 1.3; }
.tile .lines { margin-top: 10px; border-top: 0; }
.tile .lines li:first-child { padding-top: 4px; }
.ol { list-style: none; counter-reset: q; }
.ol li { counter-increment: q; display: grid; grid-template-columns: 26px minmax(0, 1fr); }
.ol li::before { content: counter(q); font-family: var(--mono); font-size: 12px; line-height: 2; color: var(--ink-2); }

/* ---------- 404 ---------- */
.nf { padding-top: clamp(48px, 10vh, 120px); }
.nf .page-main { grid-column: 1 / 10; }
.nf-links { list-style: none; margin-top: 36px; border-top: 1px solid var(--ink); max-width: 640px; }
.nf-links li { border-bottom: 1px solid var(--rule); }
.nf-links a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-size: 17px; text-decoration: none; }
.nf-links a:hover { text-decoration: underline; }
.nf-links span { color: var(--ink-2); font-size: 14.5px; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .page-main { grid-column: 1 / -1; }
  .idc { grid-column: 1 / 8; }
  .focus, .results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xp-d { grid-column: 1 / 4; }
  .xp-h { grid-column: 4 / 13; }
  .xp-b { grid-column: 4 / 13; }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- phone ---------- */
@media (max-width: 720px) {
  .page-hero h1 { font-size: clamp(31px, 8.6vw, 40px); line-height: 1.1; }
  .page-lede { font-size: 16.5px; margin-top: 16px; }
  .idc { grid-column: 1 / -1; }
  .nf .page-main { grid-column: 1 / -1; }
  .focus, .results, .how, .skills, .tiles { grid-template-columns: 1fr; }
  .results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xp > li { display: block; padding: 16px 0 20px; }
  .xp-h { margin-top: 6px; }
  .xp-b { margin-top: 12px; }
  .xp-d span { display: inline; }
  .xp-d span + span::before { content: " · "; }
  .two > div { grid-column: 1 / -1; }
  .how li { grid-template-columns: 32px minmax(0, 1fr); }
}
.cpage .contact-text { gap: 18px; }
.cpage .mail-big { font-size: clamp(26px, 2.8vw, 42px); }

/* ---------- About: a strip of real screens from the case studies, each with its colour on top ---------- */
.strip { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--g); row-gap: 32px; }
.strip a { display: grid; gap: 12px; text-decoration: none; }
.strip-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.strip-img::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent); z-index: 1; }
.strip-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
[data-theme="dark"] .strip-img img { filter: brightness(.92); }
.strip-cap { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.strip-cap b { display: block; font-weight: 540; color: var(--ink); }
.strip a:hover .strip-img { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--rule), 0 18px 36px -26px rgba(0, 0, 0, .45); }
.strip a:hover .strip-cap b { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: var(--accent); }
@media (max-width: 1100px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .strip { row-gap: 28px; } .strip-cap { font-size: 14px; } }
@media (max-width: 480px) { .strip { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .strip-img { transition: none; } .strip a:hover .strip-img { transform: none; } }
