/* ==========================================================================
   PRINT BY SM — 신명특수인쇄
   Implementation of the Claude Design source `PrintBySm.dc.html`.
   Tokens below are lifted verbatim from the design's inline styles.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:            oklch(0.18 0.012 250);
  --bg-deep:       oklch(0.15 0.012 250);
  --bg-scrim:      oklch(0.14 0.012 250);
  --surface-head:  oklch(0.22 0.012 250);

  /* Lines */
  --line:          oklch(0.3 0.01 250);
  --line-soft:     oklch(0.28 0.01 250);
  --line-input:    oklch(0.35 0.01 250);
  --line-btn:      oklch(0.4 0.01 250);

  /* Ink */
  --ink:           oklch(0.96 0.01 90);
  --ink-input:     oklch(0.95 0.01 90);
  --ink-90:        oklch(0.9 0.01 90);
  --ink-85:        oklch(0.85 0.01 90);
  --ink-82:        oklch(0.82 0.01 90);
  --ink-80:        oklch(0.8 0.01 90);
  --ink-75:        oklch(0.75 0.01 90);
  --ink-68:        oklch(0.68 0.01 90);
  --ink-65:        oklch(0.65 0.01 90);
  --ink-60:        oklch(0.6 0.01 90);
  --ink-55:        oklch(0.55 0.01 90);

  /* Accent — swap this one value to retheme (see app.js SITE_CONFIG.accent) */
  --accent:        oklch(0.72 0.15 55);
  --accent-ink:    oklch(0.15 0.01 250);
  --accent-08:     oklch(0.72 0.15 55 / 0.08);
  --accent-12:     oklch(0.72 0.15 55 / 0.12);
  --accent-30:     oklch(0.72 0.15 55 / 0.3);
  --accent-35:     oklch(0.72 0.15 55 / 0.35);

  /* Type */
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                   'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-display:  'Archivo Black', sans-serif;

  /* Rhythm */
  --gutter:        48px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
}

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

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

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: oklch(0.15 0.012 250 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand { display: block; cursor: pointer; }

.brand__mark {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand__accent { color: var(--accent); }

.brand__sub {
  display: block;
  font-size: 11px;
  color: var(--ink-60);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.nav__menu { display: flex; gap: 8px; }

.nav__link {
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-85);
  background: transparent;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav__link:hover { background: oklch(0.24 0.012 250); }

.nav__link.is-active {
  color: var(--accent-ink);
  background: var(--accent);
}

.nav__link.is-active:hover { background: var(--accent); }

/* Hamburger — only surfaces on narrow viewports */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 38px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--ink-85);
  border-radius: 2px;
  transition: transform 0.18s, opacity 0.18s;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Page routing — one section visible at a time (see app.js)
   -------------------------------------------------------------------------- */
.page { display: none; }
.page.is-active { display: block; }

/* --------------------------------------------------------------------------
   Shared layout primitives
   -------------------------------------------------------------------------- */
.wrap { max-width: 1200px; margin: 0 auto; }
.wrap--mid { max-width: 1000px; }
.wrap--narrow { max-width: 1000px; }

.section { padding: 100px var(--gutter); }
.section--tint { padding: 80px var(--gutter); background: var(--bg); }

.eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
}

.display {
  margin: 0;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.2;
  word-break: keep-all;
}

.display--sm { font-size: 32px; }
.tight { margin-bottom: 16px; }

.section__lede {
  margin: 0 0 56px;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-68);
  word-break: keep-all;
}

.section__lede--wide { max-width: 680px; }

.subhead {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 800;
  word-break: keep-all;
}

.note {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-68);
  word-break: keep-all;
}

.grid { display: grid; }
.grid--220 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.grid--230 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.grid--260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.grid--280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid--320 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }

.stack { display: flex; flex-direction: column; gap: 14px; }

.mb-xl  { margin-bottom: 48px; }
.mb-2xl { margin-bottom: 64px; }
.mt-xl  { margin-top: 32px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  transition: filter 0.15s, background 0.15s;
}

.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  border: 1px solid var(--accent);
}

.btn--accent:hover { filter: brightness(1.08); }

.btn--ghost {
  border: 1px solid var(--line-btn);
  background: transparent;
  color: var(--ink-90);
  font-weight: 600;
}

.btn--ghost:hover { background: oklch(0.24 0.012 250); }

