:root {
  --ink: #eaf1ee;
  --muted: #a3b4ad;
  --paper: #0d1318;
  --paper-soft: #111a21;
  --white: #ffffff;
  --line: #27343d;
  --mint: #39c98e;
  --teal: #2ab7af;
  --coral: #ff8c69;
  --yellow: #ffd166;
  --violet: #8f80ff;
  --surface: #141d24;
  --surface-2: #18242d;
  --surface-3: #1f2e39;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 26px 70px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

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

::selection {
  background: rgba(247, 201, 72, 0.48);
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

a,
button,
summary {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid rgba(19, 138, 132, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  transition: transform 160ms ease;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--yellow), var(--mint), var(--violet));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(39, 52, 61, 0.82);
  background: rgba(10, 15, 20, 0.96);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(10, 15, 20, 0.99);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--yellow);
  color: #0f1418;
  font-size: 0.86rem;
}

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

.nav-links a {
  position: relative;
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 6px;
  left: 12px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  background: rgba(42, 183, 175, 0.16);
  color: #8ee4df;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 88px;
  background:
    linear-gradient(115deg, transparent 0 54%, rgba(255, 209, 102, 0.16) 54% 62%, transparent 62%),
    linear-gradient(42deg, rgba(57, 201, 142, 0.1) 0 34%, transparent 34%),
    linear-gradient(145deg, transparent 0 72%, rgba(255, 140, 105, 0.14) 72% 82%, transparent 82%),
    var(--paper);
}

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

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

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  border: 1px solid rgba(42, 183, 175, 0.22);
  border-radius: 8px;
  background: rgba(20, 29, 36, 0.78);
  color: var(--teal);
  padding: 8px 11px;
  font-size: 0.9rem;
  font-weight: 850;
  box-shadow: 0 10px 30px rgba(23, 32, 29, 0.06);
}

.availability-pill::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(50, 182, 122, 0.14);
}

.eyebrow,
.section-kicker {
  margin: 0 0 13px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-kicker.light {
  color: #fff2b7;
}

.hero h1,
.split-layout h2,
.section-heading h2,
.project-content h2,
.education-grid h2,
.contact-grid h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.05;
}

.hero h1 {
  max-width: 720px;
  font-size: 4.9rem;
}

.hero h1 span {
  color: var(--teal);
}

.hero-lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.24rem;
  font-weight: 750;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.hero-lead.is-switching {
  opacity: 0;
  transform: translateY(4px);
}

.hero-lead.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 1.1em;
  margin-left: 0.12em;
  vertical-align: -0.16em;
  background: var(--teal);
  animation: typeCursor 700ms steps(1) infinite;
}

@keyframes typeCursor {
  50% {
    opacity: 0;
  }
}
.mode-switch {
  display: inline-flex;
  gap: 8px;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 29, 36, 0.72);
  padding: 6px;
}

.mode-chip {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  min-height: 36px;
  padding: 0 13px;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.mode-chip:hover,
.mode-chip:focus-visible {
  color: #d7ebe5;
}

.mode-chip.active {
  border-color: rgba(42, 183, 175, 0.5);
  background: rgba(42, 183, 175, 0.2);
  color: #9de7df;
  transform: translateY(-1px);
}

.mode-note {
  max-width: 680px;
  min-height: 26px;
  margin: 12px 0 0;
  color: #9bb9b1;
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.mode-note.is-switching {
  opacity: 0;
  transform: translateY(4px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 900;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-120%);
  transition: transform 420ms ease;
}

.button:hover::before,
.button:focus-visible::before {
  transform: translateX(120%);
}

.button-arrow {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  transition: transform 180ms ease;
}

.button-arrow::before,
.button-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 2px;
  background: currentColor;
}

.button-arrow::before {
  width: 12px;
  height: 2px;
  transform: translateY(-50%);
}

.button-arrow::after {
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  background: transparent;
  transform: translateY(-50%) rotate(45deg);
}

.button:hover .button-arrow,
.button:focus-visible .button-arrow {
  transform: translateX(3px);
}

.button-primary {
  background: linear-gradient(135deg, #2ab7af, #39c98e);
  color: #081113;
  box-shadow: 0 14px 28px rgba(42, 183, 175, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 18px 38px rgba(42, 183, 175, 0.4);
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--teal);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(42, 183, 175, 0.14);
}

.button-cv {
  border-color: rgba(255, 209, 102, 0.5);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.2), rgba(255, 140, 105, 0.2));
  color: #ffdfa5;
  animation: cvGlow 2.8s ease-in-out infinite;
}

.button-cv:hover,
.button-cv:focus-visible {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.28), rgba(255, 140, 105, 0.28));
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-tags span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 29, 36, 0.75);
  padding: 9px 11px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.profile-panel {
  position: relative;
  width: min(100%, 450px);
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 9px;
  transform-origin: center;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.profile-panel:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-6px);
}

.profile-panel::before {
  content: "";
  position: absolute;
  inset: -16px 22px auto auto;
  width: 42%;
  height: 82px;
  border-radius: 8px;
  background: var(--yellow);
  z-index: -1;
}

.profile-panel img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 400ms ease, filter 220ms ease;
}

.profile-panel:hover img {
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.015);
}

.profile-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  padding: 3px;
  overflow: hidden;
}

.profile-frame::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 0deg,
    var(--teal),
    var(--mint),
    var(--yellow),
    var(--coral),
    var(--violet),
    var(--teal)
  );
  animation: borderSpin 6s linear infinite;
}

.profile-frame::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 6px;
  background: var(--surface);
  z-index: 1;
}

.quick-facts {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.quick-facts div {
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px;
  transition: background 180ms ease, transform 180ms ease;
}

.quick-facts div:hover {
  background: var(--surface-3);
  transform: translateY(-3px);
}

.quick-facts strong,
.quick-facts span {
  display: block;
}

.quick-facts strong {
  color: var(--ink);
  line-height: 1.1;
}

.quick-facts span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.section-pad {
  padding: 88px 0;
  scroll-margin-top: 92px;
  content-visibility: auto;
  contain-intrinsic-size: 780px;
}

.section-soft {
  background: var(--paper-soft);
}

.section-color {
  background:
    linear-gradient(135deg, rgba(20, 92, 88, 0.98), rgba(30, 110, 83, 0.96)),
    var(--teal);
  color: var(--white);
}

.split-layout,
.education-grid,
.contact-grid,
.project-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: start;
}

