/* skills */
.skill-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 7px 14px; border-radius: 999px; font-size: .875rem; font-weight: 600; cursor: pointer; color: var(--ink-2); min-height: 36px; display: inline-flex; align-items: center; gap: 8px; transition: border-color .2s, background-color .2s, color .2s; }
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); }
/* The fourteen skills: a ruled list, one row per skill. A row opens (one at a time) to what the
   skill does, a real case from its tests, its rule and a link to its SKILL.md. */
.skills { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.skill { border-bottom: 1px solid var(--line); }
.skill.is-hidden { display: none; }
.skill summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto 32px; align-items: center; gap: 2px 16px; min-height: 68px; padding: 12px 8px 12px 6px; border-radius: 8px; }
.skill summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .skill summary:hover { background: color-mix(in srgb, var(--c) 7%, transparent); } }
.skill-n { color: var(--muted); font-size: .75rem; }
.skill-head { display: grid; gap: 2px; min-width: 0; }
.skill-name { font-family: var(--font-mono); font-size: 1rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
.skill-line { font-size: .9375rem; color: var(--ink-2); }
.skill .grp { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--muted); font-size: .6875rem; }
.skill .grp i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.skill-plus { width: 32px; height: 32px; padding: 8px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-2); background: var(--surface); transition: transform .2s var(--ease-out); }
.skill details[open] .skill-plus { transform: rotate(45deg); }
.skill details[open] .skill-line { display: none; } /* the full description follows */
.skill-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px clamp(20px, 3vw, 40px); padding: 4px 8px 26px calc(2rem + 22px); }
.skill-about p { font-size: .9375rem; color: var(--ink-2); margin: 0 0 12px; }
.skill .rule { padding-top: 12px; border-top: 1px dashed var(--line); font-size: .875rem; color: var(--ink); }
.skill .rule .mono { display: block; color: var(--muted); margin-bottom: 4px; font-size: .625rem; }
.skill .desk { font-size: .8125rem; color: var(--muted); margin-bottom: 0; }
.skill .desk b { color: var(--accent-ink); font-weight: 600; }
.skill-eg { align-self: start; position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 18px 20px 8px; }
.skill-eg::before { content: ""; position: absolute; left: 20px; top: 0; width: 36px; height: 4px; border-radius: 0 0 3px 3px; background: var(--c); }
.skill-eg p { margin: 0; }
.skill-eg .eg-k { color: var(--muted); font-size: .625rem; margin-bottom: 4px; }
.skill-eg .eg-in { font-size: .9375rem; color: var(--ink-2); margin-bottom: 14px; }
.skill-eg .eg-out { font-size: .9375rem; color: var(--ink); font-weight: 500; margin-bottom: 12px; }
.skill-eg .eg-src { font-size: .8125rem; color: var(--muted); }
.skill-eg .eg-file { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; font-weight: 600; color: var(--accent-ink); text-underline-offset: 3px; }
.skill-body code { font-family: var(--font-mono); font-size: .8125em; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  /* the set's name gives way to its dot */
  .skill summary { grid-template-columns: 1.6rem minmax(0, 1fr) 8px 32px; gap: 2px 12px; padding-inline: 2px 4px; }
  .skill .grp-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .skill-body { grid-template-columns: minmax(0, 1fr); padding: 0 4px 22px; }
}
@media (prefers-reduced-motion: reduce) { .skill-plus { transition: none; } }
@media print { .skill-plus { display: none; } }

