:root {
  color-scheme: dark;
  --bg: #080a0f;
  --text: #f8f9fc;
  --muted: #aeb7c6;
  --line: rgba(255, 255, 255, 0.15);
  --soft: rgba(255, 255, 255, 0.075);
  --green: #68e6b0;
  --blue: #78d8ff;
  --coral: #ff9b75;
  --gold: #f4d06f;
  font-family: "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
}

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

button {
  font: inherit;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  overflow-y: visible;
  padding: 22px clamp(16px, 4vw, 56px) 38px;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 38%, rgba(120, 216, 255, 0.2), transparent 22%),
    radial-gradient(circle at 18% 15%, rgba(104, 230, 176, 0.18), transparent 30%),
    radial-gradient(circle at 88% 22%, rgba(255, 155, 117, 0.12), transparent 28%),
    radial-gradient(circle at 70% 86%, rgba(120, 216, 255, 0.14), transparent 34%),
    #080a0f;
}

.background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 15, 0.2), rgba(8, 10, 15, 0.44) 42%, rgba(8, 10, 15, 0.34)),
    radial-gradient(circle at center, transparent 0%, rgba(8, 10, 15, 0.28) 62%, rgba(8, 10, 15, 0.56) 100%);
  pointer-events: none;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 216, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 216, 255, 0.055) 1px, transparent 1px),
    linear-gradient(45deg, transparent 49%, rgba(255, 255, 255, 0.028) 50%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, rgba(255, 255, 255, 0.026) 50%, transparent 51%);
  background-size: 64px 64px, 64px 64px, 128px 128px, 128px 128px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 74%);
  animation: gridMove 24s linear infinite;
}

.dot-core {
  position: absolute;
  top: clamp(105px, 17vh, 190px);
  left: 50%;
  width: min(52vw, 620px);
  min-width: 430px;
  aspect-ratio: 1;
  opacity: 0.18;
  pointer-events: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 26px rgba(120, 216, 255, 0.2));
  animation: dotPulse 5.5s ease-in-out infinite;
}

.dot-core::before,
.dot-core::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.dot-core::before {
  inset: 2%;
  border: 1px solid rgba(120, 216, 255, 0.055);
  background-image:
    linear-gradient(rgba(120, 216, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 216, 255, 0.045) 1px, transparent 1px);
  background-size: 20% 20%;
  box-shadow: inset 0 0 60px rgba(120, 216, 255, 0.045);
  transform: rotate(45deg);
}

.dot-core::after {
  inset: 18%;
  border: 1px solid rgba(104, 230, 176, 0.055);
  background-image:
    linear-gradient(rgba(104, 230, 176, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 230, 176, 0.045) 1px, transparent 1px);
  background-size: 25% 25%;
  transform: rotate(45deg);
}

.dot-diamond {
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(120, 216, 255, 0.14);
  border-radius: 3px;
  box-shadow:
    inset 0 0 28px rgba(120, 216, 255, 0.055),
    0 0 36px rgba(120, 216, 255, 0.06);
  transform: rotate(45deg);
}

.dot-diamond.inner {
  inset: 34%;
  border-color: rgba(104, 230, 176, 0.24);
}

.dot-segment {
  position: absolute;
  width: 8.5%;
  aspect-ratio: 1;
  border: 1px solid rgba(165, 231, 255, 0.34);
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(120, 216, 255, 0.48), rgba(104, 230, 176, 0.34)),
    rgba(120, 216, 255, 0.12);
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.08),
    0 0 10px rgba(120, 216, 255, 0.38),
    0 0 28px rgba(120, 216, 255, 0.13);
  transform: rotate(45deg);
}

.dot-segment.top {
  top: 9%;
  left: 45.75%;
}

.dot-segment.upper-mid-left {
  top: 22%;
  left: 34%;
}

.dot-segment.upper-mid-right {
  top: 22%;
  right: 34%;
}

.dot-segment.upper-left {
  top: 35%;
  left: 22%;
}

.dot-segment.upper-right {
  top: 35%;
  right: 22%;
}

.dot-segment.mid-left {
  top: 48%;
  left: 10%;
}

.dot-segment.mid-right {
  top: 48%;
  right: 10%;
}

.dot-segment.center-left {
  top: 48%;
  left: 34%;
}

.dot-segment.center-right {
  top: 48%;
  right: 34%;
}

.dot-segment.lower-left {
  bottom: 35%;
  left: 22%;
}