.split-layout h2,
.section-heading h2,
.project-content h2,
.education-grid h2,
.contact-grid h2 {
  font-size: 3.1rem;
}

.copy-stack {
  display: grid;
  gap: 18px;
}

.about-section {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(42, 183, 175, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(17, 26, 33, 0.9), rgba(13, 19, 24, 0.98));
}

.about-intro {
  color: #d9ebe6;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.75;
}

.copy-stack p,
.section-heading p,
.project-content p,
.education-grid p,
.mini-card p,
.contact-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.section-color p {
  color: rgba(255, 255, 255, 0.84);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

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

.skill-card,
.mini-card,
.education-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 26px;
  box-shadow: var(--shadow);
}

.skill-card,
.mini-card,
.education-card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.skill-card:hover,
.mini-card:hover,
.education-card:hover {
  border-color: rgba(19, 138, 132, 0.28);
  box-shadow: var(--shadow-strong);
  transform: translateY(-6px);
}

.skill-icon {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  margin-bottom: 18px;
  transition: transform 220ms ease;
}

.skill-card:hover .skill-icon {
  transform: rotate(-4deg) scale(1.04);
}

.code-icon {
  background:
    linear-gradient(90deg, transparent 42%, var(--white) 42%, var(--white) 58%, transparent 58%),
    var(--coral);
}

.web-icon {
  background:
    linear-gradient(var(--white), var(--white)) 50% 50% / 22px 5px no-repeat,
    var(--mint);
}

.data-icon {
  background:
    linear-gradient(to top, var(--white) 0 42%, transparent 42%) 10px 22px / 6px 16px no-repeat,
    linear-gradient(to top, var(--white) 0 68%, transparent 68%) 20px 16px / 6px 22px no-repeat,
    linear-gradient(to top, var(--white) 0 88%, transparent 88%) 30px 10px / 6px 28px no-repeat,
    var(--violet);
}

.skill-card h3,
.mini-card h3,
.education-card h3 {
  margin: 0 0 12px;
  font-size: 1.22rem;
  line-height: 1.2;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tags a,
.tags span {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease, background 180ms ease;
}

.tags a:hover,
.tags a:focus-visible,
.tags span:hover {
  border-color: rgba(19, 138, 132, 0.3);
  background: rgba(42, 183, 175, 0.18);
  color: var(--teal);
  transform: translateY(-2px);
}

.project-layout {
  align-items: center;
}

.project-visual {
  position: relative;
  min-height: 430px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 32, 29, 0.92), rgba(40, 76, 66, 0.95)),
    linear-gradient(45deg, rgba(244, 109, 79, 0.32), transparent);
  box-shadow: var(--shadow);
  padding: 24px;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.project-visual:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-6px);
}

.motion-paused,
.motion-paused * {
  animation-play-state: paused !important;
}

html.is-scrolling .motion-surface,
html.is-scrolling .motion-surface *,
html.is-scrolling .motion-surface::before,
html.is-scrolling .motion-surface::after,
html.is-scrolling .motion-surface *::before,
html.is-scrolling .motion-surface *::after {
  animation-play-state: paused !important;
}

.browser-bar {
  display: flex;
  gap: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  padding: 12px;
}

.browser-bar span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.browser-bar span:nth-child(1) {
  background: var(--coral);
}

.browser-bar span:nth-child(2) {
  background: var(--yellow);
}

.browser-bar span:nth-child(3) {
  background: var(--mint);
}

.flow-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.flow-columns span {
  position: relative;
  display: block;
  min-height: 150px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.flow-columns span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.24), transparent 80%);
  transform: translateX(-120%);
}

.flow-columns span:nth-child(2) {
  transform: translateY(22px);
  background: rgba(247, 201, 72, 0.72);
}

.flow-list {
  display: grid;
  gap: 12px;
  margin-top: 48px;
}

.flow-list span {
  display: block;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transform-origin: left center;
}

.flow-list span:nth-child(2) {
  width: 76%;
}

.flow-list span:nth-child(3) {
  width: 58%;
}

.project-points {
  display: grid;
  gap: 10px;
  margin: 22px 0 28px;
  padding-left: 20px;
  color: var(--muted);
}

.education-card {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(9, 20, 25, 0.42);
  box-shadow: none;
}

.education-card p {
  color: rgba(255, 255, 255, 0.84);
}

.mini-card {
  box-shadow: none;
}

.mini-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--coral);
  font-weight: 900;
}

.contact-section {
  background: var(--paper-soft);
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.cv-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  border: 1px solid rgba(255, 209, 102, 0.3);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.08), rgba(42, 183, 175, 0.1));
  padding: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.cv-card:hover,
.cv-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 209, 102, 0.6);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
}

.cv-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background:
    linear-gradient(transparent 0 22%, rgba(13, 19, 24, 0.28) 22% 28%, transparent 28% 52%, rgba(13, 19, 24, 0.28) 52% 58%, transparent 58%),
    linear-gradient(135deg, #ffd166, #ff8c69);
}

.cv-text strong,
.cv-text small {
  display: block;
}

.cv-text strong {
  color: #ffe6af;
  font-size: 0.96rem;
  font-weight: 900;
}

.cv-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.cv-ping {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ffd166;
  box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.75);
  animation: cvPing 2s ease-out infinite;
}

.contact-links a,
.social-links a {
  color: var(--teal);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form {
  display: grid;
  gap: 18px;
  box-shadow: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form:focus-within {
  border-color: rgba(19, 138, 132, 0.32);
  box-shadow: 0 18px 46px rgba(19, 138, 132, 0.1);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(19, 138, 132, 0.14);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  background: #0b1116;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-content p {
  margin: 0;
  color: var(--muted);
}

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

.lab-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 14%, rgba(143, 128, 255, 0.15), transparent 34%),
    radial-gradient(circle at 10% 78%, rgba(42, 183, 175, 0.14), transparent 32%),
    var(--paper);
}

