/* ── tokens ── */
:root {
  --bg: #efefed;
  --surface: #ffffff;
  --text: #111111;
  --muted: #8a8a84;
  --line: rgba(0, 0, 0, 0.1);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-hero: "Outfit", var(--font);
  --content-width: 640px;
  --section-gap: clamp(112px, 16vh, 176px);
  --section-head-gap: 44px;
  --nav-offset: clamp(116px, 15vw, 160px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: none;
  font-size: 17px;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  -ms-overflow-style: none;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
video,
canvas,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a.text-link {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 0, 0, 0.35);
  transition: text-decoration-color 0.2s ease;
}

a.text-link:hover {
  text-decoration-color: var(--text);
}

.page-wrap {
  width: min(var(--content-width), calc(100% - 40px));
  max-width: 100%;
  margin-inline: auto;
}

/* ── splash ── */
.splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: var(--bg);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}

.splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 0.28s;
}

.splash__grid {
  --splash-dot: 9px;
  --splash-gap: 7px;
  width: calc(var(--splash-dot) * 3 + var(--splash-gap) * 2);
  height: calc(var(--splash-dot) * 3 + var(--splash-gap) * 2);
  display: grid;
  grid-template-columns: repeat(3, var(--splash-dot));
  grid-template-rows: repeat(3, var(--splash-dot));
  justify-content: center;
  align-content: center;
  justify-items: center;
  align-items: center;
  gap: var(--splash-gap);
  transform-origin: center center;
  animation: splash-grid-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.splash.is-hidden .splash__grid {
  opacity: 0;
  transform: scale(0.96);
}

.splash__dot {
  width: var(--splash-dot);
  height: var(--splash-dot);
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 45%, var(--bg));
  transform-origin: center center;
  animation: splash-dot-pulse 1.2s ease-in-out infinite;
}

.splash__dot:nth-child(1) { animation-delay: 0s; }
.splash__dot:nth-child(2) { animation-delay: 0.08s; }
.splash__dot:nth-child(3) { animation-delay: 0.16s; }
.splash__dot:nth-child(4) { animation-delay: 0.08s; }
.splash__dot:nth-child(5) { animation-delay: 0.16s; }
.splash__dot:nth-child(6) { animation-delay: 0.24s; }
.splash__dot:nth-child(7) { animation-delay: 0.16s; }
.splash__dot:nth-child(8) { animation-delay: 0.24s; }
.splash__dot:nth-child(9) { animation-delay: 0.32s; }

@keyframes splash-grid-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes splash-dot-pulse {
  0%, 100% {
    opacity: 0.28;
  }

  50% {
    opacity: 1;
  }
}

html.splash-active,
html.splash-active body {
  overflow: hidden;
}

.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: 3px;
  pointer-events: none;
}

.scroll-indicator__track {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--line);
  overflow: hidden;
}

.scroll-indicator__thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--text);
  transform-origin: left center;
  will-change: width;
}

/* ── fixed nav ── */
.hero__links {
  position: fixed;
  top: 50%;
  right: max(20px, env(safe-area-inset-right));
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  width: auto;
  max-width: min(200px, 40vw);
  text-align: right;
}

.nav-stagger .nav-link {
  opacity: 0;
  animation: fade-in 0.5s var(--ease) forwards;
}

.nav-stagger .nav-link:nth-child(1) { animation-delay: 0.08s; }
.nav-stagger .nav-link:nth-child(2) { animation-delay: 0.14s; }
.nav-stagger .nav-link:nth-child(3) { animation-delay: 0.2s; }
.nav-stagger .nav-link:nth-child(4) { animation-delay: 0.26s; }
.nav-stagger .nav-link:nth-child(5) { animation-delay: 0.32s; }
.nav-stagger .nav-link:nth-child(6) { animation-delay: 0.38s; }
.nav-stagger .nav-link:nth-child(7) { animation-delay: 0.44s; }
.nav-stagger .nav-link:nth-child(8) { animation-delay: 0.5s; }
.nav-stagger .nav-link:nth-child(9) { animation-delay: 0.56s; }
.nav-stagger .nav-link:nth-child(10) { animation-delay: 0.62s; }
.nav-stagger .nav-link:nth-child(11) { animation-delay: 0.68s; }
.nav-stagger .nav-link:nth-child(12) { animation-delay: 0.74s; }
.nav-stagger .nav-link:nth-child(13) { animation-delay: 0.8s; }
.nav-stagger .nav-link:nth-child(14) { animation-delay: 0.86s; }
.nav-stagger .nav-link:nth-child(15) { animation-delay: 0.92s; }

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero__links .nav-link {
  display: inline-block;
  padding: 0.22rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
  text-decoration: none;
  transform: scale(var(--proximity-scale, 1));
  transform-origin: right center;
  transition: color 0.2s ease, transform 0.35s var(--ease);
}

.hero__links .nav-link:hover,
.hero__links .nav-link:focus-visible,
.hero__links .nav-link.is-active {
  color: var(--text);
}

.nav-proximity.is-active .nav-link[data-proximity="0"] {
  font-weight: 600;
}

.hero__links .nav-link--external::after {
  content: " ↗";
  font-size: 0.72em;
  opacity: 0.4;
}

.hero__links .nav-divider {
  width: 28px;
  height: 1px;
  margin: 0.55rem 0;
  background: var(--line);
  opacity: 0;
  animation: fade-in 0.5s var(--ease) 0.5s forwards;
}

.nav-views {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.nav-menu-toggle {
  display: none;
}

.nav-menu-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  width: 100%;
}

/* ── hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  padding: 0;
  background: var(--bg);
}

.hero__content {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0;
  transform: translate(-50%, -50%);
}

.yt-comment {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  width: min(520px, 100%);
  text-align: left;
  opacity: 0;
  transform: translateY(14px);
  animation: brand-in 0.85s var(--ease) 0.12s forwards;
}

/* Floating quick-links nav — overlay only, no layout impact */
.floating-nav {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 210;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  max-width: min(720px, calc(100vw - var(--nav-offset) - 48px));
  margin: 0;
  padding-top: max(18px, calc(env(safe-area-inset-top, 0px) + 14px));
  padding-bottom: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.floating-nav .quick-links,
.floating-nav .quick-links__status {
  pointer-events: auto;
}

/* Keep tooltips under the top bar so they aren't clipped */
.floating-nav .quick-link.has-tip::after {
  bottom: auto;
  top: calc(100% + 10px);
}

.floating-nav .quick-link.has-tip::before {
  bottom: auto;
  top: calc(100% + 3px);
  border-width: 0 6px 7px;
  border-color: transparent transparent #3a3a3a;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 0;
  padding-left: 0;
  overflow: visible;
  opacity: 0;
  transform: translateY(10px);
  animation: brand-in 0.85s var(--ease) 0.22s forwards;
}

.quick-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s var(--ease);
}

