:root {
  color-scheme: light;
  --page: #fbfbf9;
  --ink: #171716;
  --muted: #898985;
  --hairline: rgba(23, 23, 22, 0.14);
  --accent: #9a9a94;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

.page-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(18px, 2.5svh, 32px);
  width: 100%;
  min-height: 100svh;
  padding:
    max(clamp(20px, 3.5vw, 56px), env(safe-area-inset-top))
    max(clamp(20px, 5vw, 88px), env(safe-area-inset-right))
    max(clamp(20px, 3.5vw, 56px), env(safe-area-inset-bottom))
    max(clamp(20px, 5vw, 88px), env(safe-area-inset-left));
  isolation: isolate;
}

.topline,
.bottomline,
.motion-caption,
.eyebrow,
.name-note {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.topline,
.bottomline {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.topline {
  align-self: start;
}

.topline-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topline-links a {
  color: inherit;
  text-decoration: none;
}

.topline-links a:hover,
.topline-links a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.bottomline {
  align-self: end;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  align-items: center;
  gap: clamp(28px, 5vw, 96px);
  width: min(100%, 1600px);
  min-height: 0;
  margin: auto;
}

.name-panel {
  z-index: 2;
  width: 100%;
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 clamp(28px, 5vw, 64px);
}

h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(5rem, 9vw, 12.5rem);
  font-weight: 600;
  letter-spacing: -0.085em;
  line-height: 0.8;
  white-space: nowrap;
}

.name-note {
  margin: clamp(30px, 5vw, 60px) 0 0;
  color: var(--ink);
  opacity: 0.62;
  letter-spacing: 0.08em;
  text-transform: none;
}

.motion-panel {
  display: grid;
  justify-self: end;
  justify-items: end;
  align-self: center;
  width: min(100%, clamp(300px, 36vw, 700px), calc((100svh - 150px) * 0.75));
  min-width: 0;
}

.motion-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: visible;
  perspective: 1000px;
  contain: layout;
}

.motion-stage::after {
  position: absolute;
  right: 12%;
  bottom: 9%;
  left: 12%;
  height: 14%;
  border-radius: 50%;
  background: rgba(23, 23, 22, 0.065);
  content: "";
  filter: blur(28px);
  opacity: 0.5;
  pointer-events: none;
  transform: scaleY(0.3);
}

.motion-poster,
.motion-source,
.motion-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.motion-poster {
  z-index: 1;
  pointer-events: none;
  object-fit: contain;
  object-position: center bottom;
  transition: opacity 360ms ease;
}

.motion-source {
  z-index: 1;
  visibility: hidden;
  pointer-events: none;
}

.motion-canvas {
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 360ms ease;
}

.motion-stage.is-ready .motion-poster {
  opacity: 0;
}

.motion-stage.is-ready .motion-canvas {
  opacity: 1;
}

.motion-loading,
.motion-fallback {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}

.motion-loading {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: opacity 360ms ease;
}

.motion-loading.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  animation: breathe 1.4s ease-in-out infinite;
}

.motion-fallback {
  display: none;
  max-width: 180px;
  color: var(--ink);
  line-height: 1.6;
  text-align: center;
  text-transform: none;
}

.motion-stage.has-error .motion-fallback {
  display: block;
}

.motion-stage.has-error .motion-source {
  visibility: hidden;
}

.motion-stage.has-error .motion-poster {
  opacity: 1;
  visibility: visible;
}

.motion-stage.has-error .motion-canvas {
  opacity: 0;
  visibility: hidden;
}

.motion-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin: 12px 0 0;
}

.motion-caption span:last-child {
  color: var(--ink);
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.75);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 860px) {
  .page-shell {
    gap: clamp(14px, 2svh, 24px);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    align-content: space-between;
    justify-items: center;
    gap: clamp(24px, 4svh, 44px);
    padding: clamp(24px, 5svh, 56px) 0 0;
  }

  .name-panel {
    align-self: start;
    justify-self: start;
    width: 100%;
    max-width: 680px;
  }

  .eyebrow {
    margin-bottom: clamp(20px, 4vw, 32px);
  }

  h1 {
    font-size: clamp(4rem, 18vw, 8.5rem);
  }

  .name-note {
    margin-top: clamp(22px, 4vw, 36px);
  }

  .motion-panel {
    align-self: end;
    justify-self: center;
    justify-items: center;
    width: min(86vw, 440px, calc(50svh * 0.75));
  }
}

@media (max-width: 520px) {
  .topline,
  .bottomline,
  .motion-caption {
    font-size: 9px;
  }

  .topline span:last-child,
  .bottomline span:last-child {
    display: none;
  }

  .hero {
    gap: clamp(18px, 3svh, 30px);
    padding-top: clamp(20px, 4svh, 36px);
  }

  h1 {
    font-size: clamp(3.6rem, 18vw, 6rem);
  }

  .motion-panel {
    width: min(88vw, 350px, calc(49svh * 0.75));
  }
}

@media (max-width: 860px) and (max-height: 500px) and (orientation: landscape) {
  .page-shell {
    gap: 8px;
    padding:
      max(14px, env(safe-area-inset-top))
      max(24px, env(safe-area-inset-right))
      max(14px, env(safe-area-inset-bottom))
      max(24px, env(safe-area-inset-left));
  }

  .hero {
    gap: 10px;
    padding-top: 8px;
  }

  .eyebrow,
  .name-note {
    display: none;
  }

  h1 {
    font-size: clamp(3rem, 10svh, 4rem);
  }

  .motion-panel {
    width: min(30vw, calc(52svh * 0.75));
  }

  .motion-caption {
    margin-top: 6px;
  }
}

@media (max-height: 600px) and (min-width: 861px) {
  .page-shell {
    gap: 12px;
    padding-top: max(18px, env(safe-area-inset-top));
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .eyebrow {
    margin-bottom: 20px;
  }

  .name-note {
    margin-top: 22px;
  }

  .motion-panel {
    width: min(34vw, calc((100svh - 100px) * 0.75));
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-dot {
    animation: none;
  }

  .motion-loading {
    transition: none;
  }

  .motion-canvas {
    transition: none;
  }
}
