/*
 * len9one1 — interface system 2026
 * Modern product-builder 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;
  scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px));
  background: var(--bg);
}

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

  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: -webkit-sticky;
  position: sticky;
  z-index: 100;
  top: 0;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: calc(64px + env(safe-area-inset-top, 0px));
  padding: calc(9px + env(safe-area-inset-top, 0px)) clamp(15px, 3vw, 38px) 9px;

  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));
}


.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: var(--progress, 50%);

  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-labels--four {
  grid-template-columns: repeat(4, 1fr);
}

.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-labels .progress-label:nth-child(2) {
  text-align: center;
}

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

.progress-labels--four .progress-label:nth-child(3) {
  text-align: center;
}

.development-entry--topicpair::after {
  content: "CLOSED BETA";
  color: rgba(164, 255, 120, 0.48);
}

.product-page-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 16px 18px;

  border: 1px solid rgba(0, 230, 138, 0.18);
  border-radius: 18px;

  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(0, 230, 138, 0.055), transparent 58%),
    rgba(6, 18, 11, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.product-page-link:hover,
.product-page-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(164, 255, 120, 0.3);
  background:
    linear-gradient(135deg, rgba(0, 230, 138, 0.09), transparent 60%),
    rgba(7, 21, 13, 0.8);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 12px 28px rgba(0, 0, 0, 0.22);
}

.product-page-link__copy {
  min-width: 0;
}

.product-page-link__eyebrow {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.product-page-link strong {
  display: block;
  color: var(--text-strong);
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.product-page-link p {
  margin: 6px 0 0;
  color: var(--muted-strong);
  font-size: 0.92rem;
  line-height: 1.55;
}

.product-page-link__domain {
  justify-self: end;
  white-space: nowrap;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* 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;
}


/* Legal pages — refined information rhythm */
.legal-page .content-page {
  width: min(920px, calc(100% - 32px));
}

.legal-page .page-intro {
  max-width: 760px;
  margin-bottom: 34px;
}

.legal-page .page-intro p {
  max-width: 62ch;
  color: var(--muted-strong);
}

.legal-panel--refined {
  padding: clamp(26px, 4.5vw, 42px);
  overflow: hidden;
}

.legal-panel--refined .legal-section {
  max-width: 760px;
}

.legal-panel--refined .legal-section + .legal-section {
  margin-top: 34px;
  padding-top: 31px;
}

.legal-panel--refined .legal-section h2 {
  margin-bottom: 0;
  line-height: 1.3;
}

.legal-panel--refined .legal-section > h2 {
  margin-bottom: 13px;
}

.legal-panel--refined .legal-section p {
  max-width: 68ch;
  color: var(--muted-strong);
  line-height: 1.76;
}

.legal-panel--refined .legal-section p + p {
  margin-top: 14px;
}

.legal-section-heading {
  display: block;
  margin-bottom: 17px;
}


.legal-section-note {
  margin: 6px 0 0 !important;
  color: var(--muted) !important;
  font-size: 0.88rem;
  line-height: 1.6 !important;
}

.legal-identity-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.92fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(137, 255, 174, 0.18);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(164, 255, 120, 0.045), transparent 52%),
    rgba(1, 9, 5, 0.62);
}

.legal-identity-block {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 20px 22px;
}

.legal-identity-block--address {
  border-left: 1px solid var(--border);
}

