/*
 * len9one1 — interface system 2026
 * Modern developer identity: precise, calm, technical.
 */

:root {
  color-scheme: dark;

  --bg: #020604;
  --bg-elevated: #06100b;
  --surface: rgba(8, 21, 14, 0.78);
  --surface-strong: rgba(10, 27, 18, 0.94);
  --surface-soft: rgba(143, 255, 157, 0.035);

  --text: #d9f5e2;
  --text-strong: #f1fff5;
  --muted: #7d9e88;
  --muted-strong: #9ab7a3;

  --primary: #a4ff78;
  --accent: #00e68a;
  --accent-soft: rgba(0, 230, 138, 0.12);
  --cyan: #70e7d8;

  --border: rgba(137, 255, 174, 0.14);
  --border-strong: rgba(137, 255, 174, 0.34);
  --grid: rgba(137, 255, 174, 0.13);

  --shadow-small: 0 10px 30px rgba(0, 0, 0, 0.24);
  --shadow-large: 0 32px 90px rgba(0, 0, 0, 0.42);
  --glow: 0 0 34px rgba(0, 230, 138, 0.1);

  --radius-small: 8px;
  --radius: 14px;
  --radius-large: 22px;

  --content: 1040px;
  --content-wide: 1160px;

  --font-sans:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;

  color: var(--text);
  background:
    radial-gradient(
      circle at 15% -10%,
      rgba(0, 230, 138, 0.09),
      transparent 31rem
    ),
    radial-gradient(
      circle at 90% 40%,
      rgba(112, 231, 216, 0.045),
      transparent 36rem
    ),
    linear-gradient(180deg, #020604 0%, #010302 100%);

  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;

  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: 0.11;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

::selection {
  color: #00170d;
  background: var(--accent);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

a {
  color: var(--primary);
  text-decoration-color: rgba(164, 255, 120, 0.35);
  text-underline-offset: 0.22em;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

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

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

h1,
h2,
h3 {
  color: var(--text-strong);
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 6vw, 5rem);
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.35rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  letter-spacing: -0.02em;
}

p {
  color: var(--muted-strong);
}

/* Header and navigation */

.header {
  position: sticky;
  z-index: 100;
  top: 0;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  padding: 9px clamp(15px, 3vw, 38px);

  border-bottom: 1px solid var(--border);
  background: rgba(2, 7, 4, 0.76);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;

  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.91rem;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.brand:hover {
  color: var(--text-strong);
}

.brand img {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 0 10px rgba(0, 230, 138, 0.38));
  transform: translateZ(0);
}

.brand b {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 36px;
  padding: 7px 13px;

  border: 1px solid transparent;
  border-radius: 999px;

  color: var(--muted-strong);
  background: transparent;

  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.065em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;

  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--primary);
  border-color: var(--border-strong);
  background: rgba(0, 230, 138, 0.055);
  box-shadow: 0 0 22px rgba(0, 230, 138, 0.07);
  transform: translateY(-1px);
}

.menu-toggle {
  justify-self: end;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 12px;

  border: 1px solid var(--border);
  border-radius: 999px;

  color: var(--text);
  background: var(--surface-soft);
  cursor: pointer;

  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

/* Shared layout */

main,
.container,
.page,
.project-page {
  flex: 1 0 auto;
}

.container,
.page,
.project-page {
  width: min(var(--content), calc(100% - 32px));
  margin-inline: auto;
  padding-block: clamp(42px, 7vw, 78px);
}

.page,
.project-page {
  width: min(var(--content-wide), calc(100% - 32px));
}

.container > h2:first-child,
.page > h2:first-child,
.project-page > h2:first-child {
  margin-bottom: 27px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;

  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.045em;
  overflow-wrap: anywhere;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 18px;
}

/* Shared surfaces and cards */

.card {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: clamp(22px, 4vw, 34px);

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background:
    linear-gradient(145deg, rgba(153, 255, 176, 0.038), transparent 58%),
    var(--surface);
  box-shadow: var(--shadow-small);

  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: linear-gradient(
    115deg,
    transparent 15%,
    rgba(164, 255, 120, 0.055) 48%,
    transparent 75%
  );
  opacity: 0;
  transform: translateX(-35%);
  transition:
    opacity 220ms ease,
    transform 440ms ease;
}

a.card {
  display: block;
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  a.card:hover,
  .card.is-interactive:hover {
    color: inherit;
    border-color: var(--border-strong);
    background:
      linear-gradient(145deg, rgba(153, 255, 176, 0.065), transparent 58%),
      var(--surface-strong);
    box-shadow: var(--glow), var(--shadow-large);
    transform: translateY(-3px);
  }

  a.card:hover::before,
  .card.is-interactive:hover::before {
    opacity: 1;
    transform: translateX(35%);
  }
}

.card.touch-glow,
.card:active {
  border-color: var(--border-strong);
  box-shadow: var(--glow), var(--shadow-small);
  transform: translateY(-2px);
}

.card.touch-glow::before,
.card:active::before {
  opacity: 1;
  transform: translateX(30%);
}

.card section + section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.card section h3 {
  margin-bottom: 12px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.025em;
}

.card p:last-child,
.card section:last-child p:last-child {
  margin-bottom: 0;
}

.card.contact-card {
  margin-top: 24px;
  text-align: center;
}

.small {
  color: var(--muted);
  font-size: 0.88em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;

  border: 1px solid var(--border-strong);
  border-radius: 999px;

  color: var(--primary);
  background: var(--surface-soft);
  text-decoration: none;

  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn:hover {
  color: #00170d;
  background: var(--accent);
  border-color: var(--accent);
}

pre,
code,
kbd {
  font-family: var(--font-mono);
}

pre {
  margin-block: 24px 0;
  padding: 22px;
  overflow-x: auto;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  color: var(--primary);
  background: rgba(1, 8, 4, 0.86);
  box-shadow: var(--shadow-small);

  font-size: 0.82rem;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

code {
  padding: 0.14em 0.4em;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--cyan);
  background: rgba(112, 231, 216, 0.045);
}

pre code {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
}

kbd {
  padding: 2px 7px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  color: var(--text);
  background: var(--bg-elevated);
}

/* Home identity */

.home-v2 {
  width: min(var(--content), calc(100% - 32px));
  margin-inline: auto;
  padding-block: clamp(38px, 6vw, 68px) 36px;
}

.identity-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.75fr);
  align-items: center;
  gap: clamp(30px, 5vw, 58px);
  min-height: 410px;
  padding: clamp(30px, 5vw, 58px);
  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: var(--radius-large);

  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(0, 230, 138, 0.105),
      transparent 35%
    ),
    linear-gradient(135deg, rgba(158, 255, 120, 0.035), transparent 55%),
    rgba(3, 13, 8, 0.8);

  box-shadow: var(--shadow-large), var(--glow);
}

.identity-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.18;
  mask-image: linear-gradient(90deg, black, transparent 88%);
}

