/* ==========================================================================
   M.A.D.S. Corp. — Design tokens
   ========================================================================== */
:root {
  --ink: #14171c;
  --graphite: #2e3138;
  --steel: #6b7079;
  --line: #e2ded7;
  --mist: #ebe8e2;
  --paper: #f4f2ee;
  --card: #ffffff;
  --brand: #ed6614;
  --brand-deep: #c9520e;
  --brand-tint: #fdf1e8;
  --brand-grad: linear-gradient(90deg, #ed6614, #f5a000);
  --night: #050607;
  --night-2: #0f1113;
  --night-card: #17191d;
  --night-line: #2a2d33;
  --on-night: #e9e6e0;
  --on-night-soft: rgba(233, 230, 224, 0.68);
  --ok: #1f8a5b;
  --danger: #c62828;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-pill: 999px;

  --container: 1200px;
  --gutter: 24px;
  --section: 112px;
  --header-h: 72px;

  --shadow-card: 0 12px 32px rgba(17, 17, 17, 0.08);
  --ease: 200ms ease-out;
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

p {
  text-wrap: pretty;
}

/* 줄바꿈 규칙: 문장 = 한 블록(줄 길이 균등), 구(句)는 끊지 않음 */
.sen {
  display: block;
  text-wrap: balance;
}

.ph {
  display: inline-block;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--graphite);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

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

img {
  height: auto;
}

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

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

strong {
  font-weight: 700;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-md);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   Typography
   ========================================================================== */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}

.display {
  text-wrap: balance;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.h2 {
  text-wrap: balance;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.lead {
  text-wrap: pretty;
  font-size: 19px;
  line-height: 1.7;
  color: var(--graphite);
}

.small {
  font-size: 14px;
  line-height: 1.6;
  color: var(--steel);
}

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

.section-head .lead {
  margin-top: 20px;
}

/* Doubly-sure double rule */
.rule {
  display: block;
  width: 36px;
  height: 7px;
  margin-bottom: 22px;
  background: linear-gradient(var(--brand), var(--brand)) top / 100% 2px no-repeat,
    linear-gradient(var(--brand), var(--brand)) bottom / 100% 2px no-repeat;
}

.on-dark .rule {
  background: linear-gradient(#fff, #fff) top / 100% 2px no-repeat,
    linear-gradient(#fff, #fff) bottom / 100% 2px no-repeat;
  opacity: 0.9;
}

/* Heartbeat divider (brand logo motif) */
.heartbeat {
  height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='14' viewBox='0 0 160 14'><path d='M0 9h44l4-7 5 11 4-6 3 2h100' fill='none' stroke='%23ed6614' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'/></svg>")
    center / 160px 14px repeat-x;
  opacity: 0.55;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--r-md);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease),
    transform var(--ease), box-shadow var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  background: linear-gradient(135deg, #f7a11a 0%, #ed6614 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 18px rgba(237, 102, 20, 0.35);
}

.btn-lg {
  min-height: 62px;
  padding: 0 32px;
  font-size: 18px;
  border-radius: 10px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f5a000 0%, #d95a0f 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(237, 102, 20, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--ink);
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Chips / badges
   ========================================================================== */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px 0 10px;
  border-radius: var(--r-pill);
  background: var(--brand-tint);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.chip svg {
  width: 16px;
  height: 16px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: var(--mist);
  color: var(--steel);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(5, 6, 7, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color var(--ease);
}

.header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 26px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav > li {
  position: relative;
}

.nav a,
.nav button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  color: var(--on-night-soft);
  transition: background var(--ease), color var(--ease);
}

.nav a:hover,
.nav button:hover,
.nav button[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav button svg {
  width: 14px;
  height: 14px;
  transition: transform var(--ease);
}

.nav button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 640px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.dropdown.is-open {
  display: grid;
}

.dropdown a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  height: auto;
  padding: 12px 14px;
}

.dropdown a strong {
  font-size: 15px;
}

.dropdown a span {
  font-size: 13px;
  color: var(--steel);
  font-weight: 400;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-tel {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  padding: 0 10px;
  font-variant-numeric: tabular-nums;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  color: #fff;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile drawer */
.drawer {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 90;
  background: var(--night);
  color: var(--on-night);
  overflow-y: auto;
  padding: 16px 20px 120px;
}

.drawer.is-open {
  display: block;
}

.drawer-group {
  padding: 10px 0;
  border-bottom: 1px solid var(--night-line);
}

.drawer-group > span {
  display: block;
  padding: 8px 0;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f5a000;
  font-weight: 600;
}

.drawer a {
  display: block;
  padding: 12px 0;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

.drawer a small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--on-night-soft);
}

/* ==========================================================================
   Hero — 블랙 배경 + 브랜드 선언 + SAFE LEADER 표지판
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
  color: var(--on-night);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 70% at 78% 50%, rgba(245, 180, 0, 0.10), transparent 70%),
    linear-gradient(180deg, #050607 0%, #0a0b0d 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
  padding-block: 128px 112px;
}

.hero-copy {
  max-width: 720px;
}

.hero .eyebrow {
  color: #f5b400;
}

.hero .display {
  color: #fff;
  font-size: 60px;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin-top: 6px;
}

.hero .display em {
  font-style: normal;
  color: #f5b400;
}

.hero .lead {
  margin-top: 28px;
  color: var(--on-night-soft);
  font-size: 18px;
  line-height: 1.8;
}

.hero .lead strong {
  color: #fff;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.hero .chips {
  margin-top: 32px;
}

.hero .chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--on-night);
}

.hero .chip svg {
  color: #f5b400;
}

.hero-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hero-art .sign {
  width: min(100%, 440px);
  height: auto;
  transform: rotate(-6deg);
}

.hero-art-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  font-weight: 500;
}

.hero-art-caption .brandword {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.22em;
  color: #f5b400;
  font-family: "Arial Black", "Pretendard Variable", Pretendard, sans-serif;
  text-shadow: 0 2px 12px rgba(245, 180, 0, 0.35);
}

.hero-foot {
  position: relative;
  background-color: var(--night-2);
  opacity: 0.8;
}

/* ==========================================================================
   Page hero (제품 상세) — 밝은 스톤 배경 위 2단
   ========================================================================== */
.page-hero {
  padding: 56px 0 0;
}

.page-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.page-hero .hero-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--mist);
}

.page-hero .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: var(--section) 0;
}

.section-mist {
  background: var(--mist);
}

.section-night {
  background: var(--night);
  color: rgba(255, 255, 255, 0.82);
}

.section-night .h2,
.section-night .h3,
.section-night strong {
  color: #fff;
}

.section-night .eyebrow {
  color: #f5a000;
}

.section-night .lead,
.section-night p {
  color: var(--on-night-soft);
}

.section-night .card {
  background: var(--night-card);
  border-color: var(--night-line);
}

.section-night .card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.section-night .card .h3,
.section-night .law-card .card-kicker {
  color: #fff;
}

.section-night .card p {
  color: var(--on-night-soft);
}

.section-night .callout {
  background: var(--night-card);
  color: #fff;
}

.section-night .callout a {
  color: #f5a000;
}

/* Cards grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 28px;
  width: 3px;
  height: 0;
  border-radius: 2px;
  background: var(--brand);
  transition: height var(--ease);
}

.card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-card);
}

.card:hover::before {
  height: 36px;
}

.card .h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--graphite);
}

.card-kicker {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}

.stat {
  padding-top: 18px;
  border-top: 2px solid var(--brand);
}

.stat-n {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat-n small {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
  margin-left: 4px;
  letter-spacing: 0;
}

.stat-l {
  margin-top: 10px;
  font-size: 14px;
  color: var(--steel);
  line-height: 1.55;
}

.section-night .stat-n {
  color: #fff;
}

.section-night .stat {
  border-top-color: #f5a000;
}

/* ==========================================================================
   Problem (why now)
   ========================================================================== */
.law-card .card-kicker {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}

.law-card .card-kicker em {
  font-style: normal;
  color: var(--brand);
}

.law-card .h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.law-card p {
  font-size: 15px;
  line-height: 1.7;
}

.callout {
  margin-top: 40px;
  padding: 22px 28px;
  border-left: 3px solid var(--brand);
  background: var(--card);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.callout a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-deep);
  font-weight: 700;
  white-space: nowrap;
}

.callout a svg {
  width: 16px;
  height: 16px;
}

.callout a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.br-lg {
  display: inline;
}

/* ==========================================================================
   Pillars (how we work)
   ========================================================================== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 40px;
}

.pillar-n {
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 14px;
}

.pillar .h3 {
  margin-bottom: 12px;
}

.pillar p {
  font-size: 15.5px;
}

/* ==========================================================================
   Products
   ========================================================================== */
.product-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.product-card .pc-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--mist);
}

