/* ============================================================
   DOUM CORPORATION — Design System v2
   "Global Project Management" — agency-grade, type-first
   Reference language: Cheil / Innocean (black base, huge type,
   uppercase EN labels, sharp corners, thin rules, work-first)
   ============================================================ */
:root {
  --black: #0b0b0c;
  --black-soft: #131315;
  --white: #ffffff;
  --paper: #f4f3ef;
  --ink: #121214;
  --gray: #6f6f73;
  --gray-light: #a3a3a8;
  --line-dark: rgba(255, 255, 255, 0.16);
  --line-light: #dddad2;
  --accent: #2742ff;
  --header-h: 76px;
  --pad-section: clamp(96px, 12vw, 160px);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--white); }

.container { width: min(1320px, 92%); margin: 0 auto; }

/* ------------------------------------------------------------
   Header — solid black bar, minimal (Cheil-style)
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 200;
  display: flex;
  align-items: center;
  background: var(--black);
  transition: transform 0.4s ease;
}
.site-header.hide { transform: translateY(-100%); }

.header-inner {
  width: min(1440px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 34px; width: auto; filter: brightness(0) invert(1); }

.gnb { display: flex; gap: 4px; align-items: center; }
.gnb a {
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}
.gnb a:hover { color: var(--white); }
.gnb a.active { color: var(--white); }
.gnb a.active::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px; bottom: 4px;
  height: 2px;
  background: var(--accent);
}
.gnb .gnb-cta {
  margin-left: 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 9px 22px;
  color: var(--white);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.gnb .gnb-cta:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.gnb .gnb-cta.active::after { display: none; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 210;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--white); transition: transform 0.25s, opacity 0.25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ------------------------------------------------------------
   Typographic hero (home) & page head (subpages) — on black
   ------------------------------------------------------------ */
.page-head {
  background: var(--black);
  padding: calc(var(--header-h) + clamp(64px, 10vw, 140px)) 0 clamp(56px, 7vw, 96px);
}
.page-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: clamp(20px, 3vw, 36px);
}
.page-label::before { content: ""; width: 40px; height: 1px; background: var(--accent); }

.display {
  font-size: clamp(44px, 7.6vw, 108px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.display .thin { font-weight: 300; }
.display .accent { color: var(--accent); }
.display .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.85);
}

.page-desc {
  margin-top: clamp(24px, 3.4vw, 40px);
  max-width: 620px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.66);
}

/* Full-bleed media band under a page head */
.media-band { position: relative; overflow: hidden; background: var(--black); }
.media-band img {
  width: 100%;
  height: clamp(320px, 56vw, 640px);
  object-fit: cover;
  opacity: 0.85;
}
.media-band .band-caption {
  position: absolute;
  left: 4%; bottom: 28px;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
/* 16:9 video embed band */
.video-band { position: relative; background: var(--black); aspect-ratio: 16 / 9; max-height: 82vh; overflow: hidden; }
.video-band iframe {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: max(100%, 178vh);
  height: max(100%, 56.25vw);
  border: 0;
  pointer-events: none;
}
.video-band::after { content: ""; position: absolute; inset: 0; background: rgba(8, 8, 10, 0.22); }

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
.section { padding: var(--pad-section) 0; background: var(--black); color: var(--white); }
.section.paper { background: var(--paper); color: var(--ink); }
.section.white { background: var(--white); color: var(--ink); }

.sec-label {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: clamp(28px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
}
.section.paper .sec-label, .section.white .sec-label { border-top-color: var(--line-light); }
.sec-label .idx { color: var(--accent); letter-spacing: 0.1em; }

.sec-title {
  font-size: clamp(30px, 4.4vw, 58px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  max-width: 900px;
}
.sec-desc {
  margin-top: 22px;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.62);
}
.section.paper .sec-desc, .section.white .sec-desc { color: var(--gray); }

.sec-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* ------------------------------------------------------------
   Buttons & links
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: var(--accent); color: var(--white); transform: translateY(-2px); }
.btn-outline { border-color: rgba(255, 255, 255, 0.45); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--accent); transform: translateY(-2px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  transition: color 0.2s, gap 0.25s;
}
.link-arrow::after { content: "→"; transition: transform 0.25s; }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover::after { transform: translateX(6px); }

/* ------------------------------------------------------------
   Marquee ticker
   ------------------------------------------------------------ */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 18px 0;
  background: var(--black);
}
.marquee-track { display: inline-flex; align-items: center; gap: 64px; padding-right: 64px; animation: marquee 36s linear infinite; will-change: transform; }
.marquee-track span {
  font-size: clamp(18px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 64px;
}
.marquee-track span::after { content: "•"; color: var(--accent); font-size: 0.7em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Client logo strip (on light bg) */
.logo-marquee { overflow: hidden; padding: 34px 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.logo-marquee .marquee-track { animation-duration: 55s; gap: 72px; padding-right: 72px; }
.logo-marquee img {
  height: 44px; width: auto; max-width: 160px; object-fit: contain;
  filter: grayscale(1); opacity: 0.65; transition: filter 0.2s, opacity 0.2s;
}
.logo-marquee img:hover { filter: none; opacity: 1; }

/* ------------------------------------------------------------
   Work grid (Cheil-style)
   ------------------------------------------------------------ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 40px);
}
.work-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.work-card { display: block; }
.work-card .frame { overflow: hidden; aspect-ratio: 16 / 11; background: var(--black-soft); }
.work-grid.cols-3 .work-card .frame { aspect-ratio: 4 / 3; }
.work-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s;
}
.work-card:hover img { transform: scale(1.045); }
.work-card .meta { padding: 18px 2px 0; }
.work-card .client {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gray); margin-bottom: 6px;
}
.work-card .name { font-size: clamp(17px, 1.7vw, 21px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.4; }
.section.paper .work-card .frame, .section.white .work-card .frame { background: #e8e6df; }

/* ------------------------------------------------------------
   Big stats (Innocean-style)
   ------------------------------------------------------------ */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-big {
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px);
  border-left: 1px solid var(--line-dark);
}
.stat-big:first-child { border-left: 0; padding-left: 0; }
.section.paper .stat-big, .section.white .stat-big { border-left-color: var(--line-light); }
.stat-big .num {
  font-size: clamp(52px, 7vw, 104px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-big .num .unit { font-size: 0.38em; font-weight: 700; margin-left: 4px; letter-spacing: 0; }
.stat-big .label {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gray);
}

/* ------------------------------------------------------------
   Numbered rows (process / services) — editorial list
   ------------------------------------------------------------ */
.num-rows { border-top: 1px solid var(--line-dark); }
.section.paper .num-rows, .section.white .num-rows { border-top-color: var(--line-light); }
.num-row {
  display: grid;
  grid-template-columns: 120px 1.1fr 1.4fr;
  gap: clamp(20px, 4vw, 64px);
  padding: clamp(36px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--line-dark);
  align-items: start;
}
.section.paper .num-row, .section.white .num-row { border-bottom-color: var(--line-light); }
.num-row .no {
  font-size: 15px; font-weight: 800; letter-spacing: 0.12em;
  color: var(--accent); padding-top: 8px;
}
.num-row h3 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }
.num-row .desc { font-size: 16.5px; line-height: 1.85; color: rgba(255, 255, 255, 0.62); }
.section.paper .num-row .desc, .section.white .num-row .desc { color: var(--gray); }
.num-row .desc img { margin-top: 26px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* ------------------------------------------------------------
   Feature split (statement + media)
   ------------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { overflow: hidden; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.split-media:hover img { transform: scale(1.04); }
.split h3 { font-size: clamp(24px, 3vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.32; margin-bottom: 18px; }
.split p { font-size: 16.5px; line-height: 1.85; color: rgba(255,255,255,.62); }
.section.paper .split p, .section.white .split p { color: var(--gray); }
.split .tag-no {
  display: inline-block;
  font-size: 13px; font-weight: 800; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}

/* ------------------------------------------------------------
   People
   ------------------------------------------------------------ */
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); }
.people-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 900px; }
.person .photo { overflow: hidden; aspect-ratio: 1 / 1; background: #e8e6df; }
.person .photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  filter: grayscale(1);
  transition: filter 0.4s, transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.person:hover .photo img { filter: none; transform: scale(1.04); }
.person .p-meta { padding: 20px 2px 0; border-top: 0; }
.person h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 10px; }
.person .role { font-size: 12.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.person ul { margin-top: 10px; font-size: 14.5px; line-height: 1.75; color: var(--gray); }

/* ------------------------------------------------------------
   History (about)
   ------------------------------------------------------------ */
.history { border-top: 1px solid var(--line-light); }
.history-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(24px, 5vw, 80px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line-light);
}
.history-row .year {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.history-row ul { display: flex; flex-direction: column; gap: 8px; }
.history-row li { font-size: 16px; color: var(--gray); padding-left: 18px; position: relative; }
.history-row li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 1.5px; background: var(--accent); }
.history-row li strong { color: var(--ink); font-weight: 700; }

/* ------------------------------------------------------------
   Index list (portfolio) — table-like rows
   ------------------------------------------------------------ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: clamp(36px, 5vw, 56px); }
.filter-bar button {
  border: 0; background: none; cursor: pointer;
  font-family: var(--font);
  font-size: 15px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--gray);
  padding: 10px 18px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.filter-bar button:hover { color: var(--ink); }
.filter-bar button.active { background: var(--ink); color: var(--white); }

.index-list { border-top: 1px solid var(--line-light); }
.index-row {
  display: grid;
  grid-template-columns: 110px 150px 1fr 40px;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 26px 4px;
  border-bottom: 1px solid var(--line-light);
  transition: background 0.2s, padding 0.25s;
}
.index-row:hover { background: rgba(0, 0, 0, 0.035); padding-left: 16px; }
.index-row .date { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; color: var(--gray); font-variant-numeric: tabular-nums; }
.index-row .cat {
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
.index-row .title { font-size: clamp(16px, 1.6vw, 19px); font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.index-row .arr { font-size: 20px; color: var(--gray-light); transition: transform 0.25s, color 0.2s; text-align: right; }
.index-row:hover .arr { transform: translateX(6px); color: var(--accent); }

/* ------------------------------------------------------------
   Gallery (photo wall)
   ------------------------------------------------------------ */
.photo-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.photo-wall figure { overflow: hidden; aspect-ratio: 4 / 3; background: #e8e6df; }
.photo-wall img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.photo-wall figure:hover img { transform: scale(1.05); }

/* ------------------------------------------------------------
   Contact
   ------------------------------------------------------------ */
.contact-layout { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact-info h3 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 26px; line-height: 1.35; }
.contact-list { border-top: 1px solid var(--line-light); }
.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line-light);
  font-size: 15.5px;
  color: var(--ink);
}
.contact-list li .k { font-size: 12px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray); padding-top: 3px; }
.contact-list li a:hover { color: var(--accent); }

