@font-face {
  font-family: "Commit Mono";
  src: url("/assets/fonts/commit-mono/CommitMono-400-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Commit Mono";
  src: url("/assets/fonts/commit-mono/CommitMono-700-Regular.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #374151;
  --text: rgb(165, 172, 183);
  --muted: rgba(165, 172, 183, 0.75);
  --dot: rgba(165, 172, 183, 0.2);
  --line: rgba(165, 172, 183, 0.2);
  --panel: rgba(15, 23, 42, 0.45);
  --panel-shadow: rgba(0, 0, 0, 0.35);
  --accent: #ffffff;
  --accent-ink: #000000;
  --bar-bg: rgba(15, 23, 42, 0.12);
  --bar-border: rgba(165, 172, 183, 0.12);
  --bar-title: rgba(165, 172, 183, 0.72);
  --bar-meta: rgba(165, 172, 183, 0.6);
  --btn-primary-bg: #e5e7eb;
  --btn-primary-border: #e5e7eb;
  --btn-primary-text: #111827;
  --btn-primary-hover-bg: #ffffff;
  --btn-primary-hover-border: #ffffff;
  --btn-hover-ring: #e5e7eb;
  --switch-plate: #cfd4db;
  --switch-plate-hi: #f2f5f8;
  --switch-plate-low: #a2aab4;
  --switch-plate-edge: rgba(17, 24, 39, 0.45);
  --switch-plate-bottom: rgba(15, 23, 42, 0.26);
  --switch-drop-shadow: rgba(0, 0, 0, 0.33);
  --switch-inner-line: rgba(17, 24, 39, 0.28);
  --switch-screw: #7f8894;
  --switch-rocker: #f7f8fa;
  --switch-rocker-hi: rgba(255, 255, 255, 0.68);
  --switch-rocker-low: rgba(15, 23, 42, 0.24);
  --switch-groove: #8e96a3;
  --switch-inset: rgba(17, 24, 39, 0.38);
  --switch-rim-shadow: rgba(0, 0, 0, 0.32);
  --switch-glow-off: #ef4444;
  --switch-glow-on: #22c55e;
  --switch-contact-shadow: rgba(0, 0, 0, 0.26);
  --switch-grain: rgba(17, 24, 39, 0.06);
  --switch-spec: rgba(255, 255, 255, 0.28);
  --switch-led-shell: rgba(17, 24, 39, 0.2);
  --switch-focus-ring: rgba(255, 255, 255, 0.55);
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f3ec;
  --text: rgb(36, 42, 56);
  --muted: rgba(36, 42, 56, 0.74);
  --dot: rgba(36, 42, 56, 0.14);
  --line: rgba(36, 42, 56, 0.24);
  --panel: rgba(255, 255, 255, 0.78);
  --panel-shadow: rgba(15, 23, 42, 0.16);
  --accent: #111827;
  --accent-ink: #f9fafb;
  --bar-bg: rgba(255, 255, 255, 0.72);
  --bar-border: rgba(36, 42, 56, 0.22);
  --bar-title: rgba(36, 42, 56, 0.82);
  --bar-meta: rgba(36, 42, 56, 0.7);
  --btn-primary-bg: #111827;
  --btn-primary-border: #111827;
  --btn-primary-text: #f9fafb;
  --btn-primary-hover-bg: #1f2937;
  --btn-primary-hover-border: #1f2937;
  --btn-hover-ring: rgba(17, 24, 39, 0.65);
  --switch-plate: #cfd4db;
  --switch-plate-hi: #f2f5f8;
  --switch-plate-low: #a2aab4;
  --switch-plate-edge: rgba(17, 24, 39, 0.45);
  --switch-plate-bottom: rgba(15, 23, 42, 0.26);
  --switch-drop-shadow: rgba(0, 0, 0, 0.33);
  --switch-inner-line: rgba(17, 24, 39, 0.28);
  --switch-screw: #7f8894;
  --switch-rocker: #f7f8fa;
  --switch-rocker-hi: rgba(255, 255, 255, 0.68);
  --switch-rocker-low: rgba(15, 23, 42, 0.24);
  --switch-groove: #8e96a3;
  --switch-inset: rgba(17, 24, 39, 0.38);
  --switch-rim-shadow: rgba(0, 0, 0, 0.32);
  --switch-glow-off: #ef4444;
  --switch-glow-on: #22c55e;
  --switch-contact-shadow: rgba(0, 0, 0, 0.26);
  --switch-grain: rgba(17, 24, 39, 0.06);
  --switch-spec: rgba(255, 255, 255, 0.28);
  --switch-led-shell: rgba(17, 24, 39, 0.2);
  --switch-focus-ring: rgba(17, 24, 39, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: hidden;
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Commit Mono", ui-monospace, monospace;
  font-size: 15px;
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--text);
  background-image: radial-gradient(
    circle at 1px 1px,
    var(--dot) 1px,
    transparent 1px
  );
  background-size: 18px 18px;
}

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

.page {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  padding: 0 24px 24px;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 24px;
}

.page-header {
  position: absolute;
  top: max(8px, env(safe-area-inset-top));
  left: 24px;
  right: 24px;
}

.theme-switch-wrap {
  align-self: stretch;
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 0 clamp(40px, 6vh, 58px);
  padding: 0;
  transform: translate3d(0, -24px, 0);
}

.theme-switch {
  position: relative;
  display: block;
  width: 82px;
  height: 170px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  isolation: isolate;
  transition: filter 140ms ease;
}

.theme-switch-remotion {
  position: absolute;
  inset: 0;
  border-radius: 11px;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 180ms ease;
}

.theme-switch-remotion-player {
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: filter 180ms ease;
}

.theme-switch[data-remotion-ready="true"] .theme-switch-remotion {
  opacity: 1;
}

.theme-switch[data-remotion-ready="true"] .theme-switch-plate {
  opacity: 0;
  visibility: hidden;
}

.theme-switch::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 10px;
  background: radial-gradient(120% 42% at 50% -8%, rgba(255, 255, 255, 0.24), transparent 62%);
  opacity: 0;
  transform: translate3d(0, 2px, 0);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  pointer-events: none;
  z-index: 1;
}

.theme-switch-plate {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 9px;
  border: 1px solid var(--switch-plate-edge);
  background: linear-gradient(180deg, var(--switch-plate-hi) 0%, var(--switch-plate) 52%, var(--switch-plate-low) 100%);
  box-shadow:
    0 12px 22px var(--switch-contact-shadow),
    inset 0 2px 0 rgba(255, 255, 255, 0.34),
    inset 0 -3px 0 var(--switch-plate-bottom),
    inset 0 0 0 1px rgba(0, 0, 0, 0.14);
  transition: box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-switch-plate::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 8px;
  border: 1px solid var(--switch-inner-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.theme-switch-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background:
    radial-gradient(130% 70% at 50% -15%, var(--switch-spec), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.08));
  opacity: 0.42;
  pointer-events: none;
}

.theme-switch-screw {
  position: absolute;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--switch-led-shell);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.3), var(--switch-screw));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 1px 1px rgba(0, 0, 0, 0.16);
  transform: translate3d(-50%, 0, 0);
}

