:root {
  color-scheme: dark;
  --bg: #050609;
  --bg-soft: #090b11;
  --panel: rgba(17, 10, 20, 0.84);
  --panel-solid: #120b16;
  --panel-raised: #1a0e20;
  --line: rgba(255, 79, 216, 0.16);
  --line-strong: rgba(255, 79, 216, 0.34);
  --ink: #f2f6f5;
  --muted: #98a4aa;
  --muted-bright: #c0cbd0;
  --cyan: #ff4fd8;
  --lime: #ff91e7;
  --violet: #b66cff;
  --coral: #ff3d8d;
  --pink: #ff4fd8;
  --focus: #ffd0f5;
  --max: 1240px;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@font-face {
  font-family: "Marrow Pixel";
  src: url("/assets/fonts/marrow-pixel.ttf") format("truetype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 2%, rgba(255, 79, 216, 0.13), transparent 31rem),
    radial-gradient(circle at 86% 18%, rgba(182, 108, 255, 0.11), transparent 34rem),
    linear-gradient(180deg, #09060b 0, #050407 55%, #09050b 100%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

body::before {
  opacity: 0.48;
  background-image:
    linear-gradient(rgba(255, 79, 216, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 79, 216, 0.024) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

body::after {
  opacity: 0.22;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.012) 3px 4px);
}

::selection {
  color: #04100d;
  background: var(--cyan);
}

a {
  color: inherit;
}

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

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

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

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  color: #06110e;
  background: var(--focus);
  font-family: var(--mono);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-150%);
}

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

.shell {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 112px 0;
}

.section-tight {
  padding: 72px 0;
}

.section-rule {
  border-top: 1px solid var(--line);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 1px;
  background: currentColor;
  box-shadow: 10px 0 18px currentColor;
  content: "";
}

.section-heading {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 5.4rem);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.section-lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted-bright);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    backdrop-filter 180ms ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  border-color: var(--line);
  background: rgba(5, 6, 9, 0.84);
  backdrop-filter: blur(18px) saturate(130%);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(105, 245, 210, 0.55);
  background: linear-gradient(145deg, rgba(105, 245, 210, 0.13), rgba(169, 140, 255, 0.08));
  box-shadow:
    inset 0 0 18px rgba(105, 245, 210, 0.08),
    0 0 24px rgba(105, 245, 210, 0.08);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
  clip-path: polygon(0 0, 82% 0, 100% 18%, 100% 100%, 18% 100%, 0 82%);
}

.brand-mark::after {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 5px;
  height: 5px;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  content: "";
}

.brand-word {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-word span {
  color: var(--muted);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link,
.nav-dropdown > summary,
.lang-button {
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--muted-bright);
  background: transparent;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-dropdown > summary:hover,
.lang-button:hover,
.lang-button[aria-pressed="true"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  list-style: none;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown > summary::after {
  color: var(--cyan);
  font-size: 0.66rem;
  content: "⌄";
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 252px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(9, 12, 18, 0.98);
  box-shadow: var(--shadow);
}

.dropdown-panel a {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 11px;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
}

.dropdown-panel a:hover,
.dropdown-panel a:focus-visible {
  background: rgba(255, 255, 255, 0.055);
}

.dropdown-dot {
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px currentColor;
}

.dropdown-panel strong {
  display: block;
  font-size: 0.84rem;
}

.dropdown-panel small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.language-switch {
  display: flex;
  gap: 2px;
  margin-left: 6px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.lang-button {
  padding-inline: 8px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 18px;
  height: 1px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
  content: "";
}

.menu-open .nav-toggle span {
  opacity: 0;
}

.menu-open .nav-toggle::before {
  transform: translateY(5px) rotate(45deg);
}

.menu-open .nav-toggle::after {
  transform: translateY(-5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 820px;
  padding: 154px 0 88px;
}

.hero::before {
  position: absolute;
  top: 108px;
  right: max(20px, calc((100vw - var(--max)) / 2));
  width: min(44vw, 560px);
  height: min(44vw, 560px);
  border: 1px solid rgba(105, 245, 210, 0.1);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(105, 245, 210, 0.04) 0 1px, transparent 1.5px) 0 0 / 18px 18px,
    radial-gradient(circle, rgba(169, 140, 255, 0.09), transparent 66%);
  filter: blur(0.1px);
  content: "";
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.boot-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.77rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(201, 255, 114, 0.7);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  60% {
    box-shadow: 0 0 0 9px rgba(201, 255, 114, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 255, 114, 0);
  }
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.2rem, 8.2vw, 7.8rem);
  font-weight: 880;
  letter-spacing: -0.085em;
  line-height: 0.84;
}

.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 246, 245, 0.62);
}

.hero h1 .accent {
  color: var(--cyan);
  text-shadow: 0 0 38px rgba(105, 245, 210, 0.18);
}

.hero-copy {
  max-width: 690px;
  margin: 30px 0 0;
  color: var(--muted-bright);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 12px 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  border-color: rgba(105, 245, 210, 0.55);
  background: rgba(105, 245, 210, 0.08);
  box-shadow: 0 0 28px rgba(105, 245, 210, 0.08);
  transform: translateY(-2px);
}

.button-primary {
  color: #05110e;
  border-color: var(--cyan);
  background: var(--cyan);
}

.button-primary:hover {
  color: #05110e;
  background: #99ffe7;
}

.button[aria-disabled="true"] {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
  cursor: not-allowed;
  transform: none;
}

.button-arrow::after {
  font-size: 1rem;
  content: "↗";
}

.terminal-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 48px),
    rgba(7, 10, 15, 0.88);
  box-shadow:
    var(--shadow),
    inset 0 0 60px rgba(105, 245, 210, 0.025);
  backdrop-filter: blur(18px);
}

