:root {
  color-scheme: light;
  --canvas: #f4f4f2;
  --surface: #ffffff;
  --surface-soft: #eaeae7;
  --ink: #07090f;
  --night: #07090f;
  --ink-soft: #5f6570;
  --ink-faint: #8b9098;
  --line: #d8d9d6;
  --line-dark: rgba(255, 255, 255, 0.15);
  --blue: #1729b7;
  --cyan: #18b8e8;
  --orange: #ff5a1f;
  --red: #f52737;
  --signal: linear-gradient(90deg, #1729b7 0%, #1ab8e8 32%, #f8f0d4 50%, #ff671d 72%, #f52737 100%);
  --signal-simple: linear-gradient(100deg, #1729b7 0%, #156fe0 38%, #ff5a1f 72%, #f52737 100%);
  --header-height: 88px;
  --page-pad: clamp(24px, 4.3vw, 72px);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow-window: 0 30px 70px rgba(13, 17, 27, 0.15), 0 3px 9px rgba(13, 17, 27, 0.08);

  /* Atomic UI layer — semantic aliases shared by public and member surfaces. */
  --ui-background: var(--canvas);
  --ui-foreground: var(--ink);
  --ui-card: var(--surface);
  --ui-card-foreground: var(--ink);
  --ui-popover: #ffffff;
  --ui-popover-foreground: var(--ink);
  --ui-muted: var(--surface-soft);
  --ui-muted-foreground: var(--ink-soft);
  --ui-subtle-foreground: var(--ink-faint);
  --ui-primary: var(--ink);
  --ui-primary-foreground: #ffffff;
  --ui-accent: #e8e8e5;
  --ui-accent-foreground: var(--ink);
  --ui-input: rgba(7, 9, 15, 0.16);
  --ui-border: rgba(7, 9, 15, 0.12);
  --ui-border-strong: rgba(7, 9, 15, 0.24);
  --ui-ring: rgba(23, 41, 183, 0.22);
  --ui-success: #126843;
  --ui-warning: #7b5015;
  --ui-danger: #a22931;
  --ui-overlay: rgba(5, 7, 12, 0.68);
  --ui-space-1: 4px;
  --ui-space-2: 8px;
  --ui-space-3: 12px;
  --ui-space-4: 16px;
  --ui-space-5: 20px;
  --ui-space-6: 24px;
  --ui-space-8: 32px;
  --ui-space-10: 40px;
  --ui-space-12: 48px;
  --ui-space-16: 64px;
  --ui-control-xs: 32px;
  --ui-control-sm: 36px;
  --ui-control-md: 40px;
  --ui-control-lg: 44px;
  --ui-control-xl: 48px;
  --ui-control-2xl: 52px;
  --ui-control-3xl: 56px;
  --ui-radius-compact: 4px;
  --ui-radius-xs: 6px;
  --ui-radius-sm: 8px;
  --ui-radius-control: 10px;
  --ui-radius-action: 12px;
  --ui-radius-panel: 14px;
  --ui-radius-media: 11px;
  --ui-radius-round: 999px;
  --ui-surface-muted: var(--ui-muted);
  --ui-font-xs: 11px;
  --ui-font-sm: 13px;
  --ui-font-md: 14px;
  --ui-font-lg: 16px;
  --ui-weight-medium: 600;
  --ui-weight-semibold: 650;
  --ui-weight-bold: 700;
  --ui-shadow-xs: 0 1px 2px rgba(7, 9, 15, 0.05);
  --ui-shadow-sm: 0 1px 2px rgba(7, 9, 15, 0.04), 0 8px 24px rgba(7, 9, 15, 0.035);
  --ui-shadow-md: 0 18px 48px rgba(7, 9, 15, 0.08);
  --ui-shadow-popover: 0 18px 50px rgba(7, 9, 15, 0.16), 0 2px 8px rgba(7, 9, 15, 0.08);
  --ui-shadow-dialog: 0 50px 130px rgba(0, 0, 0, 0.3);
  --ui-focus-ring: 0 0 0 3px var(--ui-ring);
  --ui-duration-fast: 140ms;
  --ui-duration-base: 180ms;
  --ui-duration-slow: 240ms;
  --ui-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --directory-max-width: 1360px;
  --media-feature-max-height: 620px;
  --media-hero-max-height: 660px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) {
  overflow: hidden;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

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

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

figure,
h1,
h2,
h3,
p {
  margin: 0;
}

em {
  font-style: normal;
}

::selection {
  color: #fff;
  background: var(--blue);
}

:focus-visible {
  outline: 3px solid var(--cyan);
  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: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.section-pad {
  padding-right: var(--page-pad);
  padding-left: var(--page-pad);
}

.page[hidden] {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.page {
  overflow: clip;
}

.auth-only {
  display: none !important;
}

.admin-only {
  display: none !important;
}

body[data-authenticated="true"] .guest-only {
  display: none !important;
}

body[data-authenticated="true"] .auth-only {
  display: inline-flex !important;
}

body[data-admin="true"] .admin-only {
  display: inline-flex !important;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto auto;
  align-items: center;
  min-height: var(--header-height);
  padding: 10px var(--page-pad);
  border-bottom: 1px solid rgba(7, 9, 15, 0.1);
  background: rgba(244, 244, 242, 0.93);
  backdrop-filter: blur(20px) saturate(150%);
  isolation: isolate;
  column-gap: clamp(30px, 3vw, 54px);
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--signal-simple);
  opacity: 0;
  transition: opacity 220ms ease;
}

.site-header.is-scrolled::after {
  opacity: 0.8;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 10px;
}

.site-header > .brand {
  align-self: stretch;
  min-height: var(--header-height);
  margin-top: -10px;
  margin-bottom: -10px;
}

.site-header > .brand .brand-mark {
  align-self: stretch;
  width: 49px;
  height: var(--header-height);
  overflow: hidden;
  place-items: end center;
}

.site-header > .brand .brand-mark img {
  width: 49px;
  height: auto;
  max-width: none;
  transform: translateY(1px);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 54px;
  place-items: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  display: grid;
  font-size: 17px;
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.04em;
}

.site-nav {
  display: flex;
  justify-self: center;
  align-items: center;
  gap: 34px;
}

.site-nav > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  transition: color 180ms ease;
}

.site-nav > a:hover {
  color: var(--ink);
}

.site-nav > a.is-active {
  color: var(--ink);
}

.site-nav > a.is-active::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--ink);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}

.header-actions > * {
  flex: 0 0 auto;
}

.header-actions > .language-switcher {
  padding-right: 18px;
  margin-right: 4px;
  border-right: 1px solid rgba(7, 9, 15, 0.12);
}

.header-actions .button,
.header-actions .text-button {
  white-space: nowrap;
}

.header-actions .button {
  gap: 14px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.language-switcher button {
  min-width: 0;
  min-height: var(--ui-control-xs);
  padding: 0 1px;
  color: var(--ui-subtle-foreground);
  background: transparent;
  font-size: var(--ui-font-xs);
  font-weight: var(--ui-weight-bold);
  cursor: pointer;
  transition: color var(--ui-duration-fast) ease;
}

.language-switcher button + button::before {
  margin-right: 8px;
  color: #b1b4b8;
  content: "/";
}

.language-switcher button[aria-pressed="true"] {
  color: var(--ink);
}

.language-switcher--mobile,
.mobile-nav-actions,
.menu-toggle {
  display: none;
}

.text-button,
.inline-link {
  padding: 4px 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.text-button {
  position: relative;
}

.header-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-right: 2px;
  padding-left: 2px;
  color: var(--ink);
  line-height: 1;
}

.header-signout {
  color: var(--ink-soft);
}

.header-signout:hover {
  color: var(--ink);
}

.member-access--signout {
  justify-content: space-between;
}

.text-button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.text-button:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.member-access {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--ui-control-lg);
  padding: 0 var(--ui-space-4);
  border: 1px solid var(--ui-input);
  border-radius: var(--ui-radius-control);
  color: var(--ui-foreground);
  background: rgba(255, 255, 255, 0.42);
  font-size: var(--ui-font-sm);
  font-weight: var(--ui-weight-semibold);
  line-height: 1;
  gap: var(--ui-space-4);
  transition: border-color var(--ui-duration-base) ease, background var(--ui-duration-base) ease;
}

.member-access i {
  font-style: normal;
}

.member-access:hover {
  border-color: var(--ui-primary);
  color: var(--ui-primary-foreground);
  background: var(--ui-primary);
}

.member-access.is-active {
  border-color: var(--ink);
  background: var(--surface-soft);
}

.button {
  position: relative;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--ui-control-2xl);
  padding: 0 var(--ui-space-4) 0 var(--ui-space-5);
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--ui-radius-action);
  background: transparent;
  font-size: var(--ui-font-md);
  font-weight: var(--ui-weight-semibold);
  line-height: 1;
  cursor: pointer;
  isolation: isolate;
  gap: var(--ui-space-6);
  transition: transform var(--ui-duration-base) ease, box-shadow var(--ui-duration-base) ease, border-color var(--ui-duration-base) ease, color var(--ui-duration-base) ease;
}

.button::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: var(--signal-simple);
  opacity: 0;
  transition: opacity 220ms ease;
}

.button i,
.inline-action i {
  font-style: normal;
  transition: transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--ui-shadow-md);
}

.button:active {
  transform: translateY(0);
  box-shadow: var(--ui-shadow-xs);
}

.button[aria-busy="true"] {
  cursor: progress;
}

.button:hover i,
.inline-action:hover i {
  transform: translate(2px, -2px);
}

.button--primary {
  color: var(--ui-primary-foreground);
  background: var(--ui-primary);
}

.button--primary:hover::before {
  opacity: 1;
}

.button--ghost {
  border-color: var(--ui-border-strong);
  color: var(--ui-foreground);
  background: rgba(255, 255, 255, 0.25);
}

.button--ghost:hover {
  border-color: var(--ink);
  background: #fff;
}

.button--small {
  min-height: var(--ui-control-lg);
  padding-right: var(--ui-space-4);
  padding-left: var(--ui-space-4);
  border-radius: var(--ui-radius-control);
  gap: var(--ui-space-4);
}

.button--large {
  min-height: var(--ui-control-3xl);
  padding-right: var(--ui-space-5);
  padding-left: var(--ui-space-6);
}

.button--light {
  color: var(--ui-foreground);
  background: var(--ui-card);
}

.button--light:hover::before {
  opacity: 1;
}

.button--light:hover {
  color: #fff;
}

.button--dark-ghost {
  border-color: rgba(255, 255, 255, 0.36);
  color: #fff;
}

.button:focus-visible,
.member-access:focus-visible,
.menu-toggle:focus-visible,
.text-button:focus-visible,
.inline-action:focus-visible,
.index-reset:focus-visible,
.language-switcher button:focus-visible {
  outline: 0;
  box-shadow: var(--ui-focus-ring);
}

.button:disabled,
.member-access:disabled,
.text-button:disabled,
.inline-action:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
  box-shadow: none;
}

.button--dark-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.inline-action {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: var(--ui-control-lg);
  padding: 0 0 var(--ui-space-2);
  border-bottom: 1px solid currentColor;
  color: inherit;
  background: transparent;
  font-size: var(--ui-font-md);
  font-weight: var(--ui-weight-semibold);
  cursor: pointer;
  gap: var(--ui-space-8);
}

.icon-button {
  display: grid;
  width: var(--ui-control-sm);
  height: var(--ui-control-sm);
  padding: 0;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-round);
  color: var(--ui-foreground);
  background: transparent;
  line-height: 1;
  cursor: pointer;
  place-items: center;
  transition: color var(--ui-duration-fast) ease, background var(--ui-duration-fast) ease, border-color var(--ui-duration-fast) ease, box-shadow var(--ui-duration-fast) ease;
}

.icon-button:hover {
  border-color: var(--ui-primary);
  color: var(--ui-primary-foreground);
  background: var(--ui-primary);
}

.icon-button:focus-visible {
  outline: 0;
  box-shadow: var(--ui-focus-ring);
}

.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.eyebrow {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1), transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal[data-delay="1"] {
  transition-delay: 90ms;
}

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

/* Home */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.83fr) minmax(520px, 1.17fr);
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding-top: clamp(64px, 8vw, 130px);
  padding-bottom: clamp(76px, 9vw, 140px);
  gap: clamp(50px, 6vw, 110px);
}

.hero__copy {
  max-width: 690px;
}

.hero h1,
.manifesto-hero h1,
.events-hero h1,
.events-hero h2 {
  max-width: 13ch;
  margin-top: 24px;
  font-size: clamp(54px, 6.3vw, 112px);
  font-weight: 570;
  line-height: 1.02;
  letter-spacing: -0.062em;
  padding-right: 0.12em;
  overflow: visible;
  text-wrap: balance;
}

