:root {
  --ink: #141413;
  --paper: #f7f4ef;
  --ground: #0e0e0d;
  --muted: #5e5a54;
  --line: #e4dfd6;
  --rail: 52px;
  --drawer: min(520px, calc(100vw - var(--rail)));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--ground);
}

body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  font-family: "Raleway", system-ui, sans-serif;
  font-weight: 500;
  background: var(--ground);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

p,
li,
blockquote,
h1,
h2,
h3,
.prose,
.intro-title,
.project-summary,
.quote-text,
.splash-kicker,
.colophon {
  text-wrap: pretty;
}

ul,
ol {
  list-style: none;
}

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

.rail {
  position: fixed;
  z-index: 6;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--rail);
  background: #000;
  pointer-events: none;
}

.panel {
  position: fixed;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(var(--drawer) + var(--rail));
  background: #000;
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease);
  pointer-events: none;
}

.is-open .panel {
  transform: translateX(0);
}

.drawer {
  --inset: 12px;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding-left: var(--rail);
  background: transparent;
  overflow: hidden;
}

.drawer-scroll {
  flex: 1;
  min-height: 0;
  margin: 0 var(--inset);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  border-radius: 12px 12px 0 0;
}

.drawer-scroll::-webkit-scrollbar {
  display: none;
}

.menu {
  position: fixed;
  z-index: 7;
  top: 50%;
  left: calc((var(--rail) - 44px) / 2);
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}

.menu:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.resume-rail {
  position: fixed;
  z-index: 7;
  bottom: 12px;
  left: calc((var(--rail) - 44px) / 2);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.35s var(--ease), transform 0.2s var(--ease);
}

.resume-rail:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.resume-rail-tip,
.menu-tip,
.mark-tip {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  translate: 0 -50%;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f4f1eb;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}

.resume-rail:hover .resume-rail-tip,
.resume-rail:focus-visible .resume-rail-tip,
.menu:hover .menu-tip,
.menu:focus-visible .menu-tip,
.mark:hover .mark-tip {
  opacity: 1;
}

.mark,
.menu,
.pager-step,
.action-row .resume,
.action-row .contact-jump,
.view-project,
.connect-slide .resume {
  transition: transform 0.2s var(--ease);
}

.mark:hover,
.menu:hover,
.resume-rail:hover,
.pager-step:hover:not(:disabled),
.action-row .resume:hover,
.action-row .contact-jump:hover,
.view-project:hover,
.connect-slide .resume:hover {
  transform: scale(1.06);
}

.is-open .resume-rail {
  opacity: 0;
  pointer-events: none;
}

.mark {
  position: fixed;
  z-index: 7;
  top: 12px;
  left: calc((var(--rail) - 40px) / 2);
  width: 40px;
  height: 40px;
  padding: 0;
  filter: none;
}

.mark:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
  border-radius: 50%;
}

.mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.menu-icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.menu-glyph {
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  transition: opacity 0.2s var(--ease);
}

.menu-glyph-close,
.is-open .menu-glyph-open {
  opacity: 0;
}

.is-open .menu-glyph-close {
  opacity: 1;
}

.scrim {
  display: none;
}

.section-nav {
  position: relative;
  flex: none;
  z-index: 2;
  display: flex;
  margin: 12px var(--inset) 8px;
  padding: 6px;
  background: var(--paper);
  border-radius: 999px;
}

.section-nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 999px;
  background: var(--ink);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.45s var(--ease), width 0.45s var(--ease), height 0.45s var(--ease);
}

.section-label::before,
.section-label::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.section-label::before {
  inset: -10%;
  background:
    radial-gradient(circle at 0% 0%, rgba(139, 92, 246, 0.85), transparent 34%),
    radial-gradient(circle at 100% 110%, rgba(45, 212, 191, 0.7), transparent 32%);
  filter: blur(8px);
  animation: blob-drift 18s ease-in-out infinite alternate;
}

.section-label::after {
  inset: -15%;
  background:
    radial-gradient(circle at 108% 0%, rgba(45, 212, 191, 0.55), transparent 30%),
    radial-gradient(circle at -8% 120%, rgba(124, 77, 255, 0.5), transparent 28%);
  filter: blur(10px);
  animation: blob-drift-alt 24s ease-in-out infinite alternate;
}

.section-nav button {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  padding: 8px 4px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  text-align: center;
  color: var(--ink);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.section-nav button:hover:not([aria-current="true"]):not(.is-leaving) {
  background: rgba(20, 20, 19, 0.08);
}

.section-nav button[aria-current="true"] {
  color: var(--paper);
  transition-delay: 0.18s;
}

.section-nav button.is-leaving {
  color: var(--paper);
}

.sheet {
  box-sizing: border-box;
  scroll-margin-top: 12px;
}

.sheet + .sheet {
  margin-top: 12px;
}

.sheet:last-child {
  padding-bottom: var(--inset);
}

.sheet-face {
  background: var(--paper);
  border-radius: 12px;
  overflow: hidden;
}

.sheet-face.is-waiting {
  opacity: 0;
  scale: 0.94;
  transform-origin: center top;
}

.sheet-scroll {
  padding: 28px 36px 36px;
}

.sheet-body {
  display: flex;
  flex-direction: column;
}

.identity h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: inherit;
}

.role {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.011em;
  color: inherit;
}