.theme-switch-screw::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 5px;
  background: rgba(17, 24, 39, 0.6);
  transform: translate3d(-50%, -50%, 0);
}

.theme-switch-screw::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 1px;
  background: rgba(17, 24, 39, 0.5);
  transform: translate3d(-50%, -50%, 0);
}

.theme-switch-screw-top {
  top: 8px;
}

.theme-switch-screw-bottom {
  bottom: 8px;
}

.theme-switch-rocker-mask {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 114px;
  border-radius: 9px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.22),
    rgba(0, 0, 0, 0) 24%,
    rgba(0, 0, 0, 0.18) 100%
  );
  box-shadow:
    inset 0 9px 11px var(--switch-rim-shadow),
    inset 0 -8px 10px var(--switch-rim-shadow),
    inset 0 0 0 1px rgba(0, 0, 0, 0.16);
  transition: box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-switch-rocker-mask::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  opacity: 0.38;
  pointer-events: none;
}

.theme-switch-rocker-mask::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background:
    radial-gradient(120% 44% at 50% 0%, rgba(255, 255, 255, 0.16), transparent 58%),
    radial-gradient(120% 46% at 50% 100%, rgba(0, 0, 0, 0.18), transparent 60%);
  pointer-events: none;
}

.theme-switch-rocker {
  position: relative;
  width: 34px;
  height: 90px;
  border: 1px solid var(--switch-plate-edge);
  border-radius: 6px;
  background: linear-gradient(
    180deg,
    var(--switch-rocker-hi) 0%,
    var(--switch-rocker) 44%,
    var(--switch-rocker-low) 100%
  );
  box-shadow:
    inset 0 8px 10px var(--switch-inset),
    inset 0 -2px 6px rgba(255, 255, 255, 0.2),
    0 6px 10px rgba(0, 0, 0, 0.2);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translate3d(0, -13.5px, 0) rotateX(1.1deg);
  transition:
    transform 190ms cubic-bezier(0.25, 1, 0.35, 1),
    box-shadow 190ms ease;
}

