*{
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

:root{
  --bg-dark: #0d1117;
  --bg-darker: #080b11;
  --text-main: #f5f7fb;
  --text-muted: #b3b7c4;
  --accent: #58ffc5;
  --accent-strong: #9b7bff;
  --card-dark: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --radius-lg: 24px;
  font-size: 16px;
}

html{
  scroll-behavior: smooth;
}

body{
  font-family: 'Space Grotesk', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(88,255,197,0.08), transparent 40%),
              radial-gradient(circle at 80% 0%, rgba(155,123,255,0.15), transparent 45%),
              var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
}

body.nav-open{
  overflow: hidden;
}

.grid-overlay{
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.grid-overlay:after{
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 30%, rgba(88,255,197,0.15), transparent 55%);
}

a{
  color: inherit;
  text-decoration: none;
}

ul{
  list-style: none;
}

.site-header{
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 5vw;
  background: rgba(8,11,17,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand a{
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.nav-toggle{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  color: inherit;
}

.nav-toggle span{
  width: 18px;
  height: 2px;
  background: currentColor;
  display: block;
  transition: transform .3s ease, opacity .3s ease;
}

body.nav-open .nav-toggle span:first-child{
  transform: translateY(4px) rotate(45deg);
}

body.nav-open .nav-toggle span:last-child{
  transform: translateY(-4px) rotate(-45deg);
}

.site-nav{
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.site-nav a{
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color .2s ease;
}

.site-nav a:hover{
  color: var(--text-main);
}

.btn{
  border: 1px solid transparent;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all .25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn.primary{
  background: var(--accent);
  color: #041c16;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(88,255,197,0.35);
}

.btn.primary:hover{
  transform: translateY(-2px);
}

.btn.secondary{
  border-color: rgba(255,255,255,0.3);
  color: var(--text-main);
}

.btn.secondary:hover{
  border-color: var(--accent);
  color: var(--accent);
}

.btn.ghost{
  border-color: rgba(255,255,255,0.2);
  color: var(--text-muted);
  padding-inline: 0.95rem;
}

.btn.ghost:hover{
  border-color: var(--accent);
  color: var(--text-main);
}

main{
  padding: 0 5vw 5rem;
  position: relative;
  z-index: 1;
}

.hero{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 4rem 0 3rem;
  align-items: center;
  position: relative;
}
.hero__media{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.photo-card{
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card-dark);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.photo-card img{
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.photo-card figcaption{
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.photo-card span{
  color: var(--text-muted);
  font-size: 0.9rem;
}

.scroll-hint{
  writing-mode: vertical-rl;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  letter-spacing: 0.4em;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  animation: pulse 2.5s infinite;
}

@keyframes pulse{
  0%{opacity: 0.2; transform: translateY(-50%) translateX(0);}
  50%{opacity: 1; transform: translateY(-50%) translateX(-6px);} 
  100%{opacity: 0.2; transform: translateY(-50%) translateX(0);}
}

.hero__content h1{
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero__content p{
  color: var(--text-muted);
  max-width: 60ch;
}

.hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.eyebrow{
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.hero__meta{
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: var(--card-dark);
  display: grid;
  gap: 1rem;
}

.hero__meta li{
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.95rem;
}

.meta-label{
  color: var(--text-muted);
}

.meta-value{
  font-weight: 600;
}

.section{
  margin-top: 4rem;
}

.section-heading{
  margin-bottom: 2rem;
}

.section-heading h2{
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 720px;
}

.about__content{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  background: var(--card-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
}

.about__content ul li{
  padding-left: 1rem;
  position: relative;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.about__content ul li:before{
  content: '•';
  color: var(--accent);
  position: absolute;
  left: 0;
}

.projects .section-heading{
  text-align: left;
}

.card-section{
  position: relative;
}

.single-card .cols{
  justify-content: center;
}

.single-card .col{
  width: min(320px, 100%);
}

.bizcard .front .inner small{
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.1em;
}

.wrapper{
  width: 90%;
  margin: 0 auto;
  max-width: 80rem;
}

.cols{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.col{
  width: calc(25% - 2rem);
  margin: 1rem;
  cursor: pointer;
}

.container{
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
	-webkit-perspective: 1000px;
	        perspective: 1000px;
}

.front,
.back{
  background-size: cover;
	background-position: center;
	-webkit-transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
	transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
	-o-transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
	transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
	transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1), -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
	-webkit-backface-visibility: hidden;
	        backface-visibility: hidden;
	text-align: center;
	min-height: 280px;
	height: auto;
	border-radius: 10px;
	color: #fff;
	font-size: 1.5rem;
}

.back{
  background: #cedce7;
  background: -webkit-linear-gradient(45deg,  #cedce7 0%,#596a72 100%);
  background: -o-linear-gradient(45deg,  #cedce7 0%,#596a72 100%);
  background: linear-gradient(45deg,  #cedce7 0%,#596a72 100%);
}

.front:after{
	position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    content: '';
    display: block;
    opacity: .6;
    background-color: #000;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
    border-radius: 10px;
}
.container:hover .front,
.container:hover .back{
    -webkit-transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    -o-transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1), -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.back{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.inner{
    -webkit-transform: translateY(-50%) translateZ(60px) scale(0.94);
    transform: translateY(-50%) translateZ(60px) scale(0.94);
    top: 50%;
    position: absolute;
    left: 0;
    width: 100%;
    padding: 2rem;
    font-size: .7em;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    outline: 1px solid transparent;
    -webkit-perspective: inherit;
    perspective: inherit;
    z-index: 2;
}

.container .back{
    -webkit-transform: rotateY(180deg);
            transform: rotateY(180deg);
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
}

.container .front{
    -webkit-transform: rotateY(0deg);
            transform: rotateY(0deg);
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
}

.container:hover .back{
  -webkit-transform: rotateY(0deg);
          transform: rotateY(0deg);
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
}

.container:hover .front{
  -webkit-transform: rotateY(-180deg);
          transform: rotateY(-180deg);
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
}

.front .inner p{
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.front .inner p:after{
  content: '';
  width: 4rem;
  height: 2px;
  position: absolute;
  background: #C6D4DF;
  display: block;
  left: 0;
  right: 0;
  margin: 0 auto;
  bottom: -.75rem;
}

.front .inner span{
  color: rgba(255,255,255,0.75);
  font-weight: 400;
}

.front .inner small{
  font-size: 0.75rem;
}

.back .inner a{
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #041c16;
  background: var(--accent);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.contact__card{
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(88,255,197,0.15), rgba(155,123,255,0.12));
  padding: 2rem;
}

.contact__actions{
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.contact__list{
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem;
  background: var(--card-dark);
  display: grid;
  gap: 1.25rem;
}

.contact__list li{
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact__list span{
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
}

.site-footer{
  padding: 2rem 5vw 4rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
}

.site-footer a{
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--accent);
}

@media screen and (max-width: 64rem){
  .col{
    width: calc(33.333333% - 2rem);
  }
}

@media screen and (max-width: 48rem){
  .site-header{
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }
  .nav-toggle{
    display: inline-flex;
  }
  .site-nav{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(8,11,17,0.95);
    border-bottom: 1px solid transparent;
    padding: 0;
    gap: 0.75rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease, border-color .35s ease;
  }
  body.nav-open .site-nav{
    max-height: 480px;
    padding: 1rem 5vw 1.5rem;
    border-color: var(--border);
  }
  .site-nav a,
  .site-nav .btn{
    width: 100%;
    text-align: center;
  }
  .hero{
    grid-template-columns: 1fr;
  }
  .col{
    width: calc(50% - 2rem);
  }
}

@media screen and (max-width: 32rem){
  .col{
    width: 100%;
    margin: 0 0 2rem 0;
  }
  .hero__meta{
    grid-template-columns: 1fr;
  }
  main{
    padding: 0 1.5rem 4rem;
  }
  .photo-card img{
    height: 260px;
  }
  .btn{
    width: 100%;
  }
}