.hero h1 em,
.manifesto-hero h1 em,
.events-hero h1 em,
.events-hero h2 em,
.network-thesis h2 em,
.device-feature h2 em,
.home-events-feature h2 em,
.manifesto-values h2 em,
.event-formats h2 em,
.closing-cta h2 em {
  display: inline;
  padding-right: 0.045em;
  color: transparent;
  background: var(--signal-simple);
  background-clip: text;
  -webkit-background-clip: text;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero__intro {
  max-width: 590px;
  margin-top: 30px;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.4vw, 23px);
  line-height: 1.42;
  letter-spacing: -0.02em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 38px;
  gap: 10px;
}

.browser-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid #aeb2b7;
  border-radius: 12px;
  background: #ececea;
  box-shadow: var(--shadow-window);
  transform: rotate(0.7deg);
}

.browser-frame::after {
  position: absolute;
  right: 10%;
  bottom: -1px;
  left: 10%;
  height: 2px;
  content: "";
  background: var(--signal-simple);
  filter: blur(0.4px);
}

.browser-frame__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid #bcc0c4;
  background: linear-gradient(#f7f7f5, #d8d9d8);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.9);
}

.browser-frame__bar strong {
  color: #4f535a;
  font-size: 11px;
  font-weight: 650;
}

.window-controls {
  display: flex;
  gap: 6px;
}

.window-controls i {
  width: 11px;
  height: 11px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 50%;
  background: #b7b9b9;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.7);
}

.window-controls i:first-child {
  background: #ff5b45;
}

.browser-frame__toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 42px;
  padding: 7px 10px;
  border-bottom: 1px solid #c7c9ca;
  color: #6c7077;
  background: #e7e8e7;
  font-size: 12px;
  gap: 9px;
}

.browser-frame__toolbar > div {
  display: flex;
  gap: 4px;
}

.browser-frame__toolbar span {
  display: grid;
  width: 27px;
  height: 27px;
  border: 1px solid #b8bbbd;
  border-radius: 6px;
  background: linear-gradient(#fff, #d9dcdd);
  box-shadow: inset 0 1px #fff;
  place-items: center;
}

.browser-frame__toolbar p {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 28px;
  overflow: hidden;
  border: 1px solid #c0c3c4;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.browser-frame__viewport {
  position: relative;
  aspect-ratio: 1.38;
  overflow: hidden;
  background: #0c0d11;
}

.browser-frame__viewport::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(5, 8, 18, 0.02) 45%, rgba(5, 8, 18, 0.5));
  pointer-events: none;
}

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

.founder-carousel__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.founder-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  background: #101116;
}

.founder-slide img {
  opacity: 0.72;
  filter: grayscale(1) contrast(1.06) saturate(0.8);
  transform: scale(1.025);
  transition: opacity 480ms ease, filter 480ms ease, transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.founder-slide.is-active img {
  opacity: 1;
  filter: grayscale(0.88) contrast(1.06) saturate(0.88);
  transform: scale(1);
}

.founder-slide figcaption {
  position: absolute;
  z-index: 3;
  bottom: 17px;
  left: 18px;
  display: flex;
  align-items: baseline;
  color: #fff;
  gap: 9px;
}

.founder-slide figcaption strong {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.founder-slide figcaption span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.founder-carousel__controls {
  position: absolute;
  z-index: 4;
  right: 13px;
  bottom: 12px;
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(9, 11, 16, 0.68);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.founder-carousel__controls button {
  display: grid;
  width: 31px;
  height: 29px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  font: inherit;
  cursor: pointer;
  place-items: center;
  transition: color 160ms ease, background 160ms ease;
}

.founder-carousel__controls button:hover,
.founder-carousel__controls button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.founder-carousel__controls button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.founder-carousel__controls button span {
  font-size: 13px;
  line-height: 1;
}

.founder-carousel__position {
  display: flex;
  align-items: center;
  height: 29px;
  padding: 0 7px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.08em;
  gap: 5px;
}

.founder-carousel__position i {
  width: 15px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.network-thesis {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.55fr);
  align-items: end;
  padding-top: clamp(92px, 11vw, 180px);
  padding-bottom: clamp(92px, 11vw, 180px);
  color: #fff;
  background: var(--ink);
  gap: clamp(40px, 8vw, 150px);
}

.network-thesis h2 {
  max-width: 15ch;
  font-size: clamp(48px, 7.2vw, 132px);
  font-weight: 560;
  line-height: 1;
  padding-right: 0.12em;
  overflow: visible;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.network-thesis p {
  max-width: 390px;
  padding-bottom: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(18px, 1.35vw, 23px);
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.device-feature {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(520px, 1.3fr);
  align-items: center;
  padding-top: clamp(90px, 10vw, 170px);
  padding-bottom: clamp(90px, 10vw, 170px);
  background: var(--surface-soft);
  gap: clamp(50px, 8vw, 160px);
}

.device-feature__copy {
  max-width: 560px;
}

.device-feature h2,
.home-events-feature h2,
.event-formats h2 {
  margin-top: 22px;
  font-size: clamp(42px, 4.8vw, 84px);
  font-weight: 560;
  line-height: 0.99;
  letter-spacing: -0.056em;
  padding-right: 0.11em;
  overflow: visible;
  text-wrap: balance;
}

.device-feature__copy > p,
.home-events-feature > div > p {
  max-width: 550px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.25vw, 21px);
  line-height: 1.5;
  letter-spacing: -0.016em;
}

.device-feature .inline-action {
  margin-top: 34px;
}

.device-feature__media {
  position: relative;
  aspect-ratio: 1.32;
  max-height: var(--media-feature-max-height);
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #dededb;
  box-shadow: 0 28px 70px rgba(16, 20, 30, 0.1);
}

.device-feature__media::before {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--signal-simple);
}

.device-feature__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 54%;
}

.home-events-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.7fr);
  align-items: center;
  padding-top: clamp(84px, 9vw, 150px);
  padding-bottom: clamp(84px, 9vw, 150px);
  background: var(--surface);
  gap: clamp(52px, 7vw, 130px);
}

.home-events-feature figure {
  position: relative;
  aspect-ratio: 1.35;
  max-height: var(--media-feature-max-height);
  overflow: hidden;
  border-radius: var(--radius-md);
}

.home-events-feature figure::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 34%;
  height: 3px;
  content: "";
  background: var(--signal-simple);
}

.home-events-feature figure img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.home-events-feature .button {
  margin-top: 34px;
}

.closing-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.5fr);
  align-items: center;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  background: #070910;
  gap: 60px;
}

.closing-cta::before {
  position: absolute;
  z-index: 0;
  right: -15%;
  bottom: -55%;
  width: 75vw;
  height: 75vw;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(244, 39, 55, 0.16) 0%, rgba(23, 41, 183, 0.16) 38%, transparent 68%);
  filter: blur(18px);
  pointer-events: none;
}

.closing-cta__copy,
.closing-cta__mark {
  position: relative;
  z-index: 1;
}

.closing-cta .eyebrow {
  color: rgba(255, 255, 255, 0.5);
}

.closing-cta h2 {
  max-width: 12ch;
  margin-top: 24px;
  font-size: clamp(56px, 7.8vw, 142px);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.067em;
  padding-right: 0.13em;
  overflow: visible;
  text-wrap: balance;
}

.closing-cta__copy > p {
  max-width: 540px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(17px, 1.25vw, 21px);
}

.closing-cta__controls {
  display: flex;
  flex-wrap: wrap;
  margin-top: 40px;
  gap: 10px;
}

.closing-cta__mark {
  display: grid;
  align-self: stretch;
  min-height: 500px;
  margin-right: calc(-1 * var(--page-pad));
  place-items: end end;
}

.closing-cta__mark img {
  width: min(112%, 470px);
  max-height: 620px;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.34));
}

/* Manifesto */

.manifesto-hero {
  display: grid;
  align-content: center;
  min-height: min(850px, calc(100svh - var(--header-height)));
  padding-top: clamp(100px, 11vw, 190px);
  padding-bottom: clamp(100px, 11vw, 190px);
  background: var(--surface);
}

.manifesto-hero h1 {
  max-width: 12ch;
}

.manifesto-hero > p {
  max-width: 760px;
  margin-top: 34px;
  color: var(--ink-soft);
  font-size: clamp(20px, 1.8vw, 30px);
  letter-spacing: -0.03em;
}

.manifesto-opening {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  padding-top: clamp(90px, 9vw, 150px);
  padding-bottom: clamp(90px, 9vw, 150px);
  border-top: 1px solid var(--line);
  background: var(--canvas);
  gap: clamp(50px, 9vw, 170px);
}

.manifesto-opening__lead {
  max-width: 1050px;
  font-size: clamp(38px, 4.4vw, 78px);
  font-weight: 550;
  line-height: 1.02;
  letter-spacing: -0.057em;
  padding-right: 0.07em;
  overflow: visible;
}

.manifesto-opening > p:last-child {
  align-self: end;
  max-width: 430px;
  padding-bottom: 8px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.3vw, 22px);
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.manifesto-section,
.manifesto-strategy,
.manifesto-mission {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr);
  padding-top: clamp(88px, 9vw, 150px);
  padding-bottom: clamp(88px, 9vw, 150px);
  border-top: 1px solid var(--line);
  gap: clamp(50px, 8vw, 150px);
}

.manifesto-section__label {
  display: flex;
  align-items: baseline;
  width: fit-content;
  height: fit-content;
  gap: 16px;
}

.manifesto-section__label span {
  color: #b7350d;
  font-size: 12px;
  font-weight: 700;
}

.manifesto-section__label strong {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manifesto-section__content h2,
.manifesto-mission h2,
.manifesto-strategy h2 {
  max-width: 1100px;
  font-size: clamp(42px, 5vw, 88px);
  font-weight: 550;
  line-height: 1.02;
  letter-spacing: -0.058em;
  padding-right: 0.11em;
  overflow: visible;
  text-wrap: balance;
}

.manifesto-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1100px;
  margin-top: clamp(56px, 6vw, 96px);
  gap: clamp(40px, 6vw, 110px);
}

.manifesto-columns h3 {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 650;
}

.manifesto-columns p {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.2vw, 20px);
  line-height: 1.62;
}

.manifesto-mission {
  position: relative;
  color: #fff;
  background: var(--ink);
}

.manifesto-mission::after {
  position: absolute;
  right: var(--page-pad);
  bottom: 0;
  left: 42%;
  height: 2px;
  content: "";
  background: var(--signal-simple);
}

.manifesto-mission .manifesto-section__label strong {
  color: #fff;
}

.manifesto-mission .manifesto-section__label span {
  color: #ff7440;
}

.manifesto-mission__content p {
  max-width: 760px;
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.64);
  font-size: clamp(18px, 1.4vw, 23px);
  line-height: 1.55;
}

.manifesto-values {
  padding-top: clamp(90px, 10vw, 170px);
  padding-bottom: clamp(90px, 10vw, 170px);
  background: var(--surface);
}

.manifesto-values__header {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(50px, 8vw, 150px);
}

.manifesto-values h2 {
  font-size: clamp(50px, 6vw, 108px);
  font-weight: 550;
  line-height: 1.02;
  letter-spacing: -0.062em;
  padding-right: 0.11em;
  overflow: visible;
  text-wrap: balance;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(70px, 8vw, 130px);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.values-grid article {
  min-height: 300px;
  padding: clamp(28px, 3.5vw, 58px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.values-grid article > span {
  color: #b7350d;
  font-size: 12px;
  font-weight: 700;
}

.values-grid h3 {
  max-width: 14ch;
  margin-top: 48px;
  font-size: clamp(28px, 2.4vw, 42px);
  font-weight: 580;
  line-height: 1;
  letter-spacing: -0.045em;
}

.values-grid p {
  max-width: 520px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.1vw, 19px);
  line-height: 1.55;
}

.manifesto-strategy {
  background: var(--canvas);
}

.manifesto-strategy__intro {
  max-width: 760px;
  margin-top: 32px;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.4vw, 23px);
  line-height: 1.52;
}

.strategy-list {
  max-width: 1100px;
  margin-top: 72px;
  border-top: 1px solid var(--line);
}

.strategy-list article {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}

.strategy-list article > span {
  padding-top: 6px;
  color: #b7350d;
  font-size: 12px;
  font-weight: 700;
}

.strategy-list h3 {
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 580;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.strategy-list p {
  max-width: 680px;
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 17px;
}

.manifesto-strategy .button {
  margin-top: 42px;
}

/* Events */

.events-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding-top: clamp(70px, 8vw, 130px);
  padding-bottom: clamp(70px, 8vw, 130px);
  gap: clamp(50px, 7vw, 130px);
}

.events-hero h1,
.events-hero h2 {
  max-width: 10.5ch;
}

.events-hero__copy > p {
  max-width: 620px;
  margin-top: 30px;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.5;
}

.events-hero .button {
  margin-top: 36px;
}

.events-hero__media {
  position: relative;
  aspect-ratio: 1.12;
  max-height: var(--media-hero-max-height);
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #11131c;
}

.events-hero__media::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 54%;
  height: 3px;
  content: "";
  background: var(--signal-simple);
}

