:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-strong: #f6f3ee;
  --text: #111111;
  --muted: rgba(17, 17, 17, 0.72);
  --line: rgba(17, 17, 17, 0.1);
  --accent: #111111;
  --shadow: 0 22px 52px rgba(17, 17, 17, 0.09);
  --header-bg: rgba(255, 255, 255, 0.94);
  --overlay-bg: rgba(255, 255, 255, 0.92);
  --detail-overlay-bg: rgba(255, 255, 255, 0.96);
  --soft-text: rgba(17, 17, 17, 0.68);
  --soft-text-2: rgba(17, 17, 17, 0.54);
  --keyword-text: rgba(17, 17, 17, 0.86);
  --intro-dot: #111111;
  --pill-bg: #ffffff;
  --pill-active-bg: #111111;
  --pill-active-text: #ffffff;
  --surface-glow: radial-gradient(circle at center, rgba(248, 248, 246, 0.92), rgba(255, 255, 255, 0.98) 64%);
}

body[data-theme="dark"] {
  --bg: #101113;
  --surface: #15171a;
  --surface-strong: #1c1f24;
  --text: #f3f1ec;
  --muted: rgba(243, 241, 236, 0.74);
  --line: rgba(243, 241, 236, 0.14);
  --accent: #f3f1ec;
  --shadow: 0 26px 72px rgba(0, 0, 0, 0.34);
  --header-bg: rgba(16, 17, 19, 0.86);
  --overlay-bg: rgba(11, 12, 14, 0.88);
  --detail-overlay-bg: rgba(0, 0, 0, 0.74);
  --soft-text: rgba(243, 241, 236, 0.72);
  --soft-text-2: rgba(243, 241, 236, 0.56);
  --keyword-text: rgba(243, 241, 236, 0.82);
  --intro-dot: #f3f1ec;
  --pill-bg: #17191d;
  --pill-active-bg: #f3f1ec;
  --pill-active-text: #101113;
  --surface-glow: radial-gradient(circle at center, rgba(34, 36, 42, 0.9), rgba(16, 17, 19, 0.98) 64%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
}

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

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

body.is-ready {
  overflow: auto;
}

body.is-ready .page-shell {
  opacity: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 24px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

main {
  padding-top: 40px;
}

.view-switcher-wrap {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 0 0 48px;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(-22px);
  filter: blur(14px);
  transition:
    opacity 680ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 680ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.view-switcher-wrap.scroll-reveal {
  transition-duration: 560ms;
}

.view-switcher-wrap.scroll-reveal .view-switcher {
  opacity: inherit;
  transform: inherit;
  filter: inherit;
}

.keyword-intro {
  padding: 12px 0 10px;
}

.keyword-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2.8vh, 34px);
  min-height: calc(100vh - 170px);
  padding: 18px 0 26px;
  overflow: hidden;
}

.keyword-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  align-items: center;
  align-content: center;
  max-width: 1120px;
  min-height: calc(100vh - 390px);
  margin: 0 auto;
  transform: translateY(-92px);
}

.keyword-item {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-size: clamp(1.15rem, 2vw, 1.95rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--keyword-text);
  text-decoration: none;
  transform: translate3d(0, 0, 0);
  transition:
    transform 820ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 620ms ease,
    filter 620ms ease,
    letter-spacing 620ms ease;
  will-change: transform, opacity;
}

