:root {
  color-scheme: light;
  --ink: #132125;
  --muted: #657174;
  --paper: #f4f6f3;
  --white: #ffffff;
  --line: #d8dedb;
  --teal: #17625f;
  --navy: #1f3f65;
  --coral: #bd5b4a;
  --gold: #a77a2d;
  --sky: #dcebf2;
  --mint: #dfeee8;
  --rose: #f2e4df;
  --shadow-sm: 0 8px 22px rgba(19, 33, 37, .08);
  --shadow-md: 0 18px 44px rgba(19, 33, 37, .12);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "Noto Sans KR", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 98, 95, .05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(31, 63, 101, .04) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  letter-spacing: 0;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 99;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, main:focus-visible, iframe:focus-visible {
  outline: 3px solid rgba(189, 91, 74, .42);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px clamp(16px, 4vw, 58px);
  border-bottom: 1px solid rgba(19, 33, 37, .1);
  background: rgba(244, 246, 243, .92);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 210px; font-weight: 900; }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: conic-gradient(from 180deg, var(--teal), var(--navy), var(--coral), var(--teal));
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.58);
}
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: 4px; flex-wrap: wrap; min-width: 0; }
.main-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 8px 10px;
  color: #2e4146;
  font-size: 14px;
  font-weight: 700;
}
.main-nav a:hover, .main-nav a.active { background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.admin-link { color: #1f3f65 !important; background: var(--sky); }

.page { min-height: 72vh; }
.section { padding: clamp(42px, 7vw, 88px) clamp(18px, 5vw, 76px); }
.hero-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .92fr);
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
  padding: clamp(34px, 6vw, 78px) clamp(18px, 5vw, 76px) 34px;
}
.hero-copy { min-width: 0; max-width: 780px; }
.eyebrow { display: inline-flex; margin-bottom: 14px; color: var(--coral); font-size: 13px; font-weight: 900; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: 0; }
h1 { font-size: clamp(40px, 7vw, 86px); max-width: 13ch; overflow-wrap: anywhere; }
h1 span { color: var(--teal); }
h2 { font-size: clamp(28px, 4.2vw, 50px); max-width: 14ch; }
h3 { font-size: 20px; }
p { color: var(--muted); line-height: 1.72; overflow-wrap: anywhere; }
.lead { max-width: 720px; color: #3d4d51; font-size: clamp(17px, 2vw, 21px); }
.microcopy { margin: 8px 0 0; font-size: 13px; }

.industry-tabs, .cta-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.industry-tab, .btn {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 15px;
  font-weight: 900;
  cursor: pointer;
}
.industry-tab { background: var(--white); border-color: var(--line); color: #243e42; }
.industry-tab.active, .btn {
  color: var(--white);
  border-color: #164d4b;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  box-shadow: 0 10px 24px rgba(23, 98, 95, .18);
}
.btn.secondary { color: #243e42; background: var(--white); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn:hover, .industry-tab:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.hero-stage {
  position: relative;
  min-height: 500px;
  border: 1px solid rgba(19, 33, 37, .14);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.hero-stage img { width: 100%; height: 100%; object-fit: cover; }
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(19,33,37,.64));
}
.stage-panel {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(19, 33, 37, .76);
  border: 1px solid rgba(255,255,255,.2);
}
.stage-panel span, .stage-panel small { color: rgba(255,255,255,.72); }
.stage-panel strong { font-size: clamp(18px, 2vw, 26px); }

.proposal-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 76px) 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow-sm);
}
.proposal-strip a {
  display: grid;
  gap: 4px;
  min-height: 90px;
  padding: 16px;
  background: var(--white);
}
.proposal-strip b { color: var(--teal); }
.proposal-strip span { color: var(--muted); font-size: 13px; }

.section-head { display: grid; gap: 12px; margin-bottom: 26px; }
.section-head.compact { margin-bottom: 18px; }
.section-head p { max-width: 760px; }
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.badge-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.badge-cloud span, .badge, .status {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 10px;
  color: #20363a;
  background: var(--mint);
  font-size: 12px;
  font-weight: 900;
}
.evidence-card, .product-card, .scope-board, .contact-form, .research-copy, .admin-board > section, .admin-metrics article, .editor-grid label, .media-grid article, .article-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.95);
  box-shadow: var(--shadow-sm);
}
.evidence-card { min-width: 0; padding: 22px; }
.evidence-card strong { display: block; color: var(--teal); font-size: 40px; line-height: 1; }

.split-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .38fr); gap: 20px; align-items: start; }
.storyline { display: grid; gap: 14px; }
.storyline article {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 20px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.7);
}
.storyline b { color: var(--coral); font-size: 28px; }
.scope-board { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px; position: sticky; top: 86px; }
.scope-board h3 { width: 100%; }
.scope-board span { padding: 9px 10px; border-radius: 8px; background: var(--sky); font-weight: 800; }

