:root {
  color-scheme: dark;
  --black: #000;
  --white: #fff;
  --soft-white: #d7d7d7;
  --muted: #777;
  --line: rgba(255, 255, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.045);
  --line-strong: rgba(255, 255, 255, 0.52);
  --cue-text: #4a4a4a;
  --cue-line: #555;
  --profile-link: #a8a8a8;
  --portrait-background: #080808;
  --hero-logo-shadow: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.58));
  --body-muted: #8b8b8b;
  --fact-label: #565656;
  --fact-value: #aaa;
  --instruction-text: #5f5f5f;
  --orb-background: #0d0d0d;
  --focus-description: #898989;
  --focus-control-muted: #585858;
  --inverse-hover: #e9e9e9;
  --focus-icon-shadow-inner: rgba(0, 0, 0, 0.88);
  --focus-icon-shadow-middle: rgba(0, 0, 0, 0.5);
  --focus-icon-shadow-edge: rgba(0, 0, 0, 0);
  --project-shadow-mask: rgba(0, 0, 0, 0);
  --project-shadow-opacity: 0;
  --grain-opacity: 0.032;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --circle-icon-zoom: 1.055;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --black: #fff;
    --white: #0a0a0a;
    --soft-white: #242424;
    --muted: #6f6f6f;
    --line: rgba(0, 0, 0, 0.14);
    --line-soft: rgba(0, 0, 0, 0.055);
    --line-strong: rgba(0, 0, 0, 0.46);
    --cue-text: #8a8a8a;
    --cue-line: #aaa;
    --profile-link: #555;
    --portrait-background: #f2f2f2;
    --hero-logo-shadow: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.16));
    --body-muted: #555;
    --fact-label: #8a8a8a;
    --fact-value: #4a4a4a;
    --instruction-text: #858585;
    --orb-background: #f3f3f3;
    --focus-description: #606060;
    --focus-control-muted: #8a8a8a;
    --inverse-hover: #242424;
    --focus-icon-shadow-inner: rgba(0, 0, 0, 0.2);
    --focus-icon-shadow-middle: rgba(0, 0, 0, 0.08);
    --focus-icon-shadow-edge: rgba(0, 0, 0, 0);
    --project-shadow-mask: rgba(0, 0, 0, 0.22);
    --project-shadow-opacity: 1;
    --grain-opacity: 0.024;
  }
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--black);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  color: var(--soft-white);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  background: none;
}

a {
  text-decoration: none;
}

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

.site-shell,
.page-stage,
.site-page {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.site-shell {
  isolation: isolate;
  background: var(--black);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: var(--grain-opacity);
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px;
}

.page-selector {
  position: fixed;
  top: max(1.35rem, env(safe-area-inset-top));
  left: 50%;
  z-index: 100;
  width: max-content;
  height: 42px;
  padding: 4px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: var(--black);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    visibility 0s linear;
}

.page-selector.is-project-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -0.75rem);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    visibility 0s linear 220ms;
}

.selector-labels {
  display: grid;
  grid-template-columns: auto auto;
  height: 100%;
  align-items: center;
}

.selector-button,
.selector-labels-ink span {
  min-width: 0;
  padding: 0 15px;
  font-size: 0.67rem;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.selector-button {
  position: relative;
  z-index: 2;
  cursor: pointer;
  color: var(--white);
}

.selector-button:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 5px;
  border-radius: 999px;
}

.selector-pill {
  position: absolute;
  top: 4px;
  left: 0;
  z-index: 1;
  height: 32px;
  border-radius: 999px;
  background: var(--white);
  will-change: transform, width;
}

.selector-labels-ink {
  position: absolute;
  inset: 4px;
  z-index: 3;
  width: calc(100% - 8px);
  height: 32px;
  color: var(--black);
  pointer-events: none;
  will-change: clip-path;
}

.page-stage {
  z-index: 1;
  overflow: hidden;
}

.site-page {
  opacity: 0;
  background: var(--black);
  will-change: transform, opacity;
  pointer-events: none;
}

.site-page[data-page='projects'] {
  transform: translate3d(-100%, 0, 0);
}

.site-page[data-page='profile'] {
  transform: translate3d(0, 0, 0);
}

.site-page.is-active {
  opacity: 1;
  pointer-events: auto;
}