.keyword-item:nth-child(3n + 1) {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.keyword-item:nth-child(3n + 2) {
  font-family: "Space Grotesk", sans-serif;
}

.keyword-item:nth-child(3n) {
  font-family: "Instrument Serif", serif;
}

.keyword-item:nth-child(5n + 1) {
  font-size: clamp(1rem, 1.7vw, 1.45rem);
}

.keyword-item:nth-child(5n + 2) {
  font-size: clamp(1.2rem, 2.1vw, 1.9rem);
}

.keyword-item:nth-child(5n + 3) {
  font-size: clamp(1.05rem, 1.9vw, 1.6rem);
}

.keyword-item:nth-child(5n + 4) {
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
}

.keyword-item:nth-child(5n) {
  font-size: clamp(0.98rem, 1.6vw, 1.35rem);
}

.keyword-item:nth-child(7n) {
  font-style: italic;
}

html[lang="ko"] .keyword-item:nth-child(3n + 1) {
  font-family: "Noto Sans KR", "Pretendard", sans-serif;
  font-weight: 500;
}

html[lang="ko"] .keyword-item:nth-child(3n + 2) {
  font-family: "Noto Serif KR", serif;
  font-weight: 500;
  letter-spacing: -0.05em;
}

html[lang="ko"] .keyword-item:nth-child(3n) {
  font-family: "Space Grotesk", "Noto Sans KR", sans-serif;
  font-weight: 600;
}

html[lang="ko"] .keyword-item:nth-child(7n) {
  font-style: normal;
}

html[lang="zh-CN"] .keyword-item:nth-child(3n + 1) {
  font-family: "Noto Sans SC", "Pretendard", sans-serif;
  font-weight: 500;
}

html[lang="zh-CN"] .keyword-item:nth-child(3n + 2) {
  font-family: "Noto Serif SC", serif;
  font-weight: 500;
  letter-spacing: -0.05em;
}

html[lang="zh-CN"] .keyword-item:nth-child(3n) {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-weight: 600;
}

html[lang="zh-CN"] .keyword-item:nth-child(7n) {
  font-style: normal;
}

.keyword-identity {
  position: absolute;
  top: var(--identity-y, 50%);
  left: var(--identity-x, 50%);
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 520ms ease, transform 820ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.keyword-identity p,
.keyword-identity strong {
  margin: 0;
}

.keyword-identity p {
  font-size: 1.16rem;
  letter-spacing: 0.06em;
}

.keyword-identity strong {
  font-size: clamp(3rem, 6vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
  white-space: nowrap;
}

.keyword-scene.is-merging .keyword-item {
  transform: translate(var(--merge-x, 0px), var(--merge-y, 0px)) scale(0.84);
  opacity: 0;
  filter: blur(8px);
  letter-spacing: 0.08em;
}

.keyword-scene.is-merging .keyword-identity {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.keyword-scroll-prompt {
  position: absolute;
  top: calc(var(--identity-y, 50%) + 24%);
  left: var(--identity-x, 50%);
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 520ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.keyword-scroll-prompt p,
.scroll-arrow {
  margin: 0;
}

.keyword-scroll-prompt p {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--soft-text);
}

.scroll-arrow {
  font-size: 1.35rem;
  line-height: 1;
  color: var(--soft-text);
}

.keyword-scene.is-merging .keyword-scroll-prompt {
  opacity: 1;
  transform: translate(-50%, -50%);
  transition-delay: 0.7s;
}

.view-switcher {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--pill-bg);
  position: relative;
}

.view-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 220ms ease, transform 180ms ease;
  position: relative;
  z-index: 1;
}

.view-button.is-active {
  color: var(--pill-active-text);
}

.tag-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 980px;
}

.tag-filter-button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--soft-text);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.tag-filter-button:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--text) 34%, transparent);
  color: var(--text);
}

.tag-filter-button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--pill-active-text);
}

.switcher-indicator {
  position: absolute;
  top: 4px;
  left: 0;
  width: 0;
  height: calc(100% - 8px);
  border-radius: 999px;
  background: var(--pill-active-bg);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    width 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease;
  opacity: 0;
  pointer-events: none;
}

.view-panel {
  display: none;
}

.view-panel.is-active {
  display: block;
}

.gallery-hero,
.gallery-section {
  padding-top: 56px;
}

.gallery-kicker {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-greeting {
  margin-bottom: 0;
  width: 100%;
  text-align: center;
  line-height: 1.9;
  font-size: clamp(1rem, 1.25vw, 1.42rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: none;
  position: relative;
  z-index: 1;
  transform: translateY(-20px);
}

.gallery-hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 28px;
  align-items: start;
}

.gallery-copy {
  position: sticky;
  top: 108px;
  align-self: start;
}

.gallery-copy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.8vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  display: grid;
  gap: 0.06em;
}

.works-title-line {
  display: flex;
  width: 100%;
}

.works-title-line-left {
  justify-content: flex-start;
}

.works-title-line-center {
  justify-content: center;
}

