/* Hallmark · shape: Index-First (kept) · genre: modern-minimal · theme: Cobalt (deal 3/3, seed portfolio-cyber-security-data-fcf6·72a74a2f·2026-11-12·r0) · cobalt: dark, derived (the user asked for the darker scheme) · redesign: full
 * hero: Stage with a generated field · nav: bar · footer: letter close (kept) · hero: Stage (/) · imagery: a generated ASCII field behind the hero, the user's portrait in the theme duotone, three of the user's own product covers · signature: a field of characters that runs from raw noise to resolved rows, beside a panel of what is true right now
 * axes: dark/grotesk-sans/cool · posture: restrained · contrast: pass · fold: pass · job: hire · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: E, the field must stay behind the type without fighting it, so its density is calmed under the text column and it settles once, then only answers the pointer · hero-review: in-thread · ship · 0 open · finish-review: in-thread · 0 open */
@import url("./tokens.css");
@import url("./base.css");
@import url("./shared.css");

.snap { grid-column: 7 / -1; margin-inline-start: var(--space-xl); padding: var(--space-lg) var(--space-lg) var(--space-xs); box-shadow: var(--shadow-card); }
.snap dl { margin: 0; }
.snap .row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; column-gap: var(--space-md); align-items: baseline; padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.snap .row:first-child { border-top: 0; padding-top: 0; }
.snap dt { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.snap dd { margin: 0; font-family: var(--font-outlier); font-size: var(--text-sm); line-height: 1.5; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.snap dd.fig { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; line-height: 1; color: var(--color-accent-2); }

.exp { align-items: start; }
.exp .head { grid-column: 1 / span 4; position: sticky; top: var(--space-3xl); }
.rows { grid-column: 5 / -1; border-top: var(--rule-hair) solid var(--color-rule-2); }
.rows li { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.rows time { grid-column: 1 / span 2; font-family: var(--font-outlier); font-size: var(--text-sm); font-variant-numeric: tabular-nums; color: var(--color-muted); }
.rows .current time { color: var(--color-accent-2); }
.rows .role { grid-column: 3 / span 3; }
.rows .role p { font-size: var(--text-md); font-weight: 400; color: var(--color-muted); margin-top: var(--space-2xs); }
.rows .what { grid-column: 6 / span 3; }

/* ---------- work ---------- */

.work-head { align-items: end; margin-bottom: var(--space-2xl); }
.work-head h2 { grid-column: 1 / span 7; }
.work-head p { grid-column: 8 / -1; color: var(--color-muted); }
.work { display: block; color: inherit; text-decoration: none; }
.work figure { margin: 0; }
.work img { width: 100%; border-radius: var(--radius-card); outline: var(--rule-hair) solid var(--color-rule); outline-offset: -1px; }
.work h3 { margin-top: var(--space-lg); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--color-rule-2); text-underline-offset: 0.2em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.work:hover h3 { text-decoration-color: var(--color-accent); }
.work:active h3 { color: var(--color-accent-2); }
.work:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 6px; }
.work p { margin-top: var(--space-xs); }
.work .stack { font-family: var(--font-outlier); font-size: var(--text-sm); color: var(--color-ink-2); margin-top: var(--space-sm); }
.work--a { grid-column: 1 / span 6; }
.work--b { grid-column: 7 / span 6; }
.work--c { grid-column: 1 / -1; margin-top: var(--space-3xl); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: center; }
.work--c figure { grid-column: 1 / span 7; }
.work--c .txt { grid-column: 9 / -1; }

/* ---------- band: in progress ---------- */

.band__cols { margin-top: var(--space-2xl); padding-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-graphite-2); align-items: start; }
.band article:first-child { grid-column: 1 / span 6; }
.band article:last-child { grid-column: 8 / -1; }
.band p.status, .band p.stack { font-size: var(--text-sm); }
.band p.status { font-family: var(--font-display); font-weight: 500; color: var(--color-accent-2); margin-top: var(--space-md); }
.band p.stack { font-family: var(--font-outlier); margin-top: var(--space-2xs); }

/* ---------- about ---------- */

[data-slot] > img { mix-blend-mode: normal; filter: grayscale(1) contrast(1.05); }
[data-slot]:has(> img)::before { display: none; }

.about { align-items: start; }
.about h2 { grid-column: 1 / span 4; }
.plate { grid-column: 1 / span 4; margin: var(--space-xl) 0 0; }
.plate .photo { aspect-ratio: 1; border-radius: var(--cut-l) 4px var(--cut-l) 4px; }
.plate figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.facts { grid-column: 6 / -1; grid-row: 1 / span 2; border-top: var(--rule-hair) solid var(--color-rule-2); }
.facts li { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.facts .big { grid-column: 1 / span 3; grid-row: 1; margin: 0; font-family: var(--font-display); font-size: var(--text-display-s); font-weight: 600; line-height: 1; letter-spacing: var(--tracking-display); font-variant-numeric: tabular-nums; color: var(--color-ink); overflow-wrap: break-word; min-width: 0; }
.facts .what { grid-column: 4 / -1; grid-row: 1; }
.facts p { margin-top: var(--space-2xs); }

.skills { grid-column: 5 / -1; width: 100%; border-collapse: collapse; border-top: var(--rule-hair) solid var(--color-rule-2); }
.skills th, .skills td { padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; vertical-align: baseline; }
.skills th[scope="row"] { width: 25%; font-family: var(--font-display); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.skills td { font-family: var(--font-outlier); font-size: var(--text-sm); line-height: 1.7; color: var(--color-ink); }
.skillsec { margin-top: var(--space-3xl); align-items: start; }
.skillsec h3 { grid-column: 1 / span 4; font-size: var(--text-title); }

/* ---------- small screens ---------- */

@media (max-width: 60rem) {
  .snap { grid-column: 1 / -1; margin: var(--space-2xl) 0 0; }
  .exp .head { position: static; grid-column: 1 / -1; margin-bottom: var(--space-xl); }
  .skills, .skillsec h3 { grid-column: 1 / -1; }
  .skillsec h3 { margin-bottom: var(--space-md); }
  .rows, .work-head h2, .work-head p, .work--a, .work--b, .work--c figure, .work--c .txt, .band article:first-child, .band article:last-child, .about h2, .plate, .facts { grid-column: 1 / -1; grid-row: auto; }
  .work-head p { margin-top: var(--space-md); }
  .work--b { margin-top: var(--space-2xl); }
  .work--c .txt { margin-top: var(--space-lg); }
  .band article:last-child { margin-top: var(--space-xl); }
  .plate { margin-bottom: var(--space-xl); max-width: 24rem; }
  .skills th[scope="row"] { width: 30%; }
}

@media (max-width: 40rem) {
  .snap .row { grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--space-2xs); }
  .snap dt { grid-column: 1 / -1; }
  .rows li { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2xs); }
  .rows time, .rows .role, .rows .what { grid-column: 1 / -1; }
  .facts li { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xs); }
  .facts .big, .facts .what { grid-column: 1 / -1; grid-row: auto; }
  .facts .big { order: -1; }
  .skills th, .skills td { display: block; }
  .skills th[scope="row"] { width: auto; padding-bottom: 0; border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .work h3 { transition: none; }
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- fit: one-line items shrink instead of wrapping ---------- */

.rows li, .band article, .work--c .txt, .work--a, .work--b { container-type: inline-size; }
.rows time { white-space: nowrap; font-size: clamp(0.6875rem, 2.1cqi, var(--text-sm)); }
.work .stack, .band p.stack { white-space: nowrap; font-size: clamp(0.6875rem, 4.6cqi, var(--text-sm)); }
.band p.status { white-space: nowrap; font-size: clamp(0.75rem, 5cqi, var(--text-sm)); }
.plate figcaption { white-space: nowrap; }
.skills th[scope="row"] { white-space: nowrap; }
.snap dt { white-space: nowrap; }

@media (max-width: 40rem) {
  .rows time { font-size: var(--text-sm); }
  .skills td { overflow-wrap: anywhere; }
}

.rows .role h3 { white-space: nowrap; font-size: clamp(1rem, 2.9cqi, var(--text-title)); max-width: none; }
@media (min-width: 60.01rem) and (max-width: 80rem) {
  .exp .head { grid-column: 1 / span 3; }
  .exp .head h2 { font-size: clamp(1.75rem, 3.2vw, var(--text-section)); }
  .rows { grid-column: 4 / -1; }
  .rows li { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .rows time { grid-column: 1 / span 2; }
  .rows .role { grid-column: 3 / span 4; }
  .rows .what { grid-column: 7 / span 3; }
}