.product-card .pc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.product-card:hover .pc-media img {
  transform: scale(1.03);
}

.product-card .pc-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card .tag {
  align-self: flex-start;
  margin-bottom: 12px;
}

.product-card .h3 {
  font-size: 20px;
}

.product-card p {
  font-size: 15px;
  flex: 1;
}

.pc-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.pc-stat {
  min-width: 0;
  font-size: 13px;
  color: var(--steel);
  line-height: 1.4;
}

.pc-foot .link-arrow {
  flex: none;
  white-space: nowrap;
}

.pc-stat b {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.pc-stat b small {
  font-size: 13px;
  color: var(--brand);
  font-weight: 700;
  margin-left: 2px;
}

.help-card {
  margin-top: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 32px 36px;
  border-radius: var(--r-lg);
  background: var(--brand-tint);
  border: 1px solid #f8d9c2;
}

.help-card .h3 {
  margin-bottom: 6px;
}

.help-card p {
  font-size: 15.5px;
}

/* ==========================================================================
   Process
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
  counter-reset: step;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--brand);
}

.step-n {
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--brand);
  font-weight: 700;
}

.step-icon {
  width: 40px;
  height: 40px;
  margin: 18px 0 16px;
  color: var(--ink);
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

.step .h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.step p {
  font-size: 15px;
}

.step-out {
  margin-top: auto;
  padding-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
  color: var(--steel);
}

.step-out b {
  color: var(--ink);
  font-weight: 700;
}

.facts {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.facts svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

/* ==========================================================================
   Cases
   ========================================================================== */
.case-card {
  padding: 0;
  overflow: hidden;
}

.case-card .cc-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.case-card .cc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card .cc-body {
  padding: 20px 22px 22px;
}

.case-card .tag {
  margin-bottom: 10px;
}

.case-card .h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.case-card p {
  font-size: 14.5px;
  color: var(--steel);
}

.cases-foot {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.link-blog {
  font-size: 19px;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--card);
}

.link-blog .naver {
  width: 28px;
  height: 28px;
}

.link-blog:hover {
  border-color: var(--ink);
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.plan {
  display: flex;
  flex-direction: column;
}

.plan.is-featured {
  border-color: var(--ink);
  box-shadow: var(--shadow-card);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 28px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.plan .h3 {
  font-size: 22px;
}

.plan-for {
  font-size: 14px;
  color: var(--steel);
  margin-bottom: 20px;
}

.plan ul {
  flex: 1;
  display: grid;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.plan li svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--brand);
}

.plan-target {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
  color: var(--steel);
}

.plan-target b {
  color: var(--ink);
}

.quote-includes {
  margin-top: 56px;
  padding: 36px 40px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.quote-includes .h3 {
  font-size: 20px;
}

.quote-includes ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.quote-includes li {
  display: flex;
  gap: 8px;
  align-items: center;
}

.quote-includes li svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
  flex: none;
}

.pricing-cta {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.pricing-note {
  text-align: center;
  font-weight: 600;
  color: var(--ink);
}

.faq-foot {
  margin-top: 28px;
  text-align: center;
  font-size: 15px;
  color: var(--steel);
}

.faq-foot a {
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

/* ==========================================================================
   Objections / FAQ
   ========================================================================== */
.objections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px var(--gutter);
}

.objection {
  padding: 26px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.objection .h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.objection .h3::before {
  content: "Q";
  display: inline-block;
  margin-right: 10px;
  color: var(--brand);
  font-weight: 800;
}

.objection p {
  font-size: 15px;
}

.faq {
  max-width: 860px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform var(--ease);
  margin-right: 4px;
}

.faq details[open] summary::after {
  transform: rotate(225deg);
}

.faq details p {
  padding: 0 4px 24px;
  font-size: 15.5px;
  max-width: 760px;
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: stretch;
}

/* 사진 높이를 오른쪽 글 블록 높이에 맞춤 (데스크톱) */
.about-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 360px;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about .stats {
  margin-top: 40px;
}

.about .stat-n {
  font-size: 40px;
}

.about-meta {
  margin-top: 36px;
  display: grid;
  gap: 8px;
  font-size: 14.5px;
  color: var(--steel);
}

.about-meta b {
  color: var(--ink);
  font-weight: 700;
  margin-right: 8px;
}

/* ==========================================================================
   Quote form
   ========================================================================== */
.quote {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.quote-side .lead {
  color: rgba(255, 255, 255, 0.78);
  margin-top: 20px;
}

.quote-alt {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 14px;
}

.quote-alt a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
}

.quote-alt a svg {
  width: 22px;
  height: 22px;
  color: #f5a000;
}

.quote-alt small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}

.form {
  background: var(--card);
  color: var(--graphite);
  border-radius: var(--r-lg);
  padding: 36px;
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field label,
.field > span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.field label .req,
.field > span .req {
  color: var(--brand);
  margin-left: 2px;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(237, 102, 20, 0.18);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--danger);
}

.field-error {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  color: var(--danger);
}

.field.is-invalid .field-error {
  display: block;
}

.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--graphite);
  cursor: pointer;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  margin: 0;
  flex: none;
}

.file-input {
  font-size: 14px;
}

.file-input input {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  background: var(--mist);
}

.consent {
  font-size: 14px;
  align-items: flex-start;
}

.consent input {
  margin-top: 3px;
}

.consent a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
}