/* career */
.seats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
/* a seat chip: role and firm on one line on narrow screens, two lines in a row of five on wide ones */
.seat { gap: 0 .3em; }
.seat b, .seat small { font: inherit; color: inherit; }
@media (min-width: 861px) {
  .seats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .seat { display: grid; justify-items: start; align-content: center; gap: 1px; text-align: left; border-radius: 12px; padding: 9px 14px; }
  .seat .seat-sep { display: none; }
  .seat small { font-size: .75rem; font-weight: 500; color: var(--muted); }
  .seat[aria-pressed="true"] small { color: var(--btn-ink); }
}
.flow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 0; }
.flow-step { position: relative; padding: 14px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); min-height: 112px; transition: background-color .3s, border-color .3s, opacity .3s, transform .3s var(--ease-out); }
.flow-step .mono { color: var(--muted); display: block; margin-bottom: 6px; font-size: .625rem; }
.flow-step b { display: block; font-size: .875rem; line-height: 1.25; margin-bottom: 4px; }
.flow-step small { display: block; font-size: .75rem; color: var(--muted); line-height: 1.35; }
.flow.has-seat .flow-step:not(.on) { background: var(--surface-2); border-color: var(--line-2); }
.flow.has-seat .flow-step:not(.on) b { color: var(--muted); }
.flow.has-seat .flow-step.on { opacity: 1; border-color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-ink); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); transform: translateY(-2px); }
.flow-step:not(:last-child)::after { content: ""; position: absolute; right: -6px; top: 50%; width: 6px; height: 1px; background: var(--line); }
.seat-note { margin: 14px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .9375rem; color: var(--ink-2); min-height: 3.4em; }
.seat-note > span { display: block; max-width: 48ch; }
.seat-note { max-width: calc(48ch + 34px); }
.seat-note b { color: var(--ink); }
@media (max-width: 1100px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } .flow-step::after { display: none; } }
@media (max-width: 560px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-step:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; }
  .skill-filter .chip { flex: 1 1 40%; justify-content: center; } /* two a row: 2 + 2, not 3 + 1 */
}
/* Roles are a ledger: one ruled row each, with the dates and the side of the trade in the margin. */
.roles { display: grid; gap: 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.role.ticket { display: grid; grid-template-columns: minmax(150px, .5fr) minmax(0, 3fr); column-gap: clamp(16px, 3vw, 40px); background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 26px 0 28px; }
.role.ticket:first-child { border-top: 0; }
.role.ticket::before, .role.ticket::after { display: none; }
.role .ticket-head { height: auto; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 10px; padding: 5px 0 0; border-bottom: 0; }
.role .ticket-head .ref { color: var(--ink-2); }
.role-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 8px clamp(20px, 3vw, 40px); padding: 0; }
@media (max-width: 760px) {
  .role.ticket { grid-template-columns: minmax(0, 1fr); padding: 20px 0 22px; }
  .role .ticket-head { flex-direction: row; align-items: center; justify-content: space-between; padding: 0 0 12px; }
  .role-grid { grid-template-columns: 1fr; }
}
.role h3 { font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 112; letter-spacing: -.015em; font-size: 1.6rem; line-height: 1.02; margin-bottom: 6px; text-wrap: balance; }
.role .title { font-weight: 600; color: var(--accent-ink); margin-bottom: 4px; }
.role .when { color: var(--muted); font-size: .75rem; }
.role p { color: var(--ink-2); font-size: .975rem; margin: 0 0 10px; max-width: 48ch; }
.role .lbl { display: block; color: var(--muted); margin: 0 0 4px; }
.platforms, .principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px clamp(18px, 2.4vw, 32px); }
@media (max-width: 1100px) { .platforms, .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .platforms, .principles { grid-template-columns: minmax(0, 1fr); } }
.plat { padding: 16px 0 0; border-top: 2px solid var(--ink); }
.plat--wide { grid-column: 1 / -1; }
@media (min-width: 601px) { .plat--two { grid-column: span 2; } }
.plat h3, .plat h4 { font-size: 1rem; margin: 0 0 4px; }
.sub-label { font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.ops-work + .sub-label { margin-top: clamp(36px, 5vw, 56px); }
/* What I handle, three groups: a row of three on wide screens, stacked on narrow ones. */
.ops-work { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .ops-work { grid-template-columns: minmax(0, 1fr); } }
/* Earlier roles keep firm, title and dates in view; the seat opens on request. */
.role .role-note { font-size: .875rem; color: var(--ink-2); margin: 6px 0 0; }
.role-more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent-ink); font-weight: 600; font-size: .9375rem; }
.role-more summary::-webkit-details-marker { display: none; }
.role-more summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.role-more .chev { width: 14px; height: 14px; transition: transform .2s ease; }
.role-more[open] .chev { transform: rotate(180deg); }
.role-more:not([open]) .when-open, .role-more[open] .when-closed { display: none; }
.role-more-body { padding-top: 6px; }
@media (min-width: 761px) { .role--earlier.ticket { padding-block: 20px 18px; } }
@media (prefers-reduced-motion: reduce) { .role-more .chev { transition: none; } }