.btn--block {
  display: block;
  width: 100%;
  padding: 14px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Image placeholders
   `.is-empty` is set by app.js when a source image is missing or fails to
   load, mirroring the <image-slot> placeholder state in the design.
   -------------------------------------------------------------------------- */
.svc__media.is-empty,
.work__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc__media.is-empty {
  background-image: repeating-linear-gradient(45deg,
    oklch(0.24 0.01 250) 0px, oklch(0.24 0.01 250) 12px,
    oklch(0.2 0.01 250) 12px, oklch(0.2 0.01 250) 24px);
}

.work__media {
  background-image: repeating-linear-gradient(135deg,
    oklch(0.26 0.01 250) 0px, oklch(0.26 0.01 250) 14px,
    oklch(0.21 0.01 250) 14px, oklch(0.21 0.01 250) 28px);
}

.svc__media.is-empty::after,
.work__media::after {
  content: attr(data-label);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--ink-55);
  background: oklch(0.15 0.012 250 / 0.8);
  padding: 6px 12px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 140px var(--gutter) 120px;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; background: var(--bg-scrim); }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }

/* Centered copy sits over the middle of the photo at any width, so the scrim
   needs to darken the center rather than lean left the way a split layout
   would — a radial vignette instead of the previous left-to-right gradient. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center,
    oklch(0.14 0.012 250 / 0.92) 0%,
    oklch(0.14 0.012 250 / 0.78) 55%,
    oklch(0.14 0.012 250 / 0.6) 100%);
}

.hero__inner { position: relative; z-index: 2; max-width: 680px; text-align: center; }

.pill {
  display: inline-block;
  width: fit-content;
  margin: 0 0 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
  background: var(--accent-12);
  border: 1px solid var(--accent-35);
  padding: 6px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.hero__headline { margin-bottom: 28px; }

.hero__title {
  margin: 0;
  /* Declared in the design as Space Grotesk; that face is not loaded there
     either, so it resolves through the same Inter fallback. Kept as-is so the
     rendered result matches the design 1:1. */
  font-family: 'Space Grotesk', var(--font-body);
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.5px;
  word-break: keep-all;
}

.hero__lede {
  margin: 14px 0 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-82);
  word-break: keep-all;
}

.hero__body {
  margin: 0 0 44px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-75);
  word-break: keep-all;
}

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* Stats */
.stats { padding: 64px var(--gutter); background: var(--bg); }

.stats__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat__num { font-family: var(--font-display); font-size: 40px; color: var(--accent); }
.stat__label { font-size: 14px; color: var(--ink-65); margin-top: 6px; }