.identity-copy,
.identity-visual {
  position: relative;
  z-index: 1;
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;

  color: var(--muted-strong);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.status-light {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: statusPulse 2.2s ease-in-out infinite;
}

.identity-title {
  max-width: 650px;
  margin-bottom: 18px;
  color: var(--text-strong);
  font-size: clamp(2.65rem, 6vw, 5.2rem);
  letter-spacing: -0.065em;
  text-shadow: 0 0 30px rgba(164, 255, 120, 0.08);
}

.identity-role {
  margin-bottom: 18px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1.3vw, 0.88rem);
  letter-spacing: 0.095em;
  line-height: 1.7;
  text-transform: uppercase;
}

.identity-description {
  max-width: 610px;
  margin-bottom: 0;
  color: var(--muted-strong);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.75;
}

.identity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}

.identity-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 9px 17px;

  border: 1px solid var(--border-strong);
  border-radius: 999px;

  color: var(--primary);
  background: rgba(0, 230, 138, 0.045);
  text-decoration: none;

  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 650;
  letter-spacing: 0.065em;
  text-transform: uppercase;

  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.identity-button:hover,
.identity-button:focus-visible {
  color: #00170d;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(0, 230, 138, 0.22);
  transform: translateY(-2px);
}

.identity-button.secondary {
  color: var(--muted-strong);
  background: transparent;
}

.identity-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 330px;
}

.driver-frame {
  position: relative;
  width: min(340px, 100%);
  min-height: 320px;
  padding: 28px 24px 0;
  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: 18px;

  background:
    linear-gradient(180deg, rgba(0, 230, 138, 0.045), transparent 56%),
    rgba(2, 9, 5, 0.58);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.35);
}

.driver-frame::before {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;

  border-top: 1px solid rgba(137, 255, 174, 0.1);
  border-left: 1px solid rgba(137, 255, 174, 0.1);
  border-radius: 10px 0 0;
}