.plat p { color: var(--muted); font-size: .875rem; margin: 0 0 12px; }
.edu { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px clamp(18px, 2.4vw, 32px); }
.edu > div { padding: 16px 0 0; border-top: 2px solid var(--ink); }
.edu h3 { font-size: 1.0625rem; margin: 6px 0 4px; }
.edu p { margin: 0; color: var(--ink-2); font-size: .9375rem; }

/* about */
.principles { counter-reset: pr; }
.principle { padding: 16px 0 0; border-top: 2px solid var(--ink); counter-increment: pr; }
.principle::before { content: "0" counter(pr); font-family: var(--font-mono); font-size: .75rem; color: var(--accent-ink); display: block; margin-bottom: 14px; }
.principle h3 { font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 110; letter-spacing: -.01em; font-size: 1.3rem; line-height: 1.08; margin-bottom: 8px; text-wrap: balance; }
.principle p { margin: 0; color: var(--ink-2); font-size: .9375rem; }
/* side by side, every title takes two lines, so the bodies start level */
@media (min-width: 601px) { .principle h3 { min-height: 2lh; } }
.two-col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.hobbies { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.hobbies li { display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: .9375rem; }
.hobbies svg { width: 24px; height: 24px; color: var(--accent); }
.facts { margin: 0; display: grid; gap: 0; }
.facts { border-top: 2px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; color: var(--ink); }

/* contact page */
/* the two ways to reach me: lines on the same screen as the blotter */
.contact-card { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 22px; align-items: center; gap: 6px clamp(14px, 2.4vw, 28px); padding: clamp(20px, 3vw, 30px) var(--pad); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background-color .2s; }
.contact-card:last-child { border-bottom: 0; }
.contact-card:hover { background: var(--screen-focus); }
.contact-card:focus-visible { outline-offset: -4px; }
.contact-card .ico { width: 30px; height: 30px; }
.contact-card .who { display: grid; gap: 4px; min-width: 0; }
.contact-card .mono { color: var(--muted); }
.contact-card b { font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 114; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); letter-spacing: -.02em; line-height: 1; }
.contact-card .url { font-family: var(--font-mono); font-size: .875rem; color: var(--ink-2); overflow-wrap: anywhere; }
.contact-card .go { width: 22px; height: 22px; color: var(--accent-ink); transition: transform .25s var(--ease-out); }
.contact-card:hover .go { transform: translate(3px, -3px); }
@media (max-width: 700px) {
  .contact-card { grid-template-columns: 30px minmax(0, 1fr) 20px; }
  .contact-card .ico { width: 26px; height: 26px; align-self: start; margin-top: 4px; }
  .contact-card .url { grid-column: 2; grid-row: 2; }
  .contact-card .go { grid-column: 3; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) { .contact-card:hover .go { transform: none; } }
.contact-topics { margin-top: clamp(48px, 7vw, 80px); }
.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0 32px; }
.topics li { display: grid; align-content: start; gap: 6px; padding: 16px 0 18px; border-top: 2px solid var(--ink); }
.topics b { font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 108; font-size: 1.125rem; letter-spacing: -.005em; }
.topics span { color: var(--ink-2); font-size: .9375rem; }
.topics a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

