/* Home ------------------------------------------------------------------ */
.home-hero {
  min-height: 680px;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
  border-bottom: 0;
}

.home-hero::before {
  position: absolute;
  inset: var(--nav-height) 0 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent calc(100% / 12 - 1px),
    var(--line) calc(100% / 12 - 1px),
    var(--line) calc(100% / 12)
  );
  opacity: .62;
  content: '';
  pointer-events: none;
}

.home-hero .wrap.hero-layout {
  min-height: 618px;
  padding: 86px 0 76px;
  display: block;
  position: relative;
  z-index: 1;
}

.hero-content {
  width: min(1040px, 100%);
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.hero-kicker > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 12%, transparent);
}

.hero-title {
  max-width: 1020px;
  margin-top: 36px;
  font-family: var(--font-display);
  font-size: clamp(84px, 9vw, 136px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .82;
  text-transform: none;
}

.hero-bottom {
  width: min(720px, 100%);
  margin-top: clamp(56px, 6vw, 82px);
  padding-top: 0;
}

.hero-copy { max-width: 590px; }
.hero-copy > p { color: var(--muted); font-size: var(--text-copy); font-weight: 300; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 28px; flex-wrap: wrap; }

.scope-divider {
  height: clamp(82px, 6vw, 104px);
  margin: -6px 0 38px;
  position: relative;
  z-index: 3;
  overflow: hidden;
  background: var(--ink);
}

.scope-divider .scope-marquee {
  width: 104vw;
  padding: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  border-color: color-mix(in srgb, var(--ink) 36%, transparent);
  background: var(--yellow);
  transform: translate(-50%, -50%) rotate(-1.15deg);
  transform-origin: center;
}

.scope-divider .drx-marquee-track { animation-duration: 48s; will-change: transform; }
.scope-divider .drx-marquee-item { gap: 14px; padding: 15px 18px; }
.scope-divider .drx-marquee-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 750;
  letter-spacing: .025em;
}
.scope-divider .drx-marquee-name i { font-size: .82em; }
.scope-divider .drx-marquee-sep { padding-inline: 8px; color: var(--ink); font-size: 13px; }

.home-section { background: var(--ink); }
.home-section + .home-section { border-top: 0; }

/* Principles and services ---------------------------------------------- */
.focus-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid > .drx-card { border: 0; }

.principle-card {
  min-height: 240px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  border-top: 2px solid var(--yellow) !important;
  transition: background-color 240ms ease, border-color 240ms ease, box-shadow 240ms var(--ease-out), transform 240ms var(--ease-out);
}

.principle-card:nth-child(even) { border-top-color: var(--blue) !important; }
.principle-index { color: var(--muted); font-size: var(--text-meta); letter-spacing: .14em; text-transform: uppercase; }

.principle-title {
  margin-top: 40px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 650;
  line-height: .95;
  text-transform: uppercase;
}

.principle-copy { margin-top: 16px; color: var(--muted); font-size: var(--text-detail); line-height: 1.76; }

.principle-card::after {
  position: absolute;
  right: -4px;
  bottom: -23px;
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  opacity: .35;
  content: attr(data-index);
  pointer-events: none;
  transition: color 240ms ease, opacity 240ms ease, transform 240ms var(--ease-out);
}

.principle-card:hover {
  background: var(--ink-3);
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--blue) 55%, transparent);
  transform: translateY(-5px);
}

.principle-card:hover::after { color: var(--blue); opacity: .55; transform: translate(-7px, -5px); }

.services-grid {
  grid-template-columns: 1fr;
  gap: 0;
  border-inline: 0;
  background: transparent;
}

.service-card {
  min-height: 0;
  padding: 30px 0;
  display: grid;
  grid-template-columns: 64px minmax(220px, .68fr) minmax(340px, 1fr) auto;
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line) !important;
  background: transparent;
  transition: background 220ms ease, padding 220ms ease;
}

.service-card:last-child { border-bottom: 1px solid var(--line) !important; }
.service-card:hover { padding-inline: 18px; background: var(--ink-2); }
.service-card:hover .service-number { color: var(--yellow); transform: translateX(5px); }
.service-card:hover .service-title { transform: translateX(4px); }
.service-number,
.service-title { transition: color 220ms ease, transform 220ms var(--ease-out); }
.service-number {
  color: var(--blue);
  font-size: 10px;
  letter-spacing: .16em;
}

