:root {
  --ink: #0a0d12;
  --ink-soft: #111721;
  --ink-raised: #171f2a;
  --paper: #f3f6f8;
  --muted: #9ba8b6;
  --cyan: #65d9ff;
  --lime: #c8ff4a;
  --coral: #ff765d;
  --violet: #b993ff;
  --rail-width: 92px;
  --content-max: 1320px;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --pointer-x: 70%;
  --pointer-y: 30%;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1rem, 0.35vw + 0.92rem, 1.15rem);
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 5px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: visible;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.control-rail {
  position: fixed;
  z-index: 100;
  inset: 0 auto 0 0;
  width: var(--rail-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0 1rem;
  border-right: 1px solid rgb(255 255 255 / 12%);
  background: rgb(8 11 16 / 88%);
  backdrop-filter: blur(18px);
}

.rail-mark {
  width: 58px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 50%;
  background: rgb(255 255 255 / 4%);
  font-family: "Courier New", Courier, monospace;
  font-size: 1.35rem;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
}

.rail-mark span span {
  color: var(--cyan);
}

.rail-nav {
  display: grid;
  gap: 0.85rem;
}

.rail-nav a {
  position: relative;
  width: 52px;
  min-height: 46px;
  display: grid;
  grid-template-columns: 1fr 9px;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 180ms ease;
}

.rail-number {
  text-align: right;
}

.rail-dot {
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: 200ms var(--ease-out);
}

.rail-label {
  position: absolute;
  left: calc(100% + 20px);
  padding: 0.4rem 0.65rem;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 999px;
  background: var(--ink-raised);
  color: var(--paper);
  font-size: 0.72rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px);
  transition: 180ms ease;
  white-space: nowrap;
}

.rail-nav a:hover,
.rail-nav a:focus-visible,
.rail-nav a.is-active {
  color: var(--cyan);
}

.rail-nav a:hover .rail-label,
.rail-nav a:focus-visible .rail-label {
  opacity: 1;
  transform: translateX(0);
}

.rail-nav a.is-active .rail-dot {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
  transform: scale(1.5);
}

.rail-tools {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}

.language-switcher {
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--muted);
}

.language-switcher a {
  text-decoration: none;
}

.language-switcher a[aria-current="page"] {
  color: var(--lime);
}

.language-switcher span {
  color: rgb(255 255 255 / 24%);
}

.rail-progress {
  --scroll-progress: 0;
  position: relative;
  width: 26px;
  height: 54px;
}

.rail-progress::before,
.rail-progress-fill {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  content: "";
  transform: translateX(-50%);
}

.rail-progress::before {
  background: rgb(255 255 255 / 12%);
}

.rail-progress-fill {
  background: linear-gradient(var(--cyan), var(--lime));
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
}

.rail-cyclist {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 0;
  width: 18px;
  color: var(--lime);
  fill: none;
  stroke: currentColor;
  filter: drop-shadow(0 0 7px rgb(200 255 74 / 45%));
  transform: translate(-50%, -45%) translateY(calc(var(--scroll-progress) * 54px)) rotate(90deg);
  transform-origin: center;
}

.site-main,
.site-footer {
  margin-left: var(--rail-width);
}

.scene {
  position: relative;
  min-height: 100svh;
  overflow: clip;
  isolation: isolate;
}

.scene-inner {
  width: min(calc(100% - (2 * var(--gutter))), var(--content-max));
  margin-inline: auto;
}

.hero-scene {
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgb(101 217 255 / 13%), transparent 24rem),
    linear-gradient(135deg, #0a0d12 0%, #101722 55%, #081017 100%);
}

.hero-scene::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.32;
  background-image:
    linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px);
  background-size: clamp(42px, 5vw, 76px) clamp(42px, 5vw, 76px);
  mask-image: linear-gradient(to right, black, transparent 80%);
}

.hero-grid {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 6rem);
  padding-block: clamp(6rem, 10vh, 9rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.kicker {
  margin: 0 0 1.35rem;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.eyebrow span {
  width: 28px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

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

h1,
h2,
h3 {
  line-height: 0.98;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  margin-bottom: 2rem;
  font-size: clamp(3.15rem, 5.8vw, 6.8rem);
  font-weight: 600;
  letter-spacing: -0.05em;
}

.hero-intro {
  max-width: 36rem;
  margin-bottom: 0.6rem;
  color: #dce4eb;
  font-size: clamp(1.15rem, 1.2vw, 1.45rem);
  line-height: 1.45;
}

.hero-note {
  max-width: 40rem;
  margin-bottom: 2rem;
  color: var(--muted);
}

.text-link,
.project-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--paper);
  font-weight: 800;
  text-decoration: none;
}

.text-link {
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--cyan);
}

