:root {
  --color-bg: #f3f0ea;
  --color-bg-elevated: #faf8f2;
  --color-ink: #090909;
  --color-muted: #77736a;
  --color-line: rgba(9, 9, 9, 0.16);
  --color-line-strong: rgba(9, 9, 9, 0.32);
  --color-accent-red: #d73524;
  --color-accent-blue: #1f5a7a;
  --color-accent-green: #2b8a57;
  --color-accent-sand: #c8b894;
  --font-display: "Arial Narrow", "Impact", sans-serif;
  --font-body: Arial, sans-serif;
  --font-mono: "Courier New", monospace;
  --border-thin: 1px solid var(--color-line);
  --border-strong: 1px solid var(--color-line-strong);
  --header-height-desktop: 72px;
  --footer-height-desktop: 40px;
  --page-max-width: 1440px;
  --motion-fast: 140ms;
  --motion-base: 240ms;
}

* {
  box-sizing: border-box;
}

* {
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(9, 9, 9, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 9, 9, 0.025) 1px, transparent 1px),
    var(--color-bg);
  background-size: 42px 42px;
  color: var(--color-ink);
  font-family: var(--font-body);
  line-height: 1.35;
}

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

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

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

h1,
h2,
h3,
p,
small,
strong,
span,
button,
a,
dt,
dd,
li {
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(520px, 1fr) minmax(430px, 500px);
  min-height: var(--header-height-desktop);
  border-bottom: var(--border-strong);
  background: rgba(250, 248, 242, 0.94);
  backdrop-filter: blur(12px);
}

.brand,
.top-nav,
.header-actions {
  display: flex;
  align-items: center;
  border-right: var(--border-thin);
}

.brand {
  gap: 12px;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.2vw, 20px);
  font-weight: 900;
  line-height: 0.88;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: var(--border-strong);
  font-family: var(--font-mono);
  font-size: 20px;
}

.top-nav {
  justify-content: flex-start;
  gap: 0;
  overflow-x: auto;
  padding: 0 18px;
  scrollbar-width: thin;
}

.nav-link {
  position: relative;
  display: inline-flex;
  min-height: var(--header-height-desktop);
  align-items: center;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-link.is-active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--color-accent-red);
  content: "";
}