.terminal-window::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.035) 48%, transparent 54%);
  transform: translateX(-100%);
  animation: terminal-sheen 9s ease-in-out infinite;
  content: "";
}

@keyframes terminal-sheen {
  0%,
  70% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.terminal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.69rem;
}

.terminal-controls {
  display: flex;
  gap: 7px;
}

.terminal-controls span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.terminal-controls span:first-child {
  background: var(--coral);
}

.terminal-controls span:nth-child(2) {
  background: var(--lime);
}

.terminal-controls span:last-child {
  background: var(--cyan);
}

.terminal-body {
  min-height: 410px;
  padding: clamp(20px, 4vw, 34px);
  font-family: var(--mono);
  font-size: clamp(0.76rem, 1.5vw, 0.92rem);
}

.terminal-line {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.terminal-time {
  color: #657078;
}

.terminal-command {
  color: var(--muted-bright);
}

.terminal-command .ok {
  color: var(--lime);
}

.terminal-command .key {
  color: var(--cyan);
}

.terminal-command .value {
  color: var(--violet);
}

.terminal-command .warn {
  color: var(--coral);
}

.terminal-projects {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 28px;
}

.terminal-project {
  position: relative;
  min-height: 94px;
  padding: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.024);
}

.terminal-project::after {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 9px var(--cyan);
  content: "";
}

.terminal-project strong {
  display: block;
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.terminal-project small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.62rem;
}

.system-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 13px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-showcase {
  margin-top: 52px;
}

.showcase-viewport {
  position: relative;
}

.showcase-track {
  display: grid;
  grid-auto-columns: min(88vw, 1080px);
  grid-auto-flow: column;
  gap: 22px;
  overflow-x: auto;
  padding: 2px max(20px, calc((100vw - var(--max)) / 2)) 32px;
  scroll-padding-inline: max(20px, calc((100vw - var(--max)) / 2));
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.showcase-track::-webkit-scrollbar {
  display: none;
}

.showcase-card {
  --card-accent: var(--cyan);
  position: relative;
  display: grid;
  min-height: 570px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #0b0e14;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.showcase-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: inherit;
  content: "";
}

.showcase-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  filter: saturate(0.82) contrast(1.08);
  transform: scale(1.01);
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.showcase-card:hover .showcase-image {
  transform: scale(1.035);
}

.showcase-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.98) 0, rgba(5, 7, 11, 0.86) 39%, rgba(5, 7, 11, 0.12) 76%),
    linear-gradient(0deg, rgba(5, 7, 11, 0.72), transparent 50%);
}