.dot-segment.lower-right {
  bottom: 35%;
  right: 22%;
}

.dot-segment.lower-mid-left {
  bottom: 22%;
  left: 34%;
}

.dot-segment.lower-mid-right {
  bottom: 22%;
  right: 34%;
}

.dot-segment.bottom {
  bottom: 9%;
  left: 45.75%;
}

/* Moving console-style backdrop. The shapes stay faint so the portfolio remains readable. */
.console-background {
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 18%, rgba(104, 230, 176, 0.09), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(255, 155, 117, 0.07), transparent 26%),
    linear-gradient(118deg, #07111d 0%, #0a2440 48%, #0b3459 100%);
}

.console-background::after {
  background:
    linear-gradient(90deg, rgba(4, 9, 16, 0.42), rgba(4, 10, 18, 0.16) 48%, rgba(3, 8, 15, 0.34)),
    radial-gradient(circle at center, transparent 0%, rgba(3, 8, 15, 0.13) 62%, rgba(3, 8, 15, 0.48) 100%);
}

.console-glow {
  position: absolute;
  top: -25%;
  right: -12%;
  width: min(76vw, 1100px);
  aspect-ratio: 1;
  border: 1px solid rgba(128, 219, 255, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 90px rgba(74, 177, 235, 0.1),
    inset 0 0 100px rgba(72, 183, 235, 0.06);
  transform: translate3d(var(--home-parallax-x, 0), var(--home-parallax-y, 0), 0);
  animation: consoleOrbit 28s ease-in-out infinite alternate;
}

.console-ribbon {
  position: absolute;
  left: -18%;
  width: 142%;
  height: 34vh;
  min-height: 260px;
  border: 2px solid rgba(125, 220, 255, 0.15);
  border-radius: 50%;
  box-shadow:
    0 0 38px rgba(84, 188, 242, 0.09),
    inset 0 0 44px rgba(84, 188, 242, 0.06);
  transform: rotate(-8deg) translate3d(var(--home-parallax-x, 0), var(--home-parallax-y, 0), 0);
}

.ribbon-back {
  bottom: -14vh;
  animation: ribbonDriftBack 22s ease-in-out infinite alternate;
}

.ribbon-front {
  bottom: -24vh;
  border-color: rgba(185, 237, 255, 0.18);
  transform: rotate(6deg) translate3d(var(--home-parallax-x, 0), var(--home-parallax-y, 0), 0);
  animation: ribbonDriftFront 18s ease-in-out infinite alternate;
}

.console-symbols {
  position: absolute;
  inset: 0;
  opacity: 0.48;
}

.console-symbol {
  --symbol-top: 50%;
  --symbol-left: 50%;
  --symbol-delay: 0s;
  --symbol-duration: 28s;
  --symbol-size: 36px;
  position: absolute;
  top: var(--symbol-top);
  left: var(--symbol-left);
  width: var(--symbol-size);
  height: var(--symbol-size);
  color: rgba(151, 224, 255, 0.26);
  filter: drop-shadow(0 0 10px rgba(94, 196, 244, 0.12));
  animation: symbolFloat var(--symbol-duration) var(--symbol-delay) ease-in-out infinite alternate;
}

.symbol-circle {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.symbol-square {
  border: 2px solid currentColor;
  transform: rotate(12deg);
}

.symbol-triangle {
  background: currentColor;
  clip-path: polygon(50% 4%, 96% 92%, 4% 92%);
}

.symbol-triangle::after {
  position: absolute;
  inset: 6px;
  background: #0a2948;
  clip-path: polygon(50% 4%, 96% 92%, 4% 92%);
  content: '';
}

.symbol-cross::before,
.symbol-cross::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 2px;
  background: currentColor;
  content: '';
}

.symbol-cross::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.symbol-cross::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.page-profil .hero-compact > div {
  max-width: 980px;
}

.page-profil .lead-stack {
  max-width: 880px;
  gap: 22px;
}

.page-profil .lead-stack p {
  font-size: clamp(1.06rem, 1.55vw, 1.22rem);
  line-height: 1.86;
}

.glass {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(15, 19, 26, 0.78);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.nav {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(8, 10, 15, 0.84);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.route-content {
  animation: routeContentIn 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.route-content.leaving {
  animation: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 150ms ease-in, transform 150ms ease-in;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 3px;
  background: #ffffff;
}

.brand-name {
  color: var(--text);
  font-weight: 860;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: clamp(11px, 2vw, 24px);
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a,
.mobile-menu a {
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 40px;
  padding: 4px 5px 4px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
}

.language-switch:focus-within {
  border-color: rgba(104, 230, 176, 0.62);
  color: var(--text);
}

.language-option {
  min-width: 36px;
  min-height: 30px;
  padding: 0 7px;
  border: 0;
  border-radius: 2px;
  outline: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.language-option:hover {
  color: var(--text);
}

.language-option.active {
  background: rgba(104, 230, 176, 0.15);
  color: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--soft);
  color: var(--text);
  cursor: pointer;
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: none;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(8, 10, 15, 0.95);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px);
}

.mobile-menu a {
  display: block;
  padding: 13px 14px;
  border-radius: 2px;
  color: var(--muted);
  font-weight: 760;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.hero {
  display: flex;
  align-items: center;
  max-width: 1180px;
  min-height: calc(100vh - 110px);
  margin: 0 auto;
  padding: 72px 0 54px;
}

.hero > div {
  max-width: 900px;
  animation: heroRise 760ms 90ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-simple > div {
  max-width: 760px;
}

.hero-simple h1 {
  margin-bottom: 28px;
}

.page-home .hero-simple h1 {
  margin-bottom: 12px;
}

.home-subtitle {
  margin: 0 0 24px;
  color: var(--text);
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  font-weight: 650;
  opacity: 0;
  animation: homeDetailOnline 560ms 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.home-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 750;
}

.home-traits span {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  opacity: 0;
  animation: traitOnline 520ms calc(1080ms + (var(--trait-index) * 120ms)) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.home-traits span:not(:last-child)::after {
  width: 4px;
  aspect-ratio: 1;
  background: var(--blue);
  content: '';
  box-shadow: 0 0 12px rgba(120, 216, 255, 0.7);
  transform: rotate(45deg);
}

.page-home .hero > div {
  animation: homeHeroOnline 900ms 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-home .hero {
  justify-content: center;
  text-align: center;
}

.page-home .hero-simple > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-home .home-traits,
.page-home .home-actions {
  justify-content: center;
}

.home-actions {
  margin-top: 34px;
  opacity: 0;
  animation: homeActionsOnline 620ms 1460ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.home-actions .button {
  min-width: 176px;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
}

.home-actions .button.primary {
  box-shadow: 0 10px 36px rgba(120, 216, 255, 0.12);
}

.home-actions .button:hover {
  transform: translateY(-4px) scale(1.015);
}

.home-background .dot-core {
  transition: filter 450ms ease;
  will-change: transform;
}

.home-respawn {
  position: fixed;
  z-index: 100;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: #02060a;
  animation: respawnOverlay 1850ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.respawn-grid {
  position: absolute;
  inset: -20%;
  opacity: 0;
  background-image:
    linear-gradient(rgba(120, 216, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 216, 255, 0.2) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(500px) rotateX(58deg) scale(1.15);
  animation: respawnGrid 1250ms 100ms ease-out forwards;
}

.respawn-bloom {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(231, 252, 255, 0.98), rgba(93, 203, 255, 0.45) 10%, transparent 42%);
  opacity: 0;
  animation: respawnBloom 900ms 180ms ease-out forwards;
}

.respawn-sweep {
  position: absolute;
  right: -10%;
  left: -10%;
  height: 5px;
  background: #eafcff;
  box-shadow:
    0 -16px 45px 14px rgba(99, 205, 255, 0.38),
    0 16px 55px 20px rgba(99, 205, 255, 0.55);
  animation: respawnSweep 1050ms 130ms cubic-bezier(0.25, 0.72, 0.22, 1) both;
}

.respawn-brackets {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(34vw, 430px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  animation: bracketsOnline 1150ms 180ms ease-out both;
}

.respawn-brackets span {
  position: absolute;
  width: 28%;
  height: 28%;
  border-color: rgba(197, 241, 255, 0.9);
  filter: drop-shadow(0 0 10px rgba(89, 195, 255, 0.8));
}

.respawn-brackets span:nth-child(1) {
  top: 0;
  left: 0;
  border-top: 3px solid;
  border-left: 3px solid;
}

.respawn-brackets span:nth-child(2) {
  top: 0;
  right: 0;
  border-top: 3px solid;
  border-right: 3px solid;
}

.respawn-brackets span:nth-child(3) {
  bottom: 0;
  left: 0;
  border-bottom: 3px solid;
  border-left: 3px solid;
}

.respawn-brackets span:nth-child(4) {
  right: 0;
  bottom: 0;
  border-right: 3px solid;
  border-bottom: 3px solid;
}

.hero-compact {
  min-height: auto;
  padding: 66px 0 44px;
}

.hero-compact > div {
  max-width: 720px;
}

.hero-compact h1 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  line-height: 0.95;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 8vw, 6.9rem);
  font-weight: 780;
  line-height: 0.9;
}

h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--gold));
  background-clip: text;
}

h2 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 3.5vw, 3.25rem);
  font-weight: 740;
  line-height: 1.05;
}

.lead,
.section p,
.project-card p,
.info-card p,
.timeline-row p {
  color: var(--muted);
  line-height: 1.72;
}

.lead {
  max-width: 650px;
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.lead-stack {
  display: grid;
  gap: 12px;
}

.lead-stack p {
  margin: 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button.primary {
  background: var(--text);
  color: #080a0f;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.button:hover,
.info-card:hover {
  transform: translateY(-4px);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  animation: contentRise 700ms 150ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.section > p {
  max-width: 760px;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.page-intro {
  padding: 78px 0 44px;
  border-top: 0;
}

.page-intro h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.95;
}

.page-intro p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.72;
}

.download-section {
  padding-top: 34px;
}

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px);
  gap: 14px;
}

.download-card {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.download-card > span {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 880;
  text-transform: uppercase;
}

.download-card h3 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.download-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.download-link.disabled,
.download-link:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.profile-section {
  padding-top: 44px;
}

.profile-grid {
  display: grid;
  gap: 72px;
}

.profile-overview {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 6vw, 86px);
  max-width: 1180px;
  margin-inline: auto;
}

.profile-portrait {
  position: relative;
  width: 100%;
  max-width: 230px;
  margin: 0;
}

.profile-summary {
  display: grid;
  align-content: center;
  gap: 34px;
  min-width: 0;
}

.profile-portrait-frame {
  width: 100%;
  aspect-ratio: 340 / 700;
  overflow: hidden;
  border-bottom: 1px solid rgba(104, 230, 176, 0.48);
  background: linear-gradient(180deg, rgba(120, 216, 255, 0.04), rgba(104, 230, 176, 0.08));
}

.profile-portrait img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.34));
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 260px));
  gap: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.profile-summary .story-feature {
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-fact {
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.profile-fact span,
.story-step > span,
.tag-list span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 880;
  text-transform: uppercase;
}

.profile-fact strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.2;
}

.profile-main {
  display: grid;
  gap: 78px;
}

.story-line {
  display: grid;
  gap: 14px;
}

.story-step {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 18px;
  padding: 24px;
}

.story-feature {
  grid-template-columns: 1fr;
  padding: 0 0 62px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.story-step h2,
.profile-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
}

.story-step p,
.profile-panel p,
.hobby-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.72;
}

