.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: grid; grid-template-columns: 1fr auto 1fr; background: color-mix(in srgb, var(--paper) 88%, transparent); border-bottom: 0; }
.theme-toggle { grid-column: 1; justify-self: start; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 0; background: transparent; color: currentColor; cursor: pointer; }
.theme-toggle svg { grid-area: 1 / 1; width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; transition: opacity .2s ease, transform .3s ease; }
.moon-icon { opacity: 0; transform: rotate(-30deg) scale(.75); }
html[data-theme="dark"] .sun-icon { opacity: 0; transform: rotate(30deg) scale(.75); }
html[data-theme="dark"] .moon-icon { opacity: 1; transform: rotate(0) scale(1); }
.nav-tabs { grid-column: 2; justify-self: center; display: flex; gap: clamp(24px, 3.4vw, 56px); }
.nav-tabs a { color: color-mix(in srgb, var(--ink) 38%, transparent); transition: color .2s ease; }
.nav-tabs a:hover, .nav-tabs a.active { color: var(--ink); text-decoration: none; }
.nav-tabs .hello-link { font-family: "Style Script", cursive; font-size: 1.65rem; line-height: .7; text-transform: lowercase; letter-spacing: 0; }
.mail-link { grid-column: 3; justify-self: end; width: 44px; height: 44px; display: grid; place-items: center; transition: opacity .2s ease; }
.mail-link:hover, .theme-toggle:hover { opacity: .55; }
.mail-link svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }

