:root {
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", system-ui, sans-serif;
  --ink: #111111;
  --paper: #f7f2e8;
  --muted: #706a60;
  --line: rgba(17, 17, 17, 0.14);
  --white: #ffffff;
  --red: #e83c2f;
  --green: #12a56b;
  --yellow: #f5cf45;
  --steel: #d8dde2;
  --max: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: 0;
  line-height: 1.55;
  word-break: keep-all;
}

body.dark {
  background: #0d0d0d;
  color: #f7f3ea;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p,
blockquote,
dl,
dd {
  margin-top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sample-note {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 36px));
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(17, 17, 17, 0.78);
  color: rgba(255, 255, 255, 0.78);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 650;
  backdrop-filter: blur(16px);
}

.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px max(18px, calc((100vw - var(--max)) / 2));
}

.brandline {
  display: inline-flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 900;
}

.brand-dot {
  width: 12px;
  height: 12px;
  background: currentColor;
}

.nav-mini {
  display: flex;
  gap: 18px;
  color: currentColor;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.76;
}

.nav-mini a {
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.nav-mini a:hover {
  border-bottom-color: currentColor;
}

.cta-chip,
.ticket-action,
.rfq-action,
.queue-action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid currentColor;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 28px max(18px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
}

.dark .page-footer {
  border-top-color: rgba(255, 255, 255, 0.14);
}

/* 1. Contact Sheet Studio */
.contact-body {
  background: #f2eadc;
}

.contact-hero {
  display: grid;
  gap: 14px;
  min-height: calc(100svh - 76px);
  padding: 14px max(18px, calc((100vw - var(--max)) / 2)) 26px;
}

.contact-board {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.04fr)
    minmax(280px, 1.22fr)
    minmax(240px, 1.02fr)
    minmax(210px, 0.82fr);
  grid-template-rows:
    clamp(220px, 36svh, 300px)
    clamp(96px, 15svh, 132px)
    clamp(76px, 10svh, 104px);
  grid-template-areas:
    "photo copy copy side"
    "proof channel ticket detail"
    "deliver deliver deliver deliver";
  gap: 10px;
  align-items: stretch;
}

.contact-cell {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #fffaf1;
}

.contact-cell img {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-cell.tint {
  display: grid;
  align-content: space-between;
  padding: 14px;
  background: #1a1a1a;
  color: #fff;
}

.contact-cell.caption {
  padding: 14px;
  background: #f7d44b;
}

.contact-cell.hero-copy {
  grid-area: copy;
  display: grid;
  align-content: center;
  padding: clamp(22px, 3.2vw, 40px);
  background: rgba(248, 241, 228, 0.96);
  z-index: 2;
}

.contact-cell.hero-copy h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 950;
  line-height: 0.96;
}

.contact-cell.hero-copy p {
  max-width: 520px;
  margin: 16px 0 0;
  color: #5b554d;
  font-size: 16px;
  font-weight: 650;
}

.contact-cell.big-photo {
  grid-area: photo;
}

.contact-cell.vertical {
  grid-area: side;
}

.contact-cell.ticket {
  grid-area: ticket;
}

.contact-cell.ticket strong,
.contact-cell.tint strong,
.contact-cell.caption strong {
  display: block;
  font-size: clamp(18px, 1.8vw, 28px);
  line-height: 1.08;
}

.contact-cell.small-a {
  grid-area: proof;
}

.contact-cell.small-b {
  grid-area: channel;
}

.contact-cell.small-c {
  grid-area: detail;
}

.contact-cell.small-d {
  grid-area: deliver;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  align-content: center;
}

.contact-cell.small-d strong {
  max-width: 760px;
}

.contact-body .sample-note {
  position: static;
  max-width: var(--max);
  margin: 0 auto 18px;
  border: 0;
  background: transparent;
  color: #6f665a;
  padding: 0 18px;
  backdrop-filter: none;
}

.contact-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.contact-meta article {
  border-top: 2px solid #111;
  padding-top: 12px;
}

.contact-meta span,
.contact-meta-label,
.detail-label,
.rfq-label,
.queue-label {
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
}

.contact-meta strong {
  display: block;
  margin-top: 8px;
  font-size: 19px;
  line-height: 1.12;
}

