/* Neo Brutalist on the template kit.
 *
 * A flat white page on faint graph paper. Every block has a thick black outline and a hard
 * offset shadow, and the colour comes in flat blocks: cyan, sunny yellow, pink and mint. Space
 * Grotesk carries the page, set heavy for headings; Space Mono carries labels, dates and the
 * terminal; Caveat is only a decorative hand, never body text and never under 18px. Controls
 * press in when used: the block moves into its shadow. Motion (the tape and the floating tiles)
 * runs only under html.motion-ok, which the script sets when the visitor has not asked for
 * reduced motion.
 */

:root {
  --kit-bg: #ffffff;
  --kit-ink: #000000;
  --kit-accent: #66d9ef;
  --kit-muted: #3d3d3d;
  --kit-radius: 6px;
  --kit-border: 3px solid #000000;
  --kit-shadow: 6px 6px 0 #000000;
  --kit-font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --kit-font-body: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --kit-font-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --hand: 'Caveat', 'Segoe Print', cursive;

  --cyan: #66d9ef;
  --yellow: #ffd93d;
  --pink: #ff6b9d;
  --mint: #a8e6cf;
  --ink: #000000;
  /* secondary text: 10.6:1 on white, 7.9:1 on the yellow, 7.1:1 on the cyan */
  --ink-2: #3d3d3d;
  --paper-line: #efefef;
  --cream: #fff8d6;
  --bw: 3px;
  --sh-sm: 3px 3px 0 #000;
  --sh: 6px 6px 0 #000;
  --sh-lg: 10px 10px 0 #000;
  --r: 6px;
  --wrap: 75rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --sec-pad: clamp(3.75rem, 7vw, 6rem);
}

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