.legal-label {
  margin-bottom: 7px;
  color: rgba(125, 158, 136, 0.8);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.legal-name {
  color: var(--text-strong);
  font-size: 1.05rem;
  font-weight: 680;
  letter-spacing: -0.018em;
}

.legal-subline {
  max-width: 34ch;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.legal-address--roomy {
  display: grid;
  gap: 2px;
  color: var(--text);
  font-size: 0.91rem;
  line-height: 1.55;
}

.legal-address--roomy span:first-child {
  color: var(--text-strong);
  font-weight: 600;
}

.legal-mail {
  width: fit-content;
  margin-top: 11px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-decoration: none;
}

.legal-contact-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 15px 17px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(164, 255, 120, 0.025);
}

.legal-contact-row .legal-label {
  margin: 0;
}

.legal-contact-row a {
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.legal-responsible {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 0;
}

.legal-responsible strong {
  color: var(--text-strong);
  font-size: 0.93rem;
}

.legal-responsible span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.legal-panel--refined a {
  overflow-wrap: anywhere;
}

.legal-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(164, 255, 120, 0.2);
  border-radius: 999px;
  background: rgba(164, 255, 120, 0.045);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.04em;
}

@media (max-width: 680px) {
  .legal-page .content-page {
    width: min(100% - 22px, 920px);
    padding-top: 30px;
  }

  .legal-page .page-intro {
    margin-bottom: 23px;
  }

  .legal-panel--refined {
    padding: 20px 17px 23px;
    border-radius: 16px;
  }

  .legal-panel--refined .legal-section + .legal-section {
    margin-top: 27px;
    padding-top: 25px;
  }

  .legal-section-heading {
    margin-bottom: 14px;
  }


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

  .legal-identity-block {
    padding: 17px 16px;
  }

  .legal-identity-block--address {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .legal-contact-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 15px;
  }

  .legal-responsible {
    padding-left: 0;
  }

  .legal-panel--refined .legal-section p {
    font-size: 0.94rem;
    line-height: 1.72;
  }
}

/* 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: 32px 0 30px;

  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-copyright {
  color: rgba(194, 214, 201, 0.82);
  font-size: 0.69rem;
  font-weight: 560;
  letter-spacing: 0.055em;
  line-height: 1.6;
  text-align: center;
}

.footer-dev-note {
  margin-top: 5px;
  color: rgba(125, 158, 136, 0.68);
  font-size: 0.62rem;
  letter-spacing: 0.045em;
  line-height: 1.6;
  text-align: center;
}

/* 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;
  }
}


/* iOS 26.x Safari safe mode
   WebKit 26.x still has unresolved viewport / fixed / sticky positioning bugs
   with the floating Safari chrome. On iPhone-sized touch WebKit, keep the site
   header in normal document flow. This avoids the "second bar" being stranded
   mid-screen while Safari expands/collapses its own controls. */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 900px) {
    html {
      scroll-padding-top: 12px;
    }

    body {
      min-height: 100%;
      padding-top: 0;
    }

    .header {
      position: relative;
      top: auto;
      right: auto;
      left: auto;
      min-height: 60px;
      padding-top: 9px;
      padding-bottom: 9px;
      transform: none;
      -webkit-transform: none;
      background: #020704;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }

    .nav {
      transform: none;
      -webkit-transform: none;
    }
  }
}

/* Responsive navigation and layouts */