.theme-switch-rocker::before {
  content: "";
  position: absolute;
  inset: 7px 6px auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.38);
  opacity: 0.65;
}

.theme-switch-rocker::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 6px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.16) 36%,
    rgba(0, 0, 0, 0.08) 100%
  );
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 13%, #000 87%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 13%, #000 87%, transparent 100%);
  opacity: 0.64;
  transition: opacity 190ms ease;
  pointer-events: none;
}

.theme-switch[aria-checked="true"] .theme-switch-rocker {
  transform: translate3d(0, 13.5px, 0) rotateX(-1.1deg);
  box-shadow:
    inset 0 -8px 10px var(--switch-inset),
    inset 0 2px 6px rgba(255, 255, 255, 0.22),
    0 8px 12px rgba(0, 0, 0, 0.22);
}

.theme-switch[aria-checked="true"] .theme-switch-rocker::after {
  opacity: 0.44;
}

@supports not ((-webkit-mask-image: linear-gradient(#000, #000)) or (mask-image: linear-gradient(#000, #000))) {
  .theme-switch-rocker-mask::before {
    inset: 4px;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0.04) 42%,
      rgba(0, 0, 0, 0.14) 100%
    );
    opacity: 0.26;
  }

  .theme-switch-rocker::after {
    inset: 6px;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.32) 0%,
      rgba(255, 255, 255, 0.12) 48%,
      rgba(0, 0, 0, 0.06) 100%
    );
    opacity: 0.52;
  }
}

@supports (-webkit-touch-callout: none) {
  .theme-switch-rocker {
    transform: translate3d(0, -13.5px, 0);
  }

  .theme-switch[aria-checked="true"] .theme-switch-rocker {
    transform: translate3d(0, 13.5px, 0);
  }
}

.theme-switch:hover {
  filter: saturate(1.03);
}

.theme-switch:hover::before,
.theme-switch:focus-visible::before {
  opacity: 0.42;
  transform: translate3d(0, 0, 0);
}

.theme-switch:hover .theme-switch-plate {
  box-shadow:
    0 18px 30px var(--switch-contact-shadow),
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -4px 0 var(--switch-plate-bottom),
    inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}

.theme-switch:hover .theme-switch-rocker-mask {
  box-shadow:
    inset 0 9px 11px var(--switch-rim-shadow),
    inset 0 -8px 10px var(--switch-rim-shadow),
    inset 0 0 0 1px rgba(0, 0, 0, 0.16),
    0 2px 6px rgba(0, 0, 0, 0.18);
}

.theme-switch:hover .theme-switch-led::after {
  opacity: 0.34;
}

.theme-switch:hover .theme-switch-rocker::after {
  opacity: 0.7;
}

.theme-switch[data-remotion-ready="true"]:hover .theme-switch-remotion-player {
  filter: brightness(1.015) contrast(1.01);
}

.theme-switch:active {
  filter: brightness(0.995);
}

.theme-switch:active .theme-switch-plate {
  box-shadow:
    0 10px 18px var(--switch-contact-shadow),
    inset 0 2px 0 rgba(255, 255, 255, 0.24),
    inset 0 -3px 0 var(--switch-plate-bottom),
    inset 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.theme-switch:active .theme-switch-rocker {
  box-shadow:
    inset 0 7px 8px var(--switch-inset),
    inset 0 -2px 5px rgba(255, 255, 255, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.2);
}

.theme-switch[aria-checked="true"]:active .theme-switch-rocker {
  box-shadow:
    inset 0 -7px 8px var(--switch-inset),
    inset 0 2px 5px rgba(255, 255, 255, 0.22),
    0 5px 9px rgba(0, 0, 0, 0.2);
}

.theme-switch[data-remotion-ready="true"]:active .theme-switch-remotion-player {
  filter: brightness(0.99);
}

.theme-switch-notch {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 5px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), var(--switch-groove));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transform: translate3d(-50%, -50%, 0);
}

.theme-switch-notch::before {
  content: "";
  position: absolute;
  inset: 1px 3px auto;
  height: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.theme-switch-led {
  display: none;
}

.theme-switch-led::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  opacity: 0.34;
}

.theme-switch-led::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.28;
  filter: blur(4px);
}

