:root {
  --bg: #0a0a0a;
  --fg: #f2f2f2;
  --muted: #9a9a9a;
  --soft: #cfcfcf;
  --line: #2a2a2a;
  --panel: #111111;
  --panel-2: #171717;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--fg);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    var(--bg);
  background-size: 56px 56px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.screen {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2vw, 22px);
}

.shell {
  width: min(1280px, 100%);
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.88);
  box-shadow: var(--shadow);
}

.links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.links a,
.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.92rem;
  font-weight: 750;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.download-link {
  gap: 7px;
}

.download-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.links a:hover,
.links a:focus-visible,
.button:hover,
.button:focus-visible {
  color: var(--fg);
  border-color: var(--fg);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.button.primary {
  color: var(--bg);
  background: var(--fg);
  border-color: var(--fg);
}

.intro {
  --profile-width: clamp(142px, 21vw, 206px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--profile-width);
  grid-template-rows: auto auto;
  align-items: end;
  column-gap: clamp(12px, 2.7vw, 34px);
  row-gap: clamp(20px, 4.8vw, 62px);
}

.copy {
  grid-column: 1;
  grid-row: 2;
  max-width: none;
}

.contact-row {
  grid-column: 1;
  grid-row: 1;
  justify-content: flex-start;
}

.intro-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.kicker,
.label {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.kicker {
  margin: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.65rem, 6vw, 4.9rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
  line-height: 1.1;
}

.lede {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--soft);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
}

.profile {
  width: var(--profile-width);
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-self: end;
  justify-items: start;
}

.portrait,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 206 / 274;
  object-fit: cover;
  object-position: center top;
}

.age-line {
  margin: 0;
  width: 100%;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  line-height: 1;
  overflow: hidden;
}

.age-line > span {
  flex: 0 0 auto;
  margin-left: 4px;
  text-transform: uppercase;
}

.age-line strong {
  min-width: 0;
  flex: 0 0 auto;
  height: 1em;
  display: inline-flex;
  align-items: flex-start;
  overflow: hidden;
  color: var(--soft);
  font-weight: 800;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.age-digit {
  display: inline-block;
  height: 1em;
  line-height: 1;
  overflow: hidden;
  vertical-align: baseline;
}

.age-digit-wheel {
  display: block;
  height: 10em;
  line-height: 1;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.age-digit-wheel span {
  display: block;
  height: 1em;
  line-height: 1;
}

.age-separator {
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .age-digit-wheel {
    transition: none;
  }
}

.matrix {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.panel {
  min-height: 0;
  padding: clamp(14px, 1.45vw, 18px);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.panel:hover,
.panel:focus-within {
  background: var(--panel-2);
  border-color: #555555;
  transform: translateY(-2px);
}

.panel p {
  margin-bottom: 0;
  color: var(--soft);
}

.path {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  color: var(--soft);
}

.path li {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
}

.path time {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.path span {
  min-width: 0;
  color: var(--fg);
  font-weight: 760;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.path a {
  font-weight: 880;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.career {
  grid-column: span 7;
}

.key-links {
  grid-column: span 5;
  display: grid;
  gap: 10px;
  align-content: start;
}

.link-card {
  display: grid;
  gap: 18px;
  min-height: 124px;
  padding: 16px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 160ms ease, border-color 160ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: var(--fg);
  background: rgba(255, 255, 255, 0.07);
}

.link-card strong {
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 1.05rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.link-card span {
  color: var(--soft);
  font-size: 0.94rem;
  line-height: 1.35;
}

.interests {
  display: grid;
  align-content: start;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.interest-card {
  min-width: 0;
  min-height: 94px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.interest-card[href]:hover,
.interest-card[href]:focus-visible {
  border-color: var(--fg);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.interest-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.interest-copy strong {
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.94rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.interest-copy > span {
  color: var(--soft);
  font-size: 0.86rem;
  line-height: 1.35;
}

.interest-arrow {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  transition: color 160ms ease, transform 160ms ease;
}

.interest-card[href]:hover .interest-arrow,
.interest-card[href]:focus-visible .interest-arrow {
  color: var(--fg);
  transform: translate(2px, -2px);
}

.error-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.error-page > div {
  width: min(620px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.error-page h1 {
  margin-bottom: 12px;
  font-size: 3rem;
}

.error-page p {
  color: var(--soft);
}

@media (max-width: 820px) {
  .matrix {
    grid-template-columns: 1fr;
  }

  .career,
  .key-links {
    grid-column: auto;
  }

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

@media (max-width: 720px) {
  .age-line {
    font-size: 8px;
  }
}

@media (max-width: 640px) {
  .screen {
    place-items: start;
    padding: 10px;
  }

  .shell {
    gap: 14px;
    padding: 14px;
  }

  .intro {
    row-gap: 16px;
  }

  .contact-row {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .copy {
    grid-column: 1;
    grid-row: 2;
  }

  .profile {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  .links a {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 0.84rem;
  }

  .contact-row {
    gap: 5px;
  }

  .panel {
    min-height: auto;
  }

  .link-card {
    min-height: auto;
  }
}

@media (min-width: 821px) and (max-height: 720px) {
  .screen {
    align-items: start;
    padding-block: 10px;
  }

  .shell {
    padding: 16px;
  }

  .intro {
    row-gap: 24px;
  }
}

@media (max-width: 560px) {
  .interest-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .interest-card {
    min-height: auto;
  }

  .path {
    gap: 12px;
  }

  .path li {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .path span {
    overflow-wrap: normal;
  }
}

@media (max-width: 420px) {
  .intro {
    --profile-width: min(180px, 60vw);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }

  .contact-row,
  .copy,
  .profile {
    grid-column: 1;
  }

  .contact-row {
    grid-row: 1;
    flex-wrap: wrap;
  }

  .copy {
    grid-row: 2;
  }

  .profile {
    grid-row: 3;
    justify-self: start;
  }

  h1 {
    font-size: clamp(2.25rem, 11vw, 2.65rem);
  }

}
