/* Evergreen Executive on the template kit.
   A deep green-black ground, teal line work and a single gold accent; Playfair Display for the
   name and the headings, Poppins for everything else. The signature pieces: the name in two
   inks, the typed title, the portrait card with its current-role card (a constellation monogram
   without a photo), the evergreen spine of the timeline and the hatched project panels. */

:root {
  --kit-bg: #0f1418;
  --kit-ink: #ffffff;
  --kit-accent: #36d4be;
  --kit-muted: #9aa8ad;
  --kit-radius: 12px;
  --kit-border: 1px solid rgba(255, 255, 255, 0.1);
  --kit-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  --kit-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --kit-font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --kit-font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --bg: #0f1418;
  --bg-deep: #080d10;
  --bg-raise: #151d22;
  --ink: #ffffff;
  --ink-2: #dbe3e7;
  --ink-3: #b8c5ca;
  --muted: #9aa8ad;
  --teal: #36d4be;
  --teal-2: #7fb7be;
  --teal-soft: #8eeedd;
  --gold: #e9c46a;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.16);
  --glass: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
  --teal-grad: linear-gradient(135deg, #36d4be 0%, #7fb7be 100%);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.32);
  --gutter: 24px;
  --section-pad: 104px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  background: var(--bg-deep);
  /* Playfair's old-style figures read "10" as "1o": lining figures everywhere */
  font-variant-numeric: lining-nums;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--kit-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  background:
    radial-gradient(1100px 680px at 10% -4%, rgba(54, 212, 190, 0.15), transparent 62%),
    radial-gradient(820px 560px at 94% 0%, rgba(233, 196, 106, 0.08), transparent 58%),
    linear-gradient(180deg, #0f1b1b 0, #0f1418 1000px, #0c1215 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

::selection {
  background: rgba(54, 212, 190, 0.32);
  color: var(--ink);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--teal);
  color: #06110f;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

main:focus {
  outline: none;
}

section[id] {
  scroll-margin-top: 84px;
}

/* ---------------------------------------------------------------- bands and section heads */
.band {
  position: relative;
}

.section {
  padding: var(--section-pad) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

main > .band:nth-child(even) {
  background: linear-gradient(180deg, rgba(21, 29, 34, 0.78), rgba(17, 24, 29, 0.66));
}

.section-head {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-index,
.col-index {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--teal);
  font-family: var(--kit-font-display);
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
}

.section-index::before,
.section-index::after {
  content: '';
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(54, 212, 190, 0.7));
}

.section-index::after,
.col-index::after {
  background: linear-gradient(90deg, rgba(54, 212, 190, 0.7), transparent);
}

.col-index::after {
  content: '';
  width: 44px;
  height: 1px;
}

.section-title {
  margin-top: 14px;
  color: var(--ink);
  font-family: var(--kit-font-display);
  font-size: clamp(2.15rem, 3.4vw, 3.05rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------------------------- nav */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition:
    background 0.3s ease,
    padding 0.3s ease,
    border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled,
.navbar.open {
  padding: 12px 0;
  background: rgba(8, 13, 16, 0.9);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(54, 212, 190, 0.45);
  border-radius: 12px;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(54, 212, 190, 0.26),
    rgba(54, 212, 190, 0.06)
  );
  color: var(--teal-soft);
  font-family: var(--kit-font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-name,
.brand-short {
  overflow: hidden;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.brand-short {
  display: none;
}

.nav-menu {
  flex-wrap: nowrap;
  gap: 4px;
}

/* the links keep their words whole; the brand gives way (it ellipsises) */
.nav-menu > li {
  flex: none;
}

.kit-nav__link {
  display: inline-block;
  overflow-wrap: normal;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.kit-nav__link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease;
}

.navbar.open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.navbar.open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ------------------------------------------------------------------------------ hero */
.hero {
  padding: 150px 0 84px;
  overflow-x: clip;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
}

.hero-field {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  /* the copy column ends before 54% at every two-column width; the field starts after 58% */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 58%, #000 80%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 58%, #000 80%);
}

@media (max-width: 960px) {
  .hero-field {
    display: none;
  }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.8fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 15px 7px 12px;
  border: 1px solid rgba(54, 212, 190, 0.24);
  border-radius: 999px;
  background: rgba(54, 212, 190, 0.08);
  color: var(--teal-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-kicker .kit-icon {
  color: var(--teal);
}

.hero-name {
  margin: 24px 0 20px;
  color: var(--ink);
  font-family: var(--kit-font-display);
  font-size: clamp(3.1rem, 5.6vw, 5.3rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
}

html[data-name-long='1'] .hero-name {
  font-size: clamp(2.6rem, 4.2vw, 3.9rem);
  line-height: 1.08;
}

.hero-name .rest {
  background: var(--teal-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title {
  color: var(--ink);
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
  font-weight: 600;
  line-height: 1.35;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 5px;
  background: var(--teal);
  vertical-align: -0.14em;
  animation: caret-blink 1s steps(1) infinite;
}

.caret.done {
  opacity: 0;
  animation: none;
  transition: opacity 0.6s ease;
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

.hero-summary {
  max-width: 620px;
  margin: 22px 0 34px;
  color: var(--ink-3);
  font-size: 1.075rem;
  line-height: 1.82;
}

.hero-cta {
  gap: 14px;
}

.kit-cta {
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.kit-cta:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.5);
}

.kit-cta--primary {
  border-color: transparent;
  background: var(--teal-grad);
  color: #06110f;
  box-shadow: 0 10px 28px rgba(47, 196, 178, 0.28);
}

.kit-cta--primary:hover {
  background: var(--teal-grad);
  box-shadow: 0 14px 34px rgba(47, 196, 178, 0.4);
}

.kit-cta--resume {
  border-color: rgba(54, 212, 190, 0.5);
}

.kit-cta--resume .kit-icon {
  color: var(--teal);
}

.hero-social {
  gap: 12px;
  margin-top: 30px;
}

.kit-social__link {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-2);
  font-size: 18px;
  transition:
    transform 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.kit-social__link:hover {
  transform: translateY(-3px);
  border-color: rgba(54, 212, 190, 0.6);
  color: var(--teal);
}

/* the visual: the portrait card, or the constellation monogram, with the current-role card */
.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 440px);
}

.hero-constellation {
  position: absolute;
  top: -90px;
  right: -90px;
  bottom: -70px;
  left: -30px;
  z-index: 0;
  width: calc(100% + 120px);
  height: calc(100% + 160px);
  overflow: visible;
  pointer-events: none;
}

html[data-kit-photo='0'] .hero-constellation {
  display: none;
}

.portrait-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  object-position: 50% 30%;
}

.portrait-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 13, 16, 0) 55%, rgba(8, 13, 16, 0.35)),
    linear-gradient(135deg, rgba(54, 212, 190, 0.18), transparent 38%);
}

.portrait-frame::after,
.emblem::after {
  content: '';
  position: absolute;
  inset: 12px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  pointer-events: none;
}

.portrait-frame .kit-caption {
  position: absolute;
  top: 26px;
  right: 26px;
  z-index: 3;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(8, 13, 16, 0.86);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
}

.emblem {
  display: none;
}

html[data-kit-photo='0'] .emblem {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 44%, rgba(54, 212, 190, 0.2), transparent 58%),
    linear-gradient(165deg, #142321 0%, #0d1517 55%, #0a1012 100%);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

.emblem-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.c-link {
  stroke: #36d4be;
  stroke-width: 1;
}

.c-node {
  fill: #36d4be;
}

.c-node--soft {
  fill: #7fb7be;
}

.c-node--gold {
  fill: #e9c46a;
}

.c-node--white {
  fill: #ffffff;
}

.e-ring {
  fill: none;
  stroke: rgba(54, 212, 190, 0.6);
  stroke-width: 1.2;
}

.e-ring--dash {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-dasharray: 2 7;
}

.e-disc {
  fill: rgba(8, 13, 16, 0.7);
}

.e-initials {
  font-family: var(--kit-font-display);
  font-size: 96px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-proof {
  position: absolute;
  bottom: 36px;
  left: -40px;
  z-index: 4;
  width: min(82%, 330px);
  padding: 18px 20px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: rgba(8, 13, 16, 0.9);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.proof-kicker {
  display: block;
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.proof-main {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.35;
}

.proof-sub {
  display: block;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.5;
}

/* readouts: one glass tile per figure, as many columns as figures */
.hero-highlights {
  --n: 3;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 20px;
  margin-top: 76px;
}

.hero-highlights[data-kit-count='1'] {
  --n: 1;
  max-width: 380px;
}

.hero-highlights[data-kit-count='2'] {
  --n: 2;
  max-width: 800px;
}

.hero-highlights[data-kit-count='4'] {
  --n: 4;
}

.kit-readout {
  position: relative;
  gap: 6px;
  padding: 24px 24px 22px;
  border: var(--kit-border);
  border-radius: 16px;
  background: var(--glass);
}

.kit-readout::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 24px;
  width: 40px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal-grad);
}

.kit-readout__value {
  color: var(--teal);
  font-family: var(--kit-font-display);
  font-size: clamp(2rem, 2.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
}

.kit-readout__label {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.45;
}

/* ----------------------------------------------------------------------------- about */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 64px;
  align-items: start;
}

.about-layout.is-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 840px;
  margin: 0 auto;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.about-p {
  color: var(--ink-3);
  font-size: 1.0625rem;
  line-height: 1.85;
}

.about-p:first-of-type {
  padding-left: 24px;
  border-left: 3px solid var(--teal);
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.7;
}

.about-facts {
  padding: 8px 30px;
  border: var(--kit-border);
  border-radius: 20px;
  background: var(--glass);
  box-shadow: var(--shadow-lg);
}

.fact {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.fact:last-child {
  border-bottom: 0;
}

.fact dt {
  padding-top: 3px;
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.fact dd {
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.55;
}

.fact:not(:has(dt)) {
  grid-template-columns: minmax(0, 1fr);
}

/* ------------------------------------------------------------------------ experience */
.timeline {
  position: relative;
  display: grid;
  gap: 56px;
  max-width: 1100px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(54, 212, 190, 0.7),
    rgba(127, 183, 190, 0.45) 60%,
    rgba(233, 196, 106, 0.4)
  );
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
  align-items: start;
}

.tl-node {
  position: relative;
  z-index: 1;
  grid-row: 1;
  grid-column: 2;
  justify-self: center;
  width: 20px;
  height: 20px;
  margin-top: 34px;
  border: 3px solid var(--teal);
  border-radius: 50%;
  background: var(--bg);
  box-shadow:
    0 0 0 7px rgba(54, 212, 190, 0.12),
    0 0 24px rgba(54, 212, 190, 0.5);
}

.tl-brand {
  grid-row: 1;
  display: grid;
  justify-items: end;
  gap: 14px;
  padding-top: 18px;
  text-align: right;
}

.tl-when {
  display: grid;
  justify-items: inherit;
  gap: 6px;
}

.tl-card {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 30px 32px 0;
  border: var(--kit-border);
  border-radius: 20px;
  background: var(--glass);
  box-shadow: var(--shadow-lg);
}

.tl-item:nth-of-type(odd) .tl-brand {
  grid-column: 1;
}

.tl-item:nth-of-type(odd) .tl-card {
  grid-column: 3;
}

.tl-item:nth-of-type(even) .tl-brand {
  grid-column: 3;
  justify-items: start;
  text-align: left;
}

.tl-item:nth-of-type(even) .tl-card {
  grid-column: 1;
}

/* the company mark: a quiet mount that suits a logo with its own plate, a light logo and a
   transparent one; a dark transparent logo gets the pale mount (main.js reads its tone) */
.tl-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 68px;
  min-width: 68px;
  max-width: 220px;
  padding: 9px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tl-logo img {
  display: block;
  width: auto;
  height: 48px;
  max-width: 200px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: none;
  object-fit: contain;
}

.tl-logo.is-pale {
  border-color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(150deg, #eef3f1, #d4dedb);
}

.tl-mono {
  display: inline-grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(54, 212, 190, 0.4);
  border-radius: 16px;
  background: radial-gradient(
    circle at 30% 25%,
    rgba(54, 212, 190, 0.24),
    rgba(54, 212, 190, 0.05) 70%
  );
  color: var(--teal-soft);
  font-family: var(--kit-font-display);
  font-size: 24px;
  font-weight: 700;
}

.tl-dates {
  color: var(--ink);
  font-family: var(--kit-font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.3;
}

.tl-loc {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.45;
}

.tl-loc .kit-icon {
  color: var(--teal);
}

.tl-title {
  color: var(--ink);
  font-family: var(--kit-font-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.25;
}

.tl-company {
  margin-top: 6px;
  color: var(--teal-soft);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.tl-company a {
  text-decoration: none;
}

.tl-company a[href]:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.tl-desc {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 15.5px;
  line-height: 1.75;
}

.tl-points,
.points,
.edu-details {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.tl-points li,
.points li,
.edu-details li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}

.tl-points li::before,
.points li::before,
.edu-details li::before {
  content: '';
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(54, 212, 190, 0.14);
}

.tl-earlier {
  margin-top: 20px;
  padding: 14px 18px;
  border-left: 2px dashed rgba(54, 212, 190, 0.45);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.035);
}

.tl-earlier-label {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tl-earlier-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.kit-earlier {
  justify-content: space-between;
  gap: 2px 14px;
  font-size: 14.5px;
  line-height: 1.5;
}

.kit-earlier__title {
  color: var(--ink);
  font-weight: 500;
}

.kit-earlier__dates {
  color: var(--muted);
}

/* the closed footer: the stack across the foot of the card */
.tl-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px -32px 0;
  padding: 16px 32px 20px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}

.tl-tech li,
.tags li,
.skill-list li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.tl-card > :last-child:not(.tl-tech) {
  margin-bottom: 30px;
}

/* -------------------------------------------------------------------------- projects */
.chip {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 12px;
  border: 1px solid rgba(54, 212, 190, 0.26);
  border-radius: 999px;
  background: rgba(54, 212, 190, 0.09);
  color: var(--teal-soft);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.kit-link {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.kit-link:hover {
  border-color: rgba(54, 212, 190, 0.6);
  background: rgba(54, 212, 190, 0.1);
}

.kit-link .kit-icon {
  color: var(--teal);
}

/* the hatched panel: the source's project visual, and the ground under every picture */
.pf-media,
.pc-visual {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(54, 212, 190, 0.24), transparent 46%),
    radial-gradient(circle at 100% 100%, rgba(233, 196, 106, 0.1), transparent 40%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 12px),
    #111b1d;
}

.pf-media[data-num]::after,
.pc-visual[data-num]::after {
  content: attr(data-num);
  position: absolute;
  color: rgba(255, 255, 255, 0.16);
  font-family: var(--kit-font-display);
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.panel-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.project-feature[data-kit-media='1'] .pf-media::after,
.project-card[data-kit-media='1'] .pc-visual::after {
  content: none;
}

.featured-list {
  gap: 32px;
}

.featured-list:not([data-kit-count='0']) + .projects-grid {
  margin-top: 32px;
}

.project-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  align-content: stretch;
  column-gap: 0;
  padding: 0;
  overflow: hidden;
  border: var(--kit-border);
  border-radius: 24px;
  background: var(--glass);
  box-shadow: var(--shadow-lg);
}

/* explicit cells: kit.css would put every child of a split card but the media in column 2 */
.project-feature > .pf-media {
  grid-row: 1;
  grid-column: 1;
  padding: 0;
}

.project-feature > .pf-body {
  grid-row: 1;
  grid-column: 2;
  padding: 44px 46px;
}

.project-feature:nth-of-type(even) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
}

.project-feature:nth-of-type(even) > .pf-media {
  grid-column: 2;
}

.project-feature:nth-of-type(even) > .pf-body {
  grid-column: 1;
}

/* a number shows once: on the hatched panel when there is no picture, else beside the category */
.project-feature[data-kit-media='0'] .pf-num,
.project-card[data-kit-media='0'] .pc-num {
  display: none;
}

.pf-media {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
}

.pf-media::after {
  right: 36px;
  bottom: 24px;
  font-size: 9rem;
}

.pf-figure {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pf-figure.kit-media--render img {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 360px;
  aspect-ratio: auto;
  object-fit: cover;
}

.kit-media--schematic {
  justify-content: center;
}

.pf-figure.kit-media--schematic img,
.pc-figure.kit-media--schematic img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: var(--bg);
  object-fit: contain;
}

.pf-figure.kit-media--schematic {
  padding: 28px 28px 18px;
}

.pf-figure + .pf-figure {
  flex: none;
  padding-top: 0;
}

.kit-media--render .kit-caption {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(8, 13, 16, 0.86);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
}

.kit-media--schematic .kit-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 14px;
  padding: 12px 2px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.fig-open {
  color: var(--teal-soft);
  font-weight: 600;
  text-decoration: none;
}

.fig-open:hover {
  text-decoration: underline;
}

.pf-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 44px 46px;
}

.pf-meta,
.pc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.pf-num,
.pc-num {
  color: var(--teal);
  font-family: var(--kit-font-display);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
}

.pf-name {
  margin-top: 16px;
  color: var(--ink);
  font-family: var(--kit-font-display);
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
}

.pf-desc {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1.75;
}

.pf-body .points {
  margin-top: 18px;
}

.pf-body .tags {
  margin-top: 24px;
}

.pf-body .links {
  margin-top: 24px;
}

/* the rest: a six-column grid whose rows always close (1 wide; 2 and 4 in halves; 3, 6, 9
   and 12 in thirds; the last two of 5, 8 and 11 in halves; the last four of 7 and 10 as two
   pairs). Each card is a subgrid of four rows, so heads, bodies and footers line up. */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px;
}

.project-card {
  grid-column: span 2;
  grid-row: span 4;
  display: grid;
  grid-template-rows: subgrid;
  row-gap: 0;
  overflow: hidden;
  border: var(--kit-border);
  border-radius: 20px;
  background: var(--glass);
  box-shadow: var(--shadow-lg);
}

.projects-grid[data-kit-count='2'] > .project-card,
.projects-grid[data-kit-count='4'] > .project-card,
.projects-grid[data-kit-count='5'] > .project-card:nth-last-child(-n + 2),
.projects-grid[data-kit-count='8'] > .project-card:nth-last-child(-n + 2),
.projects-grid[data-kit-count='11'] > .project-card:nth-last-child(-n + 2),
.projects-grid[data-kit-count='7'] > .project-card:nth-last-child(-n + 4),
.projects-grid[data-kit-count='10'] > .project-card:nth-last-child(-n + 4) {
  grid-column: span 3;
}

.pc-visual {
  display: flex;
  flex-direction: column;
  min-height: 104px;
  border-bottom: 1px solid var(--line);
}

/* the picture fills its panel: a render beside a taller schematic card grows (cropped), never
   leaving a strip of hatch under it */
.pc-figure {
  position: relative;
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}

.pc-visual::after {
  right: 22px;
  bottom: 14px;
  font-size: 3.4rem;
}

.pc-figure.kit-media--render img {
  flex: 1 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.pc-figure.kit-media--schematic {
  padding: 18px 18px 14px;
}

.pc-figure.kit-media--render .kit-caption {
  bottom: 12px;
  left: 12px;
}

.pc-pip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 38%;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
}

.pc-pip img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.pc-head {
  padding: 26px 28px 0;
}

.pc-name {
  margin-top: 14px;
  color: var(--ink);
  font-family: var(--kit-font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
}

.pc-body {
  padding: 12px 28px 0;
}

.pc-desc {
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.72;
}

.pc-body .points {
  margin-top: 14px;
}

.pc-foot {
  display: grid;
  align-content: start;
  gap: 18px;
  margin-top: 24px;
  padding: 18px 28px 24px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.16);
}

/* a lone card on its row runs the full width, its panel beside its notes */
.projects-grid[data-kit-count='1'] > .project-card {
  grid-column: 1 / -1;
  grid-row: auto;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  grid-template-rows: auto 1fr auto;
}

.projects-grid[data-kit-count='1'] .pc-visual {
  grid-column: 1;
  grid-row: 1 / -1;
  min-height: 260px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.projects-grid[data-kit-count='1'] .pc-visual::after {
  font-size: 7rem;
}

.projects-grid[data-kit-count='1'] .pc-head,
.projects-grid[data-kit-count='1'] .pc-body,
.projects-grid[data-kit-count='1'] .pc-foot {
  grid-column: 2;
}

.projects-grid[data-kit-count='1'] .pc-head {
  padding-top: 36px;
}

.projects-grid[data-kit-count='1'] .pc-figure.kit-media--render img {
  min-height: 260px;
}

/* ---------------------------------------------------------------------------- skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.skill-category {
  grid-column: span 4;
  padding: 28px 28px 30px;
  border: var(--kit-border);
  border-radius: 20px;
  background: var(--glass);
  box-shadow: var(--shadow-lg);
}

.skills-grid[data-kit-count='1'] > .skill-category {
  grid-column: 3 / span 8;
}

.skills-grid[data-kit-count='2'] > .skill-category,
.skills-grid[data-kit-count='4'] > .skill-category,
.skills-grid[data-kit-count='5'] > .skill-category:nth-of-type(n + 4) {
  grid-column: span 6;
}

.skills-grid[data-kit-count='7'] > .skill-category:nth-of-type(-n + 4),
.skills-grid[data-kit-count='8'] > .skill-category {
  grid-column: span 3;
}

.skill-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.skill-index {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(54, 212, 190, 0.3);
  border-radius: 12px;
  background: rgba(54, 212, 190, 0.09);
  color: var(--teal-soft);
  font-family: var(--kit-font-display);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 600;
}

.skill-title {
  color: var(--ink);
  font-size: 1.075rem;
  font-weight: 600;
  line-height: 1.35;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ----------------------------------------------------------------------- credentials */
.credentials {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: start;
}

.credentials.is-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 880px;
}

.credentials.is-single .col-head {
  justify-content: center;
}

.col-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.col-icon {
  width: 52px;
  height: 52px;
  padding: 14px;
  border: 1px solid rgba(54, 212, 190, 0.3);
  border-radius: 14px;
  background: rgba(54, 212, 190, 0.09);
  color: var(--teal);
}

.col-icon--gold {
  border-color: rgba(233, 196, 106, 0.35);
  background: rgba(233, 196, 106, 0.09);
  color: var(--gold);
}

.col-index {
  font-size: 1rem;
}

.col-title {
  margin-top: 6px;
  color: var(--ink);
  font-family: var(--kit-font-display);
  font-size: clamp(1.8rem, 2.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
}

.edu-list {
  gap: 20px;
}

.edu-card {
  padding: 26px 30px 28px;
  border: var(--kit-border);
  border-left: 3px solid var(--teal);
  border-radius: 18px;
  background: var(--glass);
  box-shadow: var(--shadow-lg);
}

.edu-dates {
  color: var(--teal-soft);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.edu-degree {
  margin-top: 8px;
  color: var(--ink);
  font-family: var(--kit-font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
}

.edu-inst {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.5;
}

.edu-loc {
  color: var(--muted);
  font-weight: 400;
}

.edu-details {
  margin-top: 14px;
}

.cert-list {
  overflow: hidden;
  gap: 0;
  border: var(--kit-border);
  border-radius: 18px;
  background: var(--glass);
  box-shadow: var(--shadow-lg);
}

.cert {
  position: relative;
  padding: 22px 28px 22px 62px;
  border-bottom: 1px solid var(--line);
}

.cert:last-child {
  border-bottom: 0;
}

.cert::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 28px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(233, 196, 106, 0.12);
}

.cert-name {
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}

.cert-name[href] {
  text-decoration: underline;
  text-decoration-color: rgba(54, 212, 190, 0.55);
  text-underline-offset: 0.22em;
}

.cert-name[href]:hover {
  color: var(--teal-soft);
}

.cert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 14.5px;
  line-height: 1.5;
}

.cert-date {
  color: var(--muted);
}

/* --------------------------------------------------------------------------- contact */
.contact-section {
  overflow-x: clip;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  background: radial-gradient(700px 420px at 12% 30%, rgba(54, 212, 190, 0.12), transparent 70%);
}

.contact-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.contact-title {
  margin-top: 12px;
  color: var(--ink);
  font-family: var(--kit-font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.contact-intro {
  max-width: 520px;
  margin-top: 20px;
  color: var(--ink-3);
  font-size: 1.125rem;
  line-height: 1.8;
}

.contact-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-top: 26px;
  padding: 9px 18px 9px 14px;
  border: 1px solid rgba(54, 212, 190, 0.3);
  border-radius: 999px;
  background: rgba(54, 212, 190, 0.08);
  color: var(--teal-soft);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
}

.status-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(54, 212, 190, 0.18);
}

.contact-list {
  gap: 14px;
}

.kit-contact {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  grid-template-areas:
    'icon label'
    'icon value';
  align-items: center;
  column-gap: 18px;
  padding: 16px 22px;
  border: var(--kit-border);
  border-radius: 18px;
  background: var(--glass);
  color: var(--ink);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.kit-contact:hover {
  transform: translateX(4px);
  border-color: rgba(54, 212, 190, 0.45);
}

.kit-contact .kit-icon {
  grid-area: icon;
  width: 50px;
  height: 50px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(54, 212, 190, 0.1);
  color: var(--teal);
}

.ch-label {
  grid-area: label;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ch-value {
  grid-area: value;
  overflow-wrap: break-word;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}

/* ---------------------------------------------------------------------------- footer */
.footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.footer-name {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.footer-tagline,
.footer-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.back-to-top .kit-icon {
  transform: rotate(180deg);
  color: var(--teal);
}

.back-to-top:hover {
  border-color: rgba(54, 212, 190, 0.55);
}

/* ---------------------------------------------------------------------------- motion */
.motion-ok .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.motion-ok .reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------------ responsive */
/* tighter links when a long name needs the room (main.js navFit) */
.navbar.is-tight .nav-menu {
  gap: 0;
}

.navbar.is-tight .kit-nav__link {
  padding: 8px 9px;
}

/* the menu button and its dropdown: at 1080px and below, and wherever the links would squeeze
   the name below a readable width (main.js navFit adds is-compact) */
.navbar.is-compact .nav-toggle {
  display: inline-flex;
}

.navbar.is-compact .nav {
  position: absolute;
  top: 100%;
  right: max(var(--gutter), calc((100% - 1200px) / 2 + var(--gutter)));
  left: auto;
  display: none;
  width: min(360px, calc(100% - 2 * var(--gutter)));
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: rgba(8, 13, 16, 0.97);
  box-shadow: var(--shadow-lg);
}

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

.navbar.is-compact .nav-menu {
  display: grid;
  gap: 2px;
}

.navbar.is-compact .kit-nav__link {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 15px;
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: max(var(--gutter), calc((100% - 1200px) / 2 + var(--gutter)));
    left: auto;
    display: none;
    width: min(360px, calc(100% - 2 * var(--gutter)));
    margin-top: 8px;
    padding: 10px;
    border: 1px solid var(--line-2);
    border-radius: 18px;
    background: rgba(8, 13, 16, 0.97);
    box-shadow: var(--shadow-lg);
  }

  .navbar.open .nav {
    display: block;
  }

  .nav-menu {
    display: grid;
    gap: 2px;
  }

  .kit-nav__link {
    display: block;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
  }
}

@media (max-width: 960px) {
  :root {
    --section-pad: 84px;
  }

  .hero {
    padding: 124px 0 64px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .hero-visual {
    justify-self: center;
    width: min(100%, 440px);
  }

  .hero-proof {
    left: 20px;
  }

  .hero-highlights[data-kit-count='4'] {
    --n: 2;
  }

  .about-layout,
  .contact-layout,
  .credentials {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

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

  /* these beat the desktop count rules, which carry a count and a position */
  .projects-grid[data-kit-count] > .project-card:nth-of-type(n) {
    grid-column: span 1;
  }

  .projects-grid[data-kit-count] > .project-card:last-of-type:nth-of-type(odd) {
    grid-column: 1 / -1;
  }

  .skills-grid[data-kit-count] > .skill-category:nth-of-type(n) {
    grid-column: span 6;
  }

  .skills-grid[data-kit-count] > .skill-category:last-of-type:nth-of-type(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .timeline {
    gap: 40px;
  }

  .timeline::before {
    left: 10px;
    transform: none;
  }

  .tl-item {
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 20px;
    row-gap: 16px;
  }

  .tl-node {
    grid-column: 1;
    grid-row: 1;
    width: 18px;
    height: 18px;
    margin-top: 18px;
    justify-self: start;
    left: 2px;
  }

  /* on phones the mark sits on its own line, then the dates and the place on one line */
  .tl-item:nth-of-type(n) .tl-brand {
    grid-row: 1;
    grid-column: 2;
    justify-items: start;
    gap: 12px;
    padding-top: 0;
    text-align: left;
  }

  .tl-when {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 14px;
  }

  .tl-item:nth-of-type(n) .tl-card {
    grid-row: 2;
    grid-column: 2;
  }

  .tl-dates {
    font-family: var(--kit-font-body);
    font-size: 15.5px;
    font-weight: 600;
  }

  .tl-item:nth-of-type(n) .tl-node {
    margin-top: 25px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
    --section-pad: 72px;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .hero-highlights,
  .hero-highlights[data-kit-count] {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
    gap: 12px;
    margin-top: 48px;
  }

  .kit-readout {
    display: grid;
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    align-items: center;
    column-gap: 16px;
    padding: 18px 20px;
  }

  .kit-readout::before {
    left: 20px;
  }

  .kit-readout__value {
    font-size: 1.85rem;
  }

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

  .project-feature:nth-of-type(n) {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-feature:nth-of-type(n) > .pf-media {
    grid-row: 1;
    grid-column: 1;
  }

  .project-feature:nth-of-type(n) > .pf-body {
    grid-row: 2;
    grid-column: 1;
    padding: 28px 24px 30px;
  }

  .pf-media {
    min-height: 0;
  }

  .pf-media:not(:has(figure))::before {
    content: '';
    display: block;
    height: 150px;
  }

  .pf-media::after {
    right: 22px;
    bottom: 10px;
    font-size: 5.5rem;
  }

  .pf-figure.kit-media--render img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .pf-figure.kit-media--schematic {
    padding: 16px 16px 12px;
  }

  .projects-grid,
  .projects-grid[data-kit-count] {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .projects-grid[data-kit-count] > .project-card:nth-of-type(n),
  .projects-grid[data-kit-count] > .project-card:last-of-type:nth-of-type(odd) {
    grid-column: 1 / -1;
  }

  .projects-grid[data-kit-count='1'] > .project-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
  }

  .projects-grid[data-kit-count='1'] .pc-visual {
    grid-column: 1;
    grid-row: auto;
    min-height: 104px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .projects-grid[data-kit-count='1'] .pc-visual::after {
    font-size: 3.4rem;
  }

  .projects-grid[data-kit-count='1'] .pc-head,
  .projects-grid[data-kit-count='1'] .pc-body,
  .projects-grid[data-kit-count='1'] .pc-foot {
    grid-column: 1;
  }

  .projects-grid[data-kit-count='1'] .pc-head {
    padding-top: 26px;
  }

  .pc-head {
    padding: 22px 22px 0;
  }

  .pc-body {
    padding: 10px 22px 0;
  }

  .pc-foot {
    padding: 16px 22px 20px;
  }

  .skills-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .skills-grid[data-kit-count] > .skill-category:nth-of-type(n),
  .skills-grid[data-kit-count] > .skill-category:last-of-type:nth-of-type(odd) {
    grid-column: 1 / -1;
    padding: 22px 22px 24px;
  }

  .about-facts {
    padding: 4px 22px;
  }

  .fact {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 16px 0;
  }

  .tl-card {
    padding: 24px 22px 0;
  }

  .tl-tech {
    margin: 22px -22px 0;
    padding: 14px 22px 18px;
  }

  .tl-card > :last-child:not(.tl-tech) {
    margin-bottom: 24px;
  }

  .tl-title {
    font-size: 1.35rem;
  }

  .tl-logo {
    height: 56px;
    min-width: 56px;
    max-width: 170px;
    padding: 7px;
    border-radius: 14px;
  }

  .tl-logo img {
    height: 40px;
    max-width: 154px;
  }

  .tl-mono {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }

  .tl-item:nth-of-type(n) .tl-node {
    margin-top: 19px;
  }

  .edu-card {
    padding: 22px 22px 24px;
  }

  /* on phones the place and the date always take their own line, the same for every entry */
  .edu-inst,
  .cert-meta {
    flex-direction: column;
    gap: 2px;
  }

  .cert {
    padding: 20px 20px 20px 54px;
  }

  .cert::before {
    top: 28px;
    left: 22px;
  }

  .kit-contact {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
    padding: 14px 16px;
  }

  .kit-contact .kit-icon {
    width: 44px;
    height: 44px;
    padding: 12px;
  }

  .ch-value {
    font-size: 15px;
  }
}

@media (max-width: 560px) {
  .brand-name {
    display: none;
  }

  .brand-short {
    display: block;
  }

  .hero {
    padding: 112px 0 56px;
  }

  .hero-name {
    margin: 20px 0 16px;
    font-size: 2.65rem;
  }

  html[data-name-long='1'] .hero-name {
    font-size: 2.2rem;
  }

  .hero-title {
    font-size: 1.25rem;
  }

  .hero-summary {
    font-size: 1rem;
  }

  .hero-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .kit-cta {
    justify-content: center;
  }

  .hero-layout {
    gap: 44px;
  }

  /* with a photo, the portrait comes up under the title, so the first screen shows who this is */
  html[data-kit-photo='1'] .hero-layout {
    gap: 0;
  }

  html[data-kit-photo='1'] .hero-copy {
    display: contents;
  }

  html[data-kit-photo='1'] .hero-kicker {
    order: 1;
    justify-self: start;
  }

  html[data-kit-photo='1'] .hero-name {
    order: 2;
  }

  html[data-kit-photo='1'] .hero-title {
    order: 3;
  }

  html[data-kit-photo='1'] .hero-visual {
    order: 4;
    width: 100%;
    margin-top: 28px;
  }

  html[data-kit-photo='1'] .hero-summary {
    order: 5;
    margin-top: 28px;
  }

  html[data-kit-photo='1'] .hero-cta {
    order: 6;
  }

  html[data-kit-photo='1'] .hero-social {
    order: 7;
  }

  .portrait-frame {
    aspect-ratio: 6 / 5;
    border-radius: 24px;
  }

  html[data-kit-photo='0'] .emblem {
    aspect-ratio: 4 / 3;
    border-radius: 24px;
  }

  .portrait-frame::after,
  .emblem::after {
    inset: 10px;
    border-radius: 17px;
  }

  .hero-proof {
    position: relative;
    bottom: auto;
    left: auto;
    width: auto;
    margin: -38px 16px 0;
  }

  .hero-constellation {
    display: none;
  }

  .section-title {
    font-size: 2.05rem;
  }

  .about-p:first-of-type {
    padding-left: 18px;
    font-size: 1.125rem;
  }

  .contact-title {
    font-size: 2.4rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