.quick-link.has-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  top: auto;
  z-index: 30;
  padding: 5px 8px;
  border-radius: 6px;
  background: #3a3a3a;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.quick-link.has-tip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  top: auto;
  z-index: 30;
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-top-color: #3a3a3a;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.quick-link.has-tip:hover::after,
.quick-link.has-tip:focus-visible::after,
.quick-link.has-tip:hover::before,
.quick-link.has-tip:focus-visible::before {
  opacity: 1;
  visibility: visible;
}

.quick-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  pointer-events: none;
}

.quick-link svg {
  display: block;
  width: 54%;
  height: 54%;
  pointer-events: none;
}

.quick-link:hover,
.quick-link:focus-visible {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
  outline: none;
}

.quick-link.is-copied {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.16);
}

.quick-link--share {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.quick-link--share:hover,
.quick-link--share:focus-visible {
  background: #2a2a2a;
  border-color: #2a2a2a;
  color: #fff;
}

.quick-link--connect {
  width: auto;
  height: 32px;
  padding: 0 10px 0 12px;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: #5c5c56;
}

.quick-link--connect .quick-link__label {
  line-height: 1;
}

.quick-link--connect svg {
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.72;
}

.quick-links__status {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0;
  animation: brand-in 0.85s var(--ease) 0.28s forwards;
}

/* ── share modal ── */
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.share-modal[hidden] {
  display: none !important;
}

.share-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.share-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.28);
  border: none;
  cursor: pointer;
}

.share-modal__panel {
  position: relative;
  z-index: 1;
  width: min(300px, calc(100vw - 40px));
  padding: 18px 18px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
  text-align: center;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.22s var(--ease);
}

.share-modal.is-open .share-modal__panel {
  transform: none;
}

.share-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.share-modal__close:hover,
.share-modal__close:focus-visible {
  color: var(--text);
  border-color: rgba(0, 0, 0, 0.16);
  background: rgba(0, 0, 0, 0.03);
  outline: none;
}

.share-modal__title {
  margin: 4px 28px 14px;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  color: var(--text);
}

.share-modal__qr-wrap {
  display: grid;
  place-items: center;
  width: 168px;
  height: 168px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fafafa;
}

.share-modal__qr {
  display: block;
  width: 152px;
  height: 152px;
  border-radius: 6px;
}

.share-modal__url {
  margin: 10px 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.share-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.share-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 10px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.share-modal__btn--primary {
  border: 1px solid #111;
  background: #111;
  color: #fff;
}

.share-modal__btn--primary:hover,
.share-modal__btn--primary:focus-visible {
  background: #000;
  outline: none;
}

.share-modal__btn--ghost {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  color: var(--text);
}

.share-modal__btn--ghost:hover,
.share-modal__btn--ghost:focus-visible {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.18);
  outline: none;
}

.share-modal__btn.is-done {
  border-color: rgba(0, 0, 0, 0.16);
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

html.share-modal-open,
html.share-modal-open body {
  overflow: hidden;
}

/* ── discord profile modal ── */
.discord-modal {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.discord-modal[hidden] {
  display: none !important;
}

.discord-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.discord-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  cursor: pointer;
}

.discord-modal__panel {
  position: relative;
  z-index: 1;
  width: min(340px, calc(100vw - 32px));
  border-radius: 12px;
  overflow: hidden;
  background: #111214;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.22s var(--ease);
}

.discord-modal.is-open .discord-modal__panel {
  transform: none;
}

.discord-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: #dbdee1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.discord-modal__close:hover,
.discord-modal__close:focus-visible {
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  outline: none;
}

.discord-profile {
  position: relative;
}

.discord-profile__banner {
  height: 100px;
  background: #80848e;
}

.discord-profile__body {
  position: relative;
  padding: 52px 16px 16px;
  background: #111214;
  text-align: left;
}

.discord-profile__avatar-wrap {
  position: absolute;
  left: 16px;
  top: 0;
  z-index: 2;
  width: 80px;
  height: 80px;
  margin: 0;
  transform: translateY(-50%);
}

.discord-profile__avatar {
  display: block;
  box-sizing: border-box;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 6px solid #111214;
  background: #1e1f22;
  object-fit: cover;
}

.discord-profile__status {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 4px solid #111214;
  box-sizing: border-box;
}

.discord-profile__status--dnd {
  background:
    linear-gradient(#111214, #111214) center / 10px 3px no-repeat,
    #f23f43;
}

.discord-profile__display {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #f2f3f5;
}

.discord-profile__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px 8px;
  margin-bottom: 14px;
}

.discord-profile__username {
  font-size: 0.875rem;
  font-weight: 500;
  color: #b5bac1;
}

.discord-profile__dot {
  color: #4e5058;
  font-size: 0.75rem;
  line-height: 1;
}

.discord-profile__badges {
  list-style: none;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.discord-profile__badges li {
  display: inline-flex;
}

.discord-profile__badges img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.discord-profile__ai {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 7px 0 5px;
  border-radius: 999px;
  background: #1e1f22;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #f2f3f5;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.discord-profile__ai-icon {
  display: block;
  flex-shrink: 0;
}

.discord-request {
  padding: 12px;
  border-radius: 8px;
  background: #2b2d31;
  text-align: left;
}

.discord-request__text {
  margin: 0 0 12px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  color: #dbdee1;
}

.discord-request__text strong {
  font-weight: 700;
  color: #f2f3f5;
}

.discord-request__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.discord-request__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, filter 0.15s ease;
}

.discord-request__btn--accept {
  background: #5865f2;
  color: #fff;
}

.discord-request__btn--accept:hover,
.discord-request__btn--accept:focus-visible {
  background: #4752c4;
  outline: none;
}

.discord-request__btn--ignore {
  background: #4e5058;
  color: #fff;
}

.discord-request__btn--ignore:hover,
.discord-request__btn--ignore:focus-visible {
  background: #6d6f78;
  outline: none;
}

html.discord-modal-open,
html.discord-modal-open body {
  overflow: hidden;
}

/* ── about page ── */
.about-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  padding-top: clamp(32px, 6vh, 56px);
  padding-bottom: 48px;
}

.about-page__block {
  width: 100%;
}

.about-page__profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.about-page__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.about-page__bio {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #8a8a84;
}

.about-page__avatar {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: none;
  flex-shrink: 0;
}

