:root {
  --bg: #0a1016;
  --bg-soft: #111a22;
  --bg-elevated: rgba(15, 25, 34, 0.76);
  --panel: rgba(16, 25, 34, 0.78);
  --panel-strong: rgba(15, 22, 31, 0.9);
  --line: rgba(145, 175, 200, 0.16);
  --line-strong: rgba(73, 200, 207, 0.28);
  --text: #edf2f6;
  --muted: #9eacb9;
  --soft: #c8d4de;
  --gold: #49c8cf;
  --gold-soft: rgba(73, 200, 207, 0.18);
  --cyan: #8ac7cf;
  --cyan-soft: rgba(138, 199, 207, 0.16);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: min(1180px, calc(100vw - 40px));
  --nav-height: 82px;
  --transition: 220ms ease;
  --smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Quicksand", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(138, 199, 207, 0.13), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(73, 200, 207, 0.12), transparent 24%),
    linear-gradient(180deg, #081017 0%, #0b1118 35%, #0d141b 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 88%);
  opacity: 0.3;
  animation: grid-breathe 9s ease-in-out infinite;
}

body::after {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.12));
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  width: var(--container);
  margin: 0 auto;
  padding-bottom: 48px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--nav-height);
  margin: 18px 0 28px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(9, 15, 22, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  transition: background-color 520ms cubic-bezier(0.22, 1, 0.36, 1);
  animation: topbar-enter 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.topbar.is-scrolled {
  background: rgba(9, 15, 22, 0.82);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  animation: brand-shimmer 6s ease-in-out infinite;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  position: relative;
  padding: 12px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  transition: color 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a.is-active {
  color: var(--text);
}

.site-nav a:focus-visible {
  color: var(--text);
  outline: none;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  opacity: 1;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
}

.section {
  position: relative;
  padding: 58px 0;
}

.section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(73, 200, 207, 0.16), transparent);
  opacity: 0.55;
  animation: section-line-pulse 5.5s ease-in-out infinite;
}

.section-heading {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin-bottom: 30px;
  animation: fade-in 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  animation: eyebrow-glow 4.5s ease-in-out infinite;
}

h1,
h2,
h3,
p,
ul,
dl {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Quicksand", "Trebuchet MS", sans-serif;
  font-weight: 650;
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.85rem, 5vw, 5.2rem);
  letter-spacing: -0.045em;
  background: linear-gradient(90deg, var(--text) 0%, var(--text) 35%, rgba(175, 240, 244, 0.95) 44%, #ffffff 50%, rgba(175, 240, 244, 0.95) 56%, var(--text) 65%, var(--text) 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: text-shimmer 6s linear 1.5s infinite;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

p,
li,
dd,
dt,
span,
a,
button {
  line-height: 1.65;
}

p,
li,
dd,
dt {
  color: var(--soft);
}

.hero {
  padding-top: 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 20px;
  animation: fade-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text);
  max-width: 65ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 8px;
  animation: fade-in 560ms 350ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-personal {
  max-width: 68ch;
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  transition: border-color 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.button-primary {
  background: linear-gradient(135deg, rgba(73, 200, 207, 0.18), rgba(73, 200, 207, 0.1));
  border-color: rgba(73, 200, 207, 0.22);
}

.button-primary:hover {
  border-color: rgba(73, 200, 207, 0.6);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.36);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 14px;
  align-items: stretch;
}

.hero-metrics div,
.panel,
.project-card,
.lunoko-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 27, 37, 0.86), rgba(11, 18, 25, 0.92));
  box-shadow: var(--shadow);
}

.hero-metrics div {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  min-height: 116px;
  padding: 18px;
  border-radius: var(--radius-md);
  transition: border-color 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-metrics div:hover {
  border-color: rgba(73, 200, 207, 0.22);
  box-shadow: 0 0 0 1px rgba(73, 200, 207, 0.12), 0 28px 80px rgba(0, 0, 0, 0.38);
}

.hero-metrics div::before,
.panel::before,
.project-card::before,
.lunoko-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 36%, transparent 68%, rgba(138, 199, 207, 0.06));
  opacity: 0.8;
  pointer-events: none;
}

