:root {
  color-scheme: dark;
  --bg:#090c12;
  --surface:#10151f;
  --line:#ffffff14;
  --text:#f1f4fa;
  --muted:#929baa;
  --accent:#9cbbff;
  --warm:#aab8d0;
  --mono:'JetBrains Mono',monospace;
  --font:'Manrope','Inter',sans-serif
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:105px
}
body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:15px/1.75 var(--font);
  -webkit-font-smoothing:antialiased
}
::selection {
  background:var(--accent);
  color:var(--bg)
}
a {
  color:inherit;
  text-decoration:none
}
button {
  font:inherit
}
a,button {
  -webkit-tap-highlight-color:transparent
}
a:focus-visible,button:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:6px
}
svg {
  vertical-align:middle
}
button {
  cursor:pointer
}
p,h1,h2,h3 {
  margin-top:0
}
p {
  color:var(--muted)
}
.container {
  max-width:1180px;
  margin:auto;
  padding:0 40px
}
.section {
  padding:110px 0;
  scroll-margin-top:25px
}
.skip-link {
  position:fixed;
  top:10px;
  left:20px;
  transform:translateY(-150%);
  z-index:200;
  background:var(--accent);
  color:var(--bg);
  padding:10px 20px
}
.skip-link:focus {
  transform:none
}
.reading-progress {
  position:fixed;
  top:0;
  left:0;
  height:2px;
  background:var(--accent);
  width:0;
  z-index:110
}
.muted {
  color:#69736b
}
.highlight {
  color:var(--text)
}
#navbar {
  height:88px;
  position:fixed;
  top:0;
  width:100%;
  z-index:100;
  padding:0 max(40px,calc((100% - 1100px)/2));
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#141615e8;
  border-bottom:1px solid transparent;
  backdrop-filter:blur(18px);
  transition:border-color .25s,height .25s
}
#navbar.scrolled {
  height:72px;
  border-color:var(--line)
}
.nav-logo {
  font-size:34px;
  letter-spacing:-3px;
  font-weight:800
}
.logo-dot {
  color:var(--accent)
}
.nav-links {
  display:flex;
  gap:32px;
  align-items:center
}
.nav-link {
  font-size:12px;
  font-weight:600;
  color:var(--muted);
  position:relative;
  padding:9px 0;
  transition:color .2s
}
.nav-link:hover,.nav-link.active {
  color:var(--text)
}
.nav-link.active:after {
  content:'';
  position:absolute;
  bottom:0;
  left:0;
  width:16px;
  height:2px;
  background:var(--accent)
}
.nav-links .nav-link:last-child {
  border:1px solid #5b6655;
  padding:8px 19px;
  border-radius:5px;
  color:var(--accent)
}
.nav-links .nav-link:last-child:after {
  display:none
}
.nav-toggle {
  display:none;
  background:transparent;
  border:0;
  padding:12px;
  color:var(--text)
}
.nav-toggle span {
  display:block;
  width:23px;
  height:2px;
  margin:5px;
  background:currentColor;
  transition:transform .2s
}
.mobile-menu {
  display:none
}
.hero-section {
  min-height:790px;
  max-width:1180px;
  margin:auto;
  position:relative;
  padding:175px 40px 120px;
  display:grid;
  grid-template-columns:1.08fr 1fr;
  gap:35px;
  align-items:center
}
.hero-greeting {
  display:flex;
  align-items:center;
  gap:10px;
  font:10px var(--mono);
  letter-spacing:1.5px;
  color:var(--muted);
  margin-bottom:27px
}
.hero-name {
  font-size:clamp(64px,7.2vw,98px);
  line-height:1.03;
  letter-spacing:-6px;
  font-weight:500;
  margin-bottom:24px
}
.name-accent {
  color:var(--warm)
}
.hero-role {
  font-size:19px;
  font-weight:500;
  letter-spacing:-.4px;
  margin-bottom:16px
}
.hero-tagline {
  max-width:420px;
  font-size:14px;
  line-height:1.9;
  margin-bottom:29px
}
.hero-cta {
  display:flex;
  gap:12px;
  align-items:center
}
.btn {
  min-height:46px;
  display:inline-flex;
  gap:22px;
  align-items:center;
  justify-content:center;
  padding:12px 20px;
  border-radius:4px;
  font-size:12px;
  font-weight:700;
  transition:transform .2s,background .2s,border-color .2s
}
.btn:hover {
  transform:translateY(-3px)
}
.btn-primary {
  background:var(--accent);
  color:#1b2517
}
.btn-primary:hover {
  background:#edffd0
}
.btn-outline {
  border:1px solid var(--line)
}
.btn-outline:hover {
  border-color:var(--muted);
  background:var(--surface)
}
.hero-socials {
  display:flex;
  gap:20px;
  margin-top:29px
}
.social-icon {
  color:var(--muted);
  transition:color .2s,transform .2s
}
.social-icon:hover {
  color:var(--accent);
  transform:translateY(-2px)
}
.social-icon svg {
  width:17px;
  height:17px
}
.hero-bottom {
  position:absolute;
  bottom:25px;
  left:40px;
  right:40px;
  border-top:1px solid var(--line);
  padding-top:20px;
  display:flex;
  justify-content:space-between;
  color:var(--muted);
  font:9px var(--mono);
  letter-spacing:1px
}
.hero-bottom a {
  font:11px var(--font);
  letter-spacing:0
}
.hero-bottom a span {
  margin-left:18px;
  color:var(--accent)
}
.scroll-indicator {
  display:none
}
.section-header {
  display:flex;
  align-items:center;
  gap:17px;
  margin-bottom:45px
}
.section-number {
  font:11px var(--mono);
  color:var(--accent)
}
.section-title {
  font-size:clamp(26px,3vw,36px);
  font-weight:500;
  letter-spacing:-1.3px;
  line-height:1.3;
  margin:0
}
.section-line {
  flex:1;
  height:1px;
  background:var(--line);
  margin-left:25px
}
.about-section {
  border-top:1px solid var(--line);
  background:#181b18
}
.about-grid {
  display:grid;
  grid-template-columns:1.5fr 1fr;
  gap:80px
}
.about-text p {
  font-size:13px;
  line-height:1.95
}
.about-text .about-intro {
  color:var(--text);
  font-size:19px;
  line-height:1.7;
  letter-spacing:-.3px
}
.about-tags {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-top:25px
}
.tag {
  font-size:10px;
  color:var(--muted);
  border:1px solid var(--line);
  padding:4px 10px;
  border-radius:3px
}
.about-stats {
  display:grid;
  grid-template-columns:1fr 1fr;
  align-self:start;
  border-top:1px solid var(--line);
  border-left:1px solid var(--line)
}
.stat-card {
  padding:28px 20px;
  border-bottom:1px solid var(--line);
  border-right:1px solid var(--line)
}
.stat-number,.stat-plus {
  font-size:39px;
  letter-spacing:-2px;
  line-height:1.4
}
.stat-plus {
  font-size:22px;
  color:var(--accent);
  margin-left:4px
}
.stat-label {
  display:block;
  color:var(--muted);
  font:9px var(--mono);
  margin-top:8px
}
.timeline {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  border-top:1px solid var(--line)
}
.timeline-item {
  border-bottom:1px solid var(--line);
  padding:30px 30px 30px 0
}
.timeline-item:nth-child(even) {
  padding-left:30px;
  border-left:1px solid var(--line)
}
.timeline-card {
  position:relative;
  height:100%;
  padding-top:26px;
  transition:transform .25s
}
.timeline-item:hover .timeline-card {
  transform:translateY(-3px)
}
.timeline-badge {
  position:absolute;
  top:0;
  left:0;
  font:8px var(--mono);
  letter-spacing:1px;
  color:var(--accent);
  text-transform:uppercase
}
.timeline-org {
  font-size:19px;
  font-weight:500;
  letter-spacing:-.5px;
  line-height:1.4;
  margin-bottom:6px
}
.timeline-role {
  font-size:11px;
  color:var(--warm);
  margin-bottom:14px
}
.timeline-desc {
  font-size:12px;
  line-height:1.85;
  max-width:440px;
  margin-bottom:20px
}
.timeline-tech,.project-tech {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  font:8px var(--mono);
  color:var(--muted)
}
.timeline-tech span {
  padding-right:8px;
  border-right:1px solid var(--line)
}
.timeline-tech span:last-child {
  border:0
}
.timeline-dot,.timeline-line {
  display:none
}
.projects-section {
  background:#181b18;
  border-block:1px solid var(--line)
}
.projects-note {
  font-size:12px;
  margin-top:-20px;
  margin-bottom:30px
}
.projects-note a {
  color:var(--accent)
}
.projects-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px
}
.project-card {
  position:relative;
  border:1px solid var(--line);
  border-radius:7px;
  overflow:hidden;
  background:var(--surface);
  transition:border-color .25s,transform .25s,box-shadow .25s
}
.project-card:hover {
  border-color:#778765;
  transform:translateY(-5px);
  box-shadow:0 15px 30px #0002
}
.project-card-inner {
  padding:28px;
  height:100%;
  display:flex;
  flex-direction:column
}
.project-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:14px
}
.project-name {
  font-size:24px;
  letter-spacing:-.8px;
  font-weight:500;
  margin:0
}
.project-link-icon {
  display:flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border:1px solid var(--line);
  border-radius:50%;
  font-size:22px;
  color:var(--muted);
  transition:background .2s,color .2s
}
.project-link-icon svg {
  width:16px;
  height:16px
}
.project-link-icon:hover {
  background:var(--accent);
  color:var(--bg)
}
.project-desc {
  font-size:12px;
  line-height:1.9
}
.project-highlights {
  list-style:none;
  padding:0;
  margin:0 0 25px;
  font-size:11px;
  color:var(--muted)
}
.project-highlights li {
  position:relative;
  padding-left:14px;
  margin-bottom:6px
}
.project-highlights li:before {
  content:'↗';
  position:absolute;
  left:0;
  color:#889a78;
  font-size:10px
}
.project-tech {
  margin-top:auto
}
.project-tech span {
  padding:5px 9px;
  background:#252c24;
  border-radius:3px;
  color:#c1ceba
}
.project-icon {
  height:125px;
  margin:-28px -28px 25px;
  position:relative;
  overflow:hidden;
  border-bottom:1px solid var(--line);
  background:radial-gradient(ellipse at 70% 80%,#52634a50,transparent 60%),repeating-linear-gradient(0deg,transparent,transparent 23px,#82937212 24px),repeating-linear-gradient(90deg,transparent,transparent 23px,#82937212 24px)
}
.project-icon:before {
  position:absolute;
  font:55px var(--mono);
  color:#a4b999;
  left:30px;
  top:20px;
  letter-spacing:-5px
}
.project-card:nth-child(1) .project-icon:before {
  content:'[ focus ]';
  font-size:36px;
  top:32px;
  letter-spacing:-2px
}
.project-card:nth-child(2) .project-icon:before {
  content:'↗';
  left:45px;
  font-size:95px;
  top:-26px
}
.project-card:nth-child(2) .project-icon {
  background-color:#222522
}
.project-evenly .project-icon:before {
  content:'evenly';
  color:#dbd9be;
  letter-spacing:-4px;
  top:10px
}
.project-evenly .project-icon {
  background-color:#2c2c24
}
.project-card:nth-child(4) .project-icon:before {
  content:'+';
  left:35px;
  top:-14px;
  font-size:95px;
  font-weight:400
}
.project-card:nth-child(4) .project-icon {
  background-color:#202b2b
}
.skills-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:38px 70px
}
.skill-cat-title {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:14px;
  font-weight:500;
  margin-bottom:19px
}
.skill-cat-title svg {
  color:var(--accent);
  width:18px;
  stroke-width:1.4
}
.skill-tags-grid {
  display:flex;
  flex-wrap:wrap;
  gap:8px
}
.skill-tag {
  border:1px solid var(--line);
  border-radius:4px;
  color:var(--muted);
  padding:7px 12px;
  font-size:10px;
  transition:color .2s,border-color .2s
}
.skill-tag:hover {
  color:var(--accent);
  border-color:#778765
}
.connect-section {
  border-top:1px solid var(--line);
  background:radial-gradient(ellipse at 50% 100%,#2b37244a,transparent 70%)
}
.connect-intro {
  max-width:570px;
  font-size:14px;
  margin-bottom:35px
}
.connect-cards {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:15px
}
.connect-card {
  display:block;
  padding:24px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#1b1e1c;
  transition:transform .2s,border-color .2s
}
.connect-card:hover {
  border-color:#7b8d6a;
  transform:translateY(-4px)
}
.connect-card-content {
  position:relative
}
.connect-icon svg {
  width:22px;
  height:22px;
  color:var(--accent);
  margin-bottom:20px
}
.connect-card h3 {
  font-size:16px;
  margin-bottom:7px;
  font-weight:500
}
.connect-card p {
  font-size:10px;
  margin:0;
  overflow-wrap:anywhere
}
.connect-arrow {
  position:absolute;
  right:0;
  top:0;
  color:var(--muted)
}
.footer {
  border-top:1px solid var(--line);
  padding:27px 0;
  position:relative
}
.footer-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px
}
.footer-socials {
  display:flex;
  gap:15px
}
.footer-social-icon svg {
  width:14px;
  height:14px;
  color:var(--muted)
}
.footer-text,.footer-year {
  font:9px var(--mono);
  color:var(--muted);
  margin:0
}
.back-to-top {
  position:fixed;
  bottom:22px;
  right:22px;
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  color:var(--accent);
  background:#242c22;
  border:1px solid #5a6c4d;
  border-radius:5px;
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:.2s;
  z-index:50
}
.back-to-top.visible {
  opacity:1;
  visibility:visible;
  transform:none
}
.back-to-top svg {
  width:18px;
  height:18px
}
.reveal-item {
  transition:opacity .65s,transform .65s
}
.reveal-item.pending-reveal {
  opacity:0;
  transform:translateY(18px)
}
@media(min-width:1100px) {
  .project-card-inner {
    padding:32px
  }
  .project-icon {
    margin:-32px -32px 27px
  }
  
}
@media(max-width:900px) {
  .hero-section {
    gap:20px;
    padding-top:150px;
    min-height:740px
  }
  .hero-name {
    font-size:76px
  }
  .about-grid {
    gap:35px
  }
  .nav-links {
    gap:22px
  }
  .hero-greeting {
    font-size:8px;
    letter-spacing:1px
  }
  .hero-bottom {
    font-size:8px
  }
  .connect-card {
    padding:20px
  }
  .footer-year {
    font-size:8px
  }
  
}
@media(max-width:680px) {
  .container {
    padding:0 24px
  }
  .section {
    padding:70px 0
  }
  #navbar {
    padding:0 24px;
    height:72px
  }
  .nav-links {
    display:none
  }
  .nav-toggle {
    display:block
  }
  .nav-toggle.open span:first-child {
    transform:translateY(7px) rotate(45deg)
  }
  .nav-toggle.open span:nth-child(2) {
    opacity:0
  }
  .nav-toggle.open span:last-child {
    transform:translateY(-7px) rotate(-45deg)
  }
  .mobile-menu {
    display:flex;
    position:fixed;
    top:72px;
    left:0;
    right:0;
    z-index:99;
    background:#1b1e1cfb;
    backdrop-filter:blur(16px);
    padding:18px 24px 25px;
    flex-direction:column;
    gap:8px;
    border-bottom:1px solid var(--line);
    opacity:0;
    visibility:hidden;
    transform:translateY(-10px);
    transition:.2s
  }
  .mobile-menu.open {
    opacity:1;
    visibility:visible;
    transform:none
  }
  .mobile-link {
    padding:9px 4px;
    font-size:14px;
    color:var(--muted)
  }
  .hero-section {
    display:block;
    min-height:0;
    padding:130px 24px 100px
  }
  .hero-name {
    font-size:80px;
    letter-spacing:-5px
  }
  .hero-greeting {
    font-size:8px;
    margin-bottom:26px
  }
  .hero-tagline {
    max-width:440px
  }
  .hero-role {
    font-size:18px
  }
  .hero-cta {
    gap:10px
  }
  .btn {
    padding:11px 16px;
    gap:16px;
    font-size:11px
  }
  .hero-bottom {
    bottom:25px;
    left:24px;
    right:24px;
    font-size:7px;
    letter-spacing:.1px
  }
  .hero-bottom a {
    font-size:9px
  }
  .hero-bottom a span {
    margin-left:6px
  }
  .section-header {
    gap:12px;
    margin-bottom:30px
  }
  .section-line {
    margin-left:5px
  }
  .section-title {
    font-size:27px
  }
  .about-grid {
    grid-template-columns:1fr;
    gap:30px
  }
  .about-text .about-intro {
    font-size:18px
  }
  .about-stats {
    grid-template-columns:repeat(4,1fr)
  }
  .stat-card {
    padding:18px 12px
  }
  .stat-number {
    font-size:31px
  }
  .stat-plus {
    font-size:17px
  }
  .stat-label {
    font-size:7px;
    line-height:1.6
  }
  .timeline {
    grid-template-columns:1fr
  }
  .timeline-item,.timeline-item:nth-child(even) {
    padding:25px 0;
    border-left:0
  }
  .timeline-desc {
    max-width:none
  }
  .projects-grid {
    grid-template-columns:1fr
  }
  .project-card-inner {
    padding:24px
  }
  .project-icon {
    margin:-24px -24px 23px
  }
  .projects-note {
    margin-top:-8px
  }
  .skills-grid {
    grid-template-columns:1fr;
    gap:30px
  }
  .connect-cards {
    grid-template-columns:1fr
  }
  .connect-card {
    padding:20px
  }
  .connect-card-content {
    padding-left:44px
  }
  .connect-icon {
    position:absolute;
    left:0;
    top:3px
  }
  .connect-icon svg {
    width:22px;
    margin:0
  }
  .connect-card h3 {
    font-size:15px
  }
  .connect-arrow {
    top:10px
  }
  .connect-card p {
    font-size:11px
  }
  .footer-inner {
    flex-wrap:wrap;
    justify-content:center;
    gap:17px
  }
  .footer-year {
    width:100%;
    text-align:center
  }
  .footer-text {
    font-size:8px
  }
  .back-to-top {
    bottom:14px;
    right:14px
  }
  
}
@media(max-width:370px) {
  .hero-name {
    font-size:68px
  }
  .hero-bottom>span {
    max-width:170px;
    line-height:1.7
  }
  .about-stats {
    grid-template-columns:1fr 1fr
  }
  
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*:before,*:after {
    animation:none!important;
    transition:none!important
  }
  .reveal-item.pending-reveal {
    opacity:1;
    transform:none
  }
  
}


