/* ==========================================================================
   css/projects-depot.css — Card #6: Proyek ("Zikri's Depot")
   Collision-Free 3D Shipping Container & Gantry Crane Depot
   + Rich 2-Column Interior Showcase + Responsive Mobile Cargo Sheet + Modal
   Scoped strictly under .pg.p5 and body.dp-active.
   ========================================================================== */

@font-face {
  font-family: "Archivo X";
  src: url("https://fonts.gstatic.com/s/archivo/v25/k3kPo8UDI-1M0wlSV9XAw6lQkqWY8Q8EsLydOxI.woff2")
    format("woff2");
  font-weight: 800 900;
  font-stretch: 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("https://fonts.gstatic.com/s/manrope/v23/xn7gYHE41ni1AdIRggexSg.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("https://fonts.gstatic.com/s/instrumentserif/v5/jizHRFtNs2ka5fXjeivQ4LroWlx-6zAjjH7M.woff2")
    format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Page p5 Full-Bleed Terracotta Isolation ---------- */
.pg.p5 {
  --dp-page: #e27657;
  --dp-word: #f6ede1;
  --dp-ui: #ffffff;
  --dp-accent: #f0653f;
  --dp-inside: #161a28;
  --dp-body-ink: rgba(255, 255, 255, 0.88);
  --dp-chip-line: rgba(255, 255, 255, 0.24);
  --dp-pill-line: rgba(255, 255, 255, 0.85);
  --pbg: #e27657 !important;
  --pink: #ffffff !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #e27657 !important;
  color: #ffffff !important;
  font-family:
    "Manrope",
    "Noto Sans KR",
    system-ui,
    -apple-system,
    sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

.pg.p5 *,
.pg.p5 *::before,
.pg.p5 *::after {
  box-sizing: border-box;
}

.pg.p5 .pgb {
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  display: block !important;
  overflow: hidden !important;
  background: #e27657 !important;
  color: #ffffff !important;
}

.pg.p5 > .pgb > .bg,
.pg.p5 > .pgb > .bk,
.pg.p5 > .pgb > .pnav,
.pg.p5 #zkBar {
  display: none !important;
}

.pg.p5 .bd {
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ---------- Main Depot Stage ---------- */
.dp-stage {
  --k: 1px;
  --n: 1px;
  --rail: 68px;
  --wordFS: 210px;
  --wordX: 0px;
  --wordB: 0px;
  --wordH: 185px;
  --sheet-top: 230px;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--dp-page);
  color: var(--dp-ui);
  font-family:
    "Manrope",
    "Noto Sans KR",
    system-ui,
    -apple-system,
    sans-serif;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.dp-stage .dp-rv {
  opacity: 1;
}

/* ---------- Layer 1: Giant Background Word ---------- */
.dp-word {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--wordH) + 60px);
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.dp-word span {
  position: absolute;
  left: var(--wordX);
  bottom: var(--wordB);
  display: block;
  white-space: nowrap;
  font-family: "Archivo X", "Archivo", "Unbounded", "Noto Sans KR", system-ui, sans-serif;
  font-weight: 900;
  font-stretch: 125%;
  font-size: var(--wordFS);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--dp-word);
  will-change: transform, opacity;
}

.dp-stage[data-lang="ar"] .dp-word span,
.dp-stage[data-lang="zh"] .dp-word span,
.dp-stage[data-lang="ja"] .dp-word span,
.dp-stage[data-lang="ko"] .dp-word span {
  letter-spacing: 0.02em;
}

/* ---------- Layer 2: Full-Viewport WebGL Canvas ---------- */
.dp-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Layer 2.5: Mobile Docked Sheet Backdrop Scrim ---------- */
.dp-scrim {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(18, 13, 12, 0.36);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.24s ease,
    visibility 0s linear 0.24s;
}

.dp-scrim.on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.24s ease,
    visibility 0s linear 0s;
}

/* ---------- Layer 3: Projected Interior Showcase Card (Desktop) ---------- */
.dp-card {
  --c: 1px;
  --ct: #1d2c59;
  --ca: #f0653f;
  position: absolute;
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: max(4px, calc(6 * var(--c)));
  padding: max(8px, calc(10 * var(--c))) max(14px, calc(18 * var(--c)));
  border-radius: 6px;
  background: linear-gradient(140deg, rgba(16, 20, 34, 0.84), rgba(20, 25, 42, 0.68));
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--dp-ui);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.22s ease-out,
    visibility 0s linear 0.22s;
  overflow: hidden;
  user-select: text;
  -webkit-user-select: text;
}

.dp-card.on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.22s ease-out,
    visibility 0s linear 0s;
}