/* 2. Product detail diagnosis */
.detail-body {
  background: #f8f5ed;
}

.detail-hero {
  min-height: calc(100svh - 76px);
  padding: 22px max(18px, calc((100vw - var(--max)) / 2)) 42px;
}

.detail-stage {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 0.72fr) minmax(250px, 0.38fr);
  gap: 18px;
  align-items: stretch;
}

.diagnosis-ledger,
.detail-mockup,
.argument-wall {
  min-width: 0;
  border: 1px solid var(--line);
  background: #fffdf6;
}

.diagnosis-ledger {
  display: grid;
  align-content: space-between;
  min-height: 720px;
  padding: 24px;
}

.diagnosis-ledger h2 {
  margin: 18px 0 0;
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 950;
  line-height: 1.08;
}

.audit-list {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
}

.audit-list div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 760;
}

.detail-mockup {
  overflow: hidden;
  min-height: 720px;
}

.mock-hero {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 280px;
  background: #111;
  color: #fff;
  text-align: center;
  padding: 24px;
}

.mock-hero h1 {
  margin: 0;
  font-size: clamp(54px, 7vw, 108px);
  font-weight: 950;
  line-height: 0.86;
}

.mock-hero p {
  max-width: 440px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  font-weight: 760;
}

.mock-strip {
  display: grid;
  min-width: 0;
  overflow: hidden;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mock-strip img {
  min-width: 0;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.mock-spec {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.mock-spec div {
  min-height: 120px;
  padding: 16px;
  background: #f8f4eb;
}

.mock-spec span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.mock-spec strong {
  display: block;
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.12;
}

.argument-wall {
  display: grid;
  align-content: space-between;
  min-height: 720px;
  padding: 18px;
}

.wall-note {
  border: 1px solid var(--line);
  padding: 14px;
  transform: rotate(-1deg);
}

.wall-note:nth-child(even) {
  background: #f1e6ce;
  transform: rotate(1deg);
}

.wall-note strong {
  display: block;
  margin-top: 18px;
  font-size: 22px;
  line-height: 1.08;
}

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

.detail-flow article {
  min-height: 180px;
  padding: 18px;
  background: #111;
  color: #fff;
}

.detail-flow strong {
  display: block;
  margin-top: 58px;
  font-size: 22px;
  line-height: 1.1;
}

/* 3. VisionMate RFQ desk */
.vision-body {
  background: #e7eaed;
  color: #111;
}

.rfq-hero {
  min-height: calc(100svh - 76px);
  padding: 14px max(18px, calc((100vw - var(--max)) / 2)) 28px;
}

.inspection-sheet {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 0.64fr);
  grid-template-areas:
    "head photo"
    "ledger ledger"
    "submit submit";
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
}

.sheet-head,
.sheet-photo,
.condition-ledger,
.sheet-submit {
  min-width: 0;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: #f8f9f7;
}

.sheet-head {
  grid-area: head;
  display: grid;
  align-content: center;
  min-height: clamp(250px, 37svh, 360px);
  padding: clamp(24px, 4vw, 48px);
}

.sheet-head h1 {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: clamp(36px, 4.6vw, 66px);
  font-weight: 930;
  line-height: 0.98;
}

.sheet-head p:not(.rfq-label) {
  max-width: 650px;
  margin: 22px 0 0;
  color: #515960;
  font-size: 17px;
  font-weight: 680;
  line-height: 1.55;
}

.sheet-photo {
  grid-area: photo;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  background: #dfe4e7;
}

.sheet-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.18) contrast(1.02);
}

.sheet-photo figcaption {
  margin: 0;
  padding: 14px;
  color: #4e565d;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.45;
}

.condition-ledger {
  grid-area: ledger;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  background: rgba(0, 0, 0, 0.16);
  gap: 1px;
}

.condition-ledger article {
  display: grid;
  align-content: space-between;
  min-height: clamp(118px, 17svh, 150px);
  padding: 16px;
  background: #f8f9f7;
}

.condition-ledger span {
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
}

.condition-ledger strong {
  display: block;
  margin-top: 22px;
  font-size: clamp(18px, 1.7vw, 25px);
  line-height: 1.08;
}