.text-link svg,
.project-link svg,
.button svg {
  width: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.text-link:hover svg,
.text-link:focus-visible svg {
  transform: translateX(0.3rem);
}

.hero-visual {
  position: relative;
  min-height: clamp(390px, 60vw, 720px);
  display: grid;
  place-items: center;
}

.hero-timeline {
  --era-progress: 0;
  width: min(100%, 690px);
  display: grid;
  justify-items: center;
  filter: drop-shadow(0 36px 42px rgb(0 0 0 / 35%));
}

.hero-era-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: clamp(1.5rem, 3.2vw, 3.25rem);
  background: linear-gradient(145deg, #111721, #080b10 72%);
  box-shadow:
    inset 0 1px rgb(255 255 255 / 4%),
    0 32px 65px rgb(0 0 0 / 34%);
  isolation: isolate;
}

.hero-era-stage::before,
.hero-era-stage::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  content: "";
  pointer-events: none;
}

.hero-era-stage::before {
  background:
    linear-gradient(90deg, rgb(101 217 255 / 7%) 1px, transparent 1px),
    linear-gradient(rgb(101 217 255 / 6%) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(135deg, black, transparent 55%);
  opacity: 0.38;
}

.hero-era-stage::after {
  background:
    radial-gradient(circle at 72% 25%, rgb(101 217 255 / 11%), transparent 35%),
    linear-gradient(180deg, transparent 54%, rgb(6 9 14 / 72%));
}

.hero-era-images,
.hero-era-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-era-images {
  z-index: 1;
}

.hero-era-image {
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.88) contrast(1.04) brightness(0.93);
  transform: scale(1.022);
  transition:
    opacity 420ms ease,
    filter 620ms ease,
    transform 780ms var(--ease-out);
  will-change: opacity, transform;
}

.hero-era-image.is-active {
  z-index: 2;
  opacity: 1;
  filter: saturate(0.96) contrast(1.03) brightness(0.98);
  transform: scale(1);
}

.hero-era-scan {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-era-scan::before {
  position: absolute;
  inset: -100% 0 100%;
  content: "";
  background: linear-gradient(180deg, transparent, rgb(101 217 255 / 10%), transparent);
  animation: era-scan 5.4s 1.4s ease-in-out infinite;
}

.hero-era-scan::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.08;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgb(255 255 255 / 26%) 3px 4px);
  mix-blend-mode: screen;
}

.hero-era-status {
  position: absolute;
  z-index: 6;
  top: clamp(1rem, 3vw, 2rem);
  left: clamp(1rem, 3vw, 2rem);
  min-width: 9rem;
  margin: 0;
  padding: 0.72rem 0.9rem;
  border: 1px solid rgb(101 217 255 / 18%);
  border-radius: 0.55rem;
  background: rgb(7 12 18 / 76%);
  box-shadow: 0 14px 30px rgb(0 0 0 / 28%);
  backdrop-filter: blur(12px);
}

.hero-era-status span,
.hero-era-status strong {
  display: block;
}

.hero-era-status span {
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.57rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-era-status strong {
  color: var(--paper);
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  letter-spacing: -0.01em;
}

.hero-era-nav {
  position: relative;
  z-index: 8;
  width: calc(100% - clamp(1.5rem, 5vw, 3.5rem));
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(0.25rem, 0.8vw, 0.55rem);
  margin-top: clamp(-3.15rem, -5vw, -2.35rem);
  padding: 0.7rem;
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: 1rem;
  background: rgb(8 13 20 / 88%);
  box-shadow: 0 18px 38px rgb(0 0 0 / 38%);
  backdrop-filter: blur(18px);
}

.hero-era-rail {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: calc(7.14% + 0.7rem);
  left: calc(7.14% + 0.7rem);
  height: 1px;
  overflow: hidden;
  background: rgb(255 255 255 / 10%);
}

.hero-era-rail span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  box-shadow: 0 0 12px rgb(101 217 255 / 40%);
  transform: scaleX(var(--era-progress));
  transform-origin: left center;
  transition: transform 420ms var(--ease-out);
}

.hero-era-control {
  position: relative;
  z-index: 1;
  min-width: 0;
  aspect-ratio: 1.35;
  display: grid;
  place-items: center;
  padding: clamp(0.38rem, 0.8vw, 0.65rem);
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 0.65rem;
  background: #111721;
  color: var(--paper);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 220ms ease,
    transform 220ms var(--ease-out);
}

.hero-era-control::after {
  position: absolute;
  bottom: -0.2rem;
  left: 50%;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  content: "";
  opacity: 0;
  transform: translate(-50%, 0.35rem) scale(0.4);
  transition: opacity 180ms ease, transform 220ms var(--ease-out);
}

.hero-era-control img {
  width: 100%;
  height: 100%;
  max-width: 3rem;
  max-height: 1.9rem;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1) opacity(0.5);
  transition: filter 220ms ease, transform 220ms var(--ease-out);
}

.hero-era-control:hover,
.hero-era-control:focus-visible {
  border-color: rgb(101 217 255 / 46%);
  background: #17212d;
  box-shadow: 0 0 0 1px rgb(101 217 255 / 8%), 0 8px 24px rgb(0 0 0 / 24%);
  transform: translateY(-0.12rem);
}

.hero-era-control:hover img,
.hero-era-control:focus-visible img {
  filter: grayscale(1) brightness(0) invert(1) opacity(0.9);
  transform: scale(1.04);
}