.dp-card > * {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.24s ease-out,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.dp-card.on > * {
  opacity: 1;
  transform: translateY(0);
}

.dp-card.on > :nth-child(1) {
  transition-delay: 0s;
}
.dp-card.on > :nth-child(2) {
  transition-delay: 0.05s;
}

/* Card Top Meta & Controls Bar */
.dp-card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: none;
}

.dp-card .dp-eb {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: max(6px, calc(7 * var(--c)));
  min-width: 0;
  font-family: "Manrope", "Noto Sans KR", sans-serif;
  font-weight: 800;
  font-size: max(9.5px, calc(11 * var(--c)));
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.dp-card .dp-eb span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dp-eb-dot {
  width: max(6px, calc(7 * var(--c)));
  height: max(6px, calc(7 * var(--c)));
  flex: none;
  border-radius: 50%;
  background: var(--ca);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ca) 25%, transparent);
}

.dp-card-ctrls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
}

.dp-card-ico {
  appearance: none;
  width: max(26px, calc(28 * var(--c)));
  height: max(26px, calc(28 * var(--c)));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.92);
  font:
    700 max(14px, calc(16 * var(--c)))/1 "Manrope",
    sans-serif;
  cursor: pointer;
  padding: 0;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.dp-card-ico:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.dp-card-ico:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* 2-Column Editorial Interior Grid (Info Left + Real Visual Right) */
.dp-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.88fr);
  gap: max(12px, calc(16 * var(--c)));
  align-items: center;
  min-height: 0;
  flex: 1 1 auto;
}

.dp-card-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.dp-card h2 {
  margin: 0;
  font-family: "Manrope", "Noto Sans KR", sans-serif;
  font-weight: 800;
  font-size: max(18px, calc(26 * var(--c)));
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--dp-ui);
}

.dp-card h2 em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  color: var(--dp-accent);
  letter-spacing: -0.01em;
}

