@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}

:root {
  --font-inter: "Inter";
  --bg: #f8f8f6;
  --surface: #fff;
  --surface-alt: #f1f2ef;
  --ink: #18201b;
  --muted: #647069;
  --line: #dce0db;
  --accent: #166a59;
  --accent-strong: #0d5143;
  --accent-pale: #dff1e9;
  --shadow: 0 12px 30px rgba(24, 32, 27, 0.06);
}

.dark {
  --bg: #121311;
  --surface: #1a1c19;
  --surface-alt: #20231f;
  --ink: #f3f5ef;
  --muted: #aeb6ae;
  --line: #30352f;
  --accent: #75d4ae;
  --accent-strong: #9ae4c4;
  --accent-pale: #1c382e;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-inter), Inter, ui-sans-serif, -apple-system,
    BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.page-loader {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: loader-spin 0.7s linear infinite;
}

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

@keyframes loader-spin {
  to { transform: rotate(360deg); }
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--accent-pale);
  color: var(--ink);
}

.shell {
  width: min(100% - 40px, 1140px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 99;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
}

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

.brand {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 23px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

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

.nav-actions {
  display: flex;
  gap: 8px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.icon-button:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.icon {
  width: 18px;
  height: 18px;
}

.menu-button {
  display: none;
}

.mobile-menu {
  display: none;
}

.hero {
  min-height: 720px;
  padding: 130px 0 55px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: 1fr auto;
  column-gap: 50px;
}

.availability,
.eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 42px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: none;
}

.availability span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #39aa72;
  box-shadow: 0 0 0 4px color-mix(in srgb, #39aa72 17%, transparent);
}

.hero .eyebrow {
  margin: 0 0 15px;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(3rem, 6.2vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.072em;
  font-weight: 750;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-lead {
  max-width: 570px;
  margin: 28px 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.hero-buttons,
.contact-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 0.88rem;
  font-weight: 750;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

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

.button .icon {
  width: 16px;
}

.primary {
  background: var(--accent);
  color: white;
}

.primary:hover {
  background: var(--accent-strong);
}

.dark .primary {
  color: #10251d;
}

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

.social-links {
  display: flex;
  gap: 9px;
  margin-top: 27px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 410px;
}

.orbit {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orbit-one {
  width: min(31vw, 360px);
  aspect-ratio: 1;
}

.orbit-two {
  width: min(21vw, 248px);
  aspect-ratio: 1;
  border-style: dashed;
}

.monogram {
  display: grid;
  place-items: center;
  width: 142px;
  aspect-ratio: 1;
  border-radius: 35%;
  background: var(--accent);
  color: white;
  box-shadow: 18px 18px 0 var(--accent-pale);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.08em;
  transform: rotate(-8deg);
}

.dark .monogram {
  color: #10251d;
}

.mini-card {
  position: absolute;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow);
  font-size: 0.72rem;
  line-height: 1.35;
  font-weight: 650;
}

.mini-card .icon {
  color: var(--accent);
}

.card-code {
  top: 14%;
  right: 0;
}

.card-location {
  bottom: 14%;
  left: 0;
}

.stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 54px 0 0;
  border-top: 1px solid var(--line);
}

.stats div {
  padding: 20px 12px 0 0;
}

.stats div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.stats dt {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.section {
  padding: 105px 0;
  scroll-margin-top: 70px;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 42px;
}

.section-heading .eyebrow {
  margin: 0 0 13px;
}

.section-heading h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2.15rem, 4.5vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.065em;
}

.section-intro {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: -10px 0 28px;
}

.project-filters button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  transition: border-color 0.2s ease, background 0.2s ease,
    color 0.2s ease, transform 0.2s ease;
}

.project-filters button:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  color: var(--accent);
  transform: translateY(-1px);
}

.project-filters button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 7px 16px color-mix(in srgb, var(--accent) 20%, transparent);
}

.project-card,
.skill-card,
.education-card,
.experience-card,
.contact-form {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(24, 32, 27, 0.11);
}

.project-image,
.project-showcase {
  position: relative;
  height: 245px;
  background: var(--surface-alt);
}

.project-image img {
  object-fit: cover;
}

.project-showcase {
  isolation: isolate;
  display: grid;
  place-items: center;
  height: 330px;
  overflow: hidden;
  background: radial-gradient(
      circle at 72% 18%,
      color-mix(in srgb, var(--accent) 22%, transparent),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      var(--surface-alt),
      color-mix(in srgb, var(--accent-pale) 64%, var(--surface))
    );
}

.project-showcase::before {
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 50%;
  content: "";
}

.macbook {
  position: relative;
  z-index: 1;
  width: 84%;
  padding-bottom: 13px;
  filter: drop-shadow(0 22px 20px rgb(0 0 0 / 24%));
  transform: perspective(1000px) rotateX(1.5deg);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.macbook-display {
  position: relative;
  padding: 9px 9px 12px;
  border: 1px solid #424348;
  border-radius: 13px 13px 5px 5px;
  background: linear-gradient(145deg, #27282c, #0d0e10);
}

.macbook-screen {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: #0d0e10;
}

.macbook-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.macbook-camera {
  position: absolute;
  z-index: 2;
  top: 3px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #3b4851;
  box-shadow: 0 0 0 1px #050505;
}

.macbook-base {
  position: absolute;
  top: calc(100% - 14px);
  left: -6%;
  width: 112%;
  height: 13px;
  border-radius: 2px 2px 13px 13px;
  background: linear-gradient(180deg, #e6e7e9 0%, #a4a5aa 52%, #77787d 100%);
  box-shadow: inset 0 1px 0 #fff;
}

.macbook-base span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 16%;
  height: 4px;
  border-radius: 0 0 5px 5px;
  background: #8b8c91;
  transform: translateX(-50%);
}

.project-body {
  padding: 24px;
}

.project-meta,
.experience-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.75rem;
}

.project-meta span:first-child {
  color: var(--accent);
  font-weight: 700;
}

.project-body h3,
.skill-card h3,
.education-card h3,
.experience-card h3 {
  margin: 13px 0 9px;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.project-body p,
.education-card > p,
.contact-copy > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.9rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.tags span {
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
}

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

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 9px;
  background: var(--accent-pale);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 750;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.project-links a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.project-links .icon {
  width: 15px;
}

.skills-section {
  border-block: 1px solid var(--line);
  max-width: none;
  width: 100%;
  padding-inline: max(20px, calc((100% - 1140px) / 2));
  background: var(--surface-alt);
}

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

.skill-card {
  padding: 22px;
  box-shadow: none;
}

.skill-card h3 {
  margin-top: 0;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 150px;
  width: 1px;
  background: var(--line);
}

.experience-item {
  position: relative;
  display: grid;
  grid-template-columns: 130px 40px 1fr;
  gap: 0;
  padding-bottom: 22px;
}

.timeline-date {
  padding-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.timeline-dot {
  z-index: 1;
  width: 13px;
  height: 13px;
  margin: 5px 0 0 14px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
}

.experience-card {
  padding: 26px;
  box-shadow: none;
}

.experience-heading p {
  margin: 0;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 650;
}

.experience-heading > span {
  height: fit-content;
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--accent-pale);
  color: var(--accent);
  font-weight: 700;
}

.experience-summary {
  margin: 17px 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

.experience-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.55;
}

.education-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.education-card {
  max-width: 650px;
  padding: 30px;
}

.education-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: var(--accent-pale);
  color: var(--accent);
}

.education-card .eyebrow {
  margin: 22px 0 0;
}

.education-card .institution {
  margin-bottom: 14px;
  color: var(--accent);
  font-weight: 700;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  padding-bottom: 120px;
}

.contact-copy {
  padding-top: 8px;
}

.contact-copy .eyebrow {
  margin: 0 0 13px;
}

.contact-copy > p {
  margin-top: 21px;
  font-size: 1rem;
}

.contact-details {
  display: grid;
  gap: 13px;
  margin: 27px 0;
}

.contact-details a,
.contact-details span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-details .icon {
  width: 16px;
  color: var(--accent);
}

.contact-form {
  display: grid;
  gap: 17px;
  padding: 28px;
  box-shadow: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: var(--bg);
  color: var(--ink);
  padding: 11px 12px;
  font-weight: 400;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.contact-form .button {
  justify-self: start;
}

.form-note,
.form-error {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.form-error {
  color: #be3f35;
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0;
}

.footer p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.footer .social-links {
  margin: 0;
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.back-top .icon {
  width: 16px;
}

.footer-bottom {
  padding: 17px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

.not-found {
  display: grid;
  place-content: center;
  min-height: 80vh;
  text-align: center;
}

.not-found h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.06em;
}

.not-found p {
  color: var(--muted);
}

.not-found .button {
  justify-self: center;
  margin-top: 20px;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 32px, 1140px);
  }

  .nav {
    min-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .menu-button {
    display: inline-grid;
  }

  .mobile-menu {
    display: grid;
    gap: 3px;
    padding-bottom: 14px;
  }

  .mobile-menu a {
    padding: 11px 6px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 650;
  }

  .hero {
    min-height: auto;
    display: block;
    padding-top: 82px;
  }

  .availability {
    margin-bottom: 35px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.2rem);
  }

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

  .hero-visual {
    min-height: 330px;
    margin-top: 28px;
  }

  .orbit-one {
    width: 290px;
  }

  .orbit-two {
    width: 195px;
  }

  .card-code {
    right: 0;
  }

  .card-location {
    left: 0;
  }

  .stats {
    margin-top: 26px;
  }

  .stats div + div {
    padding-left: 12px;
  }

  .stats dt {
    font-size: 1.35rem;
  }

  .section {
    padding: 75px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

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

  .project-image {
    height: 220px;
  }

  .timeline::before {
    left: 6px;
  }

  .experience-item {
    grid-template-columns: 25px 1fr;
  }

  .timeline-date {
    grid-column: 2;
    grid-row: 1;
    padding-bottom: 8px;
  }

  .timeline-dot {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-left: 0;
  }

  .experience-card {
    grid-column: 2;
    grid-row: 2;
    padding: 21px;
  }

  .contact-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 38px;
    padding-bottom: 75px;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .footer .social-links {
    grid-row: 2;
  }

  .back-top {
    grid-row: 2;
    justify-self: end;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

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

/* PHP renders the mobile menu persistently and toggles this state class. */
@media (max-width: 760px) {
  .mobile-menu { display: none; }
  .mobile-menu.is-open { display: grid; }
}

.education-card-enhanced {
  display: flex;
  flex-direction: column;
}

.education-detail {
  margin-top: auto;
}

.skill-orbit {
  display: none;
}

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

.skill-card-enhanced {
  min-height: 245px;
  padding: 27px;
  background: var(--surface);
}

.skill-card-enhanced::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #78bcff);
  content: "";
  opacity: 0.9;
}

.skill-card-enhanced h3 {
  margin: 20px 0 0;
  font-size: 1.5rem;
}

.skill-summary {
  max-width: 38ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.55;
}

.skill-card-enhanced .tags {
  margin-top: 20px;
}

.skill-card-enhanced .tags span {
  padding: 7px 10px;
  border-radius: 9px;
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 0.72rem;
}

.skill-card-enhanced:hover .tags span {
  color: var(--ink);
}

.skill-card-enhanced:hover .tags span:hover {
  color: #fff;
}

@media (max-width: 760px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .article {
    padding-top: 58px;
  }
  .article header {
    padding: 27px;
    border-radius: 20px;
  }
  .article-content {
    margin-top: 34px;
    font-size: 1rem;
  }
  .article-content p:first-child {
    font-size: 1.16rem;
  }
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  transition: color 0.22s ease;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a.active {
  color: var(--ink);
}

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

.mobile-menu a.active {
  border-radius: 9px;
  background: var(--accent-pale);
  color: var(--accent);
}

.page-transition {
  animation: page-enter 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

.footer-name {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.footer-inner {
  grid-template-columns: 1fr auto;
}

.experience-identity {
  display: grid;
  gap: 5px;
}

.experience-heading .experience-company {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 6px;
  margin: 0;
  color: var(--accent);
  font-size: 1.03rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  transition: color 0.2s ease;
}

.experience-heading a.experience-company:hover {
  color: var(--accent-strong);
}

.experience-heading .experience-company .icon {
  width: 14px;
  height: 14px;
}

.experience-heading .experience-role {
  margin: 0;
  font-size: 1.22rem;
}

.experience-card {
  border-left: 3px solid color-mix(in srgb, var(--accent) 58%, transparent);
}

.experience-item:hover .timeline-dot {
  transform: scale(1.35);
  box-shadow: 0 0 0 6px var(--accent-pale);
}

.timeline-dot {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.education-detail {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-pale) 35%, var(--surface));
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.education-detail-label {
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skill-card-enhanced {
  overflow: hidden;
}

.skill-card-enhanced .tags span {
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.skill-card-enhanced .tags span:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.skill-card-enhanced .tags span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.skill-heading-row {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.skill-card-enhanced {
  min-height: 225px;
  background: var(--surface);
}

.skill-card-enhanced::before {
  background: linear-gradient(90deg, var(--accent), #78bcff);
}

@media (max-width: 760px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer .social-links {
    grid-row: auto;
  }

  .experience-card {
    border-left-width: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-transition,
  .skill-card-enhanced:hover .skill-orbit,
  .skill-card-enhanced:hover .skill-orbit i {
    animation: none !important;
  }
}

/* Portfolio-specific visual system and interaction states. */
:root {
  --bg: #f5f5f7;
  --surface: #fff;
  --surface-alt: #f0f1f3;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-strong: #0077ed;
  --accent-pale: #e8f3ff;
  --shadow: 0 10px 28px rgb(0 0 0 / 6%);
}

.dark {
  --bg: #000;
  --surface: #1d1d1f;
  --surface-alt: #2c2c2e;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --line: #424245;
  --accent: #2997ff;
  --accent-strong: #64b5ff;
  --accent-pale: #0b3456;
}

.nav-actions {
  align-items: center;
}

.nav-cv,
.cv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.nav-cv {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  border-radius: 9px;
  background: var(--accent-pale);
  color: var(--accent);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--accent) 10%, transparent);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-cv:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 7px 14px color-mix(in srgb, var(--accent) 18%, transparent);
}

.nav-cv .icon,
.cv-button .icon {
  width: 16px;
  height: 16px;
}

.cv-button {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  background: var(--accent-pale);
  color: var(--accent);
}

.cv-button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.brand-code {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(0.78rem, 1.35vw, 1.02rem);
  font-weight: 750;
  letter-spacing: -0.07em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.brand-code:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.brand-code .brand-angle,
.brand-code .brand-slash {
  color: var(--accent);
  letter-spacing: -0.1em;
}

.hero {
  min-height: calc(100vh - 70px);
  padding-top: 76px;
  padding-bottom: 42px;
}

.section {
  min-height: calc(100vh - 176px);
  padding-top: 76px;
}

.hero-copy {
  animation: hero-enter 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-visual {
  animation: hero-enter 0.9s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.orbit-one {
  animation: orbit-breathe 4s ease-in-out infinite;
}

.orbit-two {
  animation: orbit-breathe 4s 0.4s ease-in-out infinite reverse;
}

.monogram {
  animation: float 3.6s ease-in-out infinite;
}

.skills-grid {
  grid-template-columns: repeat(3, 1fr);
}

.skill-card-enhanced {
  position: relative;
  min-height: 205px;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(
    145deg,
    var(--surface),
    color-mix(in srgb, var(--accent-pale) 45%, var(--surface))
  );
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.28s ease, border-color 0.28s ease;
}

.skill-card-enhanced:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-7px) scale(1.01);
  box-shadow: 0 18px 36px color-mix(in srgb, var(--accent) 13%, transparent);
}

.skill-card-top,
.education-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.skill-index {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 800;
}

.skill-count,
.degree-level,
.completed-label {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--accent-pale);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 750;
}

.skill-card-enhanced h3 {
  margin-top: 24px;
  font-size: 1.35rem;
}

.skill-card-enhanced .tags {
  margin-top: 16px;
}

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

.education-card-enhanced {
  position: relative;
  max-width: none;
  min-height: 310px;
  padding: 28px;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.28s ease;
}

.education-card-enhanced:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px color-mix(in srgb, var(--accent) 12%, transparent);
}

.education-card-enhanced .eyebrow {
  margin-top: 25px;
}

.education-progress {
  width: 100%;
  height: 5px;
  overflow: hidden;
  margin-top: 28px;
  border-radius: 99px;
  background: var(--surface-alt);
}

.education-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #63b3ff);
  transform-origin: left;
  animation: load-progress 0.8s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.completed-label {
  display: inline-block;
  margin-top: 10px;
  color: var(--muted);
  background: var(--surface-alt);
}


.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-actions .button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-success {
  margin: 0;
  color: #16864b;
  font-size: 0.8rem;
  font-weight: 650;
}

.dark .form-success {
  color: #65d891;
}

.reveal {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(52px) scale(0.96);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--reveal-order, 0) * 85ms);
  will-change: opacity, filter, transform;
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.project-card.reveal:nth-of-type(2),
.skill-card.reveal:nth-of-type(2),
.experience-item.reveal:nth-of-type(2) {
  transition-delay: 0.1s;
}

.project-card.reveal:nth-of-type(3),
.skill-card.reveal:nth-of-type(3),
.experience-item.reveal:nth-of-type(3) {
  transition-delay: 0.2s;
}

.mobile-menu {
  transform-origin: top;
  animation: menu-in 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mobile-menu a {
  animation: menu-link 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mobile-menu a:nth-child(2) {
  animation-delay: 0.04s;
}

.mobile-menu a:nth-child(3) {
  animation-delay: 0.08s;
}

.mobile-menu a:nth-child(4) {
  animation-delay: 0.12s;
}

.mobile-menu a:nth-child(5) {
  animation-delay: 0.16s;
}

.mobile-menu a:nth-child(6) {
  animation-delay: 0.2s;
}

.mobile-menu a:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

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

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-14px) scaleY(0.94);
  }

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

@keyframes menu-link {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }

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

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

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

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

  50% {
    transform: scale(1.06);
    opacity: 0.55;
  }
}

@keyframes load-progress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

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

  .hero,
  .section {
    min-height: auto;
    padding-top: 58px;
  }

  .hero {
    padding-bottom: 35px;
  }

  .skills-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .skill-card-enhanced {
    min-height: auto;
  }

  .project-showcase {
    height: 225px;
  }

  .macbook {
    width: 90%;
  }

  .form-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-visual,
  .orbit-one,
  .orbit-two,
  .monogram,
  .reveal,
  .mobile-menu,
  .mobile-menu a,
  .education-progress span {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}