.page-scroll {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

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

.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.hero-logo {
  position: relative;
  z-index: 2;
  width: min(86vw, 86dvh, 1080px);
  height: auto;
  filter: var(--hero-logo-shadow);
  animation: heroBreathe 8s ease-in-out infinite;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.hero-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(86vw, 86dvh, 1080px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.pulse-ring {
  position: absolute;
  inset: -13%;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  opacity: 0;
  animation: pulseOut 4.2s ease-out infinite;
}

.pulse-ring-two { animation-delay: 1.4s; }
.pulse-ring-three { animation-delay: 2.8s; }

.hero-name {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(3.1rem, 7vh, 5rem);
  left: var(--gutter);
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: var(--white);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  user-select: none;
  -webkit-user-select: none;
}

.scroll-cue {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}

.scroll-cue span:first-child {
  color: var(--cue-text);
  font-size: 0.52rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.scroll-cue-line {
  width: 1px;
  height: 25px;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--cue-line), transparent);
  transform-origin: top;
  animation: cueLine 2.2s ease-in-out infinite;
}

.profile-section {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: clamp(6.5rem, 12vh, 9rem) var(--gutter) clamp(4.5rem, 8vh, 7rem);
  scroll-margin-top: 0;
}

.profile-grid {
  width: min(100%, 1320px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(410px, 1.08fr);
  column-gap: clamp(3.5rem, 8vw, 9rem);
  row-gap: clamp(1.5rem, 3vh, 2.5rem);
  align-items: start;
}

.section-index {
  color: var(--muted);
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.profile-content h2 {
  color: var(--white);
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.profile-content {
  align-self: center;
  padding: clamp(0rem, 2vh, 1.25rem) 0;
  user-select: none;
  -webkit-user-select: none;
}

.profile-content h2 {
  max-width: 10ch;
  margin-right: 0;
  margin-bottom: clamp(2rem, 4vh, 3.5rem);
  margin-left: 0;
  font-size: clamp(4.5rem, 7vw, 7.5rem);
  text-align: left;
}

.profile-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: clamp(2rem, 4vh, 3rem);
}

.profile-links a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--profile-link);
  transition: color 240ms ease, border-color 240ms ease, background-color 240ms ease, transform 500ms cubic-bezier(.16, 1, .3, 1);
}

.profile-links svg {
  width: 18px;
  height: 18px;
}

.profile-links a:hover,
.profile-links a:focus-visible {
  border-color: var(--line-strong);
  background: var(--white);
  color: var(--black);
  transform: translateY(-3px);
  outline: none;
}

.portrait-wrap {
  position: relative;
  overflow: hidden;
  width: min(100%, 500px);
  aspect-ratio: 1300 / 1440;
  justify-self: start;
  background: var(--portrait-background);
}

.portrait-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      to right,
      var(--black) 0%,
      transparent 3%,
      transparent 97%,
      var(--black) 100%
    ),
    linear-gradient(
      to bottom,
      var(--black) 0%,
      transparent 3%,
      transparent 97%,
      var(--black) 100%
    );
  pointer-events: none;
}

.profile-photo-picture {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-select: none;
}

.profile-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.03);
  transition: filter 500ms ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.portrait-wrap:hover .profile-photo {
  filter: grayscale(0.35) contrast(1.02);
}

.profile-description {
  max-width: 61ch;
  color: var(--body-muted);
  font-size: clamp(0.74rem, 0.86vw, 0.84rem);
  line-height: 1.92;
}

.profile-description p + p {
  margin-top: 1.1rem;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.75rem, 5vh, 4.5rem);
}