.showcase-content {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 570px;
  padding: clamp(30px, 6vw, 72px);
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.project-index {
  color: var(--card-accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.showcase-content h3 {
  margin: 14px 0 12px;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.showcase-content p {
  max-width: 510px;
  margin: 0;
  color: #d3dadb;
  font-size: clamp(0.98rem, 2vw, 1.15rem);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.project-tags li {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px 10px;
  color: #dce3e3;
  background: rgba(4, 6, 9, 0.42);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
}

.showcase-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 40px));
  margin: 12px auto 0;
}

.showcase-buttons {
  display: flex;
  gap: 8px;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.055);
}

.showcase-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.showcase-dot {
  width: 24px;
  height: 3px;
  border: 0;
  padding: 0;
  background: #343a41;
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.showcase-dot.is-active {
  width: 48px;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(105, 245, 210, 0.35);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(42px, 8vw, 110px);
  align-items: start;
}

.operator-card {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(140deg, rgba(105, 245, 210, 0.055), transparent 38%),
    rgba(9, 12, 18, 0.82);
  box-shadow: var(--shadow);
}

.operator-card::before {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(105, 245, 210, 0.12) 50%, transparent 50.5%),
    linear-gradient(transparent 49.5%, rgba(105, 245, 210, 0.12) 50%, transparent 50.5%);
  background-size: 58px 58px;
  content: "";
}

.operator-monogram {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(105, 245, 210, 0.08);
  font-family: var(--mono);
  font-size: clamp(8rem, 22vw, 17rem);
  font-weight: 900;
  letter-spacing: -0.18em;
  line-height: 1;
  transform: translate(-53%, -52%);
}

.operator-data {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.operator-data div {
  padding: 14px;
  background: rgba(7, 9, 14, 0.92);
}

.operator-data small,
.stat-card small {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.operator-data strong {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.about-copy p {
  color: var(--muted-bright);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.about-copy p:first-of-type {
  margin-top: 30px;
}

.about-copy strong {
  color: var(--ink);
}

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

.stat-card {
  min-height: 130px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.024);
}

.stat-card strong {
  display: block;
  margin-top: 28px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(105, 245, 210, 0.085), transparent 44%),
    rgba(10, 13, 19, 0.9);
}

.contact-panel::after {
  position: absolute;
  top: -130px;
  right: 12%;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(105, 245, 210, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 40px rgba(105, 245, 210, 0.02),
    0 0 0 90px rgba(105, 245, 210, 0.015);
  content: "";
}

.contact-panel h2 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.contact-panel p {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  color: var(--muted-bright);
}

.contact-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.site-footer {
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--cyan);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 650ms ease,
    transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Home portfolio */
.hero-clean {
  min-height: 0;
  padding: 154px 0 104px;
}

.hero-clean::before {
  top: 80px;
  right: -8vw;
  width: min(52vw, 680px);
  height: min(52vw, 680px);
  border-color: rgba(255, 79, 216, 0.12);
  background:
    radial-gradient(circle, rgba(255, 79, 216, 0.055) 0 1px, transparent 1.5px) 0 0 / 20px 20px,
    radial-gradient(circle, rgba(255, 79, 216, 0.14), rgba(182, 108, 255, 0.05) 48%, transparent 70%);
}

.hero-clean-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(440px, 1.18fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
}

.hero-intro {
  max-width: 650px;
}

.hero-kicker {
  margin: 0 0 24px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-clean h1 {
  max-width: 650px;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  letter-spacing: -0.072em;
  line-height: 0.96;
}

.hero-clean .hero-copy {
  max-width: 590px;
  margin-top: 25px;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.hero-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hero-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.42;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-solid);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  text-decoration: none;
}

.hero-tile:nth-child(1),
.hero-tile:nth-child(4) {
  transform: translateY(18px);
}

.hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.03);
  transition: transform 420ms ease, filter 420ms ease;
}

.hero-tile::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 3, 9, 0.88), transparent 48%);
  content: "";
}

