:root {
  color-scheme: dark;
  --bg: #090811;
  --bg-raised: #11101b;
  --bg-card: #151321;
  --text: #f7f4ff;
  --muted: #a8a4b5;
  --subtle: #716d82;
  --line: rgba(242, 237, 255, 0.11);
  --line-strong: rgba(242, 237, 255, 0.22);
  --accent: #8b5cf6;
  --accent-dark: #7043d1;
  --accent-ink: #090611;
  --display: "Manrope", "Segoe UI", sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --page-width: 1180px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f5fb;
  --bg-raised: #eeebf5;
  --bg-card: #fff;
  --text: #211b2f;
  --muted: #675f77;
  --subtle: #878092;
  --line: rgba(40, 27, 63, 0.12);
  --line-strong: rgba(40, 27, 63, 0.22);
  --accent: #6d3bd1;
  --accent-dark: #5827b5;
  --accent-ink: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
  background: var(--bg);
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% -12%, rgba(139, 92, 246, 0.12), transparent 38rem),
    var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 220ms ease, color 220ms ease;
}

body,
button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

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

.section-wrap {
  width: min(var(--page-width), calc(100% - 64px));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

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

.not-found {
  min-height: 100vh;
  display: grid;
  align-content: center;
  padding-block: 72px;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 14px;
  left: 0;
  width: 100%;
  padding-inline: 20px;
}

.nav-shell {
  width: min(var(--page-width), calc(100% - 64px));
  min-height: 74px;
  margin-inline: auto;
  padding-inline: 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -2px;
}

.brand-mark span,
.text-accent,
.hero-name {
  color: var(--accent);
}

.brand-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-menu > a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transition: color 160ms ease;
}

.nav-menu > a:hover,
.nav-menu > a:focus-visible {
  color: var(--text);
}

.theme-toggle,
.menu-toggle {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.theme-toggle:hover,
.menu-toggle:hover {
  border-color: var(--line-strong);
  background: var(--bg-raised);
}

.theme-toggle svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.menu-toggle {
  display: none;
}

@media (max-width: 680px) {
  .site-header {
    top: 10px;
    padding-inline: 0;
  }

  .nav-shell {
    width: min(100% - 38px, var(--page-width));
    min-height: 66px;
    padding-inline: 15px;
  }

  .nav-menu {
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(260px, calc(100vw - 38px));
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
  }

}

.hero {
  position: relative;
  min-height: 760px;
  padding-top: 168px;
  padding-bottom: 130px;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 18px;
}

.eyebrow,
.section-label,
.fact-index,
.timeline-type,
.timeline-date,
.project-meta,
.profile-overline,
.profile-location,
.card-topline,
.art-note,
.visual-kicker,
.visual-caption,
.copyright {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 29px;
  color: var(--muted);
  font-size: 9px;
}

.status-dot,
.card-indicator {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 45%, transparent);
}

.eyebrow-divider {
  color: var(--subtle);
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 6.3vw, 82px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.075em;
}

.hero-intro {
  max-width: 500px;
  margin: 26px 0 29px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

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

.button {
  min-height: 47px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.button-primary:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.button-quiet {
  color: var(--text);
}

.button-quiet:hover {
  border-color: var(--accent);
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 34px;
  color: var(--subtle);
  font-size: 11px;
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  transition: color 160ms ease;
}

.hero-links a:hover {
  color: var(--accent);
}

.hero-links svg {
  width: 14px;
  fill: currentColor;
}

.hero-art {
  position: relative;
  min-height: 435px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.art-grid {
  position: absolute;
  z-index: -1;
  inset: 10% 3%;
  opacity: 0.3;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse, #000 10%, transparent 75%);
}

.art-orbit {
  position: absolute;
  z-index: -1;
  width: 340px;
  height: 340px;
  border: 1px solid color-mix(in srgb, var(--accent) 17%, transparent);
  border-radius: 50%;
  transform: rotate(-24deg) scaleY(0.44);
}

.orbit-one {
  transform: rotate(-34deg) scaleY(0.44);
}

.orbit-two {
  width: 440px;
  height: 440px;
  transform: rotate(38deg) scaleY(0.44);
}

.profile-card {
  position: relative;
  width: min(340px, 78%);
  min-height: 365px;
  padding: 22px 25px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--bg-card) 94%, transparent), color-mix(in srgb, var(--bg-raised) 90%, transparent)),
    var(--bg-card);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.22);
  transform: rotate(3deg);
}

.profile-card::after {
  position: absolute;
  right: -100px;
  bottom: 65px;
  width: 230px;
  height: 230px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 50%;
  content: "";
}