.story-feature > div {
  max-width: 880px;
}

.story-feature p {
  font-size: clamp(1.04rem, 1.6vw, 1.2rem);
  line-height: 1.86;
}

.profile-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 7vw, 96px);
  padding-bottom: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-skills {
  display: grid;
  gap: 30px;
}

.profile-hobbies {
  display: grid;
  gap: 30px;
}

.profile-section-head {
  max-width: 760px;
}

.profile-section-head h2 {
  margin-bottom: 10px;
  font-size: clamp(1.9rem, 4vw, 3.25rem);
}

.profile-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.13rem);
  line-height: 1.72;
}

.profile-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.ai-panel {
  padding-left: clamp(24px, 4vw, 52px);
  border-left: 1px solid rgba(120, 216, 255, 0.38);
  background: transparent;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag-list span {
  padding: 8px 10px;
  border: 1px solid rgba(104, 230, 176, 0.28);
  border-radius: 2px;
  background: rgba(104, 230, 176, 0.09);
  color: var(--text);
  text-transform: none;
}

.hobby-slider {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: rgba(11, 16, 21, 0.9);
}

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

.hobby-stage {
  position: relative;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: #050608;
}

.hobby-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 64%, rgba(4, 6, 9, 0.34));
}

.hobby-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: hobbySlideIn 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hobbySlideIn {
  from {
    opacity: 0;
    transform: scale(1.025);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hobby-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  background: rgba(5, 8, 11, 0.82);
  color: var(--text);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 160ms ease, border-color 160ms ease;
}

.hobby-arrow:hover {
  border-color: rgba(104, 230, 176, 0.62);
  background: rgba(16, 27, 28, 0.94);
}

.hobby-arrow-left {
  left: 18px;
}

.hobby-arrow-right {
  right: 18px;
}

.hobby-caption {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 22px;
  align-items: end;
  padding: 22px 26px 14px;
}

.hobby-caption span {
  grid-column: 1;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hobby-caption h3 {
  grid-column: 1;
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.hobby-caption small {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--muted);
  font-weight: 800;
}

.hobby-dots {
  display: flex;
  gap: 8px;
  padding: 0 26px 22px;
}

.hobby-dots button {
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.hobby-dots button.active {
  width: 48px;
  background: var(--green);
}

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

.info-card {
  min-height: 220px;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.info-card:hover,
.project-card:hover {
  border-color: rgba(104, 230, 176, 0.55);
  background: rgba(20, 27, 34, 0.9);
}

.card-index {
  display: block;
  margin-bottom: 24px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 850;
}

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

.project-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.project-filter {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-filter:hover {
  border-color: rgba(104, 230, 176, 0.5);
  color: var(--text);
}

.project-filter.active {
  border-color: rgba(104, 230, 176, 0.62);
  background: rgba(104, 230, 176, 0.16);
  color: var(--text);
}

.project-filter:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.filter-result {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.arcade-showcase {
  margin-top: 56px;
}

.arcade-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.arcade-tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #050608;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  transition: border-color 180ms ease, background 180ms ease;
}

.arcade-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  transition: transform 260ms steps(3), filter 180ms ease;
}

.arcade-image-closed {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.arcade-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 58%, rgba(4, 6, 9, 0.82));
}

.arcade-label {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 16px;
  left: 20px;
  font-size: clamp(1.15rem, 2.1vw, 1.7rem);
  font-weight: 900;
  text-align: left;
}

.arcade-audio {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(5, 6, 8, 0.76);
}

.arcade-tile:hover {
  border-color: rgba(120, 216, 255, 0.48);
}

.arcade-tile:hover .arcade-image {
  transform: scale(1.025);
  filter: brightness(1.08);
}

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

.arcade-tile.playing {
  animation: arcadePulse 560ms steps(3);
}

.arcade-tile.playing .arcade-image {
  animation: arcadeImage 560ms steps(3);
}

.arcade-maze.playing .arcade-image-closed {
  animation: arcadeImage 560ms steps(3), pacmanChomp 560ms steps(1, end);
}

.arcade-tile.playing .arcade-audio {
  animation: audioRipple 560ms ease-out;
}

@keyframes arcadePulse {
  45% {
    border-color: rgba(120, 216, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(120, 216, 255, 0.18);
  }
}

@keyframes arcadeImage {
  45% {
    transform: scale(1.075);
    filter: brightness(1.25);
  }
}

@keyframes pacmanChomp {
  0%, 32%, 66%, 100% {
    opacity: 0;
  }
  16%, 49%, 82% {
    opacity: 1;
  }
}

@keyframes audioRipple {
  45% {
    transform: scale(1.18);
    background: rgba(104, 230, 176, 0.28);
  }
}

.grade-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.grade-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.grade-card span,
.grade-summary span {
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 850;
}

.grade-card h3 {
  margin: 24px 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.grade-card strong,
.grade-summary strong {
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.9;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: 100%;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 850;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.download-link:hover {
  transform: translateY(-2px);
  border-color: rgba(104, 230, 176, 0.55);
  background: rgba(104, 230, 176, 0.13);
}

.logout-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.logout-link:hover {
  color: var(--text);
}

.auth-page {
  min-height: 100vh;
}

.auth-gate-section {
  display: grid;
  min-height: min(650px, calc(100vh - 150px));
  place-items: center;
  padding-top: 68px;
  padding-bottom: 68px;
}

.auth-gate-section .login-panel {
  justify-self: center;
}

.protected-message {
  padding: 22px 26px;
  color: var(--muted);
  font-weight: 700;
}

.protected-error {
  margin-top: 20px;
  padding: 14px 18px;
  border-left: 3px solid var(--coral);
  background: rgba(255, 155, 117, 0.1);
  color: #ffd5c6;
}

.auth-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 110px 22px 48px;
  overflow: hidden;
}

.auth-brand {
  position: absolute;
  top: 28px;
  left: clamp(22px, 5vw, 72px);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 850;
}

.auth-brand img {
  width: 58px;
  height: 58px;
  border-radius: 3px;
  object-fit: cover;
}

.login-panel {
  width: min(100%, 450px);
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 3px;
  background: rgba(11, 14, 20, 0.92);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  animation: contentRise 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.login-panel h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 4.2rem);
  line-height: 1;
}

.login-copy {
  margin: 20px 0 28px;
  color: var(--muted);
  line-height: 1.65;
}

.login-error {
  padding: 12px 14px;
  border-left: 3px solid var(--coral);
  background: rgba(255, 155, 117, 0.1);
  color: #ffd5c6;
  line-height: 1.45;
}

.login-success {
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  background: rgba(104, 230, 176, 0.1);
  color: #c9f8e3;
  line-height: 1.45;
}

.login-form {
  display: grid;
  gap: 10px;
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 24px 0;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.auth-mode-switch button {
  min-height: 44px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-mode-switch button.active {
  color: #07110e;
  background: var(--green);
}

.login-form label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
}

.login-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(104, 230, 176, 0.12);
}

.login-form button {
  min-height: 48px;
  margin-top: 16px;
  border: 1px solid rgba(104, 230, 176, 0.7);
  border-radius: 2px;
  background: var(--green);
  color: #08120e;
  font-weight: 850;
  cursor: pointer;
}

.login-form button:hover {
  background: #8aefc3;
}

.login-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.auth-signout {
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.auth-signout:hover {
  color: var(--text);
}

.auth-back {
  display: inline-block;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-back:hover {
  color: var(--text);
}

.grade-summary {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  padding: 18px 20px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.report-card {
  display: grid;
  gap: 12px;
  min-height: 300px;
  padding: 24px;
}

.report-card span {
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.report-card p,
.report-card small {
  color: var(--muted);
  line-height: 1.65;
}

.report-card p {
  margin: 0;
}

.report-card strong {
  align-self: end;
  color: var(--text);
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 0.9;
}

.project-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 100%;
  padding: 18px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  animation: projectReveal 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.project-featured {
  grid-column: 1 / -1;
  min-height: 240px;
  border-left: 3px solid rgba(120, 216, 255, 0.66);
  background: rgba(13, 20, 28, 0.84);
}

@keyframes projectReveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.project-card > span {
  color: var(--coral);
  font-size: 1.05rem;
  font-weight: 900;
}

.project-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
}

.project-content {
  min-width: 0;
}

.project-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #050608;
}

.project-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 320ms ease, filter 320ms ease;
}

.project-preview-contain {
  aspect-ratio: 16 / 9;
  background: rgba(120, 216, 255, 0.035);
}

.project-preview-contain img {
  object-fit: contain;
}

.project-preview-focus {
  aspect-ratio: 16 / 9;
}

.project-preview-focus img {
  object-fit: cover;
  object-position: center 62%;
  transform: scale(1.28);
}

.project-featured .project-preview {
  max-height: 360px;
}

.project-featured .project-preview-full {
  max-width: 1280px;
  max-height: none;
  aspect-ratio: 16 / 9;
  margin-left: auto;
  margin-right: auto;
}

.project-preview-full img {
  object-fit: contain;
}

.project-card:hover .project-preview img {
  filter: brightness(1.04);
  transform: scale(1.012);
}

.project-card:hover .project-preview-focus img {
  transform: scale(1.31);
}

.project-content-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.project-video-wrap {
  width: min(100%, 260px);
  margin: 0;
}

.project-video {
  display: block;
  width: 100%;
  aspect-ratio: 135 / 242;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #050608;
  object-fit: cover;
}

.project-video:fullscreen,
.project-video:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: #000000;
  object-fit: contain;
}

.project-video-wrap figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.project-tags {
  margin-top: 20px;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 850;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-link:hover {
  transform: translateY(-2px);
  border-color: rgba(104, 230, 176, 0.55);
  background: rgba(104, 230, 176, 0.13);
}

.timeline {
  overflow: hidden;
}

.timeline-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  min-height: 120px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.timeline-row:last-child {
  border-bottom: 0;
}

.timeline-row > span {
  color: var(--gold);
  font-weight: 900;
}


.contact-section {
  padding-top: 34px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.contact-card,
.social-link {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  color: var(--text);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.contact-card {
  min-height: 116px;
  padding: 20px;
}

.contact-card:hover,
.social-link:hover {
  transform: translateY(-3px);
  border-color: rgba(104, 230, 176, 0.55);
  background: rgba(20, 27, 34, 0.9);
}

.contact-icon,
.social-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  border-radius: 3px;
  background: rgba(104, 230, 176, 0.13);
  color: var(--green);
}

.contact-card small,
.contact-card strong,
.social-link small,
.social-link strong {
  display: block;
}

.contact-card small,
.social-link small {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.contact-card strong,
.social-link strong {
  overflow-wrap: anywhere;
  font-size: 0.98rem;
  line-height: 1.35;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.social-link {
  min-height: 130px;
  padding: 24px;
}

.social-icon {
  width: 58px;
  background: rgba(120, 216, 255, 0.13);
  color: var(--blue);
}

.social-external {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--muted);
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: start;
}

.legal-grid h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
}

.legal-panel {
  padding: clamp(24px, 4vw, 42px);
}

.legal-panel:first-child {
  position: sticky;
  top: 112px;
}

.legal-list {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
}

.legal-list > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.legal-list dt {
  color: var(--muted);
}

.legal-list dd {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.legal-list a {
  color: var(--green);
}

.privacy-copy h3 {
  margin: 32px 0 0;
  color: var(--text);
  font-size: 1.15rem;
}

.privacy-copy h2 + h3 {
  margin-top: 24px;
}

.privacy-copy p {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.72;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 32px auto 0;
  color: var(--muted);
  font-size: 0.92rem;
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: var(--text);
}

@media (min-width: 1500px) {
  .page-shell {
    padding-inline: clamp(64px, 6vw, 140px);
  }

  .nav,
  .hero,
  .section,
  footer {
    max-width: 1600px;
  }

  .brand-logo {
    width: 72px;
    height: 72px;
  }

  .nav-links {
    font-size: 1.04rem;
    gap: clamp(18px, 1.7vw, 34px);
  }

  .page-home .hero {
    min-height: calc(100vh - 125px);
    padding-top: 84px;
  }

  .page-home .hero {
    align-items: center;
    padding-top: 48px;
  }

  .page-home .hero-simple > div {
    max-width: 980px;
  }

  .page-home .hero-simple h1 {
    font-size: clamp(7.4rem, 6.4vw, 10.5rem);
    letter-spacing: 0;
  }

  .page-home .hero-simple .lead {
    max-width: 940px;
    font-size: 1.52rem;
    line-height: 1.68;
  }

  .page-home .lead-stack {
    gap: 22px;
  }

  .hero-compact > div,
  .page-intro p {
    max-width: 860px;
  }

  .dot-core {
    width: min(46vw, 760px);
    min-width: 560px;
  }
}

@media (min-width: 1900px) {
  .nav,
  .hero,
  .section,
  footer {
    max-width: 1720px;
  }

  .page-home .hero-simple > div {
    max-width: 1120px;
  }

  .page-home .hero-simple h1 {
    font-size: clamp(8.6rem, 6.8vw, 12rem);
  }

  .page-home .hero-simple .lead {
    max-width: 1040px;
    font-size: 1.68rem;
  }
}

@keyframes gridMove {
  to {
    transform: translate3d(58px, 58px, 0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(0, -16px, 0) rotate(2deg);
  }
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 0.14;
    transform: translateX(calc(-50% + var(--home-parallax-x, 0px))) translateY(var(--home-parallax-y, 0px)) scale(0.985);
  }

  50% {
    opacity: 0.22;
    transform: translateX(calc(-50% + var(--home-parallax-x, 0px))) translateY(var(--home-parallax-y, 0px)) scale(1.02);
  }
}

@keyframes consoleOrbit {
  0% {
    transform: translate3d(calc(var(--home-parallax-x, 0px) - 20px), calc(var(--home-parallax-y, 0px) - 10px), 0) scale(0.96);
  }

  100% {
    transform: translate3d(calc(var(--home-parallax-x, 0px) + 24px), calc(var(--home-parallax-y, 0px) + 18px), 0) scale(1.04);
  }
}

@keyframes ribbonDriftBack {
  0% {
    transform: rotate(-8deg) translate3d(calc(var(--home-parallax-x, 0px) - 34px), calc(var(--home-parallax-y, 0px) + 12px), 0);
  }

  100% {
    transform: rotate(-3deg) translate3d(calc(var(--home-parallax-x, 0px) + 28px), calc(var(--home-parallax-y, 0px) - 18px), 0);
  }
}

@keyframes ribbonDriftFront {
  0% {
    transform: rotate(6deg) translate3d(calc(var(--home-parallax-x, 0px) + 22px), calc(var(--home-parallax-y, 0px) - 4px), 0);
  }

  100% {
    transform: rotate(10deg) translate3d(calc(var(--home-parallax-x, 0px) - 30px), calc(var(--home-parallax-y, 0px) + 16px), 0);
  }
}

@keyframes symbolFloat {
  0% {
    opacity: 0.35;
    translate: -14px 20px;
    rotate: -12deg;
  }

  55% {
    opacity: 0.78;
  }

  100% {
    opacity: 0.42;
    translate: 24px -26px;
    rotate: 18deg;
  }
}

@keyframes pageFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes routeContentIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes navDrop {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes contentRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(1);
  }

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

@keyframes respawnOverlay {
  0%,
  52% {
    opacity: 1;
  }

  100% {
    visibility: hidden;
    opacity: 0;
  }
}

@keyframes respawnGrid {
  0% {
    opacity: 0;
    transform: perspective(500px) rotateX(58deg) scale(0.7);
  }

  28% {
    opacity: 0.72;
  }

  100% {
    opacity: 0;
    transform: perspective(500px) rotateX(58deg) scale(1.35);
  }
}

@keyframes respawnBloom {
  0%,
  15% {
    opacity: 0;
    transform: scale(0.45);
  }

  34% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

@keyframes respawnSweep {
  0% {
    top: -12%;
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  82% {
    opacity: 0.9;
  }

  100% {
    top: 112%;
    opacity: 0;
  }
}

@keyframes bracketsOnline {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.2);
  }

  35% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.82);
  }

  62% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes homeHeroOnline {
  from {
    opacity: 0;
    filter: blur(14px) brightness(1.8);
    transform: scale(1.035);
  }

  to {
    opacity: 1;
    filter: blur(0) brightness(1);
    transform: scale(1);
  }
}

@keyframes traitOnline {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes homeDetailOnline {
  from {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes homeActionsOnline {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .home-respawn {
    display: none;
  }

  .home-traits span {
    opacity: 1;
  }

  .home-subtitle,
  .home-actions {
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .language-switch {
    margin-left: auto;
  }

  .menu-button {
    display: block;
  }

  .mobile-menu.open {
    display: block;
  }

  .logout-link {
    margin-left: auto;
    border-left: 0;
  }

  .profile-grid,
  .profile-split {
    grid-template-columns: 1fr;
  }

  .profile-facts {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-grid,
  .profile-main {
    gap: 56px;
  }

  .profile-split {
    gap: 44px;
  }

  .ai-panel {
    padding-top: 38px;
    padding-left: 0;
    border-top: 1px solid rgba(120, 216, 255, 0.38);
    border-left: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .dot-core {
    top: 118px;
    left: 50%;
    width: min(86vw, 440px);
    min-width: 320px;
    opacity: 0.16;
  }

  .card-grid,
  .grade-grid,
  .report-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

  .legal-panel:first-child {
    position: static;
  }
}

@media (max-width: 560px) {
  .brand-name {
    font-size: 0.95rem;
  }

  h1 {
    font-size: clamp(2.65rem, 16vw, 4.2rem);
  }

  .actions,
  .button {
    width: 100%;
  }

  .section {
    padding: 54px 0;
  }

  .dot-core {
    top: 104px;
    left: 50%;
    min-width: 300px;
    opacity: 0.12;
  }

  .profile-facts,
  .story-step {
    grid-template-columns: 1fr;
  }

  .profile-overview {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .profile-portrait {
    width: min(76vw, 250px);
    margin: 0 auto;
  }

  .profile-grid,
  .profile-main {
    gap: 44px;
  }

  .story-feature {
    gap: 12px;
    padding-bottom: 44px;
  }

  .profile-split {
    gap: 34px;
    padding-bottom: 48px;
  }

  .project-card,
  .timeline-row {
    grid-template-columns: 1fr;
  }

  .project-list {
    grid-template-columns: 1fr;
  }

  .hobby-stage {
    aspect-ratio: 4 / 3;
  }

  .hobby-arrow {
    width: 42px;
  }

  .hobby-arrow-left {
    left: 10px;
  }

  .hobby-arrow-right {
    right: 10px;
  }

  .project-content-media {
    grid-template-columns: 1fr;
  }

  .project-video-wrap {
    width: min(100%, 280px);
    margin-inline: auto;
  }

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

  .project-filter {
    width: 100%;
    padding-inline: 10px;
  }

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

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

  .legal-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .arcade-label {
    right: 16px;
    bottom: 14px;
    left: 16px;
  }

  footer {
    flex-direction: column;
  }
}