.hero-tile span {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  z-index: 1;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-tile:hover {
  border-color: rgba(255, 79, 216, 0.6);
  box-shadow: 0 20px 60px rgba(255, 79, 216, 0.1);
}

.hero-tile:hover img {
  filter: saturate(1) contrast(1.03);
  transform: scale(1.025);
}

.project-terminal {
  overflow: hidden;
  border: 1px solid rgba(255, 79, 216, 0.42);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 79, 216, 0.055), transparent 42%),
    rgba(8, 5, 10, 0.94);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.42),
    0 0 46px rgba(255, 79, 216, 0.07);
  font-family: var(--mono);
}

.project-terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
}

.project-terminal-dots {
  display: flex;
  gap: 7px;
}

.project-terminal-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6f6170;
}

.project-terminal-dots i:first-child {
  background: var(--cyan);
}

.project-terminal-dots i:nth-child(2) {
  background: var(--violet);
}

.project-terminal-body {
  padding: 22px;
}

.project-terminal-command {
  margin: 0 0 16px;
  color: var(--muted-bright);
  font-size: 0.78rem;
}

.project-terminal-command span {
  color: var(--cyan);
  font-weight: 900;
}

.project-terminal-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 72px 142px;
  gap: 12px;
  align-items: center;
  min-height: 59px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 79, 216, 0.1);
  color: var(--ink);
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease;
}

a.project-terminal-row:hover {
  border-color: rgba(255, 79, 216, 0.3);
  background: rgba(255, 79, 216, 0.06);
}

.project-terminal-row strong {
  overflow: hidden;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-terminal-row small {
  color: var(--muted);
  font-size: 0.64rem;
}

.project-terminal-row em {
  color: var(--cyan);
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: right;
}

.project-status {
  color: var(--violet);
  font-size: 0.72rem;
  text-align: center;
  text-shadow: 0 0 12px currentColor;
}

.project-status.is-done {
  color: var(--cyan);
  font-size: 0.92rem;
}

.project-terminal-row.is-building em {
  color: var(--violet);
}

.portfolio-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.64fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 38px;
}

.portfolio-heading h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4.7vw, 4.2rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.portfolio-heading > p {
  margin: 0;
  color: var(--muted-bright);
  font-size: 1.06rem;
}

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

.portfolio-card {
  display: flex;
  overflow: hidden;
  min-height: 570px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 79, 216, 0.035), transparent 42%),
    rgba(12, 8, 14, 0.88);
  flex-direction: column;
  transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease;
}

.portfolio-card:hover {
  border-color: rgba(255, 79, 216, 0.48);
  box-shadow: 0 22px 65px rgba(255, 79, 216, 0.08);
  transform: translateY(-5px);
}

.portfolio-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.025);
}

.portfolio-card-content {
  display: flex;
  padding: 25px;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.portfolio-type {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portfolio-card h3 {
  margin: 12px 0 10px;
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.portfolio-card p {
  margin: 0 0 24px;
  color: var(--muted-bright);
  font-size: 0.95rem;
}

.portfolio-card .button {
  width: auto;
  margin-top: auto;
}

.game-section {
  background: linear-gradient(180deg, transparent, rgba(255, 79, 216, 0.025), transparent);
}

.game-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(10, 7, 12, 0.9);
  box-shadow: var(--shadow);
}

.game-feature-image {
  min-height: 470px;
  overflow: hidden;
}

.game-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease;
}

.game-feature:hover .game-feature-image img {
  transform: scale(1.02);
}

.game-feature-content {
  display: flex;
  padding: clamp(28px, 5vw, 54px);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.game-feature-content h3 {
  margin: 14px 0 14px;
  font-family: "Marrow Pixel", var(--mono);
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  letter-spacing: 0.015em;
  line-height: 1;
}

.game-feature-content p {
  margin: 0 0 28px;
  color: var(--muted-bright);
}

.about-simple-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(48px, 10vw, 150px);
  align-items: start;
}

.about-simple-grid h2 {
  max-width: 470px;
  margin: 0;
  font-size: clamp(2.5rem, 4.5vw, 3.9rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.about-simple-copy {
  max-width: 720px;
}

.about-simple-copy p {
  margin: 0 0 20px;
  color: var(--muted-bright);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.about-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 28px;
}

.about-details span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted-bright);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
}

/* Product pages */
.product-page {
  --product-accent: var(--cyan);
  --product-accent-rgb: 105, 245, 210;
}

.product-page[data-project="marrowmaze"] {
  --product-accent: #8cf0b5;
  --product-accent-rgb: 140, 240, 181;
}

.product-page[data-project="owncycle"] {
  --product-accent: #b294ff;
  --product-accent-rgb: 178, 148, 255;
}

.product-page[data-project="taskasa"] {
  --product-accent: #ff8267;
  --product-accent-rgb: 255, 130, 103;
}

.product-page[data-project="pocketitem"] {
  --product-accent: #ff963f;
  --product-accent-rgb: 255, 150, 63;
}

.product-hero {
  position: relative;
  padding: 138px 0 70px;
}

.product-hero::before {
  position: absolute;
  inset: 0 0 auto;
  height: 650px;
  opacity: 0.9;
  background: radial-gradient(circle at 72% 20%, rgba(var(--product-accent-rgb), 0.13), transparent 32rem);
  content: "";
}

.breadcrumb {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--product-accent);
}

