:root {
  --bg: #050807;
  --surface: #0e1615;
  --surface-2: #13201e;
  --line: rgba(125, 206, 198, 0.2);
  --line-strong: rgba(125, 206, 198, 0.55);
  --text: #e8f4f2;
  --muted: #93a8a4;
  --teal: #115e59;
  --teal-bright: #7dcec6;
  --teal-hot: #d7f7f3;
  --header: 72px;
  --max: 1120px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --font: "Inter Tight", "Segoe UI", sans-serif;
  --cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23008080' stroke-width='1.5'%3E%3C/circle%3E%3C/svg%3E") 24 24, auto;
  --cursor-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23008080' stroke-width='1.5'%3E%3C/circle%3E%3C/svg%3E") 30 30, auto;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  cursor: var(--cursor);
}

a,
button,
a *,
button * {
  cursor: var(--cursor-link);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(900px 480px at 78% 8%, rgba(17, 94, 89, 0.45), transparent 60%),
    radial-gradient(700px 420px at 8% 30%, rgba(17, 94, 89, 0.18), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  cursor: var(--cursor);
}

@property --spot-r {
  syntax: "<length>";
  inherits: false;
  initial-value: 320px;
}

.spotlight {
  --spot-r: 320px;
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: radial-gradient(var(--spot-r) circle at var(--spot-x, -30%) var(--spot-y, -30%), rgba(167, 232, 224, 0.22), rgba(17, 94, 89, 0.14) 32%, transparent 62%);
  transition: --spot-r 160ms ease;
}

.spotlight.is-tight {
  --spot-r: 140px;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 39px;
  height: 39px;
  margin: -19.5px 0 0 -19.5px;
  border: 3px solid #008080;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}

html.has-cursor,
html.has-cursor * {
  cursor: none;
}

html.has-cursor .cursor-ring {
  opacity: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

a,
button {
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

:focus-visible {
  outline: 2px solid var(--teal-hot);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: 8px;
  transform: translateY(-140%);
  background: var(--teal-hot);
  color: #06211f;
  padding: 8px 12px;
  z-index: 20;
  font-weight: 700;
}

.skip:focus {
  transform: none;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header);
  padding: 0 28px;
  background: rgba(5, 8, 7, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  text-decoration: none;
}

.menu {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--teal-hot);
}

.resume {
  border: 1px solid var(--teal-bright);
  color: var(--teal-hot) !important;
  border-radius: 999px;
  padding: 8px 14px;
}

.resume:hover {
  background: rgba(125, 206, 198, 0.12);
}

.rail {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 8;
}

.rail a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.rail a::after {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.rail a[aria-current="true"] {
  color: var(--teal-hot);
}

.rail a[aria-current="true"]::after {
  background: var(--teal-bright);
  border-color: var(--teal-bright);
}

.rail .label {
  display: none;
}

.rail a[aria-current="true"] .label {
  display: inline;
}

main {
  width: min(var(--max), calc(100% - 160px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - var(--header));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
}

.kicker {
  margin: 0 0 32px;
  color: var(--teal-bright);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(125, 206, 198, 0.15);
}

h1,
h2,
h3 {
  font-family: var(--font);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 7.4vw, 6.75rem);
  font-weight: 700;
  line-height: 0.96;
}

h1 .accent {
  display: block;
  margin-top: 0.06em;
  color: var(--teal-bright);
}

.roles {
  margin: 40px 0 0;
  color: var(--teal-hot);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.lede {
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.lede-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid var(--teal-bright);
  background: transparent;
  color: var(--teal-hot);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn:hover {
  background: rgba(125, 206, 198, 0.12);
}

.btn-solid {
  background: var(--teal);
  color: #f4fffd;
  border-color: var(--teal);
}

.btn-solid:hover {
  background: #18756f;
}

.text-link {
  color: var(--text);
  font-weight: 700;
}

.portrait {
  position: relative;
  margin: 0;
  justify-self: center;
  width: min(300px, 100%);
  --reveal-r: 110px;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 20%, #000 80%, transparent),
    linear-gradient(to bottom, transparent, #000 12%, #000 84%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 20%, #000 80%, transparent),
    linear-gradient(to bottom, transparent, #000 12%, #000 84%, transparent);
  mask-composite: intersect;
}

.portrait img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  filter: grayscale(1) sepia(1) hue-rotate(148deg) saturate(0.55) contrast(1.12) brightness(0.78);
}

.portrait .portrait-real {
  position: absolute;
  inset: 0;
  height: 100%;
  filter: none;
  opacity: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle var(--reveal-r) at var(--reveal-x, -40%) var(--reveal-y, -40%), #000 0%, #000 58%, transparent 78%);
  mask-image: radial-gradient(circle var(--reveal-r) at var(--reveal-x, -40%) var(--reveal-y, -40%), #000 0%, #000 58%, transparent 78%);
}

.portrait.is-hot .portrait-real {
  opacity: 1;
}

.now {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(20px, 4vh, 48px);
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}

.now p {
  margin: 0;
}

.now .label {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.now a {
  color: var(--teal-hot);
  font-weight: 700;
}

section {
  padding: 28px 0 48px;
  scroll-margin-top: var(--header);
}

h2 {
  margin: 16px 0 28px;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  max-width: 14ch;
  line-height: 0.98;
}

.story {
  max-width: 40rem;
  color: var(--muted);
  margin: 0 0 48px;
  line-height: 1.75;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.skills {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(125, 206, 198, 0.28);
  background-image:
    linear-gradient(105deg, transparent 36%, rgba(215, 247, 243, 0.24) 50%, transparent 64%),
    linear-gradient(180deg, rgba(215, 247, 243, 0.08), rgba(14, 22, 21, 0.42));
  color: var(--text);
  border-radius: 14px;
  padding: 16px 16px 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: inset 0 1px 0 rgba(215, 247, 243, 0.16);
}

.skill:hover,
.skill.is-on {
  border-color: var(--line-strong);
}

.skill strong {
  font-family: var(--font);
  font-size: 1.15rem;
  color: var(--teal-bright);
}

.skill em {
  grid-column: 1;
  font-style: normal;
  color: var(--muted);
  font-size: 0.92rem;
}

.pips {
  display: flex;
  gap: 4px;
  align-self: center;
}

.pips span {
  width: 16px;
  height: 4px;
  border-radius: 99px;
  background: #1c3330;
}

.pips[data-level="4"] span,
.pips[data-level="3"] span:nth-child(-n+3),
.pips[data-level="2"] span:nth-child(-n+2) {
  background: var(--teal-bright);
}

.about-grid>div:last-child {
  display: flex;
  flex-direction: column;
}

.proof[hidden] {
  display: none !important;
}

.proof {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid rgba(125, 206, 198, 0.34);
  background-image:
    linear-gradient(105deg, transparent 36%, rgba(215, 247, 243, 0.24) 50%, transparent 64%),
    linear-gradient(180deg, rgba(215, 247, 243, 0.1), rgba(14, 22, 21, 0.4));
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 rgba(215, 247, 243, 0.2),
    var(--shadow);
}

.proof p {
  margin: 0 0 14px;
}

.proof .note {
  margin-top: auto;
  margin-bottom: 0;
}

.proof .eyebrow {
  color: var(--teal-bright);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.proof h3 {
  margin: 0 0 12px;
  font-size: 1.7rem;
  line-height: 1.15;
}

.note {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: auto;
  margin-bottom: 0;
}

#experience {
  counter-reset: job;
}

#experience .story {
  margin-bottom: 20px;
}

.nuget-total {
  margin: 0 0 16px;
  color: var(--teal-hot);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nuget-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.nuget-list a {
  display: grid;
  grid-template-columns: minmax(160px, 1.3fr) 88px minmax(100px, 1.6fr);
  gap: 12px 16px;
  align-items: center;
  padding: 8px 2px;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.nuget-list li:last-child a {
  border-bottom: 1px solid var(--line);
}

.nuget-name {
  font-weight: 700;
}

.nuget-count {
  color: var(--teal-bright);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: right;
}

.nuget-bar {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: #1c3330;
  overflow: hidden;
}

.nuget-bar span {
  display: block;
  height: 100%;
  width: var(--share, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
}

.subhead {
  margin: 56px 0 0;
  color: var(--teal-bright);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timeline {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
}

.earlier {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}

.earlier li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.earlier li::before {
  counter-increment: job;
  content: counter(job, decimal-leading-zero);
  display: block;
  margin-bottom: 6px;
  color: var(--teal-bright);
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.earlier h3 {
  margin: 4px 0;
  font-size: 1.25rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.timeline li::before {
  counter-increment: job;
  content: counter(job, decimal-leading-zero);
  color: var(--teal-bright);
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.when {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline h3 {
  margin: 4px 0;
  font-size: 1.7rem;
}

.role {
  margin: 0;
  font-weight: 700;
}

.detail {
  margin: 8px 0 0;
  color: var(--muted);
}

.timeline-h {
  --timeline-gap: 22px;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: auto 16px auto;
  grid-auto-columns: max(250px, calc((100% - 3 * var(--timeline-gap)) / 4));
  column-gap: var(--timeline-gap);
  margin: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  touch-action: pan-x;
  padding: 2px 2px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--teal) transparent;
}

.timeline-h.is-dragging,
.timeline-h.is-free {
  scroll-snap-type: none;
  user-select: none;
}

.timeline-h li {
  display: grid;
  grid-template-rows: subgrid;
  grid-template-columns: none;
  grid-row: span 3;
  gap: 0;
  scroll-snap-align: start;
  min-width: 0;
  padding: 0;
  border-top: 0;
}

.timeline-h li::before {
  content: none;
  counter-increment: none;
}

.timeline-h li > div::before {
  content: none;
}

.timeline-h .node {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  height: 16px;
  margin: 0;
  z-index: 1;
}

.timeline-h .node::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 6px;
  width: calc(100% + var(--timeline-gap));
  height: 2px;
  background: linear-gradient(90deg, var(--line-strong), rgba(125, 206, 198, 0.28));
  transform: translateY(-50%);
}

.timeline-h li:last-child .node::before {
  width: 0;
}

.timeline-h .node::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--teal-bright);
  box-shadow: 0 0 0 5px rgba(17, 94, 89, 0.45);
  transform: translateY(-50%);
}

.timeline-h li:first-child .node::after {
  background: var(--teal-bright);
}

.timeline-h li > div {
  grid-column: 1 / -1;
  position: relative;
  padding: 12px 14px;
  border: 1px solid rgba(125, 206, 198, 0.28);
  border-radius: 14px;
  background-image:
    linear-gradient(105deg, transparent 36%, rgba(215, 247, 243, 0.16) 50%, transparent 64%),
    linear-gradient(180deg, rgba(215, 247, 243, 0.08), rgba(14, 22, 21, 0.42));
  background-size: 280% 100%, auto;
  box-shadow: inset 0 1px 0 rgba(215, 247, 243, 0.14);
}

.timeline-h li:nth-child(odd) > div {
  grid-row: 1;
  align-self: end;
  margin-bottom: 12px;
}

.timeline-h li:nth-child(even) > div {
  grid-row: 3;
  align-self: start;
  margin-top: 12px;
}

.timeline-h li:nth-child(odd) > div::after,
.timeline-h li:nth-child(even) > div::after {
  content: "";
  position: absolute;
  left: 5px;
  width: 2px;
  height: 12px;
  background: var(--line-strong);
}

.timeline-h li:nth-child(odd) > div::after {
  bottom: -12px;
}

.timeline-h li:nth-child(even) > div::after {
  top: -12px;
}

.timeline-h li:first-child > div {
  border-color: var(--line-strong);
}

.timeline-h li:hover > div {
  border-color: var(--line-strong);
}

.timeline-h h3 {
  font-size: 1.25rem;
  line-height: 1.2;
}

.cases {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 40px;
}

.cases::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 120px;
  right: 0;
  width: min(560px, 80%);
  height: 720px;
  background: radial-gradient(circle, rgba(17, 94, 89, 0.46), transparent 68%);
  pointer-events: none;
}

.case {
  position: relative;
  z-index: 1;
  padding: 36px;
  border: 1px solid rgba(125, 206, 198, 0.3);
  border-radius: 18px;
  background-image:
    linear-gradient(105deg, transparent 36%, rgba(215, 247, 243, 0.24) 50%, transparent 64%),
    linear-gradient(180deg, rgba(215, 247, 243, 0.09), rgba(14, 22, 21, 0.38));
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 rgba(215, 247, 243, 0.18),
    0 22px 50px rgba(0, 0, 0, 0.24);
}

.case header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.case h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.kind {
  color: var(--teal-bright);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.case-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  margin-top: 18px;
}

.case h4 {
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--teal-bright);
}

.case p {
  margin: 0 0 14px;
  color: var(--muted);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.steps b {
  color: var(--teal-bright);
  font-weight: 700;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--text);
  font-size: 0.85rem;
}

.contact h2 {
  max-width: 12ch;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: 28px 40px;
  align-items: start;
}

.contact-copy {
  min-width: 0;
}

.map {
  position: relative;
  margin: 0;
  height: clamp(260px, 46vh, 480px);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(215, 247, 243, 0.16), var(--shadow);
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(0.92) hue-rotate(168deg) saturate(0.45) brightness(0.92) contrast(0.94);
}

.email-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
}

.email {
  color: var(--teal-bright);
  font-family: var(--font);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  text-decoration: none;
}

.email:hover {
  color: var(--teal-hot);
}

.status {
  min-height: 1.4em;
  color: var(--teal-hot);
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 24px;
  padding: 0;
  list-style: none;
}

.social a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--text);
}

.social a:hover {
  border-color: var(--teal-bright);
  color: var(--teal-hot);
}

.contact-form {
  display: grid;
  gap: 10px;
  max-width: 34rem;
}

.contact-form .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.contact-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 8px 12px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 72px;
}

.contact-form .btn {
  justify-self: start;
  min-height: 40px;
}

.contact-form .btn:disabled {
  opacity: 0.6;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.foot a {
  color: var(--teal-bright);
}

.more {
  margin: 18px 0 0;
}

.more a {
  color: var(--teal-hot);
  font-weight: 700;
  text-decoration: none;
}

.more a:hover {
  color: var(--text);
}

.more .btn,
.more .btn:hover {
  color: #f4fffd;
}

.reel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  min-width: 0;
  min-height: 460px;
}

.reel-viewport {
  position: relative;
  flex: 1;
  min-height: 420px;
  perspective: 1280px;
  overflow: visible;
}

.reel-track {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
}

.reel-track > .case {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(400px, 32vw);
  height: 100%;
  margin: 0;
  padding-bottom: 96px;
  overflow: hidden;
  background-color: #101917;
  background-image:
    linear-gradient(105deg, transparent 36%, rgba(215, 247, 243, 0.24) 50%, transparent 64%),
    linear-gradient(180deg, rgba(215, 247, 243, 0.07), transparent 46%);
  box-shadow:
    inset 0 1px 0 rgba(215, 247, 243, 0.16),
    0 28px 60px rgba(0, 0, 0, 0.5);
  transform-origin: center center;
  backface-visibility: hidden;
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1), translate 860ms cubic-bezier(0.22, 1, 0.36, 1), opacity 720ms ease, filter 720ms ease, background-position 1400ms ease, background-color 700ms ease, box-shadow 860ms ease, border-color 700ms ease;
}

.reel-track > .case.is-on {
  background-position: -70% 0, 0 0;
  border-color: var(--line-strong);
  box-shadow:
    inset 0 1px 0 rgba(215, 247, 243, 0.28),
    0 28px 60px rgba(0, 0, 0, 0.5);
}

.reel-track > .case::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(105deg, transparent 36%, rgba(215, 247, 243, 0.28) 50%, transparent 64%);
  background-repeat: no-repeat;
  background-size: 280% 100%;
  background-position: 140% 0;
}

.reel-track > .case > * {
  position: relative;
  z-index: 1;
}

.reel-track > .case:hover::before {
  animation: reel-glass 1400ms ease;
}

.reel-track > .case:hover {
  translate: 0 -8px;
  background-color: transparent;
  background-image:
    linear-gradient(105deg, transparent 36%, rgba(215, 247, 243, 0.24) 50%, transparent 64%),
    linear-gradient(180deg, rgba(215, 247, 243, 0.09), rgba(14, 22, 21, 0.38));
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border-color: var(--line-strong);
  box-shadow:
    inset 0 1px 0 rgba(215, 247, 243, 0.28),
    0 22px 46px rgba(0, 0, 0, 0.32);
}

@keyframes reel-glass {
  from { background-position: 140% 0; }
  to { background-position: -70% 0; }
}

.reel-track > .case[aria-hidden="true"] a,
.reel-track > .case[aria-hidden="true"] button {
  pointer-events: none;
}

.reel .case-grid {
  grid-template-columns: 1fr;
}

.reel-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(240px, 78%);
  margin: 0 auto;
}

.reel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.reel-btn {
  width: 48px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 9px;
  border: 1px solid rgba(215, 247, 243, 0.38);
  background: rgba(8, 18, 16, 0.42);
  color: var(--teal-hot);
  font-size: 0.95rem;
  line-height: 1;
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 18px rgba(0, 0, 0, 0.28);
}

.reel-btn:hover {
  background: rgba(215, 247, 243, 0.16);
  border-color: rgba(215, 247, 243, 0.62);
  color: #ffffff;
}

.reel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.reel-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 99px;
  border: 1.5px solid rgba(215, 247, 243, 0.55);
  background: transparent;
}

.reel-dot[aria-current="true"] {
  width: 16px;
  background: var(--teal-bright);
  border-color: var(--teal-bright);
}

.reel-count {
  margin: 0;
  min-width: 5.5ch;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: right;
}

.page {
  padding: 36px 0 80px;
}

.page section {
  padding-top: 0;
}

.page h1 {
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  line-height: 0.96;
}

.hero-card {
  padding: 28px 32px 24px;
  border: 1px solid rgba(125, 206, 198, 0.3);
  border-radius: 18px;
  background-image:
    linear-gradient(105deg, transparent 36%, rgba(215, 247, 243, 0.24) 50%, transparent 64%),
    linear-gradient(180deg, rgba(215, 247, 243, 0.09), rgba(14, 22, 21, 0.38));
  background-repeat: no-repeat;
  background-size: 280% 100%, auto;
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 rgba(215, 247, 243, 0.18),
    0 22px 50px rgba(0, 0, 0, 0.24);
}

.hero-card .kicker {
  margin-bottom: 14px;
}

.hero-card .story {
  margin: 16px 0 0;
}

.posts {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.posts-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.page .posts-home {
  margin-top: 18px;
}

.page .posts-home > li {
  display: flex;
  min-width: 0;
}

.page .posts-home .post {
  flex: 1;
  width: 100%;
  grid-template-rows: auto auto 1fr;
}

.page .posts-home .post .go {
  align-self: end;
}

.post {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px 18px;
  padding: 22px;
  border: 1px solid rgba(125, 206, 198, 0.3);
  border-radius: 16px;
  background-image:
    linear-gradient(105deg, transparent 36%, rgba(215, 247, 243, 0.24) 50%, transparent 64%),
    linear-gradient(180deg, rgba(215, 247, 243, 0.09), rgba(14, 22, 21, 0.38));
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(215, 247, 243, 0.18);
}

.post:hover {
  border-color: var(--line-strong);
}

.skill,
.proof,
.case,
.post {
  background-repeat: no-repeat;
  background-size: 280% 100%, auto;
  background-position: 140% 0, 0 0;
  transition: background-position 1400ms ease, transform 860ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 860ms ease, border-color 700ms ease;
}

.skill:hover,
.proof:hover,
.post:hover {
  z-index: 2;
  background-position: -70% 0, 0 0;
  transform: translateY(-8px);
}

.proof:hover,
.post:hover,
.skill:hover {
  box-shadow:
    inset 0 1px 0 rgba(215, 247, 243, 0.28),
    0 22px 46px rgba(0, 0, 0, 0.32);
}

.skill.is-on,
.skill.is-on:hover {
  box-shadow:
    inset 3px 0 0 var(--teal-bright),
    inset 0 1px 0 rgba(215, 247, 243, 0.2);
}

.post .num {
  grid-row: 1 / span 3;
  color: var(--teal-bright);
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.post h2,
.post h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.2;
  grid-column: 2;
}

.post p {
  margin: 8px 0 0;
  color: var(--muted);
  grid-column: 2;
}

.post .go {
  margin-top: 12px;
  color: var(--teal-hot);
  font-weight: 700;
  grid-column: 2;
}

@media (min-width: 981px) and (min-height: 720px) {
  html:has(body.deck) {
    scroll-behavior: auto;
  }

  body.deck .top {
    position: fixed;
    left: 0;
    right: 0;
  }

  body.deck main > section {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: calc(var(--header) + 16px) 0 20px;
    scroll-margin-top: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
  }

  body.deck #experience,
  body.deck #nuget,
  body.deck #contact {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body.deck #nuget .story {
    margin-bottom: 8px;
  }

  body.deck .nuget-total {
    margin-bottom: 8px;
    font-size: 1.15rem;
  }

  body.deck .nuget-list a {
    padding: 6px 2px;
  }

  body.deck .hero {
    justify-content: center;
    padding-top: calc(var(--header) + 8px);
    padding-bottom: 16px;
  }

  body.deck .hero-grid {
    gap: 40px;
    align-items: center;
  }

  body.deck .hero h1 {
    font-size: clamp(3.1rem, 4.4vw, 4.4rem);
  }

  body.deck .hero .lede-stack {
    gap: 8px;
    margin-top: 12px;
  }

  body.deck .hero .lede {
    max-width: 38rem;
    font-size: 0.96rem;
    line-height: 1.45;
  }

  body.deck .kicker {
    margin-bottom: 8px;
  }

  body.deck h2 {
    margin: 0 0 10px;
    font-size: clamp(2.1rem, 3.6vw, 3.3rem);
  }

  body.deck .story {
    margin-bottom: 14px;
    font-size: 1rem;
    line-height: 1.5;
  }

  body.deck .about-grid {
    flex: 1;
    min-height: 0;
  }

  body.deck .skills {
    gap: 8px;
  }

  body.deck .skill {
    padding: 10px 14px 8px;
  }

  body.deck .proof {
    padding: 18px 20px;
  }

  body.deck .proof h3 {
    font-size: 1.35rem;
  }

  body.deck .timeline {
    margin-top: 4px;
  }

  body.deck .timeline li {
    padding: 8px 0;
  }

  body.deck .timeline h3 {
    margin: 0;
    font-size: 1.28rem;
  }

  body.deck #experience .story {
    margin-bottom: 12px;
  }

  body.deck .timeline-h {
    flex: 0 0 auto;
    margin-top: 0;
  }

  body.deck .timeline-h li {
    padding: 0;
  }

  body.deck .timeline-h li > div {
    padding: 10px 14px 12px;
  }

  body.deck .timeline-h h3 {
    font-size: 1.15rem;
  }

  body.deck .detail {
    margin-top: 2px;
  }

  body.deck .cases {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
    margin-top: 4px;
  }

  body.deck .case-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
  }

  body.deck .reel {
    flex: 0 1 auto;
    height: min(540px, 62vh);
    min-height: 400px;
    margin-top: 8px;
  }

  body.deck #projects {
    overflow: visible;
  }

  body.deck .reel-viewport {
    z-index: 1;
    flex: 1;
    min-height: 0;
  }

  body.deck .reel-track,
  body.deck .reel-track > .case {
    height: 100%;
  }

  body.deck .reel .case-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  body.deck .reel .case {
    display: flex;
    flex-direction: column;
    padding: 14px 22px 68px;
    overflow: hidden;
  }

  body.deck .reel .case h3 {
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  }

  body.deck .case {
    padding: 16px 18px;
  }

  body.deck .case h3 {
    font-size: 1.45rem;
  }

  body.deck .case p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.45;
  }

  body.deck .steps li {
    padding: 4px 0;
  }

  body.deck .reel .steps li {
    padding: 1px 0;
  }

  body.deck .reel .chips {
    margin-top: 4px;
  }

  body.deck .posts-home {
    flex: 0 1 auto;
    min-height: 0;
    margin: 4px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  body.deck .posts-home .post {
    padding: 14px 16px;
    gap: 2px 14px;
    align-content: start;
  }

  body.deck .posts-home .post h3 {
    font-size: 1.15rem;
  }

  body.deck .posts-home .post p {
    margin-top: 4px;
    font-size: 0.92rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body.deck .posts-home .post .go {
    margin-top: 8px;
  }

  body.deck .more {
    margin-top: 16px;
    margin-bottom: 0;
  }

  body.deck .contact .foot {
    margin-top: auto;
    margin-bottom: 0;
  }

  body.deck .contact-grid {
    flex: 1 0 auto;
    min-height: 0;
    align-items: stretch;
  }

  body.deck .map {
    height: 100%;
    min-height: 260px;
    margin-right: 16px;
  }

  body.deck .roles {
    margin-top: 18px;
  }

  body.deck .hero .actions {
    margin-top: 16px;
  }

  body.deck .hero .now {
    margin-top: 12px;
  }

  body.deck .portrait {
    width: min(240px, 100%);
  }
}

@media (min-width: 1600px) and (min-height: 960px) {
  body.deck main {
    width: min(1680px, calc(100% - 200px));
  }

  body.deck #about {
    justify-content: center;
    padding-top: calc(var(--header) + 3vh);
    padding-bottom: 4vh;
  }

  body.deck .hero h1 {
    font-size: clamp(4.4rem, 4.6vw, 6rem);
  }

  body.deck .hero .lede {
    max-width: 48rem;
    font-size: clamp(1.05rem, 1.5vh, 1.28rem);
    line-height: 1.55;
  }

  body.deck .hero .lede-stack {
    gap: 14px;
    margin-top: 18px;
  }

  body.deck #about h2 {
    font-size: clamp(3.2rem, 4.4vh, 5.2rem);
  }

  body.deck #about .story {
    max-width: 54rem;
    margin-bottom: 3vh;
    font-size: clamp(1.12rem, 1.8vh, 1.4rem);
    line-height: 1.6;
  }

  body.deck #about .about-grid {
    flex: 0 1 auto;
    gap: clamp(28px, 3vw, 48px);
  }

  body.deck #about .skills {
    gap: 1.8vh;
  }

  body.deck #about .skill {
    padding: 2.1vh 24px;
  }

  body.deck #about .skill strong {
    font-size: clamp(1.25rem, 2.1vh, 1.7rem);
  }

  body.deck #about .skill em {
    font-size: clamp(1rem, 1.6vh, 1.2rem);
  }

  body.deck #about .proof {
    padding: 3vh 32px;
  }

  body.deck #about .proof h3 {
    font-size: clamp(1.8rem, 2.8vh, 2.5rem);
  }

  body.deck #about .proof p {
    font-size: clamp(1.05rem, 1.7vh, 1.25rem);
    line-height: 1.55;
  }

  body.deck #projects h2 {
    font-size: clamp(3.2rem, 4.4vh, 5.2rem);
  }

  body.deck #projects .story {
    max-width: 54rem;
    margin-bottom: 2vh;
    font-size: clamp(1.12rem, 1.8vh, 1.4rem);
    line-height: 1.6;
  }

  body.deck #projects .reel {
    height: min(640px, 68vh);
  }

  body.deck #projects .reel-viewport {
    perspective: 1800px;
  }

  body.deck #projects .reel .case h3 {
    font-size: clamp(2.1rem, 2.2vw, 3rem);
  }

  body.deck #projects .reel .case p,
  body.deck #projects .reel .steps li {
    font-size: 1.08rem;
    line-height: 1.5;
  }

  body.deck #blog h2 {
    font-size: clamp(3.2rem, 4.4vh, 5.2rem);
  }

  body.deck #blog .story {
    max-width: 54rem;
    margin-bottom: 2vh;
    font-size: clamp(1.12rem, 1.8vh, 1.4rem);
    line-height: 1.6;
  }

  body.deck #blog .posts-home .post h3 {
    font-size: clamp(1.25rem, 1.6vw, 1.7rem);
  }

  body.deck #blog .posts-home .post p {
    font-size: 1.05rem;
  }
}