.theme-switch-led-off {
  top: 12px;
  color: var(--switch-glow-off);
  background: var(--switch-glow-off);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.24);
  opacity: 0.9;
  transition: opacity 190ms ease;
}

.theme-switch-led-on {
  bottom: 12px;
  color: var(--switch-glow-on);
  background: var(--switch-glow-on);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.24);
  opacity: 0.24;
  transition: opacity 190ms ease;
}

.theme-switch[aria-checked="true"] .theme-switch-led-on {
  opacity: 0.9;
}

.theme-switch[aria-checked="true"] .theme-switch-led-off {
  opacity: 0.24;
}

.theme-switch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  box-shadow: 0 0 0 4px var(--switch-focus-ring);
}

.motion-enabled .scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition-property: opacity, transform;
  transition-duration: 360ms, 520ms;
  transition-timing-function: ease, cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-enabled .scroll-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.motion-enabled [data-parallax] {
  will-change: transform;
}

.page-bar {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 12px;
  border: 1px solid var(--bar-border);
  background: var(--bar-bg);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-footer {
  align-self: stretch;
  height: 1px;
  background: var(--bar-border);
}

.bar-title {
  color: var(--bar-title);
  font-weight: 700;
}

.bar-meta {
  color: var(--bar-meta);
}

.bar-link {
  color: var(--bar-title);
}

.bar-clock {
  color: var(--bar-meta);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.16em;
}

.bar-link:hover,
.bar-link:focus-visible {
  color: var(--accent);
}

.welcome {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
}

.welcome.is-visible {
  opacity: 1;
  pointer-events: auto;
  animation: welcomeFadeIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.welcome-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 18px;
  border: 1px solid var(--line);
  max-width: 320px;
  opacity: 0;
  transform: translateY(12px);
}

.welcome.is-visible .welcome-card {
  animation: welcomeCardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes welcomeFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes welcomeCardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome.is-visible {
    animation: none;
  }

  .welcome-card,
  .welcome.is-visible .welcome-card {
    animation: none;
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-avatar {
  width: 120px;
  height: 120px;
  border: 1px solid var(--line);
  border-radius: 0;
  object-fit: cover;
}

.welcome-handle {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.welcome-copy {
  margin: 0;
  color: var(--text);
}

.welcome-enter {
  font-family: "Commit Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 0;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
}

.profile {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 0;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px var(--panel-shadow);
}

.identity {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.avatar {
  width: 140px;
  height: 140px;
  border-radius: 0;
  border: 1px solid var(--line);
  object-fit: cover;
}

.handle {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.name {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 12px;
  font-weight: 700;
}

.bio {
  margin: 0 0 16px;
  color: var(--muted);
}

:root {
  --btn-size: 180px;
  --btn-gap: 12px;
  --btn-row-height: 36px;
}

.btn-accordion {
  display: grid;
  gap: 12px;
  overflow: hidden;
  max-height: calc(var(--btn-row-height) + 4px);
  opacity: 0.92;
  transform: translateY(-2px);
  transition: max-height 360ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 240ms ease,
    transform 240ms ease;
}

.btn-accordion.is-open {
  max-height: 480px;
  opacity: 1;
  transform: translateY(0);
}

.btn-accordion .btn {
  transition: opacity 220ms ease, transform 220ms ease;
}

.btn-accordion.state-open .btn {
  opacity: 1;
  transform: translateY(0);
}

.btn-accordion.state-closed .btn {
  opacity: 0.9;
  transform: translateY(0);
}

.btn-accordion.state-closing .btn {
  opacity: 0;
  transform: translateY(-6px);
}

.btn-accordion.state-closing .btn:nth-child(1) {
  transition-delay: 0ms;
}

.btn-accordion.state-closing .btn:nth-child(2) {
  transition-delay: 40ms;
}

.btn-accordion.state-closing .btn:nth-child(3) {
  transition-delay: 80ms;
}

.btn-accordion.state-closing .btn:nth-child(4) {
  transition-delay: 120ms;
}

.btn-accordion.state-closing .btn:nth-child(5) {
  transition-delay: 160ms;
}

.btn-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--btn-size), 1fr));
  row-gap: var(--btn-gap);
  column-gap: var(--btn-gap);
  margin: 0;
  justify-content: center;
  justify-items: center;
}

.org-actions {
  margin: 0;
}

.org {
  text-decoration: none;
}

.org-avatar {
  width: 22px;
  height: 22px;
  border-radius: 0;
  border: 1px solid var(--line);
  object-fit: cover;
}

.org-text {
  color: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  width: var(--btn-size);
  padding: 8px 14px;
  border-radius: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  line-height: 1;
  min-height: var(--btn-row-height);
  transition: box-shadow 160ms ease;
  text-align: center;
}

.btn-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  position: absolute;
  left: 12px;
}

.btn-icon.is-empty {
  visibility: hidden;
}

.btn.primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-border);
}

