:root {
  --background: #f7f4ef;
  --foreground: #111111;
  --muted: rgba(17, 17, 17, 0.58);
  --faint: rgba(17, 17, 17, 0.18);
  --soft: rgba(17, 17, 17, 0.06);
  --panel: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.home {
  min-height: 100vh;
}

img,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-shell {
  width: min(100%, 1440px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.logo,
.nav-link {
  pointer-events: auto;
  text-decoration: none;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.logo {
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  color: var(--muted);
  transition: color 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--foreground);
}

.home-grid {
  min-height: calc(100vh - 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 28px;
  padding-top: 76px;
}

.hero-panel,
.portrait-panel {
  border: 1px solid var(--foreground);
  min-height: 660px;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 5vw, 64px);
}

.hello {
  margin: 0;
  max-width: 7em;
  font-size: clamp(78px, 14vw, 190px);
  line-height: 0.86;
  letter-spacing: -0.075em;
  font-weight: 400;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.choice-card {
  min-height: 230px;
  padding: 26px 24px 22px;
  border: 1px solid var(--foreground);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: start;
  text-align: center;
  gap: 24px;
  text-decoration: none;
  overflow: hidden;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.choice-card:hover {
  background: var(--foreground);
  color: var(--background);
  transform: translateY(-2px);
}

.choice-title {
  min-width: 0;
  align-self: start;
  justify-self: center;
  font-size: clamp(32px, 3.35vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.052em;
  font-weight: 400;
}

.choice-arrow {
  justify-self: center;
  align-self: end;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1;
}

.portrait-panel {
  position: relative;
  overflow: hidden;
  background: var(--soft);
}

.portrait-panel img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 660px;
  object-fit: cover;
  object-position: 50% 32%;
  filter: grayscale(8%) contrast(1.02);
}

.page-main {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 146px 28px 80px;
}

.page-title {
  margin: 0 0 72px;
  font-size: clamp(56px, 10vw, 142px);
  line-height: 0.88;
  letter-spacing: -0.07em;
  font-weight: 400;
}

.page-intro {
  display: grid;
  grid-template-columns: minmax(170px, 0.48fr) minmax(0, 1.52fr);
  gap: 32px;
  padding-top: 30px;
  border-top: 1px solid var(--foreground);
  margin-bottom: 80px;
}

.pop-intro {
  margin-bottom: 56px;
}

.eyebrow {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  margin: 0;
  max-width: 820px;
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 400;
}

.lede.readable {
  max-width: 760px;
  font-size: clamp(22px, 2.45vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-align: justify;
  hyphens: auto;
}

.centered-section {
  display: flex;
  justify-content: center;
}

.ossia-section {
  margin-bottom: 52px;
}

.info-card {
  border: 1px solid var(--foreground);
  padding: 30px;
  min-height: 220px;
  background: transparent;
}

.ossia-card {
  width: min(100%, 660px);
  text-align: center;
}

.info-card h2,
.projects-heading {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 0.98;
  letter-spacing: -0.052em;
  font-weight: 400;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
}

.big-link,
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  padding: 16px 20px;
  border: 1px solid var(--foreground);
  text-decoration: none;
  font-size: 18px;
  transition: background 220ms ease, color 220ms ease;
}

.big-link:hover,
.contact-button:hover {
  background: var(--foreground);
  color: var(--background);
}

.playlist-plain {
  width: min(100%, 760px);
  margin: 0 auto;
}

.playlist-plain iframe {
  display: block;
  width: 100%;
  border: 0;
}

.contact-section {
  margin-top: 72px;
  text-align: center;
}

.projects-list {
  margin-top: 32px;
  border-top: 1px solid var(--foreground);
}

.project-item {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 34px;
  padding: 34px 0;
  border-bottom: 1px solid var(--faint);
  align-items: start;
}

.project-image-link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--foreground);
  background: var(--soft);
  text-decoration: none;
}

.project-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 360ms ease, filter 360ms ease;
  filter: grayscale(10%) contrast(1.02);
}

.project-image-link:hover .project-image {
  transform: scale(1.03);
  filter: grayscale(0%) contrast(1.05);
}

.project-copy {
  padding-top: 2px;
}

.project-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 400;
}

.project-description {
  margin: 0 0 24px;
  max-width: 760px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.35;
}

.meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-pill {
  border: 1px solid var(--faint);
  padding: 9px 12px;
  font-size: 14px;
  color: var(--muted);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  font-size: 17px;
}

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

.imprint-content {
  border-top: 1px solid var(--foreground);
  padding-top: 30px;
  max-width: 860px;
}

.imprint-content h2 {
  margin: 44px 0 16px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 400;
}

.imprint-content h2:first-child {
  margin-top: 0;
}

.imprint-content p,
.imprint-content li {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.imprint-content p {
  margin: 0 0 18px;
}

.imprint-content ul {
  margin: 0 0 22px;
  padding-left: 22px;
}

.footer {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 0 28px 32px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--foreground);
}

@media (max-width: 1060px) {
  .choice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    padding: 22px 20px 0;
  }

  .site-shell {
    padding: 20px;
  }

  .home-grid {
    grid-template-columns: 1fr;
    padding-top: 20px;
  }

  .hero-panel,
  .portrait-panel {
    min-height: auto;
  }

  .portrait-panel img {
    min-height: 560px;
  }

  .page-intro,
  .project-item {
    grid-template-columns: 1fr;
  }

  .page-main {
    padding-top: 78px;
  }

  .lede.readable {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    gap: 18px;
  }

  .nav {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }

  .choice-card {
    min-height: 170px;
  }

  .hero-panel {
    padding: 28px;
  }

  .portrait-panel img {
    min-height: 460px;
  }

  .page-main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .project-image {
    aspect-ratio: 16 / 10;
  }

  .footer {
    padding-left: 20px;
    padding-right: 20px;
    flex-direction: column;
  }
}
