:root {
  --background: #050505;
  --foreground: #f5f5f5;
  --surface: rgba(17, 17, 17, 0.58);
  --surface-strong: rgba(21, 21, 21, 0.72);
  --primary: #e50914;
  --primary-dark: #7a0008;
  --primary-glow: rgba(229, 9, 20, 0.35);
  --border: rgba(255, 255, 255, 0.08);
  --muted-cool: #a3a3a3;
  --bg: var(--background);
  --text: var(--foreground);
  --muted: rgba(245, 245, 245, 0.64);
  --line: var(--border);
  --panel: var(--surface);
  --panel-strong: var(--surface-strong);
  --accent: var(--primary);
  --radius: 8px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: transparent;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans", "Yu Gothic", Tahoma, Arial, sans-serif;
  line-height: 1.45;
  letter-spacing: 0;
}

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

button {
  color: inherit;
  font: inherit;
}

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

.shader-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: var(--background);
  pointer-events: none;
}

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

body::before {
  background:
    radial-gradient(circle at 54% 36%, rgba(229, 9, 20, 0.08) 0 11%, rgba(5, 5, 5, 0.16) 28%, transparent 52%, rgba(0, 0, 0, 0.28) 90%),
    linear-gradient(90deg, rgba(229, 9, 20, 0.018) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.008) 1px, transparent 1px);
  background-size: auto, 92px 92px, 92px 92px;
  mix-blend-mode: soft-light;
}

body::after {
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.1), rgba(5, 5, 5, 0.34)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.008) 0 1px, transparent 1px 8px);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.42);
  backdrop-filter: blur(14px);
}

.logo {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.34em;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a,
.control-dock button,
.mini-title,
.work-item span,
.skills-list span {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--muted);
  transition: color 180ms ease;
}

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

main {
  position: relative;
  z-index: 2;
}

.scene-panel {
  position: relative;
  min-height: 100vh;
  padding: 128px 7vw 86px;
}

.hero {
  display: grid;
  align-items: end;
}

.hero-content {
  max-width: 980px;
}

.mini-title {
  margin-bottom: 18px;
  color: var(--accent);
}

.hero h1 {
  max-width: 980px;
  font-size: 8.2rem;
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: 0.14em;
  text-shadow:
    0 0 42px rgba(229, 9, 20, 0.18),
    0 12px 80px rgba(0, 0, 0, 0.52);
}

.hero-description {
  max-width: 680px;
  margin-top: 34px;
  color: rgba(246, 243, 238, 0.82);
  font-size: 1.22rem;
  font-weight: 400;
}

.work-item,
.skills-list,
.contact,
.control-dock {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(8px);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(229, 9, 20, 0.018);
}

.work-item span {
  color: var(--muted);
}

.work,
.profile {
  display: grid;
  align-content: center;
  gap: 36px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-header h2,
.profile-copy h2,
.contact h2 {
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: 0;
}

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

.work-item {
  position: relative;
  display: grid;
  min-height: 340px;
  align-content: end;
  gap: 12px;
  padding: 22px;
  overflow: hidden;
  cursor: crosshair;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.work-item::before {
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 50% 0%, rgba(229, 9, 20, 0.2), transparent 36%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.045));
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
}

.work-item:hover {
  border-color: rgba(229, 9, 20, 0.62);
  background: var(--panel-strong);
  transform: translateY(-8px);
  box-shadow:
    0 28px 82px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(229, 9, 20, 0.12);
}

.work-item:hover::before {
  opacity: 1;
}

.work-item > * {
  position: relative;
  z-index: 1;
}

.work-item h3 {
  font-size: 1.44rem;
  line-height: 1.05;
}

.work-item p {
  max-width: 22ch;
  color: var(--muted);
}

.profile {
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.75fr);
  align-items: center;
}

.profile-connect {
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 72px);
}

.profile-copy {
  max-width: 820px;
}

.connect-copy {
  align-self: center;
}

