:root {
  --bg: #fcfcfc;
  --bg-soft: #fafafa;
  --fg: #111111;
  --muted: #626262;
  --muted-2: #8c8c8c;
  --line: rgba(17, 17, 17, 0.1);
  --line-soft: rgba(17, 17, 17, 0.06);
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --chip: #f3f3f3;
  --shadow-soft: 0 12px 40px rgba(10, 10, 10, 0.06);
  --shadow-nav: 0 10px 28px rgba(10, 10, 10, 0.05);
  --max-width: 1160px;
  --gutter: clamp(1rem, 2.1vw, 1.75rem);
  --section-gap: clamp(4.5rem, 8vw, 8rem);
  --header-offset: 7rem;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: 5.5rem;
}

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

iframe,
video {
  border: 0;
}

img {
  height: auto;
}

a {
  color: inherit;
}

main,
.site-footer {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

main {
  position: relative;
}

main::before {
  content: "";
  position: absolute;
  inset: 0 var(--gutter);
  pointer-events: none;
  background-image:
    linear-gradient(to right,
      transparent 0,
      transparent calc(50% - 0.5px),
      rgba(17, 17, 17, 0.06) calc(50% - 0.5px),
      rgba(17, 17, 17, 0.06) calc(50% + 0.5px),
      transparent calc(50% + 0.5px),
      transparent 100%),
    linear-gradient(to right,
      transparent 0,
      transparent calc(25% - 0.5px),
      rgba(17, 17, 17, 0.035) calc(25% - 0.5px),
      rgba(17, 17, 17, 0.035) calc(25% + 0.5px),
      transparent calc(25% + 0.5px),
      transparent calc(75% - 0.5px),
      rgba(17, 17, 17, 0.035) calc(75% - 0.5px),
      rgba(17, 17, 17, 0.035) calc(75% + 0.5px),
      transparent calc(75% + 0.5px),
      transparent 100%);
  opacity: 1;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0.8rem 0.5rem 0;
  overflow-x: clip;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.99), rgba(255, 255, 255, 0.50) 65%, rgba(255, 255, 255, 0));
  backdrop-filter: blur(12px);
}

.header-inner {
  position: relative;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 3.9rem;
  padding: 0 1rem;
}

.site-mark {
  position: absolute;
  left: max(0.25rem, env(safe-area-inset-left));
  top: 50%;
  transform: translateY(-50%);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 1.2vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}

.header-spacer {
  display: none;
}

.top-nav {
  width: fit-content;
  max-width: min(100%, 980px);
  margin: 0 auto;
  display: flex;
  gap: 0.28rem;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0.15rem;
  background: rgba(255, 255, 255, 0.058);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  box-shadow: var(--shadow-nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.top-nav a {
  position: relative;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
  padding: 0.78rem 0.98rem;
  border-radius: 999px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.top-nav a.is-active {
  color: var(--fg);
  background: rgba(17, 17, 17, 0.045);
  outline: none;
}

.section-block {
  position: relative;
  padding-top: var(--section-gap);
}

.section-block:first-of-type {
  padding-top: clamp(5.5rem, 11vw, 8rem);
}

.anchor-section {
  scroll-margin-top: calc(var(--header-offset) + 1rem);
}

.section-heading-wrap {
  display: block;
  margin-bottom: clamp(2.4rem, 4vw, 3.25rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.section-index {
  display: none;
}

.project-kicker,
.project-text h4,
.gallery-count,
.about-group h3 {
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.72rem;
}

h1,
h2,
h3,
.project-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(1.85rem, 4.7vw, 3.3rem);
  line-height: 0.96;
  text-align: left;
  max-width: 12ch;
}

#immersive-sound h2 {
  max-width: 17ch;
}

#immersive-experience h2 {
  max-width: 16ch;
}

h3 {
  font-size: 1rem;
  line-height: 1.2;
}

p,
li {
  font-size: 0.98rem;
  line-height: 1.72;
}



.project-list {
  display: grid;
  gap: clamp(4rem, 7vw, 6rem);
}

.project-card {
  position: relative;
  padding-top: clamp(1.6rem, 2vw, 2rem);
  border-top: 1px solid var(--line);
}

.project-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4.2rem;
  height: 1px;
  background: var(--fg);
}

.project-media {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 1.65rem;
}

.project-media-frame,
.placeholder-frame,
.gallery-shell {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(180deg, #f8f8f8 0%, #efefef 100%);
  overflow: hidden;
}

.project-media-frame {
  position: relative;
}

.project-media-frame::after,
.gallery-shell::after,
.placeholder-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.06);
}