/* Underline-style form (agency) */
.form-v2 .field { margin-bottom: 34px; }
.form-v2 label {
  display: block;
  font-size: 12px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 10px;
}
.form-v2 input, .form-v2 select, .form-v2 textarea {
  width: 100%;
  border: 0;
  border-bottom: 1.5px solid var(--line-light);
  background: transparent;
  padding: 10px 2px 14px;
  font-size: 18px;
  font-family: var(--font);
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.25s;
}
.form-v2 textarea { min-height: 120px; resize: vertical; }
.form-v2 input:focus, .form-v2 select:focus, .form-v2 textarea:focus { outline: none; border-bottom-color: var(--accent); }
.form-v2 .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.form-v2 .form-note { font-size: 13.5px; color: var(--gray); margin: -6px 0 30px; }

/* ------------------------------------------------------------
   Huge CTA band (footer companion)
   ------------------------------------------------------------ */
.cta-huge { background: var(--black); padding: var(--pad-section) 0; }
.cta-huge .kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gray-light); margin-bottom: 26px; }
.cta-huge a.giant {
  display: block;
  font-size: clamp(40px, 8vw, 120px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--white);
  transition: color 0.25s;
}
.cta-huge a.giant::after {
  content: "↗";
  display: inline-block;
  margin-left: 0.15em;
  color: var(--accent);
  transition: transform 0.3s;
}
.cta-huge a.giant:hover { color: var(--accent); }
.cta-huge a.giant:hover::after { transform: translate(8px, -8px); }
.cta-huge .sub { margin-top: 28px; color: rgba(255,255,255,.55); font-size: 16.5px; max-width: 520px; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid var(--line-dark);
  padding: 64px 0 48px;
  font-size: 13.5px;
  line-height: 2;
}
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; }
.site-footer .f-logo { height: 30px; width: auto; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: 0.95; }
.site-footer strong { color: rgba(255, 255, 255, 0.85); font-weight: 700; }
.site-footer a:hover { color: var(--white); }
.f-contact { text-align: right; }
.f-contact .tel { font-size: 26px; font-weight: 800; color: var(--white); letter-spacing: -0.01em; }
.f-copy {
  margin-top: 36px; padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: 12px; color: rgba(255, 255, 255, 0.35);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------------
   Reveal motion
   ------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .work-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-big:nth-child(odd) { border-left: 0; padding-left: 0; }
  .num-row { grid-template-columns: 70px 1fr; }
  .num-row .desc { grid-column: 2; }
  .photo-wall { grid-template-columns: repeat(3, 1fr); }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .gnb {
    position: fixed;
    inset: 0;
    background: var(--black);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 100px 8% 60px;
    gap: 6px;
    display: none;
  }
  .gnb.open { display: flex; }
  .gnb a { font-size: clamp(28px, 8vw, 40px); font-weight: 800; padding: 10px 0; letter-spacing: -0.02em; color: var(--white); }
  .gnb a.active::after { left: 0; right: auto; width: 34px; bottom: 8px; }
  .gnb .gnb-cta { margin-left: 0; margin-top: 22px; font-size: 17px; padding: 14px 30px; }
  .nav-toggle { display: flex; }

  .split, .contact-layout { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .work-grid, .work-grid.cols-3 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-big { padding: 24px 16px; }
  .photo-wall { grid-template-columns: repeat(2, 1fr); }
  .people-grid, .people-grid.two { grid-template-columns: 1fr; }
  .history-row { grid-template-columns: 1fr; gap: 14px; }
  .index-row { grid-template-columns: 1fr; gap: 6px; padding: 20px 2px; }
  .index-row .arr { display: none; }
  .form-v2 .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .f-contact { text-align: left; }
}

/* ============================================================
   v2.1 — 접근성 · 성능 · 마감 개정
   ============================================================ */

/* JS 없을 때도 콘텐츠 표시 (reveal은 .js 환경에서만 숨김) */
html:not(.js) .reveal { opacity: 1; transform: none; }

/* 페이지 전환 페이드 */
body { animation: pageIn 0.5s ease both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body.leaving { opacity: 0; transition: opacity 0.22s ease; }

/* 다크 섹션 명도 대비 보정 (WCAG AA) */
.section:not(.paper):not(.white) .sec-label,
.page-head .page-label,
.stat-big .label { color: var(--gray-light); }
.section.paper .sec-label, .section.white .sec-label { color: var(--gray); }
.section.paper .stat-big .label, .section.white .stat-big .label { color: var(--gray); }
.f-copy { color: rgba(255, 255, 255, 0.55); }

/* 키보드 포커스 */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* 지오메트리 통일 — 필 → 샤프 */
.btn, .gnb .gnb-cta, .filter-bar button { border-radius: 2px; }

/* 워크 카드 호버 밀도 */
.work-card:hover .name { color: var(--accent); }
.work-card .frame { position: relative; }
.work-card.has-video .frame::after {
  content: "▶";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  color: var(--white);
  background: rgba(8, 8, 12, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
  transition: background 0.25s, transform 0.25s;
}
.work-card.has-video:hover .frame::after {
  background: var(--accent);
  border-color: var(--accent);
  transform: translate(-50%, -50%) scale(1.1);
}

/* 사진 아트디렉션 — 현장 사진은 흑백 기본, 호버 시 컬러 (작업물 썸네일 제외) */
.photo-wall img, .num-row .desc img {
  filter: grayscale(1) contrast(1.04);
  transition: filter 0.4s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.photo-wall figure:hover img, .num-row:hover .desc img { filter: none; }

/* 섹션 본문 여백 유틸 */
.sec-body { margin-top: clamp(40px, 6vw, 72px); }

/* 마퀴 — 호버 시 정지 */
.marquee:hover .marquee-track, .logo-marquee:hover .marquee-track { animation-play-state: paused; }

/* 스크린리더 전용 */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 비디오 퍼사드 (클릭 시 로드) ---------- */
.video-band.facade { cursor: pointer; }
.video-band.facade .poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.82;
}
.video-band.facade .play-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(72px, 9vw, 100px); height: clamp(72px, 9vw, 100px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.65);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  color: var(--white);
  font-size: 20px;
  background: rgba(8, 8, 12, 0.4);
  backdrop-filter: blur(6px);
  z-index: 2;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.video-band.facade .play-badge small { font-size: 10px; letter-spacing: 0.24em; font-weight: 700; }
.video-band.facade:hover .play-badge {
  background: var(--accent);
  border-color: var(--accent);
  transform: translate(-50%, -50%) scale(1.06);
}

/* ---------- 라이트박스 ---------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 400;
  background: rgba(5, 5, 8, 0.94);
  display: flex; align-items: center; justify-content: center;
  padding: 4vmin;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.lightbox.open { opacity: 1; }
.lightbox .lb-frame { width: min(1080px, 100%); aspect-ratio: 16 / 9; background: #000; }
.lightbox iframe { width: 100%; height: 100%; border: 0; }
.lightbox .lb-close {
  position: absolute;
  top: 20px; right: 26px;
  background: none; border: 0;
  color: var(--white);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  font-family: var(--font);
}
.lightbox .lb-close:hover { color: var(--accent); }

/* ---------- 케이스 스터디 ---------- */
.case { border-top: 1px solid var(--line-light); padding: clamp(48px, 7vw, 92px) 0; }
.case:first-of-type { border-top: 0; padding-top: 0; }
.case-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(26px, 4vw, 40px);
}
.case-head .c-cat {
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.case-head h3 { font-size: clamp(24px, 3.2vw, 42px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.case-head .c-date { font-size: 14px; font-weight: 700; color: var(--gray); font-variant-numeric: tabular-nums; }
.case-body {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.case-media { display: grid; gap: 14px; }
.case-media .main { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.case-media .subs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.case-media .subs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.case-info p { font-size: 16.5px; line-height: 1.85; color: var(--gray); }
.case-facts { margin-top: 26px; border-top: 1px solid var(--line-light); }
.case-facts li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line-light);
  font-size: 15px;
  color: var(--ink);
}
.case-facts .k {
  font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gray);
  padding-top: 3px;
}

/* ---------- 인덱스 리스트 썸네일 변형 ---------- */
.index-list.with-thumbs .index-row { grid-template-columns: 92px 100px 150px 1fr 40px; }
.index-row .thumb {
  width: 92px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.3s;
}
.index-row:hover .thumb { filter: none; }
.filter-bar button .cnt { font-size: 12px; opacity: 0.55; margin-left: 5px; font-variant-numeric: tabular-nums; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-light); }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary {
  cursor: pointer;
  padding: 22px 2px;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; font-size: 22px; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 2px 26px; color: var(--gray); font-size: 15.5px; line-height: 1.8; max-width: 680px; }

/* ---------- 모션 최소화 대응 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  body { animation: none; }
  .work-card img, .split-media img, .photo-wall img, .person .photo img { transition: none; }
}

@media (max-width: 900px) {
  .case-body { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .index-list.with-thumbs .index-row { grid-template-columns: 72px 1fr; }
  .index-list.with-thumbs .index-row .thumb { grid-row: span 3; width: 72px; }
}

/* ============================================================
   v2.2 — Cheil-style work grid (portfolio index)
   ============================================================ */
.pgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 17vw, 240px);
  grid-auto-flow: dense;
  gap: 16px;
}
.ptile {
  position: relative;
  display: block;
  overflow: hidden;
  background: #141416;
}
.ptile:nth-child(9n + 1) { grid-column: span 2; grid-row: span 2; }
.ptile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(0.88);
  transition: filter 0.45s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.ptile:hover img { filter: none; transform: scale(1.04); }
.ptile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,8,10,0) 46%, rgba(8,8,10,0.82) 100%);
  pointer-events: none;
}
.ptile .cap {
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  z-index: 2;
}
.ptile .cap .t {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ptile:nth-child(9n + 1) .cap .t { font-size: clamp(16px, 1.6vw, 20px); }
.ptile .cap .m {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.ptile .badge {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  color: var(--white);
  background: rgba(8, 8, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  transition: background 0.25s, border-color 0.25s;
}
.ptile:hover .badge { background: var(--accent); border-color: var(--accent); }
.ptile[data-video], a.ptile { cursor: pointer; }

/* 다크 섹션용 필터 탭 (Cheil 스타일 사각 탭) */
.filter-bar.dark button {
  background: #161618;
  border: 1px solid #2a2a2d;
  color: #a9a9ae;
  border-radius: 2px;
  padding: 10px 22px;
}
.filter-bar.dark button:hover { color: var(--white); border-color: #4a4a4e; }
.filter-bar.dark button.active { background: var(--white); border-color: var(--white); color: var(--black); }
.filter-bar.dark button .cnt { opacity: 0.45; }

@media (max-width: 900px) {
  .pgrid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(150px, 26vw, 220px); }
}
@media (max-width: 560px) {
  .pgrid { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; }
  .ptile:nth-child(9n + 1) { grid-column: span 2; }
}

/* ============================================================
   v2.3 — Home hero slider · service hover preview · city clocks
   ============================================================ */

/* ---------- 풀스크린 히어로 캐러셀 (Cheil식) ---------- */
.hero-slider {
  position: relative;
  height: 100svh;
  min-height: 580px;
  overflow: hidden;
  background: var(--black);
}
.hs-slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease, visibility 0s 1.1s;
}
.hs-slide.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.1s ease;
  z-index: 1;
}
.hs-slide .bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.56) saturate(0.92);
  transform: scale(1.08);
}
.hs-slide.active .bg { animation: kenburns 8s ease-out forwards; }
@keyframes kenburns { to { transform: scale(1.01); } }
.hs-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,10,0.35) 0%, rgba(8,8,10,0) 40%, rgba(8,8,10,0.72) 100%);
}