@media (min-width: 981px) and (max-height: 900px) {
  body.deck #experience {
    padding-top: calc(var(--header) + 10px);
    padding-bottom: 10px;
  }

  body.deck #experience .kicker {
    margin-bottom: 4px;
  }

  body.deck #experience h2 {
    margin-bottom: 6px;
    font-size: clamp(1.85rem, 4.4vh, 2.7rem);
  }

  body.deck #experience .story {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.35;
  }

  body.deck #experience .timeline-h li > div {
    padding: 8px 12px;
  }

  body.deck #experience .timeline-h h3 {
    font-size: 1.05rem;
    line-height: 1.15;
  }

  body.deck #experience .when,
  body.deck #experience .role,
  body.deck #experience .detail {
    font-size: 0.84rem;
    line-height: 1.32;
  }

  body.deck #experience .detail {
    margin-top: 2px;
  }

  body.deck #experience .timeline-h li:nth-child(odd) > div {
    margin-bottom: 8px;
  }

  body.deck #experience .timeline-h li:nth-child(even) > div {
    margin-top: 8px;
  }

  body.deck #nuget .more {
    margin-top: 10px;
  }
}

@media (min-width: 981px) and (max-height: 800px) {
  body.deck #experience {
    padding-top: calc(var(--header) + 6px);
    padding-bottom: 8px;
  }

  body.deck #experience h2 {
    font-size: clamp(1.6rem, 3.8vh, 2.15rem);
  }

  body.deck #experience .story {
    margin-bottom: 6px;
    font-size: 0.88rem;
  }

  body.deck #experience .timeline-h li > div {
    padding: 6px 10px 7px;
  }

  body.deck #experience .timeline-h h3 {
    font-size: 0.98rem;
  }

  body.deck #experience .when,
  body.deck #experience .role,
  body.deck #experience .detail {
    font-size: 0.78rem;
    line-height: 1.28;
  }

  body.deck .contact-grid {
    flex: 1 1 auto;
    gap: 16px 28px;
  }

  body.deck .contact h2 {
    font-size: clamp(1.8rem, 4vh, 2.4rem);
  }

  body.deck .roles {
    margin-top: 8px;
  }

  body.deck .email-row {
    margin: 8px 0;
  }

  body.deck .social {
    margin: 6px 0 12px;
  }

  body.deck .map {
    min-height: 0;
  }

  body.deck .contact-form textarea {
    min-height: 56px;
  }
}

