:root {
  --bg: #ffffff;
  --dark: #050505;
  --muted: #747474;
  --line: rgba(0, 0, 0, 0.12);
  --container: 1080px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--dark);
  font-family: "Inter", "Pretendard", sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.site-shell {
  width: min(calc(100% - 24px), 1080px);
  margin: 0 auto;
  min-height: 100vh;
}

.hero-header-shell {
  position: relative;
  width: 100%;
}

.site-shell.dark {
  width: 100%;
  background: var(--dark);
  color: white;
}

.site-shell.dark .site-header,
.site-shell.dark #app {
  width: min(calc(100% - 24px), 1080px);
  margin: 0 auto;
}

.site-header {
  position: fixed !important;
  top: 0;
  left: 50%;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 24px), 1080px);
  padding: 8px 0 10px;
  transform: translateX(-50%);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.hero-header-shell .site-header {
  z-index: 70;
  padding: 12px 0;
}

.hero-header-shell .site-header::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  border-radius: 0;
}

.hero-header-home .site-header::before {
  background: rgba(255, 255, 255, 0.2);
}

.hero-header-about .site-header::before {
  background: rgba(0, 0, 0, 0.2);
}

.dark-header,
.transparent-header {
  color: inherit;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  background: transparent;
  width: auto;
  overflow: visible;
  margin-left: 0;
}

.site-logo {
  display: block;
  width: auto;
  height: 40px;
  max-width: 124px;
  margin-left: 0;
  object-fit: contain;
}

.dark-header .site-logo,
.transparent-header .site-logo,
.site-shell.dark .site-logo {
  filter: invert(1) grayscale(1) contrast(200%);
  mix-blend-mode: screen;
}

.transparent-header {
  color: white;
}

body:not([data-page="home"]):not([data-page="about"]) .site-shell {
  padding-top: 68px;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 0.88rem;
}

.page-hero-image,
.about-hero-image,
.detail-cover,
.preview-image,
.tile-image,
.thumb-image {
  background-size: cover;
  background-position: center;
}

.media-frame {
  position: relative;
  overflow: hidden;
  background: #ececec;
}

.media-frame img,
.media-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-main {
  display: grid;
  gap: 30px;
  padding-bottom: 120px;
  width: 100%;
}

.page-hero-image {
  min-height: 0;
  height: clamp(940px, 98vw, 1320px);
  width: 100%;
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.page-hero-links {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.ghost-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.about-main,
.contact-main,
.work-main,
.detail-main {
  width: min(100%, var(--container));
  margin: 0 auto;
}

.detail-main {
  width: 100%;
}

.about-main {
  padding-bottom: 80px;
  width: 100%;
}

.about-hero-image {
  min-height: 0;
  height: clamp(940px, 98vw, 1320px);
  background-color: #2a2a2a;
  width: 100%;
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.hero-video-shell {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: inherit;
}

.hero-video-poster,
.hero-video-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-poster {
  z-index: 0;
}

.hero-video-shell video {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.hero-video-shell.is-ready video {
  opacity: 1;
}

.hero-video-shell.is-ready .hero-video-poster {
  opacity: 0;
  transition: opacity 0.28s ease;
}

.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 34px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.about-section h2 {
  margin: 0;
  font-size: 3.4rem;
  line-height: 0.95;
}

.about-section p {
  margin: 0 0 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  display: inline-flex;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  font-size: 0.76rem;
}

.floating-mark {
  position: fixed;
  right: 24px;
  bottom: 18px;
  z-index: 20;
}

.floating-mark-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 120px;
  padding: 22px;
  border-radius: 999px;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  transition: transform 0.18s ease;
}

.floating-mark-link:hover {
  transform: translateY(-2px);
}

.floating-logo-image {
  display: block;
  width: 104px;
  height: auto;
}

.site-shell.dark .floating-logo-image,
.transparent-header ~ #app .floating-logo-image,
.dark-header ~ #app .floating-logo-image {
  filter: invert(1) grayscale(1) contrast(200%);
  mix-blend-mode: screen;
}

.contact-main {
  min-height: calc(100vh - 100px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-content: start;
}

.contact-main h1 {
  margin: 24px 0 0;
  font-size: 4rem;
  line-height: 0.94;
}

.contact-form-public {
  display: grid;
  gap: 14px;
  margin-top: 120px;
}

.contact-form-public label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
}

.contact-form-public input,
.contact-form-public textarea {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.primary-button {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  background: var(--dark);
  color: white;
  cursor: pointer;
}

.contact-feedback {
  margin: 0;
  color: var(--muted);
}

.tab-bar {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  font-size: 1.6rem;
}

.tab-link {
  padding-bottom: 6px;
  color: #8c8c8c;
}

.tab-link.active {
  color: var(--dark);
  border-bottom: 2px solid var(--dark);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 18px;
}

.home-main .work-main {
  width: min(100%, var(--container));
  margin: 0 auto;
}

.home-main .work-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.work-card .tile-image {
  aspect-ratio: 1.3 / 1;
  background-color: #ececec;
}

.work-card strong {
  font-size: 0.95rem;
}

.work-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.detail-cover {
  min-height: 360px;
  margin: 0 0 30px;
  background-color: #131313;
}

.detail-main h1 {
  margin: 0 0 16px;
  font-size: 3rem;
}

.detail-main p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.7;
}

.detail-rich {
  width: 100%;
  max-width: 100%;
  color: var(--dark);
}

.detail-rich > p,
.detail-rich > h2,
.detail-rich > h3,
.detail-rich > h4,
.detail-rich > ul,
.detail-rich > ol,
.detail-rich > blockquote {
  max-width: 720px;
}

.detail-rich img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  vertical-align: top;
  margin: 18px 0;
}

.detail-rich img[data-size="full"],
.detail-rich video[data-size="full"] {
  width: 100% !important;
  max-width: 100% !important;
  margin: 18px 0 !important;
}

.detail-rich video {
  display: block;
  width: 100%;
  margin: 18px 0;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.detail-gallery .tile-image {
  aspect-ratio: 1 / 1.2;
}

@media (max-width: 820px) {
  .contact-main,
  .about-section,
  .work-grid,
  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .contact-form-public {
    margin-top: 12px;
  }

  .page-hero-image,
  .about-hero-image,
  .detail-cover {
    min-height: 240px;
    height: 320px;
  }
}

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