.header-actions {
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  padding: 8px 14px;
  border-right: 0;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.cart-link {
  border: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.cart-link span,
.notify-link span {
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  margin: 0 4px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-ink);
  color: white;
}

.session-chip {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  max-width: 132px;
  border: var(--border-thin);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.session-chip span {
  max-width: 62px;
  padding: 0 10px;
  color: var(--color-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-chip button,
.notify-link {
  min-height: 30px;
  border: 0;
  border-left: var(--border-thin);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.session-chip button {
  max-width: 58px;
  padding: 0 8px;
  line-height: 1.05;
}

.notify-link {
  border-left: 0;
  max-width: 102px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-stamp {
  position: relative;
  flex: 0 1 190px;
  min-width: 170px;
  padding: 8px 34px 8px 14px;
  border: var(--border-strong);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
}

.location-stamp span,
.location-stamp strong {
  display: block;
}

.location-stamp i {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent-red);
  transform: translateY(-50%);
}

.screen {
  display: none;
  max-width: var(--page-max-width);
  margin: 0 auto;
  border-right: var(--border-thin);
  border-left: var(--border-thin);
}

.screen.is-visible {
  display: block;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(350px, 28%) minmax(610px, 54%) minmax(250px, 18%);
  min-height: 720px;
  border-bottom: var(--border-strong);
}

.hero-panel,
.map-panel,
.right-rail,
.band,
.lower-grid > *,
.shop-copy,
.purchase-card {
  border-right: var(--border-thin);
}

.hero-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 3vw, 44px);
  overflow: hidden;
}

.eyebrow,
.micro,
.coord-note,
.project-card p,
.work-item small,
.release-row p,
.event-list p,
.drop-story p {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-panel h1,
.shop-copy h1 {
  max-width: 100%;
  margin-bottom: 26px;
  font-family: var(--font-display);
  font-size: clamp(50px, 4vw, 76px);
  font-weight: 900;
  line-height: 0.86;
  text-transform: uppercase;
}

.lead {
  max-width: 380px;
  font-size: 16px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 22px;
  border: var(--border-strong);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
}

.button-primary {
  background: var(--color-ink);
  color: white;
}

.button-secondary {
  background: transparent;
}

.button-invert {
  width: 100%;
  margin-bottom: 10px;
  border-color: rgba(255, 255, 255, 0.32);
  color: white;
}

.button-light {
  width: 100%;
  background: var(--color-bg-elevated);
  color: var(--color-ink);
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.coord-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
}

.crosshair {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-line-strong);
  border-radius: 50%;
}

.crosshair::before,
.crosshair::after {
  position: absolute;
  background: var(--color-ink);
  content: "";
}

.crosshair::before {
  top: 50%;
  left: -8px;
  width: 40px;
  height: 1px;
}

.crosshair::after {
  top: -8px;
  left: 50%;
  width: 1px;
  height: 40px;
}

.map-panel {
  min-width: 0;
  padding: 20px 24px 0;
  overflow: hidden;
}

.map-toolbar {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 12px;
}

.search-box {
  display: flex;
  height: 34px;
  align-items: center;
  gap: 9px;
  max-width: 520px;
  padding: 0 12px;
  border: var(--border-thin);
  background: rgba(250, 248, 242, 0.72);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

.tag-filter,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  min-height: 22px;
  padding: 2px 10px;
  border: var(--border-thin);
  border-radius: 14px;
  background: rgba(250, 248, 242, 0.8);
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
  line-height: 1.15;
  text-align: center;
}

.tag.is-dark {
  background: var(--color-ink);
  color: white;
}

.tag.is-light {
  background: var(--color-bg-elevated);
  color: var(--color-ink);
}

.tag-red {
  border-color: rgba(215, 53, 36, 0.45);
  color: var(--color-accent-red);
}

.graph-wrap {
  position: relative;
  min-height: 620px;
}

.graph {
  width: 100%;
  height: min(560px, 50vw);
  min-height: 470px;
  overflow: visible;
}

.graph-grid path {
  fill: none;
  stroke: rgba(9, 9, 9, 0.06);
  stroke-width: 1;
}

.edges path {
  fill: none;
  stroke: rgba(9, 9, 9, 0.23);
  stroke-width: 1.2;
}

.discipline-labels text {
  fill: white;
  paint-order: stroke;
  stroke: rgba(31, 90, 122, 0.9);
  stroke-width: 12px;
  stroke-linejoin: round;
  font: 700 11px var(--font-mono);
}

.node {
  cursor: pointer;
}

.node circle {
  fill: #1a1a1a;
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 2;
  transition: stroke var(--motion-fast), transform var(--motion-fast);
}

.node-person circle {
  fill: url("#none");
  filter: grayscale(1);
}

.node-person:nth-of-type(1) circle { fill: #232323; }
.node-person:nth-of-type(2) circle { fill: #4b4b4b; }
.node-person:nth-of-type(3) circle { fill: #111; }
.node-person:nth-of-type(4) circle { fill: #3b3b3b; }
.node-person:nth-of-type(5) circle { fill: #252525; }
.node-person:nth-of-type(6) circle { fill: #565656; }

.node text {
  fill: var(--color-ink);
  font: 700 12px var(--font-body);
  text-anchor: middle;
}

.node text + text {
  fill: var(--color-muted);
  font: 10px var(--font-body);
}

.node-dark circle {
  fill: #050505;
}

.node-dark text {
  fill: white;
}

.node-image circle {
  fill: transparent;
  stroke: var(--color-accent-red);
  stroke-width: 3;
}

.node-image image {
  clip-path: circle(44px at 44px 44px);
  filter: grayscale(1) contrast(1.2);
}

.node:hover circle,
.node.is-selected circle {
  stroke: var(--color-accent-red);
}

.node.is-muted {
  opacity: 0.18;
}

.node.is-muted circle {
  stroke: rgba(9, 9, 9, 0.12);
}

.node.is-muted text {
  fill: rgba(9, 9, 9, 0.34);
}

.accent {
  pointer-events: none;
}

.accent.red { fill: var(--color-accent-red); }
.accent.blue { fill: var(--color-accent-blue); }
.accent.ink { fill: var(--color-ink); }

.floating-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(230px, calc(100% - 48px));
  padding: 16px;
  border: var(--border-thin);
  background: rgba(250, 248, 242, 0.96);
  box-shadow: 0 18px 38px rgba(9, 9, 9, 0.15);
}

.floating-card h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
}

.floating-card p:not(.micro) {
  font-size: 12px;
}

.graph-related {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: var(--border-thin);
}

.graph-related span {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.floating-card a {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 800;
}

.graph-insights {
  position: absolute;
  left: 20px;
  bottom: 18px;
  width: min(320px, calc(100% - 296px));
  padding: 12px;
  border: var(--border-thin);
  background: rgba(250, 248, 242, 0.94);
  box-shadow: 0 16px 34px rgba(9, 9, 9, 0.1);
}

.graph-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.graph-metrics span {
  min-height: 48px;
  padding: 7px;
  border: var(--border-thin);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
}

.graph-metrics b {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  line-height: 0.9;
}

.graph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.graph-legend span {
  padding: 5px 7px;
  border: var(--border-thin);
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  text-transform: uppercase;
}

.graph-legend span.is-active {
  border-color: var(--color-accent-red);
  color: var(--color-accent-red);
}

.graph-legend span.is-muted {
  opacity: 0.45;
}

.graph-path-proof {
  display: grid;
  border-top: var(--border-thin);
}

.graph-path-proof article {
  display: grid;
  gap: 4px;
  padding: 8px 0;
  border-bottom: var(--border-thin);
}

.graph-path-proof strong,
.graph-path-proof small {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
}

.graph-path-proof small {
  color: var(--color-muted);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.red { background: var(--color-accent-red); }
.status-dot.green { background: var(--color-accent-green); }

.right-rail {
  min-width: 0;
  border-right: 0;
  background: rgba(250, 248, 242, 0.55);
  overflow: hidden;
}

.rail-header,
.band-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 12px;
}

.rail-header h2,
.band-title h2,
.event-list h2,
.drop-story h2,
.authors-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.5vw, 22px);
  text-transform: uppercase;
}

.rail-header span,
.band-title a {
  color: var(--color-accent-red);
  font-family: var(--font-mono);
  font-size: 10px;
}

.work-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px;
  border-top: var(--border-thin);
}

.work-item img {
  width: 74px;
  height: 58px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.25);
}

.work-item strong,
.work-item small,
.work-item em {
  display: block;
}

.work-item strong {
  font-size: 13px;
  line-height: 1.15;
}

.work-item small {
  line-height: 1.2;
}

.work-item em,
.project-card span {
  color: var(--color-accent-blue);
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
}

.event-card {
  margin: 14px;
  padding: 18px 16px;
  border-top: var(--border-strong);
  background: rgba(9, 9, 9, 0.05);
}

.event-card strong {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
}

.event-card a {
  display: block;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 800;
}

.band {
  border-right: 0;
  border-bottom: var(--border-strong);
}

.media-band {
  display: grid;
  grid-template-columns: 28% 1fr;
}

.media-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: var(--border-thin);
}

.media-strip img {
  width: 100%;
  height: 128px;
  object-fit: cover;
  border-right: var(--border-thin);
  filter: grayscale(1) contrast(1.2);
}

.card-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 0 20px 18px;
}

.project-card {
  min-width: 0;
}

.project-card img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border: var(--border-thin);
  filter: grayscale(1) contrast(1.2);
}

.project-card h3 {
  margin: 8px 0 2px;
  font-size: 14px;
  line-height: 1.08;
}

.project-card p,
.project-card span {
  line-height: 1.2;
}

.red-text {
  color: var(--color-accent-red) !important;
}

.lower-grid {
  display: grid;
  grid-template-columns: 24% 44% 32%;
  min-height: 160px;
  border-bottom: var(--border-strong);
}

.event-list,
.resident-strip {
  padding: 18px 20px;
}

.event-list p {
  display: grid;
  grid-template-columns: 52px 48px 1fr;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--color-ink);
}

.resident-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.resident-row span,
.resident-row a {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  padding: 8px;
  border: var(--border-thin);
  border-radius: 50%;
  background: linear-gradient(145deg, #111, #666);
  background-position: center;
  background-size: cover;
  color: white;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  filter: grayscale(1);
  overflow: hidden;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.resident-row a:nth-of-type(1) {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.46)),
    url("./assets/resident-pavel.png");
}

.resident-row a:nth-of-type(2) {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.46)),
    url("./assets/resident-ksenia.png");
}

.resident-row a:nth-of-type(3) {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.46)),
    url("./assets/resident-dmitry.png");
}

.resident-row small {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
}

.project-layout,
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  border-bottom: var(--border-strong);
}

.residents-layout {
  display: grid;
  grid-template-columns: 30% 1fr 260px;
  min-height: calc(100vh - var(--header-height-desktop) - var(--footer-height-desktop));
  border-bottom: var(--border-strong);
}

.residents-hero,
.residents-grid,
.residents-rail {
  border-right: var(--border-thin);
}

.residents-hero,
.residents-rail {
  padding: 32px;
}

.residents-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.residents-hero h1 {
  max-width: 8ch;
  font-family: var(--font-display);
  font-size: clamp(66px, 7vw, 116px);
  line-height: 0.82;
  text-transform: uppercase;
}

.residents-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
}

.residents-grid article {
  min-height: 260px;
  padding: 22px;
  border-right: var(--border-thin);
  border-bottom: var(--border-thin);
  background: rgba(250, 248, 242, 0.68);
}

.residents-grid article.is-filtered {
  display: none;
}

.resident-avatar {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: var(--border-strong);
  border-radius: 50%;
  background: #151515;
  color: white;
  font-family: var(--font-display);
  font-size: 28px;
}

.residents-grid h2,
.residents-rail strong {
  margin: 16px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 0.95;
  text-transform: uppercase;
}