.events-hero__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.event-formats {
  padding-top: clamp(90px, 10vw, 160px);
  padding-bottom: clamp(90px, 10vw, 160px);
  color: #fff;
  background: var(--ink);
}

.event-formats .eyebrow {
  color: rgba(255, 255, 255, 0.48);
}

.event-formats h2 {
  max-width: 12ch;
}

.event-format-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(70px, 8vw, 125px);
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.event-format-list article {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: clamp(28px, 3vw, 50px);
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.event-format-list article > span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
}

.event-format-list h3 {
  margin-top: auto;
  font-size: clamp(29px, 2.5vw, 43px);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.045em;
}

.event-format-list p {
  max-width: 390px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.57);
  font-size: 17px;
  line-height: 1.5;
}

.events-calendar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: calc(100svh - var(--header-height));
  padding-top: clamp(20px, 2vw, 32px);
  padding-bottom: clamp(24px, 2.5vw, 40px);
  color: #fff;
  background: #222;
}

#upcoming-events {
  scroll-margin-top: var(--header-height);
}

.events-calendar__intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(12px, 1.4vw, 20px);
  gap: var(--ui-space-4);
}

.events-calendar__intro-copy {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 10px;
}

.events-calendar h1,
.events-calendar h2 {
  margin: 0;
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.events-calendar .eyebrow {
  color: rgba(255, 255, 255, 0.52);
}

.events-calendar .inline-action {
  margin-top: 0;
  color: #fff;
}

.luma-frame {
  width: min(100%, 1220px);
  height: clamp(540px, calc(100svh - var(--header-height) - 92px), 720px);
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  background: transparent;
}

.luma-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: #fff;
  color-scheme: light;
}

.events-closing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: clamp(70px, 7vw, 110px);
  padding-bottom: clamp(70px, 7vw, 110px);
  color: #fff;
  background: var(--ink);
  gap: 40px;
}

.events-closing p {
  max-width: 900px;
  font-size: clamp(34px, 4vw, 70px);
  font-weight: 550;
  line-height: 1;
  letter-spacing: -0.055em;
  padding-right: 0.07em;
  overflow: visible;
}

/* Authenticated index */

.member-index {
  min-height: calc(100svh - var(--header-height));
  padding-top: clamp(var(--ui-space-10), 4.5vw, var(--ui-space-16));
  padding-bottom: clamp(80px, 8vw, 120px);
  background:
    radial-gradient(circle at 78% -8%, rgba(23, 41, 183, 0.045), transparent 30rem),
    var(--canvas);
}

.member-index > * {
  width: min(100%, var(--directory-max-width));
  margin-right: auto;
  margin-left: auto;
}

.member-index__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--ui-space-12);
}

.member-index__intro {
  max-width: 760px;
}

.member-index__header h1 {
  max-width: 13ch;
  margin-top: var(--ui-space-3);
  padding-right: 0.12em;
  overflow: visible;
  font-size: clamp(48px, 5.1vw, 72px);
  font-weight: 570;
  line-height: 0.99;
  letter-spacing: -0.056em;
  text-wrap: balance;
}

.member-index__header p {
  max-width: 620px;
  margin-top: var(--ui-space-4);
  color: var(--ink-soft);
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.5;
}

.member-index__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--ui-space-2);
}

.member-index__actions .button,
.member-index__actions .inline-action {
  min-height: var(--ui-control-lg);
  border-radius: var(--ui-radius-control);
  font-size: 13px;
}

.member-index__actions .button {
  padding-right: var(--ui-space-4);
  padding-left: var(--ui-space-4);
  gap: var(--ui-space-6);
}

.member-index__actions .inline-action {
  padding: 0 var(--ui-space-4);
  border: 1px solid var(--ui-border);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.35);
  gap: var(--ui-space-4);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.member-index__actions .inline-action:hover {
  border-color: var(--ui-border-strong);
  color: var(--ink);
  background: var(--surface);
}

.index-filters {
  display: grid;
  grid-template-columns: minmax(270px, 1.5fr) repeat(3, minmax(150px, 0.52fr));
  margin-top: clamp(var(--ui-space-8), 4vw, var(--ui-space-12));
  padding: var(--ui-space-1);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-panel);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--ui-shadow-sm);
  gap: var(--ui-space-1);
}

.index-filters > label,
.index-filters > .ui-field {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 54px;
  align-content: center;
  padding: 5px var(--ui-space-3) 4px;
  border-left: 1px solid var(--ui-border);
  border-radius: calc(var(--ui-radius-control) - 2px);
  gap: 1px;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.index-filters > label:first-child,
.index-filters > .ui-field:first-child {
  border-left: 0;
}

.index-filters > label > span:not(.sr-only),
.index-filters > .ui-field > span:first-child {
  color: var(--ui-subtle-foreground);
  font-size: 9px;
  font-weight: var(--ui-weight-bold);
  line-height: 1.2;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.index-filters input,
.index-filters select {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
}

.index-filters select {
  cursor: pointer;
}

.index-filters .index-search {
  align-content: center;
  padding-right: var(--ui-space-4);
  padding-left: var(--ui-space-4);
}

.index-filters .index-search input {
  min-height: var(--ui-control-md);
  font-size: 14px;
}

.index-filters > label:focus-within,
.index-filters > .ui-field:focus-within {
  background: var(--ui-surface-muted);
  box-shadow: inset 0 0 0 1px rgba(7, 9, 15, 0.05);
}

.index-filters .ui-select__trigger {
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: var(--ui-font-sm);
}

.index-filters .ui-select__trigger:hover,
.index-filters .ui-select__trigger:focus-visible {
  border: 0;
  box-shadow: none;
}

.index-filters > .ui-field:last-child .ui-select__menu {
  right: 0;
  left: auto;
}

.index-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--ui-control-sm);
  margin-top: var(--ui-space-4);
  gap: var(--ui-space-4);
}

.index-results-summary {
  min-height: 0;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 650;
}

.index-reset {
  display: inline-flex;
  align-items: center;
  min-height: var(--ui-control-sm);
  padding: 0 var(--ui-space-3);
  border: 1px solid var(--ui-border);
  border-radius: calc(var(--ui-radius-control) - 2px);
  color: var(--ink-soft);
  background: transparent;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  gap: var(--ui-space-2);
}

.index-reset:hover {
  border-color: var(--ui-border-strong);
  color: var(--ink);
  background: var(--surface);
}

.index-reset i {
  font-size: 15px;
  font-style: normal;
  line-height: 1;
}

.index-results {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: var(--ui-space-2);
  gap: var(--ui-space-3);
}

.project-card {
  min-width: 0;
  padding: var(--ui-space-2);
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: calc(var(--ui-radius-panel) + 2px);
  background: var(--surface);
  box-shadow: var(--ui-shadow-sm);
  transition: border-color 180ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.project-card:hover {
  border-color: var(--ui-border-strong);
  box-shadow: var(--ui-shadow-md);
  transform: translateY(-1px);
}

.project-card:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(23, 41, 183, 0.12), var(--ui-shadow-md);
}

.project-card__link:focus-visible {
  outline: 0;
}

.project-card__link {
  display: grid;
  grid-template-columns: minmax(250px, 0.66fr) minmax(0, 1.34fr);
  align-items: start;
  min-height: 0;
}

.project-card__thumbnail {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  align-self: start;
  overflow: hidden;
  border-radius: var(--ui-radius-media);
  background: #dededb;
}

.project-card__thumbnail::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: inherit;
  content: "";
  box-shadow: inset 0 0 0 1px rgba(7, 9, 15, 0.05);
  pointer-events: none;
}

.project-card__thumbnail::before {
  position: absolute;
  z-index: 2;
  top: var(--ui-space-5);
  right: 0;
  bottom: var(--ui-space-5);
  width: 2px;
  border-radius: 999px 0 0 999px;
  content: "";
  background: var(--signal-simple);
  opacity: 0.82;
  pointer-events: none;
}

.project-card__thumbnail img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card__thumbnail--empty {
  display: grid;
  overflow: hidden;
  background:
    linear-gradient(135deg, transparent 0 47%, color-mix(in srgb, var(--ink) 7%, transparent) 47.1% 47.6%, transparent 47.7% 100%),
    var(--ui-surface-muted);
  place-items: center;
}

.project-card__empty-mark {
  display: grid;
  width: 54px;
  height: 54px;
  border: 1px solid var(--ui-border-strong);
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 22px;
  font-weight: 560;
  letter-spacing: -0.06em;
  place-items: center;
}

.project-card:hover .project-card__thumbnail img {
  transform: scale(1.018);
}

.project-card__stage {
  position: absolute;
  z-index: 3;
  top: var(--ui-space-3);
  right: var(--ui-space-3);
  min-height: 28px;
  padding: 0 var(--ui-space-3);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 9, 15, 0.72);
  backdrop-filter: blur(10px);
  font-size: 9px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.project-card__content {
  display: flex;
  flex: 1;
  min-width: 0;
  padding: var(--ui-space-5) var(--ui-space-6) var(--ui-space-4) var(--ui-space-8);
  flex-direction: column;
}

.project-card__meta {
  display: flex;
  justify-content: space-between;
  min-width: 0;
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  gap: 20px;
}

.project-card__meta span:last-child {
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card--sample .project-card__meta span:first-child {
  display: inline-flex;
  align-items: center;
  gap: var(--ui-space-2);
}

.project-card--sample .project-card__meta span:first-child::before {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255, 90, 31, 0.34);
}

.project-card h2 {
  margin-top: var(--ui-space-6);
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 580;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.project-card__content > p {
  max-width: 48ch;
  margin-top: var(--ui-space-3);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.project-card__need {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  margin-top: var(--ui-space-5);
  padding-top: var(--ui-space-4);
  border-top: 1px solid var(--ui-border);
  gap: var(--ui-space-3);
}

.project-card__need > span {
  padding-top: 2px;
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.project-card__need p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: auto;
  padding-top: var(--ui-space-4);
  color: var(--ink-soft);
  font-size: 11px;
  gap: var(--ui-space-6);
}

.project-card__footer i {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  color: var(--ink);
  background: var(--canvas);
  font-size: 14px;
  font-style: normal;
  transition: transform 180ms ease;
  place-items: center;
}

.project-card:hover .project-card__footer i {
  transform: translate(2px, -2px);
}

.index-results__empty {
  grid-column: 1 / -1;
  padding: var(--ui-space-16) var(--ui-space-6);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-panel);
  color: var(--ink-soft);
  background: var(--surface);
  box-shadow: var(--ui-shadow-sm);
  text-align: center;
}

.index-empty {
  display: grid;
  justify-items: center;
  min-height: 360px;
  margin-top: var(--ui-space-2);
  padding: var(--ui-space-16) var(--ui-space-6);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-panel);
  background: var(--surface);
  box-shadow: var(--ui-shadow-sm);
  text-align: center;
  place-content: center;
}

.index-empty__signal {
  position: relative;
  width: 72px;
  height: 72px;
  border: 1px solid var(--ui-border);
  border-radius: 50%;
}

.index-empty__signal::before,
.index-empty__signal::after {
  position: absolute;
  inset: 10px;
  border: 1px solid var(--ui-border);
  border-radius: 50%;
  content: "";
}

.index-empty__signal::after {
  inset: 23px;
}

.index-empty__signal span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 22px rgba(255, 90, 31, 0.7);
  transform: translate(-50%, -50%);
}

.index-empty h2 {
  max-width: 650px;
  margin-top: var(--ui-space-5);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.05em;
}

.index-empty p {
  max-width: 570px;
  margin-top: var(--ui-space-3);
  color: var(--ink-soft);
  font-size: 15px;
}

.index-empty .button {
  margin-top: var(--ui-space-6);
}

/* Project detail */

.project-detail {
  min-height: calc(100svh - var(--header-height));
  padding-top: clamp(var(--ui-space-6), 3vw, var(--ui-space-10));
  padding-bottom: clamp(80px, 8vw, 120px);
  background: var(--canvas);
}

.project-detail > * {
  width: min(100%, var(--directory-max-width));
  margin-right: auto;
  margin-left: auto;
}

.project-detail__back {
  display: inline-flex;
  align-items: center;
  min-height: var(--ui-control-sm);
  padding: 0 var(--ui-space-3);
  border: 1px solid var(--ui-border);
  border-radius: calc(var(--ui-radius-control) - 2px);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  gap: var(--ui-space-2);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.project-detail__back:hover {
  border-color: var(--ui-border-strong);
  color: var(--ink);
  background: var(--surface);
}

.project-detail__back span:first-child {
  transition: transform 180ms ease;
}

.project-detail__back:hover span:first-child {
  transform: translateX(-3px);
}

.project-detail__hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(400px, 0.84fr);
  align-items: stretch;
  margin-top: var(--ui-space-4);
  padding: var(--ui-space-2);
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: calc(var(--ui-radius-panel) + 2px);
  background: var(--surface);
  box-shadow: var(--ui-shadow-sm);
}