.about-page__name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.about-page__name {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.about-page__verified {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.about-page__block-title {
  margin: 0 0 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: #a3a39c;
}

.about-page__connect {
  list-style: none;
  margin: 0;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.about-page__connect-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}

.about-page__connect-link:hover,
.about-page__connect-link:focus-visible {
  background: rgba(0, 0, 0, 0.035);
  color: #000;
  outline: none;
}

.about-page__connect-app {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.about-page__connect-icon {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.88;
}

.about-page__connect-icon--brand {
  border-radius: 4px;
}

.about-page__connect-icon--glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #5c5c58;
}

.about-page__connect-label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.about-page__connect-handle {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #9a9a94;
  text-align: right;
}

.about-page__certs {
  list-style: none;
  margin: 0;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.about-page__cert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px;
  border: none;
  border-radius: 10px;
}

.about-page__cert-main {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.about-page__cert-main .about-page__verified {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  opacity: 0.9;
}

.about-page__cert-name {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.45;
  color: var(--text);
}

.about-page__cert-issuer {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 400;
  color: #9a9a94;
  text-align: right;
}

.about-page__stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 0;
  border: none;
}

.about-page__block--stack .about-page__block-title {
  text-align: center;
}

.about-page__stack-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.about-page__block--stack .about-page__stack-label {
  text-align: left;
  width: 100%;
}

.about-page__stack-label {
  margin: 0;
  padding-top: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a3a39c;
}

.about-page__stack-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
}

.about-page__stack-list li {
  padding: 0;
  border: none;
  background: transparent;
}

.about-page__tech {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.about-page__tech:hover,
.about-page__tech:focus-visible {
  border-color: rgba(0, 0, 0, 0.12);
  background: #fff;
  transform: none;
  box-shadow: none;
  outline: none;
}

.about-page__tech img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.about-page__tech.has-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 20;
  padding: 5px 8px;
  border-radius: 6px;
  background: #3a3a3a;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.about-page__tech.has-tip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  z-index: 20;
  width: 0;
  height: 0;
  border-width: 7px 6px 0;
  border-style: solid;
  border-color: #3a3a3a transparent transparent;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.about-page__tech.has-tip:hover::after,
.about-page__tech.has-tip:focus-visible::after,
.about-page__tech.has-tip:hover::before,
.about-page__tech.has-tip:focus-visible::before {
  opacity: 1;
  visibility: visible;
}

.about-page__quote {
  margin: 0;
  padding: 2px 0 0 16px;
  border: none;
  border-left: 2px solid rgba(0, 0, 0, 0.14);
  background: transparent;
  max-width: 42ch;
}

.about-page__quote p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.5;
  color: var(--text);
}

.about-page__quote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.8125rem;
  font-style: normal;
  color: #6b6b66;
}

.page-top--about {
  padding-top: clamp(28px, 5vh, 48px);
  padding-bottom: 24px;
}

.page-top--site-info {
  padding-top: clamp(28px, 5vh, 48px);
  padding-bottom: 8px;
  text-align: center;
}

.page-top--site-info .page-top__title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 4vw, 1.625rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.page-top--site-info .page-top__lead {
  margin-top: 8px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #9a9a94;
}

.page-top--about .page-top__back {
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .about-page {
    gap: 36px;
    max-width: 100%;
  }

  .about-page__avatar {
    width: 80px;
    height: 80px;
    border-radius: 20px;
  }

  .about-page__name {
    font-size: 1.5rem;
  }

  .about-page__bio {
    font-size: 0.8125rem;
  }

  .about-page__cert-name {
    font-size: 0.78125rem;
  }
}

.yt-comment__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #ddd;
}

.yt-comment__body {
  min-width: 0;
  padding-top: 1px;
}

.yt-comment__meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 4px;
}

.yt-comment__user {
  margin: 0;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--text);
}

.yt-comment__time {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
}

.yt-comment__text {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--text);
  white-space: normal;
}

.yt-comment__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
  color: var(--muted);
}

.yt-comment__reply {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: default;
  user-select: none;
  transition: color 0.2s ease;
}

.yt-comment__reply:hover,
.yt-comment__reply:focus-visible {
  color: var(--text);
  outline: none;
}

.yt-comment__votes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.yt-comment__vote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 6px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.yt-comment__vote:hover {
  background: transparent;
  color: var(--text);
}

.yt-comment__vote:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.25);
  outline-offset: 2px;
}

.yt-comment__vote.is-active {
  color: #111;
}

.yt-comment__vote.is-active .yt-comment__icon {
  opacity: 1;
}

.yt-comment__vote.is-active:hover {
  color: #000;
  background: transparent;
}

.yt-comment__icon {
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.yt-comment__vote:hover .yt-comment__icon,
.yt-comment__vote.is-active .yt-comment__icon {
  opacity: 1;
}

.yt-comment__vote:active .yt-comment__icon {
  transform: scale(0.92);
}

@keyframes brand-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ── main layout ── */
.site-main {
  padding:
    clamp(56px, 9vh, 96px)
    var(--nav-offset)
    clamp(100px, 14vh, 148px)
    var(--nav-offset);
  background: var(--bg);
}

.site-section {
  --section-focus: 0;
  padding: 0;
  margin-bottom: var(--section-gap);
  scroll-margin-top: 48px;
}

.site-section.is-scroll-focused .section-title {
  color: var(--text);
}

.site-section .section-title {
  color: color-mix(in srgb, var(--muted) 35%, var(--text));
  transition: color 0.4s ease;
}

.site-section.is-scroll-focused .section-lead {
  color: color-mix(in srgb, var(--muted) 40%, var(--text));
}

.site-section.is-scroll-focused .gh-embed {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.45s var(--ease);
}

.site-section .gh-embed {
  transition: box-shadow 0.45s var(--ease);
}

.site-section.is-scroll-focused .app-tile:not(.app-tile--soon) {
  transform: none;
}

.site-section.is-scroll-focused a.course-card:not(.course-card--soon) {
  transform: none;
}

.site-section.is-scroll-focused a.course-card:not(.course-card--soon) .course-card__title {
  color: var(--text);
}

.site-section:last-of-type {
  margin-bottom: 0;
}

.section-head {
  margin-bottom: var(--section-head-gap);
}

.section-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-lead {
  margin: 10px 0 0;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--muted);
}

.prose {
  font-size: 0.9375rem;
  line-height: 1.75;
}

.prose p {
  margin: 0 0 1.15em;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ── compact list (Otherkind-style) ── */
.compact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.compact-list__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 0.55rem 0;
}