.portrait {
  margin: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.colophon {
  margin: 0;
  padding: 22px 2px 28px;
  color: var(--paper);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  white-space: nowrap;
}

.section-label {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 10px 0;
  padding: 18px 22px;
  border-radius: 12px;
  overflow: hidden;
  background: #141413;
  color: var(--paper);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.section-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}

.section-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-icon svg path[fill="currentColor"] {
  fill: currentColor;
  stroke: none;
}

.section-label.identity {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px 28px 20px;
}

.prose {
  display: grid;
  gap: 16px;
}

.prose p,
.rules li {
  font-size: 14pt;
  line-height: 1.5;
  letter-spacing: -0.011em;
}

.prose strong {
  font-weight: 600;
}

.rules li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.rules li:first-child {
  padding-top: 0;
}

.item-title {
  font-size: 14pt;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.item-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: -0.006em;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.award-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.award-row .item-title {
  min-width: 0;
}

.award-row .item-meta {
  margin-top: 0;
  flex: none;
  white-space: nowrap;
}

.award .item-meta {
  margin-top: 4px;
}

.contact-facts a {
  color: inherit;
  text-decoration: none;
  border-radius: 999px;
  padding: 2px 8px;
  margin: -2px -8px;
  transition: background 0.2s var(--ease);
}

.contact-facts a:hover {
  background: rgba(20, 20, 19, 0.08);
}

.contact-facts a,
.resume,
.contact-jump {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.resume,
.contact-jump {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 0;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
}

.action-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 8px;
  transition: grid-template-columns 0.45s var(--ease), gap 0.45s var(--ease);
}

.action-row.is-at-bottom {
  grid-template-columns: minmax(0, 0fr) minmax(0, 1fr);
  gap: 0;
}

.action-row .resume,
.action-row .contact-jump {
  width: auto;
  min-width: 0;
  padding: 12px 14px;
}

.action-row .resume {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  transition: transform 0.2s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.action-row.is-at-bottom .resume {
  background: var(--ink);
  color: var(--paper);
  box-shadow: none;
}

.action-row .contact-jump {
  overflow: hidden;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), opacity 0.3s var(--ease), padding 0.4s var(--ease);
}

.action-row.is-at-bottom .contact-jump {
  padding-right: 0;
  padding-left: 0;
  opacity: 0;
  pointer-events: none;
}

.resume-hold {
  margin-top: 28px;
}

#contact .sheet-scroll {
  padding-bottom: 18px;
}

.quotes blockquote {
  margin: 0;
}

.quote-text {
  font-size: 14pt;
  font-weight: 500;
  letter-spacing: -0.011em;
  line-height: 1.5;
}

.quote-lead {
  display: block;
  margin-bottom: 8px;
  font-size: 18pt;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

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

.quote-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}

.resume-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.action-row.is-docked {
  position: fixed;
  z-index: 6;
  margin: 0;
  padding: 10px;
  background: var(--paper);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.22);
  pointer-events: auto;
}

.action-row.is-docked.is-at-bottom {
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.action-row.is-sliding {
  transition:
    grid-template-columns 0.45s var(--ease),
    gap 0.45s var(--ease),
    left 0.45s var(--ease),
    width 0.45s var(--ease),
    padding 0.45s var(--ease),
    background-color 0.45s var(--ease),
    border-radius 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

.stack {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--ground);
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
}

.is-open .stack,
.is-open .pager-wrap {
  filter: blur(14px);
}

.is-open .track,
.is-open .pager-wrap {
  pointer-events: none;
  user-select: none;
}

.is-open .stack {
  transform: translateX(calc(var(--drawer) + var(--rail)));
  cursor: pointer;
}

.stage-hint {
  display: none;
}

@media (min-width: 721px) {
  .is-open .stage-hint {
    position: fixed;
    z-index: 4;
    top: 50%;
    left: calc((100vw + var(--drawer) + var(--rail)) / 2);
    display: block;
    margin: 0;
    padding: 10px 16px;
    border-radius: 999px;
    background: #f4f1eb;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    translate: -50% -50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease);
  }

  .is-open .stack:hover ~ .stage-hint {
    opacity: 1;
  }
}

.track {
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.15, 1);
}

.track.is-instant {
  transition: none;
}

.card {
  height: 100dvh;
  flex: 0 0 100dvh;
}

.card-face {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--fill);
  color: var(--on);
}

.project-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.project-frame picture {
  position: absolute;
  inset: 0;
  display: block;
}

.card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.32) translate3d(-2%, 1.5%, 0);
}

@media (min-width: 721px) {
  .project-slide .project-frame {
    top: 36px;
    right: calc(6px + 40px + 36px);
    bottom: 36px;
    left: calc(var(--rail) + 36px);
    z-index: 1;
    border-radius: 12px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
  }

  .project-slide .project-info {
    z-index: 2;
    left: calc(var(--rail) + 72px);
  }
}

.card-image.is-kenburns {
  animation: kenburns 12s var(--ease) forwards;
}

@keyframes kenburns {
  from {
    transform: scale(1.32) translate3d(-2%, 1.5%, 0);
  }
  to {
    transform: scale(1) translate3d(0, 0, 0);
  }
}

.project-info {
  position: absolute;
  z-index: 1;
  left: 84px;
  top: 50%;
  translate: 0 -50%;
  width: min(420px, calc(100% - 168px));
  padding: 32px 32px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
}