.connect-description {
  max-width: 640px;
  margin-top: 26px;
  color: rgba(246, 243, 238, 0.74);
  font-size: 1.08rem;
  line-height: 1.62;
}

.profile-card {
  max-width: 760px;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 38%),
    rgba(5, 5, 5, 0.24);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.14);
}

.profile-card__label {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-card p {
  color: rgba(246, 243, 238, 0.76);
  font-size: 1.05rem;
  line-height: 1.62;
}

.profile-card p + p {
  margin-top: 16px;
}

.profile-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.profile-roles span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.18);
  color: rgba(246, 243, 238, 0.82);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px;
}

.skills-list span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(246, 243, 238, 0.76);
  background: rgba(255, 255, 255, 0.026);
}

.social-hub,
.social-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.social-board {
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 34%),
    rgba(5, 5, 5, 0.28);
  backdrop-filter: blur(14px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.18);
}

.social-board__head {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 6px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.social-board__head .mini-title {
  margin: 0;
}

.social-board__head h3 {
  max-width: 380px;
  color: rgba(246, 243, 238, 0.9);
  font-size: 1.28rem;
  line-height: 1.08;
  text-align: right;
}

.social-card {
  position: relative;
  display: grid;
  min-height: 148px;
  align-content: space-between;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 38%),
    rgba(255, 255, 255, 0.026);
  color: rgba(246, 243, 238, 0.78);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.social-card::after {
  position: absolute;
  inset: auto 12px 12px auto;
  width: 34px;
  height: 1px;
  background: color-mix(in srgb, var(--accent) 54%, transparent);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: right;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.social-card:hover,
.social-card:focus-visible {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 42%),
    rgba(255, 255, 255, 0.045);
  color: var(--text);
  box-shadow:
    0 18px 56px rgba(0, 0, 0, 0.3),
    0 0 26px rgba(229, 9, 20, 0.11);
}

.social-card:hover::after,
.social-card:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.social-card__icon {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.18);
}

.social-card__icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.social-card__text {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.social-card__meta {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(246, 243, 238, 0.48);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
}

.contact {
  display: grid;
  min-height: 70vh;
  align-content: center;
  justify-items: start;
  margin: 14vh 7vw 10vh;
  padding: 56px;
  background: linear-gradient(135deg, rgba(5, 5, 5, 0.22), rgba(5, 5, 5, 0.08));
}

.contact h2 {
  margin-bottom: 30px;
  word-break: break-word;
}

.security-link {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    text-shadow 180ms ease;
}

.security-link:hover {
  color: var(--text);
  text-shadow: 0 0 18px var(--primary-glow);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-links a {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(246, 243, 238, 0.76);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, rgba(255, 255, 255, 0.035));
  color: var(--text);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(246, 243, 238, 0.42);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 800;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #050505;
  box-shadow: 0 0 30px var(--primary-glow);
  transform: translateY(-2px);
}

.control-dock {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 12;
  display: flex;
  gap: 4px;
  padding: 5px;
  background: rgba(5, 5, 5, 0.16);
  backdrop-filter: blur(10px);
}

.control-dock button {
  min-height: 36px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.control-dock button:hover,
.control-dock button.is-active {
  background: var(--accent);
  color: #050505;
  box-shadow: 0 0 22px rgba(229, 9, 20, 0.22);
}

.language-orbit {
  position: fixed;
  inset: 0;
  z-index: 9;
  overflow: hidden;
  pointer-events: none;
  direction: ltr;
}

.language-orbit::before {
  position: absolute;
  left: var(--orbit-center-x, calc(100vw - 148px));
  top: var(--orbit-center-y, 158px);
  width: var(--orbit-field-size, 168px);
  height: var(--orbit-field-size, 168px);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 58%),
    conic-gradient(from var(--orbit-angle, 0deg), transparent, rgba(229, 9, 20, 0.22), transparent 42%);
  content: "";
  opacity: 0.52;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition:
    opacity 260ms ease,
    width 260ms ease,
    height 260ms ease;
}

.language-orbit__halo {
  position: absolute;
  left: calc(var(--orbit-center-x, calc(100vw - 148px)) - 5px);
  top: calc(var(--orbit-center-y, 158px) - 5px);
  width: 10px;
  height: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 64%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 42%, rgba(255, 255, 255, 0.08));
  box-shadow:
    0 0 26px color-mix(in srgb, var(--accent) 34%, transparent),
    inset 0 0 18px rgba(255, 255, 255, 0.045);
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    left 220ms ease,
    top 220ms ease;
}

