:root {
  --ink: #030914;
  --navy: #061225;
  --panel: #0b1a32;
  --panel-2: #10243f;
  --line: #1d3554;
  --muted: #8390aa;
  --text: #b8c4df;
  --strong: #e7eefc;
  --mint: #64ffda;
  --mint-soft: rgba(100, 255, 218, 0.12);
  --coral: #f6a98f;
  --violet: #a996f5;
  --shadow: rgba(2, 12, 27, 0.74);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -20%, rgba(100, 255, 218, 0.04), transparent 34rem),
    var(--navy);
  color: var(--text);
  font-family: "NTR", system-ui, sans-serif;
  font-size: 22px;
  line-height: 1.55;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: var(--mint);
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease, border-color 180ms ease,
    background 180ms ease;
}

a:hover {
  color: var(--strong);
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 clamp(20px, 7vw, 150px);
  background: rgba(6, 18, 37, 0.92);
  border-bottom: 1px solid rgba(29, 53, 84, 0.8);
  backdrop-filter: blur(16px);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--strong);
  font-size: 18px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 16px;
  font-weight: 700;
}

.site-nav a,
.brand {
  color: #c8d2ea;
}

.site-nav a:hover,
.brand:hover {
  color: var(--mint);
}

.site-nav span,
.side-nav span {
  color: var(--mint);
}

.social-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-nav a {
  display: inline-flex;
  color: var(--text);
}

.social-nav svg,
.say-hi-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-nav a:nth-child(2) svg,
.social-nav a:nth-child(3) svg {
  fill: currentColor;
  stroke: none;
}

.social-nav a:hover {
  color: var(--mint);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  padding: 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--mint);
}

.side-nav {
  display: none;
}

#content {
  width: min(1060px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
  scroll-margin-top: 100px;
}

.intro {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 70px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 390px) minmax(320px, 560px);
  gap: clamp(56px, 8vw, 120px);
  align-items: center;
  width: 100%;
  min-height: 620px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--mint);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 28px;
  color: var(--strong);
  font-family: "NTR", system-ui, sans-serif;
  font-size: clamp(56px, 7vw, 84px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 span {
  color: var(--mint);
  font-weight: 800;
}

.intro-copy {
  max-width: 560px;
  color: var(--text);
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
}

.intro-actions,
.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid var(--mint);
  border-radius: 6px;
  padding: 8px 22px;
  color: var(--mint);
  font-size: 18px;
  font-weight: 800;
}

.say-hi-button {
  gap: 10px;
  min-width: 136px;
}

.button:hover {
  background: var(--mint-soft);
  transform: translateY(-2px);
}

.text-link {
  font-size: 18px;
  font-weight: 700;
}