/* Refined portfolio composition */
.hero-section { overflow: clip; }
body { font-size: 15px; }
.container { max-width: 1200px; padding-inline: 48px; }
.section { padding-block: 112px; }
#navbar { background: #090c12d9; padding-inline: max(48px,calc((100% - 1104px)/2)); }
.nav-links .nav-link:last-child { border-color: #ffffff30; color: var(--text); }
.hero-section { max-width: 1200px; min-height: min(900px,100svh); padding: 180px 48px 130px; grid-template-columns: 1.14fr 1fr; gap: 0; isolation: isolate; }
.hero-content { position: relative; z-index: 2; }
.hero-name { font-size: clamp(75px,8.5vw,118px); font-weight: 500; letter-spacing: -7px; line-height: 1.03; margin-bottom: 27px; }
.hero-greeting { font-size: 9px; letter-spacing: 2px; color: #a4afc2; }
.status-dot { width: 5px; height: 5px; background: var(--accent); box-shadow: 0 0 12px #9cbbff80; }
.hero-role { color: var(--text); font-size: 14px; font-weight: 400; letter-spacing: -.25px; margin-bottom: 20px; }
.hero-role span { color: #5f6c83; margin-inline: 8px; }
.hero-tagline { max-width: 400px; font-size: 15px; line-height: 1.9; margin-bottom: 32px; }
.btn { min-height: 48px; padding: 13px 21px; border-radius: 6px; gap: 25px; }
.btn-primary { background: #e5ecff; color: #121a2e; }
.btn-primary:hover { background: #fff; box-shadow: 0 5px 30px #9cbbff25; }
.btn-outline { border-color: #ffffff25; color: #d4dbea; }
.btn-outline:hover { background: #ffffff08; border-color: #ffffff50; }
.hero-socials { margin-top: 31px; }
.hero-bottom { left: 48px; right: 48px; bottom: 30px; padding-top: 22px; color: #7c879b; font-size: 8px; }
.hero-bottom .muted { margin-inline: 8px; }
.hero-bottom a { color: #b8c2d4; }
.hero-bottom a span { display: inline-block; animation: scroll-cue 3s ease-in-out infinite; }
.section-title { font-size: 32px; letter-spacing: -1px; }
.section-number { color: #8299c6; }
.about-section,.projects-section { background: #0d1119; }
.about-text .about-intro { color: #cdd6e6; font-size: 20px; }
.about-grid { grid-template-columns: 1.55fr 1fr; }
.about-stats { background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; gap: 1px; }
.stat-card { background: #0d1119; border: 0; padding: 25px; }
.stat-number { font-size: 42px; }
.stat-label { color: #8995aa; }
.timeline { border: 0; gap: 0 50px; }
.timeline-item,.timeline-item:nth-child(even) { position: relative; border: 0; border-top: 1px solid var(--line); padding: 30px 0; }
.timeline-item::before { content: ''; position: absolute; left: 0; top: -1px; width: 0; height: 1px; background: linear-gradient(90deg,#9cbbff,transparent); transition: width .5s; }
.timeline-item:hover::before { width: 100%; }
.timeline-item:hover .timeline-card { transform: none; }
.timeline-role { color: #b3bfd5; }
.timeline-tech span { border: 0; padding: 0; }
.timeline-tech span+span::before { content: '/'; margin-right: 8px; color: #3a465c; }
.timeline-badge,.timeline-tech { color: #91a9da; }
.projects-note { font-size: 13px; }
.projects-grid { gap: 24px; }
.project-card { background: linear-gradient(145deg,#121925,#0e141e); border: 1px solid #ffffff12; border-radius: 10px; }
.project-card:hover { border-color: #9cbbff50; box-shadow: 0 20px 55px #0004; transform: translateY(-6px); }
.project-card-inner { padding: 30px; }
.project-desc { font-size: 13px; }
.project-link-icon { color: #9caecc; }
.project-link-icon:hover { background: #dae5ff; color: #101827; }
.project-tech span { background: #ffffff05; border: 1px solid #ffffff0c; color: #9cafcf; }
.project-highlights li::before { color: #7b95c0; }
/* Abstract project covers, rather than decorative placeholder text. */
.project-icon { height: 178px; margin: -30px -30px 28px; border-color: #ffffff0c; background: radial-gradient(ellipse at 50% 110%,#485fa847,transparent 70%),#0b1019; }
.project-icon::before,.project-icon::after { content: ''; position: absolute; transition: transform .8s cubic-bezier(.2,.65,.3,1); }
.project-card:nth-child(1) .project-icon::before { content: ''; width: 180px; height: 108px; left: calc(50% - 90px); top: 44px; border: 1px solid #91a9da50; border-radius: 8px; background: repeating-linear-gradient(0deg,transparent 0 22px,#91a9da1a 22px 23px),linear-gradient(135deg,#1b2a46,#0c1424); box-shadow: 0 20px 50px #0006; transform: rotate(-6deg); }
.project-card:nth-child(1) .project-icon::after { width: 65px; height: 65px; border: 7px solid #a5beef; border-right-color: #a5beef20; border-radius: 50%; top: 60px; left: calc(50% - 32px); }
.project-card:nth-child(2) .project-icon { background: radial-gradient(ellipse at 50% 120%,#3c997f35,transparent 70%),#0b1317; }
.project-card:nth-child(2) .project-icon::before { content: ''; width: 230px; height: 80px; left: calc(50% - 115px); top: 60px; background: linear-gradient(0deg,#78d6ba35,transparent); clip-path: polygon(0 80%,15% 60%,27% 70%,40% 30%,52% 40%,65% 15%,80% 25%,100% 0,100% 100%,0 100%); }
.project-card:nth-child(2) .project-icon::after { width: 230px; height: 80px; left: calc(50% - 115px); top: 56px; background: #91ddc2; clip-path: polygon(0 80%,15% 60%,27% 70%,40% 30%,52% 40%,65% 15%,80% 25%,100% 0,100% 3%,80% 28%,65% 18%,52% 43%,40% 33%,27% 73%,15% 63%,0 83%); }
.project-evenly .project-icon { background: radial-gradient(ellipse at 50% 130%,#8174d64a,transparent 70%),#10101c; }
.project-evenly .project-icon::before { content: ''; width: 180px; height: 100px; left: calc(50% - 100px); top: 43px; border-radius: 10px; border: 1px solid #b9aaff50; background: linear-gradient(135deg,#373050,#171729); transform: rotate(-10deg); box-shadow: 0 15px 45px #0005; }
.project-evenly .project-icon::after { content: '='; display: grid; place-items: center; font: 64px var(--font); color: #d4c8ff; width: 150px; height: 90px; left: calc(50% - 55px); top: 54px; border: 1px solid #cbbdff60; border-radius: 10px; background: linear-gradient(130deg,#4d416d,#211d34); transform: rotate(8deg); box-shadow: 0 15px 45px #0005; }
.project-card:nth-child(4) .project-icon { background: radial-gradient(ellipse at 50% 120%,#528fb535,transparent 70%),#0c141b; }
.project-card:nth-child(4) .project-icon::before { content: ''; width: 150px; height: 85px; left: calc(50% - 75px); top: 49px; border: 1px solid #8ec8e34a; border-radius: 10px; background: repeating-linear-gradient(90deg,transparent 0 17px,#89bcd526 17px 19px),repeating-linear-gradient(0deg,#15232e 0 17px,#8ec8e326 17px 19px); transform: perspective(300px) rotateX(25deg) rotateZ(-8deg); box-shadow: 0 15px 35px #0006; }
.project-card:hover .project-icon::before { transform: translateY(-6px) rotate(-3deg); }
.project-card:hover .project-icon::after { transform: translateY(5px) rotate(3deg); }
.skill-tag { color: #99a7bd; border-color: #ffffff14; border-radius: 5px; font-size: 11px; }
.skill-tag:hover { color: #d8e5ff; border-color: #9cbbff50; background: #9cbbff07; }
.connect-section { background: radial-gradient(ellipse at 50% 150%,#4b66902b,transparent 65%); }
.connect-card { background: #11172280; border-color: #ffffff16; border-radius: 8px; }
.connect-card:hover { background: #151e2e; border-color: #9cbbff50; }
.connect-icon svg { color: #b4c9f2; }
.back-to-top { background: #152035e6; border-color: #7896d04a; }
.hero-greeting { animation: enter 1s both; }
.hero-name { animation: enter 1s .1s both; }
.hero-role { animation: enter 1s .2s both; }
.hero-tagline { animation: enter 1s .3s both; }
.hero-cta { animation: enter 1s .4s both; }
.hero-socials { animation: enter 1s .5s both; }
.reveal-item { transition: opacity .75s,transform .75s,border-color .3s,box-shadow .3s; transition-delay: var(--reveal-delay,0ms),var(--reveal-delay,0ms),0ms,0ms; }
@keyframes enter { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes scroll-cue { 50% { transform: translateY(5px); } }
@media (max-width: 960px) {
  .hero-section { min-height: 780px; padding-top: 165px; }
  .hero-name { font-size: 89px; letter-spacing: -6px; }
  .hero-role { font-size: 12px; }
  .about-grid { gap: 40px; }
}
@media (max-width: 680px) {
  .container { padding-inline: 24px; }
  .section { padding-block: 75px; }
  #navbar { height: 74px; padding-inline: 24px; }
  .mobile-menu { top: 74px; background: #0d131ff5; }
  .hero-section { display: block; min-height: 0; padding: 132px 24px 100px; overflow: hidden; }
  .hero-name { font-size: clamp(77px,17vw,112px); letter-spacing: -5px; margin-bottom: 24px; }
  .hero-greeting { font-size: 8px; letter-spacing: 1.5px; }
  .hero-role { font-size: 12px; }
  .hero-role span { margin-inline: 5px; }
  .hero-tagline { font-size: 14px; max-width: 380px; }
  .btn { padding: 12px 17px; gap: 20px; font-size: 11px; }
  .hero-bottom { left: 24px; right: 24px; bottom: 25px; font-size: 7px; letter-spacing: .2px; }
  .hero-bottom .muted { margin-inline: 3px; }
  .hero-bottom a { font-size: 9px; }
  .hero-bottom a span { margin-left: 9px; }
  .section-title { font-size: 27px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-text .about-intro { font-size: 19px; }
  .stat-card { padding: 18px 12px; }
  .stat-number { font-size: 31px; }
  .timeline { gap: 0; }
  .timeline-item,.timeline-item:nth-child(even) { padding: 27px 0; }
  .project-card-inner { padding: 25px; }
  .project-icon { margin: -25px -25px 25px; height: 170px; }
}
@media (max-width: 370px) { .hero-role { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; }
  .reveal-item.pending-reveal { opacity: 1; transform: none; }
}

/* Atmospheric backdrop: slow light movement and scroll-responsive depth. */
body { isolation: isolate; }
.about-section,.projects-section { background: #0d1119bd; }
.skills-section,.experience-section { background: #090c121c; }
.section-header { transition: opacity .8s,transform .8s; transition-delay: var(--reveal-delay,0ms); }
.section-header.pending-reveal { opacity: 0; transform: translateY(20px); }
.section-line { transform-origin: left; transition: transform 1.1s cubic-bezier(.2,.65,.3,1); }
.pending-reveal .section-line { transform: scaleX(.15); }
.reveal-item { transition-timing-function: cubic-bezier(.2,.65,.3,1); }
.project-card,.connect-card { transition-duration: .4s; }
.project-card:focus-within { border-color: #9cbbff50; box-shadow: 0 14px 40px #0003; }
.btn svg,.project-link-icon { transition: transform .3s cubic-bezier(.2,.65,.3,1); }
.btn:hover svg { transform: translateX(3px); }
/* One shared indicator glides between navigation items. */
.nav-links { position: relative; isolation: isolate; }
.nav-link { z-index: 1; transition: color .25s; }
.nav-link.active::after { display: none; }
.nav-links .nav-link:last-child { border-color: transparent; }
.nav-indicator { position: absolute; top: 0; left: 0; height: 100%; width: 0; border: 1px solid #a9c6ff25; border-radius: 7px; background: linear-gradient(135deg,#9cbbff14,#9cbbff06); box-shadow: inset 0 1px 0 #ffffff08; opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.22,1,.36,1),width .45s cubic-bezier(.22,1,.36,1),opacity .25s; }
.nav-indicator.shown { opacity: 1; }
#navbar { transition: height .35s,background .35s,border-color .35s,box-shadow .35s; }
#navbar.scrolled { background: #090c12e8; box-shadow: 0 8px 35px #0002; }
.mobile-link { border-radius: 5px; transition: background .25s,color .25s,padding-left .25s; }
.mobile-link:hover,.mobile-link:focus-visible { background: #9cbbff0c; color: #d4e1ff; padding-left: 12px; }
@media(max-width:680px) {
}
@media(prefers-reduced-motion:reduce) {
  .section-header.pending-reveal { opacity: 1; transform: none; }
  .pending-reveal .section-line { transform: none; }
  .nav-indicator { transition: none; }
}

/* Three.js scene and content composition */
body { background: #080c14; isolation: isolate; }
.scene-backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: radial-gradient(ellipse at 85% 65%,#15314980,transparent 65%),#080c14; }
#three-background { width: 100%; height: 100%; display: block; }
.scene-shade { position: absolute; inset: 0; background: linear-gradient(90deg,#080c14e8 0%,#080c14a6 32%,#080c140a 78%),linear-gradient(0deg,#080c1430,transparent 35%,#080c1440); }
.hero-section { display: flex; align-items: center; min-height: 100svh; padding-top: 155px; padding-bottom: 145px; }
.hero-content { max-width: 660px; width: 65%; }
.hero-name { font-size: clamp(82px,9.5vw,132px); line-height: 1.01; letter-spacing: -.065em; margin-bottom: 30px; }
.name-accent { color: #bfd2e7; }
.hero-greeting { font-size: 10px; letter-spacing: 2.2px; margin-bottom: 28px; }
.hero-role { font-size: 15px; margin-bottom: 20px; color: #d2dfed; }
.hero-tagline { max-width: 430px; font-size: 15px; line-height: 1.9; }
.hero-bottom { border-top-color: #abc9e51a; }
.about-section,.projects-section { background: #0b101bdb; border-color: #b6cfe517; }
.experience-section,.skills-section { background: #080c147d; }
.connect-section { background: linear-gradient(0deg,#0b1221dc,#0b122180); }
.section-header { margin-bottom: 50px; }
.section-title { font-size: clamp(28px,3vw,38px); font-weight: 500; letter-spacing: -.035em; }
.section-number { color: #8cb7d4; font-size: 11px; }
.section-line { background: linear-gradient(90deg,#abc9e533,#abc9e508); }
.timeline-item { padding-block: 34px !important; }
.timeline-desc { font-size: 13px; }
.timeline-org { font-size: 21px; }
.project-card { background: linear-gradient(145deg,#142032eb,#0b1220f2); border-color: #b9d5fa1c; }
.project-card-inner { padding: 32px; }
.project-icon { height: 205px; margin: -32px -32px 30px; }
.project-icon::before,.project-icon::after { translate: 0 var(--cover-shift,0px); transition: transform .7s,translate .15s linear; }
.project-card:hover { border-color: #a0c3ff70; box-shadow: 0 20px 55px #0004,0 0 25px #78b4ff08; }
.project-name { font-size: 25px; }
.project-desc { color: #a6b3c8; }
.project-tech span { padding: 7px 10px; }
.btn-primary { background: #d9eafb; color: #0a1828; }
.btn-primary:hover { background: #eef7ff; box-shadow: 0 8px 28px #84c5ff26; }
.skill-tag { background: #0d15215c; }
.connect-card { background: #111c2bd1; }
.reveal-item.pending-reveal { transform: translateY(36px); }
.reveal-item { transition-duration: .85s,.85s,.3s,.3s; transition-timing-function: cubic-bezier(.16,1,.3,1); }
.section-header.pending-reveal { transform: translateY(25px); }
#navbar { background: #080c1480; backdrop-filter: blur(22px); }
#navbar.scrolled { background: #080c14e6; border-color: #b6cfe51f; }
.nav-indicator { background: linear-gradient(135deg,#85c8ed17,#9cbbff08); border-color: #8cb7d430; }
@media(min-width:1000px) {
  .projects-grid { column-gap: 30px; row-gap: 38px; }
  .project-card:nth-child(even) { top: 44px; }
  .projects-grid { padding-bottom: 44px; }
}
@media(max-width:680px) {
  .hero-section { min-height: 92svh; padding: 135px 24px 120px; }
  .hero-content { width: 100%; }
  .hero-name { font-size: clamp(76px,18vw,108px); }
  .hero-role { font-size: 12px; }
  .hero-greeting { font-size: 8px; }
  .hero-tagline { font-size: 14px; max-width: 340px; }
  .scene-shade { background: linear-gradient(90deg,#080c14c9,#080c1460),linear-gradient(0deg,transparent,#080c1480); }
  .section-header { margin-bottom: 32px; }
  .project-card-inner { padding: 25px; }
  .project-icon { height: 180px; margin: -25px -25px 25px; }
  .timeline-item { padding-block: 27px !important; }
}
@media(prefers-reduced-motion:reduce) {
  .reveal-item.pending-reveal,.section-header.pending-reveal { opacity: 1; transform: none; }
  .project-icon::before,.project-icon::after { translate: none; }
}

/* Coordinated scroll sequence: hero exit, masked titles and layered project reveals. */
.hero-content {
  translate: 0 var(--hero-travel,0px);
  scale: var(--hero-scale,1);
  opacity: var(--hero-opacity,1);
  transform-origin: left center;
}
.hero-content:focus-within { opacity: 1; }
.motion-reveal {
  opacity: 0;
  transform: translate3d(0,44px,0);
  transition: opacity .9s cubic-bezier(.16,1,.3,1),transform 1.1s cubic-bezier(.16,1,.3,1),border-color .3s,box-shadow .3s;
  transition-delay: var(--motion-delay,0ms),var(--motion-delay,0ms),0ms,0ms;
}
.motion-reveal.motion-entered,.motion-reveal:focus-within {
  opacity: 1;
  transform: translate3d(0,0,0);
}
.section-title { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.section-title > span { display: block; }
.section-header.motion-reveal { opacity: 1; transform: none; }
.section-header.motion-reveal .section-title > span {
  transform: translateY(115%);
  transition: transform 1.05s cubic-bezier(.16,1,.3,1);
}
.section-header.motion-entered .section-title > span { transform: none; }
.section-header.motion-reveal .section-number { opacity: 0; transition: opacity .6s .15s; }
.section-header.motion-entered .section-number { opacity: 1; }
.section-header.motion-reveal .section-line { transform: scaleX(0); transition: transform 1.25s cubic-bezier(.16,1,.3,1) .12s; }
.section-header.motion-entered .section-line { transform: scaleX(1); }
.project-card.motion-reveal {
  transform: perspective(1400px) translateY(64px) rotateX(4deg) scale(.975);
  transform-origin: center bottom;
}
.project-card.motion-entered,.project-card.motion-reveal:focus-within {
  transform: perspective(1400px) translateY(0) rotateX(0) scale(1);
}
.project-card.motion-entered:hover { transform: translateY(-6px); }
.project-icon::before,.project-icon::after {
  scale: var(--cover-scale,1);
  translate: 0 var(--cover-shift,0px);
  transition: transform .7s cubic-bezier(.16,1,.3,1),translate .12s linear,scale .12s linear;
}
.timeline-item::before {
  width: 100%;
  transform: scaleX(var(--entry-progress,0));
  transform-origin: left;
  background: linear-gradient(90deg,#9bd7ec99,#99b8ff22,transparent);
  transition: transform .16s linear;
}
.timeline-item:hover::before { transform: scaleX(1); }
.stat-card.motion-reveal { transform: translateY(25px) scale(.97); }
.stat-card.motion-entered { transform: none; }
.connect-card.motion-reveal { transform: translateY(35px); }
.connect-card.motion-entered { transform: none; }
.connect-card.motion-entered:hover { transform: translateY(-4px); }
@media(max-width:680px) {
  .motion-reveal { transform: translateY(26px); }
  .project-card.motion-reveal { transform: translateY(35px); }
  .project-card.motion-entered { transform: none; }
}
@media(prefers-reduced-motion:reduce) {
  .hero-content { translate: none; scale: 1; opacity: 1; }
  .motion-reveal,.project-card.motion-reveal,.stat-card.motion-reveal,.connect-card.motion-reveal { opacity: 1; transform: none; }
  .section-header.motion-reveal .section-title > span { transform: none; }
  .section-header.motion-reveal .section-number { opacity: 1; }
  .section-header.motion-reveal .section-line,.timeline-item::before { transform: none; }
  .project-icon::before,.project-icon::after { translate: none; scale: 1; }
}