.dp-card .dp-desc {
  margin: max(4px, calc(5 * var(--c))) 0 0;
  font-family: "Manrope", "Noto Sans KR", sans-serif;
  font-weight: 500;
  font-size: max(10.5px, calc(12 * var(--c)));
  line-height: 1.38;
  color: var(--dp-body-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dp-card .dp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: max(4px, calc(5 * var(--c)));
  margin-top: max(5px, calc(6 * var(--c)));
}

.dp-card .dp-chips span {
  display: inline-flex;
  align-items: center;
  padding: max(2px, calc(3 * var(--c))) max(7px, calc(8.5 * var(--c)));
  border: 1px solid var(--dp-chip-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-family: "Manrope", "Noto Sans KR", sans-serif;
  font-weight: 700;
  font-size: max(9px, calc(10 * var(--c)));
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.dp-card .dp-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: max(6px, calc(7 * var(--c)));
  margin-top: max(6px, calc(8 * var(--c)));
}

.dp-btn-pri,
.dp-btn-sec {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: max(26px, calc(28 * var(--c)));
  padding: max(4.5px, calc(5.5 * var(--c))) max(10px, calc(13.5 * var(--c)));
  border-radius: 999px;
  font-family: "Manrope", "Noto Sans KR", sans-serif;
  font-weight: 800;
  font-size: max(10.5px, calc(11.5 * var(--c)));
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.dp-btn-pri {
  border: 1px solid transparent;
  background: var(--dp-accent);
  color: #ffffff;
}

.dp-btn-pri:hover {
  background: #ff7750;
  transform: translateY(-1px);
}

.dp-btn-sec {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.dp-btn-sec:hover {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.dp-btn-pri:focus-visible,
.dp-btn-sec:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Right Visual Column: Mini Browser Preview / Process Steps / Spec Tile */
.dp-card-vis {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dp-mini-shot {
  appearance: none;
  width: 100%;
  padding: 0;
  margin: 0;
  text-align: left;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0d101b;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.38);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.dp-mini-shot:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.55);
}

.dp-mini-shot:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.dp-mini-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: #1b2033;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dp-mini-dots {
  display: inline-flex;
  gap: 3.5px;
  flex: none;
}

.dp-mini-dots i {
  width: 5.5px;
  height: 5.5px;
  border-radius: 50%;
  display: block;
}

.dp-mini-dots i:nth-child(1) {
  background: #ff5f56;
}
.dp-mini-dots i:nth-child(2) {
  background: #ffbd2e;
}
.dp-mini-dots i:nth-child(3) {
  background: #27c93f;
}

.dp-mini-dom {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.dp-mini-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.2;
  overflow: hidden;
  background: #0c0e17;
}

.dp-mini-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.dp-mini-shot:hover .dp-mini-frame img {
  transform: scale(1.05);
}

.dp-mini-zoom {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 18, 30, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

/* Process 4-Step Compact Architectural Cards */
.dp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: max(6px, calc(7 * var(--c)));
}

.dp-steps li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: max(7px, calc(9 * var(--c))) max(8px, calc(10 * var(--c)));
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dp-steps b {
  font-size: max(9px, calc(10 * var(--c)));
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--dp-accent);
}

.dp-steps span {
  font-size: max(10.5px, calc(11.5 * var(--c)));
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

/* Archive / Contact Spec Badge Tile */
.dp-spec-tile {
  appearance: none;
  width: 100%;
  text-align: left;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: max(12px, calc(14 * var(--c)));
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.dp-spec-tile:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.48);
}

.dp-spec-k {
  font-size: max(9px, calc(10 * var(--c)));
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--ca);
}

.dp-spec-v {
  font-family: "Archivo X", "Manrope", sans-serif;
  font-size: max(18px, calc(22 * var(--c)));
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #ffffff;
}

.dp-spec-sub {
  font-size: max(10px, calc(11 * var(--c)));
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

/* Compact desktop/laptop fallback when interior width < 415px */
.dp-card.dp-compact {
  padding: 10px 14px;
  gap: 6px;
}

.dp-card.dp-compact .dp-card-grid {
  grid-template-columns: minmax(0, 1fr);
}

.dp-card.dp-compact .dp-card-vis {
  display: none;
}

.dp-card.dp-compact h2 {
  font-size: 20px;
}

.dp-card.dp-compact .dp-desc {
  font-size: 11.5px;
  -webkit-line-clamp: 2;
}

/* ---------- Mobile & Tablet Portrait Docked Cargo Showcase Sheet ---------- */
.dp-card.dp-sheet {
  position: fixed;
  left: 50%;
  top: var(--sheet-top);
  bottom: auto;
  width: min(calc(100% - 24px), 460px);
  max-height: calc(100dvh - var(--sheet-top) - max(16px, env(safe-area-inset-bottom, 0px)));
  height: auto;
  padding: 14px 16px 16px;
  gap: 12px;
  border-radius: 18px;
  background: linear-gradient(168deg, #191e30 0%, #131726 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 4px solid var(--ct);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.45),
    0 4px 16px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  transform: translate(-50%, 14px) scale(0.98);
  transition:
    opacity 0.24s ease-out,
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.24s;
}

.dp-card.dp-sheet::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin: -4px auto 0;
  border-radius: 999px;
  background: var(--ct);
  opacity: 0.72;
  flex: none;
}

.dp-card.dp-sheet.on {
  transform: translate(-50%, 0) scale(1);
  transition:
    opacity 0.24s ease-out,
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

.dp-card.dp-sheet .dp-card-bar {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.dp-card.dp-sheet .dp-eb {
  font-size: 11px;
  letter-spacing: 0.15em;
}

.dp-card.dp-sheet .dp-card-ico {
  width: 36px;
  height: 36px;
  font-size: 18px;
}

.dp-card.dp-sheet .dp-card-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.dp-card.dp-sheet .dp-card-vis {
  order: -1;
}

.dp-card.dp-sheet .dp-mini-frame {
  aspect-ratio: 16 / 9;
}

.dp-card.dp-sheet .dp-mini-dom {
  font-size: 11px;
}

.dp-card.dp-sheet h2 {
  font-size: clamp(24px, 6.4vw, 30px);
  line-height: 1.06;
}

.dp-card.dp-sheet .dp-desc {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.54;
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.dp-card.dp-sheet .dp-chips {
  margin-top: 12px;
  gap: 6px;
}

.dp-card.dp-sheet .dp-chips span {
  padding: 5px 10px;
  font-size: 11.5px;
}

.dp-card.dp-sheet .dp-acts {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 9px;
}

.dp-card.dp-sheet .dp-btn-pri,
.dp-card.dp-sheet .dp-btn-sec {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 13.5px;
  width: 100%;
}

.dp-card.dp-sheet .dp-steps {
  gap: 8px;
}

.dp-card.dp-sheet .dp-steps li {
  padding: 10px 12px;
}

.dp-card.dp-sheet .dp-steps b {
  font-size: 10.5px;
}

.dp-card.dp-sheet .dp-steps span {
  font-size: 12.5px;
}

/* Offline / No-WebGL fallback container grid */
.dp-fallback {
  position: absolute;
  inset: calc(74 * var(--n)) clamp(16px, 4vw, 48px) clamp(64px, 12vh, 110px);
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  align-content: center;
  overflow-y: auto;
}

.dp-fb-box {
  appearance: none;
  text-align: left;
  border: 0;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.dp-fb-box:hover {
  transform: translateY(-3px);
}

.dp-fb-box small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  opacity: 0.78;
}

.dp-fb-box strong {
  font-family: "Archivo X", "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.05;
}

.dp-fb-box p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.88;
}

/* ---------- Layer 4: Top Navigation ---------- */
.dp-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 7;
  height: calc(56 * var(--n));
  min-height: 50px;
  padding: env(safe-area-inset-top, 0px) max(16px, calc(36 * var(--n))) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--dp-ui);
}

.dp-logo {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px 0;
  margin: 0;
  color: var(--dp-ui);
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  font-size: max(22px, calc(29 * var(--n)));
  letter-spacing: -0.03em;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.dp-logo:hover {
  opacity: 0.78;
}

.dp-nav-acts {
  display: flex;
  align-items: center;
  gap: max(16px, calc(28 * var(--n)));
}

.dp-nav-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px 2px;
  margin: 0;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: var(--dp-ui);
  font-family: "Manrope", "Noto Sans KR", system-ui, sans-serif;
  font-weight: 700;
  font-size: max(12.5px, calc(15 * var(--n)));
  line-height: 1;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.dp-nav-link:hover {
  opacity: 0.75;
}

.dp-logo:focus-visible,
.dp-nav-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---------- Layer 5: Pill & Eyebrow ---------- */
.dp-pill {
  position: absolute;
  right: max(16px, calc(34 * var(--n)));
  top: calc(var(--rail) + 18 * var(--n));
  z-index: 4;
  height: max(28px, calc(30 * var(--n)));
  padding: 0 max(12px, calc(14 * var(--n)));
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--dp-pill-line);
  border-radius: 999px;
  background: rgba(226, 118, 87, 0.55);
  font-family: "Manrope", "Noto Sans KR", sans-serif;
  font-weight: 800;
  font-size: max(10px, calc(10.5 * var(--n)));
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dp-ui);
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.25s ease;
}

.dp-pill.is-dim {
  opacity: 0 !important;
}

.dp-eyebrow {
  position: absolute;
  left: max(16px, calc(35 * var(--n)));
  bottom: max(10px, calc(12 * var(--n) + env(safe-area-inset-bottom, 0px)));
  z-index: 4;
  margin: 0;
  font-family: "Manrope", "Noto Sans KR", sans-serif;
  font-weight: 800;
  font-size: max(9.5px, calc(10.5 * var(--n)));
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dp-ui);
  pointer-events: none;
  white-space: nowrap;
}