html[data-theme="dark"] { --ink: #f1f0eb; --paper: #11110f; --line: rgba(241,240,235,.24); }
body { transition: background-color .35s ease, color .35s ease; }
.about { background: var(--ink); color: var(--paper); }
footer, .baseline-art { color: #11110f; }
#top { padding-top: 88px; }
#about { scroll-margin-top: 88px; }

.aurora-art { background: #0b1020; color: #eaf2ff; }
.aurora-orb { position: absolute; border-radius: 50%; filter: blur(14px); opacity: .9; }
.orb-one { width: 55%; aspect-ratio: 1; background: radial-gradient(circle at 35% 35%, #d8f1ff, #377cf4 35%, #6935d6 70%, transparent 72%); right: -8%; top: -14%; }
.orb-two { width: 44%; aspect-ratio: 1; background: radial-gradient(circle at 60% 40%, #ffdbf3, #e14fab 40%, #492eb6 72%, transparent 74%); left: -11%; bottom: -18%; }
.prompt-window { position: absolute; left: 12%; right: 12%; top: 28%; padding: 26px; background: rgba(245,248,255,.94); color: #101425; box-shadow: 0 24px 70px rgba(0,0,0,.36); backdrop-filter: blur(18px); }
.prompt-window small { display: block; font: 400 .62rem "Fragment Mono"; opacity: .5; }
.prompt-window strong { display: block; font-weight: 500; font-size: clamp(1.1rem,2vw,2rem); margin: 32px 0 24px; }
.prompt-window span { display: inline-block; background: #101425; color: white; padding: 9px 13px; font: 400 .68rem "Fragment Mono"; }
.aurora-mark { position: absolute; left: 5%; top: 6%; font: 400 .72rem "Fragment Mono"; letter-spacing: .14em; }

.comp-art { background: #f4ef43; }
.comp-score { position: absolute; left: 8%; top: 11%; width: 48%; padding: 28px; background: #10110e; color: #f8f7ed; }
.comp-score small, .comp-score span { display: block; font: 400 .65rem "Fragment Mono"; }
.comp-score strong { display: block; font-size: clamp(4rem,8vw,8.4rem); line-height: 1; margin: 34px 0 22px; letter-spacing: -.07em; }
.comp-checks { position: absolute; right: 7%; bottom: 9%; width: 48%; padding: 20px; background: #fff; display: grid; grid-template-columns: 30px 1fr; gap: 18px 12px; box-shadow: 0 15px 40px rgba(0,0,0,.12); }
.comp-checks p { margin: 0; font-size: .8rem; }
.comp-checks i, .comp-checks b { font-style: normal; width: 22px; height: 22px; display: grid; place-items: center; background: #dfff5a; border-radius: 50%; font-size: .7rem; }
.comp-checks b { background: #ffb55f; }
.comp-wordmark { position: absolute; right: 7%; top: 7%; font: 600 .74rem "Fragment Mono"; }

.fragments { padding-top: 40px; }
.fragments-intro { max-width: 600px; font-size: clamp(1.25rem,2vw,1.8rem); line-height: 1.45; margin: 0 0 60px; }
.fragments-grid { grid-template-columns: 1fr 1fr; }
.project--soon { cursor: default; }
.project--soon:hover .project-art { transform: none; }
.soon-badge { position: absolute; right: 6%; top: 6%; padding: 9px 12px; background: var(--ink); color: var(--paper); font: 400 .65rem "Fragment Mono"; text-transform: uppercase; }
.offstore-art { background: #dad4ff; color: #271f58; padding: 6%; }
.offstore-name { font-size: clamp(4rem,10vw,10rem); font-weight: 600; line-height: .72; letter-spacing: -.09em; position: relative; z-index: 2; }
.offstore-disc { position: absolute; width: 52%; aspect-ratio: 1; border-radius: 50%; right: 2%; bottom: -15%; background: conic-gradient(#f85d35,#ffcd3c,#73d982,#5f68ff,#f85d35); box-shadow: inset 0 0 0 40px #271f58; }
.offstore-art small { position: absolute; left: 7%; bottom: 7%; font: 400 .65rem "Fragment Mono"; }

.fragments-page { min-height: 100svh; padding: 120px var(--pad) var(--pad); display: flex; flex-direction: column; }
.fragments-label { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 12px; font: 400 .72rem "Fragment Mono"; text-transform: uppercase; letter-spacing: .03em; }
.fragments-empty { flex: 1; min-height: 520px; display: grid; place-content: center; text-align: center; }
.fragments-empty p { margin: 0 0 9px; font-size: clamp(1.5rem,3vw,3rem); letter-spacing: -.045em; }
.fragments-empty span { font: 400 .72rem "Fragment Mono"; text-transform: uppercase; opacity: .42; }

@media (max-width: 760px) {
  .nav { grid-template-columns: 42px 1fr 42px; }
  .theme-toggle { width: 38px; height: 38px; }
  .theme-toggle svg { width: 23px; height: 23px; }
  .nav-tabs { grid-column: 2; gap: clamp(12px, 4vw, 22px); font-size: .76rem; }
  .mail-link { grid-column: 3; width: 38px; height: 38px; }
  .mail-link svg { width: 23px; height: 23px; }
  .fragments-grid { grid-template-columns: 1fr; }
  .comp-score { left: 6%; top: 8%; width: 59%; padding: 20px; }
  .comp-checks { right: 5%; width: 57%; }
}

/* Minimal archive direction */
:root { --paper: #ffffff; --ink: #111111; --line: rgba(17,17,17,.2); }
html[data-theme="dark"] { --paper: #ffffff; --ink: #111111; --line: rgba(17,17,17,.2); }
body { background: #ffffff; color: #111111; font-family: "Switzer", Arial, sans-serif; transition: none; }
body.menu-open { overflow: hidden; }
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 88px; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.94); border: 0; backdrop-filter: blur(14px); }
.sanya-mark { font-size: .9rem; font-weight: 500; letter-spacing: .02em; }
.menu-trigger { width: 76px; height: 48px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(17,17,17,.24); border-radius: 999px; background: #ffffff; color: #111; cursor: pointer; box-shadow: 0 2px 10px rgba(17,17,17,.05); transition: border-color .2s ease, transform .2s ease; }
.menu-trigger svg { width: 29px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: square; }
.menu-trigger:hover { opacity: 1; border-color: #111; transform: scale(.97); }
.sanya-mark:hover { opacity: .48; }
.menu-dialog { inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: var(--pad); border: 0; background: #ffffff; color: #111111; }
.menu-dialog::backdrop { background: rgba(0,0,0,.08); }
.menu-head { height: 44px; display: flex; align-items: center; justify-content: space-between; font-size: .9rem; font-weight: 500; }
.menu-close { border: 0; background: transparent; color: currentColor; padding: 10px 0 10px 20px; font: 400 .8rem "Fragment Mono", monospace; text-transform: uppercase; cursor: pointer; }
.menu-dialog nav { min-height: calc(100vh - 190px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.menu-dialog nav a { font-size: clamp(3.5rem,10vw,9rem); line-height: .88; letter-spacing: -.07em; font-weight: 500; }
.menu-dialog nav a:hover, .menu-dialog nav a[aria-current="page"] { opacity: .36; }
.menu-email { font: 400 .75rem "Fragment Mono", monospace; text-transform: uppercase; }
.about { background: #ffffff; color: #111111; border-top: 1px solid var(--line); }
footer, .baseline-art { color: #111111; }
.intro { min-height: calc(100svh - 88px); justify-content: space-between; padding-top: clamp(48px,7vw,110px); }
.intro h1 { max-width: 1460px; margin: 0; font-size: clamp(3.1rem,6.65vw,7.9rem); line-height: .94; letter-spacing: -.067em; font-weight: 600; }
.intro h1 span { font-family: inherit; font-style: normal; font-weight: inherit; color: #a4a4a0; }
.intro > .index-link { align-self: flex-end; margin-top: 80px; }
.project-meta { grid-template-columns: minmax(120px,.65fr) minmax(260px,1.6fr) auto; align-items: start; padding: 18px 0 20px; }
.project-meta p { max-width: 560px; line-height: 1.35; opacity: 1; }
footer { min-height: 78svh; display: flex; flex-direction: column; justify-content: space-between; padding-top: 36px; }
.footer-kicker { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; border-top: 1px solid rgba(17,17,17,.35); padding-top: 14px; font: 400 .72rem "Fragment Mono", monospace; text-transform: uppercase; }
.footer-kicker p { margin: 0; }
.footer-kicker span { max-width: 310px; line-height: 1.4; text-align: right; }
.footer-email { display: block; align-self: flex-start; margin: auto 0; border: 0; font: 500 clamp(2.4rem,7.1vw,8.5rem)/.92 "Switzer", Arial, sans-serif; letter-spacing: -.07em; text-transform: none; overflow-wrap: anywhere; }
.footer-email:hover { opacity: .55; }
.footer-bottom { position: relative; z-index: 2; width: 100%; display: flex; align-items: flex-end; gap: 32px; border-top: 1px solid rgba(17,17,17,.35); padding-top: 14px; font: 400 .72rem "Fragment Mono", monospace; text-transform: uppercase; }
.footer-bottom nav { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: clamp(18px,3vw,44px); }
.footer-bottom a { position: relative; z-index: 3; pointer-events: auto; }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; }
.sanya-mark { grid-column: 1; justify-self: start; }
.desktop-nav { grid-column: 2; display: flex; align-items: center; gap: clamp(24px,3.4vw,56px); font-size: .84rem; }
.desktop-nav a { color: #777; transition: color .2s ease; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: #111; }
.desktop-mail { grid-column: 3; justify-self: end; width: 44px; height: 44px; display: grid; place-items: center; transition: opacity .2s ease; }
.desktop-mail:hover { opacity: .5; }
.desktop-mail svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.menu-trigger { display: none; }
.project { display: block; }
.project-cover-image { width: 100%; height: 100%; display: block; object-fit: cover; }

/* Homepage work previews: keep each interface legible inside a consistent editorial frame. */
.projects .project-art {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: clamp(10px, 1.35vw, 22px);
  background: #f6f6f6;
}
.projects .project-cover-image,
.projects .comp-art .project-cover-image,
.projects .ares-art .project-cover-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 1px solid rgba(17,17,15,.08);
  box-shadow: 0 18px 48px rgba(17,17,15,.12);
}
.projects .aurora-art {
  padding: 0;
  background: #0b1020;
}
.projects .aurora-art .project-cover-image {
  object-fit: cover;
  border: 0;
  box-shadow: none;
}

@media (max-width: 760px) {
  .nav { height: 68px; display: flex; padding: 0 20px; }
  .desktop-nav, .desktop-mail { display: none; }
  .menu-trigger { display: grid; }
  .menu-trigger { width: 66px; height: 42px; }
  .menu-trigger svg { width: 26px; }
  #top { padding-top: 68px; }
  #about { scroll-margin-top: 68px; }
  .fragments-page { padding-top: 100px; }
  .menu-dialog { padding: 20px; }
  .menu-dialog nav { min-height: calc(100svh - 145px); }
  .intro { min-height: calc(100svh - 68px); padding-top: 40px; }
  .intro h1 { font-size: clamp(2.75rem,12vw,5.4rem); }
  .intro > .index-link { align-self: flex-start; margin-top: 72px; }
  .project-meta { grid-template-columns: 1fr auto; }
  .project-meta p { grid-column: 1 / -1; grid-row: 2; max-width: 92%; }
  footer > h2 { margin-top: 38px; }
  footer { min-height: 65svh; padding-top: 24px; }
  .footer-kicker { flex-direction: column; gap: 8px; }
  .footer-kicker span { text-align: left; }
  .footer-email { font-size: clamp(2rem,10vw,4rem); }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 16px; }
  .footer-bottom nav { margin-left: 0; width: 100%; justify-content: flex-start; gap: 12px 22px; }
}

/* Definitive responsive navigation — kept last to win the cascade */
@media screen and (min-width: 901px) {
  .desktop-nav { display: flex !important; visibility: visible !important; }
  .desktop-mail { display: grid !important; visibility: visible !important; }
  .menu-trigger { display: none !important; visibility: hidden !important; }
}

@media screen and (max-width: 900px) {
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 72px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
  }
  .sanya-mark {
    position: relative;
    z-index: 101;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    border-radius: 999px;
    background: #ececec;
    box-shadow: 0 5px 24px rgba(0,0,0,.08);
    pointer-events: auto;
  }
  .desktop-nav,
  .desktop-mail {
    display: none !important;
    visibility: hidden !important;
  }
  .menu-trigger {
    position: relative;
    z-index: 101;
    display: grid !important;
    visibility: visible !important;
    flex: 0 0 auto;
    width: 64px;
    height: 42px;
    border: 0;
    background: #ececec;
    box-shadow: 0 5px 24px rgba(0,0,0,.08);
    pointer-events: auto;
  }
  #top { padding-top: 72px; }
  #about { scroll-margin-top: 72px; }
  .fragments-page { padding-top: 104px; }
  .menu-dialog { padding: 20px; }
  .menu-dialog nav { min-height: calc(100svh - 145px); }
  .intro {
    min-height: auto;
    padding-top: 44px;
    padding-bottom: 88px;
  }
  .intro h1 {
    max-width: none;
    font-size: clamp(2rem,8.3vw,2.8rem);
    line-height: .99;
    letter-spacing: -.052em;
  }
  .intro > .index-link {
    align-self: flex-start;
    margin-top: 56px;
  }
}

/* Fragments image archive */
.fragments-page {
  display: block;
  min-height: 100svh;
  padding: 120px var(--pad) clamp(80px, 10vw, 160px);
}
.fragments-label { margin-bottom: clamp(32px, 5vw, 72px); }
.fragments-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 24px);
}
.fragment-shot { margin: 0; overflow: hidden; background: #f1f1f1; }
.fragment-shot img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.fragment-shot:hover img { transform: scale(1.012); }

@media screen and (max-width: 900px) {
  .fragments-page { padding: 104px 12px 80px; }
  .fragments-label { margin: 0 8px 28px; }
  .fragments-gallery { grid-template-columns: 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .fragment-shot img { transition: none; }
}

/* About */
.about-page {
  min-height: 100svh;
  padding: clamp(136px, 14vw, 210px) var(--pad) clamp(80px, 10vw, 150px);
}
.about-heading {
  margin: 0 0 clamp(86px, 12vw, 180px) 33.333%;
  max-width: 980px;
  font-size: clamp(3.2rem, 7.4vw, 8.5rem);
  line-height: .9;
  letter-spacing: -.073em;
  font-weight: 500;
}
.about-resume {
  border-top: 1px solid var(--line);
}
.about-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr);
  gap: clamp(30px, 5vw, 90px);
  padding: clamp(28px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--line);
}
.about-label {
  margin: 0;
  font: 400 .75rem "Fragment Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.about-copy {
  max-width: 880px;
}
.about-copy > p {
  max-width: 820px;
  margin: 0;
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  line-height: 1.35;
  letter-spacing: -.025em;
}
.about-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.about-list li {
  display: grid;
  grid-template-columns: minmax(190px, .75fr) minmax(0, 1.25fr);
  gap: 24px;
  padding: 0 0 24px;
}
.about-list li:last-child { padding-bottom: 0; }
.about-list strong,
.about-list span {
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  line-height: 1.4;
}
.about-list strong { font-weight: 500; }
.about-list span { color: #70706d; }
.about-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
}
.about-socials a {
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  line-height: 1.3;
  letter-spacing: -.025em;
  border-bottom: 1px solid currentColor;
}
.about-socials a:hover { opacity: .45; }
.about-cv a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

@media screen and (max-width: 900px) {
  .about-page { padding: 128px 20px 80px; }
  .about-heading {
    margin: 0 0 80px;
    font-size: clamp(3rem, 15vw, 5rem);
  }
  .about-row {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 28px 0 44px;
  }
  .about-list li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-bottom: 26px;
  }
}