.project-type {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-title {
  text-wrap: wrap;
  margin-top: 10px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
  font-size: clamp(44px, 5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.project-summary {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 14pt;
  line-height: 1.4;
  color: var(--ink);
}

.visit-label {
  display: none;
}

.view-project {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.view-project::after {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M2.25 9h8.2M7.3 5.4 10.9 9 7.3 12.6' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M2.25 9h8.2M7.3 5.4 10.9 9 7.3 12.6' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.view-project:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.project-info .view-project {
  cursor: not-allowed;
}

.project-info .view-project::before {
  content: "Coming soon";
  display: none;
}

.project-info .view-project:hover,
.project-info .view-project:focus-visible {
  background: #9a968e;
  color: rgba(244, 241, 235, 0.82);
}
.project-info .view-project:hover .view-label,
.project-info .view-project:hover .visit-label,
.project-info .view-project:focus-visible .view-label,
.project-info .view-project:focus-visible .visit-label {
  display: none;
}

.project-info .view-project:hover::before,
.project-info .view-project:focus-visible::before {
  display: block;
}

.project-info .view-project:hover::after,
.project-info .view-project:focus-visible::after {
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='6.25' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M4.7 13.3 13.3 4.7' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='6.25' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M4.7 13.3 13.3 4.7' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.intro-slide .card-face {
  display: flex;
  align-items: center;
}

.intro-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: calc(100% - var(--rail) - 148px);
  margin: 0 0 0 calc(var(--rail) + 48px);
  font-size: clamp(42px, calc((100vw - var(--rail) - 210px) / 10.6), 96px);
}

.intro-title {
  margin: 0;
  color: var(--paper);
  font-size: 1em;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

@media (min-width: 1024px) {
  .intro-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .intro-title span {
    display: block;
    white-space: nowrap;
  }
}

.splash-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--paper);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.kicker-avatar {
  display: block;
  width: 1.45em;
  height: 1.45em;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
}

.kicker-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  transform: scale(1.35);
  transform-origin: center 22%;
}

@media (min-width: 721px) {
  .kicker-avatar {
    width: 2.7em;
    height: 2.7em;
    border-radius: 50%;
  }

  .kicker-avatar img {
    object-position: center 14%;
    transform: scale(1.38);
    transform-origin: center 20%;
  }
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.intro-slide .view-project {
  margin-top: 0;
  background: var(--paper);
  color: var(--ink);
}

.intro-slide .intro-actions > .view-project:not(.intro-outline) {
  padding-inline: 40px;
}

.intro-slide .intro-outline {
  box-sizing: border-box;
  border: 2px solid var(--paper);
  background: transparent;
  color: var(--paper);
  min-height: 46px;
  padding: 12px 18px;
}

.intro-slide .intro-outline:hover {
  background: rgba(247, 244, 239, 0.12);
}

.intro-slide .view-project::after {
  display: none;
}

.intro-action-icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.intro-orbit {
  display: none;
}

html.is-booting .intro-slide .splash-kicker,
html.is-booting .intro-slide .intro-title,
html.is-booting .intro-slide .intro-title span,
html.is-booting .intro-slide .intro-actions .view-project,
html.is-booting .intro-slide .intro-swipe,
html.is-booting .intro-orbit-face,
html.is-booting .connect-slide .splash-kicker,
html.is-booting .connect-slide .connect-title,
html.is-booting .connect-slide .connect-title span,
html.is-booting .connect-slide .connect-panel {
  opacity: 0;
}

.intro-swipe {
  position: absolute;
  z-index: 2;
  bottom: 22px;
  left: calc(var(--rail) + 48px);
  width: calc(100% - var(--rail) - 148px);
  display: flex;
  justify-content: flex-start;
  pointer-events: none;
  color: var(--paper);
}

.intro-swipe-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.78;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.intro-swipe-glyph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: intro-swipe-nudge 1.8s ease-in-out infinite;
}

.intro-swipe svg {
  display: block;
  width: 16px;
  height: 16px;
  margin: -3px 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes intro-swipe-nudge {
  0%, 100% { transform: translateY(-3px); }
  50% { transform: translateY(3px); }
}

@media (min-width: 1024px) and (orientation: landscape) {
  .intro-block {
    z-index: 2;
    width: min(680px, calc(100vw - var(--rail) - 620px));
    margin-left: calc(var(--rail) + clamp(72px, 12vw, 220px) - 56px);
    font-size: clamp(44px, 4.6vw, 84px);
  }

  .intro-swipe {
    left: calc(var(--rail) + clamp(72px, 12vw, 220px) - 56px);
    width: min(680px, calc(100vw - var(--rail) - 620px));
  }

  .intro-orbit {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }

  .intro-orbit-card {
    position: absolute;
    top: 50%;
    right: 212px;
    width: 460px;
    height: 304px;
    margin-top: -152px;
    padding: 0;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    pointer-events: auto;
    animation: intro-arc 18s linear infinite;
    animation-delay: calc(var(--i) * -3.6s);
  }

  .intro-orbit-face {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    background: #1c1c1b;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
    transition: transform 0.45s var(--ease);
  }

  .intro-orbit-face::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    border-radius: inherit;
    background: rgba(0, 0, 0, 0.34);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
  }

  .intro-orbit-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    pointer-events: none;
  }

  .intro-orbit-tag {
    position: absolute;
    z-index: 3;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    max-width: calc(100% - 32px);
    padding: 10px 14px 11px;
    border-radius: 12px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    pointer-events: none;
  }

  .intro-orbit-type,
  .intro-orbit-name {
    white-space: nowrap;
  }

  .intro-orbit-type {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    color: var(--muted);
  }

  .intro-orbit-name {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
  }

  .intro-orbit-view {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
    translate: -50% -50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
  }

  .intro-orbit-view::after {
    content: "";
    width: 18px;
    height: 18px;
    flex: none;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M2.25 9h8.2M7.3 5.4 10.9 9 7.3 12.6' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M2.25 9h8.2M7.3 5.4 10.9 9 7.3 12.6' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .intro-orbit-card:hover,
  .intro-orbit-card:focus-visible {
    z-index: 3;
  }

  .intro-orbit-card:hover .intro-orbit-face,
  .intro-orbit-card:focus-visible .intro-orbit-face {
    transform: scale(1.06);
  }

  .intro-orbit-card:hover .intro-orbit-face::before,
  .intro-orbit-card:focus-visible .intro-orbit-face::before,
  .intro-orbit-card:hover .intro-orbit-view,
  .intro-orbit-card:focus-visible .intro-orbit-view {
    opacity: 1;
  }

  body:not([data-slide="0"]) .intro-orbit-card {
    animation-play-state: paused;
  }

  .intro-orbit:hover .intro-orbit-card,
  .intro-orbit:hover .intro-orbit-tag,
  .intro-orbit:focus-within .intro-orbit-card,
  .intro-orbit:focus-within .intro-orbit-tag {
    animation-play-state: paused;
  }

  .intro-orbit-card:focus-visible,
  .intro-orbit-tag:focus-visible {
    outline: 2px solid var(--paper);
    outline-offset: 4px;
  }
}

@property --orbit-p {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

@keyframes intro-marquee {
  from { --orbit-p: 0; }
  to { --orbit-p: 1; }
}

@keyframes intro-arc {
  0% {
    transform: translate3d(min(12vh, 104px), max(-112vh, -920px), 0) rotate(-12deg);
  }
  12.5% {
    transform: translate3d(min(6.8vh, 56px), max(-84vh, -690px), 0) rotate(-9deg);
  }
  25% {
    transform: translate3d(min(3vh, 25px), max(-56vh, -460px), 0) rotate(-6deg);
  }
  37.5% {
    transform: translate3d(min(0.8vh, 7px), max(-28vh, -230px), 0) rotate(-3deg);
  }
  50% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  62.5% {
    transform: translate3d(min(0.8vh, 7px), min(28vh, 230px), 0) rotate(3deg);
  }
  75% {
    transform: translate3d(min(3vh, 25px), min(56vh, 460px), 0) rotate(6deg);
  }
  87.5% {
    transform: translate3d(min(6.8vh, 56px), min(84vh, 690px), 0) rotate(9deg);
  }
  100% {
    transform: translate3d(min(12vh, 104px), min(116vh, 960px), 0) rotate(12deg);
  }
}


@media (max-width: 720px) {
  .intro-slide .card-face::before,
  .connect-slide .card-face::before,
  .project-slide .card-face::before,
  .intro-slide .card-face::after,
  .connect-slide .card-face::after,
  .project-slide .card-face::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -18%;
    pointer-events: none;
  }

  .intro-slide .card-face::before,
  .connect-slide .card-face::before,
  .project-slide .card-face::before {
    background:
      radial-gradient(circle at 22% 30%, rgba(139, 92, 246, 0.55), transparent 34%),
      radial-gradient(circle at 74% 76%, rgba(45, 212, 191, 0.48), transparent 32%);
    filter: blur(36px);
    animation: blob-drift 18s ease-in-out infinite alternate;
    will-change: transform;
  }

  .intro-slide .card-face::after,
  .connect-slide .card-face::after,
  .project-slide .card-face::after {
    background:
      radial-gradient(circle at 78% 24%, rgba(45, 212, 191, 0.42), transparent 30%),
      radial-gradient(circle at 36% 82%, rgba(124, 77, 255, 0.4), transparent 32%);
    filter: blur(42px);
    animation: blob-drift-alt 24s ease-in-out infinite alternate;
    will-change: transform;
  }
}

@media (min-width: 721px) {
  .stack {
    background: #000;
  }

  .stack::before,
  .stack::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -18%;
    pointer-events: none;
  }

  .stack::before {
    background:
      radial-gradient(circle at 22% 30%, rgba(139, 92, 246, 0.55), transparent 34%),
      radial-gradient(circle at 74% 76%, rgba(45, 212, 191, 0.48), transparent 32%);
    filter: blur(36px);
    animation: blob-drift 18s ease-in-out infinite alternate;
    will-change: transform;
  }

  .stack::after {
    background:
      radial-gradient(circle at 78% 24%, rgba(45, 212, 191, 0.42), transparent 30%),
      radial-gradient(circle at 36% 82%, rgba(124, 77, 255, 0.4), transparent 32%);
    filter: blur(42px);
    animation: blob-drift-alt 24s ease-in-out infinite alternate;
    will-change: transform;
  }

  .track {
    position: relative;
    z-index: 1;
  }

  .intro-slide .card-face,
  .connect-slide .card-face,
  .project-slide .card-face {
    background: transparent;
  }
}

.intro-block,
.connect-stage {
  position: relative;
  z-index: 2;
}

.intro-orbit {
  z-index: 1;
}

@keyframes blob-drift {
  from { transform: translate3d(-4%, -3%, 0) scale(1); }
  to { transform: translate3d(6%, 5%, 0) scale(1.12); }
}

@keyframes blob-drift-alt {
  from { transform: translate3d(5%, 4%, 0) scale(1.08); }
  to { transform: translate3d(-6%, -4%, 0) scale(1); }
}

.connect-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  text-align: left;
}

.emoji-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  touch-action: none;
}

.emoji-bit {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  line-height: 1;
  user-select: none;
  cursor: grab;
  will-change: transform;
}

.emoji-bit.is-grabbed {
  z-index: 2;
  cursor: grabbing;
}

.connect-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vw, 72px);
  height: 100%;
  padding: 40px 72px;
  pointer-events: none;
}