.lab-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 54px;
  align-items: center;
}

.lab-copy h2 {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 3.5rem);
  line-height: 1.05;
}

.lab-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.lab-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 29, 36, 0.7);
  padding: 10px 12px;
}

kbd {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-3);
  padding: 3px 8px;
  font-size: 0.86rem;
  font-weight: 800;
}

.orbit-shell {
  position: relative;
  width: min(500px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at center, rgba(42, 183, 175, 0.08), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow);
}

.orbit-core {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  border: 1px solid rgba(42, 183, 175, 0.3);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(42, 183, 175, 0.2), rgba(57, 201, 142, 0.18));
  display: grid;
  place-content: center;
  text-align: center;
  z-index: 2;
  box-shadow: 0 0 0 14px rgba(42, 183, 175, 0.07);
}

.orbit-core strong {
  font-size: 1.15rem;
}

.orbit-core span {
  margin-top: 6px;
  color: #9edfd8;
  font-size: 0.85rem;
  font-weight: 700;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: orbitSpin 24s linear infinite;
}

.orbit-ring li {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
}

.orbit-ring li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 42px;
  border: 1px solid rgba(143, 128, 255, 0.28);
  border-radius: 999px;
  background: rgba(24, 36, 45, 0.92);
  color: #d7e7e1;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34);
  animation: orbitCounter 24s linear infinite;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.orbit-shell:hover .orbit-ring,
.orbit-shell:hover .orbit-ring li span {
  animation-play-state: paused;
}

.orbit-ring li span:hover {
  transform: scale(1.07);
  border-color: rgba(42, 183, 175, 0.7);
  color: #9ee5de;
}

.orbit-ring li:nth-child(1) {
  transform: rotate(0deg) translateX(190px);
}

.orbit-ring li:nth-child(2) {
  transform: rotate(45deg) translateX(190px);
}

.orbit-ring li:nth-child(3) {
  transform: rotate(90deg) translateX(190px);
}

.orbit-ring li:nth-child(4) {
  transform: rotate(135deg) translateX(190px);
}

.orbit-ring li:nth-child(5) {
  transform: rotate(180deg) translateX(190px);
}

.orbit-ring li:nth-child(6) {
  transform: rotate(225deg) translateX(190px);
}

.orbit-ring li:nth-child(7) {
  transform: rotate(270deg) translateX(190px);
}

.orbit-ring li:nth-child(8) {
  transform: rotate(315deg) translateX(190px);
}

.command-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 22;
  border: 1px solid rgba(42, 183, 175, 0.4);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(42, 183, 175, 0.92), rgba(57, 201, 142, 0.92));
  color: #071214;
  min-height: 46px;
  padding: 0 16px;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(42, 183, 175, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.command-toggle:hover,
.command-toggle:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(42, 183, 175, 0.42);
}

.command-palette {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.command-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 14, 0.62);
  backdrop-filter: blur(8px);
}

.command-panel {
  position: relative;
  width: min(680px, calc(100% - 28px));
  margin: 10vh auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111922;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.command-head p {
  margin: 0;
  color: #9edfd8;
  font-size: 0.94rem;
  font-weight: 900;
  text-transform: uppercase;
}

.command-close {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  min-height: 36px;
  padding: 0 10px;
  cursor: pointer;
  font-weight: 800;
}

.command-search-wrap {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

#command-search {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f161e;
  color: var(--ink);
  min-height: 44px;
  padding: 0 12px;
}

.command-list {
  display: grid;
  gap: 8px;
  max-height: 48vh;
  overflow: auto;
  padding: 12px 16px 16px;
}

.command-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  min-height: 44px;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.command-list button:hover,
.command-list button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(42, 183, 175, 0.55);
  background: rgba(42, 183, 175, 0.12);
}