.btn:hover,
.btn:focus-visible {
  box-shadow: 0 0 0 2px var(--btn-hover-ring), 0 10px 24px rgba(0, 0, 0, 0.35);
}

.btn:active {
  box-shadow: 0 0 0 1px var(--accent), 0 4px 12px rgba(0, 0, 0, 0.35);
}

.btn-toggle {
  width: var(--btn-size);
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: "Commit Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 12px;
  cursor: pointer;
}

.btn-toggle-wrap {
  display: grid;
  justify-content: center;
  justify-items: center;
  gap: 10px;
  margin-top: 14px;
}

.btn-toggle-sep {
  width: 64px;
  height: 1px;
  background: var(--line);
  opacity: 0.6;
}

.btn-toggle:hover,
.btn-toggle:focus-visible {
  box-shadow: 0 0 0 2px var(--btn-hover-ring), 0 10px 24px rgba(0, 0, 0, 0.35);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  background: var(--btn-primary-hover-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-hover-border);
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .page {
    min-height: 100dvh;
    justify-content: flex-start;
    gap: 18px;
    padding: env(safe-area-inset-top) 16px calc(20px + env(safe-area-inset-bottom));
  }

  .page-header {
    position: static;
    left: auto;
    right: auto;
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    padding-left: calc(12px + env(safe-area-inset-left));
    padding-right: calc(12px + env(safe-area-inset-right));
  }

  .theme-switch-wrap {
    margin: 2px 0 6px;
    transform: translate3d(0, -2px, 0);
  }

  .theme-switch {
    width: 72px;
    height: 150px;
  }

  .theme-switch-rocker-mask {
    width: 44px;
    height: 104px;
  }

  .theme-switch-rocker {
    width: 34px;
    height: 82px;
  }

  .profile {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    padding: 20px 16px;
  }

  .avatar {
    width: 120px;
    height: 120px;
  }

  .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .btn-row {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .btn,
  .btn-toggle {
    width: min(100%, 340px);
  }
}

@media (max-width: 600px) {
  :root {
    --btn-gap: 8px;
  }

  .page {
    gap: 16px;
    padding: env(safe-area-inset-top) 14px calc(16px + env(safe-area-inset-bottom));
  }

  .theme-switch {
    width: 68px;
    height: 142px;
  }

  .theme-switch-wrap {
    transform: translate3d(0, -4px, 0);
  }

  .page-header {
    width: calc(100% + 28px);
    margin-left: -14px;
    margin-right: -14px;
    padding-left: calc(12px + env(safe-area-inset-left));
    padding-right: calc(12px + env(safe-area-inset-right));
  }

  .theme-switch-rocker-mask {
    width: 42px;
    height: 98px;
  }

  .theme-switch-rocker {
    width: 32px;
    height: 78px;
  }

  .profile {
    padding: 16px 14px;
  }

  .btn-row {
    --btn-gap: 8px;
  }

  .btn-accordion {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .theme-switch,
  .theme-switch:hover,
  .theme-switch:active {
    filter: none;
  }

  .theme-switch::before,
  .theme-switch:hover::before,
  .theme-switch:focus-visible::before {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  .theme-switch:hover .theme-switch-plate,
  .theme-switch:active .theme-switch-plate {
    box-shadow:
      0 14px 26px var(--switch-contact-shadow),
      inset 0 2px 0 rgba(255, 255, 255, 0.28),
      inset 0 -4px 0 var(--switch-plate-bottom),
      inset 0 0 0 1px rgba(0, 0, 0, 0.14);
  }

  .theme-switch:hover .theme-switch-rocker-mask {
    box-shadow:
      inset 0 9px 11px var(--switch-rim-shadow),
      inset 0 -8px 10px var(--switch-rim-shadow),
      inset 0 0 0 1px rgba(0, 0, 0, 0.16);
  }

  .theme-switch:hover .theme-switch-led::after {
    opacity: 0.28;
  }

  .theme-switch-remotion-player,
  .theme-switch[data-remotion-ready="true"]:hover .theme-switch-remotion-player,
  .theme-switch[data-remotion-ready="true"]:active .theme-switch-remotion-player {
    filter: none;
  }

}