.project-media-frame iframe,
.project-media-frame video,
.project-media-frame img,
.placeholder-frame img,
.gallery-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-meta {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1fr);
  column-gap: clamp(2rem, 4.5vw, 5rem);
  align-items: start;
}

.project-title-col {
  align-self: start;
  padding-right: 1rem;
}

.project-kicker {
  margin: 0 0 0.55rem;
}

.project-title {
  font-size: clamp(1.2rem, 2.2vw, 1.85rem);
  line-height: 1.03;
  text-wrap: balance;
}

.project-text {
  min-width: 0;
  position: relative;

}

.project-text::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(1rem, 2.4vw, 2rem));
  top: 0.12rem;
  bottom: 0.3rem;
  width: 1px;
  background: var(--line-soft);
}

.project-text h4 {
  margin: 0 0 0.7rem;
}

.project-text p {
  margin: 0 0 1rem;
  color: rgba(17, 17, 17, 0.92);
}

.project-text strong {
  font-weight: 700;
  color: var(--fg);
}

.project-media.project-media-contained {
  width: min(100%, 100rem);
  max-width: 100rem;
  margin-left: auto !important;
  margin-right: auto !important;
  left: auto;
  right: auto;
}

.project-media.project-media-small {
  width: min(100%, 86rem);
  max-width: 86rem;
  margin-left: auto !important;
  margin-right: auto !important;
}

.project-media-frame-square {
  aspect-ratio: 1 / 1;
}

.inline-source {
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.inline-source a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.17em;
}

.gallery-shell {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f8f8f8 0%, #efefef 100%);
}

.gallery-track {
  display: flex;
  height: calc(100% - 56px);
  transition: transform 260ms ease;
  will-change: transform;
}

.gallery-slide {
  min-width: 100%;
  height: 100%;
  margin: 0;
}

.gallery-ui {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  height: 56px;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
}

.gallery-buttons {
  display: flex;
  gap: 0.5rem;
}

.gallery-button {
  appearance: none;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: #fff;
  color: var(--fg);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  font: inherit;
  transition: background 160ms ease, transform 160ms ease;
}


#creative-coding-extra-gallery {
  margin-top: 1.35rem;
}

#creative-coding-extra-gallery .gallery-shell {
  background: #fcfcfc; 
}

#creative-coding-extra-gallery .gallery-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

#creative-coding-extra-gallery .gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.gallery-button:hover,
.gallery-button:focus-visible {
  background: var(--chip);
  outline: none;
  transform: translateY(-1px);
}