.service-title {
  max-width: 440px;
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: .95;
  text-transform: uppercase;
}

.service-title em { color: var(--yellow); font-style: normal; }
.service-card:nth-child(even) .service-title em { color: var(--blue); }
.service-description { max-width: 600px; margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.service-card .text-link { justify-self: end; white-space: nowrap; }
.home-cta { margin-top: 72px; }

/* Process --------------------------------------------------------------- */
.process-list { counter-reset: process; border-top: 1px solid var(--line); }
.process-step {
  counter-increment: process;
  display: grid;
  grid-template-columns: 72px minmax(180px, .55fr) 1fr;
  gap: 30px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.process-step::before { color: var(--yellow); font-size: 9.5px; letter-spacing: .14em; content: '0' counter(process); }
.process-step h3 { font-family: var(--font-display); font-size: 23px; font-weight: 650; line-height: 1; text-transform: uppercase; }
.process-step p { color: var(--muted); font-size: 12px; line-height: 1.78; }

/* Projects -------------------------------------------------------------- */
.projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 0;
  background: transparent;
}
.project-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line) !important;
  background: var(--ink-2);
  transition: border-color 240ms ease, box-shadow 280ms var(--ease-out), transform 240ms var(--ease-out);
}

.project-card:hover,
.project-card:focus-within {
  border-color: var(--blue) !important;
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--yellow) 18%, transparent);
  transform: translateY(-6px);
}

.project-followup { padding-top: 0; background: var(--ink-2); }

.project-cover {
  aspect-ratio: 2 / 1;
  display: block;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-color: var(--ink-3);
  background-image:
    linear-gradient(90deg, transparent 49.7%, var(--line) 50%, transparent 50.3%),
    linear-gradient(0deg, transparent 49.7%, var(--line) 50%, transparent 50.3%);
  background-size: 54px 54px;
}

.project-cover::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 48%, rgb(8 8 16 / .62) 100%);
  content: '';
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.project-cover.has-preview::after { opacity: 1; }
.project-cover:focus-visible { outline: 2px solid var(--yellow); outline-offset: -2px; }

.project-card:nth-child(3n + 2) .project-cover { background-color: color-mix(in srgb, var(--ink-3) 88%, var(--blue)); }
.project-card:nth-child(3n) .project-cover { background-color: color-mix(in srgb, var(--ink-3) 88%, var(--yellow)); }

.project-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(.82) contrast(1.03);
  transition: opacity 180ms ease, transform 240ms ease, filter 180ms ease;
}

.project-cover.has-preview .project-preview { opacity: 1; }
.project-cover:hover .project-preview { transform: scale(1.015); filter: saturate(1) contrast(1.04); }

.project-code {
  position: absolute;
  right: 16px;
  bottom: 3px;
  color: var(--foreground);
  font-family: var(--font-display);
  font-size: 78px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .8;
  opacity: .2;
  transition: opacity 180ms ease;
}

.project-cover.has-preview .project-code { opacity: 0; }

.project-view {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .11em;
  pointer-events: none;
  text-transform: uppercase;
  transition: opacity 220ms ease, transform 220ms var(--ease-out), background-color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .project-view { opacity: 0; transform: translateY(12px); }
  .project-card:hover .project-view,
  .project-card:focus-visible .project-view { opacity: 1; transform: translateY(0); }
}