.project-detail__copy {
  display: flex;
  min-height: 474px;
  padding: clamp(var(--ui-space-8), 4vw, 56px);
  flex-direction: column;
}

.project-detail__meta {
  display: flex;
  flex-wrap: wrap;
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  gap: var(--ui-space-2) var(--ui-space-4);
}

.project-detail__meta span + span::before {
  margin-right: var(--ui-space-4);
  color: var(--orange);
  content: "•";
}

.project-detail__copy h1 {
  max-width: 12ch;
  margin-top: auto;
  padding-top: var(--ui-space-12);
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 570;
  line-height: 0.98;
  letter-spacing: -0.065em;
  overflow-wrap: anywhere;
}

.project-detail__copy > p {
  max-width: 660px;
  margin-top: var(--ui-space-5);
  color: var(--ink-soft);
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.45;
}

.project-detail__actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: var(--ui-space-6);
  gap: var(--ui-space-2);
}

.project-detail__actions .button {
  min-height: var(--ui-control-lg);
  border-radius: var(--ui-radius-control);
  font-size: 13px;
}

.project-detail__manage {
  display: flex;
  flex-wrap: wrap;
  margin-top: var(--ui-space-3);
  gap: var(--ui-space-3);
}

.project-detail__manage .inline-action {
  min-height: var(--ui-control-sm);
  padding: 0 var(--ui-space-3);
  border: 1px solid var(--ui-border);
  border-radius: calc(var(--ui-radius-control) - 2px);
  color: var(--ink-soft);
  background: transparent;
  font-size: 11px;
  font-weight: 650;
}

.project-detail__manage .inline-action:hover {
  border-color: var(--ui-border-strong);
  color: var(--ink);
  background: var(--ui-surface-muted);
}

.project-detail__manage .inline-action--danger:hover {
  border-color: color-mix(in srgb, var(--ui-danger) 45%, var(--ui-border));
  color: var(--ui-danger);
}

.project-detail__media {
  position: relative;
  min-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--ui-radius-media);
  background: #dededb;
}

.project-detail__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-detail__hero--without-media {
  grid-template-columns: minmax(0, 1fr);
}

.project-detail__hero--without-media .project-detail__copy {
  min-height: 390px;
}

.project-detail__body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.52fr);
  padding-top: clamp(var(--ui-space-12), 6vw, 88px);
  gap: clamp(var(--ui-space-10), 7vw, 104px);
}

.project-detail__about h2 {
  max-width: 12ch;
  margin-top: var(--ui-space-4);
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.06em;
}

.project-detail__about > p {
  max-width: 760px;
  margin-top: var(--ui-space-6);
  color: var(--ink-soft);
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.6;
}

.project-detail__facts {
  align-self: start;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-panel);
  background: var(--surface);
  box-shadow: var(--ui-shadow-sm);
}

.project-detail__facts div {
  display: grid;
  padding: var(--ui-space-4) var(--ui-space-5);
  border-top: 1px solid var(--ui-border);
  gap: var(--ui-space-1);
}

.project-detail__facts div:first-child {
  border-top: 0;
}

.project-detail__facts dt {
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-detail__facts dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.project-detail__facts .project-detail__ask {
  background: var(--ink);
}

.project-detail__ask dt {
  color: rgba(255, 255, 255, 0.5);
}

.project-detail__ask dd {
  color: #fff;
}

/* Sign in */

.sign-in-page {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(480px, 0.75fr);
  align-items: stretch;
  min-height: calc(100svh - var(--header-height));
  padding-top: clamp(40px, 5vw, 80px);
  padding-bottom: clamp(40px, 5vw, 80px);
  background: var(--surface-soft);
  gap: clamp(36px, 6vw, 110px);
}

.sign-in-page__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 660px;
  padding: clamp(36px, 5vw, 80px);
  overflow: hidden;
  border-radius: var(--radius-md);
  color: #fff;
  background: var(--ink);
}

.sign-in-page__brand::before {
  position: absolute;
  right: -15%;
  bottom: -20%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(245, 39, 55, 0.28), rgba(23, 41, 183, 0.25) 42%, transparent 70%);
  filter: blur(20px);
}

.sign-in-page__brand img {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: min(64%, 400px);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.32));
}

.sign-in-page__brand p {
  position: relative;
  z-index: 1;
  max-width: 680px;
  font-size: clamp(34px, 3.5vw, 62px);
  font-weight: 550;
  line-height: 0.98;
  letter-spacing: -0.055em;
  padding-right: 0.07em;
  overflow: visible;
}

.sign-in-page__panel {
  align-self: center;
  width: 100%;
  max-width: 620px;
  justify-self: center;
  padding: clamp(36px, 5vw, 78px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.sign-in-page__panel h1 {
  margin-top: 22px;
  font-size: clamp(46px, 5vw, 78px);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.06em;
}

.sign-in-page__panel > p {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 18px;
}

.sign-in-form,
.dialog__form {
  display: grid;
  margin-top: 36px;
  gap: 20px;
}

.sign-in-form > label,
.dialog__form > label,
.form-row > label,
.form-row > .ui-field,
.ui-field {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.sign-in-form label > span,
.dialog__form label > span,
.form-row label > span,
.ui-field > span:first-child {
  color: var(--ui-foreground);
  font-size: var(--ui-font-sm);
  font-weight: var(--ui-weight-semibold);
}

.sign-in-form__note {
  margin-top: -4px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.sign-in-form__status {
  min-height: 1.35em;
  margin-top: -4px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.sign-in-form__status[data-state="success"] {
  color: #19704f;
}

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

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--ui-input);
  border-radius: var(--ui-radius-control);
  outline: none;
  color: var(--ui-foreground);
  background: var(--ui-card);
  transition: border-color var(--ui-duration-fast) ease, box-shadow var(--ui-duration-fast) ease, background var(--ui-duration-fast) ease;
}

input,
select {
  min-height: var(--ui-field-height, var(--ui-control-2xl));
  padding: 0 var(--ui-space-4);
}

textarea {
  min-height: 96px;
  padding: var(--ui-space-3) var(--ui-space-4);
  line-height: 1.45;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--ui-border-strong);
  box-shadow: var(--ui-focus-ring);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 0;
}

input::placeholder,
textarea::placeholder {
  color: var(--ui-subtle-foreground);
  opacity: 1;
}

input:disabled,
textarea:disabled,
select:disabled {
  color: var(--ui-subtle-foreground);
  background: var(--ui-muted);
  cursor: not-allowed;
  opacity: 0.72;
}

input:user-invalid,
textarea:user-invalid,
select:user-invalid {
  border-color: var(--ui-danger);
  box-shadow: 0 0 0 3px rgba(162, 41, 49, 0.12);
}

/* Select atom — native data control with a custom accessible presentation. */

.ui-select {
  position: relative;
  min-width: 0;
}

.ui-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
}

.ui-select__trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: var(--ui-field-height, var(--ui-control-2xl));
  padding: 0 var(--ui-space-3) 0 var(--ui-space-4);
  border: 1px solid var(--ui-input);
  border-radius: var(--ui-radius-control);
  color: var(--ui-foreground);
  background: var(--ui-card);
  box-shadow: var(--ui-shadow-xs);
  font-size: var(--ui-font-md);
  line-height: 1;
  text-align: left;
  cursor: pointer;
  gap: var(--ui-space-4);
  transition: border-color var(--ui-duration-fast) ease, box-shadow var(--ui-duration-fast) ease, background var(--ui-duration-fast) ease;
}

.ui-select__trigger:hover {
  border-color: var(--ui-border-strong);
}

.ui-select__trigger:disabled {
  color: var(--ui-subtle-foreground);
  background: var(--ui-muted);
  cursor: not-allowed;
  opacity: 0.68;
}

.ui-select__trigger:focus-visible {
  border-color: var(--ui-border-strong);
  outline: 0;
  box-shadow: var(--ui-focus-ring);
}

.ui-select[data-invalid="true"] .ui-select__trigger {
  border-color: var(--ui-danger);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(162, 41, 49, 0.12);
}

.ui-select__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-select__chevron {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--ui-duration-fast) ease;
}

.ui-select__trigger[aria-expanded="true"] .ui-select__chevron {
  margin-top: 3px;
  transform: rotate(225deg);
}

.ui-select__menu {
  position: absolute;
  z-index: 150;
  top: calc(100% + var(--ui-space-2));
  left: 0;
  width: max-content;
  min-width: 100%;
  max-width: min(320px, calc(100vw - 40px));
  padding: var(--ui-space-1);
  max-height: min(280px, calc(100vh - var(--ui-space-8)));
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-radius-action);
  color: var(--ui-popover-foreground);
  background: var(--ui-popover);
  box-shadow: var(--ui-shadow-popover);
  overscroll-behavior: contain;
  animation: ui-select-in var(--ui-duration-fast) var(--ui-ease-out) both;
}

.ui-select[data-side="top"] .ui-select__menu {
  top: auto;
  bottom: calc(100% + var(--ui-space-2));
  transform-origin: bottom;
}

.ui-select__option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--ui-control-sm);
  padding: 0 var(--ui-space-3);
  border-radius: var(--ui-radius-sm);
  color: var(--ui-muted-foreground);
  font-size: var(--ui-font-sm);
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  gap: var(--ui-space-6);
}

.ui-select__option:hover,
.ui-select__option:focus {
  color: var(--ui-primary-foreground);
  background: var(--ui-primary);
  outline: 0;
}

.ui-select__option[aria-selected="true"] {
  color: var(--ui-accent-foreground);
  background: var(--ui-accent);
  font-weight: var(--ui-weight-semibold);
}

.ui-select__option[aria-selected="true"]::after {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: var(--ui-radius-round);
  content: "";
  background: var(--signal-simple);
}

.ui-select__option[aria-selected="true"]:hover,
.ui-select__option[aria-selected="true"]:focus {
  color: var(--ui-primary-foreground);
  background: var(--ui-primary);
}

@keyframes ui-select-in {
  from { opacity: 0; transform: translateY(-4px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.sign-in-form__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.check-field {
  display: flex !important;
  align-items: flex-start;
  width: fit-content;
  color: var(--ui-muted-foreground);
  font-size: var(--ui-font-sm);
  cursor: pointer;
  gap: var(--ui-space-2) !important;
}

.check-field input[type="checkbox"] {
  display: grid;
  flex: 0 0 auto;
  appearance: none;
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 2px 0 0;
  padding: 0;
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-radius-compact);
  background: var(--ui-card);
  box-shadow: none;
  cursor: pointer;
  place-content: center;
}

.check-field input[type="checkbox"]::before {
  width: 4px;
  height: 8px;
  border: solid var(--ui-primary-foreground);
  border-width: 0 1.5px 1.5px 0;
  content: "";
  transform: rotate(45deg) scale(0);
  transition: transform var(--ui-duration-fast) var(--ui-ease-out);
}

.check-field input[type="checkbox"]:checked {
  border-color: var(--ui-primary);
  background: var(--ui-primary);
}

.check-field input[type="checkbox"]:checked::before {
  transform: rotate(45deg) scale(1);
}

.check-field input[type="checkbox"]:focus-visible {
  outline: 0;
  box-shadow: var(--ui-focus-ring);
}

.check-field--consent {
  width: 100%;
}

.check-field--attestation {
  width: 100%;
  padding: var(--ui-space-4);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-control);
  background: var(--ui-muted);
  line-height: 1.45;
}

.form-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.inline-link {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.sign-in-form .button {
  width: 100%;
  margin-top: 6px;
}

.sign-in-page__apply {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  gap: 8px;
}

.sign-in-page__apply .text-button {
  color: var(--ui-foreground);
}

.button--google {
  border-color: var(--ui-border-strong);
  color: var(--ui-foreground);
  background: var(--ui-card);
  box-shadow: var(--ui-shadow-xs);
}

.button--google::before {
  background: var(--ui-muted);
}

.button--google:hover {
  border-color: var(--ink);
}

.button--google:hover::before {
  opacity: 1;
}

.google-mark {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1px solid rgba(7, 9, 15, 0.1);
  border-radius: 50%;
  color: #07090f;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.08em;
  place-items: center;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--ink-faint);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  gap: var(--ui-space-3);
}

.auth-divider span {
  height: 1px;
  background: var(--ui-border);
}

.sign-in-page__help {
  max-width: 500px;
  margin-top: var(--ui-space-5);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

/* Member profile */

.profile-console {
  padding-top: clamp(var(--ui-space-10), 6vw, 88px);
  padding-bottom: clamp(var(--ui-space-16), 10vw, 144px);
}

.profile-console__header,
.profile-console__grid {
  width: min(100%, var(--directory-max-width));
  margin-right: auto;
  margin-left: auto;
}

.profile-console__header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-bottom: var(--ui-space-8);
  border-bottom: 1px solid var(--ui-border);
  gap: var(--ui-space-8);
}

.profile-console__header > div {
  max-width: 720px;
}

.profile-console__header h1 {
  max-width: 12ch;
  margin-top: var(--ui-space-4);
  font-size: clamp(54px, 6vw, 92px);
  font-weight: 560;
  line-height: 0.98;
  letter-spacing: -0.068em;
}

.profile-console__header h1 em {
  background: var(--signal-simple);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.profile-console__header p {
  max-width: 620px;
  margin-top: var(--ui-space-5);
  color: var(--ink-soft);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.5;
}

.profile-console__email {
  max-width: 290px;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 620;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-console__grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  padding-top: var(--ui-space-8);
  gap: var(--ui-space-4);
}

.profile-card,
.profile-projects {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-panel);
  background: var(--ui-card);
  box-shadow: var(--ui-shadow-sm);
}

.profile-card {
  display: grid;
  padding: var(--ui-space-6);
  gap: var(--ui-space-4);
}

.profile-card__heading h2,
.profile-projects__heading h2 {
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 570;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.profile-card__heading p,
.profile-projects__intro {
  max-width: 58ch;
  margin-top: var(--ui-space-2);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.48;
}

.profile-card > label {
  display: grid;
  gap: 6px;
}

.profile-card > label > span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.profile-card input:not([type="checkbox"]) {
  min-height: var(--ui-control-lg);
  padding: 0 var(--ui-space-3);
}

.profile-card .button {
  width: 100%;
  min-height: var(--ui-control-lg);
}

.profile-card__status {
  min-height: 16px;
  margin-top: calc(-1 * var(--ui-space-2));
  color: var(--ink-faint);
  font-size: 11px;
}

.profile-card__status[data-state="success"] { color: var(--ui-success); }
.profile-card__status[data-state="error"] { color: var(--ui-danger); }

.profile-projects {
  padding: var(--ui-space-6);
}

.profile-projects__heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--ui-space-5);
}