.driver-frame::after {
  content: "ORIGINAL ARTWORK // LEN9ONE1";
  position: absolute;
  top: 18px;
  right: 18px;

  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.53rem;
  letter-spacing: 0.09em;
  writing-mode: vertical-rl;
}

.driver-image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 315px;
  margin-inline: auto;
  object-fit: contain;
  object-position: center bottom;

  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.52))
    drop-shadow(0 0 18px rgba(0, 230, 138, 0.12));
}

.driver-caption {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 16px;
  padding: 6px 9px;

  border: 1px solid var(--border);
  border-radius: 999px;

  color: var(--primary);
  background: rgba(1, 7, 4, 0.88);

  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.focus-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(3, 13, 8, 0.58);
  box-shadow: var(--shadow-small);
}

.focus-item {
  padding: 20px 22px;
  border-right: 1px solid var(--border);
}

.focus-item:last-child {
  border-right: 0;
}

.focus-number {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.095em;
}

.focus-title {
  display: block;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.selected-work {
  margin-top: clamp(38px, 5vw, 54px);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 14px;
  color: var(--muted-strong);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

.archive-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 22px 25px;
  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  color: inherit;
  background: rgba(3, 13, 8, 0.5);
  box-shadow: var(--shadow-small);
  text-decoration: none;

  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.archive-entry::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0.35;
  transition: opacity 180ms ease;
}

.archive-entry:hover,
.archive-entry:focus-visible {
  color: inherit;
  border-color: var(--border-strong);
  background: rgba(5, 18, 11, 0.72);
  box-shadow: var(--shadow-small), var(--glow);
  transform: translateY(-2px);
}

.archive-entry:hover::before,
.archive-entry:focus-visible::before {
  opacity: 1;
}

.archive-meta {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.59rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.archive-entry h3 {
  margin-bottom: 5px;
  color: var(--text-strong);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.archive-entry p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.archive-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-open::after {
  content: "→";
  font-size: 0.95rem;
  transition: transform 160ms ease;
}

.archive-entry:hover .archive-open::after {
  transform: translateX(4px);
}

.compact-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 20px 24px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: rgba(3, 13, 8, 0.58);
  box-shadow: var(--shadow-small);
}

.compact-contact span {
  color: var(--muted);
  font-size: 0.82rem;
}

.compact-contact a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-decoration: none;
}

/* Projects overview */

.projects-clean {
  width: min(920px, calc(100% - 32px));
  margin-inline: auto;
  padding-block: clamp(42px, 6vw, 64px) 48px;
}

.projects-intro {
  max-width: 680px;
  margin-bottom: 28px;
}

.projects-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;

  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.projects-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--border-strong);
}

.projects-intro h1 {
  margin-bottom: 12px;
  color: var(--text-strong);
  font-size: clamp(1.85rem, 4vw, 3rem);
}

.projects-intro p {
  max-width: 600px;
  margin-bottom: 0;
}

.project-groups {
  display: grid;
  gap: clamp(34px, 5vw, 52px);
}

.project-group {
  display: grid;
  gap: 14px;
}

.project-group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;

  color: var(--muted-strong);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

.development-entry {
  position: relative;
  padding: clamp(23px, 4vw, 34px);
  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background:
    linear-gradient(135deg, rgba(0, 230, 138, 0.055), transparent 52%),
    rgba(3, 13, 8, 0.62);
  box-shadow: var(--shadow-small);
}

.development-entry::after {
  content: "PRIVATE BUILD";
  position: absolute;
  top: 22px;
  right: 22px;

  color: rgba(125, 158, 136, 0.42);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.13em;
}

.development-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}

.development-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.development-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;

  border: 1px solid var(--border-strong);
  border-radius: 999px;

  color: var(--accent);
  background: rgba(0, 230, 138, 0.045);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.development-copy {
  max-width: 690px;
  margin-bottom: 24px;
  color: var(--muted-strong);
}

.build-progress {
  position: relative;
  margin-top: 6px;
}

.progress-track {
  position: relative;
  height: 7px;
  overflow: visible;

  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(125, 158, 136, 0.07);
}

.progress-fill {
  position: absolute;
  inset: -1px auto -1px -1px;
  width: 66.666%;

  border: 1px solid rgba(0, 230, 138, 0.4);
  border-radius: inherit;
  background: repeating-linear-gradient(
    115deg,
    rgba(0, 230, 138, 0.95) 0 9px,
    rgba(164, 255, 120, 0.76) 9px 17px
  );
  box-shadow: 0 0 18px rgba(0, 230, 138, 0.17);
  animation: progressSignal 3.4s linear infinite;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--accent);
  transform: translateY(-50%);
}