html {
  background: #fff;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--kit-font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  background-color: #fff;
  background-image:
    linear-gradient(var(--paper-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection {
  background: var(--yellow);
  color: #000;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--kit-font-display);
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--yellow);
  border: var(--bw) solid #000;
  box-shadow: var(--sh-sm);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

main:focus {
  outline: none;
}

.kit-icon {
  width: 1em;
  height: 1em;
}

/* a pressable block: it moves into its shadow under the pointer */
.press {
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background-color 0.12s ease;
}

/* ------------------------------------------------------------------------------- the bar */

.bar {
  position: sticky;
  top: 0.75rem;
  z-index: 50;
  margin-top: 0.75rem;
}

.bar-in {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.5rem 0.6rem 0.5rem 0.55rem;
  background: var(--yellow);
  border: var(--bw) solid #000;
  box-shadow: var(--sh);
}

.bar {
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: #000;
  text-decoration: none;
}

.brand-chip {
  flex: none;
  padding: 0.12rem 0.55rem;
  background: var(--cyan);
  border: var(--bw) solid #000;
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.brand-name {
  overflow: hidden;
  font-size: 1.125rem;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.menu .kit-nav__link {
  display: block;
  padding: 0.38rem 0.7rem;
  border: var(--bw) solid transparent;
  border-radius: var(--r);
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow-wrap: normal;
  text-decoration: none;
}

.menu .kit-nav__link:hover {
  background: #fff;
  border-color: #000;
  box-shadow: var(--sh-sm);
}

.menu .kit-nav__link[href='#contact'] {
  margin-left: 0.4rem;
  background: var(--cyan);
  border-color: #000;
  box-shadow: var(--sh-sm);
}

.menu .kit-nav__link[href='#contact']:hover {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.menu-btn {
  display: none;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: #fff;
  border: var(--bw) solid #000;
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  color: #000;
  font-size: 1.35rem;
  cursor: pointer;
}

.menu-btn:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.bar.is-compact .menu-btn {
  display: grid;
}

.bar.is-compact .bar-nav {
  display: none;
  position: absolute;
  top: calc(100% + 0.9rem);
  left: -3px;
  right: -3px;
  padding: 0.75rem;
  background: #fff;
  border: var(--bw) solid #000;
  box-shadow: var(--sh);
}

.bar.is-compact.is-open .bar-nav {
  display: block;
}

.bar.is-compact .menu {
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
}

.bar.is-compact .menu .kit-nav__link {
  padding: 0.65rem 0.85rem;
  border-color: #000;
  font-size: 1.125rem;
}

.bar.is-compact .menu .kit-nav__link[href='#contact'] {
  margin-left: 0;
}

/* ------------------------------------------------------------------------------ the hero */

.hero {
  padding-block: clamp(2.75rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  grid-template-areas:
    'copy art'
    'readouts readouts'
    'console console';
  column-gap: clamp(2rem, 5vw, 4.5rem);
  row-gap: clamp(2.5rem, 5vw, 3.75rem);
  align-items: center;
}

.hero.no-photo .hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    'copy console'
    'readouts readouts';
  align-items: start;
}

.hero-copy {
  grid-area: copy;
  min-width: 0;
}

.hello {
  display: inline-block;
  margin: 0 0 0.35rem;
  padding: 0 0.3rem;
  background: linear-gradient(transparent 56%, var(--cyan) 56%, var(--cyan) 92%, transparent 92%);
  font-family: var(--hand);
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  transform: rotate(-2.5deg);
  transform-origin: left center;
}

/* fitted by the script: no transition, so a size it sets is the size it measures (kit.css
   gives every property a tiny transition under reduced motion) */
.name {
  margin: 0 0 1.4rem;
  transition-property: none;
  font-size: clamp(3rem, 1.6rem + 4.6vw, 6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
}

html[data-name-long] .name {
  font-size: clamp(2.4rem, 1.5rem + 3vw, 4.25rem);
  line-height: 1;
}

.name-text {
  display: inline;
}

.tagline {
  margin: 0 0 1.35rem;
  transform: rotate(-1deg);
  transform-origin: left center;
}

.tagline-text {
  display: inline;
  padding: 0.18em 0.55em;
  background: var(--yellow);
  border: var(--bw) solid #000;
  box-shadow: 4px 4px 0 #000;
  font-size: clamp(1.15rem, 1rem + 0.55vw, 1.45rem);
  font-weight: 700;
  line-height: 2.05;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.where {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  font-family: var(--kit-font-mono);
  font-size: 0.9375rem;
}

.where .kit-icon {
  flex: none;
}

.summary {
  max-width: 35em;
  margin: 0 0 1.75rem;
  font-size: 1.15rem;
  line-height: 1.65;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1rem;
  margin-bottom: 1.6rem;
}

.ctas .kit-cta {
  padding: 0.75rem 1.05rem;
  background: #fff;
  border: var(--bw) solid #000;
  border-radius: var(--r);
  box-shadow: 5px 5px 0 #000;
  color: #000;
  font-size: 1.0625rem;
  font-weight: 700;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.ctas .kit-cta--primary {
  background: var(--cyan);
}

.ctas .kit-cta--resume {
  background: var(--yellow);
}

.ctas .kit-cta:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 #000;
}

.ctas .kit-cta:active {
  transform: translate(5px, 5px);
  box-shadow: none;
}

.cta-arrow {
  width: 1.1em;
  height: 1.1em;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.socials .kit-social__link {
  width: 2.875rem;
  height: 2.875rem;
  background: #fff;
  border: var(--bw) solid #000;
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  color: #000;
  font-size: 1.2rem;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background-color 0.12s ease;
}

.socials .kit-social__link:hover {
  background: var(--cyan);
  transform: translate(3px, 3px);
  box-shadow: none;
}

/* the portrait in a taped frame, with the three tiles stuck around it */
.hero-art {
  grid-area: art;
  min-width: 0;
  padding: 2.25rem 2.5rem 2.5rem;
}

.frame-wrap {
  position: relative;
  width: min(100%, 25rem);
  margin-inline: auto;
}

.frame {
  position: relative;
  margin: 0;
  background: #fff;
  border: 4px solid #000;
  box-shadow: 12px 12px 0 #000;
  transform: rotate(1.6deg);
}

.frame img {
  width: 100%;
  border-radius: 0;
  box-shadow: none;
}

.frame .kit-caption {
  position: absolute;
  left: -1.1rem;
  bottom: 1.4rem;
  z-index: 2;
  max-width: calc(100% - 2rem);
  padding: 0.25rem 0.65rem;
  background: #fff;
  border: var(--bw) solid #000;
  box-shadow: var(--sh-sm);
  color: #000;
  font-family: var(--kit-font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  transform: rotate(-3deg);
}

/* a long caption sits under the picture, as a strip inside the frame, never over the face */
.frame.cap-under .kit-caption {
  position: static;
  max-width: none;
  padding: 0.45rem 0.75rem;
  border: 0;
  border-top: var(--bw) solid #000;
  box-shadow: none;
  line-height: 1.45;
  transform: none;
}

.frame.cap-under ~ .tile--disk {
  right: auto;
  bottom: auto;
  top: 58%;
  left: -2.3rem;
}

.tape {
  position: absolute;
  top: -1.15rem;
  left: 50%;
  z-index: 3;
  width: 8.5rem;
  height: 2.1rem;
  background: rgba(255, 217, 61, 0.88);
  border-inline: 2px dashed rgba(0, 0, 0, 0.18);
  transform: translateX(-50%) rotate(-4deg);
}

.tile {
  position: absolute;
  z-index: 2;
  width: 4.75rem;
  height: 4.75rem;
}

.tile svg {
  width: 100%;
  height: 100%;
}

.tile--code {
  top: -1.9rem;
  left: -2.3rem;
  transform: rotate(-9deg);
}

.tile--term {
  top: 38%;
  right: -2.4rem;
  transform: rotate(7deg);
}

.tile--disk {
  right: 14%;
  bottom: -2.3rem;
  transform: rotate(-6deg);
}

/* on the terminal (no portrait) the code tile sits over the empty end of its title bar */
.console > .tile--code {
  top: -2rem;
  left: auto;
  right: -1.6rem;
  width: 4.25rem;
  height: 4.25rem;
  transform: rotate(8deg);
}

/* readouts: flat colour blocks */
.readouts-wrap {
  grid-area: readouts;
  min-width: 0;
}

.readouts {
  --max: 4;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
}

.readouts .kit-readout {
  grid-column: span 3;
  gap: 0.35rem;
  min-width: 0;
  padding: 1.1rem 1.25rem 1.2rem;
  background: var(--yellow);
  border: var(--bw) solid #000;
  box-shadow: var(--sh);
}

.readouts .kit-readout:nth-child(4n + 2) {
  background: var(--cyan);
}

.readouts .kit-readout:nth-child(4n + 3) {
  background: var(--pink);
}

.readouts .kit-readout:nth-child(4n + 4) {
  background: var(--mint);
}

/* a value is one token and never splits; the script sizes every value down together when one
   is wider than its block */
.readouts .kit-readout__value {
  min-width: 0;
  transition-property: none;
  color: #000;
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.85rem);
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow-wrap: normal;
}

.readouts .kit-readout__label {
  color: #000;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.4;
}

/* ---------------------------------------------------------------------------- the terminal */

.console {
  position: relative;
  grid-area: console;
  min-width: 0;
  container-type: inline-size;
  background: #fff;
  border: 4px solid #000;
  box-shadow: var(--sh-lg);
}

.console[hidden] {
  display: none;
}

/* beside the introduction (no portrait) the terminal is as tall as the copy, and its screen
   takes the room that is left */
.hero.no-photo .console {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.hero.no-photo .console-body {
  flex: 1 1 auto;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

.hero.no-photo .console-out {
  flex: 1 1 0;
  min-height: 12rem;
  max-height: none;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.9rem;
  background: var(--yellow);
  border-bottom: 4px solid #000;
}

.console-keys {
  display: flex;
  gap: 0.4rem;
}

.console-keys i {
  width: 0.95rem;
  height: 0.95rem;
  background: #fff;
  border: var(--bw) solid #000;
}

.console-keys i:nth-child(1) {
  background: var(--pink);
}

.console-keys i:nth-child(2) {
  background: var(--cyan);
}

.console-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  margin: 0;
  font-family: var(--kit-font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
}

.console-title .kit-icon {
  flex: none;
}

.console-title span:last-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.console-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.console-cmds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.85rem 0.9rem;
  background: var(--cyan);
  border-bottom: 4px solid #000;
}

.cmd {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.7rem;
  background: #fff;
  border: var(--bw) solid #000;
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  color: #000;
  font: 700 0.875rem/1.3 var(--kit-font-mono);
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background-color 0.12s ease;
}

.cmd:hover {
  background: var(--yellow);
}

.cmd:active,
.cmd.is-on {
  background: var(--yellow);
  transform: translate(3px, 3px);
  box-shadow: none;
}

.console-screen {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.console-out {
  position: relative;
  min-height: 13rem;
  max-height: 23rem;
  overflow-y: auto;
  padding: 1rem 1.1rem 0.5rem;
  font-family: var(--kit-font-mono);
  font-size: 0.9375rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  scrollbar-color: #000 #fff;
}

.console-out:focus-visible {
  outline-offset: -6px;
}

@container (min-width: 44rem) {
  .console-body {
    grid-template-columns: 13rem minmax(0, 1fr);
  }

  .console-cmds {
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: stretch;
    padding: 1rem;
    border-bottom: 0;
    border-right: 4px solid #000;
  }

  .cmd {
    justify-content: flex-start;
  }

  .console-out {
    min-height: 16rem;
  }
}

.run {
  margin: 0 0 1rem;
}

.run-cmd {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.run-cmd::before {
  content: '$';
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  background: #000;
  color: var(--yellow);
  font-size: 0.8125rem;
  line-height: 1;
}

.out-note {
  margin: 0 0 0.85rem;
  color: var(--ink-2);
}

.out-lead {
  font-weight: 700;
}

.out-h {
  display: inline-block;
  margin: 0.15rem 0 0.2rem;
  padding: 0 0.35rem;
  background: var(--cyan);
  font-weight: 700;
}

.out-kv {
  display: grid;
  grid-template-columns: minmax(6.5rem, max-content) minmax(0, 1fr);
  column-gap: 1rem;
}

.out-k {
  color: var(--ink-2);
}

.out-v {
  min-width: 0;
  overflow-wrap: anywhere;
}

.out-item {
  position: relative;
  padding-left: 1.2rem;
  margin-top: 0.3rem;
}

.out-item::before {
  content: '';
  position: absolute;
  left: 0.1rem;
  top: 0.5em;
  width: 0.55rem;
  height: 0.55rem;
  background: #000;
}

.out-item b {
  font-weight: 700;
}

.out-sub {
  display: block;
  color: var(--ink-2);
}

.out-err b {
  padding: 0 0.3rem;
  background: var(--pink);
  color: #000;
}

.console-out a {
  color: #000;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.console-out a:hover {
  background: var(--yellow);
}

.console-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  border-top: var(--bw) solid #000;
}

.console-prompt {
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: #000;
  color: var(--yellow);
  font: 700 1rem/1 var(--kit-font-mono);
}

.console-in {
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0.5rem;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 4px;
  color: #000;
  font: 700 1rem/1.4 var(--kit-font-mono);
  caret-color: #000;
}

.console-in::placeholder {
  color: #575757;
  font-weight: 400;
  opacity: 1;
}

.console-in:focus {
  outline: 3px solid #000;
  outline-offset: 0;
  background: var(--cream);
}

.console-hint {
  margin: 0;
  padding: 0 0.9rem 0.8rem;
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.7;
}

kbd {
  padding: 0 0.3rem;
  background: #fff;
  border: 2px solid #000;
  border-radius: 4px;
  box-shadow: 2px 2px 0 #000;
  color: #000;
  font-family: var(--kit-font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
}

/* ---------------------------------------------------------------------------- the tape */

.tape-band {
  overflow-x: clip;
  padding-block: 1.6rem;
}

.tape-strip {
  position: relative;
  width: calc(100% + 6rem);
  margin-left: -3rem;
  overflow: hidden;
  background: #000;
  border-block: 4px solid #000;
  transform: rotate(-1.6deg);
}

.tape-track {
  display: flex;
  justify-content: center;
  width: max-content;
  min-width: 100%;
}

.tape-run {
  display: flex;
  flex: none;
}

.tape-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.75rem 0 0.75rem 1.1rem;
  color: var(--yellow);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tape-item::after {
  content: '';
  width: 0.7rem;
  height: 0.7rem;
  background: var(--cyan);
  transform: rotate(45deg);
}

.motion-ok .tape-track {
  justify-content: flex-start;
  animation: tape-run var(--tape-time, 40s) linear infinite;
}

@keyframes tape-run {
  to {
    transform: translateX(-50%);
  }
}

/* ------------------------------------------------------------------------- the sections */

.sec {
  padding-top: var(--sec-pad);
}

.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1.4rem;
  margin-bottom: clamp(1.9rem, 3.5vw, 2.75rem);
}

.sec-title {
  margin: 0;
  padding: 0.18em 0.5em 0.2em;
  background: var(--yellow);
  border: var(--bw) solid #000;
  box-shadow: var(--sh);
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.exp .sec-title {
  background: var(--cyan);
}

.work .sec-title {
  background: var(--pink);
}

.skills .sec-title {
  background: var(--mint);
}

.sec-note {
  margin: 0 0 0.2rem;
  font-family: var(--hand);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  transform: rotate(-3deg);
}

.card-label {
  margin: 0;
  padding: 0.42rem 0.9rem;
  background: #000;
  color: #fff;
  font-family: var(--kit-font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
  align-items: start;
}

.about-grid.is-solo {
  grid-template-columns: minmax(0, 1fr);
  max-width: 54rem;
}

.story {
  padding: clamp(1.4rem, 3vw, 2.25rem);
  background: #fff;
  border: var(--bw) solid #000;
  box-shadow: 8px 8px 0 #000;
}

.story-p {
  margin: 0 0 1em;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.story-p:first-of-type {
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.375rem);
  font-weight: 500;
  line-height: 1.55;
}

.story-p:last-of-type {
  margin-bottom: 0;
}

.about-side {
  display: grid;
  gap: 1.9rem;
  min-width: 0;
}

.facts-card {
  background: #fff;
  border: var(--bw) solid #000;
  box-shadow: 8px 8px 0 #000;
}

.facts {
  margin: 0;
}

.fact {
  display: grid;
  grid-template-columns: minmax(6.5rem, 34%) minmax(0, 1fr);
  gap: 0.25rem 0.9rem;
  padding: 0.8rem 0.95rem;
}

.fact + .fact {
  border-top: 2px solid #000;
}

.fact-label {
  padding-top: 0.2rem;
  color: var(--ink-2);
  font-family: var(--kit-font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.fact-value {
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
}

.now-card {
  padding: 1rem 1.15rem 1.15rem;
  background: var(--cyan);
  border: var(--bw) solid #000;
  box-shadow: 8px 8px 0 #000;
}

.now-label {
  margin: 0 0 0.4rem;
  font-family: var(--hand);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.now-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.now-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.now-at {
  display: block;
  margin-top: 0.15rem;
  font-weight: 500;
}

.now-since {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.05rem 0.45rem;
  background: #fff;
  border: 2px solid #000;
  font-family: var(--kit-font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
}

/* ---------------------------------------------------------------------------- experience */

.roles {
  position: relative;
  display: grid;
  gap: 2.25rem;
  padding-left: 3.25rem;
}

.roles::before {
  content: '';
  position: absolute;
  left: 0.95rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 4px;
  background: #000;
}

.role {
  position: relative;
  min-width: 0;
}

.role-pin {
  position: absolute;
  left: calc(-3.25rem + 0.95rem + 2px - 0.8rem);
  top: 1.6rem;
  width: 1.6rem;
  height: 1.6rem;
  background: #fff;
  border: var(--bw) solid #000;
  box-shadow: var(--sh-sm);
}

.role.is-current .role-pin {
  background: var(--cyan);
}

.role-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: var(--bw) solid #000;
  box-shadow: 8px 8px 0 #000;
}

/* the head is one row: mark, who, when. The who part keeps at least 14rem, so a wide logo or a
   long date sends the next part to its own line rather than squeezing the title */
.role-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.15rem;
  padding: 1rem 1.25rem;
  background: var(--cyan);
  border-bottom: var(--bw) solid #000;
}

.role:nth-of-type(4n + 2) .role-head {
  background: var(--yellow);
}

.role:nth-of-type(4n + 3) .role-head {
  background: var(--mint);
}

.role:nth-of-type(4n + 4) .role-head {
  background: var(--pink);
}

.role-mark {
  display: flex;
  flex: none;
}

.role-logo,
.role-mono {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  overflow: hidden;
  background: #fff;
  border: var(--bw) solid #000;
  border-radius: var(--r);
}

.role-logo img {
  width: 100%;
  height: 100%;
  padding: 0.35rem;
  object-fit: contain;
}

.role-logo.is-plate {
  background: #000;
}

.role-logo.is-plate img {
  padding: 0;
  object-fit: cover;
}

.role-logo.is-light {
  background: #000;
}

.role-logo.is-wide {
  width: auto;
  min-width: 3.5rem;
  max-width: 10rem;
  aspect-ratio: var(--ar, 3);
}

.role-logo.is-wide img {
  object-fit: contain;
}

.role-mono {
  background: #000;
  color: #fff;
  font-family: var(--kit-font-mono);
  font-size: 1rem;
  font-weight: 700;
}

.role-id {
  flex: 1 1 14rem;
  min-width: 0;
}

.role-title {
  margin: 0;
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
}

.role-org {
  margin: 0.15rem 0 0;
  font-size: 1.0625rem;
  font-weight: 500;
}

.role-company {
  color: #000;
}

a.role-company[href] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

a.role-company[href]:hover {
  background: #fff;
}

.role-when {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0 auto;
}

.role-now {
  padding: 0.12rem 0.5rem;
  background: var(--yellow);
  border: 2px solid #000;
  font-family: var(--kit-font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
}

.role:nth-of-type(4n + 2) .role-now {
  background: #fff;
}

.role-dates {
  padding: 0.22rem 0.6rem;
  background: #000;
  color: #fff;
  font-family: var(--kit-font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}

.role-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 1.25rem 2.5rem;
  padding: 1.25rem 1.25rem 1.4rem;
}

.role.no-wins .role-body {
  grid-template-columns: minmax(0, 1fr);
  max-width: 50rem;
}

.role-story {
  min-width: 0;
}

.role-where {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.6rem;
  color: var(--ink-2);
  font-family: var(--kit-font-mono);
  font-size: 0.875rem;
}

.role-where .kit-icon {
  flex: none;
}

.role-desc {
  margin: 0;
  line-height: 1.65;
}

.role-earlier {
  margin-top: 1rem;
  padding: 0.7rem 0.85rem;
  background: var(--cream);
  border: 2px solid #000;
}

.earlier-label {
  margin: 0 0 0.3rem;
  font-family: var(--kit-font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
}

.earlier-list {
  display: grid;
  gap: 0.3rem;
}

.earlier-list .kit-earlier {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 0.75rem;
}

.kit-earlier__title {
  font-weight: 700;
}

.kit-earlier__dates {
  color: var(--ink-2);
  font-family: var(--kit-font-mono);
  font-size: 0.875rem;
}

.wins {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wins li {
  position: relative;
  padding-left: 1.45rem;
  line-height: 1.55;
}

.wins li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--cyan);
  border: 2px solid #000;
}

.role-foot {
  margin-top: auto;
  padding: 0.85rem 1.25rem 1rem;
  border-top: 2px dashed #000;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.12rem 0.55rem;
  background: #fff;
  border: 2px solid #000;
  border-radius: 4px;
  font-family: var(--kit-font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.6;
}

/* ------------------------------------------------------------------------------ projects */

.feats {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
}

.feat {
  background: #fff;
  border: 4px solid #000;
  box-shadow: var(--sh-lg);
}

.feat-media {
  position: relative;
  border-bottom: 4px solid #000;
}

.tape--media {
  top: -1.25rem;
  left: 3rem;
  transform: rotate(-5deg);
}

.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #fff;
}

.media img {
  width: 100%;
}

.feat .media img {
  aspect-ratio: 21 / 9;
}

.media .kit-caption {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  max-width: calc(100% - 1.8rem);
  padding: 0.18rem 0.6rem;
  background: #fff;
  border: var(--bw) solid #000;
  box-shadow: var(--sh-sm);
  color: #000;
  font-family: var(--kit-font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
}

.media.kit-media--schematic img {
  background: #fff;
  object-fit: contain;
}

/* a drawing's label sits under it, so it never covers part of the diagram */
.media.kit-media--schematic .kit-caption {
  position: static;
  display: block;
  max-width: none;
  padding: 0.45rem 0.9rem;
  border: 0;
  border-top: var(--bw) solid #000;
  box-shadow: none;
}

.feat-body {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.75rem 2.75rem;
  padding: clamp(1.4rem, 3vw, 2.1rem);
}

.feat.is-solo .feat-body {
  grid-template-columns: minmax(0, 1fr);
  max-width: 52rem;
}

.feat-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feat-main > .tags {
  margin-bottom: 1.4rem;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
}

.num {
  padding: 0.1rem 0.5rem;
  background: #000;
  color: #fff;
  font-family: var(--kit-font-mono);
  font-size: 0.875rem;
  font-weight: 700;
}

.cat {
  padding: 0.05rem 0.5rem;
  background: var(--cyan);
  border: 2px solid #000;
  font-family: var(--kit-font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.feat-name {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 1.2rem + 1.7vw, 2.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.feat-desc {
  margin: 0 0 1.4rem;
  font-size: 1.1rem;
  line-height: 1.65;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

.links .kit-link {
  padding: 0.45rem 0.85rem;
  background: #fff;
  border: var(--bw) solid #000;
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  color: #000;
  font-size: 0.98rem;
  font-weight: 700;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.links li:first-child .kit-link,
.links > .kit-link:first-child {
  background: var(--yellow);
}

.links .kit-link:hover {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.feat-side {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}

.wins-box {
  background: var(--yellow);
  border: var(--bw) solid #000;
  box-shadow: 5px 5px 0 #000;
}

.wins-box .wins {
  padding: 0.95rem 1rem 1.05rem;
}

.wins-box .wins li::before {
  background: #fff;
}

.more {
  display: inline-block;
  margin: clamp(3rem, 6vw, 4rem) 0 1.75rem;
  padding: 0.15rem 0.6rem;
  background: #fff;
  border: var(--bw) solid #000;
  box-shadow: var(--sh-sm);
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cards {
  --max: 3;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.9rem 1.75rem;
}

.card {
  display: flex;
  flex-direction: column;
  grid-column: span 4;
  min-width: 0;
  background: #fff;
  border: var(--bw) solid #000;
  box-shadow: 7px 7px 0 #000;
}

.card .media {
  border-bottom: var(--bw) solid #000;
}

.card .media img {
  aspect-ratio: 16 / 9;
}

.card .media .kit-caption {
  right: 0.6rem;
  bottom: 0.6rem;
}

.card-body {
  padding: 1.15rem 1.2rem 0.4rem;
}

.card-name {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.card-desc {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  line-height: 1.6;
}

.wins--sm {
  gap: 0.4rem;
  font-size: 0.98rem;
}

.card-foot {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
  padding: 0.85rem 1.2rem 1.25rem;
}

.card-foot .links {
  margin-top: 0;
}

/* cards in a grid share four row tracks (picture, story, stack, links), so the stacks and the
   links of one row start on one line, whatever each card holds */
.cards > .card:not(.is-lone):not(.is-alone) {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 0;
}

.card:not(.is-lone):not(.is-alone) > .media,
.card:not(.is-lone):not(.is-alone) > .cover {
  grid-row: 1;
}

.card:not(.is-lone):not(.is-alone) > .card-body {
  grid-row: 2;
}

.card:not(.is-lone):not(.is-alone) > .card-foot {
  display: grid;
  grid-row: 3 / span 2;
  grid-template-rows: subgrid;
  row-gap: 1rem;
  margin-top: 0;
}

.card:not(.is-lone):not(.is-alone) > .card-foot > .tags {
  grid-row: 1;
  align-self: start;
}

.card:not(.is-lone):not(.is-alone) > .card-foot > .links {
  grid-row: 2;
  align-self: end;
}

/* a card in a grid where others have pictures: a numbered colour cover in the picture's place */
.cover {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: var(--yellow);
  border-bottom: var(--bw) solid #000;
}

.card:nth-of-type(3n + 2) .cover {
  background: var(--cyan);
}

.card:nth-of-type(3n + 3) .cover {
  background: var(--mint);
}

.cover-num {
  padding: 0.1rem 0.7rem;
  background: #fff;
  border: var(--bw) solid #000;
  box-shadow: var(--sh);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
}

/* a card alone on its row while other rows hold two: the picture (or cover) beside the story, or,
   without one, the story beside the stack and links */
.cards > .card.is-alone {
  display: grid;
  grid-row: auto;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  grid-template-rows: auto 1fr;
  align-items: start;
}

.card.is-alone > .media,
.card.is-alone > .cover {
  grid-column: 1;
  grid-row: 1 / span 2;
  border-bottom: 0;
  border-right: var(--bw) solid #000;
}

.card.is-alone > .card-body {
  grid-column: 2;
  grid-row: 1;
}

.card.is-alone > .card-foot {
  display: flex;
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  margin-top: 0;
}

.cards > .card.is-alone[data-kit-media='0']:not(.has-cover) {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-rows: auto;
}

.card.is-alone[data-kit-media='0']:not(.has-cover) > .card-body {
  grid-column: 1;
}

.card.is-alone[data-kit-media='0']:not(.has-cover) > .card-foot {
  grid-row: 1;
  align-self: stretch;
  justify-content: space-between;
  padding-top: 1.15rem;
  border-left: 2px dashed #000;
}

/* the only card under the featured ones: a number block, the story and the stack in one row */
.card.is-lone {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1.4fr) minmax(0, 1fr);
}

.card.is-lone .lone-tile {
  display: grid;
  place-items: center;
  background: var(--cyan);
  border-right: var(--bw) solid #000;
  font-size: 2.6rem;
  font-weight: 700;
}

.card.is-lone .card-body {
  padding: 1.3rem 1.5rem;
}

.card.is-lone .card-foot {
  justify-content: space-between;
  margin-top: 0;
  padding: 1.3rem 1.5rem;
  border-left: 2px dashed #000;
}

.card.is-lone.has-media {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  grid-template-rows: auto 1fr;
}

.card.is-lone.has-media .media {
  grid-row: 1 / span 2;
  border-bottom: 0;
  border-right: var(--bw) solid #000;
}

.card.is-lone.has-media .media img {
  height: 100%;
}

.card.is-lone.has-media .card-foot {
  border-left: 0;
}

/* -------------------------------------------------------------------------------- skills */

.groups {
  --max: 3;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.75rem;
}

.group {
  grid-column: span 4;
  min-width: 0;
  background: #fff;
  border: var(--bw) solid #000;
  box-shadow: var(--sh);
}

.group-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.7rem 0.95rem;
  background: var(--yellow);
  border-bottom: var(--bw) solid #000;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.group:nth-of-type(4n + 2) .group-head {
  background: var(--cyan);
}

.group:nth-of-type(4n + 3) .group-head {
  background: var(--pink);
}

.group:nth-of-type(4n + 4) .group-head {
  background: var(--mint);
}

.group-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  background: #fff;
  border: 2px solid #000;
  font-size: 1.05rem;
}

.group-name {
  min-width: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 1rem 0.95rem 1.1rem;
  list-style: none;
}

.chips li {
  padding: 0.18rem 0.6rem;
  background: #fff;
  border: 2px solid #000;
  border-radius: 4px;
  box-shadow: 2px 2px 0 #000;
  font-family: var(--kit-font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------- credentials */

.creds {
  padding-top: var(--sec-pad);
}

.creds-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.25rem;
  align-items: stretch;
}

.cred {
  min-width: 0;
  background: #fff;
  border: var(--bw) solid #000;
  box-shadow: 8px 8px 0 #000;
}

.cred-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.75rem 1.15rem;
  background: var(--yellow);
  border-bottom: var(--bw) solid #000;
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

#certifications .cred-title {
  background: var(--cyan);
}

.cred-title .kit-icon {
  flex: none;
}

.edus,
.certs {
  --max: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.edu,
.cert {
  grid-column: span 12;
  min-width: 0;
  padding: 1.1rem 1.15rem 1.2rem;
  border-top: 2px solid #000;
}

.edus > .edu:first-of-type,
.certs > .cert:first-of-type {
  border-top: 0;
}

.edu-when {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.12rem 0.5rem;
  background: #000;
  color: #fff;
  font-family: var(--kit-font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
}

.edu-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.edu-inst {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.75rem;
  margin: 0.2rem 0 0;
}

.edu-school {
  font-weight: 500;
}

.edu-loc {
  color: var(--ink-2);
  font-family: var(--kit-font-mono);
  font-size: 0.875rem;
  line-height: 1.9;
}

.edu-details {
  display: grid;
  gap: 0.3rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.edu-details li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.98rem;
}

.edu-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  background: #000;
}

.cert-name {
  display: inline;
  color: #000;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
}

a.cert-name[href] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

a.cert-name[href]::after {
  content: ' \2197';
}

a.cert-name[href]:hover {
  background: var(--yellow);
}

.cert-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin: 0.4rem 0 0;
}

.cert-issuer {
  font-weight: 500;
}

.cert-date {
  padding: 0.05rem 0.45rem;
  background: #000;
  color: #fff;
  font-family: var(--kit-font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
}

/* one credential alone: its title becomes a block beside the entries */
.creds.is-single .creds-grid {
  grid-template-columns: minmax(0, 1fr);
}

.creds.is-single .cred {
  display: grid;
  grid-template-columns: minmax(11rem, 17rem) minmax(0, 1fr);
}

.creds.is-single .cred-title {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.4rem 1.5rem;
  border-bottom: 0;
  border-right: var(--bw) solid #000;
  font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem);
}

.creds.is-single .cred-title .kit-icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.45rem;
  background: #fff;
  border: var(--bw) solid #000;
  box-shadow: var(--sh-sm);
}

.creds.is-single .edu,
.creds.is-single .cert {
  padding: 1.3rem 1.5rem 1.4rem;
}

/* ------------------------------------------------------------------------------- contact */

.contact {
  padding-bottom: var(--sec-pad);
}

.contact-block {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 2.25rem 3.5rem;
  align-items: center;
  padding: clamp(1.6rem, 4.5vw, 3.25rem);
  background: var(--yellow);
  border: 4px solid #000;
  box-shadow: 12px 12px 0 #000;
}

.contact.is-solo .contact-block {
  grid-template-columns: minmax(0, 1fr);
}

.contact-lead {
  min-width: 0;
}

.contact-note {
  margin: 0;
  font-family: var(--hand);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-3deg);
  transform-origin: left center;
}

.contact-title {
  margin: 0.3rem 0 1rem;
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.contact-intro {
  max-width: 32em;
  margin: 0 0 1.4rem;
  font-size: 1.15rem;
  line-height: 1.6;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.45rem 0.85rem;
  background: #000;
  color: #fff;
  border-radius: var(--r);
  font-family: var(--kit-font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.45;
}

.status-dot {
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--cyan);
}

.channels {
  display: grid;
  gap: 0.95rem;
  min-width: 0;
}

.channels .kit-contact {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  padding: 0.7rem 0.95rem;
  background: #fff;
  border: var(--bw) solid #000;
  border-radius: var(--r);
  box-shadow: 5px 5px 0 #000;
  color: #000;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background-color 0.12s ease;
}

.channels .kit-contact:hover {
  background: var(--cyan);
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 #000;
}

.ch-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  background: var(--cyan);
  border: var(--bw) solid #000;
  border-radius: var(--r);
  font-size: 1.15rem;
}

.channels .kit-contact:hover .ch-icon {
  background: #fff;
}

.ch-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ch-label {
  color: var(--ink-2);
  font-family: var(--kit-font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ch-value {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
}

.ch-arrow {
  flex: none;
  margin-left: auto;
  font-size: 1.2rem;
}

/* -------------------------------------------------------------------------------- footer */

.foot {
  background: #000;
  color: #fff;
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-block: 1.6rem;
}

.foot-copy {
  margin: 0;
  font-family: var(--kit-font-mono);
  font-size: 0.9375rem;
}

.foot-top {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  background: var(--yellow);
  border: var(--bw) solid #fff;
  border-radius: var(--r);
  color: #000;
  font-weight: 700;
  text-decoration: none;
}

.foot-top:hover {
  background: var(--cyan);
}

.foot :focus-visible {
  outline-color: var(--yellow);
}

/* -------------------------------------------------------------------------------- motion */

@keyframes bob {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -8px;
  }
}

.motion-ok .tile--code {
  animation: bob 4.2s ease-in-out infinite;
}

.motion-ok .tile--term {
  animation: bob 5s ease-in-out 0.6s infinite;
}

.motion-ok .tile--disk {
  animation: bob 4.6s ease-in-out 1.2s infinite;
}

/* ---------------------------------------------------------------------------- responsive */

@media (max-width: 1180px) {
  .cards {
    --max: 2;
  }

  .groups {
    --max: 2;
  }
}

@media (max-width: 1024px) {
  .feat-body {
    gap: 1.5rem 2rem;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .hero.no-photo .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'copy'
      'art'
      'readouts'
      'console';
  }

  .hero.no-photo .hero-grid {
    grid-template-areas:
      'copy'
      'readouts'
      'console';
  }

  .hero-art {
    padding: 1.5rem 2.25rem 2.25rem;
  }

  .frame-wrap {
    width: min(100%, 22rem);
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .readouts {
    --max: 2;
  }

  .creds-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .creds.is-single .cred {
    grid-template-columns: minmax(0, 1fr);
  }

  .creds.is-single .cred-title {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 1.15rem;
    border-right: 0;
    border-bottom: var(--bw) solid #000;
    font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem);
  }

  .creds.is-single .cred-title .kit-icon {
    width: 1em;
    height: 1em;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .hero.no-photo .console-out {
    flex: none;
    min-height: 0;
    max-height: 23rem;
  }

  .contact-block {
    grid-template-columns: minmax(0, 1fr);
  }

  .feat-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .card.is-lone {
    grid-template-columns: 6rem minmax(0, 1fr);
  }

  .card.is-lone .card-foot {
    grid-column: 2;
    padding-top: 0;
    border-left: 0;
  }

  .card.is-lone .lone-tile {
    grid-row: 1 / span 2;
  }

  .card.is-lone.has-media {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }

  .card.is-lone.has-media .media {
    grid-row: auto;
    border-right: 0;
    border-bottom: var(--bw) solid #000;
  }

  .card.is-lone.has-media .card-foot {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .console > .tile--code {
    right: -0.5rem;
  }

  .role-body,
  .role.no-wins .role-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .role-when {
    flex-basis: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .cards,
  .groups {
    --max: 1;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 1rem;
  }

  .bar {
    top: 0.5rem;
    margin-top: 0.5rem;
  }

  .brand-name {
    display: none;
  }

  .hero {
    padding-top: 2.25rem;
  }

  .hello {
    font-size: 1.9rem;
  }

  .summary {
    font-size: 1.0625rem;
  }

  .hero-art {
    padding: 1.25rem 1.9rem 2rem;
  }

  .tile {
    width: 3.6rem;
    height: 3.6rem;
  }

  .tile--code {
    top: -1.4rem;
    left: -1.7rem;
  }

  .console > .tile--code {
    top: -1.6rem;
    left: auto;
    right: -0.5rem;
    width: 3.4rem;
    height: 3.4rem;
  }

  .tile--term {
    right: -1.8rem;
  }

  .tile--disk {
    bottom: -1.7rem;
  }

  .frame {
    box-shadow: 8px 8px 0 #000;
  }

  .readouts {
    gap: 1rem;
  }

  .readouts .kit-readout {
    padding: 0.9rem 1rem 1rem;
  }

  .console {
    box-shadow: 7px 7px 0 #000;
  }

  .console-out {
    min-height: 0;
    max-height: 21rem;
    padding-inline: 0.85rem;
    font-size: 0.875rem;
  }

  .out-kv {
    grid-template-columns: minmax(0, 1fr);
  }

  .out-k {
    font-size: 0.8125rem;
  }

  .roles {
    gap: 1.75rem;
    padding-left: 2rem;
  }

  .roles::before {
    left: 0.45rem;
  }

  .role-pin {
    left: calc(-2rem + 0.45rem + 2px - 0.65rem);
    width: 1.3rem;
    height: 1.3rem;
  }

  .role-card,
  .story,
  .facts-card,
  .now-card,
  .cred {
    box-shadow: 6px 6px 0 #000;
  }

  .role-head {
    padding: 0.9rem 1rem;
  }

  .role-id {
    flex-basis: 10rem;
  }

  .role-logo,
  .role-mono {
    width: 3rem;
    height: 3rem;
  }

  .role-body {
    padding: 1rem 1rem 1.15rem;
  }

  .role-foot {
    padding-inline: 1rem;
  }

  .fact {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.1rem;
  }

  .feat {
    box-shadow: 7px 7px 0 #000;
  }

  .feat .media img {
    aspect-ratio: 16 / 10;
  }

  .tape--media {
    left: 1.5rem;
    width: 6.5rem;
  }

  .card.is-lone {
    grid-template-columns: minmax(0, 1fr);
  }

  .card.is-lone .lone-tile {
    grid-row: auto;
    justify-content: start;
    padding: 0.6rem 1.2rem;
    border-right: 0;
    border-bottom: var(--bw) solid #000;
    font-size: 1.75rem;
  }

  .card.is-lone .card-foot {
    grid-column: auto;
  }

  .card.is-lone .card-body {
    padding: 1.1rem 1.2rem 0.4rem;
  }

  .card.is-lone .card-foot {
    padding: 0.85rem 1.2rem 1.25rem;
  }

  .contact-block {
    box-shadow: 8px 8px 0 #000;
  }

  .channels .kit-contact {
    padding: 0.6rem 0.75rem;
  }

  .ch-arrow {
    display: none;
  }

  .foot-in {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 380px) {
  .readouts {
    --max: 1;
  }
}
