:root {
  color-scheme: dark;
  --bg: #070811;
  --bg-soft: #0c0e1a;
  --paper: #111421;
  --ink: #e2e4ef;
  --ink-strong: #fbfbff;
  --muted: #a5a8ba;
  --subtle: #777c92;
  --line: #24283b;
  --line-strong: #343952;
  --blue: #8d72ff;
  --blue-deep: #aa94ff;
  --cyan: #42dafa;
  --cyan-bright: #75ebff;
  --amber: #fbbf24;
  --green: #35d69a;
  --danger: #ff718e;
  --navy: #171226;
  --navy-deep: #07070f;
  --violet: #8d72ff;
  --magenta: #d66eea;
  --lavender: #2a2245;
  --surface: rgba(17, 20, 33, 0.9);
  --surface-solid: #111421;
  --surface-soft: #15182a;
  --surface-hover: #1d2034;
  --header-bg: rgba(7, 8, 17, 0.84);
  --tint-bg: rgba(11, 13, 25, 0.84);
  --input-bg: #0b0e19;
  --code-current: rgba(142, 114, 255, 0.2);
  --grid-line: rgba(142, 114, 255, 0.055);
  --shadow-sm: 0 14px 36px rgba(0, 0, 0, 0.24);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1180px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f6fb;
  --bg-soft: #efedf6;
  --paper: #ffffff;
  --ink: #302b3d;
  --ink-strong: #17121f;
  --muted: #686274;
  --subtle: #898292;
  --line: #e2deea;
  --line-strong: #d1cbdc;
  --blue: #6f4eff;
  --blue-deep: #5b39db;
  --cyan: #078dad;
  --cyan-bright: #2cb9d8;
  --amber: #d78a00;
  --green: #087d59;
  --danger: #bd3653;
  --navy: #2a1746;
  --navy-deep: #130920;
  --violet: #6f4eff;
  --magenta: #be48ca;
  --lavender: #ece7fa;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-solid: #ffffff;
  --surface-soft: #f4f1f8;
  --surface-hover: #eeeaf5;
  --header-bg: rgba(249, 248, 252, 0.88);
  --tint-bg: rgba(239, 237, 246, 0.82);
  --input-bg: #ffffff;
  --code-current: rgba(91, 55, 219, 0.15);
  --grid-line: rgba(91, 55, 219, 0.045);
  --shadow-sm: 0 12px 34px rgba(45, 30, 70, 0.09);
  --shadow: 0 30px 82px rgba(45, 30, 70, 0.15);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 13% 0%, rgba(214, 83, 216, 0.12), transparent 28rem),
    radial-gradient(circle at 92% 15%, rgba(118, 87, 255, 0.12), transparent 34rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body > header,
body > main,
body > footer {
  position: relative;
  z-index: 1;
}

.site-code-current {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0, black 8%, black 90%, transparent 100%);
}

.code-stream {
  position: absolute;
  top: -115vh;
  width: 12rem;
  color: var(--code-current);
  font: 650 0.63rem/2.15 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.035em;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  text-shadow: 0 0 14px rgba(214, 83, 216, 0.12);
  animation: code-river var(--code-speed, 34s) linear infinite;
  animation-delay: var(--code-delay, 0s);
}

.code-stream:nth-child(1) { left: 1.5%; --code-speed: 38s; --code-delay: -13s; }
.code-stream:nth-child(2) { left: 17%; --code-speed: 44s; --code-delay: -31s; opacity: 0.52; }
.code-stream:nth-child(3) { left: 46%; --code-speed: 41s; --code-delay: -7s; opacity: 0.42; }
.code-stream:nth-child(4) { right: 17%; --code-speed: 47s; --code-delay: -26s; opacity: 0.52; }
.code-stream:nth-child(5) { right: 1%; --code-speed: 36s; --code-delay: -18s; }

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

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

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

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

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

::selection {
  color: white;
  background: var(--blue);
}

:focus-visible {
  outline: 3px solid rgba(118, 87, 255, 0.48);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 12px;
  transform: translateY(-125%);
  padding: 10px 14px;
  border-radius: 10px;
  color: white;
  background: var(--blue);
  font-weight: 800;
}

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

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(20px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink-strong);
  font-weight: 850;
  letter-spacing: -0.025em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 8px 22px rgba(63, 34, 105, 0.2);
}

.brand small {
  display: block;
  margin-top: -3px;
  color: var(--subtle);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 3px;
}

.nav-links a {
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink-strong);
  background: var(--surface-hover);
}

.nav-links .nav-product {
  color: var(--blue-deep);
}

.nav-links .nav-cta {
  margin-left: 7px;
  color: white;
  background: linear-gradient(110deg, var(--blue-deep), var(--cyan));
  box-shadow: 0 8px 24px rgba(91, 55, 219, 0.2);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta[aria-current="page"] {
  color: white;
  background: var(--blue);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: currentColor;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--blue-deep);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 92px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 43%;
  width: 260px;
  aspect-ratio: 1;
  border-radius: 46% 54% 63% 37%;
  background: linear-gradient(135deg, rgba(118, 87, 255, 0.2), rgba(214, 83, 216, 0.1));
  filter: blur(18px);
  animation: aurora-drift 11s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: -8%;
  width: min(48vw, 700px);
  aspect-ratio: 1;
  border: 1px solid rgba(118, 87, 255, 0.11);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(118, 87, 255, 0.03),
    0 0 0 140px rgba(214, 83, 216, 0.02);
  animation: orbital-breathe 9s ease-in-out infinite;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(370px, 0.8fr);
  align-items: center;
  gap: 56px;
}

.hero-copy {
  max-width: 720px;
}

.hero h1,
.page-hero h1,
.article-header h1 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(3.45rem, 6.2vw, 5.85rem);
  line-height: 0.99;
  letter-spacing: -0.054em;
}

