*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0a0a0a;
  --bg1:      #111111;
  --bg2:      #1a1a1a;
  --border:   #222222;
  --border2:  #2e2e2e;
  --text:     #ededed;
  --sub:      #888888;
  --faint:    #444444;
  --white:    #ffffff;
  --green:    #3dd68c;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}


nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -.01em;
}
.nav-logo span { color: var(--green); }
.nav-links { display: flex; gap: 0; }
.nav-links a {
  font-size: 1rem;
  font-weight: 400;
  color: var(--sub);
  text-decoration: none;
  padding: .4rem .9rem;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg2); }


.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding-top: 56px;
}

.hero-bg-text {
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 150px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,0.55);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.hero-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding-top: 56px;
}

.hero-photo-wrap {
  width: clamp(220px, 30vw, 460px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.hero-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-photo {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(10%) contrast(1.04);
  mix-blend-mode: lighten;
}

.hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 2.5rem 3rem;
  gap: 2rem;
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 100%);
}

.hero-bottom-left {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 380px;
}

.hero-bottom-right {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
  align-items: center;
}

.hero-lead {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: 'Geist', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  border-radius: 8px;
  padding: .6rem 1.25rem;
  text-decoration: none;
  transition: opacity .15s, transform .1s;
  cursor: pointer;
  border: none;
}
.btn:hover { opacity: .85; transform: translateY(-1px); }
.btn-primary { background: var(--white); color: #000; }
.btn-ghost { background: transparent; color: var(--sub); border: 1px solid var(--border2); }
.btn-ghost:hover { color: var(--text); }


.about-editorial {
  background: var(--bg);
  overflow: hidden;
  padding-top: 56px;
  position: relative;
}

.about-type-stack {
  pointer-events: none;
  user-select: none;
  padding-top: 24px;
}

.about-line {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: clamp(80px, 17vw, 160px);
  color: var(--text);
  display: block;
  line-height: 0.86;
  letter-spacing: -.015em;
}

.about-line-1 { padding-left: 4%; }
.about-line-2 { padding-left: 30%; }

.about-body {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 3rem;
  padding: 3rem 4% 56px;
  align-items: start;
}

.about-photo-layer {
  width: 100%;
  margin-top: -120px;
}

.about-photo-layer img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(15%) contrast(1.06);
  object-fit: cover;
  object-position: center top;
  -webkit-mask-image:
    linear-gradient(to bottom, black 55%, transparent 100%),
    linear-gradient(to right,  transparent 0%, black 12%, black 88%, transparent 100%),
    linear-gradient(to top,    transparent 0%, black 6%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, black 55%, transparent 100%),
    linear-gradient(to right,  transparent 0%, black 12%, black 88%, transparent 100%),
    linear-gradient(to top,    transparent 0%, black 6%);
  mask-composite: intersect;
}

.about-body-right {
  padding-left: 0;
}

.about-body-right .about-p {
  font-size: .9rem;
  color: var(--sub);
  line-height: 1.85;
  margin-bottom: .9rem;
  text-align: justify;
}

.about-body-right .about-p strong {
  color: var(--text);
  font-weight: 500;
}

.about-body-right .kv-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-body-right .kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
}

.about-body-right .kv:first-child {
  border-top: 1px solid var(--border);
}

.about-body-right .kv-k {
  font-family: 'Geist Mono', monospace;
  font-size: .65rem;
  color: var(--faint);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.about-body-right .kv-v {
  color: var(--text);
}

.wrap { max-width: 900px; margin: 0 auto; padding: 0 2rem; }

section { padding: 80px 0; }

section h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: .75rem;
}
.h2-sub {
  font-size: .95rem;
  color: var(--sub);
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: 3rem;
}


.skills-scroll-section {
  width: 100%;
  overflow: hidden;
}

.skills-sticky-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  height: 520px;
}

.skills-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: sticky;
  top: 0;
  padding-right: 2rem;
}