.profile-projects__heading .button {
  flex: 0 0 auto;
}

.profile-projects__list {
  display: grid;
  margin-top: var(--ui-space-5);
  border-top: 1px solid var(--ui-border);
}

.profile-projects__empty {
  padding: var(--ui-space-8) 0 var(--ui-space-3);
  color: var(--ink-soft);
  font-size: 14px;
}

.profile-project {
  display: grid;
  padding: var(--ui-space-5) 0;
  border-bottom: 1px solid var(--ui-border);
  gap: var(--ui-space-3);
}

.profile-project__meta {
  display: flex;
  justify-content: space-between;
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  gap: var(--ui-space-4);
}

.profile-project__meta span:first-child[data-status="published"] { color: var(--ui-success); }
.profile-project__meta span:first-child[data-status="draft"] { color: var(--ink-soft); }

.profile-project h3 {
  font-size: clamp(23px, 2vw, 30px);
  font-weight: 570;
  line-height: 1;
  letter-spacing: -0.05em;
}

.profile-project > p {
  max-width: 64ch;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.profile-project__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: var(--ui-space-1);
  gap: var(--ui-space-2);
}

.profile-project__actions .button,
.profile-project__actions .text-button {
  min-height: var(--ui-control-sm);
  font-size: 11px;
}

.text-button--danger {
  color: var(--ink-soft);
}

.text-button--danger:hover,
.text-button--danger:focus-visible {
  color: var(--ui-danger);
}

/* Future approval queue — intentionally dormant while Directory access is open. */

.directory-access {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(480px, 0.92fr);
  align-items: stretch;
  min-height: calc(100svh - var(--header-height));
  padding-top: clamp(var(--ui-space-10), 6vw, 88px);
  padding-bottom: clamp(var(--ui-space-10), 6vw, 88px);
  background: var(--surface-soft);
  gap: clamp(var(--ui-space-8), 5vw, 80px);
}

.directory-access__visual {
  position: relative;
  display: grid;
  min-height: 600px;
  overflow: hidden;
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.45);
  background: var(--ink);
  place-items: start;
}

.directory-access__visual::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 75% 70%, rgba(245, 39, 55, 0.3), transparent 31%), radial-gradient(circle at 57% 36%, rgba(24, 184, 232, 0.2), transparent 28%);
}

.directory-access__visual img {
  position: absolute;
  z-index: 1;
  right: -1px;
  bottom: -1px;
  width: min(76%, 440px);
  max-width: none;
  filter: drop-shadow(-18px -10px 34px rgba(0, 0, 0, 0.24));
}

.directory-access__visual > span {
  position: relative;
  z-index: 1;
  padding: var(--ui-space-6);
  font-size: 12px;
  font-weight: var(--ui-weight-bold);
  letter-spacing: 0.1em;
}

.directory-access__panel {
  align-self: center;
  width: 100%;
  max-width: 640px;
  justify-self: center;
  padding: clamp(var(--ui-space-6), 4vw, 52px);
  border: 1px solid var(--ui-border);
  border-radius: var(--radius-md);
  background: var(--ui-card);
  box-shadow: var(--ui-shadow-sm);
}

.directory-access__panel h1 {
  max-width: 12ch;
  margin-top: var(--ui-space-4);
  font-size: clamp(44px, 4.2vw, 64px);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.065em;
}

.directory-access__panel > p {
  max-width: 520px;
  margin-top: var(--ui-space-4);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

/* Admin console — dense enough to operate, still anchored in the WAF public system. */

.admin-console {
  padding-top: clamp(var(--ui-space-10), 6vw, 88px);
  padding-bottom: clamp(var(--ui-space-16), 10vw, 144px);
}

.admin-console__header,
.admin-access-state,
.admin-metrics,
.admin-workspace {
  width: min(100%, var(--directory-max-width));
  margin-right: auto;
  margin-left: auto;
}

.admin-console__header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--ui-space-8);
}

.admin-console__header > div:first-child {
  max-width: 760px;
}

.admin-console__header h1 {
  max-width: 12ch;
  margin-top: var(--ui-space-4);
  font-size: clamp(54px, 7vw, 104px);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.064em;
  text-wrap: balance;
}

.admin-console__header h1 em {
  background: var(--signal-simple);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.admin-console__header p {
  max-width: 560px;
  margin-top: var(--ui-space-5);
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.5;
}

.admin-console__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: var(--ui-space-1);
  gap: var(--ui-space-3);
}

.admin-console__identity {
  max-width: 250px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-access-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  margin-top: clamp(var(--ui-space-8), 6vw, 80px);
  padding: var(--ui-space-5) var(--ui-space-6);
  overflow: hidden;
  border-radius: var(--ui-radius-panel);
  color: #fff;
  background: var(--ink);
  box-shadow: var(--ui-shadow-sm);
  gap: var(--ui-space-4);
}

.admin-access-state__signal {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--signal-simple);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.08);
}

.admin-access-state strong {
  display: block;
  font-size: 15px;
  font-weight: var(--ui-weight-semibold);
}

.admin-access-state p {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.45;
}

.admin-access-state__mode {
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--ui-radius-xs);
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: var(--ui-weight-bold);
  letter-spacing: 0.12em;
}

.admin-access-state__mode[data-mode="review"] {
  color: #fff;
  border-color: rgba(255, 90, 31, 0.64);
  background: rgba(255, 90, 31, 0.14);
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: var(--ui-space-4);
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-panel);
  background: var(--ui-card);
  box-shadow: var(--ui-shadow-xs);
}

.admin-metrics article {
  display: grid;
  min-width: 0;
  padding: var(--ui-space-5) var(--ui-space-6);
  border-left: 1px solid var(--ui-border);
  gap: var(--ui-space-2);
}

.admin-metrics article:first-child {
  border-left: 0;
}

.admin-metrics span {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: var(--ui-weight-semibold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-metrics strong {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 560;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.admin-workspace {
  margin-top: var(--ui-space-4);
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-panel);
  background: var(--ui-card);
  box-shadow: var(--ui-shadow-sm);
}

.admin-tabs {
  display: flex;
  align-items: center;
  min-height: var(--ui-control-3xl);
  padding: var(--ui-space-2);
  overflow-x: auto;
  border-bottom: 1px solid var(--ui-border);
  background: var(--ui-muted);
  scrollbar-width: thin;
  gap: var(--ui-space-1);
}

.admin-tabs button {
  min-height: var(--ui-control-sm);
  padding: 0 var(--ui-space-3);
  border-radius: var(--ui-radius-sm);
  color: var(--ink-soft);
  background: transparent;
  font-size: 12px;
  font-weight: var(--ui-weight-semibold);
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--ui-duration-fast) ease, background var(--ui-duration-fast) ease, box-shadow var(--ui-duration-fast) ease;
}

.admin-tabs button:hover {
  color: var(--ink);
}

.admin-tabs button[aria-selected="true"] {
  color: var(--ink);
  background: var(--ui-card);
  box-shadow: var(--ui-shadow-xs);
}

.admin-tabs button:focus-visible,
.admin-action:focus-visible {
  outline: 0;
  box-shadow: var(--ui-focus-ring);
}

.admin-workspace__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.55fr);
  align-items: end;
  padding: var(--ui-space-6);
  border-bottom: 1px solid var(--ui-border);
  gap: var(--ui-space-6);
}

.admin-workspace__header h2 {
  margin-top: var(--ui-space-2);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.055em;
}

