:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #8b8b8b;
  --line: #c9c9c9;
  --radius: 6px;
  --container-max: 1760px;
  --hero-fold-offset: clamp(8rem, 17vh, 11rem);
}

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: #111111;
  color: #ffffff;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100%, var(--container-max));
  margin-inline: auto;
  padding-inline: clamp(16px, 2vw, 48px);
}

@media (min-width: 901px) {
  .container {
    padding-inline: calc(clamp(16px, 2vw, 48px) + 50px);
  }
}

.site-header {
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 0;
  mix-blend-mode: difference;
}

.header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1;
}

.site-header a {
  color: #ffffff;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.125rem;
  font-weight: 600;
}

.hero-section {
  padding-top: clamp(0.25rem, 0.6vw, 0.75rem);
  padding-bottom: clamp(1.2rem, 3vh, 2rem);
}

.hero-media {
  width: min(100%, calc((100svh - var(--hero-fold-offset)) * 16 / 9));
  margin-inline: auto;
  background-color: #101010;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255, 231, 130, 0.95), rgba(255, 231, 130, 0) 42%),
    radial-gradient(circle at 82% 74%, rgba(96, 199, 255, 0.95), rgba(96, 199, 255, 0) 44%),
    linear-gradient(135deg, #1f1446 0%, #0c4f6f 46%, #5b1f2d 100%);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
}

.intro-text {
  max-width: none;
  width: 100%;
  margin: clamp(2rem, 6vw, 4.5rem) 0 0;
  font-size: clamp(1.95rem, 4.4vw, 3.75rem);
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.work-section {
  padding-top: clamp(4rem, 11vw, 8.5rem);
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.section-label {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.project-grid {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1rem, 1.8vw, 1.5rem);
  row-gap: clamp(2rem, 4vw, 3rem);
}

.project-card {
  margin: 0;
}

.project-thumb {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background-color: #181818;
  background-image: linear-gradient(140deg, var(--thumb-a, #1a5f9e), var(--thumb-b, #ee7d34));
  background-size: cover;
  background-position: center;
}

.project-card:nth-child(1) .project-thumb {
  --thumb-a: #314d92;
  --thumb-b: #5db8e4;
}

.project-card:nth-child(2) .project-thumb {
  --thumb-a: #6a3a96;
  --thumb-b: #ff934f;
}

.project-card:nth-child(3) .project-thumb {
  --thumb-a: #145c4d;
  --thumb-b: #f3d250;
}

.project-card:nth-child(4) .project-thumb {
  --thumb-a: #80395d;
  --thumb-b: #f7a7a0;
}

.project-card:nth-child(5) .project-thumb {
  --thumb-a: #1f3c88;
  --thumb-b: #9fd3c7;
}

.project-card:nth-child(6) .project-thumb {
  --thumb-a: #3b1f2b;
  --thumb-b: #fca652;
}

.project-caption {
  margin: 0.45rem 0 0;
  font-size: clamp(1.15rem, 1.6vw, 1.6rem);
  line-height: 1.3;
  color: var(--muted);
  font-weight: 600;
}

.site-footer {
  padding-bottom: clamp(2.5rem, 5vw, 4.25rem);
}

.footer-inner {
  border-top: 1px solid var(--line);
  padding-top: clamp(1.25rem, 2.8vw, 2rem);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
}

.footer-contact h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-contact a {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: clamp(1.55rem, 2.8vw, 2.8rem);
  line-height: 1;
  color: var(--muted);
  font-weight: 600;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1.15rem, 1.6vw, 1.6rem);
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .header-inner {
    align-items: center;
    gap: 1rem;
  }

  .nav-list {
    gap: 1rem;
    font-size: 1rem;
  }

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-list {
    justify-content: flex-start;
  }
}