.hs-content {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(110px, 17vh, 190px);
  z-index: 2;
}
.hs-cat {
  display: flex; align-items: center; gap: 14px;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 18px;
}
.hs-cat::before { content: ""; width: 38px; height: 1px; background: var(--accent); }
.hs-title {
  font-size: clamp(32px, 5.2vw, 74px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
  max-width: 980px;
}
.hs-title .outline { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.85); }
.hs-sub {
  margin-top: 18px;
  max-width: 560px;
  font-size: clamp(15px, 1.4vw, 17.5px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}
.hs-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hs-link { margin-top: 26px; display: inline-flex; }
.hs-link .link-arrow { color: var(--white); }

/* 인디케이터 (01—05 + 프로그레스) */
.hs-nav {
  position: absolute;
  bottom: clamp(30px, 6vh, 52px);
  left: 0; right: 0;
  z-index: 3;
}
.hs-nav .container { display: flex; gap: clamp(14px, 2.4vw, 28px); align-items: center; }
.hs-nav button {
  background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font);
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
  padding: 8px 0;
  transition: color 0.25s;
}
.hs-nav button:hover { color: rgba(255, 255, 255, 0.8); }
.hs-nav button.active { color: var(--white); }
.hs-nav .bar {
  display: block;
  width: 0; height: 2px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
  transition: width 0.35s ease;
}
.hs-nav button.active .bar { width: clamp(36px, 5vw, 64px); }
.hs-nav .bar i {
  display: block;
  height: 100%; width: 0;
  background: var(--accent);
}
.hs-nav button.active .bar i { animation: hsprog var(--hs-dur, 6s) linear forwards; }
@keyframes hsprog { to { width: 100%; } }