.hero-era-control.is-active {
  border-color: rgb(255 255 255 / 78%);
  background: #f3f6f8;
  box-shadow: 0 0 0 1px rgb(101 217 255 / 18%), 0 10px 28px rgb(0 0 0 / 34%);
  transform: translateY(-0.12rem);
}

.hero-era-control.is-active img {
  filter: none;
  transform: scale(1.04);
}

.hero-era-control.is-active::after {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

@keyframes era-scan {
  0%,
  35% { transform: translateY(0); }

  70%,
  100% { transform: translateY(300%); }
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-90deg) translateX(100%);
  transform-origin: left bottom;
}

.scroll-cue span {
  width: 42px;
  height: 1px;
  overflow: hidden;
  background: rgb(255 255 255 / 24%);
}

.profile-scene {
  display: grid;
  align-items: center;
  background: var(--paper);
  color: var(--ink);
}

.profile-scene::before {
  position: absolute;
  z-index: -1;
  width: 52vw;
  aspect-ratio: 1;
  right: -18vw;
  top: -22vw;
  border: clamp(32px, 6vw, 90px) solid rgb(101 217 255 / 14%);
  border-radius: 50%;
  content: "";
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: start;
  padding-block: clamp(7rem, 14vh, 11rem);
}

.section-heading h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.4rem, 4.3vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -0.06em;
}

.profile-copy {
  padding-top: 4.2rem;
}

.profile-copy p {
  max-width: 32rem;
  font-size: clamp(1.3rem, 1.7vw, 2rem);
  line-height: 1.42;
}

.profile-note {
  grid-column: 2;
  max-width: 30rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid rgb(10 13 18 / 16%);
  border-radius: 1rem 1rem 3rem 1rem;
  background: white;
  box-shadow: 0 16px 45px rgb(10 13 18 / 8%);
  transform: rotate(-1.2deg);
}

.profile-note p {
  margin: 0;
  color: #43505c;
  font-size: 0.95rem;
}

.note-star {
  color: #008dbd;
  font-size: 1.45rem;
}

.pixel-sticker {
  position: relative;
  grid-column: 2;
  grid-row: 2 / span 2;
  width: min(100%, 350px);
  justify-self: end;
  margin-top: -3rem;
  transform: rotate(3.5deg);
}

.pixel-sticker img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 10px solid white;
  border-bottom-width: 48px;
  box-shadow: 0 20px 55px rgb(10 13 18 / 20%);
  filter: saturate(0.85) contrast(1.05);
}

.pixel-sticker span {
  position: absolute;
  left: 1.2rem;
  bottom: 0.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topic-scene {
  min-height: auto;
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 7vw, 6.5rem);
  border-block: 1px solid rgb(255 255 255 / 9%);
  background:
    radial-gradient(circle at 82% 20%, rgb(101 217 255 / 12%), transparent 28rem),
    radial-gradient(circle at 15% 90%, rgb(185 147 255 / 10%), transparent 24rem),
    #111721;
  color: var(--paper);
}

.topic-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.topic-copy {
  position: relative;
  z-index: 2;
}

.topic-copy h2 {
  max-width: 10ch;
  margin: 0.4rem 0 1rem;
  font-size: clamp(2.4rem, 4.3vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.topic-copy > p:last-child {
  max-width: 32rem;
  margin: 0;
  color: var(--muted);
}

.experience-groups {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
}

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

.experience-group h3 {
  margin: 0 0 0.75rem;
  color: #8f9aa7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.topic-list {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  margin-block: 0;
  padding: 0;
  list-style: none;
}

.topic-item {
  order: var(--chip-index);
}

.topic-tag {
  position: relative;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 1rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tag-accent), transparent 70%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--tag-accent), transparent 94%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 2%);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.2;
  transition: border-color 220ms ease, background 220ms ease, transform 220ms var(--ease-out);
}

.topic-tag::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgb(255 255 255 / 8%) 50%, transparent 80%);
  content: "";
  pointer-events: none;
  transform: translateX(-120%);
  animation: tag-scan 8s ease-in-out infinite;
  animation-delay: calc(var(--chip-index) * -0.55s);
}

.topic-tag:hover {
  border-color: color-mix(in srgb, var(--tag-accent), transparent 35%);
  background: color-mix(in srgb, var(--tag-accent), transparent 88%);
  transform: translateY(-3px) rotate(-0.5deg);
}

.topic-tag:focus-visible {
  border-color: var(--tag-accent);
  outline: 3px solid color-mix(in srgb, var(--tag-accent), transparent 62%);
  outline-offset: 3px;
}

.topic-tag.has-brand-icon {
  min-height: 58px;
  padding-inline: 1.05rem 1.2rem;
  font-size: 0.95rem;
}

.topic-brand-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  color: var(--tag-accent);
  fill: currentColor;
}

.topic-brand-icon.brand-icon {
  fill: currentColor;
}

.topic-brand-icon.line-icon {
  fill: none;
  stroke: currentColor;
}

.topic-dot {
  width: 6px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--tag-accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--tag-accent), transparent 35%);
}

