:root {
  --bg: #08070d;
  --bg-elevated: rgba(26, 22, 36, 0.9);
  --bg-soft: rgba(18, 16, 26, 0.78);
  --line: rgba(43, 36, 56, 0.96);
  --line-strong: rgba(200, 184, 255, 0.3);
  --text: #f3eef8;
  --text-soft: #d8cede;
  --text-muted: #b8aec8;
  --accent: #9b7cff;
  --accent-strong: #c8b8ff;
  --accent-secondary: #d6b56d;
  --danger: #c46a7a;
  --success: #7fb39a;
  --warning: #d6b56d;
  --shadow: 0 32px 96px rgba(0, 0, 0, 0.56);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shell: min(1120px, calc(100vw - 2rem));
  font-family: "Yuji Syuku";
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(155, 124, 255, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(214, 181, 109, 0.1), transparent 24%),
    linear-gradient(180deg, #120d19 0%, #08070d 44%, #050409 100%);
  color: var(--text);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(200, 184, 255, 0.035) 50%,
      transparent 100%
    );
  opacity: 0.28;
  mask-image: linear-gradient(180deg, transparent, black 18%, black 82%, transparent);
}

body::after {
  background-image:
    linear-gradient(rgba(200, 184, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 184, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.08;
}

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

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

main {
  flex: 1 0 auto;
  position: relative;
  z-index: 1;
}

::selection {
  background: rgba(155, 124, 255, 0.34);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

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

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 60;
  padding: 0.72rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(8, 7, 13, 0.96);
  color: var(--text);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

[data-anchor-target] {
  scroll-margin-top: clamp(6rem, 10vw, 7.25rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(18, 16, 26, 0.82);
  border-bottom: 1px solid rgba(43, 36, 56, 0.96);
}

.site-header__bar {
  position: relative;
}

.site-header__inner,
.site-header__controls,
.site-nav__list,
.hero__actions,
.site-footer__locale-trigger,
.meta-row,
.section-heading,
.form-grid {
  display: flex;
}

.site-header__shell {
  width: min(1120px, calc(100vw - 7rem));
}

.site-header__inner {
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.95rem 0;
}

.site-header__controls {
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.brand-mark__name,
.hero h1,
.page-hero h1,
.project-card h3,
.section-heading h2,
.prose h2,
.access-template h1 {
  font-family: "Yuji Syuku";
  letter-spacing: -0.02em;
}

.brand-mark__name {
  font-size: 1.18rem;
  letter-spacing: 0.02em;
}

.brand-mark__tag {
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-nav--desktop {
  display: block;
  margin-left: auto;
}

.site-nav__list {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link,
.site-header__action,
.site-drawer__close,
.site-drawer__link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-nav__link {
  padding: 0.62rem 0.92rem;
  border: 1px solid rgba(43, 36, 56, 0.6);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.95rem;
  background: rgba(243, 238, 248, 0.02);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link--active {
  color: var(--accent-strong);
  border-color: var(--line-strong);
  background: rgba(155, 124, 255, 0.12);
}

.site-header__action {
  min-height: 2.8rem;
  padding: 0.72rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(243, 238, 248, 0.03);
  font: inherit;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.site-header__action:hover,
.site-header__action:focus-visible,
.site-header__action[aria-expanded="true"] {
  color: var(--accent-strong);
  border-color: var(--line-strong);
  background: rgba(155, 124, 255, 0.12);
}

.site-header__edge-control {
  position: absolute;
  top: 50%;
  right: 1rem;
  display: flex;
  align-items: center;
  transform: translateY(-50%);
}

.site-header__action--menu {
  min-width: 0;
  width: 3rem;
  padding: 0;
  border-radius: 1rem;
}

.site-header__menu-icon {
  display: inline-grid;
  gap: 0.28rem;
}

.site-header__menu-icon span {
  display: block;
  width: 1.2rem;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
}

.site-header__locale-chip {
  display: none;
  min-height: 2.8rem;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(214, 181, 109, 0.22);
  border-radius: 999px;
  background: rgba(214, 181, 109, 0.08);
  color: var(--accent-secondary);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body[data-drawer-open="true"] {
  overflow: hidden;
}

.site-drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.site-drawer-layer[data-open="true"] {
  pointer-events: auto;
}

.site-drawer__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(5, 4, 9, 0.66);
  opacity: 0;
  transition: opacity 220ms ease;
}

.site-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(36rem, calc(100vw - 0.4rem));
  padding: 1.35rem 1.2rem 1.2rem;
  border: 1px solid rgba(200, 184, 255, 0.2);
  border-radius: 2rem 0 0 2rem;
  background:
    radial-gradient(circle at top left, rgba(214, 181, 109, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(243, 238, 248, 0.06), transparent 100%),
    rgba(14, 12, 22, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  overflow: auto;
  transform: translateX(1.25rem) scale(0.985);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.site-drawer::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at top right, rgba(155, 124, 255, 0.14), transparent 32%),
    linear-gradient(140deg, rgba(200, 184, 255, 0.06), transparent 60%);
  pointer-events: none;
}

.site-drawer-layer[data-open="true"] .site-drawer__backdrop {
  opacity: 1;
}

.site-drawer-layer[data-open="true"] .site-drawer {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.site-drawer__header,
.site-drawer__list {
  position: relative;
  z-index: 1;
}

.site-drawer__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.site-drawer__eyebrow,
.site-drawer__section-title,
.site-footer__caption {
  margin: 0;
  color: var(--accent-secondary);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-drawer__intro {
  margin: 0.55rem 0 0;
  max-width: 24rem;
  color: var(--text-muted);
}

.site-drawer__close {
  min-height: 2.8rem;
  padding: 0.72rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(243, 238, 248, 0.03);
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background-color 180ms ease;
}

.site-drawer__close:hover,
.site-drawer__close:focus-visible {
  color: var(--accent-strong);
  border-color: var(--line-strong);
  background: rgba(155, 124, 255, 0.12);
}

.site-drawer__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.site-drawer__section {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid rgba(43, 36, 56, 0.92);
  border-radius: 1.35rem;
  background: rgba(8, 7, 13, 0.34);
}

.site-drawer__list {
  display: grid;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-drawer__link {
  width: 100%;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.82rem 0.92rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  color: var(--text-soft);
  background: transparent;
  font: inherit;
  text-align: left;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.site-drawer__link:hover,
.site-drawer__link:focus-visible,
.site-drawer__link--active {
  color: var(--accent-strong);
  border-color: var(--line-strong);
  background: rgba(155, 124, 255, 0.12);
  transform: translateX(1px);
}

.site-drawer__link--button {
  cursor: pointer;
}

.site-drawer__link-note {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-drawer__logout {
  display: block;
}

.site-drawer__logout .site-drawer__link {
  width: 100%;
  border: 0;
}

.site-drawer__logout .site-drawer__link:hover,
.site-drawer__logout .site-drawer__link:focus-visible {
  border-color: var(--line-strong);
}

.section {
  padding: 5rem 0;
}

.section--tight {
  padding-top: 2rem;
}

.hero,
.split-grid,
.card-grid,
.info-grid {
  display: grid;
}

.hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  align-items: stretch;
  padding: 3.75rem 0 2rem;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 1.02;
  margin: 0 0 1.3rem;
}

.hero p,
.page-hero p,
.project-card p,
.info-card p,
.prose p,
.prose li,
.site-footer__meta,
.site-footer__links,
.button,
.meta-row,
.form-field input,
.form-field textarea,
.form-field select {
  font-size: 1.02rem;
}

.hero__lede {
  margin-bottom: 1rem;
  color: var(--text-soft);
}

.hero__secondary {
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.hero__actions {
  flex-wrap: wrap;
  gap: 0.9rem;
}

.contact-actions {
  align-items: flex-start;
}

.contact-actions .button {
  flex: 0 0 auto;
  max-width: 100%;
  white-space: nowrap;
}

.glass-panel {
  position: relative;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(243, 238, 248, 0.05), transparent 100%),
    var(--bg-elevated);
  box-shadow: var(--shadow);
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    140deg,
    rgba(200, 184, 255, 0.09),
    rgba(214, 181, 109, 0.03) 38%,
    transparent 68%
  );
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 0.9rem;
  color: var(--accent-secondary);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.button {
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  background: linear-gradient(135deg, #9b7cff 0%, #c8b8ff 64%, #d6b56d 100%);
  color: #08070d;
  border-color: transparent;
}

.button--ghost {
  background: rgba(155, 124, 255, 0.12);
  color: var(--accent-strong);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: rgba(155, 124, 255, 0.18);
  border-color: var(--line-strong);
}

.button--disabled {
  cursor: not-allowed;
  opacity: 0.75;
  color: var(--text-muted);
  background: rgba(243, 238, 248, 0.03);
}

.link-mark {
  display: inline-flex;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 181, 109, 0.24);
  background: rgba(214, 181, 109, 0.06);
  color: var(--accent-secondary);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__aside {
  display: grid;
  gap: 1rem;
}

.meta-row,
.section-heading,
.site-footer__inner,
.form-grid {
  gap: 1rem;
}

.meta-row {
  justify-content: space-between;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.meta-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.meta-row strong {
  color: var(--accent-secondary);
  font-weight: 700;
  text-align: right;
}

.section-heading {
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-heading h2,
.prose h2,
.access-template h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.section-heading p {
  margin: 0;
  max-width: 38rem;
  color: var(--text-muted);
}

.section-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 1.5rem;
}

.card-grid,
.info-grid {
  gap: 1rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.card-grid > *,
.info-grid > * {
  min-width: 0;
}

.card-grid > * {
  grid-column: span 6;
}

.info-grid > * {
  grid-column: span 6;
}

.project-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

.project-list > * {
  min-width: 0;
}

.project-card,
.info-card {
  display: grid;
  gap: 1rem;
  min-height: 100%;
}

.project-card {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.project-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 0.8rem;
}

.project-card__head h3 {
  flex: 1 1 14rem;
  margin: 0;
  font-size: 1.55rem;
}

.info-card__value {
  margin: 0;
}

.info-card__value a {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--accent-strong);
}

.info-card__value a:hover,
.info-card__value a:focus-visible {
  color: var(--text);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill--active {
  background: rgba(127, 179, 154, 0.16);
  color: var(--success);
}

.status-pill--experimental {
  background: rgba(155, 124, 255, 0.16);
  color: var(--accent-strong);
}

.status-pill--planned {
  background: rgba(214, 181, 109, 0.16);
  color: var(--warning);
}

.status-pill--listed {
  background: rgba(200, 184, 255, 0.12);
  color: var(--accent-strong);
}

.page-hero {
  padding: 3.5rem 0 1.2rem;
}

.page-hero__note {
  max-width: 48rem;
  color: var(--text-muted);
}

.project-sort {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.project-sort__label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-sort__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.project-sort__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(243, 238, 248, 0.03);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.project-sort__link:hover,
.project-sort__link:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(155, 124, 255, 0.12);
  transform: translateY(-1px);
}

.project-sort__link--active {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(155, 124, 255, 0.16);
}

.devlog-tags,
.info-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.devlog-tags li,
.info-notes li {
  min-width: 0;
  border: 1px solid rgba(200, 184, 255, 0.2);
  background: rgba(200, 184, 255, 0.08);
  color: var(--accent-strong);
}

.devlog-tags li {
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.info-notes-panel {
  align-self: start;
}

.info-notes {
  display: grid;
  gap: 0.7rem;
}

.info-notes li {
  padding: 0.78rem 0.9rem;
  border-radius: var(--radius-md);
}

.prose {
  display: grid;
  gap: 1.4rem;
  max-width: 46rem;
}

.prose p,
.prose ul {
  margin: 0;
}

.prose ul:not(.devlog-tags):not(.info-notes) {
  padding-left: 1.1rem;
  color: var(--text-soft);
}

.prose li + li {
  margin-top: 0.5rem;
}

.devlog-tags li + li,
.info-notes li + li {
  margin-top: 0;
}

.split-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: 1rem;
}

.identity-line {
  color: var(--text-soft);
  padding: 1.25rem 1.4rem;
}

.identity-line strong {
  color: var(--accent-secondary);
}

.identity-hero {
  align-items: start;
}

.identity-content-grid,
.identity-section-stack,
.identity-metric-list,
.identity-card-grid,
.identity-flow-list,
.identity-rail,
.identity-rail-list,
.identity-surface-grid {
  display: grid;
}

.identity-section-heading {
  margin-bottom: 1.25rem;
}

.identity-status-card,
.identity-current-surface,
.identity-surface-panel {
  overflow: hidden;
}

.identity-metric-list {
  gap: 0.95rem;
}

.identity-metric {
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}

.identity-metric:first-child {
  padding-top: 0;
  border-top: 0;
}

.identity-metric__label,
.identity-metric__note,
.identity-current-surface__note,
.identity-surface-card__note,
.identity-detail-card__note,
.identity-flow-step p {
  color: var(--text-muted);
}

.identity-metric__label,
.identity-surface-card__eyebrow,
.identity-flow-step__label,
.identity-current-surface__badge {
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.identity-metric__label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
}

.identity-metric__value,
.identity-current-surface__title,
.identity-surface-card__title {
  display: block;
  color: var(--accent-secondary);
  font-weight: 700;
}

.identity-metric__value {
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.identity-metric__note,
.identity-current-surface__note,
.identity-surface-card__note,
.identity-detail-card__note {
  margin: 0;
}

.identity-current-surface__title {
  margin: 0 0 0.55rem;
  font-size: 1.28rem;
}

.identity-current-surface__badge {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: var(--accent-strong);
  font-size: 0.76rem;
}

.identity-current-surface__note {
  color: var(--text-soft);
}

.identity-auth-panel {
  gap: 1rem;
}

.identity-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.identity-inline-form {
  margin: 0;
}

.identity-auth-note {
  color: var(--text-muted);
}

.identity-surface-grid,
.identity-card-grid {
  gap: 1rem;
}

.identity-surface-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.identity-surface-card,
.identity-detail-card,
.identity-flow-step {
  position: relative;
  border: 1px solid rgba(43, 36, 56, 0.96);
  border-radius: var(--radius-lg);
  background: rgba(8, 7, 13, 0.4);
}

.identity-surface-card,
.identity-detail-card {
  padding: 1rem 1.05rem;
}

.identity-surface-card {
  grid-column: span 4;
  display: grid;
  gap: 0.55rem;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.identity-surface-card:hover,
.identity-surface-card:focus-visible,
.identity-surface-card--active {
  border-color: var(--line-strong);
  background: rgba(155, 124, 255, 0.12);
  transform: translateY(-1px);
}

.identity-surface-card__eyebrow {
  color: var(--accent-secondary);
  font-size: 0.76rem;
}

.identity-surface-card__title {
  color: var(--text);
  font-size: 1.08rem;
}

.identity-surface-card__badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.24rem 0.55rem;
  border: 1px solid rgba(200, 184, 255, 0.24);
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(200, 184, 255, 0.08);
  font-size: 0.8rem;
}

.identity-content-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: 1rem;
  align-items: start;
}

.identity-section-stack,
.identity-rail {
  gap: 1rem;
}

.identity-section-copy > p:last-child {
  margin-bottom: 0;
}

.identity-card-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.identity-card-grid--catalog .identity-detail-card {
  grid-column: span 4;
}

.identity-detail-card {
  grid-column: span 4;
}

.identity-detail-card h3,
.identity-flow-step h3 {
  margin: 0 0 0.6rem;
  font-size: 1.16rem;
}

.identity-detail-card p {
  margin: 0 0 0.8rem;
}

.identity-detail-card__note {
  color: var(--text-soft);
}

.identity-flow-list,
.identity-rail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.identity-flow-list {
  gap: 0.9rem;
}

.identity-flow-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 1.05rem;
}

.identity-flow-step__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 181, 109, 0.25);
  color: var(--accent-secondary);
  background: rgba(214, 181, 109, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
}

.identity-flow-step p {
  margin: 0;
  color: var(--text-soft);
}

.identity-rail-list {
  gap: 0.65rem;
  padding-left: 1.1rem;
  list-style: disc;
}

.identity-rail-list li {
  color: var(--text-soft);
}

.site-footer {
  margin-top: auto;
  position: relative;
  z-index: 1;
  padding: 2.4rem 0 3.5rem;
}

.site-footer__inner {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.site-footer__top,
.site-footer__identity {
  display: grid;
}

.site-footer__top {
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 0.8fr));
  gap: 1.5rem;
  align-items: start;
}

.site-footer__identity,
.site-footer__column {
  gap: 0.55rem;
}

.site-footer__column {
  display: grid;
}

.site-footer__caption {
  margin-bottom: 0.2rem;
}

.site-footer__title {
  margin: 0;
  font-weight: 700;
}

.site-footer__meta {
  color: var(--text-muted);
}

.site-footer__meta {
  margin: 0;
}

.site-footer__links {
  display: grid;
  gap: 0.55rem;
  color: var(--text-soft);
}

.site-footer__locale-picker {
  position: relative;
  display: inline-block;
}

.site-footer__locale-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border: 0;
  list-style: none;
  cursor: pointer;
  color: var(--text-soft);
  background: transparent;
  white-space: nowrap;
}

.site-footer__locale-picker summary::-webkit-details-marker {
  display: none;
}

.site-footer__locale-picker[open] .site-footer__locale-summary,
.site-footer__locale-summary:hover,
.site-footer__locale-summary:focus-visible {
  color: var(--accent-strong);
}

.site-footer__locale-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.2;
}

.site-footer__locale-current {
  color: inherit;
}

.site-footer__locale-icon {
  width: 0.95em;
  height: 0.95em;
  flex: 0 0 auto;
}

.site-footer__locale-caret {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1;
}

.site-footer__locale-picker[open] .site-footer__locale-caret {
  color: var(--accent-strong);
}

.site-footer__locale-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.55rem);
  display: grid;
  gap: 0.35rem;
  min-width: 11rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(243, 238, 248, 0.05), transparent 100%),
    var(--bg-elevated);
  box-shadow: var(--shadow);
  z-index: 3;
}

.site-footer__locale-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text-soft);
}

.site-footer__locale-link:hover,
.site-footer__locale-link:focus-visible,
.site-footer__locale-link--active {
  color: var(--accent-strong);
  border-color: var(--line-strong);
  background: rgba(155, 124, 255, 0.12);
}

.site-footer__links a,
.site-footer__bottom a {
  color: var(--text-soft);
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible,
.site-footer__links a[aria-current="page"],
.site-footer__bottom a:hover,
.site-footer__bottom a:focus-visible,
.site-footer__bottom a[aria-current="page"] {
  color: var(--accent-strong);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(43, 36, 56, 0.96);
}

.private-template {
  position: relative;
  z-index: 1;
}

.private-sidebar,
.private-links,
.private-table {
  display: grid;
  gap: 1rem;
}

.private-scopes,
.private-empty {
  color: var(--text-soft);
}

.private-link span {
  color: var(--text-muted);
}

.private-message pre {
  overflow: auto;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(18, 16, 26, 0.86);
  color: var(--text-soft);
  white-space: pre-wrap;
  word-break: break-word;
}

.private-message details summary {
  cursor: pointer;
  color: var(--accent-strong);
}

.support-form,
.access-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  gap: 1rem;
}

.form-grid > * {
  flex: 1 1 0;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field span,
.form-field legend,
.form-checkbox span {
  font-weight: 700;
}

.form-field legend {
  padding: 0;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(18, 16, 26, 0.72);
  color: var(--text);
  font: inherit;
}

.form-field textarea {
  resize: vertical;
}

.form-field small,
.support-form__status {
  color: var(--text-muted);
}

.form-field--choice {
  position: relative;
}

.choice-menu {
  position: relative;
}

.choice-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(18, 16, 26, 0.72);
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.choice-menu summary::-webkit-details-marker {
  display: none;
}

.choice-menu[open] summary,
.choice-menu summary:hover,
.choice-menu summary:focus-visible {
  border-color: var(--line-strong);
  background: rgba(155, 124, 255, 0.12);
}

.choice-menu__current {
  min-width: 0;
  color: var(--text-soft);
}

.choice-menu__caret {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 180ms ease, color 180ms ease;
}

.choice-menu[open] .choice-menu__caret {
  color: var(--accent-strong);
  transform: rotate(180deg);
}

.choice-menu__panel {
  position: absolute;
  z-index: 4;
  top: calc(100% + 0.55rem);
  left: 0;
  right: 0;
  display: grid;
  gap: 0.15rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(243, 238, 248, 0.05), transparent 100%),
    rgba(26, 22, 36, 0.98);
  box-shadow: var(--shadow);
}

.choice-menu__filter {
  width: 100%;
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid rgba(43, 36, 56, 0.96);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.choice-menu__filter::placeholder {
  color: var(--text-muted);
}

.choice-menu__filter:focus-visible {
  outline: none;
  border-bottom-color: rgba(155, 124, 255, 0.36);
}

.choice-menu__option {
  display: block;
  width: 100%;
  padding: 0.55rem 0;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
}

.choice-menu__option:hover,
.choice-menu__option:focus-visible,
.choice-menu__option[aria-selected="true"] {
  color: var(--accent-strong);
}

.choice-menu__option:hover,
.choice-menu__option:focus-visible {
  transform: translateX(2px);
}

.choice-menu__option:focus-visible {
  outline: none;
}

.choice-menu__option[hidden],
.choice-menu__empty[hidden] {
  display: none;
}

.choice-menu__empty {
  margin: 0;
  padding: 0.45rem 0 0.2rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.form-checkbox {
  display: flex;
  align-items: start;
  gap: 0.75rem;
}

.form-checkbox input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.25rem;
}

.support-form__status {
  min-height: 1.4rem;
}

.support-form__status[data-state="error"] {
  color: var(--danger);
}

.support-form__status[data-state="success"] {
  color: var(--success);
}

.notice-panel {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(214, 181, 109, 0.22);
  border-radius: var(--radius-md);
  background: rgba(214, 181, 109, 0.08);
}

.notice-panel p {
  margin: 0;
  color: var(--text-soft);
}

.js .fade-up {
  --reveal-progress: 0;
  --reveal-blur-hidden: 18;
  --reveal-scale-hidden: 0.985;
  opacity: calc(0.001 + (0.999 * var(--reveal-progress)));
  filter:
    blur(calc((1 - var(--reveal-progress)) * var(--reveal-blur-hidden) * 1px))
    saturate(calc(0.72 + (0.28 * var(--reveal-progress))))
    brightness(calc(0.94 + (0.06 * var(--reveal-progress))));
  transform: scale(
    calc(
      var(--reveal-scale-hidden) +
      ((1 - var(--reveal-scale-hidden)) * var(--reveal-progress))
    )
  );
  transform-origin: center 70%;
  will-change: opacity, filter, transform;
  transition:
    opacity 90ms linear,
    filter 90ms linear,
    transform 90ms linear;
}

.js .fade-up--copy {
  --reveal-blur-hidden: 14;
  --reveal-scale-hidden: 0.992;
  transform-origin: left center;
}

@media (max-width: 980px) {
  .site-header__shell {
    width: calc(100vw - 6rem);
  }

  .site-nav--desktop {
    display: none;
  }

  .site-header__action--access {
    display: none;
  }

  .site-header__locale-chip {
    display: inline-flex;
  }

  .site-drawer__grid {
    grid-template-columns: 1fr;
  }

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

  .site-footer__identity {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .hero,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .identity-surface-card,
  .identity-detail-card,
  .identity-card-grid--catalog .identity-detail-card {
    grid-column: span 12;
  }

  .identity-content-grid {
    grid-template-columns: 1fr;
  }

  .card-grid > *,
  .info-grid > * {
    grid-column: span 12;
  }
}

@media (max-width: 720px) {
  .brand-mark {
    flex: 1 1 auto;
  }

  .site-header__shell {
    width: calc(100vw - 5.25rem);
  }

  .site-header__inner {
    gap: 0.75rem;
  }

  .site-header__action--menu {
    width: 2.85rem;
  }

  .site-header__edge-control {
    right: 0.75rem;
  }

  .section-heading,
  .form-grid {
    align-items: start;
    flex-direction: column;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
  }

  .site-footer__identity {
    grid-column: auto;
  }

  .hero {
    padding-top: 2.6rem;
  }

  .hero h1,
  .page-hero h1,
  .access-template h1 {
    font-size: clamp(2.5rem, 11vw, 4rem);
  }

  .button {
    width: 100%;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .identity-flow-step {
    grid-template-columns: 1fr;
  }

  .identity-inline-form,
  .identity-inline-form .button {
    width: 100%;
  }

  .project-sort__links {
    flex-direction: column;
  }

  .site-footer__locale-panel {
    left: 0;
    right: auto;
  }

  .site-drawer {
    width: calc(100vw - 0.15rem);
    padding: 1rem;
    border-radius: 1.5rem 0 0 1.5rem;
  }

  .site-drawer__header {
    flex-direction: column;
  }
}

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

  .js .fade-up {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    will-change: auto !important;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