.product-stage {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 650px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #0a0d13;
  box-shadow: var(--shadow);
}

.product-stage-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.product-stage::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 10, 0.98) 0, rgba(5, 7, 10, 0.9) 37%, rgba(5, 7, 10, 0.14) 75%),
    linear-gradient(0deg, rgba(5, 7, 10, 0.65), transparent 48%);
  content: "";
}

.product-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 660px;
  min-height: 650px;
  padding: clamp(32px, 6vw, 74px);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.product-type {
  color: var(--product-accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-title {
  margin: 16px 0;
  font-size: clamp(3.5rem, 10vw, 8.6rem);
  font-weight: 880;
  letter-spacing: -0.09em;
  line-height: 0.82;
}

[data-project="marrowmaze"] .product-title {
  color: #eee6cc;
  font-family: "Marrow Pixel", var(--mono);
  font-size: clamp(3.1rem, 8vw, 7.3rem);
  letter-spacing: 0.015em;
  line-height: 0.95;
  text-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
}

.product-tagline {
  max-width: 560px;
  margin: 0;
  color: #d6dcdc;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.product-actions .button-primary {
  color: #07100d;
  border-color: var(--product-accent);
  background: var(--product-accent);
}

.product-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.product-fact {
  min-height: 100px;
  padding: 20px;
  background: rgba(10, 13, 19, 0.92);
}

.product-fact small {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.product-fact strong {
  display: block;
  margin-top: 11px;
  font-size: 0.95rem;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(44px, 8vw, 110px);
  align-items: start;
}

.story-copy {
  position: sticky;
  top: 118px;
}

.story-copy h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.story-copy p {
  color: var(--muted-bright);
  font-size: 1.08rem;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
}

.feature-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(var(--product-accent-rgb), 0.35);
  color: var(--product-accent);
  background: rgba(var(--product-accent-rgb), 0.06);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.feature-item h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.gallery-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.gallery-header h2 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.gallery-header p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
}

.screen-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.screen-button {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  background: #0c0f15;
  cursor: zoom-in;
}

.screen-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.screen-button:hover img {
  transform: scale(1.025);
}

.screen-button::after {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  background: rgba(5, 7, 10, 0.7);
  backdrop-filter: blur(10px);
  content: "+";
}

.privacy-callout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: center;
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid rgba(var(--product-accent-rgb), 0.3);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(125deg, rgba(var(--product-accent-rgb), 0.085), transparent 46%),
    rgba(10, 13, 19, 0.86);
}

.privacy-callout h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.4rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.privacy-callout p {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--muted-bright);
}

/* Privacy hub and policy pages */
.privacy-hero {
  padding: 150px 0 70px;
}

.privacy-hero .section-heading {
  max-width: 820px;
  font-size: clamp(2.6rem, 5vw, 4.3rem);
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 42px;
}

.privacy-card {
  display: flex;
  min-height: 300px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
  flex-direction: column;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.privacy-card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.038);
  transform: translateY(-4px);
}

.privacy-card .status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.privacy-card .status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  content: "";
}