.card-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--subtle);
  font-size: 8px;
}

.card-index {
  margin-left: auto;
  font-family: var(--mono);
}

.card-indicator {
  width: 6px;
  height: 6px;
}

.profile-monogram {
  position: relative;
  z-index: 1;
  width: 139px;
  height: 139px;
  margin: 51px auto 19px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, color-mix(in srgb, var(--accent) 19%, var(--bg-card)), var(--bg-card) 69%);
  color: var(--text);
  font-size: 77px;
  font-weight: 600;
  letter-spacing: -0.1em;
  line-height: 1;
}

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

.profile-overline,
.profile-location {
  position: relative;
  z-index: 1;
  margin: 0;
  text-align: center;
}

.profile-overline {
  color: var(--accent);
  font-size: 8px;
}

.profile-location {
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0;
}

.card-rule {
  position: relative;
  z-index: 1;
  height: 1px;
  margin: 24px 0 15px;
  background: var(--line);
}

.profile-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.profile-bottom span:last-child {
  color: var(--accent);
}

.art-note {
  position: absolute;
  color: var(--muted);
  font-size: 8px;
}

.art-note span {
  margin-right: 8px;
  color: var(--accent);
}

.note-top {
  top: 56px;
  right: 2px;
}

.note-bottom {
  bottom: 45px;
  left: 2px;
}

.note-bottom span {
  margin-left: 8px;
}

.art-spark {
  position: absolute;
  color: var(--accent);
  font-family: var(--mono);
}

.spark-one {
  top: 89px;
  left: 45px;
  font-size: 24px;
}

.spark-two {
  right: 48px;
  bottom: 96px;
  font-size: 28px;
}