.admin-workspace__header p {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.admin-table-shell {
  width: 100%;
  overflow-x: auto;
  scrollbar-color: var(--line) transparent;
}

.cms-editor {
  display: grid;
  min-width: 0;
  padding: var(--ui-space-6);
  gap: var(--ui-space-5);
}

.cms-editor__toolbar {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(210px, 0.52fr) minmax(220px, 0.7fr);
  align-items: end;
  gap: var(--ui-space-3);
}

.cms-editor__control,
.cms-editor__search {
  display: grid;
  min-width: 0;
  gap: var(--ui-space-2);
}

.cms-editor__control > span {
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: var(--ui-weight-bold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cms-editor__control select,
.cms-editor__search input,
.cms-editor__field input,
.cms-editor__field textarea {
  width: 100%;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-control);
  color: var(--ink);
  background: var(--ui-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
  font: inherit;
}

.cms-editor__control select,
.cms-editor__search input {
  min-height: var(--ui-control-lg);
  padding: 0 var(--ui-space-3);
  font-size: 13px;
}

.cms-editor__search {
  position: relative;
}

.cms-editor__search::before {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: var(--ui-space-3);
  color: var(--ink-faint);
  content: "⌕";
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.cms-editor__search input {
  padding-left: calc(var(--ui-space-3) + 20px);
}

.cms-editor__control select:focus-visible,
.cms-editor__search input:focus-visible,
.cms-editor__field input:focus-visible,
.cms-editor__field textarea:focus-visible {
  outline: 0;
  border-color: var(--ink);
  box-shadow: var(--ui-focus-ring);
}

.cms-editor__note {
  max-width: 78ch;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

.cms-editor__fields {
  display: grid;
  gap: var(--ui-space-3);
}

.cms-editor__field {
  display: grid;
  min-width: 0;
  padding: var(--ui-space-4);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  background: var(--ui-surface-muted);
  gap: var(--ui-space-3);
}

.cms-editor__field.is-dirty {
  border-color: color-mix(in srgb, var(--blue) 45%, var(--ui-border));
}

.cms-editor__field-heading,
.cms-editor__field-footer {
  display: flex;
  justify-content: space-between;
  min-width: 0;
  align-items: center;
  gap: var(--ui-space-3);
}

.cms-editor__field-heading label {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.cms-editor__field-heading strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: var(--ui-weight-semibold);
}

.cms-editor__field-heading code {
  overflow: hidden;
  color: var(--ink-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cms-editor__state {
  flex: 0 0 auto;
  min-height: 22px;
  padding: 0 var(--ui-space-2);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-round);
  color: var(--ink-faint);
  background: var(--ui-card);
  font-size: 10px;
  font-weight: var(--ui-weight-semibold);
  line-height: 20px;
  white-space: nowrap;
}

.cms-editor__state[data-state="override"] {
  border-color: color-mix(in srgb, var(--blue) 30%, var(--ui-border));
  color: var(--blue);
}

.cms-editor__field input,
.cms-editor__field textarea {
  min-height: var(--ui-control-lg);
  padding: var(--ui-space-3);
  font-size: 14px;
  line-height: 1.45;
}

.cms-editor__field textarea {
  min-height: 88px;
  resize: vertical;
}

.cms-editor__field-footer {
  align-items: flex-start;
}

.cms-editor__field-footer p {
  max-width: 76ch;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
}

.cms-editor__field-footer .text-button {
  flex: 0 0 auto;
}

.cms-editor__empty {
  display: grid;
  min-height: 170px;
  border: 1px dashed var(--ui-border-strong);
  border-radius: var(--ui-radius-md);
  color: var(--ink-soft);
  font-size: 14px;
  place-items: center;
}

.cms-editor__actions {
  display: flex;
  justify-content: flex-end;
  padding-top: var(--ui-space-1);
}

.cms-editor__actions .button {
  min-width: 220px;
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th,
.admin-table td {
  padding: var(--ui-space-4) var(--ui-space-6);
  border-bottom: 1px solid var(--ui-border);
  vertical-align: middle;
}

.admin-table th {
  color: var(--ink-faint);
  background: rgba(244, 244, 242, 0.72);
  font-size: 10px;
  font-weight: var(--ui-weight-bold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.admin-table td {
  max-width: 280px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-line;
}

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

.admin-table tbody tr {
  transition: background var(--ui-duration-fast) ease;
}

.admin-table tbody tr:hover {
  background: rgba(244, 244, 242, 0.65);
}

.admin-person {
  color: var(--ink);
  font-weight: var(--ui-weight-semibold);
}

.admin-date {
  color: var(--ink-faint);
  font-size: 12px;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-round);
  color: var(--ink-soft);
  background: var(--ui-muted);
  font-size: 10px;
  font-weight: var(--ui-weight-bold);
  letter-spacing: 0.025em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-status[data-status="approved"],
.admin-status[data-status="granted"],
.admin-status[data-status="accepted"],
.admin-status[data-status="sent"] {
  border-color: rgba(18, 104, 67, 0.22);
  color: var(--ui-success);
  background: rgba(18, 104, 67, 0.07);
}

.admin-status[data-status="pending"],
.admin-status[data-status="reviewing"] {
  border-color: rgba(123, 80, 21, 0.22);
  color: var(--ui-warning);
  background: rgba(123, 80, 21, 0.07);
}

.admin-status[data-status="rejected"],
.admin-status[data-status="denied"],
.admin-status[data-status="declined"],
.admin-status[data-status="failed"] {
  border-color: rgba(162, 41, 49, 0.2);
  color: var(--ui-danger);
  background: rgba(162, 41, 49, 0.06);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ui-space-2);
}

.admin-action {
  min-height: 30px;
  padding: 0 var(--ui-space-3);
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-radius-sm);
  color: var(--ink);
  background: var(--ui-card);
  font-size: 11px;
  font-weight: var(--ui-weight-semibold);
  cursor: pointer;
}

.admin-action:hover {
  border-color: var(--ink);
  background: var(--ui-muted);
}

.admin-action--approve {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.admin-action--approve:hover {
  background: var(--blue);
}

.admin-action--danger {
  border-color: color-mix(in srgb, var(--ui-danger) 34%, var(--ui-border));
  color: var(--ui-danger);
}

.admin-action--danger:hover {
  border-color: var(--ui-danger);
  color: #fff;
  background: var(--ui-danger);
}

.admin-empty {
  display: grid;
  min-height: 260px;
  padding: var(--ui-space-10) var(--ui-space-6);
  text-align: center;
  place-content: center;
}

.admin-empty__mark {
  color: var(--orange);
  font-size: 24px;
  line-height: 1;
}

.admin-empty h2 {
  margin-top: var(--ui-space-4);
  font-size: 22px;
  font-weight: 560;
  letter-spacing: -0.04em;
}

.admin-empty p {
  max-width: 440px;
  margin-top: var(--ui-space-2);
  color: var(--ink-soft);
  font-size: 14px;
}

.admin-table__message {
  display: block;
  padding: var(--ui-space-8);
  color: var(--ink-soft);
  font-size: 14px;
}

/* Footer */

.site-footer {
  padding-top: clamp(60px, 7vw, 110px);
  padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  background: var(--ink);
}

.site-footer__lead {
  display: grid;
  grid-template-columns: minmax(230px, 0.45fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(50px, 10vw, 180px);
}

.brand--footer .brand-name {
  color: #fff;
}

.site-footer__lead > p {
  max-width: 850px;
  font-size: clamp(34px, 4vw, 68px);
  font-weight: 540;
  line-height: 1.02;
  letter-spacing: -0.055em;
  padding-right: 0.07em;
  overflow: visible;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  margin-top: clamp(60px, 7vw, 100px);
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  gap: 10px 36px;
}

.site-footer__nav button,
.site-footer__nav a {
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.63);
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  transition: color 170ms ease;
}

.site-footer__nav button:hover,
.site-footer__nav a:hover {
  color: #fff;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
}

.site-footer__legal {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.site-footer__legal a {
  color: rgba(255, 255, 255, 0.54);
  transition: color 170ms ease;
}

.site-footer__legal a:hover {
  color: #fff;
}

.language-switcher--footer {
  color: rgba(255, 255, 255, 0.5);
}

.language-switcher--footer button {
  color: rgba(255, 255, 255, 0.5);
}

.language-switcher--footer button + button::before {
  color: rgba(255, 255, 255, 0.25);
}

.language-switcher--footer button[aria-pressed="true"] {
  color: #fff;
  background: transparent;
}

/* Dialogs */

.dialog {
  width: min(620px, calc(100vw - 48px));
  max-height: calc(100svh - 48px);
  padding: var(--ui-space-8) var(--ui-space-8) var(--ui-space-10);
  overflow: auto;
  border: 0;
  border-radius: calc(var(--ui-radius-panel) + var(--ui-space-1));
  color: var(--ui-foreground);
  background: var(--ui-card);
  box-shadow: var(--ui-shadow-dialog);
}

.dialog::backdrop {
  background: var(--ui-overlay);
  backdrop-filter: blur(8px);
}

.dialog[open] {
  animation: dialog-in 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.dialog__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--ui-space-6);
}

.dialog__head > div > span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dialog__head h2 {
  max-width: 500px;
  margin-top: 10px;
  font-size: clamp(34px, 3.5vw, 46px);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.dialog__head > .icon-button {
  flex: 0 0 auto;
  font-size: 21px;
}

.dialog__intro {
  max-width: 560px;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 16px;
}

.dialog__form {
  --ui-field-height: var(--ui-control-xl);
  margin-top: 26px;
  gap: 15px;
}

.dialog__form > label,
.dialog__form .form-row > label,
.dialog__form .form-row > .ui-field {
  gap: 6px;
}

.dialog__form input,
.dialog__form select {
  min-height: var(--ui-control-xl);
}

.dialog__form textarea {
  min-height: 88px;
}

.application-building-field {
  min-height: 72px !important;
  resize: vertical;
}

.dialog--application {
  width: min(680px, calc(100vw - 48px));
}

.dialog__form--application {
  gap: var(--ui-space-4);
}

.application-choice-group {
  display: grid;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  gap: var(--ui-space-2);
}

.application-choice-group legend {
  padding: 0;
  color: var(--ui-foreground);
  font-size: var(--ui-font-sm);
  font-weight: var(--ui-weight-semibold);
}

.application-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ui-space-2);
}

.application-option {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: var(--ui-control-xl);
  padding: 10px 12px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-control);
  color: var(--ui-foreground);
  background: var(--ui-card);
  cursor: pointer;
  font-size: var(--ui-font-sm);
  font-weight: 500;
  line-height: 1.32;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  gap: 9px;
}

.application-option input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--ui-accent);
}

.application-option:has(input:checked) {
  border-color: var(--ui-border-strong);
  background: var(--ui-muted);
  box-shadow: inset 0 0 0 1px var(--ui-border-strong);
}

.application-option:focus-within {
  border-color: var(--ui-border-strong);
  box-shadow: var(--ui-focus-ring);
}

.dialog__form .button {
  width: 100%;
  min-height: var(--ui-control-2xl);
  margin-top: 4px;
}

.dialog--project {
  width: min(820px, calc(100vw - 48px));
  padding: var(--ui-space-6) var(--ui-space-6) var(--ui-space-8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: calc(var(--ui-radius-panel) + 2px);
}

.dialog--project .dialog__head h2,
dialog[data-dialog="introduction"] .dialog__head h2 {
  margin-top: var(--ui-space-2);
  font-size: clamp(32px, 3vw, 40px);
}

.dialog--project .dialog__form,
dialog[data-dialog="introduction"] .dialog__form {
  --ui-field-height: var(--ui-control-lg);
  margin-top: var(--ui-space-5);
  gap: var(--ui-space-3);
}

.dialog--project .dialog__form input:not([type="checkbox"]),
.dialog--project .dialog__form select,
dialog[data-dialog="introduction"] .dialog__form input:not([type="checkbox"]),
dialog[data-dialog="introduction"] .dialog__form select {
  min-height: var(--ui-control-lg);
  border-radius: var(--ui-radius-control);
}

.dialog--project .dialog__form textarea,
dialog[data-dialog="introduction"] .dialog__form textarea {
  min-height: 80px;
  border-radius: var(--ui-radius-control);
}

.dialog--project .dialog__form input:not([type="checkbox"]):focus-visible,
.dialog--project .dialog__form textarea:focus-visible,
.dialog--project .dialog__form select:focus-visible,
dialog[data-dialog="introduction"] .dialog__form input:not([type="checkbox"]):focus-visible,
dialog[data-dialog="introduction"] .dialog__form textarea:focus-visible {
  border-color: var(--ui-border-strong);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(7, 9, 15, 0.09);
}

.dialog--project .dialog__form .button,
dialog[data-dialog="introduction"] .dialog__form .button {
  min-height: var(--ui-control-lg);
  border-radius: var(--ui-radius-control);
}

.project-import {
  display: grid;
  margin-bottom: 0;
  padding: var(--ui-space-4);
  border: 1px solid var(--ui-border);
  border-radius: calc(var(--ui-radius-panel) - 2px);
  background: var(--ui-surface-muted);
  gap: var(--ui-space-3);
}

.project-import__heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--ui-space-5);
}

.project-import__heading h3 {
  margin: var(--ui-space-1) 0 0;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.045em;
}

.project-import__heading > span {
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 650;
}

.project-import__field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--ui-space-2);
}

.project-import__field label {
  display: grid;
  gap: 6px;
}

.project-import__field label > span {
  font-size: 13px;
  font-weight: 650;
}

.project-import__field .project-import__action {
  min-width: 108px;
  min-height: var(--ui-control-lg);
  gap: var(--ui-space-4);
}

.project-import__field .project-import__action:disabled {
  cursor: wait;
  opacity: 0.58;
}

.project-import__field .project-import__action i {
  font-style: normal;
}

.project-import__status {
  min-height: 18px;
  color: var(--ink-soft);
  font-size: 12px;
}

.project-import__status[data-state="success"] {
  color: var(--ui-success);
}

.project-import__status[data-state="partial"] {
  color: var(--ui-warning);
}

.project-import__status[data-state="error"] {
  color: var(--ui-danger);
}

.project-import__hint {
  max-width: 620px;
  margin-top: calc(-1 * var(--ui-space-2));
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.45;
}

.project-import__preview {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  padding-top: 2px;
  gap: 14px;
}

.project-import__preview img {
  width: 74px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: #d8d8d5;
}

.project-import__preview div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.project-import__preview strong,
.project-import__preview span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-import__preview strong {
  font-size: 14px;
}

.project-import__preview span {
  color: var(--ink-faint);
  font-size: 12px;
}

.tag-field {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 6px;
}

.tag-field__label,
.project-image-field__heading > div > span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.tag-field__hint {
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.35;
}

.tag-combobox {
  display: flex;
  align-items: center;
  min-height: var(--ui-control-lg);
  padding: 5px 8px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-control);
  background: var(--ui-card);
  box-shadow: var(--ui-shadow-xs);
  cursor: text;
  gap: 5px;
}

.tag-combobox:focus-within,
.tag-field.is-open .tag-combobox {
  border-color: var(--ui-border-strong);
  box-shadow: 0 0 0 3px rgba(7, 9, 15, 0.09);
}

.tag-field[data-invalid] .tag-combobox {
  border-color: var(--ui-danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-danger) 14%, transparent);
}

.tag-combobox__chips {
  display: inline-flex;
  flex-wrap: wrap;
  min-width: 0;
  gap: 5px;
}

.tag-combobox__chip {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  height: 26px;
  padding: 0 4px 0 8px;
  border: 1px solid var(--ui-border);
  border-radius: 7px;
  color: var(--ink);
  background: var(--ui-surface-muted);
  font-size: 11px;
  font-weight: 620;
  gap: 5px;
}