.compact-list__item a {
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.2s ease;
}

.compact-list__item a:hover {
  opacity: 0.55;
}

.compact-list__meta {
  font-size: 0.8125rem;
  color: var(--muted);
  white-space: nowrap;
}

.compact-list__item--muted .compact-list__label {
  color: var(--muted);
}

.compact-list__label {
  font-size: 0.9375rem;
}

.compact-list__sub {
  margin: 0 0 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.compact-list__sub + .compact-list {
  margin-bottom: 28px;
}

/* ── projects grid (compact icons) ── */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 20px 12px;
}

.app-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transform-origin: center center;
  transition: transform 0.38s var(--ease);
}

a.app-tile {
  z-index: 0;
}

a.app-tile:hover,
a.app-tile:focus-visible {
  z-index: 1;
  transform: scale(1.1);
  outline: none;
}

a.app-tile.app-tile--soon,
a.app-tile.app-tile--soon:hover,
a.app-tile.app-tile--soon:focus-visible {
  transform: none;
  cursor: default;
}

.site-section.is-scroll-focused a.app-tile:not(.app-tile--soon):hover,
.site-section.is-scroll-focused a.app-tile:not(.app-tile--soon):focus-visible {
  transform: translateY(-4px) scale(1.1);
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.38s var(--ease), transform 0.38s var(--ease);
}

a.app-tile:not(.app-tile--soon):hover .app-icon,
a.app-tile:not(.app-tile--soon):focus-visible .app-icon {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  transform: scale(1.04);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.38s var(--ease);
}

a.app-tile:not(.app-tile--soon):hover .app-icon img,
a.app-tile:not(.app-tile--soon):focus-visible .app-icon img {
  transform: scale(1.06);
}

.app-name {
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--muted);
  letter-spacing: -0.01em;
  transition: color 0.2s ease, transform 0.38s var(--ease);
}

a.app-tile:not(.app-tile--soon):hover .app-name,
a.app-tile:not(.app-tile--soon):focus-visible .app-name {
  color: var(--text);
  transform: scale(1.06);
}

.app-tile--soon {
  opacity: 0.45;
  cursor: default;
}

.app-tile--soon .app-icon::after {
  content: "Soon";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.88);
}

.app-icon {
  position: relative;
}

/* Project hover tip (floating) */
.project-tip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 320;
  width: max-content;
  max-width: min(240px, calc(100vw - 32px));
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(28, 28, 26, 0.92);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 18px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(-50%, calc(-100% - 10px), 0) scale(0.92);
  transform-origin: center bottom;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.project-tip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(-50%, calc(-100% - 14px), 0) scale(1);
}

.project-tip.is-leaving {
  opacity: 0;
  visibility: visible;
  transform: translate3d(-50%, calc(-100% - 6px), 0) scale(0.96);
  transition:
    opacity 0.16s ease,
    visibility 0.16s ease,
    transform 0.2s ease;
}

.project-tip__text {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  text-align: center;
}

.project-tip__arrow {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  border-radius: 2px;
  background: rgba(28, 28, 26, 0.92);
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .project-tip,
  .project-tip.is-visible,
  .project-tip.is-leaving {
    transition: opacity 0.15s ease, visibility 0.15s ease;
    transform: translate3d(-50%, calc(-100% - 14px), 0);
  }
}

/* ── work ── */
.work-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.work-block__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  cursor: pointer;
}

.btn:hover {
  text-decoration-color: transparent;
}

.gh-embed {
  padding: 20px;
  border-radius: 16px;
  background: var(--surface);
}

.gh-embed__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.gh-embed__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
}

.gh-embed__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.gh-embed__repo {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.gh-embed__owner {
  color: var(--muted);
}

.gh-embed__badge {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.gh-embed__description {
  margin: 14px 0 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
}

.gh-embed__stats {
  display: flex;
  gap: 20px;
  margin: 16px 0 0;
  padding: 0;
}

.gh-embed__stat {
  margin: 0;
}

.gh-embed__stat dt {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.gh-embed__stat dd {
  margin: 4px 0 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.gh-embed__languages {
  margin-top: 16px;
}

.gh-embed__languages-bar {
  display: flex;
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg);
}

.gh-embed__languages-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  color: var(--muted);
}

.gh-embed__languages-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gh-embed__languages-list li span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.gh-embed__foot {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.gh-embed__btn {
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

/* ── courses ── */
.course-block + .course-block {
  margin-top: 52px;
}

.course-block__label {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.course-grid,
.course-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.course-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.45s var(--ease);
}

.course-card__media {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 2px solid transparent;
  box-shadow: 0 0 0 0 transparent;
  transition:
    border-color 0.38s var(--ease),
    box-shadow 0.38s var(--ease);
}

a.course-card:not(.course-card--soon):hover .course-card__media,
a.course-card:not(.course-card--soon):focus-visible .course-card__media {
  border-color: #f97316;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.28);
  outline: none;
}

.course-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.38s var(--ease);
}

a.course-card:not(.course-card--soon):hover .course-card__media img,
a.course-card:not(.course-card--soon):focus-visible .course-card__media img {
  transform: scale(1.03);
}

.course-card__title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--muted);
  text-align: center;
  transition: color 0.38s var(--ease);
}

a.course-card:hover .course-card__title,
a.course-card:focus-visible .course-card__title {
  color: var(--text);
}

.course-card--soon {
  opacity: 0.45;
}

.course-card--soon .course-card__media::after {
  content: "Soon";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.88);
}

.course-grid__overflow,
.course-rail__overflow {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  margin-top: -12px;
  transition:
    grid-template-rows 0.45s var(--ease),
    margin-top 0.45s var(--ease);
  pointer-events: none;
}

.course-grid.is-expanded .course-grid__overflow,
.course-rail.is-expanded .course-rail__overflow,
.course-grid.is-expanding .course-grid__overflow,
.course-rail.is-expanding .course-rail__overflow {
  grid-template-rows: 1fr;
  margin-top: 0;
  pointer-events: auto;
}

.course-grid.is-collapsing .course-grid__overflow,
.course-rail.is-collapsing .course-rail__overflow {
  grid-template-rows: 0fr;
  margin-top: -12px;
  pointer-events: none;
}

.course-grid__overflow-inner,
.course-rail__overflow-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-height: 0;
  overflow: hidden;
}

.course-card.is-unfolding {
  animation: course-unfold 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform, opacity;
}

.course-card.is-folding {
  animation: course-fold 0.35s cubic-bezier(0.4, 0, 1, 1) both;
  will-change: transform, opacity;
  pointer-events: none;
}