.progress-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.progress-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.075em;
  line-height: 1.5;
  text-transform: uppercase;
}

.progress-label strong {
  display: block;
  color: var(--muted-strong);
  font-size: 0.61rem;
  font-weight: 650;
}

.progress-label.is-complete strong,
.progress-label.is-active strong {
  color: var(--primary);
}

.progress-label:nth-child(2) {
  text-align: center;
}

.progress-label:last-child {
  text-align: right;
}

/* About and legal pages */

.content-page {
  width: min(880px, calc(100% - 32px));
  margin-inline: auto;
  padding-block: clamp(42px, 6vw, 68px) 52px;
}

.page-intro {
  max-width: 720px;
  margin-bottom: 28px;
}

.page-intro .projects-eyebrow {
  margin-bottom: 14px;
}

.page-intro h1 {
  margin-bottom: 13px;
  font-size: clamp(2rem, 5vw, 3.45rem);
}

.page-intro p {
  max-width: 680px;
  margin-bottom: 0;
}

.profile-panel,
.legal-panel {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(153, 255, 176, 0.035), transparent 60%),
    rgba(3, 13, 8, 0.58);
  box-shadow: var(--shadow-small);
}

.profile-panel p:last-of-type {
  margin-bottom: 0;
}

.profile-terminal {
  margin-top: 28px;
}

.legal-section + .legal-section {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.legal-section h2 {
  margin-bottom: 10px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.83rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.legal-section p {
  margin-bottom: 0;
}

.legal-address {
  color: var(--muted-strong);
  font-style: normal;
}

/* Detailed project content */

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

.project-breadcrumb {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.055em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.project-breadcrumb a {
  color: var(--muted-strong);
  text-decoration: none;
}

.project-header {
  margin-bottom: 20px;
}

.project-header h1 {
  margin-bottom: 9px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.045em;
  text-transform: none;
}

.project-meta {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.075em;
  line-height: 1.7;
  text-transform: uppercase;
}

.project-intro {
  max-width: 780px;
  margin-bottom: 30px;
}

.project-intro p {
  margin-bottom: 0.75em;
}

.gallery-card {
  width: 100%;
  padding: clamp(13px, 2vw, 20px);
  overflow: hidden;

  border: 1px solid var(--border-strong);
  border-radius: var(--radius-large);

  background:
    radial-gradient(
      circle at 15% 0%,
      rgba(0, 230, 138, 0.085),
      transparent 40%
    ),
    rgba(2, 10, 6, 0.82);
  box-shadow: var(--shadow-large), var(--glow);
}

.gallery-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: min(72vw, 760px);
  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: calc(var(--radius-large) - 7px);
  background: #000;
}

.gallery-main img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 760px;
  object-fit: contain;
}

.gallery-caption {
  min-height: 2.2em;
  margin-top: 12px;
  padding-inline: 3px;

  color: var(--muted-strong);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.gallery-nav-btn {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  padding: 0;

  border: 1px solid var(--border-strong);
  border-radius: 50%;

  color: var(--primary);
  background: rgba(1, 7, 4, 0.82);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;

  font-size: 1.15rem;
  line-height: 1;

  transform: translateY(-50%);
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.gallery-nav-btn:hover,
.gallery-nav-btn:focus-visible {
  color: #00170d;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 24px rgba(0, 230, 138, 0.28);
  transform: translateY(-50%) scale(1.04);
}

.gallery-nav-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.gallery-nav-prev {
  left: 14px;
}

.gallery-nav-next {
  right: 14px;
}

.gallery-thumbs {
  display: flex;
  gap: 9px;
  margin-top: 14px;
  padding: 2px 2px 7px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--border-strong) transparent;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.gallery-thumb {
  flex: 0 0 auto;
  width: 100px;
  padding: 0;
  overflow: hidden;

  border: 1px solid transparent;
  border-radius: var(--radius-small);

  background: transparent;
  cursor: pointer;
  opacity: 0.52;
  scroll-snap-align: start;

  transition:
    opacity 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.gallery-thumb img {
  width: 100%;
  height: 66px;
  object-fit: cover;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible,
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.gallery-thumb.active {
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(0, 230, 138, 0.18);
}

.project-notes,
.collage-section {
  max-width: 780px;
  margin-top: 26px;
  padding: clamp(21px, 3vw, 29px);

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: rgba(3, 13, 8, 0.58);
  box-shadow: var(--shadow-small);
}

.project-notes h2,
.collage-section h2 {
  margin-bottom: 10px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.project-notes p:last-child,
.collage-section p:last-of-type {
  margin-bottom: 0;
}

.collage-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 41px;
  margin-top: 12px;
  padding: 8px 14px;

  border: 1px solid var(--border-strong);
  border-radius: 999px;

  color: var(--primary);
  background: rgba(0, 230, 138, 0.045);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.075em;
  text-decoration: none;
  text-transform: uppercase;
}

.collage-link:hover,
.collage-link:focus-visible {
  color: #00170d;
  border-color: var(--accent);
  background: var(--accent);
}

.project-page article,
.project-page .project-content,
.page article {
  max-width: 820px;
}

.project-page figure,
.page figure {
  margin-block: 32px;
}

.project-page figure img,
.page figure img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-large);
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.6;
}

/* Scanlines and restrained glitch */

.scanlines::before {
  content: "";
  position: fixed;
  z-index: 9999;
  inset: 0;
  pointer-events: none;

  background: repeating-linear-gradient(
    0deg,
    transparent 0 3px,
    rgba(130, 255, 170, 0.017) 3px 4px
  );
  opacity: 0.4;
}

.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.25;
}

.glitch::before {
  left: 1px;
  color: var(--accent);
  clip-path: polygon(0 8%, 100% 8%, 100% 43%, 0 43%);
}

.glitch::after {
  left: -1px;
  color: var(--cyan);
  clip-path: polygon(0 58%, 100% 58%, 100% 92%, 0 92%);
}

/* Footer */

.footer-custom {
  width: min(var(--content), calc(100% - 32px));
  margin: auto auto 0;
  padding: 30px 0 26px;

  border-top: 1px solid var(--border);

  color: var(--muted);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.025em;
}

.footer-clock,
#footer-clock {
  margin-bottom: 7px;
  color: var(--primary);
  letter-spacing: 0.075em;
}

.footer-dev-note {
  margin-top: 6px;
  color: rgba(125, 158, 136, 0.72);
}

/* Motion */

@keyframes statusPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.85);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes progressSignal {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 52px 0;
  }
}