@media (min-width: 981px) and (max-height: 760px) {
  body.deck #nuget {
    padding-top: calc(var(--header) + 8px);
    padding-bottom: 8px;
  }

  body.deck #nuget h2 {
    margin-bottom: 4px;
    font-size: clamp(1.7rem, 4.2vh, 2.2rem);
  }

  body.deck #nuget .story {
    margin-bottom: 4px;
    font-size: 0.9rem;
    line-height: 1.35;
  }

  body.deck #nuget .nuget-total {
    margin-bottom: 4px;
  }

  body.deck #nuget .nuget-list a {
    padding: 2px 2px;
  }
}

@media (max-width: 980px) {
  html,
  body {
    overflow-x: clip;
  }

  .rail {
    display: none;
  }

  main {
    width: min(var(--max), calc(100% - 32px));
  }

  h2,
  .story,
  .lede,
  .lede-stack {
    max-width: none;
  }

  .hero-grid,
  .about-grid,
  .case-grid,
  .posts-home,
  .lib-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .map {
    height: 320px;
  }

  .hero-grid > div {
    min-width: 0;
    width: 100%;
  }

  .portrait {
    justify-self: center;
    width: 100%;
    max-width: none;
  }

  #projects {
    overflow: visible;
  }

  .reel {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    height: auto;
    min-height: 0;
  }

  .reel-viewport {
    flex: none;
    height: min(72vh, 560px);
    min-height: 440px;
    perspective: 1100px;
  }

  .reel-track {
    position: absolute;
    inset: 0;
    height: auto;
  }

  .reel-track > .case {
    height: 100%;
    padding: 18px 18px 78px;
  }

  .reel .case h3 {
    font-size: 1.65rem;
  }

  .reel .case p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .reel .steps li {
    padding: 5px 0;
  }

  .timeline-h {
    --timeline-gap: 16px;
    grid-auto-columns: min(340px, calc(100vw - 56px));
  }

  .timeline-h li {
    min-width: min(340px, calc(100vw - 56px));
  }

  .reel .chips {
    margin-top: 10px;
  }
}

