/* ===== SPLASH ===== */
#splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

#splash.hidden {
  opacity: 0;
  pointer-events: none;
}

#splash img {
  height: 80vh;
  width: auto;
  max-width: 50vw;
  display: block;
  object-fit: contain;
}

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

:root {
  --white: #ffffff;
  --black: #0a0a0a;
  --gray: #6b6b6b;
  --light-gray: #e8e8e8;
  --font-main: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", Menlo, monospace;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  --nav-height: 3.5rem;
  --max-width: 1400px;
  --transition: 0.2s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--black);
  text-decoration: none;
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.5;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  padding-top: calc(var(--nav-height) + var(--spacing-lg));
  padding-bottom: var(--spacing-xl);
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 1px solid var(--black);
  z-index: 100;
  display: flex;
  align-items: center;
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav__logo {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: var(--spacing-md);
}

.nav__links a {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.nav__links a.active {
  text-decoration: line-through;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 18px;
  position: relative;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--black);
  position: absolute;
  left: 0;
  transition: all var(--transition);
}

.nav__toggle span:nth-child(1) { top: 0; }
.nav__toggle span:nth-child(2) { top: 50%; }
.nav__toggle span:nth-child(3) { top: 100%; }

.nav__toggle.open span:nth-child(1) {
  top: 50%;
  transform: rotate(45deg);
}

.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.open span:nth-child(3) {
  top: 50%;
  transform: rotate(-45deg);
}

/* ===== HOME ===== */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height));
  padding-top: 0;
}

.hero__title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--spacing-md);
}

.hero__subtitle {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 400;
  color: var(--gray);
  max-width: 500px;
  line-height: 1.7;
}

/* ===== PROJECTS GRID ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-md);
}

.project-card {
  border: 1px solid var(--light-gray);
  transition: border-color var(--transition);
}

.project-card:hover {
  border-color: var(--black);
}

.project-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--light-gray);
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-card__image img {
  transform: scale(1.02);
}

.project-card__info {
  padding: var(--spacing-sm) var(--spacing-sm);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--light-gray);
}

.project-card__title {
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: lowercase;
}

.project-card__year {
  font-size: 0.75rem;
  color: var(--gray);
  font-family: var(--font-mono);
}

/* ===== ABOUT ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.about__text h2 {
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-bottom: var(--spacing-sm);
}

.about__text p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
  max-width: 540px;
}

.about__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--light-gray);
  overflow: hidden;
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__details {
  margin-top: var(--spacing-lg);
}

.about__details dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--spacing-xs) var(--spacing-md);
  font-size: 0.85rem;
}

.about__details dt {
  color: var(--gray);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding-top: 0.15em;
}

.about__details dd {
  font-weight: 400;
}

/* ===== CONTACT ===== */
.contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height));
}

.contact__heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-lg);
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.contact__links a {
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  width: fit-content;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--black);
}

.contact__links a:hover {
  opacity: 0.5;
}

/* ===== SECTION HEADER ===== */
.section-header {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--black);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.section-header__title {
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-header__count {
  font-size: 0.7rem;
  color: var(--gray);
  font-family: var(--font-mono);
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--black);
  padding: var(--spacing-sm) 0;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__text {
  font-size: 0.7rem;
  color: var(--gray);
  letter-spacing: 0.04em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  :root {
    --spacing-md: 1.25rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
  }

  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    border-top: 1px solid var(--black);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links a {
    font-size: 1.25rem;
  }

  .nav__toggle {
    display: block;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .about {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .about__image {
    order: -1;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2rem;
  }

  .projects-grid {
    gap: var(--spacing-sm);
  }
}