@media (prefers-reduced-motion: no-preference) {
  .js-ready .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 620ms ease, transform 620ms ease;
    transition-delay: var(--reveal-delay, 0ms);
  }

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

  .hero-copy.reveal {
    transform: translateX(-22px);
  }

  .profile-panel.reveal {
    transform: translateY(26px) scale(0.98);
  }

  .profile-panel.reveal.is-visible {
    transform: translateY(0) scale(1);
  }

  .profile-panel.is-visible:not(:hover) {
    animation: portraitFloat 7s ease-in-out 1.1s infinite;
  }

  .flow-columns span::after {
    animation: shine 3.8s ease-in-out infinite;
  }

  .flow-columns span:nth-child(2)::after {
    animation-delay: 0.45s;
  }

  .flow-columns span:nth-child(3)::after {
    animation-delay: 0.9s;
  }

  .flow-list span {
    animation: linePulse 4s ease-in-out infinite;
  }

  .flow-list span:nth-child(2) {
    animation-delay: 0.35s;
  }

  .flow-list span:nth-child(3) {
    animation-delay: 0.7s;
  }

  .orbit-shell {
    animation: shellFloat 8s ease-in-out infinite;
  }

  @keyframes portraitFloat {
    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-8px);
    }
  }

  @keyframes shine {
    0% {
      transform: translateX(-120%);
    }

    45%,
    100% {
      transform: translateX(120%);
    }
  }

  @keyframes linePulse {
    0%,
    100% {
      transform: scaleX(0.78);
      opacity: 0.55;
    }

    50% {
      transform: scaleX(1);
      opacity: 0.95;
    }
  }

  @keyframes borderSpin {
    from {
      transform: rotate(0deg);
    }

    to {
      transform: rotate(360deg);
    }
  }

  @keyframes orbitSpin {
    from {
      transform: rotate(0deg);
    }

    to {
      transform: rotate(360deg);
    }
  }

  @keyframes orbitCounter {
    from {
      transform: rotate(0deg);
    }

    to {
      transform: rotate(-360deg);
    }
  }

  @keyframes shellFloat {
    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-8px);
    }
  }

  @keyframes cvPing {
    0% {
      box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.75);
    }

    70% {
      box-shadow: 0 0 0 12px rgba(255, 209, 102, 0);
    }

    100% {
      box-shadow: 0 0 0 0 rgba(255, 209, 102, 0);
    }
  }

  @keyframes cvGlow {
    0%,
    100% {
      box-shadow: 0 0 0 rgba(255, 209, 102, 0.22);
    }

    50% {
      box-shadow: 0 0 24px rgba(255, 209, 102, 0.28);
    }
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .split-layout,
  .lab-layout,
  .education-grid,
  .contact-grid,
  .project-layout,
  .skills-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 3.8rem;
  }

  .split-layout h2,
  .section-heading h2,
  .project-content h2,
  .education-grid h2,
  .contact-grid h2 {
    font-size: 2.55rem;
  }

  .profile-panel {
    width: min(100%, 450px);
    justify-self: center;
  }
}

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

  .brand-mark {
    width: 38px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 14px;
    left: 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 10px;
    box-shadow: var(--shadow);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height 220ms ease, opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

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

  .project-accordion summary {
    flex-direction: column;
  }

  .accordion-chevron {
    margin-top: 0;
  }

  .hero {
    padding: 62px 0 70px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-lead {
    font-size: 1.08rem;
  }

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

  .mode-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    border-radius: 8px;
  }

  .mode-chip {
    border-radius: 8px;
    min-height: 40px;
    padding: 0 8px;
    font-size: 0.8rem;
  }

  .quick-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
  }

  .profile-panel {
    width: min(100%, 450px);
    padding: 9px;
  }

  .quick-facts div {
    padding: 8px 4px;
    text-align: center;
  }

  .quick-facts strong {
    font-size: 0.76rem;
  }

  .quick-facts span {
    font-size: 0.66rem;
  }

  .section-pad {
    padding: 66px 0;
  }

  .split-layout h2,
  .section-heading h2,
  .project-content h2,
  .education-grid h2,
  .contact-grid h2 {
    font-size: 2.08rem;
  }

  .project-visual {
    min-height: 330px;
  }

  .orbit-shell {
    max-width: 390px;
  }

  .orbit-ring li:nth-child(1) {
    transform: rotate(0deg) translateX(145px);
  }

  .orbit-ring li:nth-child(2) {
    transform: rotate(45deg) translateX(145px);
  }

  .orbit-ring li:nth-child(3) {
    transform: rotate(90deg) translateX(145px);
  }

  .orbit-ring li:nth-child(4) {
    transform: rotate(135deg) translateX(145px);
  }

  .orbit-ring li:nth-child(5) {
    transform: rotate(180deg) translateX(145px);
  }

  .orbit-ring li:nth-child(6) {
    transform: rotate(225deg) translateX(145px);
  }

  .orbit-ring li:nth-child(7) {
    transform: rotate(270deg) translateX(145px);
  }

  .orbit-ring li:nth-child(8) {
    transform: rotate(315deg) translateX(145px);
  }

  .orbit-ring li span {
    min-width: 72px;
    min-height: 38px;
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .command-toggle {
    right: 12px;
    bottom: 12px;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }
}

.research-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 48px;
  align-items: start;
}

.research-intro h2 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 4.15rem);
  line-height: 1.05;
}

.research-intro > p:not(.section-kicker) {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.research-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.research-labels span {
  border: 1px solid rgba(57, 201, 142, 0.3);
  border-radius: 999px;
  background: rgba(57, 201, 142, 0.08);
  color: #a8e7ce;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 800;
}

.research-card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 8px;
  background: var(--surface);
  padding: clamp(22px, 4vw, 36px);
  box-shadow: var(--shadow);
}

.research-topic {
  margin: 0;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-card h3 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.12;
}

.research-card > p:not(.research-topic):not(.research-note) {
  margin: 16px 0 0;
  color: var(--muted);
}

.research-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.research-details div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 15px;
}

.research-details strong,
.research-details span {
  display: block;
}

.research-details strong {
  color: var(--yellow);
  font-size: 0.95rem;
}