.connect-copy,
.connect-panel,
.connect-panel a,
.connect-panel .resume {
  pointer-events: auto;
}

.connect-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  color: var(--paper);
  font-size: clamp(72px, 9vw, 140px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.88;
}

.connect-title span {
  display: block;
}

.connect-panel {
  flex: none;
  width: min(420px, 42vw);
  padding: 32px 36px 28px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
}

.connect-panel .resume {
  margin-top: 28px;
}

.pager-wrap {
  position: fixed;
  z-index: 3;
  right: 6px;
  top: 50%;
  translate: 0 -50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: filter 0.5s var(--ease);
}

.pager-step {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}

.pager-step::before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.7 9h8.2M9.7 5.4 13.3 9 9.7 12.6' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.7 9h8.2M9.7 5.4 13.3 9 9.7 12.6' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pager-step[data-step="-1"]::before {
  transform: rotate(-90deg);
}

.pager-step[data-step="1"]::before {
  transform: rotate(90deg);
}

.pager-step:disabled::before {
  opacity: 0.35;
}

.pager-step:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

.pager-step-tip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  translate: 0 -50%;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f4f1eb;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}

.pager-step:hover .pager-step-tip,
.pager-step:focus-visible .pager-step-tip {
  opacity: 1;
}

.pager {
  --pager-bg: #f4f1eb;
  --pager-fg: var(--ink);
  --pager-slot: 30px;
  --pager-dot: 4px;
  --pager-pill: 54px;
  --pager-pill-w: 30px;
  --pager-button-w: 28px;
  --pager-pad-x: 8px;
  --pager-clear: 34px;
  --pager-gap: calc(var(--pager-clear) + (var(--pager-pill) + var(--pager-dot)) / 2 - var(--pager-slot));
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--pager-gap);
  padding: calc(var(--pager-clear) + (var(--pager-pill) - var(--pager-slot)) / 2) var(--pager-pad-x);
  border-radius: 999px;
  background: var(--pager-bg);
  color: var(--pager-fg);
}