.residents-rail {
  display: grid;
  align-content: start;
  gap: 14px;
  background: #090909;
  color: white;
}

.residents-rail strong {
  display: block;
  font-size: 70px;
  line-height: 0.85;
}

.residents-rail span {
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.archive-layout {
  display: grid;
  grid-template-columns: 30% 1fr 260px;
  min-height: calc(100vh - var(--header-height-desktop) - var(--footer-height-desktop));
  border-bottom: var(--border-strong);
}

.archive-hero,
.archive-grid,
.archive-rail {
  border-right: var(--border-thin);
}

.archive-hero,
.archive-rail {
  padding: 32px;
}

.archive-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.archive-hero h1 {
  max-width: 8ch;
  font-family: var(--font-display);
  font-size: clamp(66px, 7vw, 116px);
  line-height: 0.82;
  text-transform: uppercase;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.archive-grid article {
  min-height: 330px;
  padding: 22px;
  border-right: var(--border-thin);
  border-bottom: var(--border-thin);
  background: rgba(250, 248, 242, 0.68);
}

.archive-grid article.is-filtered {
  display: none;
}

.archive-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.25);
}

.archive-grid h2,
.archive-rail strong {
  margin: 14px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(28px, 2.7vw, 36px);
  line-height: 0.95;
  text-transform: uppercase;
}

.archive-rail {
  display: grid;
  align-content: start;
  gap: 14px;
  background: #090909;
  color: white;
}

.archive-rail strong {
  display: block;
  font-size: 70px;
  line-height: 0.85;
}

.archive-rail span {
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.project-cover,
.profile-hero {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 420px;
  border-right: var(--border-thin);
  border-bottom: var(--border-thin);
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.25);
}

.project-cover > div,
.profile-hero > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
}

.project-cover h1,
.profile-hero h1 {
  max-width: 8ch;
  font-family: var(--font-display);
  font-size: clamp(54px, 5vw, 96px);
  font-weight: 900;
  line-height: 0.82;
  text-transform: uppercase;
}

.project-side,
.profile-aside {
  grid-row: span 2;
  padding: 30px;
  border-bottom: var(--border-thin);
  background: rgba(250, 248, 242, 0.68);
}

.mini-people {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.project-draft-card {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
  border: var(--border-thin);
  background: rgba(31, 90, 122, 0.08);
}

.project-draft-card strong,
.project-draft-card small {
  display: block;
}

.project-draft-card strong {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 0.95;
  text-transform: uppercase;
}

.project-draft-card small {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.mini-people a,
.compact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: var(--border-thin);
  font-weight: 800;
}

.mini-people small,
.compact-link span {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
}

.project-tabs,
.profile-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-right: var(--border-thin);
  border-bottom: var(--border-thin);
}

.team-radar {
  padding: 0 24px 24px;
  border-right: var(--border-thin);
  border-bottom: var(--border-thin);
}

.team-radar .band-title {
  padding-right: 0;
  padding-left: 0;
}

.team-radar .band-title h2 {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 34px;
  text-transform: uppercase;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: var(--border-strong);
  border-left: var(--border-thin);
}

.team-grid article {
  min-height: 150px;
  padding: 16px;
  border-right: var(--border-thin);
  border-bottom: var(--border-thin);
  background: rgba(250, 248, 242, 0.68);
}

.team-grid article.is-selected {
  background: rgba(31, 90, 122, 0.1);
  box-shadow: inset 0 0 0 1px rgba(31, 90, 122, 0.4);
}

.team-grid h3 {
  margin: 12px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 0.95;
  text-transform: uppercase;
}

.team-grid p {
  min-height: 38px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.team-grid button {
  border: 0;
  border-bottom: var(--border-strong);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.project-tabs article,
.profile-sections article {
  min-height: 250px;
  padding: 24px;
  border-right: var(--border-thin);
}

.project-tabs article:last-child,
.profile-sections article:last-child {
  border-right: 0;
}

.project-tabs h2,
.profile-sections h2 {
  font-family: var(--font-display);
  font-size: 28px;
  text-transform: uppercase;
}

.project-tabs dl {
  margin: 18px 0 0;
  border-top: var(--border-thin);
}

.project-tabs dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  padding: 8px 0;
  border-bottom: var(--border-thin);
}

.project-tabs dt,
.project-tabs dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.project-tabs dt {
  color: var(--color-muted);
}

.work-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.work-list li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.task-list li {
  display: block;
}

.task-list button {
  display: flex;
  width: 100%;
  min-height: 32px;
  align-items: center;
  gap: 9px;
  border: 0;
  border-bottom: var(--border-thin);
  background: transparent;
  color: var(--color-ink);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.task-list li.is-done button {
  color: var(--color-muted);
  text-decoration: line-through;
}

.project-tabs img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.2);
}

.media-upload {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border: var(--border-thin);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.media-upload input {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 10px;
}

.project-feed {
  grid-column: 1 / -1;
  border-bottom: var(--border-thin);
}

.feed-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 20px 22px;
  gap: 16px;
}

.feed-row article {
  min-height: 136px;
  padding: 18px;
  border: var(--border-thin);
  background: rgba(250, 248, 242, 0.58);
}

.feed-row b {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 24px;
  text-transform: uppercase;
}

.feed-row span {
  color: var(--color-accent-blue);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.profile-hero {
  grid-template-columns: 240px 1fr;
}

.profile-avatar {
  display: grid;
  width: 164px;
  height: 164px;
  place-items: center;
  align-self: center;
  justify-self: center;
  border-radius: 50%;
  background:
    linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.42)),
    url("./assets/resident-pavel.png") center/cover;
  color: white;
  font-family: var(--font-display);
  font-size: 62px;
  font-weight: 900;
  filter: grayscale(1);
}

.profile-aside strong {
  display: block;
  margin: 12px 0;
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 0.9;
}

.profile-aside span {
  display: block;
  margin-bottom: 24px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.reel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.reel-grid button {
  min-height: 142px;
  padding: 14px;
  border: var(--border-thin);
  background:
    linear-gradient(rgba(9, 9, 9, 0.46), rgba(9, 9, 9, 0.68)),
    url("./assets/asset-material-film-light.png") center/cover;
  color: white;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  filter: grayscale(1);
}

.reel-grid small {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
}

.feed-layout {
  display: grid;
  grid-template-columns: 28% 1fr 260px;
  min-height: calc(100vh - var(--header-height-desktop) - var(--footer-height-desktop));
  border-bottom: var(--border-strong);
}

.events-layout {
  display: grid;
  grid-template-columns: 30% 1fr 280px;
  min-height: calc(100vh - var(--header-height-desktop) - var(--footer-height-desktop));
  border-bottom: var(--border-strong);
}

.feed-hero,
.feed-stream,
.feed-rail,
.events-hero,
.events-board,
.events-rail,
.admin-hero,
.admin-board {
  border-right: var(--border-thin);
}

.feed-hero,
.feed-rail,
.events-hero,
.events-rail,
.admin-hero {
  padding: 32px;
}

.feed-hero,
.events-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feed-hero h1,
.events-hero h1,
.admin-hero h1 {
  max-width: 8ch;
  font-family: var(--font-display);
  font-size: clamp(54px, 5vw, 96px);
  font-weight: 900;
  line-height: 0.82;
  text-transform: uppercase;
}

.event-status-card {
  margin-top: 28px;
  padding: 16px;
  border: var(--border-strong);
  background:
    linear-gradient(rgba(250, 248, 242, 0.78), rgba(250, 248, 242, 0.9)),
    url("./assets/asset-lab-light.png") center/cover;
}

.event-status-card strong {
  display: block;
  margin: 7px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.event-status-card span {
  color: var(--color-muted);
  font-size: 12px;
}

.events-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.event-tile {
  min-height: 280px;
  padding: 24px;
  border-right: var(--border-thin);
  border-bottom: var(--border-thin);
  background: rgba(250, 248, 242, 0.68);
}

.event-tile-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 20px;
  min-height: 320px;
}

.event-tile img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.24);
}