.hero-metrics dt {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-metrics dd {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.35;
  text-wrap: balance;
}

.hero-visual {
  position: relative;
  animation: fade-in 700ms 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.portrait-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 620px;
}

.portrait-halo {
  position: absolute;
  inset: 13% 8%;
  border-radius: 38px;
  background:
    radial-gradient(circle at 30% 30%, rgba(73, 200, 207, 0.22), transparent 36%),
    radial-gradient(circle at 70% 60%, rgba(138, 199, 207, 0.18), transparent 34%);
  filter: blur(18px);
  animation: halo-breathe 5s ease-in-out infinite;
}

.portrait-card {
  position: relative;
  z-index: 2;
  width: min(100%, 430px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(18, 28, 38, 0.8), rgba(13, 20, 29, 0.95));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
  transition: border-color 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portrait-card:hover {
  border-color: rgba(73, 200, 207, 0.24);
}

.portrait-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  pointer-events: none;
}

.portrait-image {
  aspect-ratio: 0.86;
  width: 100%;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  filter: saturate(0.92) contrast(1.06);
  animation: portrait-filter-pulse 7s ease-in-out infinite;
}

.portrait-card figcaption {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--soft);
  font-size: 0.95rem;
}

.portrait-links {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.portrait-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(10, 17, 25, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  transition: border-color 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portrait-link:hover {
  border-color: rgba(73, 200, 207, 0.4);
}

.portrait-link:focus-visible {
  outline: none;
}

.portrait-link i {
  font-size: 1rem;
  line-height: 1;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold), #9feff2);
  box-shadow: 0 0 20px rgba(73, 200, 207, 0.55);
  animation: dot-pulse 2.4s ease-in-out infinite;
}

.hero-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.hero-orbit-a {
  width: 460px;
  height: 460px;
  animation: orbit-spin 18s linear infinite;
}

.hero-orbit-b {
  width: 560px;
  height: 560px;
  border-style: dashed;
  border-color: rgba(73, 200, 207, 0.14);
  animation: orbit-spin-reverse 24s linear infinite;
}

.hero-orbit-a::before,
.hero-orbit-b::before {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero-orbit-a::before {
  top: -5px;
  left: 50%;
  translate: -50% 0;
  width: 10px;
  height: 10px;
  background: var(--gold);
  box-shadow: 0 0 14px 2px rgba(73, 200, 207, 0.9), 0 0 4px rgba(73, 200, 207, 0.6);
}

.hero-orbit-b::before {
  bottom: -4px;
  right: 24%;
  width: 6px;
  height: 6px;
  background: rgba(138, 199, 207, 0.82);
  box-shadow: 0 0 10px rgba(138, 199, 207, 0.75);
}

.panel {
  border-radius: var(--radius-lg);
  padding: 28px;
}

.panel-head {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.panel-kicker {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: panel-kicker-pulse 4.2s ease-in-out infinite;
}

.tech-columns {
  display: grid;
  gap: 18px;
}

.tech-panel {
  display: grid;
  gap: 14px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tech-grid-concepts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tech-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid rgba(73, 200, 207, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 280ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1);
  animation: fade-in 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tech-item:hover {
  border-color: rgba(73, 200, 207, 0.28);
  box-shadow: 0 0 18px rgba(73, 200, 207, 0.08);
}

.tech-item:hover .tech-mark {
  border-color: rgba(73, 200, 207, 0.52);
}

.tech-mark {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  padding: 0 10px;
  border: 1px solid rgba(138, 199, 207, 0.2);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(138, 199, 207, 0.14), rgba(255, 255, 255, 0.02));
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: border-color 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tech-icon {
  font-size: 1.5rem;
}

.tech-icon i {
  font-size: 1.5rem;
  line-height: 1;
}

.tech-label {
  color: var(--text);
  font-weight: 600;
}

.tech-concept {
  color: var(--gold);
  border-color: rgba(73, 200, 207, 0.2);
  background: linear-gradient(145deg, rgba(73, 200, 207, 0.12), rgba(255, 255, 255, 0.02));
  font-size: 0.82rem;
}

.tech-item:nth-child(2) { animation-delay: 70ms; }
.tech-item:nth-child(3) { animation-delay: 140ms; }
.tech-item:nth-child(4) { animation-delay: 210ms; }
.tech-item:nth-child(5) { animation-delay: 280ms; }
.tech-item:nth-child(6) { animation-delay: 350ms; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  border-radius: 28px;
  padding: 28px;
  display: grid;
  gap: 18px;
  min-height: 100%;
  transition: border-color 340ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover {
  border-color: rgba(73, 200, 207, 0.22);
  box-shadow: 0 0 32px rgba(73, 200, 207, 0.08), 0 28px 80px rgba(0, 0, 0, 0.5);
}

.project-card.featured {
  background:
    radial-gradient(circle at top right, rgba(73, 200, 207, 0.11), transparent 30%),
    linear-gradient(180deg, rgba(18, 27, 37, 0.92), rgba(11, 18, 25, 0.96));
}

.project-card:nth-child(2) .project-line { animation-delay: 0.6s; }
.project-card:nth-child(3) .project-line { animation-delay: 1.2s; }
.project-card:nth-child(4) .project-line { animation-delay: 1.8s; }
.project-card:nth-child(5) .project-line { animation-delay: 2.4s; }

.project-card:nth-child(1) { animation: slide-up 550ms 0ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.project-card:nth-child(2) { animation: slide-up 550ms 100ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.project-card:nth-child(3) { animation: slide-up 550ms 200ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.project-card:nth-child(4) { animation: slide-up 550ms 300ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.project-card:nth-child(5) { animation: slide-up 550ms 400ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.project-card:nth-child(6) { animation: slide-up 550ms 500ms cubic-bezier(0.22, 1, 0.36, 1) both; }

.project-topline {
  display: flex;
  align-items: center;
  gap: 14px;
}

.project-index {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  animation: counter-glow 3.5s ease-in-out infinite;
}

.project-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(73, 200, 207, 0.4), transparent);
  animation: line-shimmer 3s ease-in-out infinite;
}

.project-card p {
  max-width: 62ch;
}

.project-card ul,
.timeline-card ul {
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.project-card li::marker,
.timeline-card li::marker {
  color: var(--gold);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--soft);
  font-size: 0.88rem;
}

.tag-tech {
  border-color: transparent;
  color: #f5fbff;
}

.tag-typescript {
  background: rgba(49, 120, 198, 0.22);
}

.tag-bun {
  background: rgba(250, 234, 187, 0.18);
  color: #f9efc7;
}

.tag-architecture {
  background: rgba(73, 200, 207, 0.16);
}

.tag-spring {
  background: rgba(109, 179, 63, 0.22);
}

.tag-react-native {
  background: rgba(97, 218, 251, 0.18);
}

.tag-postgresql {
  background: rgba(51, 103, 145, 0.22);
}

.tag-mongodb {
  background: rgba(71, 162, 72, 0.2);
}

.tag-node {
  background: rgba(104, 160, 99, 0.2);
}

.tag-aws {
  background: rgba(255, 153, 0, 0.22);
}

.tag-wordpress {
  background: rgba(33, 117, 155, 0.2);
}

.tag-kotlin {
  background: linear-gradient(135deg, rgba(124, 82, 255, 0.22), rgba(255, 122, 80, 0.18));
}

.tag-java {
  background: rgba(176, 114, 25, 0.22);
}

.tag-vue {
  background: rgba(65, 184, 131, 0.2);
}

.tag-phaser {
  background: rgba(179, 96, 255, 0.2);
}

.tag-nuxt {
  background: rgba(0, 220, 130, 0.18);
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-link {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.project-link.is-disabled {
  opacity: 0.72;
  cursor: default;
  border-color: rgba(255, 255, 255, 0.08);
}

.timeline {
  position: relative;
  display: grid;
  gap: 22px;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, rgba(73, 200, 207, 0.36), rgba(138, 199, 207, 0.1));
  animation: timeline-line-pulse 4s ease-in-out infinite;
}

.timeline-item {
  position: relative;
  padding-left: 26px;
}

.timeline-dot {
  position: absolute;
  left: -1px;
  top: 24px;
  width: 18px;
  height: 18px;
  border: 4px solid rgba(10, 16, 22, 1);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold), #a6eef1);
  box-shadow: 0 0 0 1px rgba(73, 200, 207, 0.36);
  animation: dot-glow 2.8s ease-in-out infinite;
}

.timeline-item:nth-child(2) .timeline-dot { animation-delay: 0.9s; }
.timeline-item:nth-child(3) .timeline-dot { animation-delay: 1.8s; }

.timeline-item:nth-child(1) .timeline-card { animation: slide-up 600ms 80ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.timeline-item:nth-child(2) .timeline-card { animation: slide-up 600ms 200ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.timeline-item:nth-child(3) .timeline-card { animation: slide-up 600ms 320ms cubic-bezier(0.22, 1, 0.36, 1) both; }

.timeline-card {
  display: grid;
  gap: 18px;
  transition: border-color 280ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-card:hover {
  border-color: rgba(73, 200, 207, 0.22);
  box-shadow: 0 0 24px rgba(73, 200, 207, 0.07), 0 28px 80px rgba(0, 0, 0, 0.45);
}

.timeline-brief {
  max-width: 68ch;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
}

.timeline-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.timeline-meta span {
  color: var(--muted);
}

.lunoko-section {
  padding-bottom: 34px;
}

.lunoko-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  gap: 22px;
  align-items: stretch;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  background:
    radial-gradient(circle at 0% 0%, rgba(73, 200, 207, 0.12), transparent 35%),
    radial-gradient(circle at 100% 100%, rgba(138, 199, 207, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(16, 25, 34, 0.86), rgba(12, 19, 27, 0.96));
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.36);
  transition: border-color 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1);
  animation: slide-up 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lunoko-shell:hover {
  border-color: rgba(73, 200, 207, 0.18);
  box-shadow: 0 0 40px rgba(73, 200, 207, 0.08), 0 34px 100px rgba(0, 0, 0, 0.5);
}

.lunoko-copy {
  display: grid;
  align-content: center;
  gap: 20px;
}

.lunoko-lead {
  font-size: 1.2rem;
  color: var(--text);
  animation: fade-in 600ms 150ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lunoko-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 10px;
}

.lunoko-visual {
  display: grid;
}

.lunoko-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 26px;
  border-radius: 28px;
  min-height: 100%;
  text-align: center;
}

.lunoko-logo {
  width: min(100%, 220px);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.28));
  animation: float 6s ease-in-out infinite;
}

.lunoko-signature {
  max-width: 24ch;
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.55;
  animation: fade-in 700ms 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 24px 4px 8px;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer a {
  color: var(--soft);
  transition: color 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.footer a:hover {
  color: var(--gold);
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(73, 200, 207, 0.55); }
  50%       { box-shadow: 0 0 36px rgba(73, 200, 207, 0.95), 0 0 10px rgba(73, 200, 207, 0.6); }
}

@keyframes halo-breathe {
  0%, 100% { opacity: 0.65; }
  50%       { opacity: 1; }
}

@keyframes dot-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(73, 200, 207, 0.36); }
  50%       { box-shadow: 0 0 0 3px rgba(73, 200, 207, 0.5), 0 0 14px rgba(73, 200, 207, 0.35); }
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes orbit-spin-reverse {
  from { transform: rotate(360deg); }
  to   { transform: rotate(0deg); }
}

@keyframes topbar-enter {
  from { opacity: 0; translate: 0 -18px; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50%       { translate: 0 -10px; }
}

@keyframes line-shimmer {
  0%, 100% { opacity: 0.38; }
  50%       { opacity: 1; }
}

@keyframes eyebrow-glow {
  0%, 100% { text-shadow: none; }
  50%       { text-shadow: 0 0 18px rgba(73, 200, 207, 0.65); }
}

@keyframes grid-breathe {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.48; }
}

@keyframes slide-up {
  from { opacity: 0; translate: 0 22px; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes text-shimmer {
  from { background-position: 200% center; }
  to   { background-position: -200% center; }
}

@keyframes brand-shimmer {
  0%, 100% { text-shadow: none; }
  50%       { text-shadow: 0 0 22px rgba(73, 200, 207, 0.52), 0 0 8px rgba(73, 200, 207, 0.3); }
}

@keyframes panel-kicker-pulse {
  0%, 100% { opacity: 0.82; }
  50%       { opacity: 1; text-shadow: 0 0 14px rgba(73, 200, 207, 0.55); }
}

@keyframes counter-glow {
  0%, 100% { text-shadow: none; }
  50%       { text-shadow: 0 0 12px rgba(73, 200, 207, 0.78); }
}

@keyframes section-line-pulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 0.75; }
}

@keyframes portrait-filter-pulse {
  0%, 100% { filter: saturate(0.92) contrast(1.06); }
  50%       { filter: saturate(1.06) contrast(1.08) brightness(1.04); }
}

@keyframes timeline-line-pulse {
  0%, 100% { opacity: 0.65; }
  50%       { opacity: 1; }
}

/* ── Contact ─────────────────────────────────────────── */

.contact-section {
  padding-bottom: 0;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 48px;
  align-items: center;
}

.contact-copy {
  display: grid;
  gap: 18px;
  animation: slide-up 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.contact-lead {
  font-size: 1.12rem;
  color: var(--text);
}

.contact-links {
  display: grid;
  gap: 16px;
  animation: slide-up 600ms 150ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(18, 27, 37, 0.86), rgba(11, 18, 25, 0.92));
  box-shadow: var(--shadow);
  transition: border-color 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.contact-card:hover {
  border-color: rgba(73, 200, 207, 0.38);
  box-shadow: 0 0 28px rgba(73, 200, 207, 0.1), 0 28px 80px rgba(0, 0, 0, 0.42);
}

.contact-icon {
  display: grid;
  place-items: center;
  min-width: 52px;
  height: 52px;
  border: 1px solid rgba(73, 200, 207, 0.22);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(73, 200, 207, 0.14), rgba(255, 255, 255, 0.02));
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
  transition: border-color 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-card:hover .contact-icon {
  border-color: rgba(73, 200, 207, 0.55);
}

.contact-info {
  display: grid;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.contact-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact-value {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-arrow {
  color: var(--gold);
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-card:hover .contact-arrow {
  opacity: 1;
}

@media (max-width: 1080px) {
  .hero-grid,
  .lunoko-shell,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .portrait-frame {
    min-height: 540px;
  }

  .projects-grid,
  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar {
    flex-wrap: wrap;
    top: 10px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding-top: 8px;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-metrics,
  .projects-grid,
  .tech-grid,
  .tech-grid-concepts,
  .contact-links {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 18px;
  }

  .timeline-item {
    padding-left: 18px;
  }

  .timeline-dot {
    left: -8px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100vw - 24px, 1180px);
  }

  .section {
    padding: 42px 0;
  }

  .topbar {
    padding: 12px 14px;
  }

  .panel,
  .project-card,
  .lunoko-panel,
  .lunoko-shell {
    padding: 22px;
  }

  h1 {
    font-size: clamp(2.3rem, 11vw, 3.3rem);
  }

  h2 {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }

  .portrait-frame {
    min-height: 420px;
  }

  .hero-orbit-a {
    width: 320px;
    height: 320px;
  }

  .hero-orbit-b {
    width: 390px;
    height: 390px;
  }
}