/* Visually hidden keyboard/screen-reader container triggers */
.dp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dp-sr:focus-within {
  position: fixed;
  left: 16px;
  top: 64px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 8px;
  clip: auto;
  overflow: visible;
  z-index: 25;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(22, 26, 40, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
}

.dp-sr button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #ffffff;
  font:
    700 12px/1 "Manrope",
    sans-serif;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.dp-sr button:focus-visible {
  outline: 2px solid var(--dp-accent);
  outline-offset: 2px;
  background: var(--dp-accent);
}

/* ---------- Layer 6: Case Study Detail Modal ---------- */
.dp-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 36px);
  background: rgba(15, 17, 26, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.26s ease,
    visibility 0s linear 0.26s;
}

.dp-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.26s ease,
    visibility 0s linear 0s;
}

.dp-modal-panel {
  --ca: #f0653f;
  position: relative;
  width: min(980px, 100%);
  max-height: min(90dvh, 880px);
  display: flex;
  flex-direction: column;
  background: #141724;
  color: #f6f5f1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: text;
  -webkit-user-select: text;
}

.dp-modal.open .dp-modal-panel {
  transform: translateY(0) scale(1);
}

.dp-modal-top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px clamp(16px, 3vw, 28px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 23, 36, 0.96);
}

.dp-modal-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
}

.dp-modal-role {
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-modal-num {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ca);
  color: #141724;
  font-weight: 800;
}

.dp-modal-yr {
  flex: none;
}

.dp-modal-close {
  appearance: none;
  width: 40px;
  height: 40px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.dp-modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
}

.dp-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(18px, 3.2vw, 34px) clamp(16px, 3.2vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.dp-modal-body > * {
  flex-shrink: 0;
}

.dp-modal .dp-btn-pri,
.dp-modal .dp-btn-sec {
  min-height: 40px;
  padding: 9px 18px;
  font-size: 13.5px;
}

.dp-modal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 18px 32px;
  align-items: start;
}

