:root {
  color-scheme: dark;
  --paper: #10100f;
  --surface: #191918;
  --surface-soft: #1f1f1d;
  --ink: #f3f0e9;
  --muted: #aaa69d;
  --line: rgba(243, 240, 233, .14);
  --accent: #ff765e;
  --accent-bright: #ff9a76;
  --display: "Arial Narrow", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 82% 10%, rgba(139, 57, 39, .13), transparent 34rem),
    radial-gradient(ellipse at 12% 39%, rgba(66, 75, 58, .08), transparent 32rem),
    var(--paper);
  color: var(--ink);
  font: 16px/1.65 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  top: 8px;
  left: -999px;
  z-index: 20;
  padding: 8px 12px;
  border-radius: 5px;
  background: var(--surface);
}

.skip:focus { left: 8px; }

.hero {
  position: relative;
  display: flex;
  min-height: min(900px, 100svh);
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 20px clamp(22px, 6.4vw, 104px) 25px;
  border-bottom: 1px solid var(--line);
}

.site-nav {
  z-index: 4;
  display: flex;
  min-height: 53px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.08em;
  text-decoration: none;
}

.nav-brand span,
.project-art span,
.cube-face span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 43px);
}

.nav-links a {
  color: #d3cfc6;
  font-size: .79rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--accent-bright); }

.hero-kicker,
.section-kicker {
  color: var(--accent);
  font-size: .69rem;
  font-weight: 750;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 68px 0 -30px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b6d59d;
  box-shadow: 0 0 12px rgba(182, 213, 157, .6);
}

.hero-stage {
  display: grid;
  width: min(1400px, 100%);
  flex: 1;
  align-items: center;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  gap: clamp(20px, 5vw, 80px);
  margin: 0 auto;
}

.hero-copy { position: relative; z-index: 1; padding: 26px 0 50px; }

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.5rem, 9.5vw, 9.4rem);
  font-weight: 560;
  letter-spacing: -.092em;
  line-height: .91;
}

h1 span,
#contact h2 span {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.075em;
}

.hero-intro {
  max-width: 535px;
  margin: 28px 0 0;
  color: #c3beb4;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 29px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 16px;
  padding: 10px 17px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--accent);
  color: #21130f;
  font-size: .85rem;
  font-weight: 750;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: transparent;
  color: var(--accent-bright);
}

.text-link {
  color: var(--ink);
  font-size: .85rem;
  font-weight: 600;
  text-decoration-color: var(--line);
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 35px;
}

.hero-socials a {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 600;
  text-decoration: none;
}

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

.hero-art {
  position: relative;
  display: grid;
  min-height: 500px;
  place-items: center;
  isolation: isolate;
  perspective: 1100px;
  transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .24s ease-out;
  transform-style: preserve-3d;
}

.art-glow {
  position: absolute;
  width: min(88%, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 104, 76, .2), rgba(169, 77, 59, .08) 38%, transparent 70%);
  filter: blur(15px);
}

.orbit {
  position: absolute;
  width: 79%;
  max-width: 410px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 219, 196, .36);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.orbit span {
  position: absolute;
  top: 16%;
  left: 16%;
  width: 11px;
  height: 11px;
  border: 2px solid #ffc293;
  border-radius: 50%;
  background: #ff755d;
  box-shadow: 0 0 20px rgba(255, 117, 93, .8);
}

.orbit-one { transform: rotateX(68deg) rotateY(-27deg); animation: orbit-drift 17s linear infinite; }
.orbit-two { width: 67%; transform: rotateX(73deg) rotateY(56deg) rotateZ(35deg); animation: orbit-drift 22s linear infinite reverse; }
.orbit-two span { top: auto; right: 12%; bottom: 14%; left: auto; width: 7px; height: 7px; }
.orbit-three { width: 91%; border-color: rgba(255, 219, 196, .15); transform: rotateX(78deg) rotateY(-43deg) rotateZ(20deg); }

.cube-wrap {
  position: relative;
  z-index: 2;
  width: 170px;
  height: 170px;
  transform-style: preserve-3d;
  animation: cube-float 5.5s ease-in-out infinite;
}

.cube {
  position: absolute;
  inset: 0;
  transform: rotateX(-23deg) rotateY(-33deg);
  transform-style: preserve-3d;
  animation: cube-turn 20s linear infinite;
}

.cube-face {
  position: absolute;
  display: grid;
  width: 170px;
  height: 170px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 224, 206, .65);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, .18), transparent 48%),
    linear-gradient(135deg, rgba(255, 130, 99, .9), rgba(87, 36, 31, .94));
  box-shadow: inset 0 0 34px rgba(255, 255, 255, .1);
  color: #fff1e9;
  font-size: 4.7rem;
  font-weight: 750;
  letter-spacing: -.13em;
  text-shadow: 0 3px 25px rgba(30, 12, 10, .45);
  backface-visibility: visible;
}