.lab-band { background: linear-gradient(135deg, rgba(220,235,242,.8), rgba(223,238,232,.78)); }
.research-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(320px, .7fr); gap: 20px; align-items: stretch; }
.research-visual { min-height: 420px; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-md); }
.research-visual img { width: 100%; height: 100%; object-fit: cover; }
.research-copy { padding: 26px; }
.research-copy ul { color: var(--muted); line-height: 1.9; padding-left: 20px; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { overflow: hidden; min-width: 0; }
.product-thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sky); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .32s var(--ease); }
.product-card:hover .product-thumb img { transform: scale(1.04); }
.card-body { display: grid; gap: 12px; padding: 20px; }
.mini-specs { display: grid; gap: 8px; }
.mini-specs span { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.mini-specs b { color: var(--ink); }

.brochure-hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: center;
  padding: clamp(34px, 6vw, 78px) clamp(18px, 5vw, 76px);
  background: linear-gradient(130deg, rgba(255,255,255,.82), rgba(242,228,223,.86));
}
.brochure-hero img { border-radius: 8px; box-shadow: var(--shadow-md); }
.scope-table { width: 100%; margin-top: 24px; border-collapse: collapse; background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm); }
.scope-table th, .scope-table td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; }
.scope-table th { background: #173b3f; color: var(--white); }

.notice-list { display: grid; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.notice-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 82px; gap: 14px; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.notice-row:hover { background: var(--mint); }
.notice-row em { justify-self: end; font-style: normal; color: var(--teal); font-weight: 900; }
.article-page h1 { max-width: 760px; font-size: clamp(34px, 5vw, 62px); }
.article-box { margin-top: 24px; padding: 24px; max-width: 860px; }

.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, .7fr); gap: 24px; align-items: start; }
.contact-form { display: grid; gap: 14px; padding: 22px; }
.contact-form label { display: grid; gap: 8px; font-weight: 900; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--white);
  color: #2c4246;
}
.contact-form textarea { min-height: 118px; resize: vertical; }

.admin-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 0;
  padding: 0;
}
.admin-nav {
  position: sticky;
  top: 66px;
  height: calc(100vh - 66px);
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px;
  background: #173b3f;
  color: var(--white);
}
.admin-nav a { border-radius: 8px; padding: 10px; color: rgba(255,255,255,.82); }
.admin-nav a:hover { background: rgba(255,255,255,.1); color: var(--white); }
.admin-main { min-width: 0; padding: clamp(28px, 5vw, 62px); }
.admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.admin-metrics article { padding: 18px; }
.admin-metrics strong { display: block; color: var(--coral); font-size: 34px; }
.admin-metrics span { color: var(--muted); font-weight: 800; }
.admin-board { display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 16px; }
.admin-board > section { padding: 20px; }
.status.wait { background: var(--rose); color: #7b3328; }
.status.live { background: var(--mint); color: #155652; }
.status.draft { background: var(--sky); color: #244e77; }
.toast { margin-top: 18px; padding: 14px 16px; border-radius: 8px; background: #173b3f; color: var(--white); box-shadow: var(--shadow-sm); }
.editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.editor-grid label { display: grid; gap: 8px; padding: 16px; font-weight: 900; }
.editor-grid input, .editor-grid textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px; }
.editor-grid textarea { min-height: 118px; }
.admin-table { display: grid; gap: 10px; }
.admin-table div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 110px;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.media-grid article { display: grid; gap: 8px; padding: 12px; }
.media-grid img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; border-radius: 6px; background: var(--sky); }
.preview-frame { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; }
.preview-frame iframe { width: 100%; min-height: 520px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.preview-frame aside { padding: 18px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); }

.tour-rail {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: min(260px, calc(100vw - 36px));
  border: 1px solid rgba(19,33,37,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.tour-toggle {
  width: 100%;
  border: 0;
  padding: 12px 14px;
  background: #173b3f;
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}
.tour-list { display: grid; gap: 0; margin: 0; padding: 10px 14px 12px 30px; }
.tour-list a { display: block; padding: 7px 0; color: #29464b; font-size: 13px; font-weight: 800; }
.tour-rail.is-closed .tour-list { display: none; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 76px);
  border-top: 1px solid var(--line);
  background: var(--white);
}
.footer-links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-weight: 900; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .34s var(--ease), transform .34s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero-shell, .brochure-hero, .research-grid, .contact-grid, .split-panel, .admin-layout { grid-template-columns: 1fr; }
  .hero-stage { min-height: 380px; }
  .proposal-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid, .grid.cols-3, .media-grid, .admin-metrics, .admin-board, .editor-grid, .preview-frame { grid-template-columns: 1fr; }
  .admin-nav { position: static; height: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-nav b { grid-column: 1 / -1; }
  .scope-board { position: static; }
}

@media (max-width: 680px) {
  .topbar { align-items: flex-start; flex-direction: column; gap: 10px; padding: 12px 16px; }
  .brand { min-width: 0; }
  .main-nav { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: 4px; }
  .main-nav a { white-space: nowrap; }
  h1 { font-size: clamp(36px, 13vw, 54px); }
  h2 { font-size: clamp(26px, 9vw, 38px); max-width: 100%; }
  .hero-shell, .brochure-hero, .section { padding-left: 16px; padding-right: 16px; }
  .hero-stage { min-height: 330px; }
  .proposal-strip { margin: 0 16px 16px; grid-template-columns: 1fr; }
  .proposal-strip a { min-height: auto; }
  .notice-row { grid-template-columns: 1fr; }
  .notice-row em { justify-self: start; }
  .admin-table div { grid-template-columns: 1fr; }
  .tour-rail { width: calc(100vw - 28px); right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