.dp-modal-kind {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.dp-modal-kind::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ca);
}

.dp-modal-title {
  margin: 10px 0 0;
  font-family: "Manrope", "Noto Sans KR", sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.dp-modal-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.dp-modal-stack span {
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.04);
}

.dp-modal-desc {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dp-modal-desc p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.dp-modal-desc p:first-child {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
}

.dp-modal-browser {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0d0f18;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.dp-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #1c2032;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dp-modal-dots {
  display: inline-flex;
  gap: 6px;
  flex: none;
}

.dp-modal-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}

.dp-modal-dots i:nth-child(1) {
  background: #ff5f56;
}
.dp-modal-dots i:nth-child(2) {
  background: #ffbd2e;
}
.dp-modal-dots i:nth-child(3) {
  background: #27c93f;
}

.dp-modal-url {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dp-modal-open-link {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--dp-accent);
  text-decoration: none;
  white-space: nowrap;
}

.dp-modal-open-link:hover {
  text-decoration: underline;
}

.dp-modal-shot {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.dp-modal-sec h3 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.dp-modal-sec h3 small {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.5);
  margin-inline-start: 6px;
}

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

.dp-modal-crop-fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dp-modal-crop-fig.is-wide {
  grid-column: 1 / -1;
}

.dp-modal-crop-box {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0d0f18;
}

.dp-modal-crop-box img {
  position: absolute;
  display: block;
  height: auto;
  max-width: none;
}

.dp-modal-crop-fig figcaption {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.74);
}

.dp-modal-two {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
}

.dp-modal-pal {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.dp-sw-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}

.dp-sw-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.45);
}

.dp-sw-btn i {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dp-sw-btn span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.dp-sw-btn.copied {
  border-color: var(--dp-accent);
}

.dp-sw-btn.copied span {
  color: var(--dp-accent);
}

.dp-modal-rows {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dp-modal-rows > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
  line-height: 1.45;
}

.dp-modal-rows dt {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.56);
}

.dp-modal-rows dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.dp-modal-foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px clamp(16px, 3vw, 28px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 19, 30, 0.96);
}

.dp-modal-foot-acts {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dp-modal-next {
  appearance: none;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-family: "Manrope", "Noto Sans KR", sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 4px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.dp-modal-next:hover {
  opacity: 0.78;
}

/* ---------- RTL Adjustments (Arabic) ---------- */
.dp-stage[dir="rtl"] .dp-nav,
.dp-stage[dir="rtl"] .dp-card,
.dp-stage[dir="rtl"] .dp-modal-panel,
.dp-stage[dir="rtl"] .dp-mini-shot,
.dp-stage[dir="rtl"] .dp-spec-tile {
  direction: rtl;
  text-align: right;
}

.dp-stage[dir="rtl"] .dp-pill {
  right: auto;
  left: max(16px, calc(34 * var(--n)));
  letter-spacing: 0.04em;
}

.dp-stage[dir="rtl"] .dp-eyebrow {
  left: auto;
  right: max(16px, calc(35 * var(--n)));
  letter-spacing: 0.04em;
}

.dp-stage[dir="rtl"] .dp-card .dp-eb {
  letter-spacing: 0.04em;
}

/* ---------- Responsive Modal & Mobile Breakpoints ---------- */
@media (max-width: 760px) {
  .dp-modal-head,
  .dp-modal-two,
  .dp-modal-crops {
    grid-template-columns: minmax(0, 1fr);
  }
  .dp-modal-pal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dp-modal-rows > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
  .dp-modal-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .dp-modal-next {
    text-align: left;
    padding: 4px 2px;
  }
  .dp-modal-foot-acts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .dp-modal .dp-btn-pri,
  .dp-modal .dp-btn-sec {
    min-height: 44px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .dp-modal-panel {
    max-height: 92dvh;
    border-radius: 16px;
  }
  .dp-modal-sep,
  .dp-modal-yr {
    display: none;
  }
  .dp-modal-bar {
    padding: 8px 10px;
  }
  .dp-modal-url {
    text-align: left;
    font-size: 11px;
  }
  .dp-pill {
    letter-spacing: 0.14em;
    font-size: 9.5px;
  }
  .dp-eyebrow {
    letter-spacing: 0.16em;
    font-size: 9px;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .dp-stage.dp-js .dp-rv {
    opacity: 1 !important;
  }
  .dp-card,
  .dp-card > *,
  .dp-scrim,
  .dp-pill,
  .dp-modal,
  .dp-modal-panel,
  .dp-mini-frame img {
    transition: none !important;
    animation: none !important;
  }
  .dp-card > * {
    transform: none !important;
  }
}
