@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;800;900&display=swap");

:root {
  --ink: #f8f4ec;
  --muted: #b9b1a4;
  --deep: #0d0f10;
  --panel: #171a1b;
  --line: rgba(248, 244, 236, 0.16);
  --teal: #02c5b5;
  --amber: #e2a84c;
  --brick: #9f463b;
  --paper: #eee7db;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--deep);
  color: var(--ink);
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0.08;
  background-image: radial-gradient(circle at 20% 10%, #fff 0 1px, transparent 1px);
  background-size: 5px 5px;
  mix-blend-mode: overlay;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 58px);
  background: linear-gradient(180deg, rgba(13, 15, 16, 0.86), rgba(13, 15, 16, 0));
}

.brand {
  width: clamp(104px, 10vw, 150px);
  padding: 8px 0;
}

.brand img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.34));
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: rgba(14, 16, 17, 0.52);
  backdrop-filter: blur(18px);
  font-size: 14px;
  color: rgba(248, 244, 236, 0.8);
}

.desktop-nav a:hover {
  color: var(--teal);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.portfolio-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid rgba(248, 244, 236, 0.18);
  background: rgba(14, 16, 17, 0.52);
  backdrop-filter: blur(18px);
  color: rgba(248, 244, 236, 0.88);
  font-size: 14px;
  font-weight: 800;
}

.portfolio-link:hover {
  border-color: rgba(2, 197, 181, 0.58);
  color: var(--teal);
}

.nav-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(2, 197, 181, 0.48);
  color: var(--ink);
  background: rgba(2, 197, 181, 0.12);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 140px clamp(20px, 6vw, 90px) 92px;
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(8, 10, 11, 0.91) 0%, rgba(8, 10, 11, 0.64) 38%, rgba(8, 10, 11, 0.18) 72%),
    linear-gradient(0deg, rgba(13, 15, 16, 1) 0%, rgba(13, 15, 16, 0) 28%);
}

.hero-content {
  position: relative;
  max-width: 780px;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  word-break: keep-all;
}

h1,
h2 {
  margin: 0;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 860px;
  font-size: clamp(34px, 4.5vw, 67px);
}

h2 {
  font-size: clamp(24px, 2.9vw, 45px);
}

h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.24;
}