.profile-facts div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.profile-facts dt {
  color: var(--fact-label);
  font-size: 0.57rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-facts dd {
  color: var(--fact-value);
  font-size: 0.68rem;
}

.projects-page {
  overflow: hidden;
}

.projects-watch {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  background: var(--black);
}

.watch-instruction {
  position: absolute;
  bottom: max(1.8rem, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 4;
  width: max-content;
  max-width: calc(100vw - (var(--gutter) * 2));
  color: var(--instruction-text);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
  pointer-events: none;
}

.watch-grid {
  position: absolute;
  inset: 0;
  width: min(90vw, 760px);
  height: min(74vh, 640px);
  margin: auto;
}

.project-return-shadow,
.project-center-shadow {
  position: absolute;
  z-index: 3;
  transform-origin: center;
  pointer-events: none;
  will-change: opacity, transform;
}

.project-return-shadow {
  opacity: 0;
}

.project-center-shadow {
  opacity: var(--project-shadow-opacity);
}

.project-return-shadow-mask,
.project-center-shadow-mask {
  position: absolute;
  inset: 0;
  border-radius: var(--return-shadow-radius, 50%);
  background: var(--project-shadow-mask);
  clip-path: inset(0 round var(--return-shadow-radius, 50%));
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  transform: translateY(4px) scale(var(--return-shadow-crop-scale, var(--circle-icon-zoom)));
  transform-origin: center;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
}

.watch-node {
  --orb-size: clamp(102px, 14vmin, 144px);
  --orb-radius: 50%;
  --icon-crop-scale: var(--circle-icon-zoom);
  --orb-background-opacity: 1;
  --active-shadow-opacity: 0;
  position: absolute;
  top: var(--orb-y);
  left: var(--orb-x);
  width: var(--orb-size);
  height: var(--orb-size);
  z-index: 4;
  transform: translate(-50%, -50%);
  transform-origin: center;
  transition: transform 280ms cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}

.watch-node.is-focus-node,
.watch-node.is-returning {
  transition: none;
}

.watch-node.is-focus-node {
  z-index: 6;
  opacity: 1 !important;
}

.watch-node.is-focus-node .watch-orb,
.watch-node.is-focus-node .watch-orb-visual,
.watch-node.is-focus-node .watch-orb-visual picture,
.watch-node.is-focus-node .watch-orb-visual img {
  opacity: 1;
  filter: none;
}

.watch-node.is-focus-node .watch-orb-shadow {
  opacity: var(--active-shadow-opacity);
  transition-duration: 0ms;
}

.watch-node-melody .watch-orb-shadow {
  opacity: 0 !important;
}

.watch-node.is-shadow-restoring .watch-orb-shadow {
  opacity: 0;
  transition-duration: 0ms;
}

.watch-node.is-returning {
  z-index: 4;
  pointer-events: none;
}

.watch-node.is-closing {
  pointer-events: none;
}

.watch-orb,
.watch-orb-shadow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.watch-orb {
  z-index: 2;
  overflow: hidden;
  border-radius: var(--orb-radius);
  clip-path: inset(0 round var(--orb-radius));
  cursor: pointer;
  outline: none;
  touch-action: manipulation;
}

.watch-orb-shadow {
  z-index: 1;
  opacity: var(--project-shadow-opacity);
  pointer-events: none;
  transition: opacity 280ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, filter;
}

.watch-orb-shadow-mask {
  position: absolute;
  inset: 0;
  background: var(--project-shadow-mask);
  border-radius: var(--orb-radius);
  clip-path: inset(0 round var(--orb-radius));
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  transform: translateY(4px) scale(var(--icon-crop-scale));
  transform-origin: center;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
}

.watch-orb-visual img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.is-keyboard-mode .watch-grid:has(.watch-orb:focus-visible) .watch-node:not(:has(.watch-orb:focus-visible)) {
  opacity: 0.56;
}

.is-keyboard-mode .watch-orb:focus-visible .watch-orb-visual {
  filter: brightness(1.14);
  transform: translateZ(0) scale(1.035);
}

.watch-orb::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
}

.watch-orb::after {
  background: var(--orb-background);
  opacity: var(--orb-background-opacity);
}

.watch-orb-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
  background: transparent;
  transform: translateZ(0);
}

.watch-orb-visual picture {
  display: block;
  width: 100%;
  height: 100%;
  transform: scale(var(--icon-crop-scale, var(--circle-icon-zoom)));
  transform-origin: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

.watch-orb-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.watch-node.is-full-target .watch-orb {
  cursor: default;
  pointer-events: none;
}

.watch-node-melody {
  --orb-x: 50%;
  --orb-y: 50%;
  z-index: 5;
}

.watch-node-melody.is-returning {
  z-index: 5;
}

.watch-node-playground {
  --orb-x: 50%;
  --orb-y: 28%;
}

.watch-node-shelf {
  --orb-x: 71%;
  --orb-y: 43%;
}

.watch-node-smartspace {
  --orb-x: 63%;
  --orb-y: 72%;
}

.watch-node-speakly {
  --orb-x: 37%;
  --orb-y: 72%;
}

.watch-node-pixel-racing {
  --orb-x: 29%;
  --orb-y: 43%;
}

.project-focus {
  position: absolute;
  inset: 0;
  z-index: auto;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.project-focus.is-visible {
  visibility: visible;
}

.project-focus.is-interactive {
  pointer-events: auto;
}

.project-focus.is-fullscreen {
  z-index: 5;
  pointer-events: none;
}

.project-focus.is-fullscreen.is-interactive {
  pointer-events: auto;
}

.project-focus-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--black);
  opacity: 0;
  will-change: opacity;
  pointer-events: none;
}

