/* Competent Little Arcade — no tokens required */
:root {
  --ink: #11110f;
  --oat: #eee7d6;
  --paper: #f8f3e7;
  --lime: #c7f33d;
  --coral: #ff5a45;
  --blue: #596cff;
  --line: 2px solid var(--ink);
  --display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--oat); font-family: var(--body); font-size: 16px; line-height: 1.55; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 5px solid var(--blue); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: .7rem 1rem; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { min-height: 74px; padding: 0 clamp(1rem, 4vw, 4.5rem); border-bottom: var(--line); display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: var(--oat); }
.wordmark { font-family: var(--display); font-size: .86rem; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.wordmark span { color: var(--coral); }
.site-header nav { display: flex; gap: clamp(1rem, 3vw, 3rem); }
.site-header nav a { font-size: .76rem; font-weight: 900; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.site-header nav a:hover { text-decoration: underline 3px; text-underline-offset: 6px; }

.hero { min-height: calc(100vh - 74px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(310px, .8fr); border-bottom: var(--line); }
.hero-copy { padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 7vw, 8rem); align-self: center; }
.eyebrow { margin: 0 0 1.6rem; font-size: .72rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.signal { display: inline-block; width: .7rem; height: .7rem; margin-right: .55rem; background: var(--coral); box-shadow: 5px 5px 0 var(--ink); }
h1, h2, h3 { font-family: var(--display); line-height: .93; text-transform: uppercase; }
h1 { max-width: 900px; margin: 0; font-size: clamp(3.5rem, 9vw, 8.8rem); letter-spacing: -.075em; }
.hero-role { max-width: 650px; margin: 1.6rem 0 2rem; font-size: clamp(1.05rem, 2vw, 1.45rem); font-weight: 850; }
.summary { max-width: 660px; border-left: 8px solid var(--coral); padding-left: 1.4rem; }
.summary p { margin: 0 0 .7rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .7rem 1.15rem; border: var(--line); box-shadow: 5px 5px 0 var(--ink); font-size: .76rem; font-weight: 900; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: transform 120ms ease, box-shadow 120ms ease; }
.button:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.button-primary { background: var(--coral); }
.portrait-console { margin: clamp(1rem, 3vw, 2.5rem); border: var(--line); background: var(--ink); align-self: center; box-shadow: 12px 12px 0 var(--coral); }
.console-bar, .console-status { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; color: var(--oat); font-family: monospace; font-size: .7rem; letter-spacing: .1em; }
.console-bar span:last-child { color: var(--lime); }
.portrait-console img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-top: 2px solid var(--oat); border-bottom: 2px solid var(--oat); filter: grayscale(100%) contrast(1.05); }
.console-status { align-items: center; }
.console-status strong { padding: .25rem .45rem; color: var(--ink); background: var(--lime); }

.work-section, .references-section { padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 5vw, 5rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3.5rem; }
.section-heading h2, footer h2 { margin: 0; font-size: clamp(2.8rem, 7vw, 6.5rem); letter-spacing: -.06em; }
.section-index { margin: 0; padding: .5rem .7rem; border: var(--line); background: var(--lime); font: 900 .76rem monospace; box-shadow: 4px 4px 0 var(--ink); }
.level-controls { display: none; grid-template-columns: auto 1fr auto; align-items: center; border: var(--line); background: var(--ink); color: var(--oat); }
.js .level-controls { display: grid; }
.level-button { min-height: 48px; border: 0; padding: .6rem 1rem; color: var(--ink); background: var(--lime); font: 900 .72rem monospace; cursor: pointer; }
.level-button:hover { background: white; }
.level-readout { margin: 0; padding: 0 1rem; text-align: center; font: .72rem monospace; text-transform: uppercase; }
.level-map { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); overflow-x: auto; border: var(--line); border-top: 0; scrollbar-color: var(--coral) var(--ink); }
.level-map a { min-height: 125px; padding: 1rem; border-right: var(--line); display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: .4rem .8rem; background: var(--paper); text-decoration: none; }
.level-map a:last-child { border-right: 0; }
.level-map a:hover, .level-map a.is-active { background: var(--coral); }
.level-number { grid-row: 1 / 3; font: 900 2rem var(--display); }
.level-company { align-self: end; font-weight: 900; line-height: 1.1; text-transform: uppercase; }
.level-dates { font: .7rem monospace; }
.case-studies { border: var(--line); border-top: 0; }
.case-study { display: grid; grid-template-columns: 90px 1fr; background: var(--paper); scroll-margin-top: 1rem; }
.case-study + .case-study { border-top: var(--line); }
.case-rail { border-right: var(--line); display: flex; flex-direction: column; align-items: center; padding: 2rem .5rem; background: var(--lime); font: 900 .7rem monospace; }
.case-rail strong { font: 900 2.8rem var(--display); }
.case-rail i { width: 12px; flex: 1; margin-top: 1.5rem; background: repeating-linear-gradient(to bottom, var(--ink) 0 7px, transparent 7px 15px); }
.case-content { padding: clamp(1.5rem, 4vw, 4rem); }
.case-header { display: flex; align-items: start; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; border-bottom: 2px dashed var(--ink); }
.case-company { margin: 0 0 .75rem; font: 900 .72rem monospace; letter-spacing: .08em; text-transform: uppercase; }
.case-company a { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.case-header h3 { margin: 0; font-size: clamp(1.7rem, 4vw, 3.4rem); letter-spacing: -.045em; }
.case-dates { flex: none; margin: 0; padding: .45rem .65rem; border: var(--line); font: 900 .72rem monospace; }
.case-achievements { max-width: 930px; margin: 2rem 0; padding: 0; list-style: none; }
.case-achievements li { position: relative; margin: 0 0 1rem; padding-left: 1.8rem; }
.case-achievements li::before { content: "▶"; position: absolute; left: 0; top: .15rem; color: var(--coral); font-size: .75rem; }
.tech-list { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.tech-list li { padding: .3rem .55rem; border: 1px solid var(--ink); font: 700 .68rem monospace; background: var(--oat); }

.profile-section { padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 5vw, 5rem); color: var(--oat); background: var(--ink); }
.light-heading .eyebrow { color: var(--lime); }
.achievement-stamp { width: 90px; height: 90px; display: grid; place-items: center; border: 3px solid var(--lime); border-radius: 50%; color: var(--lime); font: 900 1rem/1 var(--display); text-align: center; transform: rotate(8deg); box-shadow: inset 0 0 0 5px var(--ink), inset 0 0 0 7px var(--lime); }
.profile-layout { display: grid; grid-template-columns: 1.15fr .85fr; border: 2px solid var(--oat); }
.skills-panel { padding: clamp(1.5rem, 4vw, 3.5rem); border-right: 2px solid var(--oat); }
.panel-title { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.panel-title span { color: var(--lime); font: 900 .8rem monospace; }
.panel-title h3 { margin: 0; font-size: 1rem; letter-spacing: .04em; }
.skill-stack { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 2rem; }
.skill-stack li { display: flex; align-items: center; gap: .7rem; padding: .65rem 0; break-inside: avoid; font-weight: 800; }
.skill-pip { width: 9px; height: 9px; flex: none; background: var(--lime); }
.skill-line { height: 2px; flex: 1; background: #46463f; }
.credentials { display: grid; }
.credentials > section { padding: clamp(1.5rem, 4vw, 3.5rem); }
.credentials > section + section { border-top: 2px solid var(--oat); }
.credential-item p { margin: 0 0 .4rem; color: var(--lime); font: .72rem monospace; text-transform: uppercase; }
.credential-item strong { font-size: 1.05rem; }
.badge-item { display: flex; gap: 1rem; align-items: start; }
.badge-mark { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 2px solid var(--lime); color: var(--lime); }

.references-section { background: var(--blue); }
.reference-track { display: grid; grid-template-columns: repeat(2, 1fr); border: var(--line); box-shadow: 10px 10px 0 var(--ink); }
.reference-track figure { margin: 0; padding: clamp(1.5rem, 4vw, 3.5rem); background: var(--paper); }
.reference-track figure:nth-child(odd) { border-right: var(--line); }
.reference-track figure:nth-child(n+3) { border-top: var(--line); }
blockquote { margin: 0 0 2rem; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 700; }
figcaption { display: flex; flex-direction: column; padding-top: 1rem; border-top: 2px dashed var(--ink); font-size: .78rem; }
figcaption strong { font-family: var(--display); text-transform: uppercase; }

footer { padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 5vw, 5rem) 2rem; color: var(--oat); background: var(--ink); }
.footer-prompt { margin-bottom: 4rem; }
.footer-prompt .eyebrow { color: var(--coral); }
.footer-links { border-top: 2px solid var(--oat); }
.footer-links a { display: flex; justify-content: space-between; gap: 2rem; padding: 1.2rem 0; border-bottom: 2px solid var(--oat); font-size: clamp(1rem, 2.5vw, 1.6rem); font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--lime); padding-left: .7rem; }
.footer-name { margin: 4rem 0 0; font: .7rem monospace; text-transform: uppercase; }

@media (max-width: 800px) {
  .site-header { min-height: 64px; }
  .site-header nav a:not(:last-child) { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 4rem; }
  .portrait-console { max-width: 500px; margin: 0 1.25rem 4rem; }
  .section-heading { align-items: start; }
  .case-study { grid-template-columns: 52px 1fr; }
  .case-header { display: block; }
  .case-dates { display: inline-block; margin-top: 1rem; }
  .profile-layout { grid-template-columns: 1fr; }
  .skills-panel { border-right: 0; border-bottom: 2px solid var(--oat); }
  .reference-track { grid-template-columns: 1fr; }
  .reference-track figure:nth-child(odd) { border-right: 0; }
  .reference-track figure + figure { border-top: var(--line); }
}

@media (max-width: 520px) {
  .wordmark { max-width: 200px; }
  h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
  .section-heading { display: block; }
  .section-index, .achievement-stamp { margin-top: 1.5rem; }
  .level-readout { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .level-button { padding-inline: .6rem; }
  .case-study { grid-template-columns: 1fr; }
  .case-rail { min-height: 45px; border-right: 0; border-bottom: var(--line); flex-direction: row; gap: .5rem; padding: .4rem 1rem; }
  .case-rail strong { font-size: 1.2rem; }
  .case-rail i { width: auto; height: 8px; margin: 0 0 0 auto; flex: 0 0 50%; background: repeating-linear-gradient(to right, var(--ink) 0 7px, transparent 7px 15px); }
  .skill-stack { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
