:root {
  --bg: #fcfcfc;
  --surface: #ffffff;
  --surface-soft: #f5f3f4;
  --ink: #171519;
  --muted: #6e6870;
  --line: #e8e2e6;
  --brand: #d4145a;
  --brand-deep: #8f0f42;
  --dark: #111318;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(252, 252, 252, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-link img { width: 174px; height: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #3a373b;
  font-size: 14px;
  font-weight: 800;
}
.nav a:hover, .language a:hover, .text-link:hover { color: var(--brand); }
.language { display: inline-flex; gap: 8px; color: var(--muted); }
.language .active { color: var(--brand); }
.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.32) 58%, rgba(0, 0, 0, 0.16)),
    url("/assets/quv-hero.jpg") 55% 45% / cover no-repeat;
  color: #fff;
}
.hero-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0 84px;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 1.02;
}
.hero-subtitle, .page-hero p {
  max-width: 650px;
  margin: 24px 0 0;
  font-size: 20px;
  line-height: 1.75;
}
.hero-actions, .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: white;
  font-weight: 900;
}
.button.secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.72);
}
.button:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.section { padding: 86px 0; }
.section.alt { background: var(--surface-soft); }
.container, .policy {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
.section-heading {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 44px;
  align-items: start;
  margin-bottom: 36px;
}
.section-heading h2, .page-hero h1, .legal-text h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.14;
}
.section-heading p, .feature-copy p, .project-card p, .contact-panel p, .profile-list p, .role-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}
.feature, .profile {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: stretch;
}
.feature img, .profile img, .media-grid img, .project-card img, .role-grid img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
}
.feature-copy, .contact-panel, .profile-list {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px;
  display: grid;
  align-content: center;
  gap: 20px;
}
.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.project-grid, .role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.project-card, .role-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.project-card div, .role-grid article { padding: 24px; }
.project-card img { min-height: 220px; max-height: 250px; }
.status {
  margin-bottom: 8px !important;
  color: var(--brand) !important;
  font-size: 13px !important;
  font-weight: 900;
}
.project-card h3, .role-grid h3 {
  margin: 0 0 12px;
  font-size: 24px;
}
.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--brand);
  font-weight: 900;
}
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  align-items: stretch;
}
.map {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.page-hero {
  padding: 120px 0 92px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.32)),
    url("/assets/quv-home-1.jpeg") center / cover no-repeat;
  color: #fff;
}
.page-hero.compact {
  background:
    linear-gradient(90deg, rgba(17, 19, 24, 0.92), rgba(17, 19, 24, 0.58)),
    url("/assets/quv-hero.jpg") center / cover no-repeat;
}
.page-hero .button { margin-top: 30px; }
.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.timeline div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.timeline time {
  color: var(--brand);
  font-weight: 900;
}
.timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.policy {
  max-width: 900px;
  padding: 70px 0;
}
.policy-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.legal-text {
  background: #fff;
  border: 1px solid var(--line);
  padding: 34px;
  overflow-x: auto;
}
.legal-text h1 { margin-bottom: 28px; }
.legal-text h2 {
  margin: 42px 0 16px;
  font-size: 24px;
}
.legal-text h3 {
  margin: 30px 0 12px;
  font-size: 19px;
}
.legal-text p {
  margin: 8px 0;
  color: #403b42;
  line-height: 1.86;
}
.legal-text a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-text ul,
.legal-text ol {
  margin: 10px 0 18px;
  padding-left: 24px;
  color: #403b42;
  line-height: 1.86;
}
.legal-text table {
  width: 100% !important;
  min-width: 680px;
  margin: 18px 0 28px;
  border-collapse: collapse;
  font-size: 14px;
}
.legal-text td,
.legal-text th {
  border: 1px solid var(--line);
  padding: 10px 12px;
  vertical-align: top;
  line-height: 1.7;
}
.legal-text tbody tr:first-child td {
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 900;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}
.footer-logo {
  width: 176px;
  margin: 0 auto 18px;
}
.footer-inner p { margin: 6px 0; }
.footer-inner a { font-weight: 900; color: var(--ink); }
.copyright { color: #8d878f; }

.careers-legacy {
  min-height: calc(100vh - 70px);
  padding: 110px 0 120px;
  background: #000;
  color: #fff;
}
.careers-legacy-inner {
  width: min(1360px, calc(100% - 56px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 74px;
  align-items: center;
}
.careers-copy h1 {
  margin: 0 0 38px;
  color: #fff;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.15;
}
.careers-copy p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.85;
}
.career-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 66px 0 36px;
}
.career-heading-row h2 {
  margin: 0;
  color: #fff;
  font-size: 28px;
}
.career-icons {
  width: min(520px, 100%);
  height: auto;
}
.careers-collage-wrap {
  display: flex;
  justify-content: center;
}
.careers-collage {
  width: 100%;
  max-width: 660px;
  height: clamp(460px, 54vw, 680px);
  object-fit: contain;
}

@media (max-width: 900px) {
  .header-inner {
    width: calc(100% - 28px);
    min-height: 64px;
    gap: 14px;
  }
  .brand-link img { width: 132px; }
  .nav {
    gap: 11px;
    font-size: 12px;
    overflow-x: auto;
    white-space: nowrap;
  }
  .hero {
    min-height: 680px;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.72)),
      url("/assets/quv-hero.jpg") center / cover no-repeat;
  }
  .hero-inner, .container, .policy, .footer-inner {
    width: calc(100% - 28px);
  }
  .hero-inner { padding: 92px 0 64px; }
  h1 { font-size: clamp(38px, 12vw, 58px); }
  .hero-subtitle, .page-hero p { font-size: 17px; }
  .section { padding: 64px 0; }
  .section-heading, .feature, .profile, .media-grid, .project-grid, .role-grid, .contact-layout, .timeline {
    grid-template-columns: 1fr;
  }
  .timeline div { grid-template-columns: 84px 1fr; }
  .feature img, .profile img, .media-grid img, .project-card img, .role-grid img {
    min-height: 220px;
  }
  .legal-text {
    padding: 22px;
  }
  .careers-legacy {
    padding: 72px 0 84px;
  }
  .careers-legacy-inner {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .career-heading-row {
    align-items: flex-start;
    flex-direction: column;
    margin: 42px 0 28px;
  }
  .careers-copy p {
    font-size: 17px;
  }
  .careers-collage {
    width: min(100%, 610px);
    height: auto;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 10px 0;
  }
  .brand-link img { width: 146px; }
  .nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: visible;
    white-space: normal;
  }
  .language { gap: 5px; }
}