.cube-front { transform: translateZ(85px); }
.cube-back { transform: rotateY(180deg) translateZ(85px); font-size: 3.2rem; letter-spacing: -.04em; }
.cube-right { transform: rotateY(90deg) translateZ(85px); background: linear-gradient(145deg, #f19370, #592f2b); }
.cube-left { transform: rotateY(-90deg) translateZ(85px); background: linear-gradient(145deg, #593632, #302322); }
.cube-top { transform: rotateX(90deg) translateZ(85px); background: linear-gradient(145deg, #ffad86, #a54f43); }
.cube-bottom { transform: rotateX(-90deg) translateZ(85px); background: linear-gradient(145deg, #392521, #c05f4b); }

.art-caption {
  position: absolute;
  right: 1%;
  bottom: 10%;
  color: #c5bdb3;
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .2em;
}

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

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  color: #a9a49a;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-decoration: none;
}

.scroll-cue span {
  color: var(--accent);
  font-size: 1rem;
  animation: arrow-bob 1.8s ease-in-out infinite;
}

main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

section {
  position: relative;
  padding: clamp(75px, 11vw, 145px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 84px;
}

section:last-child { border-bottom: 0; }
.section-kicker { margin: 0 0 20px; }

h2 {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  font-weight: 550;
  letter-spacing: -.075em;
  line-height: 1;
}

#summary {
  display: grid;
  align-items: start;
  grid-template-columns: .95fr 1.05fr;
  column-gap: clamp(30px, 8vw, 115px);
}

#summary > .section-kicker { grid-column: 1 / -1; }
#summary h2 { margin: 0; }

#summary > p:last-child {
  max-width: 620px;
  margin: 7px 0 0;
  color: #bdb8ae;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}

article {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}

article h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.35;
}

article p { margin: 0; color: var(--muted); }

#education > article {
  display: inline-block;
  max-width: 720px;
  padding: 24px;
  border-color: rgba(255, 118, 94, .25);
  background: linear-gradient(120deg, rgba(255, 118, 94, .09), var(--surface) 66%);
}

#education > p:last-child { margin: 16px 0 0; color: var(--muted); }

.skill-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.skill-group {
  min-height: 225px;
  padding: 24px;
}

.skill-group:nth-child(2) { background: #1c1b19; }
.skill-group:nth-child(3) { background: #1c1917; }

.skill-group h3 { margin-bottom: 11px; }
.skill-group p { min-height: 74px; font-size: .87rem; }

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

.skill-tags span {
  padding: 4px 9px;
  border: 1px solid rgba(243, 240, 233, .14);
  border-radius: 2px;
  color: #ded8ce;
  font-size: .7rem;
  font-weight: 600;
}

#projects {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  counter-reset: project;
}

#projects > .section-kicker,
#projects > h2 { grid-column: 1 / -1; }

#projects > .section-kicker { margin-bottom: -10px; }
#projects > h2 { margin-bottom: 15px; }

#projects article {
  display: flex;
  flex-direction: column;
  padding: 13px 13px 23px;
  counter-increment: project;
}

#projects article:hover,
#projects article:focus-within {
  transform: translateY(-5px);
  border-color: rgba(255, 118, 94, .52);
  background: #1d1b19;
}

#projects article::after {
  margin-top: 17px;
  color: #8d877d;
  content: "0" counter(project) " / SELECTED PROJECT";
  font-size: .59rem;
  font-weight: 700;
  letter-spacing: .13em;
  order: 0;
}

#projects article h3,
#projects article .stack,
#projects article ul,
#projects article > p:not(.stack) {
  margin-right: 12px;
  margin-left: 12px;
}

#projects article h3 { margin-top: 18px; }
#projects article .stack { order: 1; }
#projects article h3 { order: 2; }
#projects article ul { order: 3; }
#projects article > p:not(.stack) { order: 4; }
#projects article::after { order: 5; }

.project-art {
  position: relative;
  display: grid;
  min-height: 220px;
  overflow: hidden;
  place-items: center;
  isolation: isolate;
}

.project-art::before,
.project-art::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 245, 230, .17);
  border-radius: 50%;
  content: "";
}

.project-art::before { width: 230px; height: 230px; }
.project-art::after { width: 320px; height: 320px; }