.form-status.is-error {
  display: block;
  background: #fdecec;
  color: var(--danger);
}

.form-status.is-ok {
  display: block;
  background: #e8f5ee;
  color: var(--ok);
}

.form-fine {
  font-size: 13px;
  color: var(--steel);
  text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--night-2);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 40px;
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
  height: 24px;
  width: auto;
}

.footer-brand p {
  margin-top: 18px;
  line-height: 1.8;
}

.footer-h {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer li + li {
  margin-top: 8px;
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
  margin-right: 16px;
}

/* ==========================================================================
   Mobile sticky bar / floating
   ========================================================================== */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(5, 6, 7, 0.96);
  border-top: 1px solid var(--night-line);
  backdrop-filter: blur(8px);
  gap: 10px;
}

.mobile-bar .btn {
  flex: 1;
  min-height: 54px;
  font-size: 17px;
  font-weight: 800;
}

.mobile-bar .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.kakao-fab {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 94;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 22px 0 16px;
  border-radius: var(--r-pill);
  background: #fee500;
  color: #191919;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(254, 229, 0, 0.18);
  transition: transform var(--ease), box-shadow var(--ease);
}

.kakao-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4), 0 0 0 6px rgba(254, 229, 0, 0.22);
}

.kakao-fab svg {
  width: 26px;
  height: 26px;
}