/* ---------- 서비스 호버 프리뷰 ---------- */
.svc-wrap {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: stretch;
}
.svc-list { border-top: 1px solid var(--line-light); }
.svc-list li { border-bottom: 1px solid var(--line-light); }
.svc-list a {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: baseline;
  column-gap: 18px;
  padding: clamp(26px, 3.6vw, 44px) 4px;
}
.svc-list .no { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; color: var(--accent); }
.svc-list .name {
  font-size: clamp(26px, 3.6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  transition: color 0.25s;
}
.svc-list .arr { font-size: 24px; color: var(--gray-light); transition: transform 0.3s, color 0.25s; }
.svc-list .hint {
  grid-column: 2 / 4;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray);
}
.svc-list a:hover .name, .svc-list a:focus-visible .name { color: var(--accent); }
.svc-list a:hover .arr { transform: translateX(8px); color: var(--accent); }
.svc-preview {
  position: relative;
  overflow: hidden;
  background: #e8e6df;
  min-height: 460px;
}
.svc-preview img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.5s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-preview img.active { opacity: 1; transform: scale(1); }

/* ---------- SEOUL · LONDON 라이브 시계 ---------- */
.city-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.city {
  border-left: 1px solid var(--line-dark);
  padding-left: clamp(22px, 3.4vw, 48px);
}
.city:first-child { border-left: 0; padding-left: 0; }
.city .cname {
  font-size: clamp(38px, 5.4vw, 76px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--white);
}
.city .ctime {
  margin-top: 14px;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.city .clabel {
  margin-top: 4px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gray-light);
}
.city .cinfo {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 900px) {
  .svc-wrap { grid-template-columns: 1fr; }
  .svc-preview { display: none; }
}
@media (max-width: 760px) {
  .hero-slider { min-height: 520px; }
  .hs-content { bottom: 120px; }
  .city-grid { grid-template-columns: 1fr; }
  .city { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-dark); padding-top: 24px; }
  .city:first-child { border-top: 0; padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hs-slide.active .bg { animation: none; transform: scale(1); }
  .hs-nav button.active .bar i { animation: none; width: 100%; }
  .svc-preview img { transition: opacity 0.2s; transform: none; }
}

/* ============================================================
   v2.4 — Home v3: statement · work grid(below-caption) ·
   scroll-driven history · contact statement
   ============================================================ */

/* ---------- 이노션식 인라인 이미지 스테이트먼트 ---------- */
.statement {
  font-size: clamp(30px, 4.8vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.28;
  max-width: 1180px;
  word-break: keep-all;
}
.statement .inline-img {
  display: inline-block;
  width: clamp(72px, 9vw, 158px);
  height: clamp(42px, 5vw, 88px);
  object-fit: cover;
  vertical-align: -0.12em;
  margin: 0 0.12em;
  border-radius: 4px;
  filter: saturate(0.95);
}
.statement .dim { color: var(--gray-light); }
.section.paper .statement .dim, .section.white .statement .dim { color: var(--gray); }

/* ---------- Cheil식 워크 그리드 (캡션 하단) ---------- */
.wgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: clamp(28px, 4vw, 48px) clamp(16px, 2vw, 28px);
}
.wtile { display: block; }
.wtile .ph {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #141416;
}
.wtile.large { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.wtile.large .ph { aspect-ratio: auto; flex: 1; min-height: 380px; }
.wtile .ph img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.9);
  transition: filter 0.45s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.wtile:hover .ph img { filter: none; transform: scale(1.035); }