.research-details span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.research-note {
  margin: 20px 0 0;
  border-left: 3px solid var(--mint);
  color: #b3c8c0;
  padding-left: 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

.project-section-intro {
  max-width: 680px;
  margin-bottom: 22px;
}

.project-section-intro h2 {
  margin: 0;
  font-size: clamp(1.95rem, 3.2vw, 3.1rem);
  line-height: 1.05;
}

.project-section-intro p:not(.section-kicker) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

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

.project-accordion {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 29, 36, 0.96), rgba(14, 21, 27, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.project-accordion summary {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
}

.project-accordion summary::-webkit-details-marker {
  display: none;
}

.project-accordion-summary h3 {
  margin: 6px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.15;
}

.project-teaser {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.project-accordion summary .project-tags {
  margin-bottom: 0;
}

.accordion-chevron {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin-top: 6px;
  border: 1px solid rgba(42, 183, 175, 0.32);
  border-radius: 50%;
  background: rgba(42, 183, 175, 0.1);
}

.accordion-chevron::before,
.accordion-chevron::after {
  content: "";
  position: absolute;
  top: 17px;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: #8ee4df;
  transition: transform 180ms ease;
}

.accordion-chevron::before {
  left: 9px;
  transform: rotate(45deg);
}

.accordion-chevron::after {
  right: 9px;
  transform: rotate(-45deg);
}

.project-accordion[open] .accordion-chevron::before {
  transform: rotate(-45deg);
}

.project-accordion[open] .accordion-chevron::after {
  transform: rotate(45deg);
}

.project-accordion-body {
  border-top: 1px solid rgba(39, 52, 61, 0.82);
  padding: 0 20px 18px;
}

.project-accordion-body .project-layout {
  margin-top: 18px;
}

@media (max-width: 980px) {
  .research-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .project-accordion summary {
    padding: 20px;
  }

  .project-accordion-body {
    padding: 0 20px 20px;
  }
}
.project-layout-secondary {
  margin-top: 72px;
}

.ml-project-visual {
  position: relative;
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(143, 128, 255, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(circle at 85% 15%, rgba(143, 128, 255, 0.35), transparent 34%),
    linear-gradient(135deg, rgba(20, 29, 36, 0.98), rgba(25, 45, 55, 0.92));
  box-shadow: var(--shadow);
  padding: 36px;
}

.ml-project-visual::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(57, 201, 142, 0.18);
  border-radius: 8px;
  background-image: linear-gradient(rgba(57, 201, 142, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(57, 201, 142, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.ml-project-visual > * {
  position: relative;
  z-index: 1;
}

.ml-project-mark {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--violet);
  color: var(--paper);
  font-size: 1.45rem;
  font-weight: 950;
  box-shadow: 0 0 0 10px rgba(143, 128, 255, 0.12);
}

.ml-project-visual p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 900;
  line-height: 1.1;
}

.ml-project-flow {
  display: grid;
  gap: 9px;
}

.ml-project-flow span {
  width: fit-content;
  border-left: 3px solid var(--mint);
  background: rgba(13, 19, 24, 0.68);
  color: #bfe4d6;
  padding: 7px 11px;
  font-size: 0.86rem;
  font-weight: 800;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0 26px;
}

.project-tags span {
  border: 1px solid rgba(143, 128, 255, 0.45);
  border-radius: 999px;
  background: rgba(143, 128, 255, 0.12);
  color: #d4ceff;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 800;
}
.kitchen-project-visual {
  position: relative;
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(255, 140, 105, 0.45);
  border-radius: 8px;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 140, 105, 0.34), transparent 34%),
    linear-gradient(135deg, rgba(36, 22, 20, 0.98), rgba(77, 42, 27, 0.92));
  box-shadow: var(--shadow);
  padding: 36px;
}

.kitchen-project-visual::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 8px;
  background-image: radial-gradient(rgba(255, 209, 102, 0.22) 1px, transparent 1px);
  background-size: 18px 18px;
}

.kitchen-project-visual > * {
  position: relative;
  z-index: 1;
}

.kitchen-project-mark {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--paper);
  font-size: 1.25rem;
  font-weight: 950;
  box-shadow: 0 0 0 10px rgba(255, 140, 105, 0.12);
}

.kitchen-project-visual p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 900;
  line-height: 1.1;
}

.kitchen-project-flow {
  display: grid;
  gap: 9px;
}

.kitchen-project-flow span {
  width: fit-content;
  border-left: 3px solid var(--yellow);
  background: rgba(36, 22, 20, 0.72);
  color: #ffe6bd;
  padding: 7px 11px;
  font-size: 0.86rem;
  font-weight: 800;
}
.project-showcase-visual {
  position: relative;
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(20, 29, 36, 0.98), rgba(30, 48, 55, 0.92));
  box-shadow: var(--shadow);
  padding: 36px;
}

.project-showcase-visual::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

.project-showcase-visual > * {
  position: relative;
  z-index: 1;
}

.project-showcase-mark {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--paper);
  font-size: 1.2rem;
  font-weight: 950;
  box-shadow: 0 0 0 10px rgba(42, 183, 175, 0.12);
}

.project-showcase-visual p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 900;
  line-height: 1.1;
}

.project-showcase-flow {
  display: grid;
  gap: 9px;
}

.project-showcase-flow span {
  width: fit-content;
  border-left: 3px solid var(--mint);
  background: rgba(13, 19, 24, 0.7);
  color: #d1e6df;
  padding: 7px 11px;
  font-size: 0.86rem;
  font-weight: 800;
}

.project-showcase-life {
  border-color: rgba(42, 183, 175, 0.48);
  background: radial-gradient(circle at 85% 15%, rgba(42, 183, 175, 0.35), transparent 34%), linear-gradient(135deg, rgba(17, 43, 45, 0.98), rgba(25, 64, 62, 0.9));
}

.project-showcase-pocket {
  border-color: rgba(255, 209, 102, 0.5);
  background: radial-gradient(circle at 85% 15%, rgba(255, 209, 102, 0.32), transparent 34%), linear-gradient(135deg, rgba(48, 41, 22, 0.98), rgba(65, 55, 28, 0.9));
}