.topic-open-marker {
  width: 1.2rem;
  height: 1.2rem;
  display: grid;
  place-items: center;
  margin-left: 0.12rem;
  border: 1px solid color-mix(in srgb, var(--tag-accent), transparent 45%);
  border-radius: 50%;
  color: var(--tag-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease, transform 220ms var(--ease-out);
}

.topic-tag:hover .topic-open-marker,
.topic-tag:focus-visible .topic-open-marker {
  background: var(--tag-accent);
  color: #0a0d12;
  transform: rotate(90deg);
}

.has-js .topic-item[data-reveal] {
  transition-delay: calc(var(--chip-index) * 55ms);
}

@keyframes tag-scan {
  0%, 68% { transform: translateX(-120%); }
  88%, 100% { transform: translateX(120%); }
}

html.has-experience-dialog {
  overflow: hidden;
}

.experience-dialog {
  width: min(980px, calc(100vw - 2rem));
  max-width: none;
  max-height: min(860px, calc(100dvh - 2rem));
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--paper);
}

.experience-dialog:not([open]) {
  display: none;
}

.experience-dialog::backdrop {
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--panel-accent), transparent 88%), transparent 48%),
    rgb(4 8 13 / 56%);
  backdrop-filter: blur(5px) saturate(0.82);
}

.experience-panel-shell {
  position: relative;
  max-height: min(860px, calc(100dvh - 2rem));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden auto;
  border: 1px solid color-mix(in srgb, var(--panel-accent), transparent 40%);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel-accent), transparent 92%), transparent 34%),
    #0b1119;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 4%) inset,
    0 0 70px color-mix(in srgb, var(--panel-accent), transparent 82%),
    0 36px 100px rgb(0 0 0 / 65%);
  clip-path: polygon(0 0, calc(100% - 38px) 0, 100% 38px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
}

.experience-panel-shell::before,
.experience-panel-shell::after {
  position: absolute;
  z-index: 3;
  background: var(--panel-accent);
  content: "";
  pointer-events: none;
}

.experience-panel-shell::before {
  top: 0;
  left: 4%;
  width: 24%;
  height: 2px;
  box-shadow: 0 0 18px var(--panel-accent);
}

.experience-panel-shell::after {
  right: 0;
  bottom: 12%;
  width: 2px;
  height: 22%;
  opacity: 0.75;
}

.experience-panel-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.11;
  background-image:
    linear-gradient(rgb(255 255 255 / 11%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 11%) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, transparent, #000 65%, transparent);
  pointer-events: none;
}

.experience-panel-header,
.experience-panel-body,
.experience-panel-footer {
  position: relative;
  z-index: 1;
}

.experience-panel-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1.1rem, 3vw, 2rem);
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  background: rgb(255 255 255 / 2%);
}

.experience-panel-header p,
.experience-status,
.experience-topics h4 {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.experience-panel-header p {
  color: #8f9aa7;
}

.experience-panel-header p span {
  color: var(--panel-accent);
}

.experience-close {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  background: rgb(255 255 255 / 3%);
  color: #fff;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.experience-close span::before,
.experience-close span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 1px;
  background: currentColor;
  content: "";
}

.experience-close span::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.experience-close span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.experience-close:hover,
.experience-close:focus-visible {
  border-color: var(--panel-accent);
  background: color-mix(in srgb, var(--panel-accent), transparent 86%);
  color: var(--panel-accent);
  outline: none;
  transform: rotate(4deg);
}

.experience-close:focus-visible,
.experience-panel-footer button:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--panel-accent), transparent 55%);
}

.experience-panel-body {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(1.5rem, 5vw, 4.5rem);
}

.experience-panel-symbol {
  position: relative;
  min-height: 250px;
  display: grid;
  place-items: center;
  align-self: start;
  border: 1px solid color-mix(in srgb, var(--panel-accent), transparent 75%);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel-accent), transparent 90%), transparent),
    rgb(255 255 255 / 2%);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.experience-panel-symbol::before,
.experience-panel-symbol::after {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--panel-accent), transparent 55%);
  border-radius: 50%;
  content: "";
}

.experience-panel-symbol::before {
  width: 70%;
  aspect-ratio: 1;
}

.experience-panel-symbol::after {
  width: 52%;
  aspect-ratio: 1;
  border-style: dashed;
  animation: experience-orbit 18s linear infinite;
}

.experience-icon {
  position: relative;
  z-index: 2;
  width: min(42%, 88px);
  max-height: 88px;
  color: var(--panel-accent);
  fill: currentColor;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--panel-accent), transparent 45%));
}

.experience-icon.line-icon {
  fill: none;
  stroke: currentColor;
}

.experience-panel-symbol > span {
  position: absolute;
  inset: 10px;
  border-top: 2px solid var(--panel-accent);
  border-right: 2px solid transparent;
  opacity: 0.6;
}

@keyframes experience-orbit {
  to { transform: rotate(360deg); }
}

.experience-panel-copy {
  min-width: 0;
}

.experience-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--panel-accent);
}

.experience-status span {
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--panel-accent);
  box-shadow: 0 0 12px var(--panel-accent);
}

.experience-panel-copy h3 {
  margin: 0.55rem 0 1rem;
  color: #fff;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1;
}