.works-title-line-right {
  justify-content: flex-end;
}

.works-title-word {
  display: inline-block;
  transition: transform 880ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.gallery-copy p,
.text-panel-copy {
  margin: 18px 0 0;
  max-width: 32rem;
  font-size: 0.98rem;
  line-height: 1.75;
}

.gallery-hero-side {
  display: grid;
  gap: 20px;
}

.hero-featured-slot .project-card {
  gap: 16px;
}

.hero-featured-slot .project-card-media img {
  max-height: 68vh;
}

.gallery-hero-note {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0 0;
  border-top: 1px solid var(--line);
}

.gallery-hero-note p {
  margin: 0;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  line-height: 1.5;
}

.featured-frame,
.gallery-item,
.text-panel {
  margin: 0;
}

.featured-frame {
  min-height: 560px;
  max-height: 72vh;
  overflow: hidden;
  padding: 0;
  background: var(--surface);
  cursor: pointer;
}

.featured-frame img,
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.gallery-grid {
  display: grid;
  gap: 18px;
}

.gallery-grid-a,
.gallery-grid-b,
.gallery-grid-c {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-grid-d {
  grid-template-columns: 1.35fr 0.65fr;
}

.gallery-item {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: end;
  overflow: hidden;
  background: var(--surface);
  padding: 0;
  cursor: pointer;
}

.gallery-item.portrait {
  min-height: 460px;
  max-height: 68vh;
}

.gallery-item.landscape {
  min-height: 320px;
  max-height: 56vh;
}

.gallery-item.square {
  min-height: 360px;
  max-height: 60vh;
}

.featured-frame img {
  max-width: 100%;
  max-height: calc(72vh - 90px);
}

.gallery-item.portrait img {
  max-width: 100%;
  max-height: calc(68vh - 84px);
  align-self: end;
}

.gallery-item.landscape img {
  max-width: 100%;
  max-height: calc(56vh - 84px);
  align-self: end;
}

.gallery-item.square img {
  max-width: 100%;
  max-height: calc(60vh - 84px);
  align-self: end;
}

.text-panel {
  padding: 22px;
}

.gallery-caption {
  display: grid;
  gap: 7px;
  padding-top: 12px;
  align-self: start;
}

.gallery-caption strong,
.gallery-caption span,
.gallery-caption p,
.gallery-description {
  margin: 0;
}

.gallery-caption strong {
  font-size: 0.98rem;
  font-weight: 700;
}

.gallery-caption span,
.gallery-caption p {
  font-size: 0.88rem;
  color: var(--soft-text);
}

.gallery-caption .project-tag-list {
  margin-top: 2px;
}

.gallery-description {
  display: none;
}

.project-grid-shell {
  display: grid;
  gap: 22px;
}

.project-grid-list {
  display: grid;
  gap: 22px;
}

.project-grid-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  display: grid;
  gap: 14px;
  cursor: pointer;
  outline: none;
}

.project-card:focus-visible .project-card-media,
.project-card:hover .project-card-media {
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.project-card-media {
  overflow: hidden;
  background: var(--surface);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms ease;
  will-change: transform;
}

.project-card-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:focus-visible .project-card-media img,
.project-card:hover .project-card-media img {
  transform: scale(1.018);
}

.project-card-copy {
  display: grid;
  gap: 8px;
}

.project-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.project-card-copy strong,
.project-card-copy span,
.project-card-copy p,
.project-card-copy small {
  margin: 0;
}

.project-card-copy strong {
  font-size: 1rem;
}

.project-card-copy span,
.project-card-copy p,
.project-card-copy small {
  color: var(--soft-text);
  line-height: 1.6;
}

.project-card-copy small {
  max-width: 58rem;
  font-size: 0.94rem;
  line-height: 1.72;
  color: var(--muted);
  text-wrap: pretty;
  display: block;
  max-height: calc(1.72em * 2);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, rgba(0, 0, 0, 0.42) 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 52%, rgba(0, 0, 0, 0.42) 78%, transparent 100%);
}

.project-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.project-tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid color-mix(in srgb, var(--text) 22%, transparent);
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--text) 6%, transparent);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.project-card-featured .project-card-media img {
  max-height: 82vh;
}