.wtile .ph .badge {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px;
  color: var(--white);
  background: rgba(8, 8, 12, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  transition: background 0.25s, border-color 0.25s;
  z-index: 2;
}
.wtile:hover .ph .badge { background: var(--accent); border-color: var(--accent); }
.wtile .cap { padding: 14px 2px 0; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.wtile .cap .t { font-size: 15.5px; font-weight: 700; color: var(--white); letter-spacing: -0.01em; }
.wtile.large .cap .t { font-size: 18px; }
.wtile .cap .c {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gray-light);
}
.wtile[data-video], a.wtile { cursor: pointer; }

/* ---------- 스크롤 연동 History ---------- */
.hscroll { position: relative; background: var(--black); }
.hscroll .hs-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hstep-bgs { position: absolute; inset: 0; }
.hstep-bgs img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: brightness(0.32) saturate(0.85);
  transition: opacity 0.7s ease;
}
.hstep-bgs img.active { opacity: 1; }
.hscroll .hs-inner { position: relative; z-index: 2; width: 100%; }
.hs-year-wrap { position: relative; height: clamp(120px, 17vw, 250px); }
.hs-year {
  position: absolute; left: 0; top: 0;
  font-size: clamp(110px, 16vw, 240px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  font-variant-numeric: tabular-nums;
}
.hs-year.active { opacity: 1; transform: none; color: var(--white); -webkit-text-stroke: 0; }
.hs-mile-wrap { position: relative; margin-top: clamp(18px, 3vw, 34px); min-height: 110px; }
.hs-mile {
  position: absolute; left: 0; top: 0; right: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease 0.08s, transform 0.5s ease 0.08s;
}
.hs-mile.active { opacity: 1; transform: none; }
.hs-mile .m-title {
  font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--white);
  max-width: 760px;
}
.hs-mile .m-desc { margin-top: 10px; font-size: 15.5px; line-height: 1.75; color: rgba(255, 255, 255, 0.6); max-width: 560px; }
.hs-dots { display: flex; gap: 10px; margin-top: clamp(24px, 4vw, 40px); }
.hs-dots span {
  width: 34px; height: 2px;
  background: rgba(255, 255, 255, 0.22);
  transition: background 0.3s;
}
.hs-dots span.active { background: var(--accent); }
.hscroll .hs-cta { margin-top: clamp(26px, 4vw, 44px); }

