/* ============================================================
   Tokens
   ============================================================ */
:root {
  --bg: #F8F7F4;
  --text: #111111;
  --text-secondary: #888888;
  --border: #E0DDD8;
  --font-display: 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition:
    background 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease),
    border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(248, 247, 244, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: opacity 0.2s var(--ease);
}
.nav__logo:hover { opacity: 0.5; }

.nav__links {
  display: flex;
  gap: 40px;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease);
  position: relative;
  padding-bottom: 3px;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover,
.nav__link.active { color: var(--text); }
.nav__link:hover::after,
.nav__link.active::after { transform: scaleX(1); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  background: none;
  border: none;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  transform-origin: center;
}
.nav__burger.open span:first-child { transform: translateY(7.5px) rotate(45deg); }
.nav__burger.open span:last-child  { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   Mobile Menu
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu__links {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 12vw, 4rem);
  font-weight: 400;
  transition: opacity 0.2s var(--ease);
}
.mobile-menu__link:hover { opacity: 0.35; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100svh;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

/* Right-side image */
.hero__image {
  position: absolute;
  top: 0;
  right: 0;
  width: 52%;
  height: 100%;
  z-index: 0;
}
.hero__image-fill {
  width: 100%;
  height: 100%;
  background: #C9C5BE;
}
.hero__image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 220px;
  background: linear-gradient(90deg, var(--bg), transparent);
  z-index: 1;
  pointer-events: none;
}

/* Inner layout */
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
  min-height: calc(100svh - var(--nav-height));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Meta row */
.hero__meta {
  display: flex;
  gap: 56px;
  padding-top: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hero__meta-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.hero__meta-value {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Bottom: headline + scroll indicator */
.hero__bottom {
  padding-bottom: 56px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.hero__text {
  display: flex;
  flex-direction: column;
}

.hero__name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 11vw, 10.5rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.hero__name--light {
  font-weight: 300;
  letter-spacing: -0.025em;
}

.hero__tagline {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-top: 32px;
}

.hero__scroll {
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease);
  animation: scrollBob 2.4s ease-in-out infinite;
}
.hero__scroll:hover { color: var(--text); }

@keyframes scrollBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

/* ============================================================
   Shared Section
   ============================================================ */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 64px;
  gap: 24px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

/* ============================================================
   Work
   ============================================================ */
.work {
  padding: 120px 0;
}

.work__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  padding: 6px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.filter-btn:hover {
  color: var(--text);
  border-color: var(--text);
}
.filter-btn--active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 48px;
}

.project-card {
  transition: opacity 0.3s var(--ease);
}
.project-card.hidden {
  display: none;
}

.project-card__image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 20px;
}
.project-card__placeholder {
  width: 100%;
  height: 100%;
  transition: transform 0.7s var(--ease);
}
.project-card__link:hover .project-card__placeholder {
  transform: scale(1.04);
}

.project-card__info {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 16px;
}
.project-card__tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  grid-column: 1;
  grid-row: 1;
}
.project-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  grid-column: 1;
  grid-row: 2;
  transition: opacity 0.2s var(--ease);
}
.project-card__link:hover .project-card__title { opacity: 0.5; }
.project-card__year {
  font-size: 0.8rem;
  color: var(--text-secondary);
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}

/* ============================================================
   About
   ============================================================ */
.about {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.about__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 96px;
  align-items: start;
}

.about__text .section-title {
  margin-bottom: 36px;
}

.about__bio {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 20px;
}
.about__bio--secondary { color: var(--text-secondary); margin-bottom: 0; }

.about__skills {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.skills-group__label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-weight: 400;
}

.skills-group__list {
  display: flex;
  flex-direction: column;
}
.skills-group__list li {
  font-size: 0.9375rem;
  font-weight: 300;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.skills-group__list li:first-child {
  border-top: 1px solid var(--border);
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
  padding: 160px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact__inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.contact__headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
}

.contact__email {
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--text);
  padding-bottom: 3px;
  margin-bottom: 40px;
  transition: opacity 0.2s var(--ease);
}
.contact__email:hover { opacity: 0.4; }

.contact__socials {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact__social-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease);
}
.contact__social-link:hover { color: var(--text); }
.contact__social-sep { color: var(--border); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.footer__inner a {
  transition: color 0.2s var(--ease);
}
.footer__inner a:hover { color: var(--text); }

/* ============================================================
   Scroll Animations
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.work__grid .project-card:nth-child(2) { transition-delay: 0.08s; }
.work__grid .project-card:nth-child(3) { transition-delay: 0.16s; }
.work__grid .project-card:nth-child(4) { transition-delay: 0.08s; }
.work__grid .project-card:nth-child(5) { transition-delay: 0.16s; }
.work__grid .project-card:nth-child(6) { transition-delay: 0.24s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }

  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__inner { padding: 0 24px; }

  .hero__image { width: 100%; opacity: 0.18; }
  .hero__image::before { display: none; }
  .hero__inner { padding: 0 24px; }
  .hero__meta { gap: 28px; flex-wrap: wrap; padding-top: 28px; }
  .hero__bottom { flex-direction: column; align-items: flex-start; padding-bottom: 40px; }
  .hero__name { font-size: clamp(3.5rem, 16vw, 6rem); }
  .hero__scroll { display: none; }

  .work { padding: 80px 0; }
  .work__grid { grid-template-columns: 1fr; gap: 40px; }
  .section-header { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }

  .about { padding: 80px 0; }

  .contact { padding: 100px 0; }

  .footer__inner { flex-direction: column; gap: 8px; text-align: center; }
}