.hero-copy {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(248, 244, 236, 0.82);
  font-size: clamp(17px, 1.6vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid var(--line);
  color: inherit;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #061213;
  background: var(--teal);
  border-color: var(--teal);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-panel {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: 46px;
  z-index: 1;
  width: min(390px, calc(100% - 40px));
  padding: 22px;
  border: 1px solid rgba(248, 244, 236, 0.18);
  background: rgba(12, 14, 15, 0.64);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.hero-panel span,
.production-card span,
.step span,
.metric span {
  display: block;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin-top: 12px;
  font-size: 22px;
  line-height: 1.26;
}

.hero-panel p {
  margin: 12px 0 0;
  color: var(--muted);
}

.section-pad {
  padding: clamp(78px, 10vw, 150px) clamp(20px, 6vw, 90px);
}

.section-heading {
  max-width: 840px;
}

.section-heading > p:not(.eyebrow),
.contact-copy > p:not(.eyebrow) {
  margin: 22px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.intro {
  background:
    linear-gradient(135deg, rgba(2, 197, 181, 0.12), transparent 38%),
    var(--deep);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 58px;
  background: var(--line);
  border: 1px solid var(--line);
}

.metric {
  min-height: 310px;
  padding: 24px;
  background: rgba(23, 26, 27, 0.92);
}

.metric h3 {
  margin-top: 48px;
}

.metric p {
  margin: 16px 0 0;
  color: var(--muted);
}

.experience {
  background: var(--paper);
  color: #161412;
}

.experience .eyebrow {
  color: #007f75;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: start;
}

.feature-stack {
  display: grid;
  gap: 12px;
}

.feature-stack div {
  padding: 22px;
  border: 1px solid rgba(22, 20, 18, 0.14);
  background: rgba(255, 255, 255, 0.44);
}

.feature-stack b {
  display: block;
  font-size: 22px;
}

.feature-stack span {
  display: block;
  margin-top: 6px;
  color: rgba(22, 20, 18, 0.68);
}

.production {
  padding: clamp(78px, 10vw, 150px) 0;
  background:
    linear-gradient(90deg, rgba(159, 70, 59, 0.26), rgba(2, 197, 181, 0.12)),
    #111313;
}

.production-inner {
  padding: 0 clamp(20px, 6vw, 90px);
}

.production-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.production-card {
  min-height: 340px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    rgba(8, 10, 11, 0.46);
}

.production-card h3 {
  margin-top: 18px;
}

.production-card p {
  margin: 16px 0 0;
  color: var(--muted);
}

.program {
  background: #10100f;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 54px;
  border-top: 1px solid var(--line);
}

.step {
  position: relative;
  padding: 34px 24px 0 0;
}

.step::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 13px;
  height: 13px;
  background: var(--teal);
}

.step h3 {
  margin-top: 22px;
}

.step p {
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(34px, 7vw, 96px);
  background:
    linear-gradient(160deg, rgba(2, 197, 181, 0.14), transparent 32%),
    #161817;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.location-card {
  display: grid;
  gap: 14px;
  margin-top: 34px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.location-card span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.location-card strong {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
}

.location-card a {
  width: fit-content;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

.contact-phone {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-top: 1px solid rgba(248, 244, 236, 0.12);
  border-bottom: 1px solid rgba(248, 244, 236, 0.12);
}

.contact-phone a {
  color: var(--ink);
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 900;
  letter-spacing: 0;
}

.location-card iframe {
  width: 100%;
  min-height: 310px;
  border: 1px solid rgba(248, 244, 236, 0.14);
  filter: grayscale(0.18) contrast(1.08) brightness(0.86);
}

label {
  display: grid;
  gap: 8px;
  color: rgba(248, 244, 236, 0.78);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(248, 244, 236, 0.18);
  border-radius: 0;
  padding: 14px 13px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(248, 244, 236, 0.42);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px clamp(20px, 6vw, 90px);
  border-top: 1px solid var(--line);
  background: #090a0a;
}

.site-footer img {
  width: 112px;
  opacity: 0.9;
}

.portfolio-header {
  background: rgba(9, 10, 10, 0.86);
  backdrop-filter: blur(18px);
}

.portfolio-page {
  min-height: 100svh;
  background:
    linear-gradient(130deg, rgba(2, 197, 181, 0.16), transparent 34%),
    linear-gradient(320deg, rgba(159, 70, 59, 0.22), transparent 42%),
    #0d0f10;
}

.portfolio-hero {
  padding-top: 180px;
  padding-bottom: 80px;
}

.portfolio-hero h1 {
  max-width: 980px;
  font-size: clamp(30px, 4.2vw, 64px);
}

.portfolio-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.portfolio-board {
  display: grid;
  gap: 22px;
  padding-top: 0;
}

.portfolio-board.layout-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.portfolio-board.layout-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: 360px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.layout-grid .work-card,
.layout-compact .work-card {
  grid-template-columns: 1fr;
  min-height: auto;
}

.work-thumb {
  min-height: 320px;
  overflow: hidden;
}

.layout-grid .work-thumb {
  min-height: 240px;
}

.layout-compact .work-thumb {
  min-height: 280px;
}

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

.work-thumb-dark img {
  filter: saturate(0.74) brightness(0.62);
}

.work-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 72px);
}

.layout-grid .work-copy,
.layout-compact .work-copy {
  justify-content: flex-start;
  padding: 28px;
}

.work-copy span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.work-copy h2 {
  margin-top: 18px;
  font-size: clamp(21px, 2.8vw, 41px);
}

.layout-grid .work-copy h2 {
  font-size: clamp(20px, 2vw, 30px);
}

.layout-compact .work-copy h2 {
  font-size: clamp(21px, 2.25vw, 33px);
}

.work-copy p {
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.work-link {
  width: fit-content;
  margin-top: 22px;
  padding: 11px 14px;
  border: 1px solid rgba(2, 197, 181, 0.48);
  color: var(--teal);
  font-weight: 900;
}

.portfolio-cta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
}

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

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

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-actions .portfolio-link {
    display: none;
  }

  .hero {
    min-height: auto;
    display: block;
    align-items: start;
    padding-top: 132px;
    padding-bottom: 72px;
  }

  .hero-panel {
    position: relative;
    left: 20px;
    right: 20px;
    bottom: auto;
    width: calc(100% - 40px);
    margin-top: 28px;
  }

  .intro-grid,
  .production-grid,
  .timeline,
  .split,
  .contact,
  .work-card,
  .portfolio-board.layout-grid,
  .portfolio-board.layout-compact {
    grid-template-columns: 1fr;
  }

  .portfolio-cta {
    display: grid;
    justify-content: stretch;
  }

  .metric {
    min-height: 220px;
  }

  .metric h3 {
    margin-top: 34px;
  }

  .timeline {
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand {
    width: 96px;
  }

  .nav-cta {
    padding: 10px 12px;
    font-size: 13px;
  }

  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-panel {
    left: 2px;
    right: 2px;
    width: calc(100% - 4px);
  }

  .contact-form {
    padding: 18px;
  }

  .location-card {
    padding: 18px;
  }

  .location-card iframe {
    min-height: 260px;
  }
}