.dot-portrait {
  position: relative;
  width: min(100%, 360px);
  height: 410px;
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(100, 255, 218, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(100, 255, 218, 0.06), transparent 40%),
    linear-gradient(180deg, #0b1a32, #061225);
  box-shadow: 0 26px 70px -50px #000;
}

.dot-portrait::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 58px;
  width: 138px;
  height: 138px;
  border-radius: 46% 54% 52% 48%;
  background:
    radial-gradient(circle at 38% 35%, rgba(231, 238, 252, 0.95), rgba(184, 196, 223, 0.6) 38%, transparent 39%),
    linear-gradient(135deg, #64ffda, #8eb6ff);
  opacity: 0.7;
  transform: translateX(-50%);
  filter: blur(0.2px);
}

.dot-portrait span {
  position: absolute;
  left: 50%;
  bottom: -30px;
  width: 260px;
  height: 210px;
  border-radius: 42% 42% 0 0;
  background:
    linear-gradient(135deg, rgba(100, 255, 218, 0.2), transparent 36%),
    #10243f;
  transform: translateX(-50%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dot-portrait::after {
  content: "MK";
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: rgba(100, 255, 218, 0.5);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.section-header::after {
  content: "";
  width: min(320px, 40vw);
  height: 1px;
  margin-left: 22px;
  background: rgba(29, 53, 84, 0.9);
}

.section-header h2 {
  margin: 0;
  color: var(--strong);
  font-size: 46px;
  line-height: 1;
  letter-spacing: 0;
}

.section-header-row {
  justify-content: space-between;
  gap: 20px;
}

.section-header-row::after {
  flex: 1;
  order: 1;
}

.section-header-row .text-link,
.section-header-row .explore-link {
  order: 2;
}

.explore-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--mint);
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.explore-link::after {
  content: "->";
  font-size: 18px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 76px;
  align-items: start;
}

.split p,
.contact-lead {
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.85;
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 8px 20px;
  padding: 0;
  margin: 18px 0 28px;
  list-style: none;
}

.skill-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.skill-list li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--mint);
}

.free-time {
  margin-top: 8px;
}

.portrait-card {
  margin: 12px 0 0;
  border: 1px solid rgba(29, 53, 84, 0.9);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 24px 60px -48px #000;
  transition: transform 200ms ease, border-color 200ms ease;
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 18%;
}

.portrait-card figcaption {
  margin: 0;
  border-top: 1px solid rgba(29, 53, 84, 0.9);
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(11, 26, 50, 0.96);
  font-size: 14px;
  font-weight: 700;
}

.portrait-card:hover {
  border-color: var(--mint);
  transform: translateY(-6px);
}

.project-card {
  background: rgba(11, 26, 50, 0.94);
  border: 1px solid rgba(29, 53, 84, 0.82);
  border-radius: 10px;
  padding: 26px;
  box-shadow: 0 20px 54px -46px #000;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}

.project-card:hover {
  border-color: rgba(100, 255, 218, 0.42);
  background: var(--panel-2);
  transform: translateY(-4px);
}

.time,
.tech {
  margin-bottom: 8px;
  color: var(--mint);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-card h3 {
  margin-bottom: 12px;
  color: var(--strong);
  font-size: 28px;
  line-height: 1.2;
}

.experience-layout {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 34px;
  max-width: 900px;
}

.experience-tabs {
  display: grid;
  align-content: start;
  min-height: 420px;
  border-right: 1px solid rgba(40, 68, 103, 0.92);
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.experience-tabs button {
  display: block;
  width: calc(100% + 1px);
  min-height: 58px;
  border-right: 2px solid transparent;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  margin-right: -1px;
  padding: 0 18px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.experience-tabs button:hover {
  color: var(--mint);
  background: rgba(100, 255, 218, 0.055);
}

.experience-tabs button.is-active {
  border-color: var(--mint);
  color: var(--mint);
  background: rgba(100, 255, 218, 0.075);
}

.experience-panel {
  padding: 18px 0 8px;
}

.experience-panel[hidden] {
  display: none;
}

.experience-detail h3 {
  margin-bottom: 6px;
  color: var(--strong);
  font-size: 30px;
  line-height: 1.25;
}

.experience-detail h3 span {
  color: var(--violet);
}

.experience-list {
  display: grid;
  gap: 24px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.experience-list li {
  position: relative;
  padding-left: 26px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.55;
}

.experience-list li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--mint);
  font-weight: 800;
}

.spotlight {
  position: relative;
  margin: 18px 0 24px;
}

.spotlight-stage {
  min-height: 500px;
}

.spotlight-card {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(29, 53, 84, 0.8);
  border-radius: 18px;
  background: #596273;
  box-shadow: 0 30px 76px -52px #000;
}

.spotlight-card img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  opacity: 0.3;
  filter: grayscale(0.35);
}

.spotlight-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10, 25, 47, 0.02), rgba(10, 25, 47, 0.18)),
    rgba(86, 96, 112, 0.64);
}

.spotlight-content {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: min(560px, calc(100% - 72px));
  transform: translateX(-50%);
  color: #f1f6ff;
  text-align: center;
}

.spotlight-content h3 {
  margin-bottom: 8px;
  color: var(--strong);
  font-size: 38px;
  line-height: 1.08;
}

.spotlight-content .eyebrow {
  color: var(--mint);
}

.spotlight-content p {
  margin-bottom: 10px;
  color: #f1f6ff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.spotlight-content .tech {
  color: var(--strong);
  opacity: 0.9;
}

.spotlight-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.spotlight-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--mint);
  border-radius: 7px;
  padding: 5px 12px;
  background: rgba(10, 25, 47, 0.54);
  color: var(--mint);
  font-size: 16px;
  font-weight: 800;
}