/* ---------- 이노션식 Contact 마무리 ---------- */
.contact-final { background: var(--black); padding: var(--pad-section) 0; }
.contact-final .statement { color: var(--white); }
.contact-final .cf-row {
  margin-top: clamp(48px, 8vw, 96px);
  display: flex;
  justify-content: flex-end;
}
.contact-final .cf-info { text-align: right; }
.contact-final .cf-info .addr {
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.contact-final .cf-info .addr::after { content: " ↗"; color: var(--accent); }
.contact-final .cf-info .tel {
  margin-top: 10px;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.contact-final .cf-info .btn { margin-top: 26px; }

@media (max-width: 900px) {
  .wgrid { grid-template-columns: repeat(2, 1fr); }
  .wtile.large { grid-column: span 2; grid-row: auto; }
  .wtile.large .ph { aspect-ratio: 16 / 10; min-height: 0; flex: none; }
}
@media (max-width: 560px) {
  .wgrid { grid-template-columns: 1fr; }
  .wtile.large { grid-column: auto; }
  .contact-final .cf-row { justify-content: flex-start; }
  .contact-final .cf-info { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-year, .hs-mile { transition: none; }
  .hstep-bgs img { transition: none; }
}

/* 다크 섹션용 로고 마퀴 */
.logo-marquee.on-dark { border-top-color: var(--line-dark); border-bottom-color: var(--line-dark); }
.logo-marquee.on-dark img { filter: grayscale(1) invert(1); opacity: 0.72; }
.logo-marquee.on-dark img:hover { filter: grayscale(1) invert(1); opacity: 1; }

/* 캐러셀 호버 중 프로그레스 바 정지 (타이머와 동기화) */
.hero-slider:hover .hs-nav button.active .bar i { animation-play-state: paused; }

/* JS 미로딩 시 히스토리 섹션 빈 스크롤 방지 */
html:not(.js) .hscroll { height: auto !important; }

/* ============================================================
   v2.5 — 인라인 심볼 (스테이트먼트 내 사진 → 라인 아이콘 캡슐)
   ============================================================ */
.inline-sym {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(58px, 6.4vw, 112px);
  height: clamp(34px, 3.6vw, 62px);
  border-radius: 999px;
  background: var(--accent);
  vertical-align: -0.08em;
  margin: 0 0.14em;
}
.inline-sym svg {
  width: 52%;
  height: 58%;
  stroke: var(--white);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.statement .inline-sym { transform: translateY(-0.02em); }
.contact-final .inline-sym { background: var(--white); }
.contact-final .inline-sym svg { stroke: var(--black); }

/* ============================================================
   v2.6 — 워드마크 로고 (D-O-UM, O = 국경을 관통하는 원)
   ============================================================ */
.logo-mark {
  display: inline-flex;
  align-items: center;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--white);
}
.logo-o {
  width: 0.92em;
  height: 0.92em;
  margin: 0 0.07em;
  flex: none;
  stroke: var(--accent);
  stroke-width: 2.6;
  fill: none;
  stroke-linecap: round;
}
.logo:hover .logo-o { stroke: var(--white); transition: stroke 0.25s; }
.f-logo-mark { font-size: 30px; margin-bottom: 20px; }

/* ============================================================
   v2.7 — 로고 리파인: 모노톤 + 관통선 오버슛, 호버 시 선만 액센트
   ============================================================ */
.logo-o {
  width: 1.14em;
  height: 0.98em;
  margin: 0 0.03em;
  stroke: var(--white);
  stroke-width: 3.2;
}
.logo:hover .logo-o { stroke: var(--white); }
.logo-o path { transition: stroke 0.25s; }
.logo:hover .logo-o path { stroke: var(--accent); }

/* ---------- 타일 호버 시 두 번째 현장 사진 전환 ---------- */
.ptile img.alt { opacity: 0; filter: none; }
.ptile:hover img.alt { opacity: 1; }

/* ---------- On Site 포토 릴 ---------- */
.photo-marquee { overflow: hidden; white-space: nowrap; }
.photo-marquee .marquee-track {
  display: inline-flex;
  gap: 14px;
  padding-right: 14px;
  animation: marquee 80s linear infinite;
  will-change: transform;
}
.photo-marquee img {
  height: clamp(150px, 20vw, 250px);
  width: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.92);
  transition: filter 0.35s;
}
.photo-marquee img:hover { filter: none; }
.photo-marquee:hover .marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .photo-marquee .marquee-track { animation: none; } }
.ptile img.alt { transition: opacity 0.45s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }

/* ============================================================
   v2.9 — 로고 스핀 · 모바일 최적화
   ============================================================ */

/* 로고 호버: O가 한 바퀴 회전 + 관통선 액센트 */
.logo-o { transform-origin: center; }
.logo:hover .logo-o { animation: logo-spin 0.75s cubic-bezier(0.3, 0, 0.2, 1); }
@keyframes logo-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ---------- 모바일 최적화 ---------- */
@media (max-width: 560px) {
  /* 히어로 캐러셀 */
  .hs-content { bottom: 104px; }
  .hs-title { font-size: clamp(26px, 8.4vw, 34px); }
  .hs-sub { font-size: 14px; }
  .hs-actions .btn { padding: 13px 24px; font-size: 14px; }
  .hs-nav .container { gap: 8px; }
  .hs-nav button { font-size: 11.5px; padding: 6px 0; gap: 6px; }
  .hs-nav button.active .bar { width: 24px; }

  /* 스테이트먼트 */
  .statement { font-size: clamp(26px, 8vw, 34px); line-height: 1.34; }
  .statement .inline-sym { width: 50px; height: 28px; }

  /* 스크롤 히스토리 */
  .hs-year-wrap { height: clamp(84px, 26vw, 120px); }
  .hs-year { font-size: clamp(76px, 24vw, 110px); }
  .hs-mile-wrap { min-height: 180px; }
  .hs-mile .m-title { font-size: 19px; }
  .hs-mile .m-desc { font-size: 13.5px; }
  .hs-dots span { width: 22px; }

  /* 타이포·여백 리듬 */
  .display { font-size: clamp(38px, 12vw, 48px); }
  .sec-title { font-size: clamp(26px, 7.6vw, 34px); }
  .page-head { padding-top: calc(var(--header-h) + 56px); }

  /* 그리드·릴 */
  .pgrid { gap: 10px; grid-auto-rows: 34vw; }
  .ptile .cap { left: 10px; right: 10px; bottom: 10px; }
  .ptile .cap .t { font-size: 12.5px; -webkit-line-clamp: 2; }
  .ptile .cap .m { font-size: 9.5px; }
  .ptile .badge { width: 28px; height: 28px; font-size: 10px; top: 8px; right: 8px; }
  .photo-marquee img { height: 132px; }

  /* 케이스 스터디 */
  .case-head h3 { font-size: 21px; }
  .case-facts li { grid-template-columns: 92px 1fr; font-size: 14px; }

  /* 워크 그리드(홈) */
  .wtile .cap .t { font-size: 14px; }

  /* 컨택트 */
  .contact-final .cf-info .tel { font-size: 20px; }
  .form-v2 input, .form-v2 select, .form-v2 textarea { font-size: 16px; } /* iOS 자동 줌 방지 */
}

@media (prefers-reduced-motion: reduce) {
  .logo:hover .logo-o { animation: none; }
}

/* ============================================================
   v3.0 — 아카이브 아코디언 · 이미지 팝업
   ============================================================ */

/* ---------- Full Archive 아코디언 (다크) ---------- */
.arch details { border-bottom: 1px solid var(--line-dark); }
.arch details:first-child { border-top: 1px solid var(--line-dark); }
.arch summary {
  display: grid;
  grid-template-columns: minmax(150px, auto) 1fr auto;
  align-items: baseline;
  gap: clamp(18px, 4vw, 56px);
  padding: clamp(22px, 3.4vw, 38px) 4px;
  cursor: pointer;
  list-style: none;
}
.arch summary::-webkit-details-marker { display: none; }
.arch .a-year {
  font-size: clamp(40px, 5.6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.45);
  transition: color 0.3s, -webkit-text-stroke 0.3s;
  font-variant-numeric: tabular-nums;
}
.arch summary:hover .a-year, .arch details[open] .a-year {
  color: var(--white);
  -webkit-text-stroke: 0px transparent;
}
.arch .a-sum {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 560px;
  transition: color 0.3s;
}
.arch summary:hover .a-sum, .arch details[open] .a-sum { color: rgba(255, 255, 255, 0.75); }
.arch .a-tog {
  font-size: 30px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.3s;
}
.arch details[open] .a-tog { transform: rotate(45deg); }
.arch .a-items {
  columns: 2;
  column-gap: clamp(28px, 5vw, 72px);
  padding: 4px 4px clamp(30px, 4vw, 46px);
}
.arch .a-items li {
  break-inside: avoid;
  position: relative;
  padding: 7px 0 7px 18px;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
}
.arch .a-items li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.95em;
  width: 8px; height: 1.5px;
  background: var(--accent);
}

/* ---------- 이미지 팝업 (라이트박스 확장) ---------- */
.lightbox .lb-img {
  max-width: min(1080px, 100%);
  max-height: 84vh;
  object-fit: contain;
  display: block;
}
.lightbox .lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s, border-color 0.2s;
}
.lightbox .lb-nav:hover { background: var(--accent); border-color: var(--accent); }
.lightbox .lb-prev { left: 22px; }
.lightbox .lb-next { right: 22px; }
.lightbox .lb-count {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  font-size: 12.5px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
  .arch summary { grid-template-columns: 1fr auto; }
  .arch .a-sum { grid-column: 1 / -1; grid-row: 2; }
  .arch .a-items { columns: 1; }
  .lightbox .lb-nav { width: 42px; height: 42px; }
  .lightbox .lb-prev { left: 10px; }
  .lightbox .lb-next { right: 10px; }
}

/* ============================================================
   v3.1 — Archive 라이트 모드 · 가독성 개선
   ============================================================ */