.tag-combobox__chip > span {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-combobox__chip button {
  display: grid;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  place-items: center;
}

.tag-combobox__chip button:hover,
.tag-combobox__chip button:focus-visible {
  color: var(--ink);
  background: var(--surface);
  outline: 0;
}

.tag-combobox > input {
  width: auto;
  min-width: 112px;
  min-height: 28px !important;
  padding: 0 3px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 12px;
  outline: 0;
  flex: 1 1 120px;
}

.tag-combobox__menu {
  position: absolute;
  z-index: 12;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: 210px;
  padding: 5px;
  overflow: auto;
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-radius-action);
  background: var(--ui-card);
  box-shadow: var(--ui-shadow-popover);
}

.tag-combobox__menu[hidden] {
  display: none;
}

.tag-combobox__option {
  display: flex;
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  align-items: center;
}

.tag-combobox__option:hover,
.tag-combobox__option:focus-visible {
  outline: 0;
  background: var(--ui-surface-muted);
}

.tag-combobox__option--create {
  color: var(--ink-soft);
  font-weight: 620;
}

.tag-combobox__empty {
  padding: 8px 10px;
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.35;
}

.project-image-field {
  display: grid;
  padding: var(--ui-space-3);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-action);
  background: var(--ui-surface-muted);
  gap: var(--ui-space-3);
}

.project-image-field__heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--ui-space-4);
}

.project-image-field__heading p {
  max-width: 470px;
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.4;
}

.project-image-field__heading .text-button {
  min-height: 24px;
  color: var(--ink-soft);
  font-size: 11px;
}

.project-image-field__controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--ui-space-2);
}

.project-image-field__controls > label:not(.upload-control) {
  min-width: 0;
}

.project-image-field__controls > label:not(.upload-control) input {
  width: 100%;
}

.upload-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--ui-control-lg);
  padding: 0 var(--ui-space-4);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-control);
  color: var(--ink);
  background: var(--ui-card);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.upload-control:hover,
.upload-control:focus-within {
  border-color: var(--ui-border-strong);
  background: var(--surface);
}

.upload-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.project-image-field__preview {
  width: min(160px, 100%);
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 9px;
  background: var(--ui-card);
  aspect-ratio: 16 / 10;
}

.project-image-field__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-form__status {
  min-height: 16px;
  margin-top: calc(-1 * var(--ui-space-1));
  color: var(--ink-faint);
  font-size: 11px;
}

.project-form__status[data-state="success"] { color: var(--ui-success); }
.project-form__status[data-state="error"] { color: var(--ui-danger); }
.project-form__status[data-state="loading"] { color: var(--ink-soft); }

.social-disclosure {
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-action);
  background: var(--ui-card);
}

.social-disclosure summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--ui-control-xl);
  padding: 0 var(--ui-space-4);
  list-style: none;
  font-size: var(--ui-font-sm);
  font-weight: var(--ui-weight-semibold);
  cursor: pointer;
  gap: 20px;
}

.social-disclosure summary::-webkit-details-marker {
  display: none;
}

.social-disclosure summary i {
  color: var(--ink-soft);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  transition: transform 180ms ease;
}

.social-disclosure[open] summary {
  border-bottom: 1px solid var(--ui-border);
}

.social-disclosure[open] summary i {
  transform: rotate(45deg);
}

.social-disclosure summary:focus-visible {
  outline: 0;
  box-shadow: inset var(--ui-focus-ring);
}

.social-fields {
  display: grid;
  padding: var(--ui-space-4);
  background: var(--ui-muted);
  gap: var(--ui-space-3);
}

.social-fields > label {
  display: grid;
  gap: 6px;
}

.social-fields label > span {
  font-size: 13px;
  font-weight: 650;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.toast {
  position: fixed;
  z-index: 300;
  right: 24px;
  bottom: 24px;
  max-width: min(420px, calc(100vw - 48px));
  padding: var(--ui-space-3) var(--ui-space-4);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--ui-radius-action);
  color: #fff;
  background: var(--ink);
  box-shadow: var(--ui-shadow-popover);
  font-size: var(--ui-font-md);
}

.toast[hidden] {
  display: none;
}

@media (max-width: 1240px) {
  .site-header {
    grid-template-columns: minmax(180px, 1fr) auto auto;
    column-gap: 20px;
  }

  .site-nav {
    gap: 24px;
  }

  .header-actions {
    gap: 14px;
  }

  .header-actions > .language-switcher {
    padding-right: 14px;
    margin-right: 0;
  }

  .hero {
    grid-template-columns: minmax(0, 0.85fr) minmax(460px, 1.15fr);
    gap: 48px;
  }

  .device-feature {
    grid-template-columns: minmax(290px, 0.65fr) minmax(460px, 1.35fr);
    gap: 55px;
  }
}

@media (max-width: 1100px) {
  :root {
    --header-height: 76px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: var(--header-height);
  }

  .site-header > .brand .brand-mark {
    width: 43px;
    height: var(--header-height);
  }

  .site-header > .brand .brand-mark img {
    width: 43px;
  }

  .brand-name {
    font-size: 15px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    min-height: var(--ui-control-lg);
    padding: 0 var(--ui-space-4);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-control);
    color: var(--ui-foreground);
    background: var(--ui-card);
    box-shadow: var(--ui-shadow-xs);
    font-size: var(--ui-font-sm);
    font-weight: var(--ui-weight-semibold);
    cursor: pointer;
    gap: var(--ui-space-3);
  }

  .menu-toggle i,
  .menu-toggle i::before,
  .menu-toggle i::after {
    display: block;
    width: 14px;
    height: 1px;
    content: "";
    background: var(--ink);
    transition: transform 180ms ease;
  }

  .menu-toggle i {
    position: relative;
  }

  .menu-toggle i::before {
    position: absolute;
    top: -4px;
  }

  .menu-toggle i::after {
    position: absolute;
    top: 4px;
  }

  .menu-toggle[aria-expanded="true"] i {
    background: transparent;
  }

  .menu-toggle[aria-expanded="true"] i::before {
    top: 0;
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] i::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .site-nav {
    position: relative;
    z-index: 10;
    grid-column: 1 / -1;
    display: none;
    justify-self: stretch;
    width: 100%;
    margin-top: var(--ui-space-2);
    padding: var(--ui-space-2);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-panel);
    background: var(--ui-popover);
    box-shadow: var(--ui-shadow-popover);
    opacity: 1;
    pointer-events: auto;
    transform: none;
    gap: 0;
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav > a {
    justify-content: space-between;
    min-height: var(--ui-control-2xl);
    padding: 0 var(--ui-space-4);
    border-radius: var(--ui-radius-sm);
    font-size: var(--ui-font-lg);
  }

  .site-nav > a.is-active::after {
    right: 15px;
    left: 15px;
  }

  .language-switcher--mobile {
    display: inline-flex;
    width: fit-content;
    margin: 8px 8px 6px;
  }

  .mobile-nav-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: var(--ui-space-2);
    gap: var(--ui-space-2);
  }

  .mobile-nav-actions button,
  .mobile-nav-actions .member-access {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    min-height: var(--ui-control-xl);
    padding: 0 var(--ui-space-3);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-control);
    color: var(--ui-foreground);
    background: var(--ui-card);
    font-size: var(--ui-font-sm);
    font-weight: var(--ui-weight-semibold);
    cursor: pointer;
  }

  .mobile-nav-actions .member-access {
    color: var(--ink);
    gap: 12px;
  }

  .mobile-nav-actions button:last-child {
    border-color: var(--ink);
    color: #fff;
    background: var(--ink);
  }

  .header-actions {
    display: none;
  }

  .hero,
  .events-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 90px;
  }

  .hero__copy,
  .events-hero__copy {
    max-width: 800px;
  }

  .hero__visual {
    max-width: 820px;
  }

  .network-thesis,
  .manifesto-opening {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 42px;
  }

  .network-thesis p,
  .manifesto-opening > p:last-child {
    max-width: 620px;
  }

  .device-feature,
  .home-events-feature {
    grid-template-columns: 1fr;
  }

  .device-feature__copy,
  .home-events-feature > div {
    max-width: 720px;
  }

  .home-events-feature figure {
    order: 2;
  }

  .closing-cta {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.4fr);
    min-height: 620px;
  }

  .manifesto-section,
  .manifesto-strategy,
  .manifesto-mission,
  .manifesto-values__header {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 40px;
  }

  .event-format-list {
    grid-template-columns: 1fr;
  }

  .event-format-list article {
    display: grid;
    grid-template-columns: 60px minmax(220px, 0.7fr) minmax(260px, 1fr);
    align-items: end;
    min-height: auto;
    gap: 20px;
  }

  .event-format-list h3,
  .event-format-list p {
    margin-top: 0;
  }

  .events-calendar {
    min-height: 0;
  }

  .sign-in-page {
    grid-template-columns: 1fr;
  }

  .sign-in-page__brand {
    display: flex;
    justify-content: flex-end;
    min-height: 440px;
  }

  .sign-in-page__brand img {
    width: min(48%, 310px);
  }

  .sign-in-page__panel {
    max-width: none;
  }
}