.privacy-card h2 {
  margin: 38px 0 10px;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.privacy-card p {
  margin: 0;
  color: var(--muted);
}

.privacy-link-text {
  margin-top: auto;
  padding-top: 30px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-privacy-note {
  margin-top: 24px;
  padding: 22px;
  border-left: 2px solid var(--cyan);
  color: var(--muted-bright);
  background: rgba(105, 245, 210, 0.045);
}

.policy-page {
  background:
    radial-gradient(circle at 80% 3%, rgba(var(--product-accent-rgb, 105, 245, 210), 0.09), transparent 30rem),
    var(--bg);
}

.policy-shell {
  width: min(940px, calc(100% - 40px));
  margin: 0 auto;
  padding: 132px 0 80px;
}

.policy-masthead {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.policy-masthead h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.8rem, 8vw, 6rem);
  letter-spacing: -0.07em;
  line-height: 0.92;
}

.policy-masthead .lead {
  max-width: 720px;
  margin: 0;
  color: var(--muted-bright);
  font-size: 1.12rem;
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.policy-language {
  display: flex;
  gap: 6px;
  margin-top: 28px;
}

.policy-body {
  padding-top: 26px;
}

.policy-summary {
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid rgba(var(--product-accent-rgb, 105, 245, 210), 0.25);
  border-radius: var(--radius);
  color: #dfe9e7;
  background: rgba(var(--product-accent-rgb, 105, 245, 210), 0.06);
  font-size: 1.05rem;
}

.policy-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.policy-section:last-child {
  border-bottom: 0;
}

.policy-section h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.policy-section p {
  margin: 0 0 12px;
  color: var(--muted-bright);
}

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

.policy-section ul {
  margin: 12px 0 0;
  padding-left: 1.2rem;
  color: var(--muted-bright);
}

.policy-section li {
  margin: 7px 0;
}

.policy-section li::marker {
  color: var(--product-accent, var(--cyan));
}

.policy-section a {
  color: var(--product-accent, var(--cyan));
  text-underline-offset: 3px;
}

.policy-back {
  margin-top: 38px;
}

.lightbox {
  width: min(920px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0;
  background: #080a0f;
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.lightbox img {
  width: 100%;
  max-height: calc(100vh - 80px);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: white;
  background: rgba(5, 7, 10, 0.8);
  cursor: pointer;
}

.not-found {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 40px 20px;
}

.not-found-card {
  width: min(760px, 100%);
  padding: clamp(28px, 7vw, 70px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.not-found-code {
  color: var(--coral);
  font-family: var(--mono);
  font-size: clamp(5rem, 19vw, 11rem);
  font-weight: 900;
  letter-spacing: -0.1em;
  line-height: 0.8;
}

@media (max-width: 980px) {
  .desktop-nav {
    position: fixed;
    top: 78px;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    padding: 18px 20px 30px;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 6, 9, 0.98);
    flex-direction: column;
    align-items: stretch;
  }

  .menu-open .desktop-nav {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .nav-link,
  .nav-dropdown > summary {
    justify-content: space-between;
    padding: 14px;
    font-size: 0.82rem;
  }

  .dropdown-panel {
    position: static;
    width: 100%;
    margin-top: 4px;
    box-shadow: none;
  }

  .language-switch {
    margin: 8px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero {
    min-height: 0;
  }

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

  .hero-clean-grid {
    grid-template-columns: 1fr;
  }

  .hero-intro {
    max-width: 760px;
  }

  .hero-mosaic {
    max-width: 760px;
  }

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

  .portfolio-card:last-child {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .portfolio-card:last-child {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  }

  .portfolio-card:last-child .portfolio-image {
    aspect-ratio: auto;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .game-feature {
    grid-template-columns: 1fr;
  }

  .game-feature-image {
    min-height: 420px;
  }

  .about-simple-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .terminal-window {
    max-width: 680px;
  }

  .about-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-copy {
    position: static;
  }

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

  .screen-button {
    min-height: 500px;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .privacy-card {
    min-height: 220px;
  }
}

@media (max-width: 720px) {
  .shell,
  .showcase-controls,
  .policy-shell {
    width: min(100% - 24px, var(--max));
  }

  .section {
    padding: 82px 0;
  }

  .section-tight {
    padding: 56px 0;
  }

  .hero {
    padding-top: 125px;
  }

  .hero::before {
    top: 110px;
    right: -180px;
    width: 430px;
    height: 430px;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 5.4rem);
  }

  .hero-clean {
    padding-top: 122px;
  }

  .hero-clean h1 {
    font-size: clamp(2.65rem, 11vw, 4.2rem);
  }

  .hero-mosaic {
    gap: 8px;
  }

  .project-terminal-body {
    padding: 16px 12px;
  }

  .project-terminal-row {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 9px;
    padding-inline: 6px;
  }

  .project-terminal-row small {
    display: none;
  }

  .project-terminal-row em {
    font-size: 0.57rem;
  }

  .hero-tile:nth-child(1),
  .hero-tile:nth-child(4) {
    transform: none;
  }

  .portfolio-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card,
  .portfolio-card:last-child {
    display: flex;
    min-height: 0;
  }

  .portfolio-card:last-child {
    grid-column: auto;
  }

  .portfolio-card:last-child .portfolio-image {
    aspect-ratio: 16 / 10;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .game-feature-image {
    min-height: 310px;
  }

  .terminal-body {
    min-height: 360px;
  }

  .terminal-line {
    grid-template-columns: 56px 1fr;
    gap: 8px;
  }

  .terminal-projects {
    grid-template-columns: 1fr;
  }

  .terminal-project {
    min-height: 64px;
  }

  .showcase-track {
    grid-auto-columns: calc(100vw - 24px);
    gap: 12px;
    padding-inline: 12px;
    scroll-padding-inline: 12px;
  }

  .showcase-card {
    min-height: 610px;
  }

  .showcase-overlay {
    background:
      linear-gradient(0deg, rgba(5, 7, 11, 0.98) 0, rgba(5, 7, 11, 0.86) 56%, rgba(5, 7, 11, 0.2) 100%),
      linear-gradient(90deg, rgba(5, 7, 11, 0.5), transparent);
  }

  .showcase-image {
    height: 58%;
  }

  .showcase-content {
    padding: 26px;
  }

  .showcase-content h3 {
    font-size: clamp(2.7rem, 14vw, 4.8rem);
  }

  .about-grid {
    gap: 38px;
  }

  .operator-card {
    min-height: 380px;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 94px;
  }

  .stat-card strong {
    margin-top: 16px;
  }

  .contact-panel,
  .privacy-callout {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    align-items: flex-start;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-hero {
    padding-top: 116px;
  }

  .product-stage,
  .product-hero-content {
    min-height: 650px;
  }

  .product-stage-image {
    opacity: 0.52;
  }

  .product-stage::after {
    background: linear-gradient(0deg, rgba(5, 7, 10, 0.99), rgba(5, 7, 10, 0.52) 76%, rgba(5, 7, 10, 0.1));
  }

  .product-hero-content {
    justify-content: flex-end;
  }

  .product-title {
    font-size: clamp(3.2rem, 17vw, 6.2rem);
  }

  .product-facts {
    grid-template-columns: 1fr 1fr;
  }

  .product-fact {
    min-height: 92px;
    padding: 16px;
  }

  .gallery-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .screen-gallery {
    grid-template-columns: 1fr;
  }

  .screen-button {
    min-height: 0;
    max-height: 760px;
  }

  .policy-shell {
    padding-top: 110px;
  }
}

@media (max-width: 460px) {
  .brand-word span {
    display: none;
  }

  .hero-actions,
  .product-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .showcase-controls {
    align-items: flex-start;
    flex-direction: column-reverse;
  }

  .operator-data {
    grid-template-columns: 1fr;
  }

  .product-facts {
    grid-template-columns: 1fr;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .policy-language,
  .policy-back {
    display: none !important;
  }

  body,
  .policy-page {
    color: #111;
    background: white;
  }

  .policy-shell {
    width: 100%;
    padding: 0;
  }

  .policy-masthead,
  .policy-section {
    border-color: #ccc;
  }

  .policy-masthead .lead,
  .policy-meta,
  .policy-section p,
  .policy-section ul {
    color: #333;
  }

  .policy-summary {
    color: #111;
    border-color: #aaa;
    background: #eee;
  }
}