.condition-ledger p {
  margin: 8px 0 0;
  color: #596066;
  font-size: 13px;
  font-weight: 660;
  line-height: 1.4;
}

.sheet-submit {
  grid-area: submit;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
}

.sheet-submit p {
  margin: 0;
  color: #4d555b;
  font-size: 14px;
  font-weight: 720;
}

.vision-body .sample-note {
  position: static;
  max-width: var(--max);
  margin: 0 auto 18px;
  border: 0;
  background: transparent;
  color: #626a70;
  padding: 0 18px;
  backdrop-filter: none;
}

.machine-band {
  position: relative;
  overflow: hidden;
  min-height: 255px;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.machine-band img {
  width: 100%;
  height: 255px;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.02);
}

.inspection-tape {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: rgba(15, 18, 19, 0.86);
  color: #fff;
}

.inspection-tape span {
  padding: 12px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 900;
}

.rfq-desk {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

.rfq-title,
.rfq-grid,
.rfq-side {
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #f8f9f7;
}

.rfq-title {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.5fr) auto;
  gap: 18px;
  align-items: end;
  min-height: 0;
  padding: 24px;
}

.rfq-title h1 {
  margin: 16px 0 0;
  font-size: clamp(30px, 3.2vw, 50px);
  font-weight: 900;
  line-height: 1.04;
}

.rfq-title p {
  color: #596066;
  font-weight: 650;
}

.rfq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rfq-grid article {
  min-height: 250px;
  padding: 18px;
  border-right: 1px solid rgba(0, 0, 0, 0.14);
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}

.rfq-grid strong {
  display: block;
  margin-top: 78px;
  font-size: 28px;
  line-height: 1.05;
}

.rfq-grid p {
  color: #5d646a;
  font-size: 14px;
  font-weight: 650;
}

.rfq-grid article:nth-child(2) {
  background: #111;
  color: #fff;
}

.rfq-grid article:nth-child(2) p {
  color: rgba(255, 255, 255, 0.72);
}

.rfq-action {
  background: var(--yellow);
  color: #111;
  white-space: normal;
  text-align: center;
}

/* 4. NovaMotion control room */
.nova-body {
  background: #1f2222;
  color: #f5f1e8;
}

.nova-hero {
  min-height: calc(100svh - 76px);
  padding: 24px max(18px, calc((100vw - var(--max)) / 2)) 30px;
}

.control-table {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 720px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #161818;
}

.control-title {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.48fr);
  gap: 24px;
  align-items: end;
  padding: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.diagnosis-ledger,
.control-title {
  overflow-wrap: anywhere;
}

.control-title h1 {
  margin: 18px 0 0;
  font-size: clamp(32px, 3.8vw, 58px);
  font-weight: 850;
  line-height: 1.02;
}

.control-title p {
  max-width: 420px;
  color: rgba(245, 241, 232, 0.7);
  font-weight: 650;
}