@media (max-width: 720px) {
  :root {
    --page-pad: 20px;
  }

  .site-header {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .mobile-nav-actions {
    grid-template-columns: 1fr;
  }

  .hero,
  .events-hero {
    padding-top: 62px;
    padding-bottom: 72px;
    gap: 52px;
  }

  .hero h1,
  .manifesto-hero h1,
  .events-hero h1,
  .events-hero h2 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .hero__intro {
    margin-top: 24px;
    font-size: 18px;
  }

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

  .hero__actions .button,
  .closing-cta__controls .button {
    width: 100%;
  }

  .browser-frame {
    border-radius: 9px;
    transform: none;
  }

  .browser-frame__bar {
    height: 32px;
  }

  .window-controls i {
    width: 9px;
    height: 9px;
  }

  .browser-frame__toolbar {
    min-height: 35px;
    padding: 5px 7px;
  }

  .browser-frame__toolbar span {
    width: 24px;
    height: 24px;
  }

  .browser-frame__toolbar p {
    height: 25px;
    font-size: 10px;
  }

  .founder-slide figcaption {
    bottom: 11px;
    left: 11px;
    gap: 7px;
  }

  .founder-slide figcaption strong {
    font-size: 12px;
  }

  .founder-carousel__controls {
    right: 8px;
    bottom: 8px;
    padding: 3px;
  }

  .founder-carousel__controls button {
    width: 27px;
    height: 27px;
  }

  .founder-carousel__position {
    height: 27px;
    padding: 0 5px;
  }

  .founder-carousel__position i {
    width: 10px;
  }

  .network-thesis,
  .device-feature,
  .home-events-feature,
  .manifesto-opening,
  .manifesto-section,
  .manifesto-mission,
  .manifesto-values,
  .manifesto-strategy,
  .event-formats {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .network-thesis h2 {
    font-size: clamp(48px, 14vw, 68px);
  }

  .device-feature h2,
  .home-events-feature h2,
  .event-formats h2 {
    font-size: clamp(42px, 12vw, 60px);
  }

  .device-feature__media {
    aspect-ratio: 1.12;
    max-height: none;
  }

  .home-events-feature figure {
    aspect-ratio: 1.2;
    max-height: none;
  }

  .closing-cta {
    grid-template-columns: 1fr;
    padding-top: 84px;
    padding-bottom: 0;
    text-align: left;
  }

  .closing-cta h2 {
    font-size: clamp(54px, 16vw, 82px);
  }

  .closing-cta__mark {
    min-height: 340px;
  }

  .closing-cta__mark img {
    width: min(78%, 300px);
  }

  .manifesto-hero {
    min-height: 620px;
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .manifesto-opening__lead {
    font-size: clamp(38px, 10.5vw, 54px);
  }

  .manifesto-section,
  .manifesto-strategy,
  .manifesto-mission,
  .manifesto-values__header {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .manifesto-section__content h2,
  .manifesto-mission h2,
  .manifesto-strategy h2 {
    font-size: clamp(40px, 11vw, 58px);
  }

  .manifesto-columns,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .values-grid article {
    min-height: 260px;
  }

  .manifesto-mission::after {
    left: var(--page-pad);
  }

  .strategy-list article {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .events-hero__media {
    aspect-ratio: 1.1;
    max-height: none;
  }

  .event-format-list article {
    display: flex;
    min-height: 300px;
  }

  .event-format-list h3 {
    margin-top: auto;
  }

  .event-format-list p {
    margin-top: 18px;
  }

  .events-calendar__intro {
    align-items: baseline;
    margin-bottom: 12px;
  }

  .events-calendar .inline-action {
    flex: 0 0 auto;
    margin-top: 0;
  }

  .luma-frame {
    width: 100%;
    height: clamp(460px, calc(100svh - var(--header-height) - 82px), 620px);
  }

  .luma-frame iframe {
    height: 100%;
    min-height: 100%;
  }

  .events-closing {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .member-index__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .member-index__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .index-filters {
    grid-template-columns: 1fr;
  }

  .index-filters > label,
  .index-filters > label:first-child,
  .index-filters > .ui-field {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .index-filters > label:first-child {
    border-top: 0;
  }

  .index-results {
    grid-template-columns: 1fr;
  }

  .project-card__link {
    min-height: 440px;
  }

  .project-card__content {
    padding: 24px;
  }

  .project-card h2 {
    font-size: 38px;
  }

  .index-empty {
    min-height: 420px;
  }

  .sign-in-page {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .sign-in-page__brand {
    display: flex;
    min-height: 540px;
    padding: 34px;
  }

  .sign-in-page__brand img {
    width: min(62%, 230px);
  }

  .sign-in-page__panel {
    padding: 34px 24px;
  }

  .sign-in-form__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__lead {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .site-footer__lead > p {
    font-size: clamp(36px, 11vw, 56px);
  }

  .site-footer__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
  }

  .site-footer__nav button,
  .site-footer__nav a {
    width: fit-content;
    font-size: 15px;
    text-align: left;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 24px;
  }

  .site-footer__legal {
    order: 1;
  }

  .dialog {
    width: calc(100vw - 16px);
    max-height: calc(100svh - 16px);
    padding: 26px 20px 28px;
    border-radius: 16px;
  }

  .dialog__head h2 {
    font-size: 34px;
  }

  .dialog__form {
    margin-top: 22px;
  }

  .project-import {
    padding: 16px;
  }

  .project-import__heading {
    gap: 12px;
  }

  .project-import__field {
    grid-template-columns: 1fr;
  }

  .project-import__field button {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .profile-console__header {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--ui-space-4);
  }

  .profile-console__email {
    max-width: 100%;
    text-align: left;
  }

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

@media (max-width: 640px) {
  .dialog--project {
    padding: 20px 16px 24px;
  }

  .tag-combobox {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .tag-combobox > input {
    min-width: 100%;
    flex-basis: 100%;
  }

  .project-image-field__heading,
  .project-image-field__controls,
  .profile-projects__heading {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .project-image-field__heading,
  .profile-projects__heading {
    display: grid;
  }

  .project-image-field__heading .text-button {
    justify-self: start;
  }

  .upload-control {
    width: 100%;
  }

  .profile-card,
  .profile-projects {
    padding: var(--ui-space-4);
  }

  .profile-project__actions > * {
    flex: 1 1 auto;
  }
}

@media (max-width: 1100px) {
  .project-detail__hero,
  .project-detail__body {
    grid-template-columns: 1fr;
  }

  .project-detail__copy {
    min-height: 500px;
  }

  .project-detail__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .project-detail__body {
    gap: 58px;
  }

  .project-detail__facts {
    width: min(100%, 620px);
  }
}

@media (max-width: 720px) {
  .project-detail {
    padding-top: 24px;
  }

  .project-detail__hero {
    margin-top: 22px;
    border-radius: 15px;
  }

  .project-detail__copy {
    min-height: 430px;
    padding: 30px 24px;
  }

  .project-detail__copy h1 {
    padding-top: 56px;
    font-size: clamp(56px, 18vw, 82px);
  }

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

  .project-detail__actions .button {
    width: 100%;
  }

  .project-detail__media {
    aspect-ratio: 1 / 1;
  }

  .project-detail__body {
    padding-top: 76px;
  }
}

@media (max-width: 900px) {
  .member-index__header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: var(--ui-space-6);
  }

  .member-index__actions {
    align-items: center;
    flex-direction: row;
  }

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

  .index-filters .index-search {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--ui-border);
  }

  .index-filters > label:nth-child(2) {
    border-left: 0;
  }

  .project-card__link {
    grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1.12fr);
  }

  .project-card__content {
    padding-left: var(--ui-space-6);
  }
}

@media (max-width: 720px) {
  .member-index {
    padding-top: var(--ui-space-8);
    padding-bottom: 72px;
  }

  .member-index__header {
    gap: var(--ui-space-6);
  }

  .member-index__header h1 {
    font-size: clamp(44px, 13vw, 58px);
  }

  .member-index__header p {
    font-size: 16px;
  }

  .member-index__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  .member-index__actions .button {
    width: 100%;
  }

  .index-filters {
    grid-template-columns: 1fr;
    margin-top: var(--ui-space-8);
  }

  .index-filters .index-search {
    grid-column: auto;
  }

  .index-filters > label,
  .index-filters > label:first-child,
  .index-filters > label:nth-child(2),
  .index-filters > .ui-field {
    border-top: 1px solid var(--ui-border);
    border-left: 0;
  }

  .index-filters > label:first-child {
    border-top: 0;
  }

  .index-results-bar {
    margin-top: var(--ui-space-3);
  }

  .project-card {
    padding: var(--ui-space-1);
  }

  .project-card__link {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .project-card__thumbnail {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .project-card__thumbnail::before {
    top: auto;
    right: var(--ui-space-5);
    bottom: 0;
    left: var(--ui-space-5);
    width: auto;
    height: 2px;
    border-radius: 999px 999px 0 0;
  }

  .project-card__content {
    padding: var(--ui-space-5);
  }

  .project-card h2 {
    margin-top: var(--ui-space-5);
    font-size: 34px;
  }

  .project-card__need {
    grid-template-columns: 1fr;
    gap: var(--ui-space-1);
  }

  .index-empty {
    min-height: 340px;
  }

  .project-detail__hero {
    padding: var(--ui-space-1);
  }

  .project-detail__copy {
    min-height: 380px;
    padding: var(--ui-space-6) var(--ui-space-5);
  }

  .project-detail__copy h1 {
    padding-top: var(--ui-space-10);
    font-size: clamp(50px, 16vw, 72px);
  }

  .project-detail__body {
    padding-top: 56px;
    gap: var(--ui-space-10);
  }

  .dialog--project {
    padding: var(--ui-space-5);
  }
}

@media (max-width: 1100px) {
  .directory-access {
    grid-template-columns: 1fr;
  }

  .directory-access__visual {
    min-height: 420px;
  }

  .directory-access__visual img {
    width: min(52%, 340px);
  }

  .directory-access__panel {
    max-width: none;
  }

  .admin-console__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-console__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .button--google {
    gap: var(--ui-space-3);
  }

  .directory-access {
    padding-top: var(--ui-space-6);
    padding-bottom: var(--ui-space-6);
    gap: var(--ui-space-5);
  }

  .directory-access__visual {
    min-height: 300px;
    border-radius: var(--ui-radius-panel);
  }

  .directory-access__visual img {
    width: min(61%, 250px);
  }

  .directory-access__panel {
    padding: var(--ui-space-6) var(--ui-space-5);
    border-radius: var(--ui-radius-panel);
  }

  .directory-access__panel h1 {
    font-size: clamp(44px, 14vw, 60px);
  }

  .admin-console {
    padding-top: var(--ui-space-8);
    padding-bottom: var(--ui-space-12);
  }

  .admin-console__header {
    gap: var(--ui-space-5);
  }

  .admin-console__header h1 {
    font-size: clamp(48px, 15vw, 66px);
  }

  .admin-console__header p {
    font-size: 16px;
  }

  .admin-console__actions {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 0;
  }

  .admin-console__identity {
    max-width: 100%;
  }

  .admin-access-state {
    grid-template-columns: auto minmax(0, 1fr);
    padding: var(--ui-space-4);
    gap: var(--ui-space-3);
  }

  .admin-access-state__mode {
    grid-column: 2;
    justify-self: start;
  }

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

  .admin-metrics article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--ui-border);
  }

  .admin-metrics article:nth-child(4) {
    border-top: 1px solid var(--ui-border);
  }

  .admin-metrics article {
    padding: var(--ui-space-4);
  }

  .admin-workspace__header {
    grid-template-columns: 1fr;
    align-items: start;
    padding: var(--ui-space-5);
    gap: var(--ui-space-3);
  }

  .cms-editor {
    padding: var(--ui-space-5);
    gap: var(--ui-space-4);
  }

  .cms-editor__toolbar {
    grid-template-columns: 1fr;
  }

  .cms-editor__field {
    padding: var(--ui-space-3);
  }

  .cms-editor__field-heading,
  .cms-editor__field-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .cms-editor__state {
    min-height: 20px;
    line-height: 18px;
  }

  .cms-editor__actions,
  .cms-editor__actions .button {
    width: 100%;
  }

  .admin-table th,
  .admin-table td {
    padding: var(--ui-space-3) var(--ui-space-4);
  }
}

/*
  The public site follows the visitor's operating-system appearance by default.
  The WAF signal stays chromatic; the quiet surfaces and data controls change
  around it so the experience remains legible rather than simply inverted.
*/
@media (max-width: 720px) {
  .dialog--application {
    width: calc(100vw - 16px);
  }

  .application-options {
    grid-template-columns: 1fr;
  }

  .application-option {
    min-height: 48px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --canvas: #090b10;
    --surface: #11141b;
    --surface-soft: #181c25;
    --ink: #f3f4f6;
    --ink-soft: #b0b6c1;
    --ink-faint: #858d9b;
    --line: rgba(244, 245, 247, 0.14);
    --line-dark: rgba(244, 245, 247, 0.15);
    --blue: #5d78ff;
    --cyan: #52cdf1;
    --orange: #ff875e;
    --red: #ff5a68;
    --signal: linear-gradient(90deg, #607bff 0%, #64d3f2 32%, #fbf4d8 50%, #ff8a58 72%, #ff5a68 100%);
    --signal-simple: linear-gradient(100deg, #607bff 0%, #45a8ef 38%, #ff8355 72%, #ff5a68 100%);
    --ui-background: var(--canvas);
    --ui-foreground: var(--ink);
    --ui-card: var(--surface);
    --ui-card-foreground: var(--ink);
    --ui-popover: #151923;
    --ui-popover-foreground: var(--ink);
    --ui-muted: #1b202a;
    --ui-muted-foreground: var(--ink-soft);
    --ui-subtle-foreground: var(--ink-faint);
    --ui-primary: #f3f4f6;
    --ui-primary-foreground: #090b10;
    --ui-accent: #202631;
    --ui-accent-foreground: var(--ink);
    --ui-input: rgba(244, 245, 247, 0.18);
    --ui-border: rgba(244, 245, 247, 0.14);
    --ui-border-strong: rgba(244, 245, 247, 0.28);
    --ui-ring: rgba(82, 205, 241, 0.35);
    --ui-success: #67d49e;
    --ui-warning: #f6c75e;
    --ui-danger: #ff8690;
    --ui-overlay: rgba(0, 0, 0, 0.76);
    --ui-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.28);
    --ui-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.26), 0 12px 30px rgba(0, 0, 0, 0.2);
    --ui-shadow-md: 0 24px 60px rgba(0, 0, 0, 0.32);
    --ui-shadow-popover: 0 20px 56px rgba(0, 0, 0, 0.44), 0 2px 10px rgba(0, 0, 0, 0.26);
    --ui-shadow-dialog: 0 54px 140px rgba(0, 0, 0, 0.7);
  }

  html,
  body {
    background: var(--canvas);
  }

  .site-header {
    border-bottom-color: rgba(244, 245, 247, 0.1);
    background: rgba(9, 11, 16, 0.9);
  }

  .header-actions > .language-switcher {
    border-right-color: rgba(244, 245, 247, 0.16);
  }

  .language-switcher button + button::before {
    color: rgba(244, 245, 247, 0.36);
  }

  .member-access,
  .button--ghost {
    background: rgba(255, 255, 255, 0.035);
  }

  .member-index__actions .inline-action,
  .index-filters {
    background: var(--surface);
  }

  .index-filters > label:focus-within,
  .index-filters > .ui-field:focus-within {
    box-shadow: inset 0 0 0 1px rgba(244, 245, 247, 0.08);
  }

  .button--ghost:hover {
    border-color: var(--ui-primary);
    background: var(--ui-muted);
  }

  .button--primary:hover {
    color: #fff;
  }

  .site-nav > a.is-active::after,
  .text-button::after {
    background: var(--ink);
  }

  .skip-link,
  .network-thesis,
  .manifesto-mission,
  .event-formats,
  .events-closing,
  .project-detail__facts .project-detail__ask,
  .sign-in-page__brand,
  .directory-access__visual,
  .admin-access-state,
  .site-footer,
  .toast,
  .admin-action--approve,
  .mobile-nav-actions button:last-child {
    color: #fff;
    background: var(--night);
  }

  .admin-action--approve {
    border-color: rgba(255, 255, 255, 0.38);
  }

  .admin-action--approve:hover {
    background: var(--blue);
  }

  .ui-field--select:focus-within,
  .index-filter:focus-within,
  .member-access.is-active {
    background: var(--ui-muted);
  }

  .admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
  }

  .admin-table th {
    background: rgba(255, 255, 255, 0.035);
  }

  .admin-table__empty,
  .admin-table__message {
    background: rgba(255, 255, 255, 0.02);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
