:root {
  --bg: #fafaf9;
  --text: #1a1a1a;
  --muted: #8a8a8a;
  --line: #e6e6e3;
  --accent: #1a1a1a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container,
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: blur(8px);
}

.logo {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.logo-full {
  display: none;
}

.site-header.scrolled .logo-short {
  display: none;
}

.site-header.scrolled .logo-full {
  display: inline-block;
  animation: fadeDown 0.3s ease;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding: 140px 0 120px;
}

.hero-text {
  min-width: 0;
}

.hero-portrait {
  width: 160px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
}

.hero h1 {
  font-size: clamp(40px, 8vw, 96px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-left: -0.05em;
}

.hero-alias {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.hero-sub {
  margin-top: 24px;
  color: var(--muted);
  max-width: 320px;
}

.section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 40px;
}

.work-index {
  margin-top: 56px;
  max-width: 420px;
}

.index-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 6px 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s ease;
}

.index-link::after {
  content: "+";
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.3s ease;
}

.index-link:hover {
  color: var(--muted);
}

.index-item.open .index-link::after {
  transform: rotate(45deg);
}

.index-projects {
  display: none;
  list-style: none;
}

.index-item.open .index-projects {
  display: block;
  animation: fadeDown 0.3s ease;
}

.index-projects li a {
  display: inline-block;
  padding: 6px 0;
  margin-left: 16px;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.index-projects li a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 720px;
}

.about-text {
  color: var(--text);
  font-weight: 300;
  font-size: 14px;
}

.about-text strong {
  font-weight: 600;
}

.skills-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  max-width: 720px;
}

.skills-list li {
  font-size: 13px;
  color: var(--muted);
}

.skills-list li:not(:last-child)::after {
  content: "/";
  margin: 0 12px;
  color: var(--line);
}

.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-email {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 300;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
  align-self: flex-start;
  padding-bottom: 4px;
  transition: border-color 0.2s ease;
}

.contact-email:hover {
  border-color: var(--text);
}

.social-links {
  display: flex;
  gap: 24px;
}

.social-links a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--text);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 40px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

.project-hero {
  padding: 140px 0 64px;
}

.project-hero .section-label {
  margin-bottom: 24px;
}

.project-hero h1 {
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
}

.project-meta {
  margin-top: 20px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.project-description {
  max-width: 640px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 300;
}

.slider-wrap {
  max-width: 420px;
}

.slider {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #efefec;
  border: 1px solid var(--line);
  cursor: pointer;
}

.slider.squares {
  aspect-ratio: 1 / 1;
}

.slider.adaptive {
  transition: aspect-ratio 0.4s ease;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.slide.active {
  opacity: 1;
}

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

.slider-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.slider-arrows {
  display: flex;
  gap: 16px;
}

.slider-arrow {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 15px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.slider-arrow:hover {
  color: var(--text);
}

.slider-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.slider-count {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.fullsize-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.fullsize-btn:hover {
  color: var(--text);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.gallery-group + .gallery-group {
  margin-top: 64px;
}

.gallery-title {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 20px;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 80px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.project-nav a:hover {
  color: var(--text);
}

.showcase-wrap {
  max-width: 840px;
  margin: 0 auto;
}

.showcase {
  display: grid;
}

.showcase-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.showcase-slide.active {
  opacity: 1;
  visibility: visible;
}

.showcase-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: 48px;
}

.showcase-arrow {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 15px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.showcase-arrow:hover {
  color: var(--text);
}

.entry-title {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.entry-media {
  position: relative;
  width: 100%;
  max-width: 840px;
  aspect-ratio: 16 / 10;
  background: #efefec;
  overflow: hidden;
}

.media-note {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.entry-media img,
.entry-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-media video {
  object-fit: contain;
}

.entry-link {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.entry-link:hover {
  color: var(--text);
  border-color: var(--text);
}

.entry-description {
  max-width: 560px;
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
}

.entry-description a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-description a:hover {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 640px) {
  .hero {
    padding: 90px 0 70px;
  }

  .hero-portrait {
    width: 110px;
  }

  .section {
    padding: 56px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-hero {
    padding: 90px 0 48px;
  }

  .slider-wrap {
    max-width: none;
  }
}