.scroll-cue {
  position: absolute;
  bottom: 39px;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.scroll-line {
  width: 34px;
  height: 1px;
  background: var(--accent);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 39px;
  color: var(--subtle);
  font-size: 9px;
}

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

.about-section {
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 85px;
  align-items: start;
}

.section-title {
  margin: 0;
  font-size: clamp(35px, 4.8vw, 57px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.07em;
}

.text-muted {
  color: var(--muted);
}

.about-copy {
  padding-top: 3px;
}

.about-copy p,
.timeline-content > p:last-child {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.text-link span {
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translate(2px, -2px);
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 72px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  min-height: 92px;
  padding: 19px 20px 17px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.fact + .fact {
  padding-left: 25px;
  border-left: 1px solid var(--line);
}

.fact-index {
  color: var(--subtle);
  font-size: 8px;
}

.fact strong {
  font-size: 13px;
  font-weight: 600;
}

.experience-section {
  border-bottom: 1px solid var(--line);
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 51px;
}

.section-aside {
  margin: 0 0 5px;
  color: var(--subtle);
  font-size: 11px;
  line-height: 1.8;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 165px 22px 1fr;
  gap: 22px;
  padding: 30px 0 33px;
  border-bottom: 1px solid var(--line);
}

.timeline-date {
  padding-top: 4px;
  color: var(--text);
  font-size: 9px;
  white-space: nowrap;
}

.timeline-date span {
  color: var(--subtle);
}

.timeline-marker {
  position: relative;
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.timeline-marker::before {
  position: absolute;
  top: 7px;
  left: 3px;
  width: 1px;
  height: calc(100% + 77px);
  background: var(--line);
  content: "";
}

.timeline-entry:last-child .timeline-marker::before {
  display: none;
}

.timeline-type {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 8px;
}

.timeline-content h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.timeline-content > p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  font-size: 12px;
}

.at-company {
  color: var(--muted);
  font-weight: 500;
}

.skills-section {
  border-bottom: 1px solid var(--line);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skill-group {
  min-height: 182px;
  padding: 24px 22px 24px 0;
}

.skill-group + .skill-group {
  padding-left: 23px;
  border-left: 1px solid var(--line);
}

.skill-number {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
}

.skill-group h3 {
  margin: 20px 0 9px;
  font-size: 15px;
  font-weight: 600;
}

.skill-group p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

.projects-section {
  border-bottom: 1px solid var(--line);
}

.projects-heading {
  align-items: center;
}

.projects-heading .text-link {
  margin-bottom: 6px;
}

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

.project-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: color-mix(in srgb, var(--bg-card) 55%, transparent);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  background: var(--bg-card);
}

.project-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  grid-template-rows: auto auto 1fr auto;
  column-gap: 27px;
  align-items: start;
}

.project-visual {
  position: relative;
  min-height: 188px;
  padding: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 4px;
  isolation: isolate;
}

.project-featured .project-visual {
  grid-column: 1;
  grid-row: 1 / span 4;
  min-height: 243px;
}

.project-visual::before,
.project-visual::after {
  position: absolute;
  z-index: -1;
  content: "";
}

.visual-kicker,
.visual-caption {
  color: color-mix(in srgb, var(--text) 70%, transparent);
  font-size: 8px;
}

.visual-caption {
  line-height: 1.7;
}

.visual-publisher {
  background: radial-gradient(ellipse at 78% 53%, rgba(196, 242, 121, 0.15), transparent 48%), linear-gradient(120deg, #191c16, #20261b);
}

.visual-publisher::before {
  top: -70px;
  right: -15px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(196, 242, 121, 0.23);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(196, 242, 121, 0.025), 0 0 0 48px rgba(196, 242, 121, 0.02);
}

.visual-symbol {
  position: absolute;
  top: 35%;
  right: 16%;
  color: var(--accent);
  font-size: 62px;
  line-height: 1;
}

.visual-lines {
  position: absolute;
  right: 13%;
  bottom: 25%;
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: rotate(-26deg);
}

.visual-nepse {
  background: radial-gradient(ellipse at 16% 90%, rgba(75, 153, 111, 0.22), transparent 55%), linear-gradient(140deg, #151c19, #17221b);
}

.visual-nepse::before {
  right: -10%;
  bottom: 10%;
  width: 120%;
  height: 1px;
  background: rgba(126, 200, 151, 0.38);
  transform: rotate(-18deg);
}

.market-line {
  color: #e4eade;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -0.06em;
}

.market-line strong {
  color: #90d2a4;
  font-weight: 500;
}

.market-bars {
  position: absolute;
  right: 20px;
  bottom: 27px;
  left: 20px;
  height: 58px;
  display: flex;
  align-items: end;
  gap: 7px;
  opacity: 0.72;
}

.market-bars i {
  width: 9%;
  border: 1px solid rgba(140, 206, 162, 0.48);
  background: rgba(98, 171, 122, 0.35);
}

.market-bars i:nth-child(1) { height: 32%; }
.market-bars i:nth-child(2) { height: 58%; }
.market-bars i:nth-child(3) { height: 44%; }
.market-bars i:nth-child(4) { height: 77%; }
.market-bars i:nth-child(5) { height: 61%; }
.market-bars i:nth-child(6) { height: 87%; }
.market-bars i:nth-child(7) { height: 67%; }
.market-bars i:nth-child(8) { height: 100%; }
.market-bars i:nth-child(9) { height: 78%; }

.visual-medrec {
  background: radial-gradient(circle at 50% 54%, rgba(126, 190, 179, 0.15), transparent 43%), linear-gradient(145deg, #17201e, #182320);
}

.medrec-mark {
  align-self: center;
  color: #c5e6d6;
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -0.09em;
}

.medrec-mark span {
  color: #80bea0;
  font-size: 32px;
  vertical-align: top;
}

.visual-japan {
  background: radial-gradient(circle at 74% 42%, rgba(218, 131, 122, 0.17), transparent 32%), linear-gradient(140deg, #241a19, #1b1717);
}

.visual-japan::before {
  top: 50%;
  right: 13%;
  width: 67px;
  height: 67px;
  border-radius: 50%;
  background: rgba(204, 119, 111, 0.74);
  box-shadow: 0 0 55px rgba(204, 119, 111, 0.16);
  transform: translateY(-50%);
}

.japan-word {
  color: #f2e6df;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.07em;
}

.japan-word span {
  margin-left: 9px;
  color: #d38b83;
  font-size: 17px;
  font-weight: 400;
}

.visual-banking {
  background: radial-gradient(circle at 55% 55%, rgba(163, 147, 223, 0.14), transparent 43%), linear-gradient(145deg, #1c1923, #211d2a);
}

.banking-symbol {
  align-self: center;
  color: #c9baf1;
  font-size: 53px;
}

.banking-lines {
  position: absolute;
  right: 19px;
  bottom: 24px;
  display: flex;
  gap: 7px;
}

.banking-lines i {
  width: 31px;
  height: 2px;
  background: rgba(201, 186, 241, 0.6);
}

.banking-lines i:nth-child(2) { width: 21px; opacity: 0.55; }
.banking-lines i:nth-child(3) { width: 12px; opacity: 0.3; }

.project-meta {
  grid-column: 1;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 17px 2px 9px;
  color: var(--subtle);
  font-size: 8px;
}

.project-meta a {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 7px;
}

.project-card h3,
.project-card > p,
.project-card .tag-list {
  grid-column: 1;
}

.project-card h3 {
  margin: 0 2px 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.045em;
}

.project-card > p {
  margin: 0 2px 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.project-featured .project-meta {
  grid-column: 2;
  grid-row: 1;
}

.project-featured h3 {
  grid-column: 2;
  grid-row: 2;
  font-size: 20px;
}

.project-featured > p {
  grid-column: 2;
  grid-row: 3;
  max-width: 440px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 2px 2px;
}

.tag-list span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.project-featured .tag-list {
  grid-column: 2;
  grid-row: 4;
}

.repository-note {
  margin-top: 30px;
  padding: 17px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.repository-note p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.repository-note a {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
}

.repository-note a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.contact-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 54%, rgba(139, 92, 246, 0.09), transparent 31rem),
    var(--bg-raised);
}

.contact-inner {
  position: relative;
  min-height: 510px;
  padding-block: 88px;
  overflow: hidden;
}

.contact-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.contact-content .eyebrow {
  margin-bottom: 20px;
}

.contact-content h2 {
  margin: 0 0 16px;
  font-size: clamp(49px, 7vw, 83px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.075em;
}

.contact-copy {
  max-width: 470px;
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.contact-watermark {
  position: absolute;
  right: -45px;
  bottom: -180px;
  color: color-mix(in srgb, var(--text) 3%, transparent);
  font-size: 440px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.12em;
  pointer-events: none;
}

.contact-watermark span {
  color: color-mix(in srgb, var(--accent) 15%, transparent);
}

.site-footer {
  background: var(--bg);
}

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

.footer-brand .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 16px;
}

.footer-brand .brand-name {
  font-size: 11px;
}

.footer-inner > p {
  margin: 0;
  color: var(--subtle);
  font-size: 10px;
}

.copyright {
  color: var(--subtle);
  font-size: 8px;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (max-width: 900px) {
  .hero {
    min-height: 700px;
    grid-template-columns: 1fr 0.75fr;
    gap: 20px;
  }

  .hero h1 {
    font-size: clamp(47px, 7vw, 66px);
  }

  .hero-art {
    transform: scale(0.9);
  }

  .about-grid {
    gap: 45px;
  }

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

  .skill-group:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .skill-group:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .section-wrap,
  .nav-shell {
    width: min(100% - 38px, var(--page-width));
  }

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

  .nav-shell {
    min-height: 68px;
  }

  .brand-name {
    font-size: 12px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border-radius: 9px;
  }

  .menu-toggle span {
    width: 15px;
    height: 1px;
    background: currentColor;
    transition: transform 160ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    padding: 14px 19px 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu > a {
    padding: 11px 3px;
  }

  .theme-toggle {
    margin-top: 7px;
    align-self: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 135px;
    padding-bottom: 104px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .eyebrow {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 8px;
  }

  .hero h1 {
    font-size: clamp(47px, 13vw, 72px);
  }

  .hero-intro {
    max-width: 470px;
    margin-block: 21px 24px;
    font-size: 13px;
  }

  .hero-art {
    min-height: 348px;
    margin-top: 18px;
    transform: none;
  }

  .profile-card {
    width: min(300px, 76%);
    min-height: 330px;
    padding: 19px 21px;
  }

  .profile-monogram {
    width: 120px;
    height: 120px;
    margin-top: 40px;
    font-size: 67px;
  }

  .note-top {
    right: 0;
  }

  .note-bottom {
    bottom: 21px;
    left: 0;
  }

  .scroll-cue {
    bottom: 28px;
  }

  .section-label {
    margin-bottom: 27px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 23px;
  }

  .section-title {
    font-size: clamp(36px, 10vw, 50px);
  }

  .about-copy p {
    font-size: 13px;
  }

  .about-facts {
    grid-template-columns: 1fr;
    margin-top: 39px;
  }

  .fact {
    min-height: 75px;
    padding: 14px 0;
  }

  .fact + .fact {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 34px;
  }

  .section-aside {
    margin: 0;
  }

  .timeline-entry {
    grid-template-columns: 1fr 14px;
    gap: 12px;
    padding-block: 21px 24px;
  }

  .timeline-date {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
  }

  .timeline-marker {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
  }

  .timeline-marker::before {
    height: calc(100% + 90px);
  }

  .timeline-content {
    grid-column: 1;
    grid-row: 2;
  }

  .timeline-content h3 {
    font-size: 15px;
  }

  .timeline-content > p:last-child {
    font-size: 11px;
  }

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

  .skill-group,
  .skill-group + .skill-group,
  .skill-group:nth-child(3),
  .skill-group:nth-child(4) {
    min-height: auto;
    padding: 19px 0 21px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .skill-group:first-child {
    border-top: 0;
  }

  .skill-group h3 {
    margin-top: 11px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .project-featured {
    grid-column: auto;
    display: block;
  }

  .project-featured .project-visual {
    min-height: 190px;
  }

  .project-meta {
    margin-top: 15px;
  }

  .project-card h3 {
    font-size: 16px;
  }

  .project-featured h3 {
    font-size: 17px;
  }

  .repository-note {
    gap: 10px;
    padding: 14px;
  }

  .repository-note p {
    flex-basis: calc(100% - 28px);
  }

  .contact-inner {
    min-height: 480px;
    padding-block: 68px;
  }

  .contact-content h2 {
    font-size: clamp(48px, 13vw, 70px);
  }

  .contact-watermark {
    right: -80px;
    bottom: -92px;
    font-size: 270px;
  }

  .footer-inner {
    min-height: 0;
    padding-block: 22px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

#home.hero {
  min-height: 100svh;
  padding-top: 126px;
  padding-bottom: 86px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  justify-items: center;
  align-content: center;
  gap: 2px;
  text-align: center;
}

#home.hero .hero-art {
  display: grid;
  isolation: isolate;
  transform: none;
  grid-row: 1;
  width: min(100%, 390px);
  min-height: 0;
  aspect-ratio: 1;
  margin: 0 auto 4px;
}

#home.hero .hero-art::before {
  position: absolute;
  z-index: -1;
  width: 66%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  filter: blur(56px);
  opacity: 0.2;
}

#home.hero .portrait-ring {
  position: absolute;
  width: min(80%, 312px);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--accent) 58%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 42px color-mix(in srgb, var(--accent) 20%, transparent);
  transform: rotate(-12deg);
}

#home.hero .hero-portrait {
  position: relative;
  display: block;
  width: min(80%, 300px);
  height: auto;
  aspect-ratio: 1;
  align-self: center;
  justify-self: center;
  border: 3px solid color-mix(in srgb, var(--accent) 88%, white);
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 7px color-mix(in srgb, var(--accent) 13%, transparent),
    0 0 46px color-mix(in srgb, var(--accent) 34%, transparent);
}

#home.hero .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  grid-row: 2;
  width: min(100%, 780px);
  padding: 0;
}

#home.hero .eyebrow {
  justify-content: center;
  flex-wrap: wrap;
  margin: 10px 0 12px;
  font-size: 9px;
}

#home.hero h1 {
  margin: 0;
  font-size: clamp(48px, 7.4vw, 78px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.065em;
}

#home.hero .hero-name {
  color: transparent;
  background: linear-gradient(100deg, #b9a0ff, #8555f5 75%);
  background-clip: text;
  -webkit-background-clip: text;
}

#home.hero .hero-role {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 500;
  line-height: 1.4;
}

#home.hero .hero-intro {
  max-width: 680px;
  margin: 19px auto 24px;
  font-size: 15px;
  text-align: center;
}

#home.hero .hero-actions,
#home.hero .hero-links {
  justify-content: center;
}

#home.hero .hero-links {
  margin-top: 26px;
}

#home.hero .scroll-cue {
  left: 50%;
  white-space: nowrap;
  transform: translateX(-50%);
}

@media (max-width: 680px) {
  #home.hero {
    min-height: 100svh;
    padding-top: 108px;
    padding-bottom: 82px;
    gap: 0;
  }

  #home.hero .hero-art {
    width: min(100%, 360px);
    margin-bottom: 1px;
  }

  #home.hero .hero-portrait {
    width: min(80%, 288px);
  }

  #home.hero .portrait-ring {
    width: min(88%, 316px);
  }

  #home.hero .hero-copy {
    width: 100%;
  }

  #home.hero .eyebrow {
    gap: 7px;
    font-size: 8px;
  }

  #home.hero h1 {
    font-size: clamp(42px, 11vw, 62px);
  }

  #home.hero .hero-role {
    font-size: 19px;
  }

  #home.hero .hero-intro {
    max-width: 470px;
    margin: 17px auto 22px;
    font-size: 13px;
  }

  #home.hero .hero-actions {
    gap: 9px;
  }

  #home.hero .hero-links {
    margin-top: 21px;
  }

  #home.hero .scroll-cue {
    bottom: 24px;
  }
}

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

  .js-enabled .reveal {
    opacity: 1;
    transform: none;
  }
}