.pager button {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--pager-button-w);
  height: var(--pager-slot);
  border-radius: 999px;
  color: inherit;
  transition: margin-block 0.5s var(--ease), height 0.5s var(--ease);
}

.pager button[aria-current="true"] {
  z-index: 1;
  height: var(--pager-pill);
  margin-block: calc((var(--pager-slot) - var(--pager-pill)) / 2);
}

.pager button::before {
  content: "";
  width: var(--pager-dot);
  height: var(--pager-dot);
  border-radius: 99px;
  background: currentColor;
  opacity: 0.4;
  transition: opacity 0.45s var(--ease), transform 0.2s var(--ease);
}

.pager button:hover::before {
  transform: scale(1.85);
}

.pager button[aria-current="true"]::before,
.pager button[aria-current="true"]:hover::before {
  opacity: 0;
  transform: none;
}

.pager-indicator {
  position: absolute;
  left: auto;
  right: calc(var(--pager-pad-x) - (var(--pager-pill-w) - var(--pager-button-w)) / 2);
  top: 0;
  width: var(--pager-pill-w);
  height: var(--pager-pill);
  border-radius: 999px;
  background: #141413 center / cover no-repeat;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  z-index: 2;
  transition: transform 0.5s var(--ease);
}

.pager-indicator.is-mark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Crect x='2.25' y='4.25' width='13.5' height='9.5' rx='1.4' fill='none' stroke='%23f4f1eb' stroke-width='1.5'/%3E%3Cpath d='M2.7 5.1 9 9.7 15.3 5.1' fill='none' stroke='%23f4f1eb' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #141413;
}

.pager-name {
  position: absolute;
  right: calc(100% + 22px);
  top: 50%;
  translate: 0 -50%;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--pager-bg);
  color: var(--pager-fg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}

.pager-name.has-preview {
  width: 210px;
  padding: 0;
  border-radius: 12px;
  background: none;
  box-shadow: none;
  text-align: left;
  line-height: 1;
}

.pager-name.has-preview > span {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--pager-bg);
  color: var(--pager-fg);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pager-name.has-preview > span:has(.pager-tip-type) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 7px 10px 8px;
  border-radius: 10px;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.pager-tip-type,
.pager-tip-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pager-tip-type {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--muted);
}

.pager-tip-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.pager-preview {
  display: block;
  width: 100%;
  height: 118px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.pager-preview.is-portrait {
  object-position: center 30%;
}

.pager-wrap:not(.is-edge) .pager-name.has-preview:has(.is-intro) {
  overflow: hidden;
  background: #000;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.pager-wrap:not(.is-edge) .pager-preview.is-intro {
  object-position: left center;
  transform: translateX(20%);
  box-shadow: none;
}

.pager-preview.is-mark {
  display: grid;
  place-items: center;
  background: #141413;
  color: #f4f1eb;
}

.pager-preview.is-mark svg {
  width: 36px;
  height: 36px;
}

.pager button:hover .pager-name,
.pager button:focus-visible .pager-name {
  opacity: 1;
}

.pager button:focus-visible {
  outline: none;
}

.pager-wrap.is-edge {
  right: 0;
  align-items: flex-end;
  gap: 0;
  pointer-events: none;
}

.pager-wrap.is-edge .pager-step,
.pager-wrap.is-edge .pager-indicator,
.pager-wrap.is-edge .pager button::before {
  display: none;
}

.pager-wrap.is-edge .pager {
  align-items: flex-end;
  gap: 14px;
  padding: 0;
  border-radius: 0;
  background: none;
}

.pager-wrap.is-edge .pager button {
  --tilt: 0deg;
  --tuck: 0px;
  display: flex;
  align-items: center;
  width: max-content;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: none;
  color: #f7f4ef;
  box-shadow: none;
  opacity: 0.42;
  pointer-events: auto;
  transform: translateX(calc(100% - 72px + var(--tuck)));
  transition: transform 0.45s var(--ease), opacity 0.35s var(--ease);
}

.pager-wrap.is-edge .pager button:nth-child(1) { --tilt: 22deg; --tuck: 36px; }
.pager-wrap.is-edge .pager button:nth-child(2) { --tilt: 15deg; --tuck: 20px; }
.pager-wrap.is-edge .pager button:nth-child(3) { --tilt: 8deg; --tuck: 8px; }
.pager-wrap.is-edge .pager button:nth-child(4) { --tilt: 0deg; --tuck: 0px; }
.pager-wrap.is-edge .pager button:nth-child(5) { --tilt: -8deg; --tuck: 8px; }
.pager-wrap.is-edge .pager button:nth-child(6) { --tilt: -15deg; --tuck: 20px; }
.pager-wrap.is-edge .pager button:nth-child(7) { --tilt: -22deg; --tuck: 36px; }

.pager-wrap.is-edge .pager button[aria-current="true"] {
  z-index: 1;
  margin-block: 0;
  opacity: 1;
  transform: translateX(calc(100% - 108px + var(--tuck)));
}

.pager-wrap.is-edge .pager button:hover,
.pager-wrap.is-edge .pager button:focus-visible {
  z-index: 2;
  opacity: 1;
  transform: translateX(-18px);
  outline: none;
}

.pager-wrap.is-edge .pager-name,
.pager-wrap.is-edge .pager-name.has-preview {
  position: static;
  translate: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--ink);
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: left;
  white-space: normal;
  opacity: 1;
  pointer-events: none;
}