.section.paper .arch details,
.section.paper .arch details:first-child { border-color: var(--line-light); }
.section.paper .arch .a-year {
  color: var(--ink);
  -webkit-text-stroke: 0px transparent;
}
.section.paper .arch summary:hover .a-year,
.section.paper .arch details[open] .a-year { color: var(--accent); }
.arch .a-sum { min-width: 0; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.section.paper .arch .a-sum { color: var(--gray); }
.section.paper .arch summary:hover .a-sum,
.section.paper .arch details[open] .a-sum { color: var(--ink); }
.section.paper .arch .a-items li { color: #45454b; font-size: 15px; line-height: 1.7; }

@media (max-width: 700px) {
  .arch .a-sum { white-space: normal; }
}

/* ============================================================
   v3.2 — 브랜드 히어로 슬라이드: 와이어프레임 글로브 배경
   ============================================================ */
.hs-brand-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 720px at 74% 42%, rgba(39, 66, 255, 0.16), transparent 62%),
    linear-gradient(180deg, #0f0f13 0%, #08080a 100%);
  overflow: hidden;
}
.hs-brand-bg .globe {
  position: absolute;
  top: 50%;
  right: -14%;
  width: min(64vw, 940px);
  aspect-ratio: 1 / 1;
  transform: translateY(-50%);
}
.hs-brand-bg .globe svg {
  width: 100%;
  height: 100%;
  animation: globe-spin 90s linear infinite;
}
@keyframes globe-spin { to { transform: rotate(360deg); } }
/* 국경 라인 — 글로브를 관통해 화면 끝까지 (로고 모티프) */
.hs-brand-bg::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1.5px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(39, 66, 255, 0.9) 18%,
    rgba(39, 66, 255, 0.9) 82%,
    transparent 100%);
}