.project-focus-card {
  position: absolute;
  inset: 0;
  overflow: visible;
  outline: none;
  background: transparent;
  pointer-events: none;
  will-change: background-color;
}

.project-focus-card.is-full-content-ready {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.project-focus-card.is-full-content-closing {
  overflow: hidden;
}

.project-focus.is-fullscreen.is-interactive .project-focus-card {
  pointer-events: auto;
}

.project-focus.is-interactive .project-focus-card {
  pointer-events: auto;
}

.project-focus-preview {
  position: absolute;
  text-align: center;
  pointer-events: none;
}

.project-focus-preview::before {
  content: '';
  position: absolute;
  top: var(--preview-shadow-top, 0);
  left: 50%;
  z-index: 3;
  width: var(--preview-shadow-size, 0);
  height: var(--preview-shadow-size, 0);
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    var(--focus-icon-shadow-inner) 0%,
    var(--focus-icon-shadow-middle) 42%,
    var(--focus-icon-shadow-edge) 74%
  );
  filter: blur(10px);
  opacity: var(--preview-fx-opacity, 0);
  transform: translate3d(-50%, var(--preview-shift, -52px), 0)
    scale(var(--preview-scale, 0.84));
  transform-origin: top center;
  will-change: opacity, transform;
  pointer-events: none;
}

.project-focus-preview h2,
.project-focus-title {
  color: var(--white);
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  white-space: nowrap;
}