/* Teaser banner */
.teaser {
  margin: 0 var(--gutter) 80px;
  background: linear-gradient(120deg, oklch(0.22 0.03 55) 0%, oklch(0.18 0.012 250) 60%);
  border: 1px solid var(--accent-30);
  border-radius: 16px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.teaser .eyebrow { margin-bottom: 10px; }
.teaser__title { margin: 0; font-size: 22px; font-weight: 800; word-break: keep-all; }
.teaser__cta { padding: 14px 28px; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Quote page
   -------------------------------------------------------------------------- */
.band {
  position: relative;
  padding: 80px var(--gutter);
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.band__bg { position: absolute; inset: 0; z-index: 0; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }

.band__scrim { position: absolute; inset: 0; z-index: 1; background: oklch(0.15 0.012 250 / 0.88); }

.band__inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; }
.band__inner .display--sm { margin-bottom: 48px; }

/* Cards */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
}

.card--deep { background: var(--bg-deep); padding: 24px; }
.card--lg { padding: 30px; border-radius: 14px; }

.card__num {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 14px;
}

.card--lg .card__num { font-size: 26px; }
.card__num--sm { font-size: 22px; margin-bottom: 12px; }

.card__title { margin: 0 0 8px; font-size: 17px; font-weight: 700; word-break: keep-all; }
.card__title--sm { font-size: 16px; }

.card__desc {
  margin: 0;
  font-size: 14px;
  color: var(--ink-68);
  line-height: 1.6;
  word-break: keep-all;
}

/* Setup-cost rows */
.row-card {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
}

.row-card--accent { background: var(--accent-08); border-color: var(--accent-30); }
.row-card__title { margin: 0 0 6px; font-size: 15px; font-weight: 700; word-break: keep-all; }

/* Process table */
.table {
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.table__head,
.table__row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1.6fr 1.8fr;
  padding: 14px 16px;
  font-size: 14px;
}

.table__head {
  background: var(--surface-head);
  font-weight: 700;
  color: var(--ink-85);
}

.table__row {
  border-top: 1px solid var(--line-soft);
  color: var(--ink-75);
  word-break: keep-all;
}

.table__process { font-weight: 700; color: var(--accent); white-space: nowrap; }

/* Per-process detail notes */
.detail-list { display: flex; flex-direction: column; gap: 16px; margin: 32px 0 48px; }

.detail { border-left: 2px solid var(--accent); padding-left: 18px; }
.detail__title { margin: 0 0 6px; font-size: 15px; font-weight: 700; }

.detail__desc {
  margin: 0;
  font-size: 14px;
  color: var(--ink-68);
  line-height: 1.7;
  word-break: keep-all;
}

/* Quote tips */
.tips {
  background: var(--bg-deep);
  border: 1px solid var(--accent-30);
  border-radius: 12px;
  padding: 28px;
}

.tips__title { margin: 0 0 16px; font-size: 16px; font-weight: 800; word-break: keep-all; }

.tips__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.tip {
  margin: 0;
  font-size: 14px;
  color: var(--ink-80);
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.tip__dot { color: var(--accent); }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.svc {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.svc__media { aspect-ratio: 3 / 2; overflow: hidden; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; }
.svc__media.is-empty img { display: none; }

.svc__body { padding: 26px; }

.svc__tag {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent);
}

.svc__title { margin: 0 0 10px; font-size: 19px; font-weight: 800; }

/* --------------------------------------------------------------------------
   Industries
   -------------------------------------------------------------------------- */
.ind {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  background: var(--bg-deep);
}

.ind__chip {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  margin-bottom: 16px;
}

.ind__name { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.ind__ex { margin: 0; font-size: 13px; color: var(--ink-65); line-height: 1.6; word-break: keep-all; }

/* --------------------------------------------------------------------------
   Portfolio
   -------------------------------------------------------------------------- */
.work { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.work__media { height: 220px; }
.work__body { padding: 18px 20px; background: var(--bg-deep); }
.work__title { margin: 0; font-size: 15px; font-weight: 700; }
.work__method { margin: 4px 0 0; font-size: 13px; color: var(--ink-60); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-cards { display: flex; flex-direction: column; gap: 16px; max-width: 480px; }

.info {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  background: var(--bg-deep);
}

.info__label { margin: 0 0 6px; font-size: 12px; color: var(--ink-60); }
.info__value { margin: 0; display: block; font-size: 18px; font-weight: 700; }
.info__value--sm { font-size: 15px; font-weight: 600; color: var(--ink-85); word-break: keep-all; }

/* Phone/email cards are the whole contact path now that there's no form, so
   they read as tappable buttons rather than static info. */
.info--cta { transition: border-color 0.15s, background 0.15s; }
.info--cta .info__value { font-size: 22px; }
.info--cta:hover { border-color: var(--accent); background: var(--accent-08); }
.info--cta:hover .info__value { color: var(--accent); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  padding: 40px var(--gutter);
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink-55);
  font-size: 13px;
}

.footer__top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer p { margin: 0; }

.footer__legal { font-size: 11px; color: var(--ink-55); opacity: 0.75; word-break: keep-all; }

/* --------------------------------------------------------------------------
   Responsive
   The design is authored desktop-first; these breakpoints carry the same
   layout down to tablet and phone widths.
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .section { padding: 80px var(--gutter); }
  .hero { padding: 100px var(--gutter) 88px; min-height: 0; }
  .display { font-size: 36px; }
  .display--sm { font-size: 28px; }
}

@media (max-width: 860px) {
  .nav { flex-wrap: wrap; padding: 14px var(--gutter); }
  .nav__toggle { display: flex; }

  /* The design's scrim runs left-to-right for the desktop split layout. Once
     the copy spans the full width it has to run top-to-bottom instead, or the
     text sits on the bright part of the footage. */
  .hero__scrim {
    background: linear-gradient(180deg,
      oklch(0.14 0.012 250 / 0.9) 0%,
      oklch(0.14 0.012 250 / 0.86) 60%,
      oklch(0.14 0.012 250 / 0.68) 100%);
  }

  .nav__menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding-top: 12px;
  }

  .nav__menu.is-open { display: flex; }
  .nav__link { padding: 12px 14px; }

  /* Table collapses into stacked, labelled rows */
  .table__head { display: none; }

  .table__row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }

  .table__row > div::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--ink-60);
    margin-bottom: 2px;
  }

  .table__process { white-space: normal; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }

  .section { padding: 64px var(--gutter); }
  .section--tint { padding: 64px var(--gutter); }
  .hero { padding: 72px var(--gutter) 64px; }
  .hero__body { font-size: 16px; margin-bottom: 32px; }
  .hero__lede { font-size: 18px; }
  .band { padding: 64px var(--gutter); }

  .display { font-size: 30px; }
  .display--sm { font-size: 24px; }
  .section__lede { margin-bottom: 40px; }

  .btn { padding: 14px 24px; font-size: 15px; }
  .btn-row { gap: 12px; }
  .btn-row .btn { flex: 1 1 100%; text-align: center; }

  .teaser { margin: 0 var(--gutter) 56px; padding: 28px 24px; }
  .teaser__title { font-size: 19px; }
  .teaser__cta { width: 100%; text-align: center; }

  .stats { padding: 48px var(--gutter); }
  .stat__num { font-size: 34px; }

  .footer { padding: 32px var(--gutter); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