.hero h1 span {
  display: inline;
  color: transparent;
  background: linear-gradient(100deg, var(--blue) 8%, var(--magenta) 88%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lead {
  max-width: 720px;
  margin: 29px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(15, 55, 78, 0.06);
  font-weight: 820;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(118, 87, 255, 0.38);
  background: var(--surface-solid);
  box-shadow: 0 12px 28px rgba(15, 55, 78, 0.1);
}

.button-primary {
  border-color: transparent;
  color: white;
  background: linear-gradient(110deg, var(--blue-deep), var(--magenta));
  box-shadow: 0 12px 30px rgba(91, 55, 219, 0.25);
}

.button-primary:hover {
  border-color: transparent;
  color: white;
  background: linear-gradient(110deg, #4d2bc9, #c441cb);
  box-shadow: 0 16px 36px rgba(91, 55, 219, 0.34);
}

.button-small {
  min-height: 40px;
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 0.88rem;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 27px;
  color: var(--subtle);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-contact a {
  color: var(--muted);
}

.hero-contact a:hover {
  color: var(--blue);
}

.signal-rail {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-block: 1px solid rgba(118, 87, 255, 0.16);
  color: var(--blue-deep);
  background: color-mix(in srgb, var(--surface-soft) 86%, transparent);
  backdrop-filter: blur(14px);
  mask-image: linear-gradient(90deg, transparent, black 7%, black 93%, transparent);
}

.signal-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 13px 0;
  animation: signal-scroll 34s linear infinite;
}

.signal-track span {
  font: 850 0.7rem ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.signal-track i {
  color: var(--magenta);
  font-style: normal;
  animation: signal-twinkle 2.8s ease-in-out infinite;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: white;
  background:
    radial-gradient(circle at 100% 0%, rgba(214, 83, 216, 0.35), transparent 48%),
    radial-gradient(circle at 0% 100%, rgba(118, 87, 255, 0.25), transparent 45%),
    linear-gradient(145deg, #351a5a, var(--navy-deep));
  box-shadow: 0 30px 75px rgba(48, 21, 82, 0.27);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  pointer-events: none;
}

.hero-panel::after {
  content: "";
  position: absolute;
  top: 52px;
  right: -95px;
  width: 230px;
  aspect-ratio: 1;
  border: 1px solid rgba(219, 131, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(219, 131, 255, 0.04), 0 0 0 70px rgba(118, 87, 255, 0.025);
  animation: orbital-breathe 7s ease-in-out infinite reverse;
}

.panel-topline {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.availability {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #86f1d0;
  font-size: 0.79rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.availability::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #65e2b8;
  box-shadow: 0 0 0 6px rgba(101, 226, 184, 0.11);
}

.signal-code {
  color: rgba(255, 255, 255, 0.44);
  font: 700 0.73rem ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.08em;
}

.at0m-wordmark {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-top: 46px;
  color: white;
  font-size: clamp(2.6rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.at0m-wordmark span {
  color: #e29aff;
}

.flagship-panel h2 {
  margin-top: 22px;
  font-size: 1.25rem;
}

.flagship-panel > p {
  font-size: 0.9rem;
}

.flow-track {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 25px;
}

.flow-track div {
  position: relative;
  min-width: 0;
  padding: 11px 8px;
  border: 1px solid rgba(226, 154, 255, 0.17);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  animation: flow-signal 5.6s ease-in-out infinite;
}

.flow-track div:nth-child(2) { animation-delay: 0.7s; }
.flow-track div:nth-child(3) { animation-delay: 1.4s; }
.flow-track div:nth-child(4) { animation-delay: 2.1s; }

.flow-track div:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -7px;
  width: 7px;
  height: 1px;
  background: #d987ff;
}

.flow-track span,
.flow-track strong {
  display: block;
}

.flow-track span {
  color: #dd8fff;
  font: 800 0.58rem ui-monospace, SFMono-Regular, Consolas, monospace;
}

.flow-track strong {
  overflow: hidden;
  margin-top: 3px;
  color: #f2e9fa;
  font-size: 0.68rem;
  text-overflow: ellipsis;
}

.panel-product-link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: #e19aff;
  font-size: 0.8rem;
  font-weight: 850;
}

.hero-orbit-chip {
  position: relative;
  z-index: 2;
  min-height: 70px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 8px 13px 8px 7px;
  overflow: hidden;
  border: 1px solid rgba(117, 230, 239, 0.18);
  border-radius: 14px;
  background: linear-gradient(110deg, rgba(117, 230, 239, 0.08), rgba(216, 137, 255, 0.08));
}

.hero-orbit-chip::after {
  content: "";
  position: absolute;
  right: -32px;
  width: 100px;
  aspect-ratio: 1;
  border: 1px solid rgba(216, 137, 255, 0.13);
  border-radius: 50%;
}

.hero-orbit-chip img {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 64px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28));
  animation: orbit-float 4s ease-in-out infinite;
}

.hero-orbit-chip span {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-orbit-chip small,
.hero-orbit-chip strong {
  display: block;
}

.hero-orbit-chip small {
  color: #75e6ef;
  font: 800 0.58rem ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-orbit-chip strong {
  margin-top: 3px;
  color: #f5eefb;
  font-size: 0.76rem;
}

.panel-product-link span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(225, 154, 255, 0.3);
  border-radius: 50%;
}

.panel-product-link:hover {
  color: white;
}

.hero-panel h2 {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin: 58px 0 0;
  font-size: 1.7rem;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.hero-panel > p {
  position: relative;
  z-index: 1;
  max-width: 390px;
  margin: 14px 0 0;
  color: #b8cad5;
}

.stat-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 29px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-grid strong {
  display: block;
  color: #6fe5ef;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.stat-grid span {
  display: block;
  margin-top: 5px;
  color: #8fa7b6;
  font-size: 0.7rem;
  line-height: 1.35;
}

.system-line {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.7fr 1.3fr 0.45fr;
  gap: 5px;
  margin-top: 24px;
}

.system-line span {
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.system-line span:nth-child(1),
.system-line span:nth-child(4) {
  background: var(--cyan-bright);
}

.section {
  padding: 82px 0;
}

.section-tint {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(140deg, rgba(118, 87, 255, 0.07), transparent 45%),
    var(--tint-bg);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.55fr);
  justify-content: space-between;
  align-items: end;
  gap: 44px;
  margin-bottom: 40px;
}

.section-heading h2,
.page-hero h1,
.translator-intro h1 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(2.45rem, 5vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.section-heading p,
.page-hero .lead,
.translator-intro .lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.capability-card {
  min-height: 330px;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.capability-card:nth-child(odd) {
  background: linear-gradient(145deg, rgba(118, 87, 255, 0.1), var(--surface) 55%);
}

.capability-card:nth-child(even) {
  background: linear-gradient(145deg, rgba(214, 83, 216, 0.08), var(--surface) 55%);
}

.capability-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--blue) 46%, var(--line));
  box-shadow: var(--shadow);
}

.capability-card::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -28px;
  width: 94px;
  aspect-ratio: 1;
  border: 1px solid rgba(118, 87, 255, 0.12);
  border-radius: 50%;
}

.capability-number {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--blue) 34%, var(--line));
  border-radius: 12px;
  color: var(--blue-deep);
  background: color-mix(in srgb, var(--blue) 11%, var(--surface-solid));
  font: 850 0.77rem ui-monospace, SFMono-Regular, Consolas, monospace;
}

.capability-card h3,
.project-card h3,
.post-card h2,
.post-card h3 {
  margin: 47px 0 11px;
  color: var(--ink-strong);
  font-size: 1.18rem;
  line-height: 1.24;
  letter-spacing: -0.03em;
}

.capability-card p,
.project-card p,
.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 13px;
}

.role-card {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 25px;
  padding: 27px;
  background: linear-gradient(110deg, rgba(118, 87, 255, 0.09), var(--surface) 34%);
}

.role-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 3px;
  border-radius: 0 99px 99px 0;
  background: linear-gradient(var(--blue), var(--cyan));
}

.role-card-compact::before {
  background: var(--line-strong);
}

.role-date {
  color: var(--blue-deep);
  font: 850 0.76rem ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.role-card h3 {
  margin: 0 0 10px;
  color: var(--ink-strong);
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.028em;
}

.role-card h3 span {
  color: var(--muted);
  font-size: 0.92em;
  font-weight: 700;
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 17px;
}

.tag {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.73rem;
  font-weight: 780;
}

.side-stack {
  display: grid;
  gap: 13px;
  position: sticky;
  top: 96px;
}

.side-card {
  padding: 23px;
  background: linear-gradient(150deg, rgba(214, 83, 216, 0.08), var(--surface) 48%);
}

.side-label {
  color: var(--blue-deep);
  font: 850 0.68rem ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.side-card h3 {
  margin: 7px 0 12px;
  color: var(--ink-strong);
  font-size: 1.1rem;
}

.side-card p,
.side-card li {
  color: var(--muted);
  font-size: 0.88rem;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  display: grid;
  gap: 2px;
}

.detail-list strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.detail-list span {
  color: var(--subtle);
  font-size: 0.76rem;
}

.compact-list {
  gap: 11px;
}

.side-note {
  margin: 18px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.section-projects {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--tint-bg);
}

.section-projects::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -100px;
  width: 520px;
  aspect-ratio: 1;
  border: 1px solid rgba(118, 87, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(118, 87, 255, 0.025), 0 0 0 120px rgba(214, 83, 216, 0.018);
}

.projects-grid,
.posts-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.project-card,
.post-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 25px;
}

.project-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:not(.project-featured) {
  background:
    radial-gradient(circle at 100% 0%, rgba(214, 83, 216, 0.09), transparent 15rem),
    linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--surface-soft) 90%, var(--blue) 10%));
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.projects-grid > .project-card:last-child {
  grid-column: 1 / -1;
  min-height: 270px;
}