.pager-wrap.is-edge .pager-name > span {
  position: static;
  top: auto;
  left: auto;
  min-width: 0;
  max-width: 112px;
  padding: 0;
  border-radius: 0;
  background: none;
  color: #f7f4ef;
  font-size: inherit;
  line-height: 1.15;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.9),
    0 2px 10px rgba(0, 0, 0, 0.7);
}

.pager-wrap.is-edge .pager-preview,
.pager-wrap.is-edge .pager-name::before {
  display: block;
  flex: none;
  width: 84px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
  transform: rotate(var(--tilt));
  transform-origin: right center;
  transition: transform 0.45s var(--ease);
}

.pager-wrap.is-edge .pager-preview.is-mark {
  display: grid;
}

.pager-wrap.is-edge .pager button:hover .pager-preview,
.pager-wrap.is-edge .pager button:hover .pager-name::before,
.pager-wrap.is-edge .pager button:focus-visible .pager-preview,
.pager-wrap.is-edge .pager button:focus-visible .pager-name::before {
  transform: rotate(0deg);
}

.pager-wrap.is-edge .pager-name.has-preview::before {
  display: none;
}

.pager-wrap.is-edge .pager button[data-kind="intro"] .pager-name::before {
  content: "";
  background: #141413 url("images/ethan_sherman_headshot.jpg") center / cover no-repeat;
}

.pager-wrap.is-edge .pager button[data-kind="connect"] .pager-name::before {
  content: "";
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.2 9h8.4M9.4 5.2 13.2 9l-3.8 3.8' fill='none' stroke='%23f4f1eb' stroke-width='1.5'/%3E%3C/svg%3E") center / 18px no-repeat,
    #141413;
}

@media (max-height: 760px) {
  .pager-wrap.is-edge .pager {
    gap: 8px;
  }

  .pager-wrap.is-edge .pager-preview,
  .pager-wrap.is-edge .pager-name::before {
    width: 68px;
    height: 48px;
  }
}