.experience-panel-copy h3.is-long-title {
  max-width: 100%;
  font-size: clamp(1.75rem, 2.8vw, 2.8rem);
  line-height: 1.06;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.experience-summary {
  max-width: 58ch;
  margin: 0 0 1.35rem;
  color: #e1e7ed;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 650;
  line-height: 1.45;
}

.experience-description {
  max-width: 65ch;
  color: #aeb9c5;
  font-size: 0.98rem;
}

.experience-description p {
  margin: 0 0 0.8rem;
}

.experience-description p:last-child {
  margin-bottom: 0;
}

.experience-topics {
  margin-top: 1.75rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgb(255 255 255 / 10%);
}

.experience-topics h4 {
  color: #8995a1;
}

.experience-topics ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.experience-topics li {
  padding: 0.38rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--panel-accent), transparent 68%);
  background: color-mix(in srgb, var(--panel-accent), transparent 94%);
  color: color-mix(in srgb, var(--panel-accent), white 22%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
}

.experience-panel-footer {
  min-height: 66px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(80px, 0.25fr) minmax(0, 1fr);
  align-items: stretch;
  border-top: 1px solid rgb(255 255 255 / 10%);
}

.experience-panel-footer button {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem clamp(1rem, 3vw, 2rem);
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #99a5b1;
  cursor: pointer;
  font: 700 0.75rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.experience-panel-footer button:last-child {
  justify-content: flex-end;
  text-align: right;
}

.experience-panel-footer button span:not([aria-hidden]) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.experience-panel-footer button:hover,
.experience-panel-footer button:focus-visible {
  background: color-mix(in srgb, var(--panel-accent), transparent 92%);
  color: var(--panel-accent);
  outline: none;
}

.experience-panel-scan {
  align-self: center;
  height: 1px;
  overflow: hidden;
  background: rgb(255 255 255 / 9%);
}

.experience-panel-scan::after {
  width: 40%;
  height: 100%;
  display: block;
  background: var(--panel-accent);
  box-shadow: 0 0 8px var(--panel-accent);
  content: "";
  animation: panel-scan 2.4s ease-in-out infinite alternate;
}

@keyframes panel-scan {
  to { transform: translateX(150%); }
}

.projects-scene {
  padding-block: clamp(7rem, 12vh, 10rem);
  background:
    radial-gradient(circle at 90% 10%, rgb(185 147 255 / 11%), transparent 28rem),
    #0d1118;
}

.projects-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.projects-intro {
  max-width: 32rem;
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.3vw, 1.45rem);
}

.projects-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(250px, 1fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
}

.project-stack {
  --stack-top: clamp(5.5rem, 14vh, 8rem);
  display: grid;
  gap: 0;
  align-items: start;
}

.project-card {
  position: sticky;
  top: calc(var(--stack-top) + var(--stack-offset, 0px));
  z-index: calc(var(--card-index) + 1);
  width: 100%;
  min-height: clamp(260px, 26vw, 330px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  margin-bottom: clamp(1.5rem, 3.5vh, 2.75rem);
  padding: clamp(1.35rem, 2.4vw, 2.5rem);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--project-accent), transparent 64%);
  border-radius: clamp(1.2rem, 2.3vw, 2.3rem);
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--project-accent), transparent 91%), transparent 48%),
    #141b25;
  color: var(--paper);
  box-shadow: 0 -12px 42px rgb(0 0 0 / 22%), 0 28px 90px rgb(0 0 0 / 34%);
  text-decoration: none;
  transition: border-color 220ms ease, box-shadow 320ms ease;
}

.project-card:nth-child(2) { --stack-offset: 10px; }
.project-card:nth-child(3) { --stack-offset: 20px; }
.project-card:nth-child(4) { --stack-offset: 30px; }
.project-card:nth-child(5) { --stack-offset: 40px; }

.project-card:hover,
.project-card:focus-visible {
  border-color: color-mix(in srgb, var(--project-accent), transparent 28%);
  box-shadow: 0 -12px 46px rgb(0 0 0 / 28%), 0 32px 100px rgb(0 0 0 / 42%);
  outline: none;
}

.project-card:focus-visible {
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--project-accent), transparent 24%),
    0 -12px 46px rgb(0 0 0 / 28%),
    0 32px 100px rgb(0 0 0 / 42%);
}

.project-card::before {
  position: absolute;
  width: clamp(260px, 35vw, 520px);
  aspect-ratio: 1;
  right: -10%;
  top: -36%;
  border: clamp(28px, 5vw, 74px) solid color-mix(in srgb, var(--project-accent), transparent 88%);
  border-radius: 45% 55% 62% 38%;
  content: "";
  transform: rotate(calc(var(--card-index) * 15deg));
}

.project-topline,
.project-body,
.project-link {
  position: relative;
  z-index: 1;
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-count,
.project-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-count {
  color: var(--project-accent);
}

.project-label {
  padding: 0.35rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--project-accent), transparent 45%);
  border-radius: 999px;
  color: var(--project-accent);
}

.project-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}