@keyframes course-unfold {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes course-fold {
  from {
    opacity: 1;
    transform: none;
  }

  to {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
}

.course-folder {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: center;
  transition: transform 0.25s var(--ease);
}

.course-folder:hover,
.course-folder:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.course-folder:active:not(.is-opening):not(.is-closing) {
  transform: translateY(0) scale(0.98);
}

.course-folder.is-opening,
.course-folder.is-closing {
  pointer-events: none;
}

.course-folder.is-opening .course-folder__stack,
.course-folder.is-closing .course-folder__stack {
  animation: folder-stack-nudge 0.3s var(--ease);
}

@keyframes folder-stack-nudge {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }
}

.course-folder--expanded .course-folder__media {
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.16);
}

.course-folder--expanded .course-folder__count {
  min-width: 28px;
  padding: 0;
  background: #f97316;
  color: var(--surface);
}

.course-folder__name {
  transition: color 0.2s ease;
}

.course-folder__media {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  transform: translateZ(0);
  isolation: isolate;
}

.course-folder__stack {
  position: absolute;
  inset: 14% 10% 18%;
  transform-origin: center center;
  transition: transform 0.3s var(--ease);
  will-change: transform;
}

.course-folder__preview {
  position: absolute;
  width: 52%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 2px solid var(--bg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.course-folder:hover .course-folder__preview:nth-child(1),
.course-folder:focus-visible .course-folder__preview:nth-child(1) {
  transform: rotate(-10deg) translateY(-2px);
}

.course-folder:hover .course-folder__preview:nth-child(2),
.course-folder:focus-visible .course-folder__preview:nth-child(2) {
  transform: rotate(3deg) translateY(-3px);
}

.course-folder:hover .course-folder__preview:nth-child(3),
.course-folder:focus-visible .course-folder__preview:nth-child(3) {
  transform: rotate(11deg) translateY(-2px);
}

.course-folder__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-folder__preview:nth-child(1) {
  top: 0;
  left: 0;
  z-index: 1;
  transform: rotate(-7deg);
}

.course-folder__preview:nth-child(2) {
  top: 14%;
  left: 24%;
  z-index: 2;
  transform: rotate(1deg);
}

.course-folder__preview:nth-child(3) {
  top: 28%;
  left: 46%;
  z-index: 3;
  transform: rotate(8deg);
}

.course-folder__count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 4;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.course-folder__name {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.25s var(--ease);
}

.course-folder:hover .course-folder__name,
.course-folder:focus-visible .course-folder__name {
  color: var(--text);
}

/* ── journey timeline ── */
.journey {
  position: relative;
}

.journey__group {
  display: flex;
  flex-direction: column;
}

.journey-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 16px;
  position: relative;
  padding-bottom: 1.25rem;
}

.journey-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.15rem;
  bottom: 0;
  left: 10px;
  width: 2px;
  background: var(--line);
  transform: translateX(-50%);
  z-index: 0;
  transition: background 0.35s var(--ease);
}

.journey-item.is-reached:not(:last-child):not(.journey-item--animation-end)::after {
  background: color-mix(in srgb, var(--text) 72%, var(--line));
}

.journey-item__node {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  width: 11px;
  height: 11px;
  margin-top: 0.35rem;
  justify-self: center;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line);
  transform: scale(0.9);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
    transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.journey-item__content {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.journey-item__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.journey-item__header .journey-item__title {
  flex: 0 1 auto;
  min-width: 0;
}

.journey-item__date {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.journey-item__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}

.journey-item__icon img,
.journey-item__icon svg {
  display: block;
  border-radius: inherit;
}

.journey-item__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journey-item__icon svg {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.journey-item__icon--badge {
  background: none;
  border: none;
  box-shadow: none;
}

.journey-item__icon--badge img {
  object-fit: contain;
  padding: 0;
  background: transparent;
}

.journey-item__icon--ai {
  background: #1e1f22;
  border-color: color-mix(in srgb, var(--text) 10%, var(--line));
}

.journey-item__icon--ai svg {
  width: 14px;
  height: 14px;
}

.journey-item.is-reached .journey-item__node {
  background: var(--text);
  border-color: var(--text);
  transform: scale(1);
}

.journey-item--featured.is-reached .journey-item__node {
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.12);
}

.journey-item__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.journey-item__body {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}

.journey-item__body a {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

.journey-polaroid {
  display: block;
  width: 132px;
  max-width: 100%;
  margin: 14px 0 0;
  padding: 7px 7px 16px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--text) 6%, var(--line));
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transform: rotate(-2deg);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.journey-item--featured .journey-polaroid:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.journey-polaroid__photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #ececea;
}

.journey-polaroid__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.journey-polaroid__caption {
  margin: 6px 0 0;
  padding: 0 2px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  color: var(--muted);
}

/* ── supporters ── */
.supporters-card {
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.supporters-card__table-wrap {
  overflow-x: auto;
}

.supporters-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.supporters-table thead th {
  padding: 14px 16px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.02);
}

.supporters-table__rank-col {
  width: 3rem;
}

.supporters-table__amount-col {
  width: 6.5rem;
  text-align: right;
}

