:root {
  --ink: #F0F0E8;
  --muted: #A9B2BE;
  --line: rgba(188, 202, 216, 0.18);
  --blue: #A7C7DC;
  --paper: #090D14;
  --scene-dim: 0;
  color-scheme: dark;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

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

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

svg {
  display: block;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 6px;
  border-radius: 2px;
}

.shell {
  width: calc(100% - 96px);
  max-width: 1120px;
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 24px;
  z-index: 8;
  padding: 10px 16px;
  background: var(--paper);
  border: 1px solid var(--ink);
  transform: translateY(-160%);
}

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

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(ellipse at 78% 42%, #1C2937 0, rgba(18, 28, 40, 0.7) 27%, transparent 60%), linear-gradient(120deg, #090D14 25%, #101A28 75%, #090D14);
}

.scene canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 13, 20, 0.96) 0%, rgba(9, 13, 20, 0.83) 27%, rgba(9, 13, 20, 0.42) 45%, rgba(9, 13, 20, 0.08) 67%, transparent 86%), linear-gradient(0deg, rgba(9, 13, 20, 0.32), transparent 28%, transparent 83%, rgba(9, 13, 20, 0.16));
  pointer-events: none;
}

.scene-dimmer {
  position: absolute;
  inset: 0;
  background: rgba(9, 13, 20, var(--scene-dim));
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 2;
  min-height: 88px;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 13px;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.brand > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.avatar {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 11px;
  object-fit: cover;
}

.site-nav {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px 30px;
  min-width: 0;
  max-width: 50%;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.site-nav a,
.text-link,
.detail-link,
.footer-link {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 240ms ease;
}

.site-nav a:hover,
.text-link:hover,
.detail-link:hover,
.footer-link:hover {
  text-decoration-color: var(--blue);
}

.mobile-contact {
  display: none;
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.external-link svg {
  width: 12px;
  height: 12px;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  min-height: clamp(680px, 90svh, 880px);
  padding: 64px 0;
  display: flex;
  align-items: center;
}

.intro {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 55%;
  min-width: 0;
  padding-bottom: 73px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

h1 {
  margin: 0 0 25px;
  font-size: clamp(94px, 11vw, 154px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.bio {
  max-width: 390px;
  margin: 0 0 31px;
  font-size: 18px;
  font-weight: 350;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  max-width: 100%;
  font-size: 14px;
  line-height: 1.7;
  text-decoration-color: rgba(167, 199, 220, 0.55);
}

.text-link svg {
  flex: none;
  width: 15px;
  height: 15px;
  transition: transform 240ms ease;
}

.text-link:hover svg {
  transform: translate(2px, -2px);
}

.drag-surface {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 54%;
  right: 0;
  z-index: 1;
  cursor: grab;
  user-select: none;
  touch-action: auto;
}

.drag-surface.dragging {
  cursor: grabbing;
}

.motion-control {
  position: fixed;
  right: 27px;
  bottom: 23px;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(188, 202, 216, 0.22);
  border-radius: 50%;
  background: rgba(9, 13, 20, 0.65);
  color: var(--muted);
  cursor: pointer;
  transition: color 220ms ease, border-color 220ms ease;
}

.has-canvas .motion-control {
  display: flex;
}

.motion-control:hover {
  color: var(--ink);
  border-color: rgba(188, 202, 216, 0.45);
}

.motion-control svg {
  width: 12px;
  height: 12px;
}

.play-icon {
  display: none;
}

.motion-control[aria-pressed="true"] .pause-icon {
  display: none;
}

.motion-control[aria-pressed="true"] .play-icon {
  display: block;
}

.content-plane {
  position: relative;
  background: rgba(9, 13, 20, 0.8);
  border-top: 1px solid var(--line);
}

.about {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px;
  padding: 64px 0 48px;
}

.about > div,
.quote > div {
  min-width: 0;
}

h2 {
  margin: 0 0 25px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

dl {
  margin: 0;
}

.detail-row {
  display: flex;
  gap: 20px;
  min-width: 0;
  margin-bottom: 13px;
  font-size: 14px;
  line-height: 1.6;
}

dt {
  flex: 0 0 44px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.87;
}

dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.skill-list li {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.skill-list li + li::before {
  content: "·";
  display: inline-block;
  margin: 0 15px;
}

.quote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 40px;
  padding: 52px 0 82px;
}

.quote h2 {
  color: var(--muted);
  margin-top: 7px;
}

.quote blockquote {
  margin: 0;
  font-size: clamp(25px, 2.5vw, 33px);
  font-weight: 350;
  line-height: 1.7;
  letter-spacing: 0.015em;
  overflow-wrap: anywhere;
}

.quote-author {
  overflow-wrap: anywhere;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.friends {
  padding-bottom: 33px;
}

.friends h2 {
  margin-bottom: 25px;
}

.friend-list {
  border-top: 1px solid var(--line);
}

.friend-row {
  display: flex;
  align-items: center;
  gap: 30px;
  min-width: 0;
  min-height: 100px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.friend-marker {
  flex: 0 0 38px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  min-width: 0;
  overflow-wrap: anywhere;
}

.friend-marker img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
}

.friend-copy {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 27px;
  flex: 1;
  overflow-wrap: anywhere;
}

.friend-copy strong {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 240ms ease;
}

.friend-copy > span {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.friend-arrow {
  flex: none;
  margin-right: 5px;
  transition: transform 240ms ease;
}

.friend-arrow svg {
  width: 19px;
  height: 19px;
}

a.friend-row:hover .friend-copy strong {
  text-decoration-color: var(--blue);
}

a.friend-row:hover .friend-arrow {
  transform: translate(3px, -3px);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  padding: 25px 0 39px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.site-footer > * {
  min-width: 0;
}

@media (max-width: 1000px) and (min-width: 761px) {
  .shell {
    width: calc(100% - 72px);
  }
  .intro {
    max-width: 58%;
  }
  .about {
    gap: 40px;
  }
  .quote {
    gap: 20px;
  }
  .friend-copy {
    gap: 20px;
  }
  .drag-surface {
    left: 58%;
  }
}

@media (max-width: 760px) {
  .shell {
    width: calc(100% - 48px);
  }
  .site-header {
    min-height: 80px;
    gap: 16px;
  }
  .brand {
    font-size: 12px;
    gap: 9px;
  }
  .avatar {
    width: 27px;
    height: 27px;
    border-radius: 9px;
  }
  .site-nav {
    font-size: 12px;
    gap: 12px 19px;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-contact {
    display: inline;
  }
  .site-nav .external-link svg {
    display: none;
  }
  .hero {
    min-height: max(590px, calc(100svh - 80px));
    padding: 48px 0;
    align-items: center;
  }
  .intro {
    max-width: 100%;
    width: 100%;
    padding-bottom: 115px;
  }
  .eyebrow {
    font-size: 13px;
    margin-bottom: 17px;
  }
  h1 {
    font-size: 86px;
    margin-bottom: 24px;
  }
  .bio {
    font-size: 16px;
    margin-bottom: 26px;
    max-width: 280px;
  }
  .text-link {
    font-size: 13px;
    gap: 12px;
  }
  .drag-surface {
    display: none;
  }
  .scene::after {
    background: linear-gradient(90deg, rgba(9, 13, 20, 0.94) 0%, rgba(9, 13, 20, 0.78) 37%, rgba(9, 13, 20, 0.30) 70%, rgba(9, 13, 20, 0.08)), linear-gradient(0deg, rgba(9, 13, 20, 0.2), transparent 30%, rgba(9, 13, 20, 0.15));
  }
  .motion-control {
    width: 32px;
    height: 32px;
    right: 16px;
    bottom: 16px;
  }
  .about {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
    padding: 40px 0 33px;
  }
  h2 {
    font-size: 13px;
    margin-bottom: 19px;
  }
  .detail-row {
    font-size: 13px;
    gap: 19px;
    margin-bottom: 10px;
  }
  .skill-list {
    font-size: 14px;
  }
  .skill-list li {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .skill-list li + li::before {
    margin: 0 12px;
  }
  .quote {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding: 31px 0 49px;
  }
  .quote h2 {
    margin: 0 0 15px;
  }
  .quote blockquote {
    font-size: 26px;
    line-height: 1.55;
  }
  .quote-author {
    margin-top: 14px;
  }
  .friends {
    padding-bottom: 23px;
  }
  .friends h2 {
    margin-bottom: 20px;
  }
  .friend-row {
    min-height: 106px;
    padding: 23px 0;
    gap: 14px;
  }
  .friend-marker {
    flex-basis: 24px;
    align-self: flex-start;
    padding-top: 4px;
    font-size: 11px;
  }
  .friend-marker img {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }
  .friend-copy {
    display: block;
  }
  .friend-copy strong {
    display: block;
    font-size: 16px;
  }
  .friend-copy > span {
    display: block;
    font-size: 12px;
    margin-top: 6px;
  }
  .friend-arrow {
    margin-right: 0;
  }
  .friend-arrow svg {
    width: 17px;
    height: 17px;
  }
  .site-footer {
    flex-direction: column;
    gap: 9px;
    padding: 23px 0 36px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
  .has-canvas .motion-control {
    display: none;
  }
  .drag-surface {
    cursor: default;
  }
}