.process-board {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.process-chips {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.process-chips span {
  padding: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  color: #9fb6c8;
  font-size: 12px;
  font-weight: 950;
}

.control-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.control-matrix article {
  min-height: 400px;
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.control-matrix article:nth-child(2) {
  background: #262b2b;
}

.control-matrix h2 {
  margin: 74px 0 20px;
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1;
}

.control-matrix dl {
  display: grid;
  gap: 14px;
}

.control-matrix div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 10px;
  color: rgba(245, 241, 232, 0.68);
  font-size: 13px;
  font-weight: 760;
}

.control-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.control-footer p {
  margin: 0;
  color: rgba(245, 241, 232, 0.68);
  font-size: 13px;
}

.control-footer .rfq-action {
  background: #d64532;
  color: #fff;
}

/* 5. ReplyPilot queue */
.reply-body {
  background: #f6f2e8;
  color: #111;
}

.reply-hero {
  min-height: calc(100svh - 76px);
  padding: 18px max(18px, calc((100vw - var(--max)) / 2)) 28px;
}

.queue-cockpit {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(180px, 0.22fr) minmax(300px, 0.44fr);
  gap: 12px;
  min-height: 720px;
}

.noise-lane,
.triage-rail,
.clear-queue,
.receipt {
  border: 1px solid var(--line);
  background: #fffdf7;
}

.noise-lane,
.clear-queue {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
}

.noise-lane h1,
.clear-queue h2 {
  margin: 10px 0 6px;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.02;
}

.noise-card,
.queue-card {
  border: 1px solid var(--line);
  padding: 12px;
  background: #f4efe4;
}

.noise-card:nth-child(even) {
  transform: translateX(14px) rotate(1deg);
}

.noise-card span,
.queue-card span,
.receipt span {
  color: #6b746e;
  font-size: 11px;
  font-weight: 950;
}

.noise-card p,
.queue-card p {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.triage-rail {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 14px;
  background: #111;
  color: #fff;
}

.triage-step {
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 12px;
}

.triage-step strong {
  display: block;
  margin-top: 28px;
  color: #9ff0c7;
  font-size: 18px;
  line-height: 1.1;
}

.queue-card.urgent {
  border-color: #c94438;
  background: #fff4ef;
}

.queue-card input {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  border: 1px solid var(--line);
  background: #fffdf7;
  color: #111;
  padding: 0 10px;
  font-size: 14px;
}

.queue-action {
  margin-top: 10px;
  background: #111;
  color: #fff;
}

.receipt {
  display: grid;
  grid-template-columns: minmax(280px, 0.44fr) minmax(0, 1fr);
  gap: 1px;
  margin-top: 12px;
  background: var(--line);
}

.receipt > div {
  min-height: 260px;
  padding: 18px;
  background: #fffdf7;
}

.receipt h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.04;
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.receipt-grid article {
  padding: 14px;
  background: #fffdf7;
}

.receipt-grid strong {
  display: block;
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.12;
}

@media (max-width: 980px) {
  .nav-mini {
    display: none;
  }

  .sample-note {
    position: static;
    max-width: none;
    border: 0;
    background: #111;
  }

  .contact-board,
  .contact-meta,
  .inspection-sheet,
  .detail-stage,
  .detail-flow,
  .rfq-desk,
  .control-table,
  .queue-cockpit,
  .receipt {
    grid-template-columns: 1fr;
  }

  .contact-cell.hero-copy,
  .contact-cell.big-photo,
  .contact-cell.vertical,
  .contact-cell.ticket,
  .contact-cell.small-a,
  .contact-cell.small-b,
  .contact-cell.small-c,
  .contact-cell.small-d {
    grid-column: auto;
    grid-row: auto;
    grid-area: auto;
  }

  .contact-board {
    grid-template-areas: none;
    grid-template-rows: none;
    grid-auto-rows: minmax(180px, auto);
  }

  .contact-cell.small-d {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .diagnosis-ledger,
  .detail-mockup,
  .argument-wall,
  .rfq-title,
  .control-table,
  .queue-cockpit {
    min-height: 0;
  }

  .profile-board article,
  .condition-ledger,
  .rfq-grid,
  .rfq-title,
  .control-title,
  .inspection-tape,
  .process-chips,
  .control-matrix,
  .mock-spec,
  .receipt-grid,
  .track-panel ul {
    grid-template-columns: 1fr;
  }

  .control-title,
  .control-matrix article,
  .process-chips span {
    border-right: 0;
  }

  .machine-band img {
    height: 210px;
  }

  .inspection-sheet {
    grid-template-areas:
      "head"
      "photo"
      "ledger"
      "submit";
  }

  .sheet-head {
    min-height: 0;
  }

  .sheet-submit {
    display: grid;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding: 14px;
  }

  .contact-hero,
  .detail-hero,
  .rfq-hero,
  .nova-hero,
  .reply-hero {
    padding-right: 14px;
    padding-left: 14px;
  }

  .contact-cell.hero-copy h1,
  .diagnosis-ledger h2,
  .rfq-title h1,
  .control-title h1,
  .noise-lane h1,
  .clear-queue h2 {
    font-size: 38px;
  }

  .mock-hero h1 {
    font-size: 48px;
  }

  .detail-flow article,
  .rfq-grid article,
  .control-matrix article,
  .review-grid article {
    min-height: 0;
  }

  .control-footer,
  .page-footer {
    display: grid;
  }
}