@media (max-width: 720px) {
  .rail {
    right: 0;
    bottom: auto;
    width: 100%;
    height: 60px;
  }

  .mark {
    top: 10px;
    left: 14px;
  }

  .menu {
    top: 8px;
    right: 12px;
    left: auto;
    translate: none;
  }

  .resume-rail {
    display: none;
  }

  .pager-wrap {
    display: none;
  }

  .menu-tip,
  .mark-tip,
  .resume-rail-tip,
  .pager-name,
  .pager-step-tip,
  .stage-hint {
    display: none;
  }

  .panel {
    width: 100%;
    transform: translateY(-100%);
  }

  .is-open .panel {
    transform: translateY(0);
  }

  .is-open .stack {
    transform: none;
  }

  .drawer {
    --inset: 10px;
    padding-top: 60px;
    padding-left: 0;
    background: #000;
  }

  .section-nav {
    margin-top: 10px;
  }

  .section-nav button {
    padding: 7px 2px;
    font-size: 12px;
  }

  .drawer-scroll {
    border-radius: 10px 10px 0 0;
  }

  .sheet-face {
    border-radius: 10px;
  }

  .action-row.is-docked {
    border-radius: 10px 10px 0 0;
  }

  .action-row .resume,
  .action-row .contact-jump {
    gap: 8px;
    padding: 12px 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  .portrait {
    border-radius: 10px;
  }

  .sheet-scroll {
    padding: 26px 22px 28px;
  }

  .identity h1 {
    font-size: 34px;
  }

  .section-label {
    margin: 8px 8px 0;
    padding: 16px 18px;
    border-radius: 10px;
    font-size: 20px;
  }

  .section-label.identity {
    padding: 18px 18px 16px;
  }

  .project-slide .card-face {
    display: flex;
    flex-direction: column;
    padding: 84px 16px 18px;
    background: #000;
  }

  .project-slide .project-frame {
    position: relative;
    inset: auto;
    flex: 1 1 auto;
    align-self: stretch;
    width: 100%;
    min-height: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    z-index: 1;
  }

  .project-slide .card-image {
    transform: none;
  }

  .project-info {
    position: absolute;
    left: 28px;
    right: 28px;
    top: auto;
    bottom: 30px;
    translate: none;
    width: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "type visit"
      "name visit"
      "summary summary";
    column-gap: 16px;
    row-gap: 2px;
    align-items: center;
    padding: 14px 14px 16px 16px;
    border-radius: 10px;
    z-index: 2;
  }

  .project-info .project-type {
    grid-area: type;
  }

  .project-info .card-title {
    grid-area: name;
    margin-top: 0;
    padding-bottom: 0;
    border-bottom: none;
    font-size: 22px;
    line-height: 1.05;
  }

  .project-info .project-summary {
    display: block;
    grid-area: summary;
    margin-top: 12px;
    max-width: none;
    font-size: 14px;
    line-height: 1.45;
  }

  .project-info .view-label {
    display: none;
  }

  .project-info .visit-label {
    display: inline;
  }

  .project-info .view-project {
    grid-area: visit;
    margin-top: 0;
    padding: 12px 16px;
  }

  .intro-slide .card-face {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 76px 0 16px;
    overflow: hidden;
  }

  .intro-block {
    align-items: center;
    width: auto;
    margin: auto 16px 0 16px;
    gap: 14px;
    font-size: clamp(33px, 9.4vw, 43px);
  }

  .intro-actions {
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    margin-top: 18px;
    margin-right: 0;
  }

  .intro-slide .intro-actions .view-project,
  .intro-slide .intro-actions .intro-outline {
    box-sizing: border-box;
    flex: 1.45 1 0;
    justify-content: center;
    gap: 7px;
    min-height: 0;
    padding: 11px 10px;
    border: 2px solid transparent;
    font-size: 14px;
    white-space: nowrap;
  }

  .intro-slide .intro-actions .intro-outline {
    flex: 1 1 0;
    border-color: var(--paper);
  }

  .intro-actions .intro-action-icon {
    width: 16px;
    height: 16px;
  }

  .intro-slide .splash-kicker {
    justify-content: center;
    font-size: 23px;
  }

  .intro-swipe {
    position: relative;
    order: 3;
    bottom: auto;
    left: auto;
    width: auto;
    margin: auto 16px 8px;
    justify-content: center;
  }

  .intro-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.02;
  }

  .intro-title span {
    display: block;
    white-space: nowrap;
  }

  .intro-orbit {
    --orbit-card: 200px;
    --orbit-step: 218px;
    display: block;
    position: relative;
    order: 2;
    flex: 0 0 220px;
    height: 220px;
    min-height: 0;
    margin: 12px 0 0;
    overflow: visible;
    pointer-events: none;
  }

  .intro-orbit-card {
    position: absolute;
    top: 54%;
    left: 0;
    width: var(--orbit-card);
    height: 132px;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    pointer-events: auto;
    --orbit-x: calc(100vw - var(--orbit-p) * 5 * var(--orbit-step));
    --orbit-s: clamp(0, (var(--orbit-x) + var(--orbit-card) / 2) / 100vw, 1);
    transform:
      translate3d(var(--orbit-x), -50%, 0)
      translateY(calc(sin(var(--orbit-s) * 180deg) * 32px))
      rotate(calc(cos(var(--orbit-s) * 180deg) * -5deg));
    animation: intro-marquee 18s linear infinite;
    animation-delay: calc(var(--i) * -3.6s);
  }

  .intro-orbit-face {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    background: #1c1c1b;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.38);
    transition: transform 0.45s var(--ease);
  }

  .intro-orbit-face::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: rgba(0, 0, 0, 0.34);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
  }

  .intro-orbit-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
  }

  .intro-orbit-tag {
    position: absolute;
    z-index: 3;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    max-width: calc(100% - 20px);
    padding: 7px 10px 8px;
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    pointer-events: none;
  }

  .intro-orbit-type,
  .intro-orbit-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .intro-orbit-type {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    color: var(--muted);
  }

  .intro-orbit-name {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
  }

  .intro-orbit-view {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
    translate: -50% -50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
  }

  .intro-orbit-view::after {
    content: "";
    width: 16px;
    height: 16px;
    flex: none;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M2.25 9h8.2M7.3 5.4 10.9 9 7.3 12.6' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M2.25 9h8.2M7.3 5.4 10.9 9 7.3 12.6' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .intro-orbit-card:hover .intro-orbit-face,
  .intro-orbit-card:focus-visible .intro-orbit-face {
    transform: scale(1.04);
  }

  .intro-orbit-card:hover .intro-orbit-face::before,
  .intro-orbit-card:focus-visible .intro-orbit-face::before,
  .intro-orbit-card:hover .intro-orbit-view,
  .intro-orbit-card:focus-visible .intro-orbit-view {
    opacity: 1;
  }

  body:not([data-slide="0"]) .intro-orbit-card {
    animation-play-state: paused;
  }

  .connect-stage {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 96px 24px 28px 24px;
  }

  .connect-copy,
  .connect-panel {
    max-width: 100%;
  }

  .connect-slide .splash-kicker {
    display: none;
  }

  .connect-title {
    flex-direction: row;
    gap: 0.24em;
    font-size: clamp(42px, 12.2vw, 56px);
    line-height: 1;
    white-space: nowrap;
  }

  .connect-panel {
    width: min(420px, 100%);
    padding: 26px 22px 22px;
    border-radius: 10px;
  }
}

@media (max-width: 360px) {
  .intro-actions {
    gap: 5px;
  }

  .intro-slide .intro-actions .view-project,
  .intro-slide .intro-actions .intro-outline {
    gap: 5px;
    padding: 8px 9px;
    font-size: 12px;
  }

  .intro-actions .intro-action-icon {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 720px) and (max-height: 760px) {
  .intro-block {
    gap: 12px;
    font-size: clamp(27px, 7.8vw, 32px);
  }

  .intro-slide .splash-kicker {
    font-size: 22px;
  }

  .intro-orbit {
    flex-basis: 200px;
    height: 200px;
  }

  .intro-orbit-card {
    top: 42%;
  }
}

.case {
  position: fixed;
  z-index: 4;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--rail);
  overflow: hidden;
  background: #000;
  color: #f4f1eb;
  transition: transform 0.5s var(--ease);
}

.is-open .case {
  transform: translateX(var(--drawer));
}

.is-open .case-card {
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: 0 12px 12px 0;
}

.case[hidden] {
  display: none;
}

.case::before,
.case::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 58vw;
  height: 58vw;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.case::before {
  top: -12vw;
  left: -10vw;
  background: rgba(139, 92, 246, 0.55);
  animation: blob-drift 18s ease-in-out infinite alternate;
}

.case::after {
  right: -14vw;
  bottom: -16vw;
  background: rgba(45, 212, 191, 0.42);
  animation: blob-drift-alt 24s ease-in-out infinite alternate;
}

.case-card {
  position: absolute;
  z-index: 1;
  top: 36px;
  right: calc(6px + 40px + 36px);
  bottom: 36px;
  left: 36px;
  overflow: hidden;
  border-radius: 12px;
  background: #0c0c0b;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
}