.project-body h3 {
  max-width: 20ch;
  margin: 0 0 1rem;
  font-size: clamp(2rem, 2.8vw, 3.2rem);
  letter-spacing: -0.06em;
  overflow-wrap: normal;
  word-break: normal;
}

.project-body p {
  max-width: 42rem;
  margin: 0;
  color: #adb8c4;
}

.project-symbol {
  width: clamp(4.25rem, 6.5vw, 6.2rem);
  max-height: 6.2rem;
  color: var(--project-accent);
  fill: none;
  stroke: currentColor;
  opacity: 0.84;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--project-accent), transparent 72%));
}

.project-link {
  color: var(--project-accent);
}

article.project-card .project-link::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  content: "";
}

article.project-card .project-link {
  position: static;
}

.project-card:hover .project-link svg,
.project-card:focus-visible .project-link svg {
  transform: translate(0.2rem, -0.2rem);
}

.project-index {
  --project-progress: 0.2;
  position: sticky;
  top: clamp(5.5rem, 16vh, 9rem);
  min-height: 330px;
  padding-left: 2rem;
}

.project-index::before,
.project-index::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  content: "";
}

.project-index::before {
  background: rgb(255 255 255 / 11%);
}

.project-index::after {
  background: linear-gradient(var(--lime), var(--cyan), var(--violet));
  box-shadow: 0 0 18px rgb(101 217 255 / 42%);
  transform: scaleY(var(--project-progress));
  transform-origin: top;
  transition: transform 600ms var(--ease-out);
}

.project-index > p {
  margin: 0 0 1.8rem;
  color: #e9eef4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-index > p span {
  color: var(--muted);
}

.project-index ol {
  display: grid;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-index li {
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  color: #c4cdd7;
  opacity: 0.32;
  transform: translateX(0);
  transition: opacity 300ms ease, color 300ms ease, transform 420ms var(--ease-out);
}

.project-index li::before {
  position: absolute;
  left: -2.25rem;
  width: 0.5rem;
  aspect-ratio: 1;
  border: 2px solid #0d1118;
  border-radius: 50%;
  background: var(--project-accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--project-accent), transparent 35%);
  content: "";
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 300ms ease, transform 420ms var(--ease-out);
}