/* ==========================================================================
   Product detail pages
   ========================================================================== */
.page-hero .display {
  font-size: 44px;
}

.page-hero .lead {
  margin-top: 22px;
}

.page-hero .hero-actions {
  margin-top: 32px;
}


.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--steel);
  margin-bottom: 22px;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.page-stats {
  padding: 56px 0 0;
}

.types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}

.type-card {
  padding: 0;
  overflow: hidden;
}

.type-card .tc-media {
  aspect-ratio: 4 / 3;
  background: var(--mist);
  overflow: hidden;
}

.type-card .tc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.type-card .tc-body {
  padding: 22px 24px 24px;
}

.type-card .h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.type-card p {
  font-size: 15px;
}

.type-card .tc-meta {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--steel);
}

.apps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
}

.app {
  text-align: center;
}

.app-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--mist);
}

.app-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app b {
  font-size: 15px;
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}

.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 640px;
  font-variant-numeric: tabular-nums;
}

.spec caption {
  text-align: left;
  padding: 18px 20px 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.spec caption small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--steel);
}

.spec th,
.spec td {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.spec thead th {
  background: var(--mist);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--steel);
  white-space: nowrap;
}

.spec tbody th {
  font-weight: 700;
  color: var(--ink);
}

.spec tbody th:first-child,
.spec tbody td:first-child {
  position: sticky;
  left: 0;
  background: #fff;
}

.spec-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--steel);
}

.spec-group + .spec-group {
  margin-top: 40px;
}