@media (max-width: 760px) {
  .hs-brand-bg .globe { right: -40%; width: 120vw; opacity: 0.8; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-brand-bg .globe svg { animation: none; }
}

/* ============================================================
   v3.3 — Archive 스크롤 타임라인 (스티키 연도 + 양방향 리빌)
   ============================================================ */
.arch-tl .y-block {
  display: grid;
  grid-template-columns: minmax(170px, 320px) 1fr;
  gap: clamp(24px, 5vw, 88px);
  border-top: 1px solid var(--line-light);
  padding: clamp(36px, 5vw, 68px) 0;
}
.arch-tl .y-side { position: relative; }
.arch-tl .y-num {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  font-size: clamp(56px, 7.4vw, 116px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.9;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.arch-tl .y-list li {
  padding: 14px 2px;
  border-bottom: 1px solid var(--line-light);
  font-size: 16px;
  line-height: 1.65;
  color: #3d3d43;
}
.arch-tl .y-list li:last-child { border-bottom: 0; }

/* 양방향 스크롤 리빌 — 내리면 떠오르고 올리면 되돌아감 */
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.rv.in { opacity: 1; transform: none; }
html:not(.js) .rv { opacity: 1; transform: none; }

@media (max-width: 700px) {
  .arch-tl .y-block { grid-template-columns: 1fr; gap: 18px; }
  .arch-tl .y-num { position: static; font-size: clamp(44px, 15vw, 64px); }
  .arch-tl .y-list li { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   v3.4 — 프로젝트 정보 모달
   ============================================================ */
.pmodal {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  width: min(1120px, 100%);
  max-height: 86vh;
  background: #131316;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.pmodal .pm-media {
  position: relative;
  background: #0a0a0c;
  min-height: 340px;
  aspect-ratio: 16 / 11;
}
.pmodal .pm-media iframe,
.pmodal .pm-media .pm-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.pmodal .pm-img { object-fit: cover; }
.pmodal .pm-media .lb-nav { width: 44px; height: 44px; font-size: 16px; }
.pmodal .pm-media .lb-prev { left: 14px; }
.pmodal .pm-media .lb-next { right: 14px; }
.pmodal .pm-count {
  position: absolute;
  bottom: 14px; right: 16px;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.65);
  font-variant-numeric: tabular-nums;
}
.pmodal .pm-info {
  padding: clamp(26px, 3.4vw, 44px) clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.pmodal .pm-meta {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.pmodal .pm-title {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--white);
}
.pmodal .pm-desc {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.62);
}
.pmodal .pm-cta {
  margin-top: auto;
  padding-top: 26px;
  color: var(--white);
  font-size: 13px;
  align-self: flex-start;
}
.pmodal .lb-close {
  position: absolute;
  top: 10px; right: 14px;
  font-size: 30px;
  z-index: 3;
}

@media (max-width: 860px) {
  .pmodal { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .pmodal .pm-media { aspect-ratio: 16 / 10; min-height: 0; }
  .pmodal .pm-info { padding: 22px 20px 28px; }
  .pmodal .pm-cta { padding-top: 20px; }
}

/* ============================================================
   v3.5 — 여백 균등화 · 모바일 정밀 최적화 · 가로 밀림 차단
   ============================================================ */

/* 같은 배경 섹션이 연달아 올 때 이중 패딩 제거 → 섹션 간 여백 균등 */
.section.paper + .section.paper,
.section.white + .section.white,
.section:not(.paper):not(.white) + .section:not(.paper):not(.white) { padding-top: 0; }

/* 가로 밀림(검은 화면) 원천 차단 — clip은 스크롤 컨테이너를 만들지 않아 sticky 안전 */
html { overflow-x: clip; overscroll-behavior-x: none; }
body { overflow-x: clip; }
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

@media (max-width: 560px) {
  /* 모바일 섹션 리듬 통일 */
  :root { --pad-section: 76px; }

  /* 그리드 타일 제목 크기 통일 (대형 타일 예외 제거) */
  .ptile:nth-child(9n + 1) .cap .t { font-size: 12.5px; }
  .wtile.large .cap .t { font-size: 14px; }

  /* 케이스 스터디 여백·타이포 정돈 */
  .case { padding: 40px 0; }
  .case-head { margin-bottom: 20px; }
  .sec-body { margin-top: 40px; }
  .sec-label { margin-bottom: 22px; }

  /* 아카이브 연도·항목 간격 */
  .arch-tl .y-block { padding: 30px 0; }
}

/* ============================================================
   v3.6 — 모바일 스테이트먼트: 구절 단위 스택
   ============================================================ */
@media (max-width: 560px) {
  .statement { font-size: 31px; line-height: 1.28; }
  .statement .st-line { display: block; margin-bottom: 14px; }
  .statement .st-dim { display: block; margin-top: 26px; font-size: 22px; line-height: 1.45; }
  .statement .inline-sym { width: 58px; height: 31px; vertical-align: -0.1em; }
}

/* ============================================================
   v3.7 — 모바일 스테이트먼트 확대·쉼표 제거 · 모바일 라인 다이어트
   ============================================================ */
@media (max-width: 560px) {
  /* 스테이트먼트: 더 크게, 쉼표 없이 */
  .statement { font-size: 36px; line-height: 1.26; }
  .statement .st-comma { display: none; }
  .statement .st-line { margin-bottom: 16px; }
  .statement .inline-sym { width: 64px; height: 34px; }
  .statement .st-dim { font-size: 22px; }

  /* 케이스 팩트: 선 제거 → 라벨 스택 + 액센트 대시 */
  .case-facts { border-top: 0; margin-top: 20px; }
  .case-facts li {
    grid-template-columns: 1fr;
    gap: 3px;
    border-bottom: 0;
    padding: 9px 0 9px 16px;
    position: relative;
  }
  .case-facts li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.95em;
    width: 8px; height: 1.5px;
    background: var(--accent);
  }
  .case-facts li .k { padding-top: 0; }

  /* 아카이브 리스트: 선 제거 → 액센트 대시 불렛 */
  .arch-tl .y-list li {
    border-bottom: 0;
    position: relative;
    padding: 8px 0 8px 18px;
  }
  .arch-tl .y-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 1em;
    width: 8px; height: 1.5px;
    background: var(--accent);
  }
}

/* ============================================================
   v4.0 — 백엔드 페이지 (견적서 · 관리자 · 마이페이지)
   ============================================================ */

/* ---------- 상태 칩 ---------- */
.chip {
  display: inline-block;
  font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-light);
  color: var(--gray);
  background: var(--white);
}
.chip.s-new, .chip.s-sent { background: var(--sky); border-color: #c9d8ff; color: var(--blue, #1d4fd7); color: var(--accent); }
.chip.s-in_progress { background: #fff7e6; border-color: #f3ddae; color: #a06b00; }
.chip.s-quoted { background: #eefaf0; border-color: #cdeccf; color: #1f9d4d; }
.chip.s-done, .chip.s-accepted { background: #0e0e11; border-color: #0e0e11; color: #fff; }
.chip.s-declined { background: #fdeef0; border-color: #f3c4cc; color: #c0392b; }
.chip.s-draft { background: #f1f1f3; color: #6f6f73; }

/* ---------- 견적서 문서 (quote.html) ---------- */
.q-wrap { max-width: 860px; margin: 0 auto; }
.q-doc {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-light);
  padding: clamp(28px, 5vw, 64px);
}
.q-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px; flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 2px solid var(--ink);
}
.q-head .logo-mark { color: var(--ink); }
.q-head .logo-mark .logo-o { stroke: var(--ink); }
.q-head .q-label { text-align: right; }
.q-head .q-label .t { font-size: 12px; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gray); }
.q-head .q-label .no { font-size: 14px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.q-meta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 14.5px;
}
.q-meta .k { font-size: 11px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray); }
.q-meta .v { font-weight: 700; margin-top: 2px; }
.q-title { font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; letter-spacing: -0.02em; margin: 26px 0 6px; }
.q-items { width: 100%; border-collapse: collapse; margin-top: 18px; }
.q-items th {
  text-align: left;
  font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gray);
  padding: 10px 8px;
  border-bottom: 1.5px solid var(--ink);
}
.q-items td { padding: 13px 8px; border-bottom: 1px solid var(--line-light); font-size: 14.5px; vertical-align: top; }
.q-items .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.q-items .it-name { font-weight: 700; }
.q-items .it-detail { color: var(--gray); font-size: 13px; margin-top: 3px; }
.q-totals { margin-top: 18px; margin-left: auto; width: min(340px, 100%); }
.q-totals .row { display: flex; justify-content: space-between; padding: 7px 4px; font-size: 14.5px; color: var(--gray); }
.q-totals .row .num { font-variant-numeric: tabular-nums; color: var(--ink); }
.q-totals .grand {
  border-top: 2px solid var(--ink);
  margin-top: 8px; padding-top: 12px;
  font-size: 17px; font-weight: 800; color: var(--ink);
}
.q-totals .grand .num { font-size: clamp(20px, 2.4vw, 26px); color: var(--accent); }
.q-notes { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line-light); font-size: 13.5px; line-height: 1.8; color: var(--gray); white-space: pre-wrap; }
.q-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.q-accepted-note { margin-top: 18px; font-weight: 700; color: #1f9d4d; }
.q-valid { color: var(--accent); font-weight: 700; }

/* ---------- 관리자 · 마이페이지 공통 ---------- */
.panel {
  background: var(--white);
  border: 1px solid var(--line-light);
  padding: clamp(20px, 3vw, 32px);
  margin-bottom: 22px;
}
.panel h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 16px; }
.rowline {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line-light);
  font-size: 14.5px;
}
.rowline:last-child { border-bottom: 0; }
.rowline .main { flex: 1; min-width: 200px; }
.rowline .t { font-weight: 700; }
.rowline .sub { color: var(--gray); font-size: 13px; margin-top: 2px; }
.rowline .acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn-sm {
  padding: 8px 16px; font-size: 13px;
  border-radius: 2px; border: 1px solid var(--line-light);
  background: var(--white); color: var(--ink);
  font-weight: 700; cursor: pointer; font-family: var(--font);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.btn-sm:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm.primary { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-sm.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.select-sm {
  padding: 7px 10px; font-size: 13px; font-weight: 700;
  border: 1px solid var(--line-light); border-radius: 2px;
  background: var(--white); color: var(--ink); font-family: var(--font);
}
.msg-note { font-size: 13.5px; color: var(--gray); line-height: 1.7; }
.msg-warn {
  background: #fff7e6; border: 1px solid #f3ddae; color: #7a5200;
  padding: 14px 18px; font-size: 13.5px; line-height: 1.7; margin-bottom: 22px;
}

/* 견적 빌더 라인아이템 */
.qb-item {
  display: grid;
  grid-template-columns: 2fr 1.6fr 74px 120px 110px 34px;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.qb-item input {
  border: 1px solid var(--line-light); border-radius: 2px;
  padding: 9px 10px; font-size: 13.5px; font-family: var(--font); color: var(--ink);
  width: 100%;
}
.qb-item input:focus { outline: none; border-color: var(--accent); }
.qb-item .amount { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13.5px; }
.qb-item .del { background: none; border: 0; color: var(--gray-light); font-size: 18px; cursor: pointer; }
.qb-item .del:hover { color: #c0392b; }
.qb-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qb-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* 백엔드 페이지 폼 필드 (라이트) */
.bfield { margin-bottom: 14px; }
.bfield label { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray); margin-bottom: 6px; }
.bfield input, .bfield select, .bfield textarea {
  width: 100%;
  border: 1px solid var(--line-light); border-radius: 2px;
  padding: 11px 12px; font-size: 14.5px; font-family: var(--font); color: var(--ink);
  background: var(--white);
}
.bfield input:focus, .bfield select:focus, .bfield textarea:focus { outline: none; border-color: var(--accent); }
.bfield textarea { min-height: 90px; resize: vertical; }

/* 인쇄 (견적서 PDF 저장) */
@media print {
  .site-header, .site-footer, .q-actions, .no-print { display: none !important; }
  body { background: #fff !important; animation: none; }
  .section { padding: 0 !important; background: #fff !important; }
  .q-doc { border: 0; padding: 0; }
  .q-wrap { max-width: 100%; }
}

@media (max-width: 760px) {
  .qb-item { grid-template-columns: 1fr 1fr; }
  .qb-item .amount { text-align: left; }
  .qb-grid-2, .qb-grid-3 { grid-template-columns: 1fr; }
  .q-meta { grid-template-columns: 1fr; }
}