.project-index li > span {
  color: var(--project-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 800;
}

.project-index li strong {
  overflow: hidden;
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-index li.is-active {
  color: #fff;
  opacity: 1;
  transform: translateX(0.55rem);
}

.project-index li.is-active::before {
  opacity: 1;
  transform: scale(1);
}

.interest-band {
  position: relative;
  z-index: 3;
  margin-left: var(--rail-width);
  overflow: hidden;
  padding-block: 1.5rem;
  background: var(--lime);
  color: var(--ink);
  transform: rotate(-1deg) scale(1.02);
}

.interest-band > p {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.marquee {
  display: flex;
  overflow: hidden;
}

.marquee-track {
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 1.35rem;
  animation: marquee 28s linear infinite;
}

.marquee span {
  font-size: clamp(1.8rem, 4vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
}

.marquee i {
  font-size: 1.2rem;
  font-style: normal;
}

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

.contact-scene {
  min-height: 50svh;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgb(255 118 93 / 14%), transparent 25rem),
    linear-gradient(145deg, #111721, #080b10 70%);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
  padding-block: clamp(2.75rem, 5vh, 4rem);
}

.contact-grid .section-heading {
  grid-column: 1;
}

.contact-grid .section-heading h2 {
  max-width: 13ch;
}

.contact-copy {
  grid-column: 2;
  grid-row: 1;
  padding-left: clamp(2rem, 4vw, 4.5rem);
  border-left: 1px solid rgb(255 255 255 / 12%);
}

.contact-copy > p {
  max-width: 43rem;
  color: #b9c3cd;
  font-size: clamp(1.1rem, 1.5vw, 1.55rem);
}

.location-line {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.location-icon {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.contact-profile-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 1.35rem;
  background:
    linear-gradient(110deg, rgb(101 217 255 / 8%), transparent 48%),
    rgb(255 255 255 / 4%);
  box-shadow: 0 18px 50px rgb(0 0 0 / 24%);
  transition: border-color 260ms ease, transform 320ms var(--ease-out);
}

.contact-profile-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 34%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
  content: "";
  opacity: 0.7;
}

.contact-profile-card:hover {
  border-color: rgb(101 217 255 / 30%);
  transform: translateY(-2px);
}

.contact-avatar {
  width: 82px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 1rem;
  background: #0b1118;
}

.contact-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) brightness(0.78);
  image-rendering: pixelated;
  transition: filter 260ms ease, transform 500ms var(--ease-out);
}

.contact-profile-card:hover .contact-avatar img {
  filter: saturate(0.9) brightness(0.9);
  transform: scale(1.04);
}

.contact-identity {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}

.contact-identity strong {
  overflow: hidden;
  color: #f5f7fa;
  font-size: 1.15rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-identity .location-line {
  gap: 0.45rem;
  font-size: 0.66rem;
}

.contact-icon-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.contact-icon-link:hover,
.contact-icon-link:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.contact-action-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
}

.contact-action-icon.brand-icon {
  width: 15px;
  fill: currentColor;
  stroke: none;
}

@media (max-width: 620px) {
  .experience-groups {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-profile-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .contact-avatar {
    width: 64px;
    grid-row: 1 / span 2;
    align-self: center;
  }

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

  .contact-identity strong {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.button-primary {
  background: var(--cyan);
  color: var(--ink);
}

.button-ghost {
  border-color: rgb(255 255 255 / 22%);
  background: rgb(255 255 255 / 4%);
}

.site-footer {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem var(--gutter);
  border-top: 1px solid rgb(255 255 255 / 9%);
  background: #07090d;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--cyan);
  text-decoration: none;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.footer-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 50%;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.footer-icon:hover,
.footer-icon:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.footer-strava:hover,
.footer-strava:focus-visible {
  border-color: #fc4c02;
  color: #fc4c02;
}

.footer-linkedin:hover,
.footer-linkedin:focus-visible {
  border-color: #0a66c2;
  color: #0a66c2;
}

.strava-icon {
  width: 12px;
  fill: currentColor;
}

.footer-brand-icon {
  width: 13px;
  fill: currentColor;
}

.fallback-main {
  min-height: calc(100svh - 90px);
  padding-block: 8rem;
}

.fallback-main h1 {
  max-width: 13ch;
}

.error-page {
  display: grid;
  gap: 2rem;
}

.error-page .button {
  width: fit-content;
}

.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.has-js .project-card[data-reveal] {
  filter: blur(3px);
  transform: translate3d(0, 48px, 0) scale(0.97);
  transition:
    opacity 520ms ease,
    filter 720ms ease,
    transform 900ms var(--ease-out),
    border-color 220ms ease,
    box-shadow 320ms ease;
  will-change: opacity, filter, transform;
}

.has-js .project-card[data-reveal].is-visible {
  filter: none;
  transform: translate3d(0, 0, 0) rotate(0) scale(1);
  will-change: auto;
}


@media (max-width: 1040px) {
  :root {
    --rail-width: 76px;
  }

  .hero-grid,
  .profile-grid,
  .contact-grid {
    gap: 3rem;
  }

  .topic-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .topic-copy h2 {
    max-width: 16ch;
  }

  .topic-list {
    max-width: 780px;
  }

  .projects-layout {
    display: block;
  }

  .project-index {
    display: none;
  }

  .project-card {
    width: min(78%, 720px);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  }

  .hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(3rem, 5vw, 4.25rem);
  }

  .hero-timeline {
    width: min(118%, 620px);
    margin-inline: -9%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-grid .section-heading,
  .contact-copy {
    grid-column: 1;
    grid-row: auto;
  }

  .contact-copy {
    max-width: 680px;
    padding: 2rem 0 0;
    border-top: 1px solid rgb(255 255 255 / 12%);
    border-left: 0;
  }

  .profile-grid {
    grid-template-columns: 1fr 0.72fr;
  }

  .pixel-sticker {
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 7rem;
    padding-bottom: 8rem;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-visual {
    width: 100%;
    min-height: 0;
  }

  .hero-timeline {
    width: min(100%, 620px);
    margin-inline: auto;
  }
}

@media (max-width: 780px) {
  :root {
    --rail-width: 0px;
    --gutter: clamp(1.15rem, 5vw, 2rem);
  }

  html {
    scroll-padding-top: 1rem;
  }

  body {
    padding-bottom: 78px;
  }

  .control-rail {
    inset: auto 0 0;
    width: auto;
    height: 70px;
    flex-direction: row;
    padding: 0.55rem max(0.7rem, env(safe-area-inset-right)) calc(0.55rem + env(safe-area-inset-bottom)) max(0.7rem, env(safe-area-inset-left));
    border-top: 1px solid rgb(255 255 255 / 12%);
    border-right: 0;
  }

  .rail-mark {
    width: 46px;
    flex: 0 0 46px;
    font-size: 1.1rem;
  }

  .rail-nav {
    display: flex;
    flex: 1;
    justify-content: center;
    gap: clamp(0.15rem, 2vw, 0.75rem);
  }

  .rail-nav a {
    width: 42px;
    min-height: 42px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0;
  }

  .rail-number {
    text-align: center;
  }

  .rail-dot {
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
  }

  .rail-label,
  .rail-progress,
  .language-switcher > span {
    display: none;
  }

  .rail-tools {
    min-width: 45px;
  }

  .language-switcher {
    display: flex;
    gap: 0.35rem;
  }

  .language-switcher a[aria-current="page"] {
    display: none;
  }

  .site-main,
  .site-footer,
  .interest-band {
    margin-left: 0;
  }

  .hero-grid,
  .profile-grid,
  .projects-heading,
  .contact-grid,
  .topic-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 5.5rem;
    padding-bottom: 7rem;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.9rem, 13vw, 5.6rem);
  }

  .hero-visual {
    min-height: min(112vw, 610px);
    margin-top: 0;
  }

  .hero-timeline {
    width: min(106%, 560px);
    margin-inline: -3%;
  }

  .hero-era-nav {
    width: calc(100% - 1rem);
    gap: 0.25rem;
    padding: 0.5rem;
    border-radius: 0.8rem;
  }

  .hero-era-control {
    min-height: 2.65rem;
    padding: 0.35rem;
    border-radius: 0.5rem;
  }

  .hero-era-control img {
    max-width: 2.45rem;
    max-height: 1.5rem;
  }

  .hero-era-status {
    top: 1rem;
    left: 1rem;
    min-width: 8rem;
    padding: 0.6rem 0.7rem;
  }

  .scroll-cue {
    display: none;
  }

  .profile-grid {
    padding-block: 6.5rem;
  }

  .section-heading h2,
  .topic-copy h2 {
    font-size: clamp(2.4rem, 11vw, 4.6rem);
    font-weight: 600;
  }

  .profile-copy {
    padding-top: 0;
  }

  .profile-note,
  .pixel-sticker {
    grid-column: 1;
    grid-row: auto;
  }

  .pixel-sticker {
    width: min(82vw, 330px);
    justify-self: center;
    margin-top: 1rem;
  }

  .projects-heading {
    align-items: start;
  }

  .topic-copy h2 {
    max-width: 12ch;
  }

  .experience-dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  .experience-panel-shell {
    max-height: calc(100dvh - 1rem);
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  }

  .experience-panel-body {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.5rem 1.1rem 2rem;
  }

  .experience-panel-symbol {
    min-height: 120px;
  }

  .experience-panel-copy h3 {
    font-size: clamp(2rem, 8vw, 3.4rem);
  }

  .experience-panel-footer {
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  }

  .project-card {
    position: sticky;
    top: calc(var(--stack-top) + var(--stack-offset, 0px));
    width: 100%;
    margin-left: 0;
    margin-bottom: 2rem;
    min-height: 360px;
  }

  .project-stack {
    --stack-top: 1rem;
  }

  .project-body {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .project-symbol {
    position: absolute;
    right: 0;
    bottom: -1rem;
    z-index: -1;
    opacity: 0.16;
  }

  .interest-band {
    transform: rotate(-1.5deg) scale(1.04);
  }

  .contact-grid .section-heading,
  .contact-copy {
    grid-column: 1;
    grid-row: auto;
  }

  .contact-scene {
    min-height: auto;
  }

  .contact-grid {
    padding-block: 2.75rem;
  }

  .has-js .project-card[data-reveal] {
    transform: translate3d(0, 42px, 0) scale(0.98);
  }

  .contact-copy {
    padding: 2rem 0 0;
    border-top: 1px solid rgb(255 255 255 / 12%);
    border-left: 0;
  }

  .site-footer {
    min-height: 120px;
    align-items: flex-start;
    padding-bottom: 2.5rem;
  }
}

@media (max-width: 430px) {
  .rail-mark {
    display: none;
  }

  .rail-nav {
    justify-content: flex-start;
  }

  .project-topline {
    align-items: flex-start;
  }

  .project-label {
    max-width: 58%;
    text-align: center;
  }

  .project-body h3 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    overflow-wrap: anywhere;
  }

  .contact-actions {
    display: flex;
    gap: 0.4rem;
  }

  .contact-profile-card {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.65rem;
  }

  .contact-avatar {
    width: 54px;
  }

  .contact-identity strong {
    font-size: 0.9rem;
  }

  .contact-icon-link {
    width: 36px;
    height: 36px;
  }

  .topic-tag,
  .topic-tag.has-brand-icon {
    min-height: 44px;
    padding: 0.68rem 0.85rem;
    font-size: 0.78rem;
  }

  .experience-panel-header {
    min-height: 58px;
    padding: 0.55rem 0.8rem;
  }

  .experience-close {
    width: 38px;
    height: 38px;
  }

  .experience-panel-body {
    grid-template-columns: 1fr;
    padding: 1.1rem 0.85rem 1.5rem;
  }

  .experience-panel-symbol {
    width: 94px;
    min-height: 86px;
  }

  .experience-panel-symbol::before {
    width: 66%;
  }

  .experience-panel-symbol::after {
    width: 48%;
  }

  .experience-panel-copy h3 {
    margin-top: 0.4rem;
    font-size: clamp(1.9rem, 10vw, 3rem);
  }

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

  .experience-description {
    font-size: 0.9rem;
  }

  .experience-panel-footer {
    min-height: 58px;
    grid-template-columns: 1fr 1fr;
  }

  .experience-panel-scan {
    display: none;
  }

  .experience-panel-footer button {
    padding: 0.7rem 0.8rem;
  }

  .topic-brand-icon {
    width: 21px;
    height: 21px;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .has-js [data-reveal],
  .has-js .project-card[data-reveal] {
    filter: none;
    opacity: 1;
    transform: none;
  }

  .hero-era-scan {
    display: none;
  }

  .hero-era-image,
  .hero-era-control,
  .hero-era-control img,
  .hero-era-rail span {
    transition: none;
  }

}

@media print {
  .control-rail,
  .scroll-cue,
  .interest-band {
    display: none;
  }

  .site-main,
  .site-footer {
    margin-left: 0;
  }

  .scene {
    min-height: 0;
    break-inside: avoid;
  }
}