.compare {
  min-width: 720px;
}

.compare td {
  white-space: normal;
}

.law-list {
  display: grid;
  gap: 14px;
}

.law-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 15px;
}

.law-list b {
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.sub-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.sub-section + .sub-section {
  margin-top: 88px;
}

.sub-section:nth-child(even) .sub-media {
  order: -1;
}

.sub-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.sub-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sub-section .h2 {
  font-size: 32px;
}

.sub-section .lead {
  margin-top: 16px;
  font-size: 17px;
}

.sub-section .stats {
  margin-top: 28px;
}

.sub-section .stat-n {
  font-size: 36px;
}

.cta-band {
  padding: 88px 0;
}

.cta-band .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.cta-band .h2 {
  font-size: 32px;
}

.cta-band p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
}

.cta-band .hero-actions {
  margin-top: 0;
}

.other-products {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.other-products a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  transition: border-color var(--ease), background var(--ease);
}

.other-products a:hover {
  border-color: var(--ink);
  background: var(--mist);
}

.other-products a small {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  color: var(--steel);
  font-size: 12.5px;
}

/* Simple text pages */
.prose {
  max-width: 800px;
  margin: 0 auto;
  padding: 72px 0 112px;
}

.prose .h2 {
  margin-bottom: 32px;
}

.prose h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 40px 0 12px;
}

.prose p,
.prose li {
  font-size: 15.5px;
}

.prose ul {
  list-style: disc;
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 16px 0;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--mist);
  font-weight: 600;
}

.thanks {
  text-align: center;
  padding: 120px 0;
}

.thanks .display {
  font-size: 44px;
}

.thanks .lead {
  margin: 20px auto 0;
  max-width: 560px;
}

.thanks .hero-actions {
  justify-content: center;
}

.thanks-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
}

