:root {
  --bg: #0b0c10;
  --surface: #11131a;
  --surface-2: #161923;
  --line: #282b37;
  --text: #f0f0f4;
  --muted: #969aa9;
  --blue: #6d8cff;
  --purple: #a978ff;
  --cyan: #7ee7e7;
  --pink: #ff86b7;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
}
body:after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  z-index: 20;
}
.container {
  width: min(1180px, calc(100% - 80px));
  margin-inline: auto;
}
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  display: grid;
  place-items: center;
  transition:
    opacity 0.5s,
    visibility 0.5s;
}
.loader span {
  width: 36px;
  height: 36px;
  border: 2px solid var(--line);
  border-top-color: var(--blue);
  border-right-color: var(--purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.loader.done {
  opacity: 0;
  visibility: hidden;
}
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  z-index: 50;
}
.mouse-glow {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(102, 122, 255, 0.1),
    transparent 70%
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 30;
  background: rgba(11, 12, 16, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.brand span {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid #464b68;
  border-radius: 50%;
  font: 500 10px var(--mono);
  color: var(--cyan);
}
.brand strong {
  font-size: 13px;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav-links a,
.nav-cta,
.footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.25s;
}
.nav-links a:hover,
.nav-links a.active,
.footer a:hover {
  color: var(--text);
}
.nav-links a.active {
  position: relative;
}
.nav-links a.active:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -31px;
  height: 2px;
  background: var(--blue);
}
.nav-cta {
  border: 1px solid var(--line);
  padding: 11px 15px;
  border-radius: 3px;
  color: var(--text);
}
.nav-cta span,
.button span,
.text-link span,
.project-links span {
  color: var(--cyan);
  margin-left: 8px;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
}
.hero {
  min-height: 750px;
  padding-top: 185px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  align-items: center;
  gap: 50px;
}
.eyebrow {
  font: 500 11px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #72e7ac;
  box-shadow: 0 0 12px #72e7ac;
  margin-right: 8px;
}
.hero h1 {
  font-size: clamp(3rem, 6vw, 5.7rem);
  line-height: 1.04;
  letter-spacing: -0.07em;
  font-weight: 700;
}
.hero h1 em,
.section-heading h2 em,
.contact-copy h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--purple);
}
.hero-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin: 28px 0 34px;
}
.hero-text strong {
  color: var(--text);
  font-weight: 600;
}
.hero-text span {
  color: var(--cyan);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 3px;
  border: 1px solid transparent;
  text-decoration: none;
  font: 600 12px var(--sans);
  cursor: pointer;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    background 0.25s;
}
.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(42, 40, 108, 0.28);
}
.button-primary {
  background: linear-gradient(105deg, var(--blue), #866bff);
  color: white;
}
.button-ghost {
  border-color: var(--line);
  color: var(--text);
}
.social-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 70px;
  font: 500 11px var(--mono);
  color: var(--muted);
}
.social-row a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.social-row a:hover {
  color: var(--cyan);
}
.social-row .line {
  width: 50px;
  height: 1px;
  background: var(--line);
}
.social-row .mono {
  font-size: 10px;
}
.hero-art {
  height: 470px;
  position: relative;
  display: grid;
  place-items: center;
}
.art-orbit {
  position: absolute;
  border: 1px solid rgba(122, 139, 255, 0.18);
  border-radius: 50%;
  transform: rotate(-25deg);
}
.orbit-one {
  width: 390px;
  height: 230px;
}
.orbit-two {
  width: 470px;
  height: 300px;
  transform: rotate(34deg);
}
.art-card {
  position: relative;
  width: min(430px, 100%);
  background: rgba(22, 25, 35, 0.9);
  border: 1px solid #34394f;
  border-radius: 8px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(95, 100, 255, 0.12);
  transform: rotate(-5deg);
  z-index: 2;
}
.window-bar {
  height: 43px;
  border-bottom: 1px solid #2b2e3c;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 17px;
}
.window-bar span {
  width: 7px;
  height: 7px;
  background: #464b5e;
  border-radius: 50%;
}
.window-bar small {
  font: 10px var(--mono);
  color: #686d80;
  margin: auto;
}
.code-line {
  font: 13px var(--mono);
  line-height: 2.5;
  color: #e5e5e9;
  padding-left: 22px;
}
.code-line b {
  display: inline-block;
  width: 28px;
  color: #454a5d;
  font-weight: 400;
}
.code-line.indent {
  padding-left: 70px;
}
.pink {
  color: var(--pink);
}
.blue {
  color: #83a5ff;
}
.yellow {
  color: #ffd37e;
}
.green {
  color: #8ee4ad;
}
.orange {
  color: #ffad7a;
}
.cursor {
  display: inline-block;
  width: 7px;
  height: 16px;
  background: var(--cyan);
  vertical-align: middle;
  margin-left: 5px;
  animation: blink 1s infinite;
}
.floating-chip {
  position: absolute;
  background: rgba(24, 27, 38, 0.9);
  border: 1px solid var(--line);
  padding: 12px 15px;
  border-radius: 5px;
  font: 10px var(--mono);
  z-index: 3;
  box-shadow: 0 14px 30px #050507;
}
.floating-chip:first-letter {
  color: var(--cyan);
}
.floating-chip span {
  color: var(--muted);
  margin-left: 7px;
}
.chip-top {
  top: 50px;
  right: 1%;
}
.chip-bottom {
  bottom: 54px;
  left: 3%;
}
.art-badge {
  position: absolute;
  right: 8%;
  bottom: 34px;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #7a8cff, #ab79ff);
  font: 700 18px var(--sans);
  z-index: 3;
  box-shadow: 0 0 0 8px rgba(123, 136, 255, 0.08);
}
.art-badge span {
  font-size: 12px;
  color: var(--cyan);
  margin-left: 3px;
}
.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 0;
  color: var(--muted);
  font: 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-scroll span {
  display: inline-block;
  width: 1px;
  height: 29px;
  background: var(--blue);
  vertical-align: middle;
  margin-right: 14px;
}
.section {
  padding: 140px 0;
}
.section-heading {
  margin-bottom: 60px;
}
.section-heading h2,
.contact-copy h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.07em;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 15%;
  padding-left: 15%;
}
.large-copy {
  font-size: 25px;
  line-height: 1.4;
  color: var(--text);
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.about-lede > p:not(.large-copy),
.about-body > p,
.contact-copy > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}
.text-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.stat-grid {
  display: flex;
  gap: 42px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 24px;
}
.stat-grid div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.stat-grid strong {
  font-size: 29px;
  letter-spacing: -0.06em;
}
.stat-grid strong:after {
  content: "+";
  color: var(--purple);
  font-size: 17px;
  margin-left: 2px;
}
.stat-grid div:last-child strong:after {
  content: "";
}
.stat-grid span,
.edu-meta small {
  font: 10px var(--mono);
  color: var(--muted);
}
.skills-section {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(25, 28, 48, 0.42),
    transparent
  );
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.skill-card {
  min-height: 310px;
  padding: 25px 22px;
  background: rgba(17, 19, 26, 0.78);
  border: 1px solid var(--line);
  transition:
    transform 0.3s,
    border-color 0.3s,
    background 0.3s;
}
.skill-card:hover {
  transform: translateY(-8px);
  border-color: #535a87;
  background: #151824;
}
.skill-icon {
  color: var(--cyan);
  font: 18px var(--mono);
  height: 52px;
}
.skill-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.skill-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  min-height: 42px;
}
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 21px;
}
.skill-list span,
.tags span {
  font: 10px var(--mono);
  border: 1px solid var(--line);
  color: #b1b5c3;
  padding: 6px 8px;
  border-radius: 2px;
}
.progress {
  height: 2px;
  background: var(--line);
  margin-top: 30px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  width: var(--progress);
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.skill-card.visible .progress span {
  transform: scaleX(1);
}
.project-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.heading-note {
  width: 260px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 5px;
}
.projects-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  transition:
    transform 0.35s,
    border-color 0.35s;
  overflow: hidden;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: #58618e;
}
.project-visual {
  height: 285px;
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: #181a25;
}
.project-visual > strong {
  position: absolute;
  bottom: 18px;
  left: 24px;
  font-size: 37px;
  line-height: 0.88;
  letter-spacing: -0.08em;
  color: #fff;
}
.visual-label {
  font: 10px var(--mono);
  color: var(--cyan);
}
.visual-basecampy {
  background:
    radial-gradient(circle at 75% 30%, #667aff 0, transparent 33%),
    linear-gradient(140deg, #1e243b, #15161e 60%);
}
.visual-url {
  background:
    radial-gradient(circle at 35% 35%, #ad7dff 0, transparent 27%),
    linear-gradient(140deg, #1b1c32, #16151e 60%);
}
.visual-window {
  position: absolute;
  top: 59px;
  right: 39px;
  width: 51%;
  padding: 12px;
  background: rgba(10, 11, 17, 0.78);
  border: 1px solid #596291;
  border-radius: 5px;
  transform: rotate(7deg);
  box-shadow: 0 20px 40px #080910;
}
.mini-bar {
  font: 8px var(--mono);
  color: #949cff;
  border-bottom: 1px solid #363b56;
  padding-bottom: 10px;
}
.mini-bar i {
  float: right;
}
.mini-kanban {
  display: flex;
  gap: 5px;
  margin: 14px 0;
}
.mini-kanban span {
  width: 33%;
  height: 45px;
  border: 1px solid #454c72;
  border-radius: 2px;
  background: linear-gradient(#30375e 30%, #20243b 30%);
}
.mini-lines i {
  display: block;
  width: 70%;
  height: 4px;
  background: #454c72;
  margin: 6px 0;
}
.mini-lines i:nth-child(2) {
  width: 50%;
}
.url-graphic {
  position: absolute;
  top: 90px;
  left: 39px;
  padding: 18px 20px;
  background: rgba(12, 13, 20, 0.8);
  border: 1px solid #655d91;
  border-radius: 5px;
  transform: rotate(-6deg);
  font: 11px var(--mono);
  color: var(--muted);
  box-shadow: 0 20px 40px #080910;
}
.url-graphic strong {
  color: #fff;
}
.url-graphic b {
  color: var(--cyan);
  font-weight: 400;
}
.url-graphic i {
  font-style: normal;
  color: var(--purple);
  margin-left: 17px;
}
.project-info {
  padding: 27px;
}
.project-type {
  font: 10px var(--mono);
  text-transform: uppercase;
  color: var(--cyan);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.project-top h3 {
  font-size: 27px;
  letter-spacing: -0.05em;
}
.project-info > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  margin: 18px 0;
}
.feature-list {
  list-style: none;
  color: #bcc0cc;
  font-size: 12px;
  line-height: 2.1;
  margin-bottom: 18px;
}
.feature-list li:before {
  content: "↳";
  color: var(--purple);
  margin-right: 9px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-links {
  display: flex;
  gap: 22px;
  margin-top: 30px;
}
.project-links a {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.timeline {
  border-top: 1px solid var(--line);
  margin-top: 80px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 38px;
  padding: 45px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-marker {
  color: var(--cyan);
  font: 11px var(--mono);
}
.timeline-content h3 {
  font-size: 28px;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.timeline-content > p:not(.project-type) {
  color: var(--muted);
  font-size: 14px;
}
.muted {
  color: #525767;
  margin: 0 7px;
}
.edu-meta {
  display: flex;
  gap: 70px;
  margin-top: 35px;
}
.edu-meta span {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.edu-meta strong {
  font-size: 15px;
}
.contact-section {
  padding-bottom: 150px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 15%;
  border-top: 1px solid var(--line);
  padding-top: 80px;
}
.contact-copy > p:not(.eyebrow) {
  max-width: 390px;
  margin: 28px 0;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 38px;
}
.contact-details a {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
}
.contact-details small {
  display: block;
  color: var(--muted);
  font: 10px var(--mono);
  margin-bottom: 5px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 23px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font: 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.contact-form input,
.contact-form textarea {
  font: 14px var(--sans);
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  outline: 0;
  resize: vertical;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #535766;
}
.contact-form .button {
  align-self: flex-start;
  margin-top: 10px;
}
.form-note {
  font-size: 12px;
  color: var(--cyan);
}
.footer {
  border-top: 1px solid var(--line);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer p {
  color: var(--muted);
  font-size: 11px;
}
.heart {
  color: var(--pink);
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.back-top {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  color: var(--cyan) !important;
}
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay {
  transition-delay: 0.12s;
}
.reveal-delay-2 {
  transition-delay: 0.24s;
}
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.65;
  z-index: -1;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@keyframes float {
  50% {
    transform: translateY(-9px);
  }
}
.floating-chip {
  animation: float 5s ease-in-out infinite;
}
.chip-bottom {
  animation-delay: -2s;
}
@media (max-width: 900px) {
  .container {
    width: min(100% - 44px, 680px);
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    padding: 22px;
    background: rgba(11, 12, 16, 0.96);
    flex-direction: column;
    gap: 22px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a.active:after {
    display: none;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .menu-toggle i {
    display: block;
    width: 23px;
    height: 1px;
    background: var(--text);
  }
  .nav-cta {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 145px;
    min-height: 1000px;
  }
  .hero-art {
    margin-top: -10px;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 55px;
    padding-left: 0;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-feature {
    grid-row: auto;
  }
  .contact-grid {
    gap: 70px;
  }
}
@media (max-width: 560px) {
  .container {
    width: calc(100% - 36px);
  }
  .brand strong {
    font-size: 12px;
  }
  .hero h1 {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }
  .desktop-break {
    display: none;
  }
  .hero-text {
    font-size: 14px;
  }
  .hero-art {
    height: 370px;
  }
  .art-card {
    transform: rotate(-4deg) scale(0.84);
  }
  .orbit-one {
    width: 300px;
    height: 190px;
  }
  .orbit-two {
    width: 350px;
    height: 230px;
  }
  .chip-top {
    right: -3%;
    top: 29px;
  }
  .chip-bottom {
    left: -2%;
    bottom: 28px;
  }
  .floating-chip {
    font-size: 9px;
    padding: 9px;
  }
  .art-badge {
    right: 3%;
    bottom: 17px;
  }
  .hero-scroll {
    bottom: 4px;
  }
  .section {
    padding: 95px 0;
  }
  .section-heading {
    margin-bottom: 40px;
  }
  .section-heading h2,
  .contact-copy h2 {
    font-size: clamp(2.45rem, 13vw, 3.4rem);
  }
  .large-copy {
    font-size: 21px;
  }
  .stat-grid {
    gap: 18px;
    justify-content: space-between;
  }
  .stat-grid strong {
    font-size: 24px;
  }
  .stat-grid span {
    font-size: 9px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .skill-card {
    min-height: 0;
  }
  .project-heading {
    display: block;
  }
  .heading-note {
    margin-top: 25px;
  }
  .project-visual {
    height: 245px;
  }
  .project-visual > strong {
    font-size: 32px;
  }
  .visual-window {
    right: 18px;
  }
  .url-graphic {
    left: 22px;
  }
  .timeline-item {
    grid-template-columns: 45px 1fr;
    gap: 14px;
  }
  .timeline-content h3 {
    font-size: 21px;
  }
  .edu-meta {
    gap: 28px;
    flex-wrap: wrap;
  }
  .footer {
    padding: 30px 0;
    flex-wrap: wrap;
  }
  .footer p {
    order: 3;
    width: 100%;
  }
  .footer-right {
    margin-left: auto;
  }
}
/* A calmer editorial direction: less glow, stronger type, simpler surfaces. */
:root {
  --bg: #11110f;
  --surface: #171714;
  --surface-2: #1c1c18;
  --line: #34342d;
  --text: #f2f0e8;
  --muted: #9c9c91;
  --blue: #9cafee;
  --purple: #d6c1a6;
  --cyan: #d7ef86;
  --pink: #e6a4a4;
  --sans: "IBM Plex Sans", sans-serif;
}
body {
  background: var(--bg);
  letter-spacing: -0.01em;
}
body:after {
  opacity: 0.06;
}
.mouse-glow {
  background: radial-gradient(
    circle,
    rgba(215, 239, 134, 0.045),
    transparent 68%
  );
}
#particles {
  opacity: 0.18;
}
.site-header {
  background: rgba(17, 17, 15, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nav {
  height: 76px;
}
.brand span {
  border-color: #68685d;
  color: var(--cyan);
  border-radius: 2px;
}
.brand strong {
  font-weight: 600;
  letter-spacing: 0;
}
.nav-links {
  gap: 28px;
}
.nav-links a.active:after {
  background: var(--cyan);
  height: 1px;
  bottom: -29px;
}
.nav-cta {
  border-radius: 2px;
  padding: 10px 14px;
}
.hero {
  min-height: 780px;
  padding-top: 164px;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: start;
}
.hero-copy {
  padding-top: 36px;
}
.eyebrow {
  color: var(--cyan);
  font-size: 10px;
}
.hero h1 {
  font-size: clamp(3.2rem, 6vw, 5.35rem);
  letter-spacing: -0.075em;
  line-height: 0.99;
}
.hero h1 em,
.section-heading h2 em,
.contact-copy h2 em {
  font-family: "Instrument Serif", Georgia, serif;
  color: var(--purple);
  letter-spacing: -0.035em;
}
.hero-text {
  max-width: 530px;
  font-size: 15px;
  margin: 30px 0;
}
.hero-actions .button {
  border-radius: 2px;
}
.button-primary {
  background: var(--cyan);
  color: #181912;
}
.button-primary span {
  color: #283016;
}
.button:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.button-ghost {
  border-color: #55554b;
}
.social-row {
  margin-top: 58px;
}
.hero-art {
  height: 445px;
  margin-top: 22px;
}
.art-orbit {
  border-color: rgba(215, 239, 134, 0.13);
}
.orbit-one {
  width: 345px;
  height: 250px;
}
.orbit-two {
  width: 410px;
  height: 300px;
}
.art-card {
  border-radius: 2px;
  background: #1a1a16;
  border-color: #54544a;
  box-shadow: 15px 20px 0 rgba(0, 0, 0, 0.16);
  transform: rotate(3deg);
}
.window-bar {
  border-color: #37372f;
}
.window-bar span {
  border-radius: 1px;
}
.code-line {
  line-height: 2.4;
}
.floating-chip {
  border-radius: 2px;
  background: #22221c;
  box-shadow: 6px 8px 0 rgba(0, 0, 0, 0.18);
  animation: none;
}
.chip-top {
  top: 55px;
  right: 0;
}
.chip-bottom {
  bottom: 50px;
  left: 0;
}
.art-badge {
  border-radius: 2px;
  background: var(--purple);
  color: #201d19;
  box-shadow: 6px 8px 0 rgba(0, 0, 0, 0.2);
}
.art-badge span {
  color: #353026;
}
.hero-scroll {
  color: #73736a;
}
.hero-scroll span {
  background: var(--cyan);
}
.section {
  padding: 125px 0;
}
.section-heading {
  margin-bottom: 55px;
}
.section-heading h2,
.contact-copy h2 {
  font-size: clamp(2.8rem, 5vw, 4.3rem);
  letter-spacing: -0.075em;
}
.about-grid {
  border-top: 1px solid var(--line);
  padding: 42px 0 0 14%;
  gap: 15%;
}
.large-copy {
  font-size: 24px;
}
.text-link {
  border-color: #626256;
}
.stat-grid {
  margin-top: 44px;
}
.stat-grid strong {
  font-weight: 500;
}
.skills-section {
  background: #151512;
  border-block: 1px solid var(--line);
}
.skills-grid {
  gap: 0;
  border: 1px solid var(--line);
}
.skill-card {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  min-height: 300px;
}
.skill-card:last-child {
  border-right: 0;
}
.skill-card:hover {
  background: #1b1b17;
  border-color: var(--line);
  transform: none;
}
.skill-icon {
  color: var(--cyan);
}
.skill-list span,
.tags span {
  border-radius: 1px;
  border-color: #46463d;
}
.progress {
  margin-top: 28px;
}
.progress span {
  background: var(--cyan);
}
.project-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
}
.projects-grid {
  gap: 0;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.project-card {
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.project-card:hover {
  border-color: var(--line);
  transform: none;
}
.project-visual {
  border-bottom: 1px solid var(--line);
  background: #20201a;
}
.visual-basecampy {
  background: linear-gradient(135deg, #272c24, #191a16);
}
.visual-url {
  background: linear-gradient(135deg, #252522, #1a1916);
}
.visual-window {
  border-color: #71775b;
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.2);
}
.url-graphic {
  border-color: #786d5f;
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.2);
}
.project-visual > strong {
  font-weight: 600;
}
.project-info {
  padding: 27px 26px 30px;
}
.feature-list li:before {
  color: var(--cyan);
}
.project-links a {
  font-weight: 600;
}
.timeline {
  margin-top: 70px;
}
.timeline-item {
  border-bottom: 1px solid var(--line);
}
.timeline-marker {
  color: var(--cyan);
}
.contact-grid {
  border-top: 1px solid var(--line);
  padding-top: 75px;
}
.contact-form input,
.contact-form textarea {
  border-color: #4a4a40;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
}
.footer {
  border-color: var(--line);
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 970px;
  }
  .hero-art {
    margin-top: 0;
  }
  .about-grid {
    padding-left: 0;
  }
  .skills-grid {
    border: 1px solid var(--line);
  }
  .skill-card:nth-child(2) {
    border-right: 0;
  }
  .skill-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 560px) {
  .hero {
    min-height: 900px;
  }
  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }
  .hero-art {
    height: 360px;
  }
  .art-card {
    transform: rotate(3deg) scale(0.84);
  }
  .section {
    padding: 90px 0;
  }
  .skills-grid {
    display: block;
  }
  .skill-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .skill-card:last-child {
    border-bottom: 0;
  }
  .project-info {
    padding: 24px 20px 28px;
  }
}
/* Premium navigation system */
:root {
  --page-bg: #0b0f19;
  --nav-bg: rgba(15, 15, 25, 0.65);
  --nav-border: rgba(143, 126, 255, 0.36);
  --nav-text: #fff;
  --nav-muted: #9ca3b8;
  --nav-accent: #6c63ff;
  --nav-blue: #3b82f6;
}
body {
  background: var(--page-bg);
  color: var(--nav-text);
  transition:
    background 0.3s,
    color 0.3s;
}
.site-header {
  position: sticky;
  top: 18px;
  width: min(1300px, calc(100% - 36px));
  margin: 0 auto;
  z-index: 30;
  border: 1px solid transparent;
  border-radius: 20px;
  background:
    linear-gradient(var(--nav-bg), var(--nav-bg)) padding-box,
    linear-gradient(
        110deg,
        rgba(59, 130, 246, 0.65),
        rgba(108, 99, 255, 0.12),
        rgba(167, 139, 250, 0.5)
      )
      border-box;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px);
  animation: navDrop 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.nav {
  width: 100%;
  max-width: none;
  height: 80px;
  padding: 0 23px;
  gap: 20px;
}
.nav-brand {
  gap: 12px;
}
.brand-mark {
  display: grid !important;
  place-items: center;
  width: 42px !important;
  height: 42px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg, var(--nav-blue), var(--nav-accent));
  color: #fff !important;
  font: 700 13px var(--sans) !important;
  box-shadow: 0 7px 18px rgba(80, 89, 245, 0.3);
}
.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.brand-copy strong {
  font-size: 13px !important;
  line-height: 1;
  color: var(--nav-text);
}
.brand-copy small {
  font: 400 9px var(--mono);
  color: var(--nav-muted);
  letter-spacing: 0.02em;
}
.nav-links {
  gap: 4px;
  margin: 0 auto;
  align-items: center;
}
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 11px;
  border-radius: 12px;
  color: var(--nav-muted);
  font-size: 11px;
  transition:
    color 0.3s,
    background 0.3s,
    transform 0.3s;
}
.nav-links a svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s;
}
.nav-links a:after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 5px;
  height: 2px;
  border-radius: 9px;
  background: linear-gradient(90deg, var(--nav-blue), var(--nav-accent));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s;
}
.nav-links a:hover {
  color: var(--nav-text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}
.nav-links a:hover svg {
  transform: translateY(-1px) scale(1.08);
}
.nav-links a:hover:after,
.nav-links a.active:after {
  transform: scaleX(1);
}
.nav-links a.active {
  color: var(--nav-text);
  background: linear-gradient(
    100deg,
    rgba(59, 130, 246, 0.23),
    rgba(108, 99, 255, 0.27)
  );
  box-shadow:
    inset 0 0 0 1px rgba(164, 157, 255, 0.18),
    0 6px 20px rgba(76, 74, 210, 0.16);
}
.nav-links a.active svg {
  color: #aeb8ff;
}
.nav-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.theme-toggle {
  position: relative;
  width: 67px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  color: var(--nav-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
  transition:
    box-shadow 0.3s,
    border-color 0.3s,
    background 0.3s;
}
.theme-toggle:hover {
  border-color: rgba(142, 131, 255, 0.7);
  box-shadow:
    0 0 0 5px rgba(108, 99, 255, 0.1),
    0 0 22px rgba(108, 99, 255, 0.2);
}
.theme-toggle b {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #cdd5ff);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
    background 0.3s;
}
.theme-toggle.light b {
  transform: translateX(33px);
  background: #fff2aa;
}
.theme-icon {
  position: relative;
  z-index: 1;
  font-size: 16px;
  line-height: 1;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.theme-toggle .sun {
  color: #ffe28a;
}
.theme-toggle .moon {
  color: #aab5ff;
}
.theme-toggle.light .sun {
  transform: rotate(90deg);
  opacity: 1;
}
.theme-toggle.light .moon {
  transform: rotate(-90deg);
  opacity: 0.45;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 12px 17px !important;
  color: #fff !important;
  background: linear-gradient(
    110deg,
    var(--nav-blue),
    var(--nav-accent)
  ) !important;
  box-shadow: 0 9px 22px rgba(73, 76, 223, 0.25);
  font-size: 11px !important;
  font-weight: 700;
  transition:
    transform 0.3s,
    box-shadow 0.3s !important;
}
.nav-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 13px 28px rgba(73, 76, 223, 0.42);
}
.nav-cta span {
  color: #fff !important;
  margin: 0 !important;
  font-size: 15px;
}
.mobile-nav-tools,
.mobile-theme {
  display: none;
}
.menu-toggle {
  width: 42px;
  height: 38px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
}
.menu-toggle i {
  height: 1px;
  width: 21px;
  background: var(--nav-text);
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.menu-toggle.open i:first-child {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open i:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open i:last-child {
  transform: translateY(-7px) rotate(-45deg);
}
@keyframes navDrop {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes navLinkIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 991px) {
  .site-header {
    top: 12px;
  }
  .nav {
    height: 70px;
    padding: 0 15px;
  }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding: 12px;
    border: 1px solid var(--nav-border);
    border-radius: 20px;
    background: rgba(15, 15, 25, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top;
    transition:
      opacity 0.3s,
      visibility 0.3s,
      transform 0.3s;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-links a {
    padding: 13px 15px;
    justify-content: flex-start;
  }
  .nav-links a:after {
    left: 15px;
    right: auto;
    width: 28px;
    bottom: 7px;
  }
  .nav-links.open a {
    animation: navLinkIn 0.4s both;
  }
  .nav-links.open a:nth-child(2) {
    animation-delay: 0.04s;
  }
  .nav-links.open a:nth-child(3) {
    animation-delay: 0.08s;
  }
  .nav-links.open a:nth-child(4) {
    animation-delay: 0.12s;
  }
  .nav-links.open a:nth-child(5) {
    animation-delay: 0.16s;
  }
  .nav-links.open a:nth-child(6) {
    animation-delay: 0.2s;
  }
  .mobile-nav-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 5px 3px;
    margin-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }
  .mobile-theme {
    display: flex;
  }
  .nav-tools {
    display: none;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .brand-copy small {
    font-size: 8px;
  }
}
@media (max-width: 560px) {
  .site-header {
    width: calc(100% - 24px);
  }
  .nav-brand .brand-copy strong {
    font-size: 12px !important;
  }
  .brand-mark {
    width: 39px !important;
    height: 39px !important;
  }
  .mobile-nav-tools .nav-cta {
    padding: 10px 14px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-header,
  .nav-links.open a {
    animation: none;
  }
  .nav-links,
  .nav-links a,
  .theme-toggle,
  .theme-toggle b {
    transition: none;
  }
}

/* Theme overrides are scoped to the page shell and navbar. */
html[data-theme="light"] {
  --page-bg: #f7f8fc;
  --nav-bg: rgba(255, 255, 255, 0.7);
  --nav-border: rgba(108, 99, 255, 0.28);
  --nav-text: #111;
  --nav-muted: #687080;
  --bg: #f7f8fc;
  --surface: #fff;
  --surface-2: #f1f2f7;
  --line: #dfe1eb;
  --text: #111;
  --muted: #687080;
  --purple: #6557d8;
  --cyan: #4b5bd5;
}
html[data-theme="light"] body {
  background: var(--page-bg);
  color: var(--nav-text);
}
html[data-theme="light"] .site-header {
  box-shadow: 0 14px 40px rgba(65, 72, 114, 0.12);
}
html[data-theme="light"] .theme-toggle {
  background: rgba(245, 246, 255, 0.8);
  border-color: rgba(108, 99, 255, 0.2);
}
html[data-theme="light"] .nav-links a:hover {
  background: rgba(108, 99, 255, 0.08);
}
html[data-theme="light"] .nav-links a.active {
  color: #16142b;
  background: rgba(108, 99, 255, 0.13);
}
html[data-theme="light"] .nav-links {
  background: rgba(255, 255, 255, 0.9);
}
html[data-theme="light"] .mobile-nav-tools {
  border-color: rgba(17, 17, 17, 0.1);
}
html[data-theme="light"] .skills-section {
  background: #f1f2f7;
}
html[data-theme="light"] .project-visual {
  background: #e9eafa;
}
html[data-theme="light"] .visual-basecampy {
  background: linear-gradient(135deg, #dce3ff, #f2f3f8);
}
html[data-theme="light"] .visual-url {
  background: linear-gradient(135deg, #e7ddff, #f2f3f8);
}
html[data-theme="light"] .art-card {
  background: #fff;
  box-shadow: 15px 20px 0 rgba(65, 72, 114, 0.12);
}
html[data-theme="light"] .floating-chip {
  background: #fff;
  box-shadow: 6px 8px 0 rgba(65, 72, 114, 0.1);
}

/* Refined navigation: integrated, quiet, and easier to scan. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: rgba(11, 12, 16, 0.82);
  box-shadow: none;
  backdrop-filter: blur(16px);
  animation: none;
}
.scroll-progress {
  display: none;
}
.nav {
  width: min(1180px, calc(100% - 80px));
  height: 78px;
  padding: 0;
  gap: 28px;
}
.nav-brand {
  gap: 12px;
}
.brand-mark {
  width: 38px !important;
  height: 38px !important;
  border-radius: 8px !important;
  background: var(--cyan) !important;
  color: #171910 !important;
  box-shadow: none !important;
  font-size: 12px !important;
}
.brand-copy {
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 4px;
}
.brand-copy strong {
  font-size: 13px !important;
  color: var(--text);
}
.brand-copy small {
  font-size: 9px;
  color: var(--muted);
}
.nav-links {
  gap: 6px;
  margin-left: auto;
  margin-right: 8px;
}
.nav-links a {
  gap: 7px;
  padding: 9px 10px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 11px;
  transform: none !important;
}
.nav-links a svg {
  width: 13px;
  height: 13px;
}
.nav-links a:after {
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 1px;
  background: var(--cyan);
  border-radius: 0;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.nav-links a.active {
  color: var(--text);
  background: transparent;
  box-shadow: none;
}
.nav-links a.active svg {
  color: var(--cyan);
}
.nav-tools {
  gap: 14px;
}
.theme-toggle {
  width: 58px;
  height: 30px;
  padding: 0 7px;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.16);
}
.theme-toggle b {
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
}
.theme-toggle.light b {
  transform: translateX(28px);
}
.theme-icon {
  font-size: 14px;
}
.theme-toggle:hover {
  box-shadow: 0 0 0 4px rgba(215, 239, 134, 0.08);
  border-color: var(--cyan);
}
.nav-cta {
  padding: 10px 14px !important;
  border-radius: 4px !important;
  background: var(--cyan) !important;
  color: #171910 !important;
  box-shadow: none !important;
  font-size: 11px !important;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(215, 239, 134, 0.16) !important;
}
.nav-cta span {
  color: #171910 !important;
  font-size: 14px;
}
html[data-theme="light"] .site-header {
  background: rgba(247, 248, 252, 0.88);
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(65, 72, 114, 0.08);
}
html[data-theme="light"] .brand-mark {
  background: var(--purple) !important;
  color: #fff !important;
}
html[data-theme="light"] .nav-links a:hover {
  background: rgba(101, 87, 216, 0.07);
}
html[data-theme="light"] .nav-links a.active {
  background: transparent;
}
html[data-theme="light"] .nav-cta {
  color: #fff !important;
  background: var(--purple) !important;
}
html[data-theme="light"] .nav-cta span {
  color: #fff !important;
}
@media (max-width: 991px) {
  .site-header {
    top: 0;
  }
  .nav {
    width: calc(100% - 44px);
    height: 70px;
    padding: 0;
  }
  .nav-links {
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    gap: 5px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(17, 17, 15, 0.97);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  }
  .nav-links a {
    padding: 12px 13px;
    border-radius: 4px;
  }
  .nav-links a:after {
    left: 13px;
    right: auto;
    width: 22px;
    bottom: 5px;
  }
  .mobile-nav-tools {
    padding: 12px 3px 2px;
    border-color: var(--line);
  }
  .menu-toggle {
    border: 1px solid var(--line);
    border-radius: 5px;
    background: transparent;
  }
  .mobile-theme {
    width: 58px;
    height: 30px;
  }
  html[data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.98);
  }
}
@media (max-width: 560px) {
  .nav {
    width: calc(100% - 36px);
  }
  .brand-copy small {
    display: none;
  }
  .brand-mark {
    width: 36px !important;
    height: 36px !important;
  }
  .nav-brand {
    gap: 9px;
  }
}

/* Editorial toolkit layout */
.skills-section {
  position: relative;
  overflow: hidden;
  background: #11120f;
  border-block: 1px solid #303128;
}
.skills-section:before {
  content: "CAPABILITIES";
  position: absolute;
  right: -42px;
  top: 205px;
  color: rgba(215, 239, 134, 0.06);
  font: 500 clamp(5rem, 13vw, 12rem) var(--mono);
  letter-spacing: -0.09em;
  transform: rotate(90deg);
  pointer-events: none;
}
.skills-section .section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  border-bottom: 1px solid #303128;
  padding-bottom: 34px;
  margin-bottom: 0;
}
.skills-section .section-heading:after {
  content: "A practical stack, shaped by real projects.";
  max-width: 225px;
  color: #74766b;
  font: 11px/1.7 var(--mono);
  text-align: right;
}
.skills-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 0;
  border-left: 1px solid #303128;
  border-top: 0;
}
.skill-card {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto 1fr auto;
  column-gap: 18px;
  min-height: 270px;
  padding: 34px 34px 30px;
  border: 0;
  border-right: 1px solid #303128;
  border-bottom: 1px solid #303128;
  background: transparent;
  transition: background 0.3s;
}
.skill-card:nth-child(odd) {
  background: rgba(255, 255, 255, 0.012);
}
.skill-card:hover {
  background: rgba(215, 239, 134, 0.055);
  transform: none;
}
.skill-card:before {
  content: "0" counter(skill-card);
  counter-increment: skill-card;
  position: absolute;
  top: 32px;
  right: 30px;
  color: #66685d;
  font: 10px var(--mono);
}
.skills-grid {
  counter-reset: skill-card;
}
.skill-icon {
  grid-row: 1 / span 2;
  height: auto;
  margin-top: 2px;
  color: var(--cyan);
  font-size: 17px;
}
.skill-card h3 {
  grid-column: 2;
  font-size: 20px;
  letter-spacing: -0.04em;
  margin: 0 38px 10px 0;
}
.skill-card p {
  grid-column: 2;
  min-height: 0;
  max-width: 270px;
  color: #85877d;
  font-size: 12px;
  line-height: 1.7;
}
.skill-list {
  grid-column: 1 / -1;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 32px;
  padding-top: 17px;
  border-top: 1px solid #303128;
}
.skill-list span {
  padding: 0;
  margin: 0 19px 0 0;
  border: 0;
  color: #c7c8bf;
  font: 10px var(--mono);
  line-height: 1.9;
}
.skill-list span:not(:last-child):after {
  content: "/";
  margin-left: 19px;
  color: #5b5e54;
}
.progress {
  display: none;
}
html[data-theme="light"] .skills-section {
  background: #f2f3ed;
  border-color: #d5d8ca;
}
html[data-theme="light"] .skills-section:before {
  color: rgba(101, 87, 216, 0.07);
}
html[data-theme="light"] .skills-section .section-heading:after {
  color: #74766b;
}
html[data-theme="light"] .skills-grid,
.skills-section .skill-card {
  border-color: #d5d8ca;
}
html[data-theme="light"] .skill-card:nth-child(odd) {
  background: rgba(101, 87, 216, 0.025);
}
html[data-theme="light"] .skill-card:hover {
  background: rgba(101, 87, 216, 0.06);
}
html[data-theme="light"] .skill-list span {
  color: #46483e;
}
@media (max-width: 900px) {
  .skills-section .section-heading {
    display: block;
  }
  .skills-section .section-heading:after {
    display: block;
    margin-top: 24px;
    text-align: left;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .skills-section:before {
    display: none;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .skill-card {
    min-height: 225px;
    padding: 27px 22px 25px;
  }
  .skill-card:before {
    top: 27px;
    right: 22px;
  }
  .skill-list {
    margin-top: 25px;
  }
}

/* Compact skills index */
.skills-section:before {
  display: none;
}
.skills-section .section-heading {
  display: block;
  padding-bottom: 30px;
  margin-bottom: 36px;
}
.skills-section .section-heading:after {
  display: block;
  margin-top: 22px;
  max-width: 330px;
  text-align: left;
}
.skills-grid {
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #303128;
}
.skill-card {
  display: flex;
  flex-direction: column;
  min-height: 245px;
  padding: 26px 24px 23px;
  border-right: 1px solid #303128;
  border-bottom: 0;
  background: transparent;
}
.skill-card:last-child {
  border-right: 0;
}
.skill-card:before {
  top: 25px;
  right: 23px;
}
.skill-icon {
  height: 35px;
  margin: 0 0 24px;
  font-size: 16px;
}
.skill-card h3 {
  font-size: 18px;
  margin: 0 28px 9px 0;
}
.skill-card p {
  max-width: 210px;
  font-size: 11px;
  line-height: 1.65;
}
.skill-list {
  margin-top: auto;
  padding-top: 15px;
  line-height: 1.7;
}
.skill-list span {
  margin-right: 12px;
  font-size: 9px;
}
.skill-list span:not(:last-child):after {
  margin-left: 12px;
}
@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skill-card:nth-child(2) {
    border-right: 0;
  }
  .skill-card:nth-child(-n + 2) {
    border-bottom: 1px solid #303128;
  }
}
@media (max-width: 560px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .skill-card {
    min-height: 205px;
    padding: 25px 22px;
  }
  .skill-card:nth-child(3) {
    border-bottom: 1px solid #303128;
  }
  .skill-card:last-child {
    border-bottom: 0;
  }
}

/* Softer display type and clearer footer links */
:root {
  --sans: "DM Sans", sans-serif;
}
body {
  font-family: var(--sans);
}
.hero h1,
.section-heading h2,
.contact-copy h2 {
  font-weight: 600;
  letter-spacing: -0.065em;
}
.footer-right {
  gap: 28px;
}
.footer-right a {
  font-size: 14px;
}
.footer-right .back-top {
  font-size: 17px;
}
@media (max-width: 560px) {
  .footer-right {
    gap: 17px;
  }
  .footer-right a {
    font-size: 12px;
  }
}

/* Warm contact panel */
.contact-section {
  background: #e7e2d6;
  color: #1b1c17;
  border-block: 1px solid #c9c4b8;
}
.contact-section .contact-grid {
  border-color: #c4bfb2;
}
.contact-section .eyebrow {
  color: #6e7c26;
}
.contact-section .contact-copy h2 {
  color: #1b1c17;
  font-weight: 500;
  letter-spacing: -0.055em;
}
.contact-section .contact-copy h2 em {
  color: #8b6750;
}
.contact-section .contact-copy > p:not(.eyebrow) {
  color: #65675f;
}
.contact-section .contact-details a {
  color: #1b1c17;
}
.contact-section .contact-details small {
  color: #74766d;
}
.contact-section .contact-form label {
  color: #65675f;
}
.contact-section .contact-form input,
.contact-section .contact-form textarea {
  color: #1b1c17;
  border-color: #bbb5a8;
}
.contact-section .contact-form input::placeholder,
.contact-section .contact-form textarea::placeholder {
  color: #8a8a81;
}
.contact-section .contact-form input:focus,
.contact-section .contact-form textarea:focus {
  border-color: #7d8d35;
}
.contact-section .form-note {
  color: #687b25;
}
@media (max-width: 900px) {
  .contact-section {
    background: #e7e2d6;
  }
}

/* Portfolio-wide palette: charcoal ink, sage, terracotta, and cream */
:root {
  --page-bg: #161614;
  --bg: #161614;
  --surface: #201f1c;
  --surface-2: #292722;
  --line: #403d36;
  --text: #f3efe7;
  --muted: #aaa49a;
  --blue: #9db9aa;
  --purple: #d29a7d;
  --cyan: #b6d58a;
  --pink: #e2a18f;
  --nav-bg: rgba(22, 22, 20, 0.9);
  --nav-border: #596758;
  --nav-text: #f3efe7;
  --nav-muted: #aaa49a;
  --nav-accent: #c77f68;
  --nav-blue: #7aa88d;
}
body {
  background: var(--page-bg);
  color: var(--text);
}
.site-header {
  background: var(--nav-bg);
  border-color: rgba(182, 213, 138, 0.18);
}
.mouse-glow {
  background: radial-gradient(
    circle,
    rgba(182, 213, 138, 0.065),
    transparent 68%
  );
}
.scroll-progress {
  background: linear-gradient(90deg, var(--cyan), var(--purple));
}
.brand-mark {
  background: var(--cyan) !important;
  color: #1d2119 !important;
}
.nav-links a.active svg,
.nav-links a:after {
  color: var(--cyan);
  background: var(--cyan);
}
.nav-links a.active {
  color: var(--text);
}
.nav-cta {
  background: var(--cyan) !important;
  color: #1d2119 !important;
}
.nav-cta span {
  color: #1d2119 !important;
}
.theme-toggle {
  border-color: rgba(243, 239, 231, 0.18);
  background: rgba(255, 255, 255, 0.05);
}
.theme-toggle:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(182, 213, 138, 0.1);
}
.button-primary {
  background: var(--cyan);
  color: #1d2119;
}
.button-primary span,
.text-link span,
.project-links span {
  color: var(--cyan);
}
.button-ghost {
  border-color: #625d53;
  color: var(--text);
}
.eyebrow,
.project-type,
.skill-icon,
.timeline-marker {
  color: var(--cyan);
}
.hero h1 em,
.section-heading h2 em,
.contact-copy h2 em {
  color: var(--purple);
}
.art-orbit {
  border-color: rgba(182, 213, 138, 0.17);
}
.art-card {
  background: #24231f;
  border-color: #5a564c;
  box-shadow: 12px 16px 0 rgba(0, 0, 0, 0.2);
}
.window-bar {
  border-color: #403d36;
}
.window-bar span {
  background: #777166;
}
.floating-chip {
  background: #292823;
  border-color: #4b483f;
  box-shadow: 6px 8px 0 rgba(0, 0, 0, 0.2);
}
.art-badge {
  background: var(--purple);
  color: #241c18;
  box-shadow: 6px 8px 0 rgba(0, 0, 0, 0.2);
}
.skills-section {
  background: #1d1c19;
  border-color: #403d36;
}
.skills-section .section-heading:after {
  color: #8d887d;
}
.skills-grid,
.skill-card,
.skill-list {
  border-color: #403d36;
}
.skill-card:nth-child(odd) {
  background: rgba(255, 255, 255, 0.018);
}
.skill-card:hover {
  background: rgba(182, 213, 138, 0.06);
}
.skill-list span {
  color: #d0cbc1;
}
.skill-list span:not(:last-child):after {
  color: #706b61;
}
.project-visual {
  border-color: #403d36;
  background: #292722;
}
.visual-basecampy {
  background: linear-gradient(135deg, #3a4a3d, #20211e);
}
.visual-url {
  background: linear-gradient(135deg, #493a38, #22201e);
}
.visual-window,
.url-graphic {
  border-color: #849d80;
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.22);
}
.project-card {
  background: var(--surface);
  border-color: #403d36;
}
.project-links a {
  color: var(--text);
}
.education-section .timeline:before {
  color: rgba(182, 213, 138, 0.07);
}
.education-section .timeline,
.timeline-item,
.education-section .edu-meta {
  border-color: #403d36;
}
.education-section .timeline-content .project-type {
  border-color: var(--cyan);
}
.education-section .edu-meta strong {
  color: var(--cyan);
}
.contact-section {
  background: #262521;
  color: var(--text);
  border-color: #403d36;
}
.contact-section .contact-grid {
  border-color: #4a463d;
}
.contact-section .eyebrow {
  color: var(--cyan);
}
.contact-section .contact-copy h2 {
  color: var(--text);
}
.contact-section .contact-copy h2 em {
  color: var(--purple);
}
.contact-section .contact-copy > p:not(.eyebrow),
.contact-section .contact-details small {
  color: var(--muted);
}
.contact-section .contact-details a {
  color: var(--text);
}
.contact-section .contact-form label {
  color: var(--muted);
}
.contact-section .contact-form input,
.contact-section .contact-form textarea {
  color: var(--text);
  border-color: #5a554b;
}
.contact-section .contact-form input::placeholder,
.contact-section .contact-form textarea::placeholder {
  color: #777268;
}
.contact-section .contact-form input:focus,
.contact-section .contact-form textarea:focus {
  border-color: var(--cyan);
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.footer {
  border-color: #403d36;
}
.back-top {
  border-color: #5a554b;
  color: var(--cyan) !important;
}
html[data-theme="light"] {
  --page-bg: #f3efe7;
  --bg: #f3efe7;
  --surface: #fffdf8;
  --surface-2: #e8e3d9;
  --line: #d1cbc0;
  --text: #24231f;
  --muted: #6f6b63;
  --blue: #6f9782;
  --purple: #a86552;
  --cyan: #708b3c;
  --pink: #bb7563;
  --nav-bg: rgba(243, 239, 231, 0.9);
  --nav-border: #c9c1b4;
  --nav-text: #24231f;
  --nav-muted: #6f6b63;
  --nav-accent: #a86552;
  --nav-blue: #6f9782;
}
html[data-theme="light"] .site-header {
  background: var(--nav-bg);
  border-color: var(--line);
}
html[data-theme="light"] .brand-mark {
  background: var(--purple) !important;
  color: #fff !important;
}
html[data-theme="light"] .nav-cta {
  background: var(--purple) !important;
  color: #fff !important;
}
html[data-theme="light"] .nav-cta span {
  color: #fff !important;
}
html[data-theme="light"] .skills-section {
  background: #e8e3d9;
  border-color: var(--line);
}
html[data-theme="light"] .contact-section {
  background: #e8e3d9;
  color: var(--text);
  border-color: var(--line);
}
html[data-theme="light"] .contact-section .contact-grid {
  border-color: var(--line);
}
html[data-theme="light"] .contact-section .contact-copy h2 {
  color: var(--text);
}
html[data-theme="light"] .contact-section .contact-form input,
.contact-section .contact-form textarea {
  color: var(--text);
  border-color: #bdb5a8;
}

/* Larger hero illustration */
.hero-art {
  height: 535px;
  margin-top: 8px;
}
.art-card {
  width: min(560px, 100%);
}
.window-bar {
  height: 50px;
  padding: 0 20px;
}
.window-bar span {
  width: 8px;
  height: 8px;
}
.code-line {
  font-size: 15px;
  line-height: 2.55;
  padding-left: 28px;
}
.code-line b {
  width: 34px;
}
.code-line.indent {
  padding-left: 83px;
}
.orbit-one {
  width: 455px;
  height: 300px;
}
.orbit-two {
  width: 545px;
  height: 365px;
}
.floating-chip {
  padding: 14px 18px;
  font-size: 11px;
}
.art-badge {
  width: 70px;
  height: 70px;
  font-size: 20px;
}
@media (max-width: 900px) {
  .hero-art {
    height: 500px;
  }
  .art-card {
    width: min(540px, 100%);
  }
}
@media (max-width: 560px) {
  .hero-art {
    height: 390px;
  }
  .art-card {
    width: 560px;
    max-width: 125%;
    transform: rotate(3deg) scale(0.72);
  }
  .code-line {
    font-size: 13px;
  }
  .orbit-one {
    width: 315px;
    height: 205px;
  }
  .orbit-two {
    width: 380px;
    height: 255px;
  }
  .floating-chip {
    font-size: 9px;
    padding: 9px;
  }
  .art-badge {
    width: 58px;
    height: 58px;
    font-size: 17px;
  }
}

/* Education learning record */
.education-section .section-heading {
  margin-bottom: 42px;
}
.education-section .timeline {
  position: relative;
  margin-top: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.education-section .timeline:before {
  content: "B.TECH";
  position: absolute;
  right: 7%;
  top: 50%;
  color: rgba(215, 239, 134, 0.08);
  font: 600 clamp(4rem, 10vw, 9rem) var(--sans);
  letter-spacing: -0.09em;
  transform: translateY(-50%) rotate(-8deg);
  pointer-events: none;
}
.education-section .timeline-item {
  position: relative;
  z-index: 1;
  grid-template-columns: 100px 1fr;
  gap: 42px;
  min-height: 270px;
  padding: 44px 0;
  align-items: start;
}
.education-section .timeline-marker {
  padding-top: 3px;
  font-size: 12px;
}
.education-section .timeline-content {
  max-width: 720px;
}
.education-section .timeline-content .project-type {
  display: inline-block;
  margin: 0 0 20px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--cyan);
}
.education-section .timeline-content h3 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  margin-bottom: 13px;
  letter-spacing: -0.06em;
}
.education-section .timeline-content > p:not(.project-type):not(.edu-location) {
  font-size: 15px;
  color: var(--text);
}
.education-section .edu-location {
  margin-top: 11px;
  color: var(--muted);
  font: 11px var(--mono);
}
.education-section .edu-meta {
  margin-top: 38px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  gap: 0;
}
.education-section .edu-meta span {
  display: block;
}
.education-section .edu-meta small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}
.education-section .edu-meta strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--cyan);
}
html[data-theme="light"] .education-section .timeline:before {
  color: rgba(101, 87, 216, 0.08);
}
@media (max-width: 560px) {
  .education-section .timeline:before {
    right: 0;
    top: 38px;
    font-size: 4rem;
  }
  .education-section .timeline-item {
    grid-template-columns: 42px 1fr;
    gap: 14px;
    min-height: 0;
    padding: 30px 0 35px;
  }
  .education-section .timeline-content h3 {
    font-size: 1.65rem;
  }
  .education-section
    .timeline-content
    > p:not(.project-type):not(.edu-location) {
    font-size: 13px;
    line-height: 1.6;
  }
  .education-section .edu-meta {
    margin-top: 28px;
  }
}