@media (max-width: 900px) {
  body {
    padding-top: 0;
  }

  .header {
    grid-template-columns: 1fr auto;
    min-height: calc(60px + env(safe-area-inset-top, 0px));
    padding-left: max(15px, env(safe-area-inset-left, 0px));
    padding-right: max(15px, env(safe-area-inset-right, 0px));
  }

  .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-labels--four {
    gap: 4px;
  }

  .progress-label {
    min-width: 0;
    font-size: 0.48rem;
    letter-spacing: 0.045em;
    line-height: 1.4;
  }

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

  .product-page-link {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .product-page-link__domain {
    justify-self: start;
  }

  .card {
    padding: 22px 19px;
  }

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


/* Mobile page-to-page rhythm
   Projects and About now share the same visual baseline so switching
   between menu tabs does not make the content jump vertically. */
@media (max-width: 560px) {
  .projects-clean,
  .content-page {
    padding-top: 28px;
  }

  .projects-intro,
  .page-intro {
    display: grid;
    grid-template-rows: 24px auto minmax(72px, auto);
    row-gap: 0;
    max-width: none;
    min-height: 185px;
    margin-bottom: 28px;
  }

  .projects-intro .projects-eyebrow,
  .page-intro .projects-eyebrow {
    align-self: start;
    height: 20px;
    margin: 0 0 14px;
    line-height: 20px;
  }

  .projects-intro h1,
  .page-intro h1 {
    align-self: start;
    margin: 0 0 14px;
    font-size: clamp(2rem, 9.8vw, 2.45rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
  }

  .projects-intro p,
  .page-intro p {
    align-self: start;
    max-width: none;
    margin: 0;
    line-height: 1.55;
  }

  .project-groups,
  .profile-panel {
    margin-top: 0;
  }
}


/* Navigation-page harmony patch
   The goal is to keep the main content shell calmer when moving between
   Projects, About, Legal Notice and Privacy Policy. */
.projects-clean,
.content-page {
  width: min(920px, calc(100% - 32px));
  min-height: calc(100svh - 196px);
}

.projects-intro,
.page-intro {
  display: grid;
  grid-template-rows: 24px auto minmax(68px, auto);
  align-content: start;
  row-gap: 0;
  min-height: 176px;
  margin-bottom: 30px;
}

.projects-intro .projects-eyebrow,
.page-intro .projects-eyebrow {
  align-self: start;
  min-height: 20px;
  margin: 0 0 14px;
  line-height: 20px;
}

.projects-intro h1,
.page-intro h1 {
  align-self: start;
  margin: 0 0 14px;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.projects-intro p,
.page-intro p {
  align-self: start;
  margin: 0;
}

.project-groups,
.profile-panel,
.legal-panel {
  margin-top: 0;
}

.profile-panel,
.legal-panel,
.development-entry {
  border-radius: 22px;
}

.profile-panel,
.development-entry {
  min-height: 360px;
}

.legal-panel {
  min-height: 360px;
}

@media (max-width: 900px) {
  .projects-clean,
  .content-page {
    min-height: calc(100svh - 184px);
  }

  .projects-intro,
  .page-intro {
    min-height: 182px;
  }
}

@media (max-width: 680px) {
  .projects-clean,
  .content-page {
    width: min(100% - 22px, 920px);
    min-height: calc(100svh - 170px);
  }

  .projects-intro,
  .page-intro {
    grid-template-rows: 24px auto minmax(78px, auto);
    min-height: 190px;
  }

  .profile-panel,
  .development-entry,
  .legal-panel {
    min-height: 0;
    border-radius: 18px;
  }
}


/* Driver hero scale balance patch
   Make the original artwork feel intentional and substantial without
   overpowering the typography. */
.identity-hero {
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  gap: clamp(26px, 4.6vw, 48px);
  min-height: 424px;
}

.identity-visual {
  min-height: 376px;
  align-items: center;
}

.driver-frame {
  width: min(392px, 100%);
  min-height: 372px;
  padding: 22px 22px 0;
}

.driver-frame::before {
  inset: 16px;
}

.driver-frame::after {
  top: 16px;
  right: 16px;
}

.driver-image {
  width: min(100%, 360px);
  max-height: 388px;
}

@media (max-width: 1100px) {
  .identity-hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
    gap: clamp(24px, 4vw, 40px);
  }

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

  .driver-image {
    width: min(100%, 338px);
    max-height: 360px;
  }
}

@media (max-width: 900px) {
  .identity-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .identity-visual {
    min-height: 0;
  }

  .driver-frame {
    width: min(352px, 100%);
    min-height: 328px;
    margin-inline: auto;
  }

  .driver-image {
    width: min(100%, 320px);
    max-height: 332px;
  }
}

@media (max-width: 680px) {
  .driver-frame {
    width: min(332px, 100%);
    min-height: 308px;
  }

  .driver-image {
    width: min(100%, 302px);
    max-height: 316px;
  }
}


/* Legal identity-card synchronization
   Legal Notice and Privacy Policy use the same card geometry and start line. */
.legal-section--identity .legal-section-heading {
  min-height: 72px;
  display: flex;
  align-items: flex-start;
}

.legal-section--identity .legal-identity-card {
  min-height: 151px;
}

.legal-section--identity .legal-identity-block {
  min-height: 149px;
}

@media (max-width: 680px) {
  .legal-section--identity .legal-section-heading {
    min-height: 68px;
  }

  .legal-section--identity .legal-identity-card,
  .legal-section--identity .legal-identity-block {
    min-height: 0;
  }
}


/* Projects ⇄ About geometry lock
   These two navigation pages intentionally share the exact same intro slot.
   Different copy lengths can no longer move the first framed content block. */
.projects-page .projects-clean,
.about-page .content-page {
  width: min(920px, calc(100% - 32px));
  padding-top: clamp(42px, 6vw, 64px);
}

.projects-page .projects-intro,
.about-page .page-intro {
  display: grid;
  grid-template-rows: 20px 58px 78px;
  row-gap: 10px;
  width: 100%;
  max-width: 720px;
  height: 176px;
  min-height: 176px;
  margin: 0 0 30px;
  overflow: visible;
}

.projects-page .projects-intro .projects-eyebrow,
.about-page .page-intro .projects-eyebrow {
  align-self: start;
  height: 20px;
  min-height: 20px;
  margin: 0;
  line-height: 20px;
}

.projects-page .projects-intro h1,
.about-page .page-intro h1 {
  align-self: start;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.projects-page .projects-intro p,
.about-page .page-intro p {
  align-self: start;
  width: 100%;
  max-width: 680px;
  margin: 0;
  line-height: 1.55;
}

.projects-page .project-groups,
.about-page .profile-panel {
  margin-top: 0;
}

@media (max-width: 680px) {
  .projects-page .projects-clean,
  .about-page .content-page {
    width: min(100% - 22px, 920px);
    padding-top: 28px;
  }

  .projects-page .projects-intro,
  .about-page .page-intro {
    grid-template-rows: 20px 48px 88px;
    row-gap: 11px;
    height: 189px;
    min-height: 189px;
    margin-bottom: 28px;
  }

  .projects-page .projects-intro h1,
  .about-page .page-intro h1 {
    font-size: clamp(2rem, 9.8vw, 2.45rem);
    line-height: 1.04;
  }

  .projects-page .projects-intro p,
  .about-page .page-intro p {
    font-size: 1rem;
    line-height: 1.55;
  }
}

@media (max-width: 380px) {
  .projects-page .projects-intro,
  .about-page .page-intro {
    grid-template-rows: 20px 46px 98px;
    height: 194px;
    min-height: 194px;
  }

  .projects-page .projects-intro p,
  .about-page .page-intro p {
    font-size: 0.97rem;
  }
}


/* Final navigation shell lock
   Projects, About, Legal Notice and Privacy Policy now share the exact same
   top geometry. Page copy can change, but the interface baseline cannot. */
.projects-page .projects-clean,
.about-page .content-page,
.legal-page .content-page {
  width: min(920px, calc(100% - 32px));
  padding-top: clamp(42px, 6vw, 64px);
}

.projects-page .projects-intro,
.about-page .page-intro,
.legal-page .page-intro {
  display: grid;
  grid-template-rows: 20px 58px 78px;
  row-gap: 10px;
  width: 100%;
  max-width: 720px;
  height: 176px;
  min-height: 176px;
  margin: 0 0 30px;
  overflow: visible;
}

.projects-page .projects-intro .projects-eyebrow,
.about-page .page-intro .projects-eyebrow,
.legal-page .page-intro .projects-eyebrow {
  align-self: start;
  height: 20px;
  min-height: 20px;
  margin: 0;
  line-height: 20px;
}

.projects-page .projects-intro h1,
.about-page .page-intro h1,
.legal-page .page-intro h1 {
  align-self: start;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.projects-page .projects-intro p,
.about-page .page-intro p,
.legal-page .page-intro p {
  align-self: start;
  width: 100%;
  max-width: 680px;
  margin: 0;
  font-size: inherit;
  line-height: 1.55;
}

/* About and both legal pages place their first frame at the same Y coordinate. */
.about-page .profile-panel,
.legal-page .legal-panel {
  margin-top: 0;
}

/* Neutralize older legal-only offsets that caused the visible hop. */
.legal-page .page-intro {
  margin-bottom: 30px;
}

.legal-page .page-intro p {
  max-width: 680px;
}

@media (max-width: 680px) {
  .projects-page .projects-clean,
  .about-page .content-page,
  .legal-page .content-page {
    width: min(100% - 22px, 920px);
    padding-top: 28px;
  }

  .projects-page .projects-intro,
  .about-page .page-intro,
  .legal-page .page-intro {
    grid-template-rows: 20px 48px 88px;
    row-gap: 11px;
    height: 189px;
    min-height: 189px;
    margin: 0 0 28px;
  }

  .projects-page .projects-intro h1,
  .about-page .page-intro h1,
  .legal-page .page-intro h1 {
    font-size: clamp(2rem, 9.8vw, 2.45rem);
    line-height: 1.04;
  }

  .projects-page .projects-intro p,
  .about-page .page-intro p,
  .legal-page .page-intro p {
    max-width: 680px;
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
  }
}

@media (max-width: 380px) {
  .projects-page .projects-intro,
  .about-page .page-intro,
  .legal-page .page-intro {
    grid-template-rows: 20px 46px 98px;
    height: 194px;
    min-height: 194px;
  }

  .projects-page .projects-intro p,
  .about-page .page-intro p,
  .legal-page .page-intro p {
    font-size: 0.97rem;
  }
}

@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;
  }
}

/* 2026-09-04 · Home role strip polish
   Keep the formal role as a single, calm line on desktop without changing
   the stacked mobile treatment or the rest of the interface geometry. */
@media (min-width: 901px) {
  .home-v2 .focus-strip {
    grid-template-columns: 1.24fr 1fr 1fr;
  }

  .home-v2 .focus-item {
    padding-inline: 18px;
  }

  .home-v2 .focus-title {
    font-size: 0.72rem;
    letter-spacing: 0.055em;
  }

  .home-v2 .focus-item:first-child .focus-title {
    white-space: nowrap;
  }
}

/* 2026-09-27 · TopicPair project card mobile polish
   Desktop remains unchanged. On compact screens the four development
   milestones use a 2×2 layout and the product CTA becomes a distinct block. */
@media (max-width: 680px) {
  .development-entry--topicpair {
    padding: 24px 20px 22px;
    border-radius: 20px;
  }

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

  .development-entry--topicpair .development-heading {
    gap: 12px;
    margin-bottom: 16px;
  }

  .development-entry--topicpair .development-status {
    min-height: 26px;
    padding: 5px 9px;
    font-size: 0.56rem;
  }

  .development-entry--topicpair .development-copy {
    margin-bottom: 26px;
    font-size: 0.94rem;
    line-height: 1.68;
  }

  .development-entry--topicpair .build-progress {
    width: calc(100% - 18px);
    margin: 10px auto 0;
  }

  .development-entry--topicpair .progress-track {
    height: 6px;
  }

  .development-entry--topicpair .progress-labels--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-top: 11px;
  }

  .development-entry--topicpair .progress-labels--four .progress-label {
    min-width: 0;
    font-size: clamp(0.50rem, 2.15vw, 0.56rem);
    letter-spacing: 0.025em;
    line-height: 1.32;
    text-align: center;
    overflow-wrap: normal;
  }

  .development-entry--topicpair .progress-labels--four .progress-label:first-child {
    text-align: left;
  }

  .development-entry--topicpair .progress-labels--four .progress-label:last-child {
    text-align: right;
  }

  .development-entry--topicpair .progress-labels--four .progress-label:nth-child(2),
  .development-entry--topicpair .progress-labels--four .progress-label:nth-child(3) {
    text-align: center;
  }

  .development-entry--topicpair .progress-labels--four .progress-label strong {
    margin-bottom: 2px;
    font-size: clamp(0.57rem, 2.45vw, 0.63rem);
    line-height: 1.2;
    letter-spacing: 0.025em;
  }

  .development-entry--topicpair .product-page-link {
    display: block;
    margin-top: 26px;
    padding: 18px;
    border-radius: 16px;
    text-decoration: none !important;
  }

  .development-entry--topicpair .product-page-link,
  .development-entry--topicpair .product-page-link * {
    text-decoration: none !important;
  }

  .development-entry--topicpair .product-page-link__eyebrow {
    display: block;
    margin-bottom: 7px;
    font-size: 0.58rem;
  }

  .development-entry--topicpair .product-page-link strong {
    display: inline-block;
    font-size: 1rem;
  }

  .development-entry--topicpair .product-page-link p {
    max-width: 34ch;
    margin-top: 8px;
    font-size: 0.88rem;
    line-height: 1.58;
  }

  .development-entry--topicpair .product-page-link__domain {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 230, 138, 0.13);
    font-size: 0.67rem;
    letter-spacing: 0.09em;
  }
}

@media (max-width: 380px) {
  .development-entry--topicpair {
    padding-inline: 17px;
  }

  .development-entry--topicpair .build-progress {
    width: calc(100% - 12px);
  }

  .development-entry--topicpair .progress-labels--four {
    gap: 2px;
  }

  .development-entry--topicpair .progress-labels--four .progress-label {
    font-size: 0.54rem;
    letter-spacing: 0.015em;
  }

  .development-entry--topicpair .progress-labels--four .progress-label strong {
    font-size: 0.54rem;
  }

  .development-entry--topicpair .product-page-link {
    padding: 16px;
  }
}