.supporters__row td {
  padding: 14px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.supporters__row:last-child td {
  border-bottom: none;
}

.supporters__row--lead td {
  background: rgba(0, 0, 0, 0.025);
}

.supporters__row--loading .supporters__name {
  color: var(--muted);
}

.supporters__rank {
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.supporters__row--lead .supporters__rank {
  color: var(--text);
}

.supporters__name-cell {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.supporters__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.supporters__note {
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.supporters__avatar-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.supporters__avatar-preview img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg);
}

.supporters__avatar-remove {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.supporters__avatar-remove:hover,
.supporters__avatar-remove:focus-visible {
  color: var(--text);
  outline: none;
}

.supporters__field input[type="file"] {
  font-size: 0.8125rem;
}

.supporters__avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.supporters__avatar--empty {
  background: linear-gradient(135deg, #e8e8e6, #f5f5f3);
}

.supporters__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.supporters__name {
  font-size: 0.9375rem;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supporters__name a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.supporters__name a:hover {
  opacity: 0.6;
}

.supporters__row--lead .supporters__name {
  font-weight: 600;
}

.supporters__amount {
  text-align: right;
}

.supporters__amount-tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.supporters__row--lead .supporters__amount-tag {
  background: var(--text);
  border-color: var(--text);
  color: var(--surface);
}

.site-section.is-scroll-focused .supporters-card {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  transition: box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
}

.supporters-card {
  transition: box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
}

.supporters__foot {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.supporters__status {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  min-height: 1.25em;
}

.supporters__actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 100%;
  padding: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 90%, var(--bg));
  border: 1px solid var(--line);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 10px 28px rgba(0, 0, 0, 0.05);
}

.supporters__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  min-height: 40px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.22s var(--ease),
    color 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    transform 0.22s var(--ease),
    opacity 0.22s ease;
}

.supporters__btn:hover,
.supporters__btn:focus-visible {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
  outline: none;
}

.supporters__btn--solid {
  background: var(--text);
  color: var(--surface);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.supporters__btn--solid:hover,
.supporters__btn--solid:focus-visible {
  background: color-mix(in srgb, var(--text) 88%, white);
  color: var(--surface);
  transform: translateY(-1px);
}

.supporters__actions .supporters__btn:not(.supporters__btn--solid)::after {
  content: "→";
  font-size: 0.85em;
  opacity: 0.5;
  transition: transform 0.22s var(--ease), opacity 0.22s ease;
}

.supporters__actions .supporters__btn:not(.supporters__btn--solid):hover::after,
.supporters__actions .supporters__btn:not(.supporters__btn--solid):focus-visible::after {
  opacity: 0.85;
  transform: translateX(2px);
}

.supporters__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.supporters__thanks {
  margin-top: 20px;
  padding: 20px;
  border-radius: 14px;
  background: var(--surface);
}

.supporters__thanks-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.supporters__thanks-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.supporters__thanks-close {
  border: none;
  background: none;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.supporters__thanks-sub {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.supporters__field {
  display: block;
  margin-bottom: 12px;
}

.supporters__field span {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}

.supporters__field input,
.supporters__field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font: inherit;
  font-size: 0.875rem;
  color: var(--text);
}

.supporters__thanks-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.supporters__thanks-actions .supporters__btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.supporters__thanks-actions .supporters__btn--solid {
  border-color: var(--text);
}

/* ── footer ── */
.site-footer {
  margin-top: clamp(24px, 4vh, 48px);
  padding:
    clamp(56px, 9vh, 88px)
    max(24px, env(safe-area-inset-right))
    clamp(40px, 6vh, 64px)
    max(24px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 55%, #e8e8e4);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.site-footer__inner {
  width: min(960px, 100%);
  margin-inline: auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
  align-items: start;
}

.site-footer__col-title {
  margin: 0 0 18px;
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__links a {
  display: inline-block;
  font-size: 0.875rem;
  line-height: 1.35;
  color: #5c5c56;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s var(--ease);
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--text);
  transform: translateX(2px);
  outline: none;
}

body:has(.site-footer) .site-main {
  padding-bottom: clamp(48px, 7vh, 72px);
}

@media (max-width: 960px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 28px;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding:
      clamp(40px, 7vh, 56px)
      max(18px, env(safe-area-inset-right))
      calc(96px + env(safe-area-inset-bottom, 0px))
      max(18px, env(safe-area-inset-left));
  }

  .site-footer__inner {
    width: 100%;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    justify-items: start;
  }

  .site-footer__col-title {
    margin-bottom: 12px;
    font-size: 0.8125rem;
  }

  .site-footer__links {
    gap: 10px;
  }

  .site-footer__links a {
    font-size: 0.8125rem;
    word-break: break-word;
  }

  .site-footer__links a:hover,
  .site-footer__links a:focus-visible {
    transform: none;
  }
}

/* ── site information ── */
.site-info {
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  padding-top: clamp(16px, 3vh, 28px);
  padding-bottom: 48px;
}

.site-info__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}

.site-info__tab {
  flex: 1 1 calc(25% - 4px);
  min-width: 0;
  min-height: 40px;
  border: none;
  border-radius: 10px;
  padding: 0.55rem 0.4rem;
  background: transparent;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #9a9a94;
  cursor: pointer;
  display: grid;
  place-items: center;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.site-info__tab:hover,
.site-info__tab:focus-visible {
  color: var(--text);
  outline: none;
}

.site-info__tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.site-info__card {
  padding: 20px 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.site-info__panel {
  padding: 0;
  min-width: 0;
}

.site-info__panel[hidden] {
  display: none;
}

.site-info__panel h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
}

.site-info__panel p {
  margin: 0 0 12px;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #6b6b66;
}

.site-info__panel p:last-child {
  margin-bottom: 0;
}

.site-info__legal p:last-child {
  margin-bottom: 0;
}

.site-info__legal strong {
  color: var(--text);
  font-weight: 600;
}

.site-info__panel a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 0, 0, 0.25);
}

.site-info__panel a:hover {
  text-decoration-color: var(--text);
}

.site-info__legal > h3 {
  margin: 0 0 14px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a3a39c;
}

.site-info__legal {
  max-width: none;
}

.site-info__legal h4 {
  margin: 24px 0 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a3a39c;
}

.site-info__legal h4:first-of-type {
  margin-top: 0;
}

.site-info__legal ul,
.site-info__legal ol {
  margin: 0 0 12px;
  padding-left: 1.15rem;
  color: #6b6b66;
  font-size: 0.875rem;
  line-height: 1.65;
}

.site-info__legal li {
  margin-bottom: 4px;
}

.site-info__legal li:last-child {
  margin-bottom: 0;
}

.site-info__links-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 16px;
}

.site-info__links-group {
  margin: 0;
}

.site-info__links-label {
  margin: 0 0 8px;
  padding-inline: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a3a39c;
}

.site-info__tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.site-info__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}

.site-info__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}

.site-info__links a:hover,
.site-info__links a:focus-visible {
  background: rgba(0, 0, 0, 0.035);
  outline: none;
}

.site-info__links a span:first-child {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.site-info__links a span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #9a9a94;
  text-align: right;
}

.site-info__supporters-panel {
  padding: 18px 16px 16px;
}

.site-info__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.site-info__panel-head h3 {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a3a39c;
}

.site-info__panel-head .supporters__btn {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 500;
}

.site-info__panel-head .supporters__btn::after {
  content: none;
}

.site-info__supporters-wrap {
  overflow-x: auto;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}

.site-info__supporters-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.site-info__supporters-table th,
.site-info__supporters-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-align: left;
  vertical-align: middle;
}

.site-info__supporters-table tr:last-child td {
  border-bottom: 0;
}

.site-info__supporters-table th {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a3a39c;
  background: transparent;
}

.site-info__supporters-table td {
  color: #6b6b66;
  font-weight: 400;
}

.site-info__supporters-table td:first-child,
.site-info__supporters-table td:nth-child(2) {
  color: var(--text);
  font-weight: 500;
}

.site-info__supporters-table th:last-child,
.site-info__supporters-table td:last-child {
  text-align: right;
}