.language-orbit button {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  width: var(--language-size, 46px);
  height: var(--language-size, 46px);
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 18%, rgba(229, 9, 20, 0.16), transparent 42%),
    rgba(5, 5, 5, 0.28);
  color: rgba(246, 243, 238, 0.6);
  cursor: pointer;
  opacity: 0;
  pointer-events: auto;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  transition:
    opacity 260ms ease,
    color 180ms ease,
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.language-orbit button::before,
.language-orbit button::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.language-orbit button::before {
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.language-orbit button::after {
  left: 50%;
  bottom: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.28;
  transform: translateX(-50%);
  transition:
    opacity 180ms ease,
    background 180ms ease;
}

.language-orbit button:hover,
.language-orbit button:focus-visible,
.language-orbit button.is-active {
  color: var(--text);
  transform: translateY(-2px) scale(1.04);
}

.language-orbit button:hover::before,
.language-orbit button:focus-visible::before,
.language-orbit button.is-active::before {
  border-color: color-mix(in srgb, var(--accent) 42%, rgba(255, 255, 255, 0.18));
  transform: scale(1.08);
}

.language-orbit button.is-active::after {
  background: var(--accent);
  opacity: 1;
}

.language-orbit.is-ready button {
  opacity: 1;
}

.language-orbit.is-scattered::before {
  opacity: 0.16;
}

.language-orbit.is-scattered .language-orbit__halo {
  opacity: 0.38;
  transform: scale(0.7);
}

.language-orbit span {
  position: relative;
  z-index: 1;
  margin-top: -4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.language-orbit small {
  position: absolute;
  z-index: 1;
  right: 50%;
  bottom: 8px;
  max-width: 40px;
  color: rgba(246, 243, 238, 0.5);
  font-size: 0.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  opacity: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  transform: translateX(50%) translateY(3px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  white-space: nowrap;
}

.language-orbit button:hover small,
.language-orbit button:focus-visible small,
.language-orbit button.is-active small {
  opacity: 1;
  transform: translateX(50%) translateY(0);
}

.language-click-glow {
  position: fixed;
  left: var(--glow-x);
  top: var(--glow-y);
  z-index: 8;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent) 0 8%, rgba(255, 255, 255, 0.12) 16%, transparent 62%);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.35);
  animation: language-glow 760ms ease-out forwards;
  mix-blend-mode: screen;
}