.project-content { padding: 22px 22px 26px; }
.project-eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.project-repository-meta { min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.project-category { color: var(--muted); font-size: 8.5px; letter-spacing: .1em; text-align: right; text-transform: uppercase; }
.project-content h2 { margin-top: 22px; font-family: var(--font-display); font-size: 27px; font-weight: 700; line-height: .95; text-transform: uppercase; }
.project-title-link { display: inline-flex; align-items: center; gap: 8px; }
.project-title-link i { color: var(--muted); font-size: 12px; }
.project-title-link:hover { color: var(--yellow); }
.project-description { min-height: 78px; margin: 15px 0 20px; color: var(--muted); font-size: 11.5px; line-height: 1.72; }

.provenance-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.provenance-card { min-height: 190px; padding: 26px 24px; background: var(--ink-2); }
.provenance-card > span { color: var(--blue); font-size: var(--text-meta); letter-spacing: .14em; text-transform: uppercase; }
.provenance-card h3 { margin-top: 28px; font-family: var(--font-display); font-size: 24px; font-weight: 650; text-transform: uppercase; }
.provenance-card p { margin-top: 12px; color: var(--muted); font-size: var(--text-detail); line-height: 1.75; }

/* Profile --------------------------------------------------------------- */
.profile-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.profile-sidebar { padding: 32px 28px; background: var(--ink); }
.profile-avatar {
  aspect-ratio: 1;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.profile-avatar::after { position: absolute; inset: 12px; border: 1px solid rgb(8 8 16 / .14); content: ''; pointer-events: none; }
.profile-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }

.contact-list { border-top: 1px solid var(--line); }
.contact-list > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--muted); font-size: var(--text-meta); letter-spacing: .15em; text-transform: uppercase; }
.contact-list dd { margin-top: 3px; overflow-wrap: anywhere; color: var(--foreground); font-size: 11px; }
.contact-list a { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); }
.contact-list a:hover { color: var(--yellow); }

.profile-links { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.profile-links > span { color: var(--muted); font-size: var(--text-meta); letter-spacing: .15em; text-transform: uppercase; }
.profile-link-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.profile-links a {
  min-width: 0;
  min-height: 44px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  color: var(--foreground);
  font-size: 8px;
  letter-spacing: .055em;
  line-height: 1.25;
  text-transform: uppercase;
}
.profile-links a { transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 220ms var(--ease-out), transform 220ms var(--ease-out); }
.profile-links a:hover { border-color: var(--blue); color: var(--blue); background: var(--ink-3); box-shadow: 3px 3px 0 color-mix(in srgb, var(--yellow) 22%, transparent); transform: translate(-2px, -2px); }
.profile-links i { width: 18px; height: 18px; display: grid; place-items: center; color: var(--blue); font-size: 13px; }
.profile-link-logo { width: 20px; height: 20px; display: block; object-fit: contain; }
.profile-link-label { min-width: 0; overflow-wrap: anywhere; }

.profile-main { padding: 46px 44px; background: var(--ink-2); }
.profile-overline { color: var(--muted); font-size: var(--text-meta); letter-spacing: .15em; text-transform: uppercase; }
.profile-name { margin-top: 14px; font-family: var(--font-display); font-size: clamp(68px, 7vw, 96px); font-weight: 800; letter-spacing: -.035em; line-height: .78; text-transform: none; }
.profile-role { max-width: 680px; margin: 24px 0 28px; color: var(--yellow); font-size: 13px; line-height: 1.65; }
.profile-bio { max-width: 760px; margin-bottom: 15px; color: var(--muted); font-size: var(--text-copy); line-height: 1.8; }

.profile-interests { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.profile-interests h3 { margin-top: 14px; font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; line-height: .93; text-transform: uppercase; }
.profile-interest-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.profile-interest-card {
  min-width: 0;
  min-height: 164px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--ink);
}

.profile-interest-card > i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--yellow);
  font-size: 17px;
}

.profile-interest-card:nth-child(even) > i { color: var(--blue); }
.profile-interest-card h4 { font-family: var(--font-display); font-size: 18px; font-weight: 650; line-height: 1; text-transform: uppercase; }
.profile-interest-card p { margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.65; }

.technology-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.technology-group { padding: 26px 24px; background: var(--ink-2); }
.technology-group:first-child { grid-column: 1 / -1; --technology-columns: 4; }
.technology-head { display: flex; align-items: baseline; gap: 16px; }
.technology-index { color: var(--yellow); font-size: var(--text-meta); letter-spacing: .12em; }
.technology-head h2 { margin: 0; font-family: var(--font-display); font-size: 23px; font-weight: 650; line-height: 1; text-transform: uppercase; }
.technology-note { margin: 12px 0 20px; color: var(--muted); font-size: 10.5px; line-height: 1.6; }