.spotlight-actions a:hover {
  background: rgba(100, 255, 218, 0.14);
  color: var(--strong);
}

.spotlight-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 70px;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
}

.spotlight-arrow span {
  width: 22px;
  height: 22px;
  border-top: 3px solid #f1f6ff;
  border-right: 3px solid #f1f6ff;
}

.spotlight-arrow-left {
  left: 44px;
}

.spotlight-arrow-left span {
  transform: rotate(-135deg);
}

.spotlight-arrow-right {
  right: 44px;
}

.spotlight-arrow-right span {
  transform: rotate(45deg);
}

.spotlight-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 26px;
}

.spotlight-dots button {
  width: 32px;
  height: 3px;
  border: 0;
  border-radius: 999px;
  background: rgba(203, 215, 244, 0.64);
  cursor: pointer;
}

.spotlight-dots button.is-active {
  background: var(--mint);
}

.project-section-note {
  max-width: 680px;
  margin: 0 auto 22px;
  text-align: center;
}

.project-section-note p {
  color: var(--muted);
  font-size: 18px;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-icon {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(100, 255, 218, 0.42);
  border-radius: 7px;
  background:
    linear-gradient(135deg, transparent 45%, rgba(100, 255, 218, 0.28) 45% 55%, transparent 55%),
    rgba(100, 255, 218, 0.08);
}

.project-card p {
  font-size: 18px;
  line-height: 1.55;
}

.project-card .links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 16px;
  font-weight: 800;
}

.project-card .links span {
  width: 100%;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-card .links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(100, 255, 218, 0.42);
  border-radius: 7px;
  padding: 5px 10px;
  background: rgba(100, 255, 218, 0.06);
}

.contact {
  max-width: 720px;
}

.site-footer {
  padding: 30px 24px 48px;
  color: var(--muted);
  text-align: center;
  font-size: 16px;
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

@media (max-width: 820px) {
  body {
    font-size: 17px;
  }

  .site-header {
    padding: 0 18px;
  }

  .nav-left {
    gap: 14px;
  }

  .brand {
    font-size: 13px;
  }

  .nav-toggle {
    display: block;
    order: -1;
  }

  .site-nav {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    display: none;
    padding: 22px;
    background: rgba(10, 25, 47, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: grid;
    gap: 16px;
  }

  .social-nav {
    gap: 12px;
  }

  .social-nav svg {
    width: 17px;
    height: 17px;
  }

  #content {
    width: min(100% - 32px, 1080px);
  }

  .section {
    padding: 70px 0;
  }

  .intro {
    min-height: auto;
    padding-top: 110px;
  }

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

  .intro-grid {
    gap: 34px;
    min-height: auto;
  }

  .dot-portrait {
    width: min(100%, 260px);
    height: 290px;
    justify-self: center;
    order: 1;
  }

  .dot-portrait::before {
    width: 100px;
    height: 100px;
    top: 44px;
  }

  .dot-portrait span {
    width: 190px;
    height: 155px;
  }

  .intro-copy-block {
    order: 2;
  }

  .spotlight-stage,
  .spotlight-card,
  .spotlight-card img {
    min-height: 430px;
    height: 430px;
  }

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

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

  .spotlight-content {
    bottom: 26px;
    width: min(100% - 48px, 560px);
  }

  .spotlight-content h3 {
    font-size: 28px;
  }

  .section-header::after {
    display: none;
  }

  .section-header h2 {
    font-size: 30px;
  }

  .portrait-card {
    max-width: 260px;
  }

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

  .experience-tabs {
    display: flex;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    padding: 0;
    overflow-x: auto;
  }

  .experience-tabs button {
    width: auto;
    min-height: 48px;
    border-right: 0;
    border-bottom: 2px solid transparent;
    margin-right: 0;
    margin-bottom: -1px;
    padding: 12px 18px;
    white-space: nowrap;
  }

  .experience-tabs button.is-active {
    border-color: var(--mint);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 46px;
  }

  .intro-copy {
    font-size: 18px;
  }

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

  .experience-detail article,
  .project-card {
    padding: 22px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}