.project-showcase-pocket .project-showcase-mark { background: var(--yellow); }
.project-showcase-pocket .project-showcase-flow span { border-color: var(--yellow); color: #fff0bd; }

.project-showcase-sheba {
  border-color: rgba(143, 128, 255, 0.48);
  background: radial-gradient(circle at 85% 15%, rgba(143, 128, 255, 0.34), transparent 34%), linear-gradient(135deg, rgba(32, 28, 58, 0.98), rgba(53, 43, 86, 0.9));
}

.project-showcase-sheba .project-showcase-mark { background: var(--violet); }
.project-showcase-sheba .project-showcase-flow span { border-color: var(--violet); color: #e0dbff; }

.project-showcase-campus {
  border-color: rgba(255, 140, 105, 0.48);
  background: radial-gradient(circle at 85% 15%, rgba(255, 140, 105, 0.34), transparent 34%), linear-gradient(135deg, rgba(53, 30, 25, 0.98), rgba(79, 43, 32, 0.9));
}

.project-showcase-campus .project-showcase-mark { background: var(--coral); }
.project-showcase-campus .project-showcase-flow span { border-color: var(--coral); color: #ffe0d6; }

.project-showcase-mediflow {
  border-color: rgba(57, 201, 142, 0.5);
  background: radial-gradient(circle at 85% 15%, rgba(57, 201, 142, 0.28), transparent 34%), linear-gradient(135deg, rgba(17, 42, 34, 0.98), rgba(28, 71, 56, 0.9));
}

.project-showcase-mediflow::before {
  background-image: linear-gradient(rgba(57, 201, 142, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(57, 201, 142, 0.12) 1px, transparent 1px);
}

.project-showcase-mediflow .project-showcase-mark {
  background: var(--mint);
  color: #082017;
  box-shadow: 0 0 0 10px rgba(57, 201, 142, 0.14);
}

.project-showcase-mediflow .project-showcase-flow span {
  border-color: var(--mint);
  color: #d8fff0;
}
/* Nine evenly spaced skills keep the orbit balanced after adding JavaScript. */
.orbit-ring li:nth-child(1) { transform: rotate(0deg) translateX(190px); }
.orbit-ring li:nth-child(2) { transform: rotate(40deg) translateX(190px); }
.orbit-ring li:nth-child(3) { transform: rotate(80deg) translateX(190px); }
.orbit-ring li:nth-child(4) { transform: rotate(120deg) translateX(190px); }
.orbit-ring li:nth-child(5) { transform: rotate(160deg) translateX(190px); }
.orbit-ring li:nth-child(6) { transform: rotate(200deg) translateX(190px); }
.orbit-ring li:nth-child(7) { transform: rotate(240deg) translateX(190px); }
.orbit-ring li:nth-child(8) { transform: rotate(280deg) translateX(190px); }
.orbit-ring li:nth-child(9) { transform: rotate(320deg) translateX(190px); }

@media (max-width: 760px) {
  .orbit-ring li:nth-child(1) { transform: rotate(0deg) translateX(145px); }
  .orbit-ring li:nth-child(2) { transform: rotate(40deg) translateX(145px); }
  .orbit-ring li:nth-child(3) { transform: rotate(80deg) translateX(145px); }
  .orbit-ring li:nth-child(4) { transform: rotate(120deg) translateX(145px); }
  .orbit-ring li:nth-child(5) { transform: rotate(160deg) translateX(145px); }
  .orbit-ring li:nth-child(6) { transform: rotate(200deg) translateX(145px); }
  .orbit-ring li:nth-child(7) { transform: rotate(240deg) translateX(145px); }
  .orbit-ring li:nth-child(8) { transform: rotate(280deg) translateX(145px); }
  .orbit-ring li:nth-child(9) { transform: rotate(320deg) translateX(145px); }
}
.project-showcase-couture {
  border-color: rgba(255, 184, 154, 0.52);
  background: radial-gradient(circle at 85% 15%, rgba(211, 151, 121, 0.4), transparent 34%), linear-gradient(135deg, rgba(61, 35, 31, 0.98), rgba(100, 61, 48, 0.9));
}

.project-showcase-couture::before {
  background-image: radial-gradient(rgba(255, 225, 198, 0.25) 1px, transparent 1px);
  background-size: 18px 18px;
}

.project-showcase-couture .project-showcase-mark {
  background: #f1b18e;
  color: #3b211c;
  box-shadow: 0 0 0 10px rgba(241, 177, 142, 0.14);
}

.project-showcase-couture .project-showcase-flow span {
  border-color: #f1b18e;
  color: #ffe4d1;
}
.project-showcase-asmyx {
  border-color: rgba(24, 183, 255, 0.52);
  background: radial-gradient(circle at 85% 15%, rgba(24, 183, 255, 0.38), transparent 34%), linear-gradient(135deg, rgba(17, 27, 46, 0.98), rgba(24, 52, 79, 0.9));
}

.project-showcase-asmyx::before {
  background-image: linear-gradient(rgba(24, 183, 255, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(24, 183, 255, 0.12) 1px, transparent 1px);
}

.project-showcase-asmyx .project-showcase-mark {
  background: #18b7ff;
  color: #071a2a;
  box-shadow: 0 0 0 10px rgba(24, 183, 255, 0.14);
}

.project-showcase-asmyx .project-showcase-flow span {
  border-color: #18b7ff;
  color: #d6f3ff;
}
.contact-links .contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  transition: color 180ms ease, transform 180ms ease;
}

.contact-links .contact-link:hover,
.contact-links .contact-link:focus-visible {
  color: #a9ede7;
  transform: translateX(3px);
}

.contact-social-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(42, 183, 175, 0.42);
  border-radius: 8px;
  background: rgba(42, 183, 175, 0.12);
  color: var(--teal);
}

.contact-social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.contact-links .contact-link-whatsapp {
  border: 1px solid rgba(57, 201, 142, 0.42);
  border-radius: 8px;
  background: rgba(57, 201, 142, 0.1);
  color: #a8e7ce;
  padding: 8px 11px 8px 8px;
}

.contact-links .contact-link-whatsapp .contact-social-icon {
  border-color: transparent;
  background: var(--mint);
  color: #0d1318;
}
/* Compact project showcases so the portfolio remains easy to scan. */
#project,
.project-section-secondary {
  padding-block: 68px;
}

.project-layout {
  gap: 42px;
}

.project-content h2 {
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.project-visual {
  min-height: 370px;
  padding: 20px;
}

.ml-project-visual,
.kitchen-project-visual,
.project-showcase-visual {
  min-height: 250px;
  padding: 22px;
}

.project-layout-secondary {
  margin-top: 0;
}

.project-tags {
  margin: 14px 0 18px;
}

@media (max-width: 980px) {
  #project,
  .project-section-secondary {
    padding-block: 56px;
  }

  .project-layout {
    gap: 30px;
  }

  .project-accordion summary {
    padding: 16px 18px;
  }

  .project-accordion-body {
    padding: 0 18px 16px;
  }
}
/* Project showcase motion matches the featured project visual. */
.project-visual > *,
.ml-project-visual > *,
.kitchen-project-visual > *,
.project-showcase-visual > * {
  position: relative;
  z-index: 1;
}

.project-visual::after,
.ml-project-visual::after,
.kitchen-project-visual::after,
.project-showcase-visual::after {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 43%, rgba(255, 255, 255, 0.18) 50%, transparent 57%);
  transform: translateX(-58%) rotate(8deg);
}

@media (prefers-reduced-motion: no-preference) {
  .project-visual.is-visible:not(:hover),
  .ml-project-visual.is-visible:not(:hover),
  .kitchen-project-visual.is-visible:not(:hover),
  .project-showcase-visual.is-visible:not(:hover) {
    animation: projectVisualFloat 7s ease-in-out 0.4s infinite;
  }

  .project-visual::after,
  .ml-project-visual::after,
  .kitchen-project-visual::after,
  .project-showcase-visual::after {
    animation: projectSweep 5.8s ease-in-out infinite;
  }

  .project-layout:nth-of-type(even) .project-visual::after,
  .project-layout:nth-of-type(even) .ml-project-visual::after,
  .project-layout:nth-of-type(even) .kitchen-project-visual::after,
  .project-layout:nth-of-type(even) .project-showcase-visual::after {
    animation-delay: 1.2s;
  }
}

@keyframes projectVisualFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes projectSweep {
  0%,
  22% {
    opacity: 0;
    transform: translateX(-58%) rotate(8deg);
  }

  42% {
    opacity: 1;
  }

  68%,
  100% {
    opacity: 0;
    transform: translateX(58%) rotate(8deg);
  }
}
/* Unique continuous project motion keeps each project visual alive. */
@media (prefers-reduced-motion: no-preference) {
  .ml-project-mark {
    animation: modelPulse 3.2s ease-in-out infinite;
  }

  .ml-project-flow span {
    animation: dataSignal 3.8s ease-in-out infinite;
  }

  .ml-project-flow span:nth-child(2) { animation-delay: 0.5s; }
  .ml-project-flow span:nth-child(3) { animation-delay: 1s; }

  .kitchen-project-mark {
    animation: kitchenGlow 2.8s ease-in-out infinite;
  }

  .kitchen-project-flow span {
    animation: kitchenRise 3.5s ease-in-out infinite;
  }

  .kitchen-project-flow span:nth-child(2) { animation-delay: 0.45s; }
  .kitchen-project-flow span:nth-child(3) { animation-delay: 0.9s; }

  .project-showcase-life .project-showcase-mark {
    animation: lifeBreathe 3.4s ease-in-out infinite;
  }

  .project-showcase-life .project-showcase-flow span {
    animation: lifeSlide 4s ease-in-out infinite;
  }

  .project-showcase-pocket .project-showcase-mark {
    animation: pocketCoin 3.6s ease-in-out infinite;
  }

  .project-showcase-pocket .project-showcase-flow span {
    animation: budgetGlow 3.4s ease-in-out infinite;
  }

  .project-showcase-sheba .project-showcase-mark {
    animation: shebaWave 3s ease-in-out infinite;
  }

  .project-showcase-sheba .project-showcase-flow span {
    animation: serviceFlow 3.7s ease-in-out infinite;
  }

  .project-showcase-campus .project-showcase-mark {
    animation: campusBounce 2.9s ease-in-out infinite;
  }

  .project-showcase-campus .project-showcase-flow span {
    animation: campusShift 3.5s ease-in-out infinite;
  }

  .project-showcase-couture .project-showcase-mark {
    animation: coutureShimmer 3.3s ease-in-out infinite;
  }

  .project-showcase-couture .project-showcase-flow span {
    animation: coutureLift 3.8s ease-in-out infinite;
  }

  .project-showcase-asmyx .project-showcase-mark {
    animation: asmyxSignal 2.7s ease-in-out infinite;
  }

  .project-showcase-asmyx .project-showcase-flow span {
    animation: asmyxScan 3.6s ease-in-out infinite;
  }

  .project-showcase-flow span:nth-child(2) { animation-delay: 0.45s; }
  .project-showcase-flow span:nth-child(3) { animation-delay: 0.9s; }
}

@keyframes modelPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 10px rgba(143, 128, 255, 0.12); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 17px rgba(143, 128, 255, 0.04); }
}

@keyframes dataSignal {
  0%, 100% { transform: translateX(0); opacity: 0.76; }
  50% { transform: translateX(12px); opacity: 1; }
}

@keyframes kitchenGlow {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.08); filter: brightness(1.25); }
}