.event-tile h2,
.events-rail h2 {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 0.95;
  text-transform: uppercase;
}

.events-rail {
  display: grid;
  align-content: start;
  gap: 12px;
  background: #090909;
  color: white;
}

.events-rail a {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.feed-stream {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0;
}

.feed-card {
  min-height: 260px;
  padding: 24px;
  border-right: var(--border-thin);
  border-bottom: var(--border-thin);
  background: rgba(250, 248, 242, 0.68);
}

.feed-card.is-filtered {
  display: none;
}

.feed-card h2,
.admin-column h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 0.96;
  text-transform: uppercase;
}

.feed-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.feed-reactions span {
  padding: 7px 9px;
  border: var(--border-thin);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.feed-reactions b {
  font-weight: 700;
}

.feed-card a,
.inline-action {
  display: inline-block;
  margin-top: 18px;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.feed-card-media {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 16px;
}

.feed-card-media img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.25);
}

.feed-rail {
  border-right: 0;
  background: rgba(9, 9, 9, 0.045);
}

.admin-layout {
  border-bottom: var(--border-strong);
}

.admin-hero {
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: 28px;
  align-items: end;
  border-bottom: var(--border-strong);
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: var(--border-strong);
}

.admin-metrics span {
  display: grid;
  min-height: 108px;
  place-items: center;
  border-right: var(--border-thin);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.admin-metrics span:last-child {
  border-right: 0;
}

.admin-metrics b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.5vw, 48px);
  line-height: 0.9;
}

.admin-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-right: 0;
}

.admin-column {
  min-height: 420px;
  padding: 20px;
  border-right: var(--border-thin);
}

.admin-column:last-child {
  border-right: 0;
}

.admin-column-dark {
  background: #080808;
  color: white;
}

.column-head {
  min-height: 76px;
  border-bottom: var(--border-strong);
}

.admin-column-dark .column-head {
  border-color: rgba(255, 255, 255, 0.26);
}

.admin-row {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-bottom: var(--border-thin);
}

.admin-column-dark .admin-row {
  border-color: rgba(255, 255, 255, 0.22);
}

.admin-row strong,
.admin-row small {
  display: block;
}

.admin-row small {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.row-actions button {
  min-height: 26px;
  border: var(--border-thin);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  cursor: pointer;
}

.order-admin-details {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 10px 0;
  border-top: var(--border-thin);
}

.order-admin-details span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.order-admin-details b {
  color: var(--color-ink);
  font-weight: 700;
  text-align: right;
}

.admin-row.is-resolved {
  opacity: 0.62;
}

.moderation-queue {
  display: grid;
  gap: 0;
  margin: 14px 0;
  border-top: var(--border-thin);
}

.moderation-queue article {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-bottom: var(--border-thin);
}

.moderation-queue article.is-resolved {
  opacity: 0.58;
}

.moderation-queue strong,
.moderation-queue small,
.moderation-queue p {
  display: block;
}

.moderation-queue small,
.moderation-queue p {
  margin: 0;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.moderation-queue p {
  color: var(--color-accent-red);
}

.admin-audit-preview {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.admin-audit-preview span,
.admin-audit-preview small {
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.admin-audit-preview strong {
  color: white;
}

.drop-teaser {
  display: flex;
  min-height: 160px;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.78), rgba(9, 9, 9, 0.18)),
    url("./assets/asset-bag-001.png") center/cover;
  color: white;
  filter: grayscale(1);
}

.drop-teaser span {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 0.95;
  font-weight: 900;
  text-transform: uppercase;
}

.drop-teaser strong {
  font-size: 16px;
  text-transform: uppercase;
}

.drop-teaser em {
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid var(--color-accent-red);
  color: var(--color-accent-red);
  font-family: var(--font-mono);
  font-style: normal;
  text-transform: uppercase;
}

.shop-hero {
  display: grid;
  grid-template-columns: 39% 39% 22%;
  min-height: 540px;
  border-bottom: var(--border-strong);
}

.shop-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 4vw, 48px) clamp(34px, 5vw, 72px);
}

.stamp {
  width: fit-content;
  margin-bottom: 28px;
  padding: 8px 12px;
  border: 1px solid var(--color-accent-red);
  color: var(--color-accent-red);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  transform: rotate(-6deg);
}

.product-visual {
  margin: 0;
  min-width: 0;
  background: #070707;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.4);
  mix-blend-mode: luminosity;
}

.purchase-card {
  padding: 46px 24px;
  border-right: 0;
  background: #080808;
  color: white;
}

.purchase-card h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 40px);
  line-height: 0.95;
  text-transform: uppercase;
}

.purchase-card dl {
  margin: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.purchase-card div {
  display: grid;
  grid-template-columns: 72px 1fr;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.purchase-card dt {
  color: rgba(255, 255, 255, 0.64);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.purchase-card dd {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
}

.inventory-note {
  margin: 12px 0;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.release-band {
  padding: 0 24px 28px;
  background: #070707;
  color: white;
}

.release-band .band-title {
  padding-right: 0;
  padding-left: 0;
}

.release-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 22px;
  overflow-x: auto;
}

.release-row article {
  min-width: 170px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.release-row img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.25);
}

.release-row span {
  display: inline-block;
  margin: 10px 10px 0;
  padding: 4px 8px;
  border: 1px solid var(--color-accent-green);
  color: var(--color-accent-green);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
}

.release-row .soon {
  border-color: #d0b400;
  color: #d0b400;
}

.release-row .sold {
  border-color: rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.68);
}

.release-row h3,
.release-row p {
  padding: 0 10px;
}

.release-row h3 {
  margin: 8px 0 3px;
  font-size: 14px;
  line-height: 1.1;
}

.drop-story {
  display: grid;
  grid-template-columns: 18% repeat(4, 1fr);
  border-bottom: var(--border-strong);
}

.drop-story h2,
.drop-story article {
  min-height: 150px;
  padding: 18px;
  border-right: var(--border-thin);
}

.drop-story h2 span {
  display: block;
  color: var(--color-accent-red);
}

.drop-story img {
  float: left;
  width: 76px;
  height: 92px;
  margin-right: 14px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.25);
}