@media (max-width: 760px) {
  .top {
    padding: 0 16px;
  }

  .menu {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    padding: 8px 16px 16px;
    flex-direction: column;
    align-items: stretch;
    background: #07100f;
    border-bottom: 1px solid var(--line);
    z-index: 12;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .hero {
    min-height: auto;
    justify-content: flex-start;
    padding: 48px 0 40px;
  }

  .hero-grid {
    gap: 28px;
  }

  .portrait {
    -webkit-mask-image:
      linear-gradient(to right, transparent, #000 4%, #000 96%, transparent),
      linear-gradient(to bottom, transparent, #000 4%, #000 92%, transparent);
    mask-image:
      linear-gradient(to right, transparent, #000 4%, #000 96%, transparent),
      linear-gradient(to bottom, transparent, #000 4%, #000 92%, transparent);
  }

  .kicker {
    margin-bottom: 20px;
  }

  h1 {
    font-size: clamp(2.5rem, 11vw, 3.3rem);
  }

  .roles {
    margin-top: 28px;
  }

  .contact-form .pair {
    grid-template-columns: 1fr;
  }

  .actions {
    margin-top: 28px;
    gap: 18px;
  }

  .now {
    flex-direction: column;
    margin-top: 48px;
  }

  section {
    padding: 32px 0 40px;
  }

  .timeline li {
    grid-template-columns: 48px 1fr;
  }

  .timeline-h li {
    position: relative;
    display: block;
    grid-template-columns: none;
    grid-template-rows: none;
    grid-row: auto;
    min-width: 0;
    width: 100%;
    scroll-snap-align: none;
  }

  .timeline-h {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: visible;
    scroll-snap-type: none;
    touch-action: pan-y;
    padding: 0 0 0 26px;
  }

  .timeline-h::before,
  .timeline-h::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    width: 2px;
    border-radius: 99px;
  }

  .timeline-h::before {
    bottom: 8px;
    background: rgba(125, 206, 198, 0.22);
  }

  .timeline-h::after {
    height: var(--line, 0%);
    max-height: calc(100% - 16px);
    background: var(--teal-bright);
    box-shadow: 0 0 12px rgba(125, 206, 198, 0.55);
  }

  .timeline-h .node {
    display: block;
    position: absolute;
    left: -24px;
    top: 18px;
    width: 12px;
    height: 12px;
    margin: 0;
    border: 2px solid var(--teal-bright);
    border-radius: 50%;
    background: var(--bg);
    box-shadow: 0 0 0 4px rgba(17, 94, 89, 0.45);
    z-index: 1;
    transition: background 160ms ease, box-shadow 160ms ease;
  }

  .timeline-h .node::before,
  .timeline-h .node::after {
    content: none;
  }

  .timeline-h .node.is-on {
    background: var(--teal-bright);
    box-shadow: 0 0 0 4px rgba(125, 206, 198, 0.28), 0 0 12px rgba(125, 206, 198, 0.55);
  }

  .timeline-h li > div::after {
    display: none;
  }

  .timeline-h li > div,
  .timeline-h li:nth-child(odd) > div,
  .timeline-h li:nth-child(even) > div {
    grid-column: auto;
    grid-row: auto;
    margin: 0;
  }

  .nuget-list a {
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
  }

  .nuget-bar {
    grid-column: 1 / -1;
  }

  .timeline-h h3 {
    font-size: 1.15rem;
    line-height: 1.25;
  }

  .timeline-h .role,
  .timeline-h .when,
  .timeline-h .detail {
    line-height: 1.4;
  }

  .earlier {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 20px 18px 16px;
  }

  .post {
    grid-template-columns: 40px 1fr;
    padding: 16px;
  }

  .case {
    padding: 18px;
  }

  .foot {
    flex-direction: column;
  }

  .lib-stats {
    grid-template-columns: 1fr 1fr;
  }
}

.lib-sample {
  margin: 16px 0 22px;
}

.lib-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.lib-stats li {
  padding: 16px 18px;
  border: 1px solid rgba(125, 206, 198, 0.3);
  border-radius: 16px;
  background-image:
    linear-gradient(180deg, rgba(215, 247, 243, 0.08), rgba(14, 22, 21, 0.28));
}

.lib-stats strong {
  display: block;
  color: var(--teal-hot);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.lib-stats span {
  color: var(--muted);
  font-size: 0.85rem;
}

.lib-grid {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lib-card {
  border: 1px solid rgba(125, 206, 198, 0.3);
  border-radius: 16px;
  background-image:
    linear-gradient(105deg, transparent 36%, rgba(215, 247, 243, 0.24) 50%, transparent 64%),
    linear-gradient(180deg, rgba(215, 247, 243, 0.09), rgba(14, 22, 21, 0.38));
  background-repeat: no-repeat;
  background-size: 280% 100%, auto;
  background-position: 140% 0, 0 0;
  box-shadow: inset 0 1px 0 rgba(215, 247, 243, 0.18);
}

.lib-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  transition: background-position 1400ms ease, transform 860ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 860ms ease, border-color 700ms ease;
}

.lib-card:hover {
  background-position: -70% 0, 0 0;
  border-color: var(--line-strong);
  transform: translateY(-8px);
  box-shadow:
    inset 0 1px 0 rgba(215, 247, 243, 0.28),
    0 22px 46px rgba(0, 0, 0, 0.32);
}

.lib-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.lib-card h2 {
  margin: 12px 0 0;
  max-width: none;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-transform: none;
  color: var(--text);
}

.lib-id {
  margin: 6px 0 0;
  color: var(--teal-bright);
  font-size: 0.88rem;
  font-weight: 600;
}

.lib-card > p {
  margin: 10px 0 0;
  color: var(--muted);
}

.lib-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 14px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.lib-chart {
  margin: 16px 0 0;
}

.lib-chart figcaption {
  margin: 0 0 4px;
  color: var(--teal-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lib-chart svg {
  display: block;
  width: 100%;
  height: 118px;
}

@media (max-width: 980px) {
  .lib-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .lib-stats {
    grid-template-columns: 1fr 1fr;
  }

  .lib-stats strong {
    font-size: 1.2rem;
  }
}

html.touch-stage,
html.touch-stage * {
  cursor: auto;
}
html.touch-stage .spotlight {
  background: none;
}
html.touch-stage .spotlight::before,
html.touch-stage .spotlight::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
html.touch-stage .spotlight::before {
  width: min(92vw, 520px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(167, 232, 224, 0.28), rgba(17, 94, 89, 0.16) 36%, transparent 68%);
  animation: ambient-drift 18s ease-in-out infinite alternate;
}
html.touch-stage .spotlight::after {
  width: min(70vw, 380px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(17, 94, 89, 0.42), transparent 70%);
  animation: ambient-drift-b 26s ease-in-out infinite alternate;
}
html.touch-stage .portrait .portrait-real {
  opacity: 1;
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, #000 58%, transparent 78%);
  mask-image: radial-gradient(circle at center, #000 0%, #000 58%, transparent 78%);
  -webkit-mask-size: 240px 240px;
  mask-size: 240px 240px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 30% 18%;
  mask-position: 30% 18%;
  animation: color-wash 16s ease-in-out infinite;
}
html.touch-stage .portrait.is-hot .portrait-real {
  animation: none;
  -webkit-mask-image: radial-gradient(circle var(--reveal-r) at var(--reveal-x) var(--reveal-y), #000 0%, #000 58%, transparent 78%);
  mask-image: radial-gradient(circle var(--reveal-r) at var(--reveal-x) var(--reveal-y), #000 0%, #000 58%, transparent 78%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
}
@keyframes ambient-drift {
  0% { transform: translate3d(-8vw, 4vh, 0) scale(0.92); }
  50% { transform: translate3d(46vw, 22vh, 0) scale(1.14); }
  100% { transform: translate3d(6vw, 62vh, 0) scale(0.84); }
}
@keyframes ambient-drift-b {
  0% { transform: translate3d(58vw, 72vh, 0) scale(1); }
  100% { transform: translate3d(4vw, 16vh, 0) scale(1.28); }
}
@keyframes color-wash {
  0% { -webkit-mask-position: 8% 8%; mask-position: 8% 8%; }
  38% { -webkit-mask-position: 72% 22%; mask-position: 72% 22%; }
  70% { -webkit-mask-position: 34% 74%; mask-position: 34% 74%; }
  100% { -webkit-mask-position: 8% 8%; mask-position: 8% 8%; }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .spotlight {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