.project-focus-icon-anchor {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

.watch-node.is-full-content-node {
  top: 50%;
  left: 50%;
  z-index: 1;
  pointer-events: none;
}

.watch-node-melody.is-focus-node .watch-orb-shadow {
  opacity: var(--active-shadow-opacity) !important;
}

.project-focus-preview h2 {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  opacity: 1;
  font-size: 2.35rem;
  text-align: center;
  clip-path: inset(var(--preview-title-clip, 100%) 0 0);
  transform: translate3d(0, var(--preview-shift, -52px), 0)
    scale(var(--preview-scale, 0.84));
  transform-origin: top center;
  will-change: clip-path, transform;
}

.project-focus-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.project-focus-title {
  position: absolute;
  text-align: left;
  transform-origin: left center;
  will-change: opacity, transform;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.project-focus-body {
  position: absolute;
  box-sizing: border-box;
  max-width: none;
  margin: 0;
  padding-bottom: clamp(8rem, 16vh, 12rem);
  color: var(--focus-description);
  line-height: 1.75;
  text-align: left;
  will-change: opacity;
  user-select: text;
  -webkit-user-select: text;
}

.project-focus-description {
  margin: 0;
}

.project-story {
  width: 100%;
}

.project-story-copy {
  width: min(100%, 700px);
  margin-inline: auto;
}

.project-story-copy p + p {
  margin-top: clamp(1.5rem, 3.5vh, 2.25rem);
}

.project-story-lead {
  color: var(--soft-white);
  font-size: clamp(1.08rem, 1.25vw, 1.25rem);
  line-height: 1.8;
}

.project-story-figure {
  width: 100%;
  margin-block: 0;
}

.project-story-figure-smartspace {
  width: min(90%, 920px);
  margin-block: clamp(2rem, 5vh, 3.5rem);
  margin-inline: auto;
}

.project-story-figure-speakly {
  width: min(90%, 920px);
  margin-block: clamp(2rem, 5vh, 3.5rem);
  margin-inline: auto;
}

.project-story-figure picture {
  display: block;
}

.project-story-figure img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.project-story-figure-speakly img {
  border-radius: clamp(1rem, 2vw, 1.5rem);
  box-shadow: 0 1.25rem 3rem rgb(0 0 0 / 12%);
}

.project-focus-card[data-focus-state='full'] .project-focus-body {
  pointer-events: auto;
  cursor: text;
  touch-action: auto;
}

.project-focus-card[data-focus-state='full'] .project-focus-content {
  pointer-events: auto;
}

.project-focus-actions {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
  user-select: none;
  -webkit-user-select: none;
}

.project-focus-open,
.project-focus-close {
  position: absolute;
  top: auto;
  bottom: clamp(1.5rem, 5vw, 4rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: max-content;
  height: 32px;
  min-height: 32px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.67rem;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  cursor: pointer;
  transition:
    background-color 260ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-focus-open {
  right: clamp(1.5rem, 5vw, 5rem);
}

.project-focus-close {
  left: clamp(1.5rem, 5vw, 5rem);
}

.project-focus-close-mobile {
  display: none;
}

.project-focus-open-icon {
  display: inline-flex;
  flex: 0 0 auto;
}

.project-focus-open-icon[hidden] {
  display: none;
}

.project-focus-open svg {
  width: 17px;
  height: 17px;
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-focus-open:hover,
.project-focus-open:focus-visible,
.project-focus-close:hover,
.project-focus-close:focus-visible {
  background: var(--inverse-hover);
  transform: translateY(-2px);
  outline: none;
}

.project-focus-open:hover [data-project-focus-open-external] svg,
.project-focus-open:focus-visible [data-project-focus-open-external] svg {
  transform: translate(2px, -2px);
}

.project-focus-open:hover [data-project-focus-open-github] svg,
.project-focus-open:focus-visible [data-project-focus-open-github] svg {
  transform: scale(1.08);
}

@media (prefers-color-scheme: light) {
  .watch-orb-shadow,
  .project-return-shadow,
  .project-center-shadow {
    filter: blur(7px);
  }

}

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

@keyframes heroBreathe {
  0%, 100% { transform: scale(0.99); opacity: 0.96; }
  50% { transform: scale(1.01); opacity: 1; }
}

@keyframes pulseOut {
  0% { opacity: 0; transform: scale(0.72); }
  18% { opacity: 0.24; }
  100% { opacity: 0; transform: scale(1.18); }
}

@keyframes cueLine {
  0%, 100% { opacity: 0.35; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

@media (max-width: 900px) {
  .profile-grid {
    grid-template-columns: minmax(250px, 0.85fr) minmax(340px, 1.15fr);
    column-gap: clamp(2.5rem, 6vw, 4.5rem);
  }

  .watch-grid {
    width: min(88vw, 560px);
  }
}

@media (max-width: 760px) {
  .profile-section {
    display: block;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }

  .portrait-wrap {
    width: min(82vw, 430px);
  }

  .profile-content {
    padding-top: 1.5rem;
  }

  .profile-content h2 {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }
}

@media (max-width: 620px) {
  :root { --gutter: 1.25rem; }

  .page-stage {
    touch-action: pan-y;
  }

  .page-selector {
    top: max(0.8rem, env(safe-area-inset-top));
    height: 40px;
  }

  .selector-pill,
  .selector-labels-ink {
    height: 30px;
  }

  .selector-button,
  .selector-labels-ink span {
    padding: 0 11px;
    font-size: 0.54rem;
    line-height: 30px;
  }

  .hero-logo,
  .hero-orbit {
    width: min(96vw, 76dvh);
  }

  .hero-name {
    bottom: 4.25rem;
    font-size: clamp(2.25rem, 12vw, 3.5rem);
  }

  .profile-section {
    padding-top: 6rem;
  }

  .profile-content h2 {
    max-width: 9ch;
    margin-bottom: 2rem;
    font-size: clamp(3.8rem, 18vw, 5.5rem);
  }

  .portrait-wrap {
    width: min(82vw, 360px);
    justify-self: start;
  }

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

  .profile-facts div:last-child {
    grid-column: 1 / -1;
  }

  .watch-instruction {
    display: none;
  }

  .watch-grid {
    width: min(94vw, 390px);
    height: min(62vh, 430px);
  }

  .watch-node {
    --orb-size: clamp(76px, 24vw, 96px);
  }

  .project-focus-open,
  .project-focus-close {
    top: auto;
    bottom: max(1.1rem, env(safe-area-inset-bottom));
    height: 30px;
    min-height: 30px;
    gap: 0.5rem;
    padding: 0 11px;
    font-size: 0.54rem;
    line-height: 30px;
  }

  .project-focus-open {
    right: max(1.1rem, env(safe-area-inset-right));
  }

  .project-focus-close {
    left: max(1.1rem, env(safe-area-inset-left));
  }

  .project-focus-close-desktop {
    display: none;
  }

  .project-focus-close-mobile {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