.about-section {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.about-copy {
  max-width: 56rem;
}

.about-copy p {
  font-size: clamp(1.02rem, 1.2vw, 1.08rem);
  line-height: 1.85;
}

.about-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.about-group {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.about-group h3 {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.2;
}

.about-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-group li {
  color: rgba(17, 17, 17, 0.92);
  line-height: 1.6;
}

.about-group li + li {
  margin-top: 0.75rem;
}


.about-group li a {
  text-decoration: none;
  color: inherit;
}

.about-group li a:hover,
.about-group li a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
  outline: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  padding-bottom: 2.4rem;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .about-groups {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 900px) {
  main::before {
    inset: 0 var(--gutter);
    background-image: linear-gradient(to right,
        transparent 0,
        transparent calc(50% - 0.5px),
        rgba(17, 17, 17, 0.05) calc(50% - 0.5px),
        rgba(17, 17, 17, 0.05) calc(50% + 0.5px),
        transparent calc(50% + 0.5px),
        transparent 100%);
  }

@media (max-width: 900px) {
  .creative-coding-note {
    grid-template-columns: 1fr;
    row-gap: 1rem;
  }

  .creative-coding-note p {
    max-width: none;
  }
}

  .header-inner {
    padding: 2.5rem 1rem 0;
  }

  .site-mark {
    top: 0;
    transform: none;
  }

  .project-meta {
    grid-template-columns: 1fr;
    row-gap: 1.15rem;
  }

  .project-title-col {
    padding-right: 0;
  }

  .project-text::before {
    display: none;
  }

  h2 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  :root {
    --section-gap: 4.25rem;
  }

  main::before {
    display: none;
  }

  .site-header {
    padding-top: 0.65rem;
  }

  .site-mark {
    font-size: 1.16rem;
    left: max(0.25rem, env(safe-area-inset-left));
  }

  .top-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .top-nav a {
    padding: 0.7rem 0.82rem;
    font-size: 0.8rem;
  }

  .project-media {
    margin-bottom: 1.2rem;
  }

  .project-title {
    font-size: 1.2rem;
  }

  p,
  li {
    font-size: 0.96rem;
    line-height: 1.7;
  }

  .gallery-ui {
    padding: 0.75rem;
  }

  .gallery-button {
    padding: 0.55rem 0.8rem;
  }
}



.creative-coding-note {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1fr);
  column-gap: clamp(2rem, 4.5vw, 5rem);
  align-items: start;
}

.creative-coding-note-left,
.creative-coding-note-right {
  min-width: 0;
}

  .creative-coding-note p {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.04vw, 1.715rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--fg);
    max-width: 24ch;
  }

 .creative-coding-note strong {
  font-weight: 700;
}

.creative-coding-note a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.creative-coding-note a:hover,
.creative-coding-note a:focus-visible {
  color: var(--muted);
  outline: none;
}

@media (max-width: 900px) {
  .creative-coding-note {
    grid-template-columns: 1fr;
    row-gap: 1rem;
  }

  .creative-coding-note p {
    max-width: none;
    font-size: clamp(1.05rem, 4.8vw, 1.45rem);
    line-height: 1.18;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .creative-coding-note a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

.release-music-section h2 {
  max-width: 11ch;
}

.release-intro {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.release-intro p {
  margin: 0;
  color: var(--muted);
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2vw, 1.75rem);
}

.release-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  transition: transform 160ms ease, opacity 160ms ease;
}

.release-card:hover,
.release-card:focus-visible {
  transform: translateY(-2px);
  opacity: 0.96;
  outline: none;
}

.release-cover {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f8f8 0%, #efefef 100%);
  border: 1px solid var(--line-soft);
}

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

.release-card-body {
  padding-top: 0.9rem;
}

.release-format {
  margin: 0 0 0.45rem;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.72rem;
}

.release-card-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.35vw, 1.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.release-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.release-note {
  margin: 0.65rem 0 0;
  color: rgba(17, 17, 17, 0.92);
  font-size: 0.94rem;
  line-height: 1.55;
}

.release-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.release-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid rgba(17, 17, 17, 0.06);
  font-size: 0.74rem;
  line-height: 1;
  color: var(--fg);
}

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

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

@media (max-width: 640px) {
  .site-mark {
    display: none;
  }

  .header-inner {
    padding: 0;
    min-height: auto;
  }

  .site-header {
    padding: 0.55rem 0 0;
  }

  .top-nav {
    width: calc(100vw - 1rem);
    max-width: none;
    margin: 0 0.5rem;
    justify-content: flex-start;
    overflow-x: auto;
  }
}

.intro-statement {
  padding-top: clamp(8rem, 4vw, 8rem);
  padding-bottom: clamp(1rem, 5vw, 1rem);
  border-bottom: 1px solid var(--line-soft);
}

.intro-statement p {
  margin: 0;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--fg);
}