.site-info__amount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  font-size: 0.6875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.site-info__supporters-table a {
  color: var(--text);
  text-decoration: none;
}

.site-info__supporters-table a:hover {
  opacity: 0.65;
}

.site-info__updated {
  margin: 8px 0 0;
  padding: 0 4px;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  text-align: center;
  color: #a3a39c;
}

/* ── work page ── */
.page-top {
  padding:
    clamp(32px, 6vh, 56px)
    max(24px, env(safe-area-inset-right))
    clamp(24px, 4vh, 40px)
    max(24px, env(safe-area-inset-left));
  background: var(--bg);
}

.site-main--page {
  padding-top: 0;
  padding-right: max(24px, env(safe-area-inset-right));
}

body:has(#siteNav) .page-top {
  padding-right: var(--nav-offset);
  padding-left: var(--nav-offset);
}

body:has(#siteNav) .site-main--page {
  padding-right: var(--nav-offset);
  padding-left: var(--nav-offset);
}

.page-top__back {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.page-top__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.page-top__lead {
  margin: 10px 0 0;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ── bottom dock (home) ── */
.site-dock {
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 0.35em;
  gap: 0.45em;
  margin: 0;
  padding: 0 max(20px, env(safe-area-inset-left)) 0 max(20px, env(safe-area-inset-right));
  max-width: calc(100% - 40px);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  white-space: nowrap;
  text-align: center;
  transform: translateX(-50%);
  animation: site-dock-in 0.7s var(--ease) 0.6s both;
}

.site-dock a {
  color: var(--text);
  text-decoration: none;
}

.site-dock a:hover,
.site-dock a:focus-visible {
  opacity: 0.55;
  outline: none;
}

.site-bar__sep {
  opacity: 0.4;
  user-select: none;
}

@keyframes site-dock-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

body:has(.site-dock) .site-main {
  padding-bottom: calc(clamp(80px, 12vh, 120px) + 28px);
}

body:has(.site-dock) .site-main--page {
  padding-bottom: calc(clamp(72px, 10vh, 104px) + 28px);
}

/* ── fixed bottom link ── */
.site-fixed-link {
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: max(20px, env(safe-area-inset-left));
  z-index: 250;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.site-fixed-link:hover,
.site-fixed-link:focus-visible {
  opacity: 0.55;
  outline: none;
}

/* ── reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── legacy wrappers (flattened) ── */
.section-head__index,
.work-panel__cta .section-head__index {
  display: none;
}

.work-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.supporters-panel {
  display: block;
}

/* ── responsive ── */
@media (max-width: 960px) {
  .course-grid,
  .course-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .app-grid {
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 16px 10px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-offset: max(16px, env(safe-area-inset-right, 0px));
    --content-width: 100%;
    --section-gap: clamp(80px, 12vh, 128px);
    --section-head-gap: 32px;
  }

  .page-wrap {
    width: min(100%, calc(100% - 32px));
  }

  .yt-comment {
    width: min(100%, 420px);
    gap: 12px;
    grid-template-columns: 36px 1fr;
  }

  .yt-comment__avatar {
    width: 36px;
    height: 36px;
  }

  .yt-comment__text {
    font-size: 0.8125rem;
  }

  .hero {
    min-height: 100svh;
    min-height: 100dvh;
    padding:
      calc(56px + env(safe-area-inset-top, 0px))
      0
      calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .hero__content {
    width: min(100%, calc(100% - 32px));
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-inline: auto;
    min-height: calc(100svh - 152px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    min-height: calc(100dvh - 152px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }

  .floating-nav {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    padding:
      max(8px, calc(env(safe-area-inset-top, 0px) + 6px))
      max(8px, env(safe-area-inset-right, 0px))
      0
      max(8px, env(safe-area-inset-left, 0px));
    transform: none;
  }

  .floating-nav .quick-links {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(4px, 1.4vw, 8px);
    width: max-content;
    max-width: min(420px, calc(100% - 20px));
    margin-inline: auto;
  }

  .floating-nav .quick-link {
    flex: 0 0 auto;
    width: clamp(26px, 7vw, 32px);
    height: clamp(26px, 7vw, 32px);
    max-width: none;
    aspect-ratio: auto;
    margin-inline: 0;
    border-radius: 8px;
  }

  .floating-nav .quick-link img {
    border-radius: 8px;
  }

  .floating-nav .quick-link--connect {
    width: auto;
    max-width: none;
    height: clamp(26px, 7vw, 32px);
    min-height: 0;
    aspect-ratio: auto;
    padding: 0 clamp(8px, 2vw, 12px);
    font-size: clamp(0.625rem, 2.4vw, 0.75rem);
    margin-inline: 0;
  }

  .hero__links {
    position: fixed;
    top: auto;
    right: auto;
    bottom: max(10px, calc(env(safe-area-inset-bottom, 0px) + 8px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 220;
    align-items: center;
    max-width: min(280px, calc(100vw - 24px));
    width: auto;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  .hero__links.is-open {
    inset: 0;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    max-width: none;
    height: 100%;
    z-index: 400;
    pointer-events: auto;
  }

  .nav-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    width: auto;
    min-width: 0;
    height: 32px;
    padding: 0 12px 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 68%, transparent);
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.65),
      0 4px 16px rgba(0, 0, 0, 0.08);
    font: inherit;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    cursor: pointer;
    transition:
      background 0.25s var(--ease),
      border-color 0.25s var(--ease),
      box-shadow 0.25s var(--ease);
  }

  .hero__links.is-open .nav-menu-toggle {
    position: absolute;
    left: 50%;
    bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) + 10px));
    transform: translateX(-50%);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
  }

  .nav-menu-toggle:hover,
  .nav-menu-toggle:focus-visible {
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border-color: rgba(255, 255, 255, 0.9);
    outline: none;
  }

  .nav-menu-toggle__icon {
    position: relative;
    flex-shrink: 0;
    width: 12px;
    height: 10px;
  }

  .nav-menu-toggle__icon::before,
  .nav-menu-toggle__icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 12px;
    height: 1.25px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.25s var(--ease), top 0.25s var(--ease), opacity 0.25s var(--ease), box-shadow 0.25s var(--ease);
  }

  .nav-menu-toggle__icon::before {
    top: 1px;
    box-shadow: 0 4px 0 currentColor;
  }

  .nav-menu-toggle__icon::after {
    top: 9px;
  }

  .hero__links.is-open .nav-menu-toggle__icon::before {
    top: 4px;
    box-shadow: none;
    transform: rotate(45deg);
  }

  .hero__links.is-open .nav-menu-toggle__icon::after {
    top: 4px;
    transform: rotate(-45deg);
  }

  .nav-menu-panel {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding:
      max(72px, calc(env(safe-area-inset-top, 0px) + 24px))
      28px
      max(72px, calc(env(safe-area-inset-bottom, 0px) + 56px));
    overflow: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 0;
    background: var(--bg);
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
    transition:
      opacity 0.3s var(--ease),
      transform 0.3s var(--ease),
      visibility 0s linear 0.3s;
  }

  .hero__links.is-open .nav-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition:
      opacity 0.3s var(--ease),
      transform 0.3s var(--ease),
      visibility 0s;
  }

  .hero__links .nav-link {
    display: block;
    width: min(100%, 420px);
    padding: 0.55rem 0.75rem;
    border-radius: 14px;
    font-size: clamp(1.65rem, 8.5vw, 2.65rem);
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.15;
    text-align: center;
    color: color-mix(in srgb, var(--muted) 35%, var(--text));
    transform: none !important;
    animation: none;
    opacity: 1;
  }

  .hero__links .nav-link:hover,
  .hero__links .nav-link:focus-visible {
    background: transparent;
    color: var(--text);
  }

  .hero__links .nav-link.is-active {
    background: transparent;
    color: var(--text);
  }

  .hero__links .nav-divider {
    display: block;
    width: min(64px, 18vw);
    height: 1px;
    margin: 14px auto;
    opacity: 1;
    animation: none;
    background: var(--line);
  }

  .hero__links .nav-views {
    margin: 1.15rem 0 0;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-align: center;
  }

  html.nav-menu-open,
  html.nav-menu-open body {
    overflow: hidden;
  }

  html.nav-menu-open::before {
    content: none;
  }

  .site-main {
    padding:
      clamp(36px, 7vh, 64px)
      max(16px, env(safe-area-inset-right, 0px))
      calc(76px + env(safe-area-inset-bottom, 0px))
      max(16px, env(safe-area-inset-left, 0px));
  }

  body:has(#siteNav) .page-top,
  body:has(#siteNav) .site-main--page {
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px));
  }

  body:has(#siteNav) .site-main--page {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .site-section {
    scroll-margin-top: 72px;
  }

  .app-grid {
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 14px 8px;
  }

  .app-icon {
    width: min(56px, 100%);
    height: auto;
    aspect-ratio: 1;
  }

  .app-name {
    font-size: 0.625rem;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  a.app-tile:hover,
  a.app-tile:focus-visible,
  .site-section.is-scroll-focused a.app-tile:not(.app-tile--soon):hover,
  .site-section.is-scroll-focused a.app-tile:not(.app-tile--soon):focus-visible {
    transform: none;
  }

  .course-grid,
  .course-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .course-card {
    gap: 8px;
  }

  .course-card__media {
    border-radius: 12px;
  }

  .course-card__title,
  .course-folder__name {
    font-size: 0.6875rem;
    line-height: 1.25;
  }

  .supporters__foot {
    width: 100%;
  }

  .supporters__actions {
    width: 100%;
    border-radius: 18px;
  }

  .supporters__btn {
    flex: 1 1 auto;
    min-width: 0;
    padding-inline: 12px;
    font-size: 0.75rem;
  }

  .supporters__thanks {
    width: 100%;
  }

  .site-info {
    max-width: 100%;
    gap: 16px;
    padding-top: 12px;
  }

  .site-info__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-info__tab {
    flex: auto;
    min-height: 38px;
    font-size: 0.6875rem;
  }

  .site-info__card {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .site-info__links-panel {
    padding: 14px 12px;
    gap: 18px;
  }

  .site-info__updated {
    padding-inline: 0;
  }

  .site-info__supporters-table {
    min-width: 0;
  }

  .site-info__supporters-note-col {
    display: none;
  }

  .site-info__panel-head {
    flex-wrap: wrap;
  }

  .gh-embed__foot {
    flex-direction: column;
  }

  .site-dock {
    font-size: clamp(0.625rem, 2.6vw, 0.75rem);
    max-width: calc(100% - 88px);
  }

  .site-fixed-link {
    font-size: clamp(0.625rem, 2.8vw, 0.75rem);
    left: max(12px, env(safe-area-inset-left));
  }

  .journey-polaroid {
    max-width: min(100%, 280px);
  }
}

@media (max-width: 420px) {
  .floating-nav .quick-link--connect {
    font-size: 0.5625rem;
    padding-inline: 5px;
  }

  .course-grid,
  .course-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .course-card__title,
  .course-folder__name {
    font-size: 0.625rem;
  }

  .app-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .supporters__actions {
    gap: 2px;
    padding: 4px;
  }

  .supporters__btn {
    padding-inline: 8px;
    font-size: 0.6875rem;
  }

  .site-footer__grid {
    gap: 24px 14px;
  }

  .site-footer__links a {
    font-size: 0.75rem;
  }
}

@media (max-width: 360px) {
  .floating-nav .quick-links {
    gap: 2px;
  }

  .floating-nav .quick-link--connect {
    letter-spacing: -0.02em;
  }

  .app-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash.is-hidden,
  .splash.is-hidden .splash__grid {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .splash,
  .splash__grid,
  .splash__dot,
  .yt-comment,
  .nav-stagger .nav-link,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-indicator__thumb {
    transition: none !important;
  }

  .journey-polaroid,
  .journey-item--featured .journey-polaroid:hover {
    transform: none !important;
    transition: none !important;
  }

  .site-section {
    transform: none !important;
  }

  .site-section.is-scroll-focused .gh-embed,
  .site-section.is-scroll-focused .app-tile,
  .site-section.is-scroll-focused a.course-card,
  a.app-tile:hover,
  a.app-tile:focus-visible {
    transform: none !important;
    box-shadow: none !important;
  }

  a.app-tile:hover .app-icon,
  a.app-tile:focus-visible .app-icon,
  a.app-tile:hover .app-icon img,
  a.app-tile:focus-visible .app-icon img,
  a.app-tile:hover .app-name,
  a.app-tile:focus-visible .app-name {
    transform: none !important;
    box-shadow: none !important;
  }

  .course-card.is-unfolding,
  .course-card.is-folding,
  .course-folder,
  .course-grid__overflow,
  .course-rail__overflow,
  .course-folder.is-opening .course-folder__media,
  .course-folder.is-opening .course-folder__preview,
  .course-folder.is-opening .course-folder__count,
  .course-folder.is-opening .course-folder__name {
    animation: none !important;
    transition: none !important;
  }
}