@keyframes kitchenRise {
  0%, 100% { transform: translateY(0); opacity: 0.78; }
  50% { transform: translateY(-8px); opacity: 1; }
}

@keyframes lifeBreathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 10px rgba(42, 183, 175, 0.12); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 18px rgba(42, 183, 175, 0.03); }
}

@keyframes lifeSlide {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

@keyframes pocketCoin {
  0%, 100% { transform: rotateY(0deg) scale(1); }
  50% { transform: rotateY(180deg) scale(1.08); }
}

@keyframes budgetGlow {
  0%, 100% { opacity: 0.72; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.35); }
}

@keyframes shebaWave {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(-4deg); }
  75% { transform: translateY(-5px) rotate(4deg); }
}

@keyframes serviceFlow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(9px); }
}

@keyframes campusBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-10px) scale(1.05); }
  60% { transform: translateY(-5px) scale(1.02); }
}

@keyframes campusShift {
  0%, 100% { transform: translateX(0); opacity: 0.75; }
  50% { transform: translateX(11px); opacity: 1; }
}

@keyframes coutureShimmer {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.07); filter: brightness(1.22); }
}

@keyframes coutureLift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes asmyxSignal {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 10px rgba(24, 183, 255, 0.14); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 20px rgba(24, 183, 255, 0.03); }
}

@keyframes asmyxScan {
  0%, 100% { transform: translateX(0); opacity: 0.75; }
  50% { transform: translateX(12px); opacity: 1; }
}
.mini-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.mini-card > :not(.mini-card-bg-icon) {
  position: relative;
  z-index: 1;
}

.mini-card-bg-icon {
  position: absolute;
  right: -18px;
  bottom: -18px;
  z-index: 0;
  width: 168px;
  height: 168px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  opacity: 0.12;
  pointer-events: none;
  transform: rotate(-8deg);
}

.data-card-icon { color: var(--violet); }
.full-stack-card-icon { color: var(--teal); }
.design-card-icon { color: var(--coral); }

.mini-card:hover .mini-card-bg-icon {
  opacity: 0.2;
  transform: rotate(0deg) scale(1.04);
}
/* Portfolio final polish: stronger hierarchy with restrained visual depth. */
body {
  background:
    radial-gradient(circle at 6% 12%, rgba(42, 183, 175, 0.08), transparent 22rem),
    radial-gradient(circle at 94% 34%, rgba(143, 128, 255, 0.06), transparent 24rem),
    var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
}