.drop-story b {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.drop-story a {
  font-size: 12px;
  font-weight: 800;
}

.shop-bottom {
  display: grid;
  grid-template-columns: 48% 52%;
}

.authors-panel,
.popup-panel {
  padding: 24px;
  border-right: var(--border-thin);
}

.popup-panel {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 22px;
  background: #080808;
  color: white;
}

.popup-panel img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.3);
}

.popup-panel strong {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1;
}

.apply-grid {
  display: grid;
  grid-template-columns: 30% 46% 24%;
  min-height: calc(100vh - var(--header-height-desktop) - var(--footer-height-desktop));
  border-bottom: var(--border-strong);
}

.apply-hero,
.application-form,
.moderation-preview {
  padding: 32px;
  border-right: var(--border-thin);
}

.apply-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.apply-hero h1 {
  max-width: 8ch;
  font-family: var(--font-display);
  font-size: clamp(52px, 5vw, 92px);
  font-weight: 900;
  line-height: 0.84;
  text-transform: uppercase;
}

.status-stack {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.status-pill {
  width: fit-content;
  padding: 6px 10px;
  border: var(--border-thin);
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.status-pill.is-done {
  border-color: rgba(43, 138, 87, 0.35);
  color: var(--color-accent-green);
}

.status-pill.is-active {
  border-color: rgba(215, 53, 36, 0.45);
  color: var(--color-accent-red);
}

.application-form {
  display: grid;
  align-content: start;
  gap: 16px;
  background: rgba(250, 248, 242, 0.62);
}

.form-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: var(--border-strong);
}

.form-header strong {
  font-family: var(--font-display);
  font-size: 30px;
  text-transform: uppercase;
}

.application-form label,
.application-form fieldset {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.application-form label span,
.application-form legend {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.application-form > label input,
.application-form textarea {
  width: 100%;
  border: var(--border-thin);
  background: rgba(243, 240, 234, 0.7);
  color: var(--color-ink);
}

.application-form > label input,
.application-form textarea {
  padding: 11px 12px;
  outline: 0;
}

.application-form input:focus,
.application-form textarea:focus {
  border-color: var(--color-line-strong);
}

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

.application-form legend {
  grid-column: 1 / -1;
}

.application-form fieldset label {
  display: flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border: var(--border-thin);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-note {
  margin: 0;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.moderation-preview {
  border-right: 0;
  background:
    linear-gradient(rgba(9, 9, 9, 0.84), rgba(9, 9, 9, 0.72)),
    url("./assets/asset-ceh-open.png") center/cover;
  color: white;
}

.moderation-preview h2,
.cart-drawer h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 34px);
  text-transform: uppercase;
}

.moderation-preview article {
  margin: 28px 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.24);
}

.moderation-preview strong,
.moderation-preview small {
  display: block;
}

.moderation-preview small {
  margin: 6px 0 14px;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.account-grid {
  display: grid;
  grid-template-columns: 30% 44% 26%;
  min-height: calc(100vh - var(--header-height-desktop) - var(--footer-height-desktop));
  border-bottom: var(--border-strong);
}

.account-hero,
.account-form,
.account-rail {
  padding: 32px;
  border-right: var(--border-thin);
}

.account-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(rgba(250, 248, 242, 0.78), rgba(250, 248, 242, 0.9)),
    url("./assets/asset-archive-workshop.png") center/cover;
}

.account-hero h1 {
  max-width: 7ch;
  font-family: var(--font-display);
  font-size: clamp(52px, 5vw, 92px);
  font-weight: 900;
  line-height: 0.82;
  text-transform: uppercase;
}

.account-rail {
  border-right: 0;
  background: #090909;
  color: white;
}

.account-card {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(rgba(9, 9, 9, 0.64), rgba(9, 9, 9, 0.9)),
    url("./assets/asset-sviter-001.png") center/cover;
}

.account-card strong {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 0.9;
  text-transform: uppercase;
}

.account-card span,
.account-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.account-card span {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.account-metrics {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.account-metrics span {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.account-metrics b {
  color: white;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 0.95;
}

.cart-drawer,
.saved-drawer,
.notification-drawer,
.audit-drawer,
.project-create-drawer,
.inventory-drawer,
.order-detail-drawer,
.collab-drawer,
.team-drawer,
.resident-drawer,
.archive-drawer,
.reel-drawer,
.passport-drawer,
.event-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: min(390px, 100vw);
  height: 100vh;
  padding: 22px;
  border-left: var(--border-strong);
  background: var(--color-bg-elevated);
  box-shadow: -24px 0 50px rgba(9, 9, 9, 0.18);
  transform: translateX(105%);
  transition: transform var(--motion-base) ease-out;
  overflow-y: auto;
}

.cart-drawer.is-open,
.saved-drawer.is-open,
.notification-drawer.is-open,
.audit-drawer.is-open,
.project-create-drawer.is-open,
.inventory-drawer.is-open,
.order-detail-drawer.is-open,
.collab-drawer.is-open,
.team-drawer.is-open,
.resident-drawer.is-open,
.archive-drawer.is-open,
.reel-drawer.is-open,
.passport-drawer.is-open,
.event-drawer.is-open {
  transform: translateX(0);
}

.notification-drawer {
  z-index: 51;
}

.saved-drawer {
  z-index: 51;
  width: min(440px, 100vw);
}

.audit-drawer {
  z-index: 52;
  width: min(500px, 100vw);
  background: #090909;
  color: white;
}

.project-create-drawer {
  z-index: 53;
  width: min(480px, 100vw);
}

.inventory-drawer,
.order-detail-drawer {
  z-index: 54;
  width: min(480px, 100vw);
}

.order-detail-drawer {
  background: #090909;
  color: white;
}

.collab-drawer {
  z-index: 55;
}

.team-drawer {
  z-index: 56;
  width: min(460px, 100vw);
}

.resident-drawer {
  z-index: 57;
  width: min(460px, 100vw);
}

.archive-drawer {
  z-index: 58;
  width: min(500px, 100vw);
}

.reel-drawer {
  z-index: 59;
  width: min(430px, 100vw);
}

.passport-drawer,
.event-drawer {
  z-index: 60;
  width: min(520px, 100vw);
  background: #090909;
  color: white;
}

.event-drawer {
  z-index: 61;
}

.collab-drawer h2,
.saved-drawer h2,
.audit-drawer h2,
.project-create-drawer h2,
.inventory-drawer h2,
.order-detail-drawer h2,
.team-drawer h2,
.resident-drawer h2 {
  font-family: var(--font-display);
  font-size: 36px;
  text-transform: uppercase;
}

.saved-drawer > p {
  max-width: 32ch;
  color: var(--color-muted);
}

.audit-drawer > p {
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.68);
}

.project-create-drawer > p {
  max-width: 36ch;
  color: var(--color-muted);
}

.inventory-drawer > p {
  max-width: 36ch;
  color: var(--color-muted);
}

.order-detail-drawer > p {
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.68);
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.inventory-grid span {
  min-height: 76px;
  padding: 12px;
  border: var(--border-thin);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.inventory-grid b {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 0.9;
}

.inventory-meter {
  height: 8px;
  margin: 16px 0;
  border: var(--border-thin);
  background: rgba(9, 9, 9, 0.08);
}

.inventory-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--color-accent-red);
  transition: width var(--motion-base) ease;
}

.order-detail-list {
  display: grid;
  margin: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.order-detail-list article {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.order-detail-list strong,
.order-detail-list small {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.order-detail-list small {
  color: rgba(255, 255, 255, 0.68);
}

.audit-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
}

.audit-summary span {
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.audit-summary b {
  display: block;
  margin-bottom: 8px;
  color: white;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  line-height: 0.9;
}

.audit-list {
  display: grid;
  margin: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.audit-list article {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.audit-list span,
.audit-list small {
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.audit-list strong {
  color: white;
}

.saved-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.saved-metrics span {
  min-height: 84px;
  padding: 12px;
  border: var(--border-thin);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.saved-metrics b {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 0.9;
}

.saved-status-list {
  display: grid;
  margin: 18px 0;
  border-top: var(--border-strong);
}

.saved-status-list article {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-bottom: var(--border-thin);
}

.saved-status-list strong {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.saved-status-list small {
  color: var(--color-muted);
  line-height: 1.45;
}

.archive-drawer h2 {
  margin: 12px 0;
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 0.9;
  text-transform: uppercase;
}

.archive-drawer-cover {
  position: relative;
  margin: 18px 0;
  border: var(--border-strong);
  background: #090909;
}

.archive-drawer-cover img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.25);
}

.archive-drawer-cover span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(9, 9, 9, 0.68);
  color: white;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.archive-timeline,
.archive-assets {
  display: grid;
  gap: 0;
  margin: 18px 0;
  border-top: var(--border-strong);
}

.archive-timeline span,
.archive-assets span {
  padding: 10px 0;
  border-bottom: var(--border-thin);
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.archive-assets {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: var(--border-thin);
}

.archive-assets span {
  padding: 9px;
  border-right: var(--border-thin);
}

.resident-drawer-head {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  align-items: center;
  padding: 22px 0;
  border-bottom: var(--border-strong);
}

.resident-drawer-head h2 {
  margin: 4px 0 8px;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 0.9;
  text-transform: uppercase;
}

.resident-contribution {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0;
  border-top: var(--border-strong);
  border-left: var(--border-thin);
}

.resident-contribution span {
  min-height: 66px;
  padding: 9px;
  border-right: var(--border-thin);
  border-bottom: var(--border-thin);
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
}

.resident-contribution b {
  display: block;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 30px;
}

.team-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 20px 0;
  border-top: var(--border-strong);
  border-left: var(--border-thin);
}

.team-summary span {
  min-height: 62px;
  padding: 12px;
  border-right: var(--border-thin);
  border-bottom: var(--border-thin);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.team-summary b {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
}

.team-shortlist {
  display: grid;
  gap: 0;
  margin-bottom: 18px;
  border-top: var(--border-strong);
}

.team-shortlist article,
.team-shortlist p {
  margin: 0;
  padding: 14px 0;
  border-bottom: var(--border-thin);
}

.team-shortlist strong,
.team-shortlist small {
  display: block;
}

.team-shortlist small {
  margin-top: 4px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.team-shortlist div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.team-shortlist div span {
  padding: 3px 7px;
  border: var(--border-thin);
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
}

.reel-drawer h2 {
  margin: 14px 0 12px;
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 0.9;
  text-transform: uppercase;
}

.passport-hero {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.passport-hero h2 {
  margin: 6px 0 10px;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 0.86;
  text-transform: uppercase;
}

.passport-hero p:not(.micro) {
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.qr-mock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 126px;
  height: 126px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: white;
}

.qr-mock span {
  background: #090909;
}

.qr-mock span:nth-child(2),
.qr-mock span:nth-child(5),
.qr-mock span:nth-child(8),
.qr-mock span:nth-child(11),
.qr-mock span:nth-child(13) {
  background: #d73524;
}

.passport-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.passport-grid article {
  min-height: 132px;
  padding: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.passport-grid b {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.passport-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.passport-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.passport-timeline span {
  min-height: 42px;
  padding: 9px 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.passport-drawer .reel-context,
.passport-drawer .reel-actions {
  border-color: rgba(255, 255, 255, 0.24);
}

.passport-drawer .reel-context a,
.passport-drawer .reel-actions button {
  border-color: rgba(255, 255, 255, 0.22);
  color: white;
}

.passport-drawer .reel-actions button:hover,
.passport-drawer .reel-actions button:focus-visible {
  background: white;
  color: #090909;
}

.event-cover {
  position: relative;
  margin: 18px 0;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: #090909;
}

.event-cover img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.25);
  opacity: 0.82;
}

.event-cover span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(9, 9, 9, 0.64);
  color: white;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.event-drawer h2 {
  margin: 10px 0 12px;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 0.86;
  text-transform: uppercase;
}

.event-schedule {
  display: grid;
  margin: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.event-schedule span {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.reel-player {
  position: relative;
  min-height: 460px;
  margin: 18px 0;
  border: var(--border-strong);
  background: var(--color-ink);
  overflow: hidden;
}

.reel-player img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.28);
  opacity: 0.82;
}

.reel-player::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 0 72%, rgba(9, 9, 9, 0.74)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 7px);
  content: "";
}

.reel-player span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: white;
  font-family: var(--font-mono);
  font-size: 10px;
}

.reel-context {
  display: grid;
  gap: 0;
  margin: 18px 0;
  border-top: var(--border-strong);
}

.reel-context a {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: var(--border-thin);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.reel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.reel-actions button {
  min-height: 38px;
  border: var(--border-strong);
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  cursor: pointer;
}

.reel-actions button:hover,
.reel-actions button:focus-visible {
  background: var(--color-ink);
  color: white;
}

.reel-comments {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding-top: 16px;
  border-top: var(--border-strong);
}

.reel-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reel-comments-head p {
  margin: 0;
}

.reel-comments-head strong {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  line-height: 0.9;
}

.reel-comment-list {
  display: grid;
  border-top: var(--border-thin);
}

.reel-comment-list article {
  display: grid;
  gap: 5px;
  padding: 11px 0;
  border-bottom: var(--border-thin);
}

.reel-comment-list article.is-deleted {
  opacity: 0.58;
}

.reel-comment-list strong,
.reel-comment-list small,
.reel-comment-list span {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.reel-comment-list small {
  color: var(--color-muted);
  line-height: 1.45;
}

.reel-comment-list span {
  color: var(--color-accent-red);
}

.comment-replies {
  display: grid;
  gap: 6px;
  margin-top: 4px;
  padding-left: 10px;
  border-left: var(--border-thin);
}

.comment-replies p {
  margin: 0;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.45;
  text-transform: uppercase;
}

.comment-replies b {
  color: var(--color-ink);
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.comment-actions button {
  min-height: 25px;
  border: var(--border-thin);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  cursor: pointer;
}

.comment-actions button:hover,
.comment-actions button:focus-visible {
  background: var(--color-ink);
  color: white;
}

.reel-comment-form {
  display: grid;
  gap: 10px;
}

.reel-comment-form label {
  display: grid;
  gap: 7px;
}

.reel-comment-form label span {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.reel-comment-form textarea {
  width: 100%;
  resize: vertical;
  border: var(--border-strong);
  background: transparent;
  padding: 11px;
  font: inherit;
}

.reel-comment-form button {
  min-height: 40px;
  border: 0;
  background: var(--color-ink);
  color: white;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  cursor: pointer;
}

.collab-form {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}

.collab-form label {
  display: grid;
  gap: 7px;
}

.collab-form label span {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.collab-form textarea,
.collab-form input {
  width: 100%;
  padding: 11px 12px;
  border: var(--border-thin);
  background: rgba(243, 240, 234, 0.7);
  color: var(--color-ink);
  outline: 0;
}

.notification-list {
  display: grid;
  gap: 0;
  margin-top: 18px;
  border-top: var(--border-strong);
}

.notification-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.notification-summary span {
  min-height: 68px;
  padding: 12px;
  border: var(--border-thin);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.notification-summary b {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  line-height: 0.9;
}

.notification-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notification-controls button,
.notification-list button {
  min-height: 28px;
  border: var(--border-thin);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  cursor: pointer;
}

.notification-controls button.is-active,
.notification-controls button:hover,
.notification-controls button:focus-visible,
.notification-list button:hover,
.notification-list button:focus-visible {
  background: var(--color-ink);
  color: white;
}

.notification-group {
  display: grid;
  border-bottom: var(--border-strong);
}

.notification-group h3 {
  margin: 0;
  padding: 12px 0 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.notification-list article {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 14px 0;
  border-bottom: var(--border-thin);
}

.notification-list article.is-read {
  opacity: 0.58;
}

.notification-list p {
  margin: 0;
  font-size: 13px;
}

.notification-list small {
  display: block;
  margin-top: 5px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--border-strong);
}

.cart-head button {
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.cart-empty,
.cart-item,
.cart-total {
  padding: 18px 0;
  border-bottom: var(--border-thin);
}

.cart-item {
  grid-template-columns: 84px 1fr;
  gap: 14px;
}

.cart-item:not([hidden]) {
  display: grid;
}

.cart-item img {
  width: 84px;
  height: 98px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.25);
}

.cart-item strong,
.cart-item span,
.cart-item b {
  display: block;
}

.cart-item span {
  margin: 6px 0 14px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.checkout-form {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: var(--border-strong);
}

.checkout-form .form-header {
  padding-bottom: 10px;
}

.checkout-form label {
  display: grid;
  gap: 6px;
}

.checkout-form label span,
.payment-panel small {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  padding: 10px 11px;
  border: var(--border-thin);
  background: rgba(243, 240, 234, 0.72);
  color: var(--color-ink);
  outline: 0;
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
  border-color: var(--color-line-strong);
}

.order-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 18px;
  border-top: var(--border-strong);
  border-left: var(--border-thin);
}

.order-step {
  min-height: 48px;
  padding: 8px 6px;
  border-right: var(--border-thin);
  border-bottom: var(--border-thin);
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.2;
  text-transform: uppercase;
}

.order-step.is-done {
  background: rgba(43, 138, 87, 0.12);
  color: var(--color-accent-green);
}

.order-step.is-active {
  background: rgba(31, 90, 122, 0.12);
  color: var(--color-accent-blue);
}

.order-step.is-error {
  background: rgba(215, 53, 36, 0.12);
  color: var(--color-accent-red);
}

.payment-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: var(--border-strong);
  background:
    linear-gradient(rgba(9, 9, 9, 0.86), rgba(9, 9, 9, 0.72)),
    url("./assets/asset-sviter-001.png") center/cover;
  color: white;
}

.payment-panel strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

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

.payment-actions button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  cursor: pointer;
}

.payment-actions button:hover,
.payment-actions button:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  background: rgba(9, 9, 9, 0.24);
}

.drawer-scrim.is-open {
  display: block;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  min-height: var(--footer-height-desktop);
  align-items: center;
  padding: 10px 28px;
  background: var(--color-ink);
  color: white;
  font-family: var(--font-mono);
  font-size: 11px;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.site-footer nav:last-child {
  justify-content: flex-end;
}

@media (prefers-reduced-motion: no-preference) {
  .screen.is-visible {
    animation: pageIn var(--motion-base) ease-out;
  }

  .edges path {
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: draw 900ms ease-out forwards;
  }

  .accent.red {
    animation: pulse 1400ms ease-out infinite;
  }
}

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

/* Home graph v2: single contextual layer and guided cultural route. */
.screen-home .home-grid {
  grid-template-columns: minmax(300px, 24%) minmax(650px, 57%) minmax(240px, 19%);
  min-height: calc(100svh - var(--header-height-desktop));
}

.screen-home .hero-panel { padding: clamp(28px, 3vw, 52px); }
.screen-home .hero-panel h1 {
  max-width: 100%;
  font-size: clamp(48px, 3.2vw, 58px);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.screen-home .map-panel { display: grid; grid-template-rows: auto 1fr; padding: 0; background: rgba(250,248,242,.28); }
.screen-home .map-toolbar { padding: 18px 20px 12px; border-bottom: var(--border-thin); background: rgba(250,248,242,.9); backdrop-filter: blur(8px); }
.screen-home .search-box { height: 40px; }
.graph-utility-row { position: absolute; top: 18px; right: 20px; display: flex; gap: 6px; }
.graph-utility-row button { min-height: 30px; border: var(--border-thin); background: transparent; padding: 0 9px; font: 9px var(--font-mono); text-transform: uppercase; cursor: pointer; }
.screen-home .graph-wrap { min-height: 570px; overflow: hidden; }
.screen-home .graph { height: 100%; min-height: 570px; }
.screen-home .floating-card { right: 20px; bottom: 18px; z-index: 4; width: min(250px, calc(100% - 40px)); border-color: var(--color-line-strong); border-radius: 0; box-shadow: 8px 10px 0 rgba(9,9,9,.08); transition: opacity 220ms ease, transform 280ms ease; }
.screen-home .graph-insights { display: none; }
.graph-proof-details { margin-top: 12px; border-top: var(--border-thin); }
.graph-proof-details summary { padding: 9px 0; font: 9px var(--font-mono); text-transform: uppercase; cursor: pointer; }
.graph-proof-details .graph-path-proof article { padding: 7px 0; }
.graph-intro { position: absolute; left: 20px; bottom: 18px; z-index: 3; display: grid; grid-template-columns: auto minmax(160px, 300px) auto; align-items: center; gap: 12px; max-width: calc(100% - 310px); padding: 10px 12px; border-top: var(--border-strong); background: rgba(250,248,242,.88); backdrop-filter: blur(6px); font-size: 11px; }
.graph-intro span { color: var(--color-accent-red); font: 9px var(--font-mono); }
.graph-intro button { min-height: 30px; border: 0; background: transparent; font-size: 9px; font-weight: 900; text-decoration: underline; text-transform: uppercase; cursor: pointer; }
.graph-intro.is-complete { grid-template-columns: auto 1fr; }
.graph-intro.is-complete span { color: var(--color-accent-blue); }
.graph-intro.is-complete strong { font-weight: 500; }
.graph-intro.is-complete button { display: none; }
.node { transition: opacity 220ms ease, transform 380ms cubic-bezier(.2,.8,.2,1); transform-box: fill-box; transform-origin: center; }
.node.is-selected { transform: scale(1.06); }
.node.is-neighbour { opacity: 1; }
.node.is-focus-muted { opacity: .16; }
.node.is-intro-hidden { opacity: 0; pointer-events: none; }
.graph-wrap.has-focus .edges path { opacity: .34; }
.graph-wrap.is-intro .edges path { stroke-dasharray: 900; animation: draw 780ms ease-out both; }

@media (max-width: 1050px) {
  .screen-home .home-grid { grid-template-columns: 1fr; }
  .graph-utility-row { position: static; }
}

@media (max-width: 720px) {
  .screen-home .hero-panel { min-height: calc(100svh - 64px); }
  .screen-home .hero-panel h1 { font-size: clamp(50px, 16vw, 68px); }
  .screen-home .map-toolbar { padding: 12px; }
  .graph-utility-row { overflow-x: auto; }
  .graph-utility-row button { min-height: 40px; white-space: nowrap; }
  .screen-home .graph-wrap { min-height: 620px; overflow-x: auto; }
  .screen-home .graph { width: 760px; max-width: none; }
  .screen-home .floating-card { position: fixed; right: 0; bottom: 0; left: 0; z-index: 40; width: 100%; max-height: 48svh; overflow-y: auto; border-bottom: 0; box-shadow: 0 -12px 40px rgba(9,9,9,.2); }
  .graph-wrap:not(.has-focus) .floating-card, .graph-wrap.is-intro .floating-card { display: none; }
  .graph-intro { right: 12px; left: 12px; bottom: 12px; max-width: none; grid-template-columns: auto 1fr; }
  .graph-intro button { grid-column: 2; min-height: 40px; justify-self: start; }
}

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

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes pulse {
  50% { opacity: 0.42; }
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: 220px 1fr;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    min-height: 46px;
    border-top: var(--border-thin);
  }

  .home-grid,
  .shop-hero,
  .drop-story,
  .shop-bottom,
  .apply-grid,
  .account-grid,
  .project-layout,
  .profile-layout,
  .residents-layout,
  .residents-grid,
  .archive-layout,
  .archive-grid,
  .project-cover,
  .profile-hero,
  .project-tabs,
  .profile-sections,
  .team-grid,
  .feed-row,
  .feed-layout,
  .feed-stream,
  .events-layout,
  .events-board,
  .admin-hero,
  .admin-board,
  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .right-rail,
  .hero-panel,
  .map-panel,
  .shop-copy,
  .purchase-card,
  .apply-hero,
  .application-form,
  .moderation-preview,
  .account-hero,
  .account-form,
  .account-rail,
  .project-cover,
  .project-side,
  .profile-hero,
  .profile-aside,
  .residents-hero,
  .residents-grid,
  .residents-rail,
  .archive-hero,
  .archive-grid,
  .archive-rail,
  .project-tabs,
  .profile-sections,
  .team-radar,
  .feed-hero,
  .feed-stream,
  .feed-rail,
  .events-hero,
  .events-board,
  .events-rail,
  .admin-hero,
  .admin-board,
  .admin-column {
    border-right: 0;
    border-bottom: var(--border-thin);
  }

  .media-band,
  .lower-grid {
    grid-template-columns: 1fr;
  }

  .card-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .drop-story h2,
  .drop-story article {
    border-right: 0;
    border-bottom: var(--border-thin);
  }
}

@media (max-width: 720px) {
  .site-header {
    position: relative;
    grid-template-columns: 1fr;
  }

  .brand,
  .top-nav,
  .header-actions {
    border-right: 0;
  }

  button,
  .button,
  .icon-button,
  .notify-link,
  .cart-link,
  .tag,
  .inline-action,
  .text-button {
    min-height: 40px;
  }

  input,
  select,
  textarea {
    max-width: 100%;
  }

  .top-nav {
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding: 12px 18px;
    border-top: var(--border-thin);
  }

  .nav-link.is-active::after {
    bottom: -13px;
  }

  .hero-panel,
  .shop-copy,
  .apply-hero,
  .application-form,
  .moderation-preview,
  .account-hero,
  .account-form,
  .account-rail,
  .project-cover > div,
  .profile-hero > div:last-child,
  .project-side,
  .profile-aside,
  .residents-hero,
  .residents-rail,
  .residents-grid article,
  .archive-hero,
  .archive-rail,
  .archive-grid article,
  .project-tabs article,
  .profile-sections article,
  .team-radar,
  .team-grid article,
  .feed-hero,
  .feed-rail,
  .events-hero,
  .events-rail,
  .event-tile,
  .admin-hero,
  .admin-column {
    padding: 26px 18px;
  }

  .hero-panel h1,
  .shop-copy h1,
  .apply-hero h1,
  .account-hero h1,
  .project-cover h1,
  .profile-hero h1,
  .residents-hero h1,
  .archive-hero h1,
  .feed-hero h1,
  .events-hero h1,
  .admin-hero h1 {
    max-width: 8ch;
    font-size: 62px;
  }

  .feed-card-media {
    grid-template-columns: 1fr;
  }

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

  .checkout-form,
  .collab-form,
  .reel-comment-form {
    min-width: 0;
  }

  .row-actions,
  .reel-actions,
  .comment-actions,
  .payment-actions,
  .notification-controls {
    grid-template-columns: 1fr;
  }

  .cart-drawer,
  .saved-drawer,
  .notification-drawer,
  .audit-drawer,
  .project-create-drawer,
  .inventory-drawer,
  .order-detail-drawer,
  .collab-drawer,
  .team-drawer,
  .resident-drawer,
  .archive-drawer,
  .reel-drawer,
  .passport-drawer,
  .event-drawer {
    width: 100vw;
    padding: 18px;
  }

  .map-panel {
    padding: 14px;
  }

  .graph-wrap {
    min-height: 440px;
    overflow-x: auto;
  }

  .graph {
    width: 760px;
    max-width: none;
  }

  .floating-card {
    right: 14px;
    bottom: 14px;
    width: min(260px, calc(100vw - 42px));
  }

  .graph-insights {
    position: relative;
    left: auto;
    bottom: auto;
    width: 760px;
    max-width: none;
    margin-top: 14px;
  }

  .right-rail {
    display: block;
  }

  .media-strip,
  .card-row {
    display: flex;
    overflow-x: auto;
  }

  .media-strip img,
  .project-card {
    min-width: 220px;
  }

  .release-row {
    grid-template-columns: repeat(5, 210px);
  }

  .popup-panel {
    grid-template-columns: 1fr;
  }

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

  .site-footer nav,
  .site-footer nav:last-child {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