.case-scroll {
  --case-pad: 28px;
  position: relative;
  z-index: 1;
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 var(--case-pad) 56px;
}

.case-body,
.case-hero,
.case-notes,
.case-gallery,
.case-gallery figure {
  min-width: 0;
  max-width: 100%;
}

.case-top {
  position: absolute;
  top: 36px;
  right: 10px;
  z-index: 3;
  pointer-events: none;
}

.case-close {
  pointer-events: auto;
  padding: 10px 16px;
  border-radius: 999px;
  background: #f4f1eb;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.case-close:focus-visible {
  outline: 2px solid #f4f1eb;
  outline-offset: 3px;
}

.case-body {
  max-width: none;
}

.case-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 241, 235, 0.72);
}

.case-meta span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 10px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 2px;
}

.case-title {
  margin-top: 10px;
  max-width: 100%;
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.case-blurb {
  max-width: 640px;
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(244, 241, 235, 0.86);
}

.case-hero {
  margin-top: 4px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.monster-field {
  --back: clamp(46px, 6vw, 68px);
  --primary: clamp(78px, 10vw, 112px);
  position: relative;
  width: calc(100% + var(--case-pad) * 2);
  max-width: none;
  margin-left: calc(var(--case-pad) * -1);
  margin-right: calc(var(--case-pad) * -1);
  height: min(62vh, 560px);
  min-height: 460px;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(92, 58, 148, 0.4), transparent 36%),
    #100e16;
}

.monster-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.monster-guide {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(244, 241, 235, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.monster-tile {
  position: absolute;
  top: 0;
  left: 0;
  z-index: var(--z);
  width: var(--size);
  height: var(--size);
  offset-anchor: center;
  offset-rotate: 0deg;
  animation: monster-travel var(--dur) linear infinite;
  animation-delay: calc(var(--dur) * var(--i) / var(--count) * -1);
}

.monster-tile.is-back {
  --size: var(--back);
}

.monster-tile.is-primary {
  --size: var(--primary);
}

.monster-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.monster-tile.is-primary img {
  border-radius: 10px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
}

@keyframes monster-travel {
  to { offset-distance: 100%; }
}

.monster-copy {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 10%;
  text-align: center;
  pointer-events: none;
}

.monster-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(520px, 78%);
  height: min(320px, 62%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 12, 11, 0.82), transparent 72%);
}

.monster-copy .case-meta {
  justify-content: center;
}

.monster-copy .case-title {
  margin-top: 8px;
  font-size: clamp(40px, 5vw, 68px);
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.monster-copy .case-blurb {
  max-width: 460px;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.45;
}

.case-hero img,
.case-gallery img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.case-notes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.case-notes section,
.case-tools {
  padding: 22px 22px 24px;
  border-radius: 12px;
  background: #f4f1eb;
  color: var(--ink);
}

.case-notes h3,
.case-tools > p {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.case-notes p,
.case-gallery figcaption {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.5;
}

.case-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.case-tools > p {
  margin: 0;
}

.case-tools ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-tools li {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #f4f1eb;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.case-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.case-gallery figure {
  margin: 0;
}

.case-gallery img {
  border-radius: 12px;
}

.case-gallery figcaption {
  color: rgba(244, 241, 235, 0.78);
}

@media (max-width: 720px) {
  .case {
    top: 60px;
    left: 0;
  }

  .is-open .case {
    transform: none;
  }

  .case-card {
    top: 24px;
    right: 60px;
    bottom: 18px;
    left: 16px;
    border-radius: 10px;
  }

  .case-scroll {
    --case-pad: 16px;
    padding: 0 var(--case-pad) 40px;
  }

  .case-top {
    top: 24px;
    right: 4px;
  }

  .monster-field {
    height: min(128vw, 560px);
    min-height: 480px;
    border-radius: 10px;
  }

  .monster-copy .case-title {
    font-size: clamp(34px, 9vw, 44px);
  }

  .monster-copy .case-blurb {
    font-size: 14px;
  }

  .case-notes,
  .case-gallery {
    grid-template-columns: 1fr;
  }

  .case-tools {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

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

  .panel,
  .stack,
  .track,
  .menu,
  .mark,
  .pager-step,
  .action-row,
  .action-row.is-sliding,
  .action-row .resume,
  .action-row .contact-jump,
  .view-project,
  .connect-slide .resume,
  .menu-glyph,
  .pager-name,
  .pager-step-tip,
  .resume-rail,
  .resume-rail-tip,
  .menu-tip,
  .mark-tip,
  .stage-hint,
  .pager-indicator,
  .pager button,
  .pager-wrap.is-edge .pager button,
  .section-nav-indicator,
  .section-label::before,
  .section-label::after,
  .section-nav button,
  .pager button::before,
  .card-image,
  .intro-orbit-card,
  .intro-orbit-face,
  .intro-orbit-view,
  .intro-orbit-tag,
  .intro-swipe-glyph,
  .stack::before,
  .stack::after,
  .intro-slide .card-face::before,
  .connect-slide .card-face::before,
  .project-slide .card-face::before,
  .intro-slide .card-face::after,
  .connect-slide .card-face::after,
  .project-slide .card-face::after,
  .case::before,
  .case::after {
    transition: none;
    animation: none;
  }

  .monster-tile {
    animation: none;
    offset-distance: calc(var(--i) / var(--count) * 100%);
    offset-rotate: 0deg;
  }

  .mark:hover,
  .menu:hover,
  .resume-rail:hover,
  .pager-step:hover:not(:disabled),
  .action-row .resume:hover,
  .action-row .contact-jump:hover,
  .view-project:hover,
  .connect-slide .resume:hover,
  .pager button:hover::before {
    transform: none;
  }
}