.skills-heading {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--white);
  line-height: 1.1;
}

.skills-scroll-list {
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  height: 100%;
  scrollbar-width: none;
}
.skills-scroll-list::-webkit-scrollbar { display: none; }

.skills-scroll-inner {
  display: flex;
  flex-direction: column;
  padding: 160px 0;
}

.ss-item {
  scroll-snap-align: center;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.15;
  color: var(--clr, var(--faint));
  opacity: 0.25;
  transition: opacity .3s, transform .3s;
  padding: .15em 0;
  cursor: default;
  user-select: none;
}
.ss-item.active {
  opacity: 1;
  transform: translateX(6px);
}


.proj-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.proj-item {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 0;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: var(--bg1);
  border: 1px solid var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.3);
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s, transform .15s;
  align-items: stretch;
}
.proj-item:hover {
  border-color: var(--border2);
  box-shadow: 0 8px 48px rgba(35, 35, 35, 0.6), 0 2px 8px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

.proj-content {
  padding: 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .5rem;
}

.proj-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
  display: block;
  margin-bottom: .25rem;
}

.proj-desc {
  font-size: .82rem;
  color: var(--sub);
  line-height: 1.7;
  margin: 0;
}

.proj-techs { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .5rem; }
.proj-tech {
  font-family: 'Geist Mono', monospace;
  font-size: .58rem;
  color: var(--faint);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: .15rem .45rem;
}

.proj-thumb {
  flex-shrink: 0;
  border-radius: 0 12px 12px 0;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.proj-thumb svg {
  width: 100%;
  height: 100%;
  display: block;
}


.contact-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3rem;
  background: var(--bg1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.contact-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--white);
  margin-bottom: .75rem;
}
.contact-text p {
  font-size: .875rem;
  color: var(--sub);
  line-height: 1.75;
}
.contact-links { display: flex; flex-direction: column; gap: .5rem; }
.c-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  border: 1px solid var(--border2);
  border-radius: 8px;
  background: var(--bg);
  text-decoration: none;
  color: var(--sub);
  font-size: .875rem;
  transition: border-color .15s, color .15s, background .15s, transform .15s;
}
.c-link:hover { color: var(--text); background: var(--bg2); transform: translate(2px, -2px); }
.c-link-left { display: flex; align-items: center; gap: .6rem; }
.c-link-icon {
  width: 28px; height: 28px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
}



footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer p {
  font-family: 'Geist Mono', monospace;
  font-size: .65rem;
  color: var(--faint);
}



@media (max-width: 800px) {
  /* Hero */
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding-bottom: 2rem;
  }
  .hero-bg-text { font-size: 18vw; top: 15%; }
  .hero-center {
    position: relative;
    padding-top: 60px;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
  }
  .hero-photo-wrap {
    width: 70vw;
    max-width: 280px;
    margin: 0 auto;
  }
  .hero-bottom {
    position: relative;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    gap: 1.5rem;
    background: var(--bg);
    z-index: 3;
  }
  .hero-bottom-left { max-width: 100%; }
  .hero-lead { font-size: 1.4rem; line-height: 1.2; margin-bottom: 0; }
  .hero-bottom-right { width: 100%; justify-content: center; }

  /* About mobile */
  .about-editorial { padding-top: 40px; }

  .about-line { font-size: clamp(56px, 18vw, 100px); }
  .about-line-2 { padding-left: 18%; }

  .about-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 4% 48px;
  }

  .about-body-right { padding-left: 0; }

  .skills-sticky-wrap { grid-template-columns: 1fr; height: auto; }
  .skills-left { position: static; padding-right: 0; padding: 2rem 0 1rem; }
  .skills-scroll-list { height: 320px; }


  .contact-box { grid-template-columns: 1fr; gap: 2rem; }


  footer { flex-direction: column; gap: .5rem; text-align: center; }
}

@media (max-width: 500px) {
  .about-body {
    padding-top: 220px;
  }
  .about-line { font-size: 15vw; }
}