.thanks-mark svg {
  width: 36px;
  height: 36px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --section: 88px;
  }

  .display {
    font-size: 44px;
  }

  .hero .display {
    font-size: 48px;
  }

  .h2 {
    font-size: 34px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero .container,
  .page-hero .container,
  .about,
  .quote,
  .sub-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-media {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .sub-section:nth-child(even) .sub-media {
    order: 0;
  }

  .grid-3,
  .grid-4,
  .pillars,
  .steps,
  .types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-includes {
    grid-template-columns: 1fr;
  }

  .quote-includes ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .nav,
  .header-tel {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .cta-band .container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section: 64px;
    --gutter: 20px;
    --header-h: 64px;
  }

  body {
    padding-bottom: 80px;
  }

  .display {
    font-size: 34px;
  }

  .h2 {
    font-size: 28px;
  }

  .h3 {
    font-size: 20px;
  }

  .lead {
    font-size: 17px;
  }

  .eyebrow {
    font-size: 11px;
  }

  .stat-n {
    font-size: 40px;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .hero-grid {
    padding-block: 56px 64px;
  }

  .hero .display {
    font-size: 36px;
  }

  .hero-art .sign {
    width: min(70%, 300px);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-media,
  .page-hero .hero-media {
    aspect-ratio: 16 / 10;
  }

  .hero-foot {
    margin-top: 40px;
  }

  .logo img {
    height: 22px;
  }

  .header-cta .btn {
    display: none;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .pillars,
  .stats,
  .objections,
  .types,
  .checks,
  .form-row {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: 20px;
  }

  .apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 24px;
    border-left: 2px solid var(--line);
  }

  .step {
    padding: 0 0 36px;
    border-top: 0;
  }

  .step::before {
    top: 4px;
    left: -31px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px #fff;
  }

  .step-icon {
    margin-top: 12px;
  }

  .help-card {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .help-card .btn {
    width: 100%;
  }

  .quote-includes {
    padding: 26px;
  }

  .quote-includes ul {
    grid-template-columns: 1fr;
  }

  .form {
    padding: 24px;
  }

  .other-products {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .mobile-bar {
    display: flex;
  }

  .kakao-fab {
    bottom: 92px;
    right: 16px;
    height: 50px;
    padding: 0 18px 0 14px;
    font-size: 15px;
  }

  .page-hero .display,
  .cta-band .h2,
  .thanks .display {
    font-size: 30px;
  }

  .sub-section .h2 {
    font-size: 26px;
  }

  .law-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .faq summary {
    font-size: 16px;
    padding: 18px 2px;
  }

  .callout {
    padding: 18px 20px;
  }
}

@media (max-width: 480px) {
  .br-lg {
    display: none;
  }

  .hero .display {
    font-size: 32px;
  }

  .callout a {
    white-space: normal;
  }

  .apps {
    grid-template-columns: 1fr 1fr;
  }

  .other-products {
    grid-template-columns: 1fr;
  }

  .chip {
    height: auto;
    padding: 6px 12px 6px 10px;
    white-space: normal;
  }
}

/* 수정 요청용 번호표: body.is-edit 일 때만 표시 (?edit=1 또는 시안 빌드) */
.is-edit [data-t] {
  position: relative;
  outline: 1px dashed rgba(237, 102, 20, 0.35);
  outline-offset: 2px;
}

.is-edit [data-t]::before {
  content: attr(data-t);
  position: absolute;
  top: -10px;
  left: -4px;
  z-index: 5;
  padding: 1px 6px;
  border-radius: 4px;
  background: #ed6614;
  color: #fff;
  font: 700 10px/1.5 var(--font);
  letter-spacing: 0.04em;
  pointer-events: none;
  text-transform: none;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .header,
  .mobile-bar,
  .kakao-fab,
  .drawer {
    display: none !important;
  }

  body {
    padding-bottom: 0;
  }
}

/* ==========================================================================
   Blog / Insights (blog.html, blog/*.html)
   ========================================================================== */
.blog-card {
  display: flex;
  flex-direction: column;
}

.blog-date {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--steel);
  font-variant-numeric: tabular-nums;
}

.blog-card .h3 {
  margin-top: 6px;
}

.blog-card .h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-card p {
  flex: 1;
  margin-top: 10px;
}

.blog-card .link-arrow {
  margin-top: 16px;
}

.prose .help-card {
  margin-top: 48px;
}

/* ==========================================================================
   Cases page (cases.html) — 현장명 + 현장 사진
   ========================================================================== */
.page-hero-dark {
  background: var(--night);
  color: var(--on-night);
  padding: 72px 0 40px;
}

.page-hero-dark .breadcrumb {
  color: rgba(255, 255, 255, 0.5);
}

.page-hero-dark .eyebrow {
  color: #f5b400;
}

.page-hero-dark .display {
  color: #fff;
  font-size: 48px;
}

.page-hero-dark .lead {
  color: var(--on-night-soft);
  margin-top: 18px;
  max-width: 640px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.filter {
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--on-night);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.filter:hover {
  border-color: #fff;
}

.filter.is-active {
  background: #f5b400;
  border-color: #f5b400;
  color: #0b0c0e;
}

.projects .container {
  display: grid;
  gap: 72px;
}

.project.is-hidden {
  display: none;
}

.project-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.project-head .tag {
  margin-bottom: 10px;
}

.project-head .h2 {
  font-size: 30px;
}

.project-meta {
  margin-top: 8px;
  font-size: 15px;
  color: var(--steel);
}

.project-count {
  flex: none;
  font-size: 13px;
  color: var(--steel);
  padding-bottom: 6px;
}

.photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.photo {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--mist);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.photo:hover img {
  transform: scale(1.03);
}

.photos > .photo:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.cc-more {
  margin-top: 14px;
  font-size: 14px;
}

.cases-foot {
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(5, 6, 7, 0.94);
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lb-img {
  max-width: min(1400px, 92vw);
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lb-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-weight: 600;
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.lb-close {
  top: 22px;
  right: 22px;
  transform: none;
  font-size: 30px;
}

.lb-prev {
  left: 22px;
}

.lb-next {
  right: 22px;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 768px) {
  .page-hero-dark {
    padding: 44px 0 32px;
  }

  .page-hero-dark .display {
    font-size: 30px;
  }

  .photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .photos > .photo:first-child {
    grid-column: span 2;
    grid-row: auto;
  }

  .project-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .project-head .h2 {
    font-size: 24px;
  }

  .lb-prev,
  .lb-next {
    width: 42px;
    height: 42px;
    font-size: 26px;
  }

  .lb-prev {
    left: 8px;
  }

  .lb-next {
    right: 8px;
  }
}