/* Responsive navigation and layouts */

@media (max-width: 900px) {
  .header {
    grid-template-columns: 1fr auto;
    min-height: 60px;
    padding-inline: 15px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;

    display: none;
    width: min(290px, calc(100vw - 24px));
    padding: 10px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: rgba(3, 13, 8, 0.96);
    box-shadow: var(--shadow-large), var(--glow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }

  .nav a {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    border-radius: var(--radius-small);
  }

  .identity-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .identity-description {
    margin-inline: auto;
  }

  .identity-actions {
    justify-content: center;
  }

  .identity-visual {
    min-height: 300px;
  }

  .focus-strip {
    grid-template-columns: 1fr;
  }

  .focus-item {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    text-align: center;
  }

  .focus-item:last-child {
    border-bottom: 0;
  }

  .archive-entry {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .compact-contact {
    flex-direction: column;
    text-align: center;
  }

  .development-entry::after {
    display: none;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .brand img {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .brand b {
    max-width: 125px;
  }

  .container,
  .page,
  .project-page,
  .home-v2,
  .projects-clean,
  .content-page,
  .footer-custom {
    width: min(100% - 22px, var(--content));
  }

  .container,
  .page,
  .project-page {
    padding-block: 34px 46px;
  }

  .home-v2,
  .projects-clean {
    padding-top: 24px;
  }

  .identity-hero {
    min-height: 0;
    padding: 29px 19px;
    border-radius: 18px;
  }

  .identity-title {
    font-size: clamp(2.45rem, 14vw, 3.45rem);
  }

  .driver-frame {
    width: min(320px, 100%);
    min-height: 300px;
  }

  .identity-button {
    width: 100%;
  }

  .archive-entry {
    padding: 20px 18px;
  }

  .project-page {
    width: min(100% - 22px, 960px);
  }

  .gallery-main {
    min-height: 78vw;
  }

  .gallery-nav-btn {
    width: 38px;
    height: 38px;
  }

  .gallery-nav-prev {
    left: 8px;
  }

  .gallery-nav-next {
    right: 8px;
  }

  .gallery-thumb {
    width: 82px;
  }

  .gallery-thumb img {
    height: 56px;
  }

  .development-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .progress-label {
    font-size: 0.5rem;
  }

  .progress-label strong {
    font-size: 0.54rem;
  }

  .card {
    padding: 22px 19px;
  }

  .compact-contact {
    padding: 18px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