.project-art-interview { background: radial-gradient(ellipse at 50% 45%, #533a39, #282324 57%, #1b1b1a); }
.project-art-banking { background: radial-gradient(ellipse at 50% 45%, #3b4a3e, #252b27 55%, #1b1b1a); }
.project-art-campus { background: radial-gradient(ellipse at 50% 45%, #514337, #302a25 57%, #1b1b1a); }
.project-art-portfolio { background: radial-gradient(ellipse at 50% 45%, #4c3941, #2c252c 57%, #1b1b1a); }
.project-art-iskcon { background: radial-gradient(ellipse at 50% 45%, #614935, #332c25 57%, #1b1b1a); }

.art-window {
  position: relative;
  display: flex;
  width: 53%;
  height: 126px;
  align-items: flex-start;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(36, 32, 32, .94), rgba(22, 23, 23, .95));
  box-shadow: 0 22px 65px rgba(0, 0, 0, .35);
  transform: rotate(-7deg);
}

.art-window i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff8066;
}

.art-window i:nth-child(2) { background: #e7bd77; }
.art-window i:nth-child(3) { background: #b4c39b; }
.art-window b {
  position: absolute;
  right: 16px;
  bottom: 13px;
  color: #ffe4d7;
  font-size: 2.6rem;
  letter-spacing: -.08em;
}

.art-orbit,
.bank-orbit {
  position: absolute;
  width: 76%;
  height: 78%;
  border: 1px solid rgba(255, 171, 130, .4);
  border-radius: 50%;
  transform: rotate(-30deg);
}

.bank-card {
  position: relative;
  display: flex;
  width: 56%;
  height: 130px;
  flex-direction: column;
  justify-content: space-between;
  padding: 19px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 11px;
  background: linear-gradient(130deg, #789078, #32483e 60%, #25342e);
  box-shadow: 0 23px 65px rgba(0, 0, 0, .35);
  transform: rotate(7deg);
}

.bank-card i { width: 24px; height: 18px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 4px; }
.bank-card b { color: #e6e9dc; font-size: .73rem; letter-spacing: .12em; }
.bank-card em { position: absolute; top: 13px; right: 17px; color: #e9c78e; font-size: 1.5rem; font-style: normal; }
.bank-orbit { width: 70%; height: 63%; border-color: rgba(216, 238, 195, .4); }

.job-tile {
  position: relative;
  display: grid;
  width: 145px;
  height: 135px;
  place-items: center;
  border: 1px solid rgba(255, 242, 222, .35);
  border-radius: 30px;
  background: linear-gradient(145deg, #eab279, #9b6650);
  box-shadow: 0 23px 65px rgba(0, 0, 0, .36);
  color: #38281f;
  font-size: 3.5rem;
  transform: rotate(-9deg);
}

.job-tile b { position: absolute; bottom: 12px; font-size: .64rem; letter-spacing: .05em; }
.job-tile i { position: absolute; top: 12px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: #f8e1ae; }
.campus-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #ffe0a2; box-shadow: 46px -58px 0 -3px #f4a680, -58px 43px 0 -2px #f4a680; }

.portfolio-shape {
  z-index: 1;
  color: #f0d8cf;
  font-size: 5.5rem;
  font-weight: 800;
  letter-spacing: -.15em;
  text-shadow: 8px 10px 0 #794e51, 15px 20px 0 #49343c, 20px 29px 35px rgba(0, 0, 0, .45);
  transform: rotate(-8deg);
}

.portfolio-ring {
  position: absolute;
  width: 65%;
  height: 60%;
  border: 1px solid rgba(255, 178, 160, .45);
  border-radius: 50%;
  transform: rotate(35deg);
}

.iskcon-sun {
  color: #ffc274;
  font-size: 6rem;
  text-shadow: 0 0 45px rgba(255, 163, 83, .4);
}

.iskcon-line {
  position: absolute;
  width: 70%;
  height: 1px;
  background: rgba(255, 230, 195, .5);
  transform: rotate(-16deg);
}

.iskcon-line:last-child { transform: rotate(16deg); }

.stack {
  align-self: flex-start;
  margin-top: 4px;
  margin-bottom: 0;
  padding: 3px 8px;
  border: 1px solid rgba(255, 118, 94, .24);
  color: #ffab91;
  font-size: .68rem;
  font-weight: 650;
}

#projects article ul,
#certifications ul,
#achievements ul {
  padding-left: 19px;
  color: #bdb8ae;
  font-size: .86rem;
}

#projects article ul { margin-top: 9px; margin-bottom: 7px; }
#certifications ul,
#achievements ul { margin-top: 0; font-size: .98rem; }
li { margin-bottom: 7px; padding-left: 3px; }
li::marker { color: var(--accent); }

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 9px;
  color: var(--accent-bright);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

.project-link:hover { text-decoration: underline; }

#certifications,
#achievements {
  display: grid;
  align-items: start;
  grid-template-columns: .8fr 1.2fr;
  column-gap: 55px;
}

#certifications .section-kicker,
#achievements .section-kicker { grid-column: 1 / -1; }

#certifications h2,
#achievements h2 { grid-row: 2 / span 2; }

#certifications ul,
#achievements ul { margin-bottom: 0; }

#contact {
  margin: 80px 0 18px;
  padding: clamp(28px, 6vw, 74px);
  border: 1px solid rgba(255, 118, 94, .26);
  background:
    radial-gradient(ellipse at 90% 15%, rgba(255, 118, 94, .12), transparent 28rem),
    #181716;
}

#contact h2 { font-size: clamp(3.2rem, 8vw, 7rem); }

#contact > p:not(.section-kicker) {
  max-width: 570px;
  color: #c3beb4;
}

#contact .btn { margin-top: 12px; }

.contact-phone {
  display: inline-block;
  margin: 0 0 0 15px;
  color: var(--muted);
  font-size: .85rem;
}

.contact-phone a { color: var(--ink); }

footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 30px;
  color: var(--muted);
  font-size: .76rem;
}

footer p {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
}

footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }

.has-interactions .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1);
}

.has-interactions .reveal.is-visible { opacity: 1; transform: none; }
#projects article:nth-of-type(2n) { transition-delay: .08s; }

@keyframes cube-turn {
  from { transform: rotateX(-23deg) rotateY(-33deg); }
  to { transform: rotateX(337deg) rotateY(327deg); }
}

@keyframes cube-float {
  0%, 100% { transform: translateY(-7px) rotateZ(-3deg); }
  50% { transform: translateY(8px) rotateZ(3deg); }
}

@keyframes orbit-drift {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

@keyframes arrow-bob {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}

@media (max-width: 900px) {
  .hero { min-height: 780px; }
  .hero-stage { grid-template-columns: 1fr .75fr; gap: 10px; }
  h1 { font-size: clamp(4.2rem, 10vw, 7rem); }
  .hero-art { min-height: 420px; }
  .cube-wrap { transform: scale(.82); }
  .skill-groups { grid-template-columns: 1fr 1fr; }
  .skill-group:last-child { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .hero { min-height: 890px; padding: 13px 20px 22px; }
  .site-nav { min-height: 48px; }
  .nav-links { gap: 17px; }
  .nav-links a { font-size: .72rem; }
  .hero-kicker { margin: 48px 0 -26px; font-size: .59rem; }
  .hero-stage { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding: 54px 0 0; }
  h1 { font-size: clamp(4rem, 13.5vw, 6.1rem); }
  .hero-intro { max-width: 480px; margin-top: 22px; font-size: 1rem; }
  .hero-socials { margin-top: 23px; }
  .hero-art { min-height: 320px; margin-top: -5px; }
  .cube-wrap { transform: scale(.65); }
  .orbit { width: 65%; }
  .orbit-two { width: 56%; }
  .orbit-three { width: 75%; }
  .art-caption { right: 5%; bottom: 5%; }
  main,
  footer { width: calc(100% - 40px); }
  section { padding: 78px 0; }
  #summary { grid-template-columns: 1fr; }
  #summary h2 { margin-bottom: 14px; }
  .skill-groups,
  #projects { grid-template-columns: 1fr; }
  .skill-group:last-child { grid-column: auto; }
  .skill-group { min-height: 0; }
  .skill-group p { min-height: 0; }
  #projects > .section-kicker,
  #projects > h2 { grid-column: auto; }
  #projects article:nth-of-type(2n) { transition-delay: 0s; }
  #certifications,
  #achievements { grid-template-columns: 1fr; }
  #certifications h2,
  #achievements h2 { grid-row: auto; }
  #contact { margin-top: 48px; }
}

@media (max-width: 390px) {
  .hero { min-height: 870px; padding-right: 15px; padding-left: 15px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: .67rem; }
  h1 { font-size: 3.65rem; }
  .hero-art { min-height: 285px; }
  .contact-phone { display: block; margin: 13px 0 0; }
}

@media (hover: none), (pointer: coarse) {
  .hero-art { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .has-interactions .reveal { opacity: 1; transform: none; }
}

@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #222; }
  .hero { min-height: auto; padding: 0 0 20px; background: #fff; }
  .hero-stage { grid-template-columns: 1fr; }
  .hero-art,
  .site-nav,
  .skip,
  .scroll-cue,
  .hero-socials,
  .btn,
  .text-link,
  .project-link { display: none; }
  .hero-kicker,
  .section-kicker { color: #8b3d2c; }
  main,
  footer { width: 100%; }
  section,
  article,
  #contact { break-inside: avoid; background: #fff; color: #222; box-shadow: none; }
  section { padding: 18px 0; }
  #projects { grid-template-columns: 1fr 1fr; }
  .project-art { display: none; }
  h1 { font-size: 38px; }
}
