*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0a0a0a;
  --white: #f5f4f0;
  --white-dim: rgba(245,244,240,0.6);
  --white-ultra-dim: rgba(245,244,240,0.15);
  --gray-line: rgba(245,244,240,0.12);
  --black-line: rgba(10,10,10,0.1);
  --text-dark: #0a0a0a;
  --text-dark-dim: rgba(10,10,10,0.5);
  --text-dark-dimmer: rgba(10,10,10,0.35);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-line);
  transition: opacity 0.3s;
}
nav.scrolled { opacity: 0.88; }
.nav-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245,244,240,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-contact {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(245,244,240,0.3);
  padding: 7px 18px;
  transition: border-color 0.2s, background 0.2s;
}
.nav-contact:hover {
  border-color: var(--white);
  background: rgba(245,244,240,0.06);
}

/* SECTIONS */
section { width: 100%; }

/* HERO */
.hero {
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 48px 80px;
  position: relative;
  overflow: hidden;
}
.hero-mark {
  position: absolute;
  top: 80px;
  right: 48px;
  font-size: 180px;
  font-weight: 800;
  color: rgba(245,244,240,0.04);
  line-height: 1;
  user-select: none;
  letter-spacing: -0.05em;
}
.hero-number {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,244,240,0.3);
  margin-bottom: 32px;
}
.hero-headline {
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 900px;
  margin-bottom: 28px;
}
.hero-body {
  font-size: 17px;
  font-weight: 400;
  color: var(--white-dim);
  max-width: 540px;
  line-height: 1.65;
  margin-bottom: 44px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(245,244,240,0.25);
  padding: 14px 28px;
  transition: border-color 0.2s, gap 0.2s;
}
.hero-cta:hover {
  border-color: var(--white);
  gap: 16px;
}
.hero-cta span { opacity: 0.6; font-size: 18px; }

/* PAGE HEADER (for /work, /about) */
.page-header {
  background: var(--white);
  padding: 160px 48px 80px;
  border-bottom: 1px solid var(--black-line);
}
.page-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dark-dimmer);
  margin-bottom: 32px;
}
.page-title {
  font-size: clamp(56px, 9vw, 120px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
}
.page-intro {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-dark-dim);
  max-width: 640px;
}

/* WORK SECTION */
.work-section {
  background: var(--white);
  padding: 100px 48px;
}
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dark-dimmer);
  margin-bottom: 48px;
}
.project-list { list-style: none; }
.project-item {
  border-top: 1px solid var(--black-line);
  padding: 32px 0;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 0 24px;
  align-items: start;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}
.project-item:last-child { border-bottom: 1px solid var(--black-line); }
.project-item:hover .project-name { opacity: 0.6; }
.project-item:hover .project-arrow { opacity: 1; transform: translateX(4px); }
.project-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark-dimmer);
  padding-top: 3px;
  letter-spacing: 0.04em;
}
.project-main {}
.project-name {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  transition: opacity 0.2s;
}
.project-desc {
  font-size: 15px;
  color: var(--text-dark-dim);
  max-width: 480px;
  line-height: 1.55;
}
.project-meta {
  text-align: right;
  min-width: 180px;
}
.project-tags {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark-dimmer);
  display: block;
  margin-bottom: 6px;
}
.project-year {
  font-size: 13px;
  color: var(--text-dark-dimmer);
}
.project-arrow {
  display: none;
  opacity: 0;
  font-size: 18px;
  color: var(--text-dark-dimmer);
  transition: opacity 0.2s, transform 0.2s;
  padding-top: 5px;
}
.work-all {
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
}
.work-all a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--black-line);
  padding-bottom: 2px;
  transition: gap 0.2s;
}
.work-all a:hover { gap: 14px; }

/* ABOUT STRIP */
.about-strip {
  background: var(--white);
  border-top: 1px solid var(--black-line);
  padding: 80px 48px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: end;
}
.about-text {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  max-width: 700px;
}
.about-more {
  text-align: right;
}
.about-more a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--black-line);
  padding-bottom: 2px;
  transition: gap 0.2s;
}
.about-more a:hover { gap: 14px; }

/* PORTRAIT */
.portrait-section {
  background: var(--white);
  padding: 80px 48px 0;
}
.portrait-img {
  width: 100%;
  max-width: 360px;
  display: block;
}

/* ABOUT PAGE BODY */
.about-body {
  background: var(--white);
  padding: 80px 48px 100px;
}
.about-arc {
  max-width: 700px;
}
.about-arc p {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 28px;
}
.about-arc p:last-child { margin-bottom: 0; }

.stack-section {
  background: var(--white);
  border-top: 1px solid var(--black-line);
  padding: 80px 48px;
}
.stack-table {
  display: grid;
  grid-template-columns: 220px 1fr;
  max-width: 860px;
  gap: 0;
}
.stack-row {
  display: contents;
}
.stack-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark-dimmer);
  padding: 24px 24px 24px 0;
  border-top: 1px solid var(--black-line);
}
.stack-value {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dark);
  padding: 24px 0;
  border-top: 1px solid var(--black-line);
  line-height: 1.6;
}
.stack-row:last-child .stack-label,
.stack-row:last-child .stack-value {
  border-bottom: 1px solid var(--black-line);
}

.about-meta {
  background: var(--white);
  border-top: 1px solid var(--black-line);
  padding: 64px 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
}
.meta-item {}
.meta-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark-dimmer);
  display: block;
  margin-bottom: 10px;
}
.meta-value {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-dark);
}

/* CONTACT */
.contact-section {
  background: var(--black);
  color: var(--white);
  padding: 100px 48px 64px;
}
.contact-status {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,244,240,0.55);
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.contact-status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--white);
  border-radius: 50%;
}
.contact-rate {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245,244,240,0.3);
  margin-bottom: 32px;
  padding-left: 17px;
}
.contact-headline {
  font-size: clamp(52px, 8vw, 100px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 64px;
}
.contact-links {
  display: flex;
  gap: 40px;
  align-items: center;
  border-top: 1px solid var(--gray-line);
  padding-top: 32px;
  margin-bottom: 64px;
}
.contact-link {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245,244,240,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-link:hover { color: var(--white); }
.footer-bar {
  border-top: 1px solid var(--gray-line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245,244,240,0.35);
}
.footer-year {
  font-size: 13px;
  color: rgba(245,244,240,0.25);
}

/* ANIMATIONS */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .hero { padding: 0 24px 60px; }
  .hero-mark { display: none; }
  .work-section, .contact-section { padding: 64px 24px; }
  .about-strip { padding: 64px 24px; grid-template-columns: 1fr; }
  .about-more { text-align: left; }
  .project-item { grid-template-columns: 36px 1fr; }
  .project-meta { display: none; }
  .contact-links { flex-direction: column; align-items: flex-start; gap: 20px; }
  .page-header { padding: 120px 24px 60px; }
  .portrait-section { padding: 60px 24px 0; }
  .about-body, .stack-section { padding: 60px 24px; }
  .stack-table { grid-template-columns: 1fr; }
  .stack-label { padding: 20px 0 8px; }
  .stack-value { padding: 0 0 20px; border-top: none; }
  .stack-row:last-child .stack-label { border-bottom: none; }
  .about-meta { grid-template-columns: 1fr; padding: 48px 24px; gap: 24px; }
}