.technology-list {
  display: grid;
  grid-template-columns: repeat(var(--technology-columns, 2), minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.technology-item {
  min-width: 0;
  min-height: 52px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  background: var(--ink);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.technology-item:hover { border-color: var(--blue); background: var(--ink-3); transform: translateY(-3px); }
.technology-item { transition: border-color 180ms ease, background-color 180ms ease, transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
.technology-item:hover { box-shadow: 3px 3px 0 color-mix(in srgb, var(--yellow) 18%, transparent); }
.technology-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  color: var(--yellow);
  font-size: 19px;
}

.technology-mark img { width: 38px; height: 38px; display: block; object-fit: contain; }
.technology-monogram {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--blue);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.technology-name { min-width: 0; color: var(--foreground); font-size: 10px; line-height: 1.3; }
.technology-item.is-primary { border-color: color-mix(in srgb, var(--yellow) 55%, var(--line)); }
.technology-badge { margin-left: auto; padding: 3px 6px; color: var(--ink); background: var(--yellow); font-size: 7.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

.language-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}


.language-item {
  --proficiency-color: var(--muted);
  --proficiency-tint: transparent;
  min-height: 180px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 0;
  border-top: 3px solid var(--proficiency-color);
  background: var(--ink);
}

.language-item[data-proficiency="active"] { --proficiency-color: var(--success); --proficiency-tint: color-mix(in srgb, var(--success) 9%, transparent); }
.language-item[data-proficiency="developing"] { --proficiency-color: var(--warning); --proficiency-tint: color-mix(in srgb, var(--warning) 9%, transparent); }
.language-item[data-proficiency="beginner"] { --proficiency-color: var(--danger); --proficiency-tint: color-mix(in srgb, var(--danger) 9%, transparent); }
.language-item { transition: background-color 220ms ease, border-color 180ms ease, box-shadow 220ms var(--ease-out), transform 220ms var(--ease-out); }
.language-item:hover,
.language-item:focus-within { background: linear-gradient(180deg, var(--proficiency-tint), transparent 68%), var(--ink-3); box-shadow: inset 0 3px 0 var(--proficiency-color); transform: translateY(-4px); }

.language-flag {
  width: 54px;
  height: 37px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  color: var(--yellow);
  background: var(--ink);
  font-size: 16px;
}

.language-flag img { width: 52px; height: 35px; display: block; object-fit: cover; }
.language-proficiency { margin-top: 18px; display: inline-flex; align-items: center; gap: 7px; color: var(--proficiency-color); font-size: 8px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.language-proficiency::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ''; }
.language-item h3 { margin-top: 10px; font-family: var(--font-display); font-size: 27px; font-weight: 650; line-height: 1; text-transform: uppercase; }
.language-item p { margin-top: auto; padding-top: 24px; color: var(--muted); font-size: 9.5px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }

/* Resource library ------------------------------------------------------ */
.resource-library-head { margin-bottom: 30px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.resource-library-note { max-width: 560px; color: var(--muted); font-size: var(--text-detail); line-height: 1.75; }
.resource-discovery { margin-bottom: 18px; border: 1px solid var(--line); background: var(--ink); }
.resource-query-row { padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.resource-query-row .drx-field { margin: 0; }
.resource-query-row .drx-label { display: block; margin-bottom: 9px; }
.resource-query-row .drx-input,
.resource-query-row .drx-select { min-height: 44px; }
.resource-result-bar { min-height: 42px; padding: 12px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; }
.resource-result-bar [data-resource-count] { color: var(--foreground); }
.resource-clear { min-height: 44px; padding: 8px 14px; font-size: 11px; }
.resource-filter-shell { padding: 8px 22px 22px; }
.resource-filter-shell[hidden] { display: none !important; }
.resource-count { flex: 0 0 auto; color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.resource-card {
  min-width: 0;
  min-height: 390px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line) !important;
  background: var(--ink);
  transition: border-color 180ms ease, box-shadow 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.resource-card[hidden] { display: none !important; }
.resource-card:hover,
.resource-card:focus-within { border-color: var(--blue) !important; box-shadow: 6px 6px 0 color-mix(in srgb, var(--yellow) 15%, transparent); transform: translateY(-4px); }
.resource-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.resource-card-identity { min-width: 0; display: flex; align-items: center; gap: 12px; }
.resource-mark {
  width: 50px;
  height: 50px;
  position: relative;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--ink-3);
}
.resource-mark img { width: 38px; height: 38px; position: absolute; inset: 6px; object-fit: contain; }
.resource-mark-fallback { color: var(--blue); font-size: 7px; font-weight: 700; letter-spacing: .08em; }
.resource-mark.has-icon .resource-mark-fallback { opacity: 0; }
.resource-category,
.resource-channel { color: var(--muted); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; }
.resource-channel { display: inline-flex; align-items: center; gap: 6px; color: var(--success); }
.resource-channel::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ''; }
.resource-title { margin-top: 28px; font-family: var(--font-display); font-size: 30px; font-weight: 720; letter-spacing: -.015em; line-height: .94; text-transform: uppercase; }
.resource-description { margin-top: 15px; color: var(--muted); font-size: var(--text-detail); line-height: 1.72; }
.resource-card .tag-list { margin-top: 18px; }
.resource-meta { margin: auto 0 0; padding-top: 25px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.resource-meta div { padding-top: 11px; border-top: 1px solid var(--line); }
.resource-meta dt,
.resource-modal-meta dt { color: var(--muted); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.resource-meta dd,
.resource-modal-meta dd { margin-top: 7px; color: var(--foreground); font-family: var(--font-display); font-size: 15px; font-weight: 650; }
.resource-actions { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.resource-actions .drx-btn { width: 100%; padding-inline: 12px; }
.resource-empty { padding: 42px 24px; border: 1px solid var(--line); color: var(--muted); background: var(--ink); text-align: center; }
.resource-source-panel { margin-top: 30px; padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid var(--line); border-left: 2px solid var(--blue); background: var(--ink); }
.resource-source-panel p { max-width: 760px; color: var(--muted); font-size: var(--text-detail); line-height: 1.75; }
.resource-modal-overlay { padding: 24px; }
.resource-modal { width: min(820px, calc(100vw - 32px)); max-height: min(88vh, 900px); border-radius: 0; }
.resource-modal-header { align-items: flex-start; }
.resource-modal-header .section-label { margin-bottom: 9px; }
.resource-modal-body { overflow-y: auto; }
.resource-modal-intro { display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: start; }
.resource-modal-intro .resource-mark { width: 58px; height: 58px; }
.resource-modal-intro .resource-mark img { width: 44px; height: 44px; inset: 7px; }
.resource-modal-description { color: var(--muted); font-size: 12px; line-height: 1.8; }
.resource-modal-meta { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.resource-modal-meta div { padding: 16px; background: var(--ink-2); }
.resource-modal-section { margin-top: 30px; }
.resource-modal-section > h3,
.resource-terms h3 { margin-bottom: 14px; font-family: var(--font-display); font-size: 19px; font-weight: 700; text-transform: uppercase; }
.resource-install-steps { padding-left: 20px; color: var(--muted); font-size: 11px; line-height: 1.75; }
.resource-install-steps li + li { margin-top: 7px; }
.resource-version-list { border-top: 1px solid var(--line); }
.resource-version { padding: 15px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.resource-version strong { display: inline-block; margin-right: 10px; font-family: var(--font-display); font-size: 16px; }
.resource-version span { color: var(--muted); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.resource-version p { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.resource-terms { margin-top: 28px; padding: 18px 20px; border-left: 2px solid var(--yellow); background: var(--ink-3); }
.resource-terms p { color: var(--muted); font-size: 10.5px; line-height: 1.72; }
.resource-modal-footer { justify-content: space-between; }

/* Project showcase ------------------------------------------------------ */
.showcase { border: 1px solid var(--line); background: var(--ink-2); }
.showcase-viewport { overflow: hidden; touch-action: pan-y; }
.showcase-track { display: flex; align-items: stretch; transition: transform 520ms var(--ease-out); }
.showcase-slide { flex: 0 0 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); }
.showcase-media { min-height: 380px; position: relative; overflow: hidden; border-right: 1px solid var(--line); background: var(--ink-3); }
.showcase-media.is-repository.has-preview { background: #fff; }
.showcase-image { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; opacity: 0; transition: opacity 240ms ease, transform 400ms var(--ease-out); }
.showcase-media.is-repository .showcase-image { object-fit: contain; }
.showcase-media.has-preview .showcase-image { opacity: 1; }
.showcase-media.has-preview .project-media-placeholder { opacity: 0; }
.showcase-media:hover .showcase-image { transform: scale(1.018); }
.showcase-media:focus-visible { outline: 2px solid var(--yellow); outline-offset: -2px; }
.showcase-content { padding: 38px; display: flex; flex-direction: column; justify-content: center; }
.showcase-eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.showcase-content h3 { margin-top: 28px; font-family: var(--font-display); font-size: clamp(44px, 5vw, 68px); font-weight: 780; letter-spacing: -.035em; line-height: .95; overflow-wrap: anywhere; }
.showcase-content > p { margin-top: 23px; color: var(--muted); font-size: 13px; line-height: 1.78; }
.showcase-content .tag-list { margin-top: 24px; }
.showcase-content .text-link { margin-top: 30px; align-self: flex-start; }
.showcase-progress { padding: 0 18px; display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 6px; border-top: 1px solid var(--line); }
.showcase-step { height: 34px; padding: 0; position: relative; border: 0; background: transparent; cursor: pointer; }
.showcase-step::before,
.showcase-step-fill { position: absolute; top: 50%; left: 0; right: 0; height: 2px; margin-top: -1px; }
.showcase-step::before { background: var(--line-strong); content: ''; transition: background 180ms ease; }
.showcase-step:hover::before { background: var(--blue); }
.showcase-step-fill { background: var(--yellow); transform: scaleX(0); transform-origin: left; }
.showcase-step.is-done .showcase-step-fill { transform: scaleX(1); }

/* Project case studies -------------------------------------------------- */
.project-case-banner { position: relative; overflow: hidden; background: var(--ink-3); }
.project-media-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 28px; background-image: linear-gradient(135deg, color-mix(in srgb, var(--blue) 13%, transparent), transparent 58%), linear-gradient(90deg, transparent 49.8%, var(--line) 50%, transparent 50.2%), linear-gradient(0deg, transparent 49.8%, var(--line) 50%, transparent 50.2%); background-size: auto, 64px 64px, 64px 64px; transition: opacity 220ms ease; }
.project-media-placeholder span { color: var(--yellow); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.project-media-placeholder strong { margin-top: 12px; color: var(--foreground); font-family: var(--font-display); font-size: clamp(82px, 12vw, 146px); font-weight: 800; letter-spacing: -.06em; line-height: .66; opacity: .34; }
.project-banner-image { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; opacity: 0; transition: opacity 240ms ease, transform 400ms var(--ease-out); }
.has-project-image > .project-banner-image { opacity: 1; }
.has-project-image > .project-media-placeholder { opacity: 0; }

.project-case-page { background: var(--ink); }
.project-case-hero { padding: calc(var(--nav-height) + 34px) 0 38px; scroll-margin-top: calc(var(--nav-height) + 50px); }
.project-case-banner { width: 100%; min-height: 430px; aspect-ratio: 2.75 / 1; border: 1px solid var(--line); }
.project-banner-placeholder { background-image: linear-gradient(112deg, color-mix(in srgb, var(--blue) 16%, transparent), transparent 46%), linear-gradient(18deg, color-mix(in srgb, var(--yellow) 8%, transparent), transparent 58%), linear-gradient(90deg, transparent 49.85%, var(--line) 50%, transparent 50.15%), linear-gradient(0deg, transparent 49.85%, var(--line) 50%, transparent 50.15%); background-size: auto, auto, 72px 72px, 72px 72px; }
.project-banner-placeholder strong { font-size: clamp(110px, 18vw, 220px); }
.project-case-identity { margin-top: -54px; padding-inline: 34px; position: relative; z-index: 2; display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 28px; align-items: end; }
.project-case-logo { width: 132px; height: 132px; position: relative; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 10px 10px 0 color-mix(in srgb, var(--yellow) 22%, transparent); background: var(--ink-2); }
.project-logo-placeholder { color: var(--yellow); font-family: var(--font-display); font-size: 38px; font-weight: 800; letter-spacing: -.04em; }
.project-logo-image { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; opacity: 0; transition: opacity 220ms ease; }
.project-case-logo.has-project-image .project-logo-image { opacity: 1; }
.project-case-logo.has-project-image .project-logo-placeholder { opacity: 0; }
.project-case-title { padding-top: 70px; }
.project-case-title h1 { margin-top: 16px; font-family: var(--font-display); font-size: clamp(66px, 9vw, 112px); font-weight: 800; letter-spacing: -.045em; line-height: .72; text-transform: uppercase; }
.project-case-role { margin-top: 22px; color: var(--blue); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.project-case-state { margin-top: 13px; display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.project-case-actions { padding-bottom: 4px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.project-section-nav { position: sticky; top: var(--nav-height); z-index: 80; border-block: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 92%, transparent); backdrop-filter: blur(14px); }
.project-section-nav-inner { min-height: 54px; display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.project-section-nav-inner::-webkit-scrollbar { display: none; }
.project-section-nav a { min-width: max-content; padding: 0 20px; position: relative; display: inline-flex; align-items: center; color: var(--muted); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.project-section-nav a::after { position: absolute; inset: auto 0 -1px; height: 2px; background: var(--yellow); content: ''; transform: scaleX(0); transition: transform 180ms ease; }
.project-section-nav a:hover,
.project-section-nav a:focus-visible,
.project-section-nav a.active { color: var(--foreground); }
.project-section-nav a.active::after { transform: scaleX(1); }
.project-overview-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); gap: 70px; align-items: start; }
.project-overview-copy h2 { max-width: 700px; margin-top: 20px; font-family: var(--font-display); font-size: clamp(46px, 6vw, 72px); font-weight: 760; letter-spacing: -.025em; line-height: .9; text-transform: uppercase; }
.project-overview-copy > p { max-width: 680px; margin-top: 26px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.project-overview-copy .tag-list { margin-top: 28px; }
.project-snapshot { border-top: 1px solid var(--line); }
.project-snapshot div { padding: 19px 0; display: grid; grid-template-columns: 130px 1fr; gap: 24px; border-bottom: 1px solid var(--line); }
.project-snapshot dt { color: var(--muted); font-size: 8.5px; letter-spacing: .13em; text-transform: uppercase; }
.project-snapshot dd { font-family: var(--font-display); font-size: 20px; font-weight: 650; text-transform: uppercase; }
.project-architecture,
.project-systems,
.project-contribution,
.project-challenges,
.system-row { scroll-margin-top: calc(var(--nav-height) + 70px); }
.project-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); list-style: none; }
.project-flow-stage { min-height: 248px; padding: 26px 25px; position: relative; background: var(--ink); }
.project-flow-index,
.project-system-index { color: var(--yellow); font-size: 9px; letter-spacing: .15em; }
.project-flow-stage h3 { margin-top: 40px; font-family: var(--font-display); font-size: 29px; font-weight: 700; text-transform: uppercase; }
.project-flow-stage p { margin-top: 15px; color: var(--muted); font-size: 12px; line-height: 1.72; }
.project-flow-arrow { position: absolute; z-index: 2; top: 27px; right: -9px; width: 18px; height: 18px; display: grid; place-items: center; color: var(--ink); background: var(--yellow); font-size: 10px; }
.project-case-cta { margin-top: 40px; background: var(--ink); }
.project-system-list { border-top: 1px solid var(--line); }
.system-row { padding: 28px 0; display: grid; grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 26px; border-bottom: 1px solid var(--line); }
.system-row .project-system-index { padding-top: 6px; }
.system-intro h3 { font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1.1; }
.system-intro p { max-width: 580px; margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.system-details summary,
.case-credits summary { min-height: 44px; padding: 12px 0; color: var(--blue); font-size: 12px; cursor: pointer; }
.system-details summary:hover,
.case-credits summary:hover { color: var(--foreground); }
.system-details ul,
.case-credits ul { margin-top: 12px; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.system-details li + li,
.case-credits li + li { margin-top: 12px; }
.decision-list { border: 1px solid var(--line); }
.decision-panel { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1fr); gap: 44px; padding: 32px; border-left: 3px solid var(--blue); background: var(--ink-2); }
.decision-panel + .decision-panel { border-top: 1px solid var(--line); }
.decision-problem h3 { font-family: var(--font-display); font-size: 32px; font-weight: 700; line-height: 1.05; }
.decision-panel p { margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.decision-flow { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; counter-reset: decision; }
.decision-flow li { padding: 9px 12px; border: 1px solid var(--line-strong); color: var(--foreground); font-size: 11px; counter-increment: decision; }
.decision-flow li::before { content: counter(decision) '. '; color: var(--blue); }
.case-role-summary { max-width: 800px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.case-credits { max-width: 800px; margin-top: 20px; padding: 12px 20px; border: 1px solid var(--line); background: var(--ink); }
.service-offers { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.service-offer { grid-column: span 4; min-width: 0; padding: 30px; border: 1px solid var(--line); background: var(--ink); }
.service-offer-games { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; border-top: 3px solid var(--yellow); }
.service-offer-software { border-top: 3px solid var(--blue); }
.service-offer .service-title { max-width: none; margin-top: 24px; font-size: clamp(30px, 3vw, 42px); line-height: 1; }
.service-offer .service-description { margin-top: 18px; font-size: 13px; }
.service-deliverables { margin: 22px 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.service-deliverables li + li { margin-top: 9px; }
.service-offer-links { margin-top: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.service-offer-links a { min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; line-height: 1.6; }
.service-proof-link { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.service-proof { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.service-offer-games .service-proof { margin: 0; padding: 0; border: 0; align-self: center; }
.service-proof-media { aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; border: 1px solid var(--line); background: var(--ink-3); }
.service-proof img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.service-proof-fallback { color: var(--foreground); font-family: var(--font-display); font-size: 40px; }
.service-proof figcaption { margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.cta-brief { max-width: 650px; margin-top: 18px; color: var(--muted); font-size: 13px; line-height: 1.8; }

/* Contact --------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.contact-copy,
.form-shell { padding: 36px 34px; background: var(--ink-2); }
.contact-copy h2 { margin: 24px 0 0; font-family: var(--font-display); font-size: 38px; font-weight: 700; line-height: .96; text-transform: uppercase; }
.contact-copy > p { margin-top: 17px; color: var(--muted); font-size: 12.5px; line-height: 1.78; }
.contact-details { margin-top: 34px; border-top: 1px solid var(--line); }
.contact-details > div { display: grid; grid-template-columns: 88px 1fr; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-details dt { color: var(--muted); font-size: var(--text-meta); letter-spacing: .13em; text-transform: uppercase; }
.contact-details dd { overflow-wrap: anywhere; font-size: 11.5px; }
.contact-details a { color: var(--blue); }
.contact-details a:hover { color: var(--yellow); }

/* Retired routes and 404 ------------------------------------------------ */
.archive-page {
  min-height: 760px;
  padding: calc(var(--nav-height) + 90px) 0 90px;
  display: grid;
  align-items: center;
}

.archive-panel {
  min-height: 500px;
  padding: 52px;
  position: relative;
  overflow: hidden;
  border-left: 2px solid var(--yellow);
  background: var(--ink-2);
}

.archive-code { margin-top: 70px; color: var(--dim); font-family: var(--font-display); font-size: 88px; font-weight: 800; line-height: .7; }
.archive-panel h1 { max-width: 800px; margin-top: 28px; font-family: var(--font-display); font-size: clamp(52px, 7vw, 88px); font-weight: 800; letter-spacing: -.025em; line-height: .82; text-transform: uppercase; }
.archive-panel > p:not(.archive-code) { max-width: 690px; margin-top: 28px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.archive-actions,
.error-actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; flex-wrap: wrap; }

.error-page {
  min-height: 760px;
  padding: calc(var(--nav-height) + 80px) 0 80px;
  display: grid;
  place-items: center;
  text-align: center;
}

.error-code { color: var(--yellow); font-family: var(--font-display); font-size: clamp(140px, 24vw, 300px); font-weight: 800; letter-spacing: -.06em; line-height: .62; }
.error-page h1 { margin-top: 52px; font-family: var(--font-display); font-size: clamp(38px, 5vw, 62px); font-weight: 700; text-transform: uppercase; }
.error-page p:not(.error-code) { max-width: 560px; margin: 16px auto 0; color: var(--muted); font-size: 11px; line-height: 1.85; }
.error-actions { justify-content: center; }