.section-kicker,
.eyebrow {
  letter-spacing: 0.08em;
}

.hero-tags span {
  border-color: rgba(42, 183, 175, 0.26);
  background: rgba(20, 29, 36, 0.68);
}

.skill-card,
.mini-card {
  background: linear-gradient(145deg, rgba(24, 36, 45, 0.98), rgba(17, 26, 33, 0.98));
}

.contact-section {
  background:
    radial-gradient(circle at 12% 88%, rgba(42, 183, 175, 0.12), transparent 24rem),
    var(--paper-soft);
}

.contact-form {
  background: linear-gradient(145deg, rgba(24, 36, 45, 0.98), rgba(17, 26, 33, 0.98));
}

.button-primary {
  box-shadow: 0 12px 28px rgba(42, 183, 175, 0.2);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 18px 36px rgba(42, 183, 175, 0.34);
}

@media (prefers-reduced-motion: no-preference) {
  .availability-pill::before {
    animation: availabilityPulse 2.4s ease-in-out infinite;
  }
}

@keyframes availabilityPulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(50, 182, 122, 0.14);
  }

  50% {
    box-shadow: 0 0 0 9px rgba(50, 182, 122, 0.04);
  }
}

/* Responsive and rendering polish. */
@media (max-width: 1200px) {
  .hero h1 {
    font-size: clamp(3.8rem, 6.4vw, 4.7rem);
  }

  .hero-grid {
    gap: 44px;
  }
}

@media (max-width: 980px) {
  .hero {
    padding-block: 64px;
  }

  .hero-grid {
    gap: 44px;
  }

  .profile-panel {
    width: min(100%, 400px);
  }

  .project-visual,
  .ml-project-visual,
  .kitchen-project-visual,
  .project-showcase-visual {
    min-height: 280px;
  }
}

@media (max-width: 760px) {
  .site-header {
    background: rgba(10, 15, 20, 0.98);
    backdrop-filter: none;
  }

  .nav {
    min-height: 64px;
  }

  .nav-links {
    top: 64px;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .hero {
    padding-block: 48px 56px;
  }

  .hero-grid {
    gap: 38px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 12vw, 3.25rem);
  }

  .availability-pill {
    width: 100%;
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .eyebrow {
    line-height: 1.5;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-tags {
    gap: 8px;
    margin-top: 26px;
  }

  .hero-tags span {
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .profile-panel {
    width: min(100%, 340px);
  }

  .section-pad {
    padding-block: 56px;
    contain-intrinsic-size: auto 680px;
  }

  .skill-card,
  .mini-card,
  .education-card,
  .contact-form {
    padding: 20px;
  }

  .research-details {
    grid-template-columns: 1fr;
  }

  .project-accordion summary,
  .project-accordion-body {
    padding-inline: 16px;
  }

  .project-visual,
  .ml-project-visual,
  .kitchen-project-visual,
  .project-showcase-visual {
    min-height: 240px;
    padding: 18px;
  }

  .orbit-shell {
    max-width: 340px;
  }

  .command-toggle {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 44px;
    padding-inline: 14px;
    font-size: 0.82rem;
  }

  .command-panel {
    margin-top: max(5vh, env(safe-area-inset-top));
  }

  .command-list {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .brand {
    font-size: 0.94rem;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 12vw, 2.75rem);
  }

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

  .mode-switch {
    gap: 4px;
    padding: 4px;
  }

  .mode-chip {
    padding-inline: 5px;
    font-size: 0.74rem;
  }

  .profile-panel {
    width: min(100%, 310px);
  }

  .orbit-shell {
    max-width: 300px;
  }

  .orbit-core {
    width: 126px;
    height: 126px;
  }

  .orbit-ring li:nth-child(1) { transform: rotate(0deg) translateX(110px); }
  .orbit-ring li:nth-child(2) { transform: rotate(40deg) translateX(110px); }
  .orbit-ring li:nth-child(3) { transform: rotate(80deg) translateX(110px); }
  .orbit-ring li:nth-child(4) { transform: rotate(120deg) translateX(110px); }
  .orbit-ring li:nth-child(5) { transform: rotate(160deg) translateX(110px); }
  .orbit-ring li:nth-child(6) { transform: rotate(200deg) translateX(110px); }
  .orbit-ring li:nth-child(7) { transform: rotate(240deg) translateX(110px); }
  .orbit-ring li:nth-child(8) { transform: rotate(280deg) translateX(110px); }
  .orbit-ring li:nth-child(9) { transform: rotate(320deg) translateX(110px); }

  .section-pad {
    padding-block: 50px;
  }
}

@media (hover: none), (pointer: coarse) {
  .profile-panel:hover,
  .skill-card:hover,
  .mini-card:hover,
  .education-card:hover,
  .project-visual:hover,
  .button:hover {
    transform: none;
  }
}

.cursor-dot,
.cursor-ring {
  display: none;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.custom-cursor,
  html.custom-cursor * {
    cursor: none !important;
  }

  .cursor-dot,
  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: block;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    will-change: transform;
  }

  .cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--yellow);
    box-shadow: 0 0 14px rgba(255, 209, 102, 0.72);
    transition: opacity 80ms linear;
  }

  .cursor-ring {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(42, 183, 175, 0.78);
    background: rgba(42, 183, 175, 0.05);
    box-shadow: 0 0 24px rgba(42, 183, 175, 0.18);
    transition:
      width 110ms ease-out,
      height 110ms ease-out,
      border-color 100ms ease-out,
      background 100ms ease-out,
      opacity 80ms linear;
  }

  .cursor-dot.is-visible,
  .cursor-ring.is-visible {
    opacity: 1;
  }

  .cursor-ring.is-interactive {
    width: 40px;
    height: 40px;
    border-color: rgba(255, 209, 102, 0.9);
    background: rgba(255, 209, 102, 0.12);
  }

  .cursor-ring.is-pressed {
    width: 20px;
    height: 20px;
    background: rgba(255, 140, 105, 0.2);
    border-color: var(--coral);
  }
}