.text-panel-contact {
  margin-bottom: 24px;
}

.about-stack {
  display: grid;
  gap: 58px;
  margin-top: 28px;
}

.about-block {
  display: grid;
  gap: 8px;
}

.about-profile-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 32px;
  align-items: start;
}

.about-profile-copy .text-panel-copy {
  margin-top: 0;
  max-width: none;
  text-wrap: pretty;
  hyphens: auto;
}

.about-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft-text-2);
}

.about-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.about-list li {
  font-size: 0.98rem;
  line-height: 1.7;
}

.contact-details {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.contact-details a,
.contact-details p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.contact-details a {
  text-decoration: none;
}

.surf-experience {
  padding-top: 8px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.surf-viewport {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  background: var(--bg);
  touch-action: pan-y;
}

.surf-active-badge {
  position: absolute;
  top: var(--surf-title-y, 72%);
  left: var(--surf-title-x, 50%);
  z-index: 4;
  max-width: min(560px, calc(100% - 48px));
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
  transition:
    top 420ms cubic-bezier(0.22, 1, 0.36, 1),
    left 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.surf-counter {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
}

.surf-stage {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  perspective: 2600px;
  perspective-origin: 50% 34%;
}

.surf-slide {
  position: absolute;
  top: 30%;
  left: 50%;
  width: clamp(300px, 36vw, 680px);
  margin: 0;
  transform-origin: center center;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 320ms ease, filter 320ms ease;
  will-change: transform, opacity;
  cursor: pointer;
}

.surf-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 84vh;
  object-fit: contain;
  box-shadow: none;
  background: transparent;
  transition: transform 320ms ease;
}

.surf-slide.is-square {
  width: clamp(270px, 30vw, 540px);
}

.surf-slide.is-square img {
  max-height: 70vh;
}

.surf-slide.is-portrait {
  width: clamp(250px, 27vw, 470px);
}

.surf-slide.is-portrait img {
  max-height: 74vh;
}

.surf-slide.is-active img {
  box-shadow: none;
}

.surf-slide:hover img {
  transform: scale(1.02);
}

.surf-slide.is-active:hover {
  transform:
    translate3d(calc(-50% + var(--hover-x, 0px)), calc(-50% + var(--hover-y, 0px)), calc(var(--hover-z, 0px) + 36px))
    scale(1.04) !important;
}

.timeline-view {
  position: relative;
  padding: 36px 0 48px;
}

.timeline-header {
  max-width: 40rem;
  margin-bottom: 28px;
}

.timeline-line {
  position: absolute;
  top: 96px;
  bottom: 26px;
  left: 90px;
  width: 1px;
  background: var(--line);
}

.timeline-year {
  position: relative;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 26px;
  padding-bottom: 42px;
}

.timeline-year:last-child {
  padding-bottom: 0;
}

.timeline-year-label {
  position: sticky;
  top: 106px;
  align-self: start;
}

.timeline-year-label span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: var(--bg);
  padding-right: 16px;
}

.timeline-year-label span::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-year-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.timeline-card {
  margin: 0;
  cursor: pointer;
}

.timeline-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--surface);
}

.timeline-card-lg {
  grid-column: span 2;
}

.timeline-card-lg img {
  max-height: 68vh;
}

.timeline-card-md img {
  max-height: 44vh;
}

.timeline-card-sm img {
  max-height: 34vh;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: var(--bg);
  z-index: 100;
  transition: opacity 900ms ease, visibility 900ms ease;
}

.intro-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--detail-overlay-bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.detail-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.detail-backdrop {
  position: fixed;
  inset: 0;
  background: var(--detail-overlay-bg);
  backdrop-filter: blur(14px);
}

.detail-dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  margin: 32px auto;
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.5fr);
  gap: 28px;
  align-items: start;
}

.detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  border: 0;
  background: var(--pill-bg);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.detail-close:hover {
  background: var(--pill-active-bg);
  color: var(--pill-active-text);
  border-color: var(--pill-active-bg);
}

.detail-media-list {
  padding-top: 42px;
  display: grid;
  gap: 24px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding-right: 12px;
}