.project-featured {
  grid-row: span 2;
  min-height: 676px;
  color: white;
  background:
    radial-gradient(circle at 110% 5%, rgba(214, 83, 216, 0.32), transparent 40%),
    linear-gradient(155deg, #351a5a, var(--navy-deep));
  box-shadow: 0 26px 70px rgba(48, 21, 82, 0.24);
}

.project-at0m {
  background:
    radial-gradient(circle at 8% 92%, rgba(118, 87, 255, 0.34), transparent 35%),
    radial-gradient(circle at 110% 5%, rgba(214, 83, 216, 0.38), transparent 42%),
    linear-gradient(155deg, #351a5a, #150925 76%);
}

.project-featured::before {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -145px;
  width: 410px;
  aspect-ratio: 1;
  border: 1px solid rgba(219, 131, 255, 0.19);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(219, 131, 255, 0.035), 0 0 0 86px rgba(118, 87, 255, 0.022);
}

.project-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.project-index {
  color: #8ba3b1;
  font: 800 0.72rem ui-monospace, SFMono-Regular, Consolas, monospace;
}

.card-kicker,
.post-meta {
  color: var(--blue-deep);
  font-size: 0.73rem;
  font-weight: 880;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-featured .card-kicker,
.project-featured .project-index {
  color: #e1a0ff;
}

.project-card h3,
.post-card h2,
.post-card h3 {
  position: relative;
  z-index: 1;
  margin-top: 58px;
  font-size: 1.55rem;
}

.project-featured h3 {
  margin-top: 70px;
  color: white;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.project-featured p {
  position: relative;
  z-index: 1;
  max-width: 470px;
  color: #b7cbd6;
  font-size: 1rem;
}

.estate-preview {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-top: 30px;
  border: 1px solid rgba(226, 154, 255, 0.2);
  border-radius: 14px;
  background: rgba(15, 5, 29, 0.68);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.estate-chrome {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #9c8baa;
  font: 700 0.6rem ui-monospace, SFMono-Regular, Consolas, monospace;
}

.estate-chrome > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #62447d;
}

.estate-chrome > span:first-child {
  background: #d987ff;
}

.estate-chrome strong {
  overflow: hidden;
  margin-left: 5px;
  color: #a894b8;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.estate-canvas {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
  align-items: center;
  padding: 21px 16px 23px;
  background-image:
    linear-gradient(rgba(226, 154, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 154, 255, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
}

.estate-node {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(45, 23, 75, 0.9);
}

.estate-node small,
.estate-node strong,
.estate-node span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.estate-node small {
  color: #dc8eff;
  font: 800 0.54rem ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.estate-node strong {
  margin-top: 5px;
  color: #f2eafa;
  font-size: 0.72rem;
}

.estate-node span {
  margin-top: 2px;
  color: #9d8cad;
  font-size: 0.58rem;
}

.estate-orbit {
  border-color: rgba(226, 154, 255, 0.4);
  box-shadow: 0 0 26px rgba(214, 83, 216, 0.12);
}

.estate-flow {
  border-color: rgba(101, 226, 184, 0.28);
}

.estate-flow small {
  color: #65e2b8;
}

.estate-link {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, #6741a3, #d987ff);
}

.estate-link::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f1b7ff;
  box-shadow: 0 0 8px #d987ff;
  animation: link-travel 2.2s linear infinite;
}

.estate-link::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -1px;
  width: 5px;
  height: 5px;
  border-top: 1px solid #d987ff;
  border-right: 1px solid #d987ff;
  transform: rotate(45deg);
}

.featured-pills {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 17px;
}

.featured-pills span {
  padding: 5px 9px;
  border: 1px solid rgba(226, 154, 255, 0.17);
  border-radius: 999px;
  color: #b7a5c7;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.65rem;
  font-weight: 750;
}

.project-featured .card-link {
  color: #e09aff;
}

.project-featured .card-link:hover {
  color: white;
}

.at0m-maker {
  position: relative;
  z-index: 2;
  min-height: 112px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 19px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.orbit-portrait {
  position: relative;
  width: 88px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(123, 219, 255, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 70%, rgba(30, 146, 255, 0.3), transparent 55%),
    rgba(255, 255, 255, 0.045);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.orbit-portrait img {
  width: 86px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.28));
  animation: orbit-float 4s ease-in-out infinite;
}

.orbit-message {
  position: absolute;
  z-index: 3;
  left: 66px;
  bottom: 66px;
  width: max-content;
  padding: 6px 9px;
  border: 1px solid rgba(216, 137, 255, 0.3);
  border-radius: 9px 9px 9px 2px;
  color: #f8eaff;
  background: #3c1a5e;
  box-shadow: 0 8px 20px rgba(5, 1, 12, 0.3);
  font: 800 0.62rem ui-monospace, SFMono-Regular, Consolas, monospace;
  opacity: 0;
  transform: translateY(5px) scale(0.92);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.maker-copy {
  min-width: 0;
}

.maker-copy small,
.maker-copy strong,
.maker-copy em {
  display: block;
}

.maker-copy small {
  color: #75e6ef;
  font: 850 0.6rem ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.maker-copy strong {
  margin-top: 4px;
  color: white;
  font-size: 0.86rem;
  line-height: 1.2;
}

.maker-copy em {
  overflow: hidden;
  margin-top: 4px;
  color: #a995b9;
  font-size: 0.67rem;
  font-style: normal;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.at0m-maker > b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(225, 154, 255, 0.25);
  border-radius: 50%;
  color: #e09aff;
  font-size: 0.78rem;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.at0m-maker:hover .orbit-portrait,
.at0m-maker:focus-visible .orbit-portrait {
  border-color: rgba(117, 230, 239, 0.56);
  box-shadow: 0 0 28px rgba(41, 192, 255, 0.15);
  transform: translateY(-3px);
}

.at0m-maker:hover .orbit-message,
.at0m-maker:focus-visible .orbit-message {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.at0m-maker:hover > b,
.at0m-maker:focus-visible > b {
  color: var(--navy-deep);
  background: #e09aff;
  transform: rotate(8deg);
}

.project-mini-proof {
  display: grid;
  gap: 2px;
  margin-top: 23px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.project-mini-proof strong {
  color: var(--blue-deep);
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.project-mini-proof span {
  color: var(--subtle);
  font-size: 0.7rem;
}

.card-label-light {
  color: var(--subtle);
}

.card-label-light::after {
  content: "";
}

.project-proof {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 330px;
  gap: 4px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.project-proof strong {
  color: #6ee4ee;
  font-size: 1.8rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.project-proof span {
  color: #8ea8b7;
  font-size: 0.76rem;
}

.card-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 28px;
  color: var(--blue-deep);
  font-weight: 850;
}

.card-link::after {
  content: "↗";
}

.card-link.internal::after {
  content: "→";
}

.card-link.card-label-light {
  color: var(--subtle);
  cursor: default;
}

.card-link.card-label-light::after {
  content: none;
}

.card-link:hover {
  color: var(--cyan);
}

.card-label {
  color: #8ea8b7;
}

.card-label::after {
  content: "";
}

.post-card-media {
  margin: -25px -25px 22px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--navy-deep);
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card h2,
.post-card h3 {
  margin-top: 19px;
}

.section-writing {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(118, 87, 255, 0.12);
  background:
    radial-gradient(circle at 4% 20%, rgba(214, 83, 216, 0.12), transparent 25rem),
    radial-gradient(circle at 92% 88%, rgba(118, 87, 255, 0.1), transparent 30rem),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 76%, transparent), var(--tint-bg));
}

.section-writing::before {
  content: "";
  position: absolute;
  right: -4%;
  bottom: 8%;
  width: min(760px, 70vw);
  height: 240px;
  background-image:
    linear-gradient(90deg, rgba(91, 55, 219, 0.055) 3px, transparent 3px),
    linear-gradient(rgba(214, 83, 216, 0.045) 3px, transparent 3px);
  background-size: 31px 31px;
  mask-image: radial-gradient(ellipse at center, black, transparent 70%);
  transform: rotate(-7deg);
  pointer-events: none;
}

.section-writing .post-card {
  background: var(--surface);
  backdrop-filter: blur(8px);
}

.posts-grid .post-card:first-child {
  grid-column: span 1;
}

.empty-card {
  justify-content: center;
  border-style: dashed;
  background: linear-gradient(145deg, rgba(118, 87, 255, 0.1), color-mix(in srgb, var(--surface) 78%, transparent));
}

.empty-card h3 {
  margin-top: 18px;
}

.personal-strip {
  border-block: 1px solid var(--line);
  background: var(--surface-soft);
}

.arcade-break {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
  border-block: 1px solid rgba(222, 142, 255, 0.18);
  color: white;
  background:
    radial-gradient(circle at 8% 12%, rgba(118, 87, 255, 0.36), transparent 32rem),
    radial-gradient(circle at 88% 92%, rgba(214, 83, 216, 0.24), transparent 30rem),
    linear-gradient(145deg, #241039, #10071e 72%);
}

.arcade-break::before,
.arcade-break::after {
  content: "";
  position: absolute;
  width: 320px;
  aspect-ratio: 1;
  border: 1px solid rgba(216, 137, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(118, 87, 255, 0.025), 0 0 0 96px rgba(214, 83, 216, 0.018);
  pointer-events: none;
}

.arcade-break::before {
  top: -190px;
  left: -80px;
}

.arcade-break::after {
  right: -110px;
  bottom: -210px;
}

.arcade-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(460px, 1.25fr);
  align-items: center;
  gap: 64px;
}

.arcade-copy .eyebrow {
  color: #e29aff;
}

.arcade-copy h2 {
  max-width: 470px;
  margin: 0;
  color: white;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

#arcade-title {
  scroll-margin-top: 150px;
}

.arcade-copy > p:not(.eyebrow):not(.arcade-hint) {
  max-width: 490px;
  margin: 20px 0 0;
  color: #b7a8c4;
}

.arcade-score {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 27px;
  color: #dcb6ec;
  font: 800 0.72rem ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.arcade-score strong {
  color: #72eff5;
  font-weight: 900;
}

.arcade-hint {
  margin: 10px 0 0;
  color: #826f90;
  font: 700 0.65rem ui-monospace, SFMono-Regular, Consolas, monospace;
}

.arcade-console {
  position: relative;
  min-height: 352px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(226, 154, 255, 0.23);
  border-radius: 24px;
  color: inherit;
  background: rgba(7, 2, 15, 0.66);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 28px 70px rgba(0, 0, 0, 0.25);
  cursor: crosshair;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.arcade-console:hover,
.arcade-console:focus-visible {
  border-color: rgba(226, 154, 255, 0.5);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 32px 76px rgba(0, 0, 0, 0.34), 0 0 34px rgba(118, 87, 255, 0.09);
  transform: translateY(-3px);
}

.arcade-screen {
  position: relative;
  min-height: 275px;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(117, 230, 239, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(rgba(117, 230, 239, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 230, 239, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 110%, rgba(118, 87, 255, 0.3), transparent 58%),
    #090314;
  background-size: 18px 18px, 18px 18px, auto, auto;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.58);
}

.arcade-stars,
.arcade-stars::before,
.arcade-stars::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(216, 137, 255, 0.65) 0 1px, transparent 1.5px);
  background-position: 19px 27px, 88px 61px;
  background-size: 123px 89px, 157px 112px;
  opacity: 0.34;
}

.arcade-stars::before {
  transform: translate(43px, 22px) scale(0.75);
}

.arcade-stars::after {
  transform: translate(-20px, 57px) scale(0.55);
}

.invader-fleet {
  position: absolute;
  z-index: 2;
  top: 46px;
  left: 10%;
  right: 10%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 17%;
  animation: invader-march 3.2s steps(2, end) infinite alternate;
}

.pixel-invader {
  justify-self: center;
  width: 48px;
  height: 36px;
  color: #d883ff;
  filter: drop-shadow(0 0 9px rgba(214, 83, 216, 0.48));
}

.pixel-invader:nth-child(2),
.pixel-invader:nth-child(5) {
  color: #7657ff;
}

.pixel-invader:nth-child(3),
.pixel-invader:nth-child(4) {
  color: #72eff5;
}

.pixel-invader svg,
.pixel-defender svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
  shape-rendering: crispEdges;
}

.pixel-invader.is-zapped {
  animation: pixel-pop 380ms steps(4, end) forwards;
}

.pixel-defender {
  position: absolute;
  z-index: 2;
  left: calc(50% - 28px);
  bottom: 18px;
  width: 56px;
  height: 31px;
  color: #72eff5;
  filter: drop-shadow(0 0 10px rgba(114, 239, 245, 0.54));
}

.arcade-laser {
  position: absolute;
  z-index: 3;
  left: calc(50% - 1px);
  bottom: 48px;
  width: 2px;
  height: 0;
  border-radius: 99px;
  background: white;
  box-shadow: 0 0 8px #72eff5, 0 0 15px #72eff5;
  opacity: 0;
}

.arcade-console.is-firing .arcade-laser {
  animation: laser-fire 280ms linear;
}

.arcade-console.is-cleared .arcade-screen {
  box-shadow: inset 0 0 70px rgba(78, 226, 180, 0.12), 0 0 34px rgba(114, 239, 245, 0.08);
}

.arcade-prompt {
  display: block;
  padding-top: 12px;
  color: #8f7b9e;
  font: 800 0.65rem ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.11em;
  text-align: center;
  text-transform: uppercase;
}

.easter-toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 28px;
  width: min(420px, calc(100% - 30px));
  padding: 13px 18px;
  border: 1px solid rgba(226, 154, 255, 0.36);
  border-radius: 13px;
  color: white;
  background: rgba(30, 12, 49, 0.94);
  box-shadow: 0 18px 50px rgba(30, 12, 49, 0.34);
  font: 850 0.75rem ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.07em;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 18px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.easter-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.party-mode .site-code-current {
  filter: hue-rotate(55deg) saturate(1.4);
}

.party-mode .arcade-console,
.party-mode .hero-panel {
  animation: party-hue 2.6s linear infinite;
}

.personal-inner {
  min-height: 108px;
  display: grid;
  grid-template-columns: 140px minmax(0, 760px);
  align-items: center;
  gap: 34px;
}

.personal-code {
  color: var(--blue-deep);
  font: 850 0.72rem ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.1em;
}

.personal-inner p {
  margin: 0;
  color: var(--muted);
}

.contact-band {
  padding: 82px 0;
  color: white;
  background:
    radial-gradient(circle at 10% 100%, rgba(118, 87, 255, 0.32), transparent 35%),
    radial-gradient(circle at 92% 5%, rgba(214, 83, 216, 0.2), transparent 36%),
    linear-gradient(115deg, #351a5a, var(--navy-deep));
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 38px;
  align-items: center;
}

.contact-inner .eyebrow {
  color: #e3a0ff;
}

.contact-inner h2 {
  margin: 0;
  color: white;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.contact-inner p:not(.eyebrow) {
  max-width: 650px;
  margin: 16px 0 0;
  color: #a9c0cd;
}

.contact-actions {
  display: grid;
  justify-items: center;
  gap: 11px;
}

.contact-actions .button-primary {
  border-color: #d98aff;
  color: var(--navy-deep);
  background: #d98aff;
}

.contact-actions .button-primary:hover {
  background: #edbcff;
}

.text-link {
  color: #a9c0cd;
  font-size: 0.88rem;
  font-weight: 750;
}

.text-link:hover {
  color: white;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 32px 0;
  color: #7892a1;
  background: #10071e;
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

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

.footer-links a:hover {
  color: white;
}

.page-hero {
  padding: 92px 0 60px;
}

.page-hero .lead {
  max-width: 690px;
  margin-top: 23px;
}

.page-hero h1 {
  max-width: 940px;
}

.blog-shell {
  min-height: 60vh;
  padding: 22px 0 104px;
}

.blog-shell .posts-grid .post-card:first-child {
  grid-column: span 1;
}

.article-header {
  max-width: 960px;
  margin: 0 auto;
  padding: 92px 0 50px;
  text-align: center;
}

.article-header h1 {
  font-size: clamp(3.1rem, 7vw, 6.6rem);
}

.article-header .lead {
  max-width: 750px;
  margin: 25px auto 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.article-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin-top: 25px;
  color: var(--subtle);
  font-size: 0.86rem;
}

.article-cover {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--navy-deep);
  box-shadow: var(--shadow);
}

.article-body {
  width: min(760px, calc(100% - 40px));
  margin: 60px auto 104px;
  color: var(--muted);
  font-size: 1.05rem;
}

.article-body h2 {
  margin: 2.5em 0 0.65em;
  color: var(--ink-strong);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.article-body h3 {
  margin: 2em 0 0.5em;
  color: var(--ink-strong);
  font-size: 1.25rem;
}

.article-body p,
.article-body ul,
.article-body ol {
  margin: 0 0 1.25em;
}

.article-body li + li {
  margin-top: 0.45em;
}

.article-body strong {
  color: var(--ink-strong);
}

.article-body code {
  padding: 0.14em 0.38em;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue-deep);
  background: #edf4f8;
  font-size: 0.88em;
}

.article-callout {
  margin: 2em 0;
  padding: 22px;
  border: 1px solid #c9e6ed;
  border-left: 4px solid var(--cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: color-mix(in srgb, var(--cyan) 8%, var(--surface-solid));
}

.article-callout p:last-child {
  margin-bottom: 0;
}

.article-footer-card {
  margin-top: 54px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.article-footer-card h2 {
  margin-top: 0;
  font-size: 1.45rem;
}

/* Translator */
.translator-page {
  min-height: calc(100vh - 76px);
  padding: 60px 0 96px;
}

.translator-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.6fr);
  align-items: end;
  gap: 46px;
  margin-bottom: 34px;
}

.translator-intro h1 {
  max-width: 780px;
}

.translator-intro .lead {
  margin-top: 18px;
}

.cloudflare-note {
  padding: 17px 18px;
  border: 1px solid #c8e7ef;
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: color-mix(in srgb, var(--cyan) 8%, var(--surface-solid));
  font-size: 0.9rem;
}

.cloudflare-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-deep);
}

.translator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 17px;
  align-items: start;
}

.translator-card,
.translator-settings {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.translator-card {
  padding: 20px;
}

.translator-settings {
  position: sticky;
  top: 94px;
  padding: 21px;
}

.translator-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.direction-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface-soft);
}

.direction-tabs button {
  min-height: 42px;
  padding: 8px 13px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.direction-tabs button:last-child {
  border-right: 0;
}

.direction-tabs button.active {
  color: white;
  background: var(--blue);
}

.auto-control {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 750;
}

.switch {
  position: relative;
  width: 43px;
  height: 24px;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch-track {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #e7eef2;
  cursor: pointer;
  transition: background 160ms ease;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #8299a7;
  transition: transform 160ms ease, background 160ms ease;
}

.switch input:checked + .switch-track {
  border-color: var(--blue);
  background: var(--blue);
}

.switch input:checked + .switch-track::after {
  transform: translateX(19px);
  background: white;
}

.switch input:focus-visible + .switch-track {
  outline: 3px solid rgba(23, 105, 255, 0.42);
  outline-offset: 3px;
}

.translation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
}

.translation-pane {
  min-width: 0;
}

.translation-pane + .translation-pane {
  border-left: 1px solid var(--line-strong);
}

.pane-header {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-soft) 82%, transparent);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pane-header .language-label {
  color: var(--blue-deep);
}

.pane-header button {
  padding: 5px 8px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: none;
}

.pane-header button:hover {
  color: var(--ink);
  background: #e5eef3;
}

#sourceText,
.result-text {
  width: 100%;
  min-height: 285px;
  margin: 0;
  padding: 18px;
  border: 0;
  color: var(--ink-strong);
  background: transparent;
  font-size: 1.08rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

#sourceText {
  resize: vertical;
  outline: 0;
}

#sourceText::placeholder,
.result-text[data-state="empty"] {
  color: var(--subtle);
}

.result-text[data-state="error"] {
  color: var(--danger);
}

.pane-footer {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  background: color-mix(in srgb, var(--surface-soft) 72%, transparent);
  font-size: 0.76rem;
}

.translation-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.84rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--subtle);
}

.status-line[data-state="working"] .status-dot {
  background: var(--amber);
  animation: pulse 900ms ease-in-out infinite alternate;
}

.status-line[data-state="success"] .status-dot {
  background: var(--green);
}

.status-line[data-state="error"] .status-dot {
  background: var(--danger);
}

@keyframes pulse {
  to { opacity: 0.35; }
}

.settings-title {
  margin: 0 0 18px;
  color: var(--ink-strong);
  font-size: 1rem;
}

.form-stack {
  display: grid;
  gap: 15px;
}

.form-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 750;
}

.form-field select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: var(--input-bg);
}

.form-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.quick-starts {
  margin-top: 23px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.quick-starts h3 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.76rem;
  cursor: pointer;
}

.chip:hover {
  border-color: rgba(23, 105, 255, 0.36);
  color: var(--blue-deep);
  background: var(--surface-solid);
}

.privacy-note {
  margin: 19px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.76rem;
}

.not-found {
  min-height: calc(100vh - 150px);
  display: grid;
  place-items: center;
  padding: 70px 0;
  text-align: center;
}

.not-found h1 {
  margin: 0;
  color: transparent;
  background: linear-gradient(100deg, var(--blue), var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(5rem, 20vw, 12rem);
  line-height: 0.8;
}

.not-found h2 {
  margin: 26px 0 0;
  color: var(--ink-strong);
  font-size: 1.8rem;
}

.not-found p {
  margin: 10px 0 0;
  color: var(--muted);
}

.reveal-ready .reveal-item {
  opacity: 0;
  transform: translateY(26px) scale(0.99);
  transition:
    opacity 650ms cubic-bezier(0.2, 0.75, 0.2, 1) var(--reveal-delay, 0ms),
    transform 650ms cubic-bezier(0.2, 0.75, 0.2, 1) var(--reveal-delay, 0ms);
}

.reveal-ready .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes aurora-drift {
  from { transform: translate3d(-24px, -10px, 0) rotate(-8deg) scale(0.92); }
  to { transform: translate3d(46px, 30px, 0) rotate(14deg) scale(1.16); }
}

@keyframes orbital-breathe {
  0%, 100% { transform: scale(0.98) rotate(0deg); opacity: 0.72; }
  50% { transform: scale(1.04) rotate(5deg); opacity: 1; }
}

@keyframes flow-signal {
  0%, 22%, 100% { border-color: rgba(226, 154, 255, 0.15); background: rgba(255, 255, 255, 0.045); }
  10% { border-color: rgba(226, 154, 255, 0.46); background: rgba(214, 83, 216, 0.12); box-shadow: 0 0 22px rgba(214, 83, 216, 0.12); }
}

@keyframes link-travel {
  from { left: 0; opacity: 0; }
  20%, 80% { opacity: 1; }
  to { left: calc(100% - 4px); opacity: 0; }
}

@keyframes signal-scroll {
  to { transform: translateX(-50%); }
}

@keyframes signal-twinkle {
  0%, 100% { opacity: 0.45; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes code-river {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, 235vh, 0); }
}

@keyframes orbit-float {
  0%, 100% { transform: translateY(1px) rotate(-1deg); }
  50% { transform: translateY(-4px) rotate(1deg); }
}

@keyframes invader-march {
  from { transform: translateX(-12px); }
  to { transform: translateX(12px); }
}

@keyframes laser-fire {
  0% { height: 0; opacity: 0; }
  15% { height: 18px; opacity: 1; }
  100% { height: 210px; opacity: 0; }
}

@keyframes pixel-pop {
  0% { opacity: 1; transform: scale(1); filter: brightness(1); }
  45% { opacity: 1; transform: scale(1.35) rotate(8deg); filter: brightness(2.2); }
  100% { opacity: 0; transform: scale(0) rotate(20deg); filter: brightness(3); }
}

@keyframes party-hue {
  to { filter: hue-rotate(360deg); }
}

/* V7 interface: dark-first theme, résumé timeline and gaming deck */
.theme-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 5px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.theme-toggle:hover {
  color: var(--ink-strong);
  border-color: color-mix(in srgb, var(--blue) 42%, var(--line));
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.button-primary,
.nav-links .nav-cta {
  color: white;
  background: linear-gradient(110deg, #6644e6, #b13ec0);
}

html[data-theme="light"] .button-primary,
html[data-theme="light"] .nav-links .nav-cta {
  background: linear-gradient(110deg, #5938d7, #a632b4);
}

.theme-toggle-icon {
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px color-mix(in srgb, var(--cyan) 38%, transparent);
}

.theme-toggle-icon::before,
.theme-toggle-icon::after {
  content: "";
  position: absolute;
  inset: -5px 5px;
  border-block: 2px solid var(--cyan);
  border-radius: 2px;
}

.theme-toggle-icon::after {
  transform: rotate(90deg);
}

html[data-theme="light"] .theme-toggle-icon {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: inset -4px -3px 0 0 var(--surface-soft);
}

html[data-theme="light"] .theme-toggle-icon::before,
html[data-theme="light"] .theme-toggle-icon::after {
  display: none;
}

body,
.site-header,
.card,
.button,
.theme-toggle,
.translator-card,
.translator-settings,
.translation-grid,
.form-field select,
.arcade-break,
.gaming-deck,
.arcade-console,
.arcade-screen,
.contact-band,
.site-footer {
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.hero {
  min-height: min(780px, calc(100vh - 76px));
  display: grid;
  align-items: center;
}

.hero-copy::after {
  content: "SYSTEMS / AUTOMATION / SECURITY / AI";
  display: block;
  width: fit-content;
  margin-top: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--subtle);
  background: color-mix(in srgb, var(--surface-soft) 74%, transparent);
  font: 750 0.61rem ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.09em;
}

.role-current-badge {
  width: fit-content;
  display: block;
  margin-bottom: 9px;
  padding: 4px 7px;
  border: 1px solid color-mix(in srgb, var(--green) 38%, transparent);
  border-radius: 999px;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 9%, transparent);
  font-size: 0.61rem;
  letter-spacing: 0.1em;
}

.role-history-list {
  display: grid;
  gap: 11px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.role-history-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.role-history-list strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.role-history-list span,
.project-period {
  color: var(--subtle);
  font: 700 0.7rem ui-monospace, SFMono-Regular, Consolas, monospace;
}

.project-period {
  display: block;
  margin-top: 18px;
  letter-spacing: 0.025em;
}

.project-mini-proof {
  margin-top: 18px;
}

.article-callout,
.article-footer-card {
  color: var(--muted);
}

.article-body code {
  color: var(--blue-deep);
  background: var(--surface-soft);
}

.gaming-deck {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(166, 126, 255, 0.25);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(18, 9, 31, 0.96), rgba(5, 7, 16, 0.98));
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.4), inset 0 1px rgba(255, 255, 255, 0.06);
}

.gaming-deck::before {
  content: "";
  position: absolute;
  inset: 42px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(117, 230, 239, 0.25), rgba(216, 137, 255, 0.25), transparent);
}

.gaming-deck-bar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 18px;
  color: #766c83;
  background: rgba(255, 255, 255, 0.025);
  font: 750 0.61rem ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.08em;
}

.gaming-deck-bar > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gaming-deck-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff6b8a;
}

.gaming-deck-bar i:nth-child(2) { background: #ffc456; }
.gaming-deck-bar i:nth-child(3) { margin-right: 6px; background: #55dfa9; }
.gaming-deck-bar strong { color: #afa6bb; }

.gaming-deck .arcade-layout {
  padding: 54px;
  gap: 54px;
  align-items: stretch;
}

.arcade-machine {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.arcade-console {
  min-height: 366px;
  display: block;
  width: 100%;
  appearance: none;
  text-align: initial;
}

.arcade-console:focus-visible {
  outline-color: rgba(117, 230, 239, 0.55);
}

.arcade-scanlines {
  position: absolute;
  z-index: 5;
  inset: 0;
  opacity: 0.15;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, 0.44) 3px 4px);
  pointer-events: none;
}

.arcade-controls {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.arcade-score {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  align-items: center;
  gap: 10px 16px;
}

.arcade-score > span,
.arcade-controls button {
  white-space: nowrap;
}

.arcade-controls button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(216, 137, 255, 0.22);
  border-radius: 10px;
  color: #cfc4dc;
  background: rgba(255, 255, 255, 0.04);
  font: 800 0.68rem ui-monospace, SFMono-Regular, Consolas, monospace;
  cursor: pointer;
}

.arcade-controls button:first-child {
  color: #090314;
  background: linear-gradient(110deg, #d987ff, #75e6ef);
}

.arcade-controls button:hover {
  border-color: rgba(117, 230, 239, 0.48);
  transform: translateY(-1px);
}

.arcade-controls kbd {
  margin-left: 6px;
  padding: 2px 5px;
  border: 1px solid currentColor;
  border-radius: 4px;
  opacity: 0.58;
  font: inherit;
}

.arcade-lives {
  justify-self: end;
  color: #75e6ef;
  font: 800 0.75rem ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.2em;
}

.arcade-lives small {
  margin-right: 7px;
  color: #766c83;
  font-size: 0.61rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.arcade-break {
  padding: 86px 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(118, 87, 255, 0.28), transparent 32rem),
    radial-gradient(circle at 88% 92%, rgba(214, 83, 216, 0.18), transparent 30rem),
    #090713;
}

html[data-theme="light"] .arcade-break {
  color: var(--ink);
  border-color: var(--line);
  background:
    radial-gradient(circle at 8% 12%, rgba(111, 78, 255, 0.16), transparent 32rem),
    radial-gradient(circle at 88% 92%, rgba(190, 72, 202, 0.12), transparent 30rem),
    linear-gradient(180deg, #f3f0f9, #ebe7f4);
}

html[data-theme="light"] .arcade-break::before,
html[data-theme="light"] .arcade-break::after {
  border-color: rgba(91, 57, 219, 0.12);
  box-shadow: 0 0 0 48px rgba(111, 78, 255, 0.025), 0 0 0 96px rgba(190, 72, 202, 0.018);
}

html[data-theme="light"] .gaming-deck {
  border-color: rgba(91, 57, 219, 0.2);
  background:
    radial-gradient(circle at 92% 0%, rgba(111, 78, 255, 0.11), transparent 22rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(244, 240, 250, 0.98));
  box-shadow: 0 28px 80px rgba(48, 31, 78, 0.14), inset 0 1px white;
}

html[data-theme="light"] .gaming-deck::before {
  background: linear-gradient(90deg, transparent, rgba(7, 141, 173, 0.24), rgba(111, 78, 255, 0.22), transparent);
}

html[data-theme="light"] .gaming-deck-bar {
  color: var(--subtle);
  background: rgba(91, 57, 219, 0.035);
}

html[data-theme="light"] .gaming-deck-bar strong {
  color: var(--muted);
}

html[data-theme="light"] .arcade-copy .eyebrow {
  color: var(--blue-deep);
}

html[data-theme="light"] .arcade-copy h2 {
  color: var(--ink-strong);
}

html[data-theme="light"] .arcade-copy > p:not(.eyebrow):not(.arcade-hint),
html[data-theme="light"] .arcade-score {
  color: var(--muted);
}

html[data-theme="light"] .arcade-score strong {
  color: #087d8f;
}

html[data-theme="light"] .arcade-hint,
html[data-theme="light"] .arcade-prompt {
  color: var(--subtle);
}

html[data-theme="light"] .arcade-console {
  border-color: rgba(91, 57, 219, 0.2);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px white, 0 20px 52px rgba(48, 31, 78, 0.13);
}

html[data-theme="light"] .arcade-console:hover,
html[data-theme="light"] .arcade-console:focus-visible {
  border-color: rgba(91, 57, 219, 0.4);
  box-shadow: inset 0 1px white, 0 24px 58px rgba(48, 31, 78, 0.17), 0 0 28px rgba(111, 78, 255, 0.07);
}

html[data-theme="light"] .arcade-screen {
  border-color: rgba(91, 57, 219, 0.16);
  background:
    linear-gradient(rgba(91, 57, 219, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 57, 219, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 50% 110%, rgba(111, 78, 255, 0.18), transparent 58%),
    #f7f5fc;
  background-size: 18px 18px, 18px 18px, auto, auto;
  box-shadow: inset 0 0 44px rgba(75, 49, 111, 0.08);
}

html[data-theme="light"] .arcade-stars,
html[data-theme="light"] .arcade-stars::before,
html[data-theme="light"] .arcade-stars::after {
  background-image:
    radial-gradient(circle, rgba(41, 32, 60, 0.42) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(111, 78, 255, 0.42) 0 1px, transparent 1.5px);
  opacity: 0.25;
}

html[data-theme="light"] .arcade-scanlines {
  opacity: 0.055;
}

html[data-theme="light"] .pixel-invader {
  color: #ad42bc;
  filter: drop-shadow(0 0 7px rgba(173, 66, 188, 0.24));
}

html[data-theme="light"] .pixel-invader:nth-child(2),
html[data-theme="light"] .pixel-invader:nth-child(5),
html[data-theme="light"] .pixel-invader:nth-child(8) {
  color: #6f4eff;
}

html[data-theme="light"] .pixel-invader:nth-child(3),
html[data-theme="light"] .pixel-invader:nth-child(6),
html[data-theme="light"] .pixel-invader:nth-child(9),
html[data-theme="light"] .pixel-defender {
  color: #078dad;
  filter: drop-shadow(0 0 7px rgba(7, 141, 173, 0.25));
}

html[data-theme="light"] .arcade-laser {
  background: #5b39db;
  box-shadow: 0 0 8px rgba(91, 57, 219, 0.65), 0 0 14px rgba(7, 141, 173, 0.45);
}

html[data-theme="light"] .arcade-controls button {
  border-color: var(--line-strong);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] .arcade-controls button:first-child {
  border-color: transparent;
  color: white;
  background: linear-gradient(110deg, #6847e5, #a936b7);
}

html[data-theme="light"] .arcade-lives {
  color: #078dad;
}

html[data-theme="light"] .arcade-lives small {
  color: var(--subtle);
}

html[data-theme="light"] .contact-band {
  color: var(--ink);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 10% 100%, rgba(111, 78, 255, 0.14), transparent 35%),
    radial-gradient(circle at 92% 5%, rgba(190, 72, 202, 0.1), transparent 36%),
    linear-gradient(115deg, #f3effb, #ebe7f3);
}

html[data-theme="light"] .contact-inner .eyebrow {
  color: var(--blue-deep);
}

html[data-theme="light"] .contact-inner h2 {
  color: var(--ink-strong);
}

html[data-theme="light"] .contact-inner p:not(.eyebrow),
html[data-theme="light"] .text-link {
  color: var(--muted);
}

html[data-theme="light"] .contact-actions .button-primary {
  border-color: transparent;
  color: white;
  background: linear-gradient(110deg, #5938d7, #a632b4);
}

html[data-theme="light"] .text-link:hover,
html[data-theme="light"] .footer-links a:hover {
  color: var(--blue-deep);
}

html[data-theme="light"] .site-footer {
  border-color: var(--line);
  color: var(--subtle);
  background: #f5f2f8;
}

@media (max-width: 1020px) {
  .gaming-deck .arcade-layout {
    padding: 40px;
  }

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

  .hero-panel {
    max-width: 660px;
  }

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

  .experience-layout,
  .translator-shell {
    grid-template-columns: 1fr;
  }

  .side-stack,
  .translator-settings {
    position: static;
  }

  .side-stack {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .quick-starts,
  .privacy-note {
    grid-column: 1 / -1;
  }

  .arcade-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .arcade-copy {
    max-width: 720px;
  }

  .arcade-console {
    max-width: 720px;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .container,
  .article-body {
    width: min(100% - 28px, var(--max));
  }

  .nav-shell {
    min-height: 68px;
  }

  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    padding: 12px 14px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-solid);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: grid;
  }

  .nav-links a {
    padding: 12px;
  }

  .nav-links .nav-cta {
    margin: 4px 0 0;
    text-align: center;
  }

  .nav-links .theme-toggle {
    width: 100%;
    justify-content: center;
    margin: 2px 0;
    padding: 11px 12px;
  }

  .hero {
    min-height: auto;
  }

  .gaming-deck .arcade-layout {
    padding: 30px;
  }

  .arcade-score {
    grid-template-columns: repeat(2, max-content);
    gap: 8px 24px;
  }

  .gaming-deck-bar > span:last-child {
    display: none;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .hero-grid {
    gap: 40px;
  }

  .hero::after {
    width: 90vw;
    right: -45%;
  }

  .hero-actions .button,
  .contact-actions,
  .contact-actions .button {
    width: 100%;
  }

  .section,
  .page-hero {
    padding: 58px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .side-stack {
    grid-template-columns: 1fr;
  }

  .role-card {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .role-history-list li {
    display: grid;
    gap: 3px;
  }

  .projects-grid,
  .contact-inner,
  .translation-grid {
    grid-template-columns: 1fr;
  }

  .project-featured {
    grid-row: auto;
    min-height: 720px;
  }

  .projects-grid > .project-card:last-child {
    grid-column: auto;
  }

  .contact-inner {
    align-items: start;
  }

  .translation-pane + .translation-pane {
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  #sourceText,
  .result-text {
    min-height: 220px;
  }

  .translator-toolbar,
  .translation-actions,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .direction-tabs {
    display: grid;
    width: 100%;
  }

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

  .article-header {
    padding-top: 66px;
  }

  .personal-inner {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-block: 25px;
  }

  .arcade-break {
    padding: 62px 0;
  }

  .arcade-console {
    min-height: 322px;
  }

  .arcade-screen {
    min-height: 246px;
  }

  .code-stream:nth-child(2),
  .code-stream:nth-child(3),
  .code-stream:nth-child(4) {
    display: none;
  }

  .code-stream {
    width: 8rem;
    opacity: 0.5;
    font-size: 0.55rem;
  }

  .signal-track {
    gap: 22px;
  }
}

@media (max-width: 560px) {
  .brand small {
    display: none;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 4.15rem);
    line-height: 1.01;
  }

  .capability-grid,
  .posts-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 24px;
  }

  .hero-panel h2 {
    margin-top: 44px;
  }

  .capability-card {
    min-height: 285px;
  }

  .project-card,
  .post-card {
    min-height: 300px;
  }

  .project-featured {
    min-height: 690px;
  }

  .at0m-maker {
    grid-template-columns: 76px minmax(0, 1fr) 28px;
    gap: 10px;
  }

  .orbit-portrait {
    width: 72px;
    height: 70px;
    border-radius: 15px;
  }

  .orbit-portrait img {
    width: 72px;
    height: 66px;
  }

  .orbit-message {
    left: 52px;
    bottom: 58px;
  }

  .maker-copy em {
    display: none;
  }

  .arcade-break {
    padding: 54px 0;
  }

  .gaming-deck {
    border-radius: 20px;
  }

  .gaming-deck .arcade-layout {
    padding: 20px 14px 28px;
  }

  .gaming-deck-bar {
    padding-inline: 13px;
  }

  .arcade-controls {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .arcade-controls button {
    min-width: 0;
    padding-inline: 8px;
  }

  .arcade-lives {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 4px;
  }

  .arcade-copy h2 {
    font-size: clamp(2.7rem, 15vw, 4rem);
  }

  .arcade-console {
    min-height: 286px;
    padding: 12px;
    border-radius: 19px;
  }

  .arcade-screen {
    min-height: 220px;
  }

  .invader-fleet {
    top: 38px;
    gap: 29px 10%;
  }

  .pixel-invader {
    width: 40px;
    height: 30px;
  }

  .estate-canvas {
    grid-template-columns: minmax(0, 1fr) 10px minmax(0, 1fr) 10px minmax(0, 1fr);
    padding-inline: 10px;
  }

  .estate-node {
    padding: 9px 7px;
  }

  .estate-node span {
    display: none;
  }
}

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

  .site-code-current {
    display: none;
  }

  .signal-track {
    animation: none;
  }

  .orbit-portrait img,
  .invader-fleet,
  .party-mode .arcade-console,
  .party-mode .hero-panel {
    animation: none;
  }

  .reveal-ready .reveal-item {
    opacity: 1;
    transform: none;
  }
}