@keyframes language-glow {
  0% {
    opacity: 0.92;
    transform: translate(-50%, -50%) scale(0.32);
  }

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

.is-language-changing [data-i18n] {
  opacity: 0.32;
  filter: blur(4px);
  transform: translateY(4px);
}

[data-i18n] {
  transition:
    opacity 180ms ease,
    filter 180ms ease,
    transform 180ms ease;
}

[dir="rtl"] body {
  direction: rtl;
}

[dir="rtl"] .logo,
[dir="rtl"] .nav-links,
[dir="rtl"] .language-orbit,
[dir="rtl"] .control-dock,
[dir="rtl"] .shader-canvas {
  direction: ltr;
}

[dir="rtl"] .hero-content,
[dir="rtl"] .section-header,
[dir="rtl"] .profile-copy,
[dir="rtl"] .contact,
[dir="rtl"] .work-item,
[dir="rtl"] .social-board {
  text-align: right;
}

[dir="rtl"] .section-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .social-board__head h3 {
  text-align: left;
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 32px;
  background:
    radial-gradient(circle at 50% 42%, rgba(229, 9, 20, 0.16), transparent 32%),
    rgba(5, 5, 5, 0.82);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
  transition:
    opacity 420ms ease,
    transform 620ms ease;
}

.page-transition.is-active {
  opacity: 1;
  transform: scale(1);
}

.page-transition__glyph {
  color: var(--accent);
  font-size: 2rem;
}

.page-transition h2 {
  max-width: 780px;
  text-align: center;
  font-size: 4.6rem;
  line-height: 0.95;
}

.is-transitioning {
  overflow: hidden;
}

.security-page main {
  min-height: 100vh;
}

.error-hero,
.security-hero {
  display: grid;
  min-height: 72vh;
  align-content: end;
}

.error-hero h1,
.security-hero h1 {
  max-width: 940px;
  font-size: clamp(3rem, 8vw, 7.4rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow:
    0 0 42px rgba(229, 9, 20, 0.16),
    0 28px 90px rgba(0, 0, 0, 0.54);
}

.error-hero p:not(.mini-title),
.security-hero p:not(.mini-title) {
  max-width: 760px;
  margin-top: 28px;
  color: rgba(245, 245, 245, 0.72);
  font-size: 1.08rem;
  line-height: 1.62;
}

.error-hero .btn {
  justify-self: start;
  margin-top: 30px;
}

.security-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 7vw 96px;
}

.security-grid article {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 16% 0%, rgba(229, 9, 20, 0.12), transparent 38%),
    var(--panel);
  backdrop-filter: blur(10px);
}

.security-grid span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.security-grid h2 {
  margin: 42px 0 12px;
  font-size: 1.18rem;
  line-height: 1.12;
}

.security-grid p {
  color: rgba(245, 245, 245, 0.62);
}

@media (max-width: 1300px) {
  .work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .hero h1 {
    font-size: 6rem;
  }

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

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

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

@media (max-width: 720px) {
  .navbar {
    min-height: 68px;
    padding: 0 18px;
  }

  .nav-links {
    gap: 14px;
  }

  .logo {
    font-size: 0.88rem;
    letter-spacing: 0.22em;
  }

  .scene-panel {
    min-height: auto;
    padding: 108px 18px 68px;
  }

  .hero {
    min-height: 100vh;
    align-content: end;
  }

  .hero h1 {
    font-size: 3.45rem;
    letter-spacing: 0.1em;
  }

  .page-transition h2 {
    font-size: 2.4rem;
  }

  .hero-description {
    font-size: 1rem;
  }

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

  .section-header h2,
  .profile-copy h2,
  .contact h2 {
    font-size: 2.45rem;
  }

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

  .work-item {
    min-height: 220px;
  }

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

  .social-board__head {
    align-items: start;
    flex-direction: column;
  }

  .social-board__head h3 {
    text-align: left;
  }

  .social-card {
    min-height: 92px;
  }

  .contact {
    margin: 0 18px 92px;
    padding: 28px;
  }

  .security-grid {
    grid-template-columns: 1fr;
    padding: 0 18px 72px;
  }

  .control-dock {
    right: 12px;
    bottom: 12px;
    left: 12px;
    justify-content: center;
  }

  .control-dock button {
    flex: 1;
    padding: 0 6px;
  }

  .language-orbit {
    z-index: 9;
  }

  .language-orbit::before {
    width: var(--orbit-field-size, 112px);
    height: var(--orbit-field-size, 112px);
  }

  .language-orbit button {
    width: var(--language-size, 38px);
    height: var(--language-size, 38px);
  }

  .language-orbit button::before {
    inset: 6px;
  }

  .language-orbit span {
    font-size: 0.68rem;
  }

  .language-orbit small {
    display: none;
  }

  [dir="rtl"] .section-header,
  [dir="rtl"] .social-board__head {
    flex-direction: column;
  }

  [dir="rtl"] .social-board__head h3 {
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-orbit::before {
    opacity: 0.22;
  }

  .language-orbit button,
  .language-orbit__halo,
  .language-click-glow {
    animation: none;
    transition-duration: 0ms;
  }

  .language-click-glow {
    display: none;
  }
}