.detail-media-item {
  margin: 0;
  display: grid;
  gap: 10px;
}

.detail-media-item img {
  display: block;
  width: 100%;
  object-fit: contain;
}

.detail-media-item figcaption {
  font-size: 0.86rem;
  color: var(--soft-text);
}

.detail-pdf-frame {
  width: 100%;
  min-height: 72vh;
  background: var(--surface-strong);
}

.detail-pdf-frame iframe {
  width: 100%;
  min-height: 72vh;
  border: 0;
}

.detail-copy {
  display: grid;
  gap: 10px;
  padding-top: 52px;
  position: sticky;
  top: 24px;
  align-self: start;
}

.detail-copy strong,
.detail-copy span,
.detail-copy p {
  margin: 0;
}

.detail-copy strong {
  font-size: 1.7rem;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.detail-copy span,
.detail-copy p {
  font-size: 0.96rem;
  color: var(--soft-text);
  line-height: 1.6;
}

.detail-copy [data-detail-tags] {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.detail-description {
  margin-top: 12px;
  max-width: 31rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
  text-wrap: pretty;
}

.detail-count {
  font-weight: 700;
}

.intro-text {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.16em;
  transition: opacity 500ms ease, transform 500ms ease;
}

.intro-word {
  display: inline-flex;
  align-items: baseline;
}

.intro-static {
  display: inline-block;
  transition: opacity 500ms ease, transform 500ms ease, letter-spacing 500ms ease;
}

.intro-static.is-switching {
  opacity: 0;
  transform: translateY(8px);
}

.intro-dots {
  display: inline-flex;
  gap: 0.12em;
  align-items: center;
}

.intro-dot {
  width: 0.12em;
  height: 0.12em;
  border-radius: 50%;
  background: var(--intro-dot);
  opacity: 0.2;
  animation: dotPulse 1.2s infinite ease-in-out;
}

.intro-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.intro-dot:nth-child(3) {
  animation-delay: 0.4s;
}

.intro-dot-heart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.intro-dot-heart img {
  position: absolute;
  width: 0.3em;
  height: 0.3em;
  object-fit: contain;
  opacity: 0;
  transform: translateX(0.06em) scale(0.72);
  transition: opacity 450ms ease, transform 450ms ease;
  pointer-events: none;
}

.intro-text.show-heart .intro-dot-heart {
  background: transparent;
  animation: none;
  opacity: 1;
}

.intro-text.show-heart .intro-dot-heart img {
  opacity: 1;
  transform: translateX(0.06em) scale(1);
  animation: heartBlink 1.15s infinite ease-in-out;
}

.intro-actions {
  display: inline-flex;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 420ms ease, transform 420ms ease;
}

.intro-actions.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.intro-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--pill-bg);
  color: var(--text);
  border-radius: 999px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.intro-button:hover {
  background: var(--pill-active-bg);
  color: var(--pill-active-text);
  border-color: var(--pill-active-bg);
}

@keyframes dotPulse {
  0%,
  20%,
  100% {
    opacity: 0.16;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@keyframes heartBlink {
  0%,
  100% {
    opacity: 0.72;
    transform: translateX(0.06em) scale(0.94);
  }

  45% {
    opacity: 1;
    transform: translateX(0.06em) scale(1.06);
  }

  70% {
    opacity: 0.88;
    transform: translateX(0.06em) scale(0.98);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.music-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--soft-text);
  min-height: 42px;
  max-width: 230px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: inherit;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.music-toggle:hover,
.music-toggle[aria-expanded="true"] {
  color: var(--text);
  border-color: color-mix(in srgb, var(--text) 26%, transparent);
}

.music-toggle-track {
  max-width: 120px;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

.music-equalizer {
  display: inline-flex;
  align-items: end;
  gap: 3px;
  width: 18px;
  height: 16px;
}

.music-equalizer span {
  display: block;
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.72;
  transform: scaleY(var(--bar-scale, 0.42));
  transform-origin: bottom center;
  transition: transform 90ms linear, opacity 160ms ease;
}

.music-player.is-playing .music-equalizer span {
  opacity: 1;
}

.music-player {
  position: relative;
}

.music-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 40;
  width: min(330px, calc(100vw - 32px));
  padding: 16px;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--header-bg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transform: translateY(-4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.music-panel[aria-hidden="false"] {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.music-panel-head {
  display: grid;
  gap: 5px;
}

.music-panel-head p,
.music-panel-head strong {
  margin: 0;
}

.music-panel-head p {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft-text-2);
}

.music-panel-head strong {
  font-size: 1rem;
  line-height: 1.25;
}

.music-controls {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 8px;
}

.music-control-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.music-control-primary {
  background: var(--pill-active-bg);
  color: var(--pill-active-text);
  border-color: var(--pill-active-bg);
}

.music-control-icon {
  display: block;
  width: 19px;
  height: 19px;
}

.music-volume {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--soft-text);
}

.music-volume input {
  width: 100%;
  accent-color: var(--accent);
}

.music-track-list {
  display: grid;
  gap: 5px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 2px;
}

.music-track-button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.music-track-button:hover,
.music-track-button.is-current {
  background: color-mix(in srgb, var(--text) 7%, transparent);
  color: var(--text);
}

.music-track-button span {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--soft-text-2);
}

.music-track-button strong {
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-toggle {
  border: 0;
  background: transparent;
  color: var(--soft-text);
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  cursor: pointer;
}

.theme-icon {
  width: 22px;
  height: 22px;
}

.theme-icon-sun {
  display: none;
}

.theme-toggle[aria-pressed="true"] .theme-icon-sun {
  display: block;
}

.theme-toggle[aria-pressed="true"] .theme-icon-moon {
  display: none;
}

.music-icon {
  width: 24px;
  height: 24px;
}

.music-icon-on {
  display: none;
}

.music-toggle[aria-pressed="true"] .music-icon-on {
  display: block;
}

.music-toggle[aria-pressed="true"] .music-icon-off {
  display: none;
}

.brand {
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  font-weight: 800;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--pill-bg);
  position: relative;
}

.lang-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-width: 42px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
  position: relative;
  z-index: 1;
}

.lang-button:hover {
  transform: translateY(-1px);
}

.lang-button.is-active {
  color: var(--pill-active-text);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .keyword-grid {
    transform: translateY(-40px);
    min-height: calc(100vh - 300px);
  }

  .keyword-identity {
    transform: translate(-50%, -50%);
  }

  .keyword-scene.is-merging .keyword-identity {
    transform: translate(-50%, -50%);
  }

  .surf-stage {
    min-height: 74vh;
  }

  .timeline-line {
    left: 70px;
  }

  .timeline-year {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .timeline-year-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-hero-grid {
    grid-template-columns: 1fr;
  }

  .gallery-hero-side {
    gap: 16px;
  }

  .gallery-copy {
    position: static;
  }

  .featured-frame {
    min-height: 460px;
  }

  .surf-stage {
    min-height: 62vh;
  }
}

@media (max-height: 760px) and (min-width: 981px) {
  .keyword-intro {
    padding: 10px 0 8px;
  }

  .keyword-scene {
    min-height: calc(100vh - 190px);
  }

  .intro-greeting {
    margin-bottom: 0;
    line-height: 1.7;
  }

  .keyword-grid {
    transform: translateY(-38px);
    min-height: calc(100vh - 330px);
  }
}

@media (max-width: 720px) {
  main {
    padding-top: 22px;
  }

  .gallery-hero,
  .gallery-section {
    padding-top: 42px;
  }

  .gallery-copy h1 {
    font-size: clamp(2.35rem, 11vw, 3.15rem);
    letter-spacing: -0.035em;
    gap: 0.1em;
  }

  .works-title-line-left,
  .works-title-line-center,
  .works-title-line-right {
    justify-content: flex-start;
  }

  .about-profile-copy {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .keyword-grid {
    transform: none;
    min-height: auto;
  }

  .intro-greeting {
    margin-bottom: 0;
    line-height: 1.6;
    transform: none;
  }

  .keyword-identity {
    position: absolute;
    top: var(--identity-y, 50%);
    left: var(--identity-x, 50%);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
  }

  .keyword-scene.is-merging .keyword-identity {
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 18px 0 16px;
    position: sticky;
    top: 0;
  }

  .header-actions {
    width: 100%;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-nav {
    width: 100%;
    gap: 14px;
    flex-wrap: wrap;
  }

  .music-toggle {
    min-height: 38px;
    padding: 0 12px;
  }

  .music-toggle-track {
    max-width: 86px;
  }

  .music-panel {
    left: 0;
    right: auto;
    width: min(330px, calc(100vw - 24px));
    max-height: min(70vh, 520px);
    overflow: auto;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
  }

  .language-switcher {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 138px;
    margin-left: auto;
  }

  .lang-button {
    width: 100%;
    min-width: 0;
    height: 32px;
    padding: 0 8px;
  }

  .keyword-intro {
    padding: 0 0 4px;
  }

  .keyword-scene {
    gap: 18px;
    min-height: auto;
    padding: 16px 0 22px;
    overflow: visible;
  }

  .view-switcher {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    flex-wrap: nowrap;
    gap: 4px;
    border-radius: 24px;
  }

  .view-switcher-wrap {
    justify-items: stretch;
    gap: 10px;
    padding-bottom: 30px;
  }

  .view-button {
    min-width: 0;
    padding: 0 8px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .tag-filter-bar {
    justify-content: center;
    width: 100%;
    overflow: visible;
    flex-wrap: wrap;
    padding-bottom: 0;
  }

  .tag-filter-button {
    flex: 0 1 auto;
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .keyword-scene {
    min-height: auto;
  }

  .keyword-grid {
    gap: 8px 12px;
    min-height: auto;
    padding: 6px 0 2px;
  }

  .keyword-grid .keyword-item,
  .keyword-grid .keyword-item:nth-child(5n + 1),
  .keyword-grid .keyword-item:nth-child(5n + 2),
  .keyword-grid .keyword-item:nth-child(5n + 3),
  .keyword-grid .keyword-item:nth-child(5n + 4),
  .keyword-grid .keyword-item:nth-child(5n) {
    min-height: 24px;
    font-size: clamp(0.88rem, 4.4vw, 1.18rem);
    line-height: 1.12;
    letter-spacing: 0;
  }

  .project-card-copy small {
    font-size: 0.88rem;
    line-height: 1.58;
  }

  .keyword-identity strong {
    font-size: 2.5rem;
  }

  .detail-dialog {
    width: min(100% - 24px, 1120px);
    margin: 18px auto;
    min-height: calc(100dvh - 36px);
    grid-template-columns: 1fr;
    gap: 16px;
    background: var(--bg);
    padding-bottom: 18px;
  }

  .detail-media-list,
  .detail-copy {
    padding-top: 28px;
  }

  .detail-media-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
    touch-action: pan-y;
  }

  .detail-copy {
    position: static;
  }

  .timeline-line {
    display: none;
  }

  .timeline-year {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .timeline-year-label {
    position: static;
  }

  .timeline-year-content {
    grid-template-columns: 1fr;
  }

  .surf-slide {
    top: 62%;
    left: 50%;
    width: min(52vw, 280px);
  }

  .surf-slide img {
    max-height: 40vh;
  }

  .surf-slide.is-square {
    width: min(42vw, 220px);
  }

  .surf-slide.is-square img {
    max-height: 32vh;
  }

  .surf-slide.is-portrait {
    width: min(40vw, 210px);
  }

  .surf-slide.is-portrait img {
    max-height: 34vh;
  }

  .surf-active-badge {
    max-width: calc(100% - 24px);
    left: var(--surf-title-x, 50%);
    top: var(--surf-title-y, 70%);
  }

  .surf-counter {
    right: 12px;
    bottom: 10px;
  }

  .gallery-grid-a,
  .gallery-grid-b,
  .gallery-grid-c,
  .gallery-grid-d,
  .project-grid-list {
    grid-template-columns: 1fr;
  }

  .featured-frame,
  .gallery-item.portrait,
  .gallery-item.landscape,
  .gallery-item.square {
    min-height: auto;
    max-height: none;
  }

  .featured-frame img,
  .gallery-item.portrait img,
  .gallery-item.landscape img,
  .gallery-item.square img {
    max-height: none;
  }
}
