/* ==========================================================================
   Calopic 3D page — editorial layout, room to breathe
   ========================================================================== */

.page-3d { background: var(--bg); }

/* ---- hero ---------------------------------------------------------------- */
.p3-hero {
  padding: 108px 0 76px;
  border-bottom: 1px solid var(--stroke);
  background:
    radial-gradient(760px 380px at 22% -10%, rgba(232, 112, 42, 0.09), transparent 68%),
    transparent;
}
.p3-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}
.p3-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  opacity: 0.8;
}
.p3-title {
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 640;
  margin: 0 0 20px;
  max-width: 17ch;
}
.p3-title em {
  font-style: normal;
  color: var(--accent);
}
.p3-lede {
  font-size: clamp(15px, 1.5vw, 17.5px);
  line-height: 1.68;
  color: var(--text-dim);
  max-width: 54ch;
  margin: 0 0 32px;
}
.p3-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- three pillars ------------------------------------------------------- */
.p3-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--stroke);
}
.p3-pillar {
  padding: 44px 34px 44px 0;
  border-inline-end: 1px solid var(--stroke);
}
.p3-pillar:last-child { border-inline-end: 0; padding-inline-end: 0; }
.p3-pillar:not(:first-child) { padding-inline-start: 34px; }
.p3-pillar-num {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}
.p3-pillar h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.p3-pillar p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.65;
}

/* ---- showcase ------------------------------------------------------------ */
.p3-showcase {
  padding: 84px 0;
  border-bottom: 1px solid var(--stroke);
}
.p3-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.p3-block-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.025em;
  font-weight: 620;
  margin: 0;
}
.p3-block-head p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
  max-width: 38ch;
}

.p3-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.p3-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.p3-shot {
  margin: 0;
  display: grid;
  gap: 10px;
}
.p3-shot-frame {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text-faint);
  overflow: hidden;
}
.p3-shot-frame svg { width: 58%; height: auto; }
.p3-shot figcaption {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.01em;
}

.p3-copy h2 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.025em;
  font-weight: 620;
  margin: 0 0 16px;
}
.p3-copy > p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.72;
  margin: 0 0 26px;
}
.p3-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.p3-points li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
}
.p3-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.85;
}

/* ---- formats ------------------------------------------------------------- */
.p3-formats {
  padding: 72px 0;
  border-bottom: 1px solid var(--stroke);
}
.p3-format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.p3-format {
  padding: 24px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: var(--surface);
}
.p3-format-tag {
  display: inline-block;
  padding: 3px 9px;
  margin-bottom: 14px;
  border-radius: 6px;
  background: rgba(232, 112, 42, 0.12);
  color: var(--accent);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.p3-format h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
}
.p3-format p {
  margin: 0;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
}

/* ---- creative pipeline --------------------------------------------------- */
.p3-pipeline {
  padding: 84px 0;
  border-bottom: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.014), transparent 40%);
}
.p3-pl-head {
  max-width: 62ch;
  margin-bottom: 18px;
}
.p3-pl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--surface);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1;
}
.p3-pl-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
}
.p3-pl-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.03em;
  font-weight: 620;
  line-height: 1.12;
  margin: 0;
}
.p3-pl-body {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.72;
  max-width: 62ch;
  margin: 0 0 34px;
}
.p3-pl-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (min-width: 901px) and (max-width: 1120px) {
  .p3-pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.p3-pl-card {
  position: relative;
  padding: 26px 24px 24px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}
.p3-pl-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -120% 40%;
  height: 160px;
  background: radial-gradient(closest-side, var(--surface-2), transparent 72%);
  pointer-events: none;
}
.p3-pl-num {
  display: block;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  margin-bottom: 20px;
}
.p3-pl-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}
.p3-pl-note {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-faint, #a0a0a8);
  vertical-align: middle;
}
.p3-pl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.p3-pl-list li {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 11px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dim);
}
.p3-pl-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--text-faint);
}
.p3-pl-list li em {
  font-style: normal;
  color: var(--text);
  font-weight: 550;
}
.p3-pl-foot {
  max-width: 62ch;
  margin: 30px 0 0;
  font-size: 14px;
  color: var(--text-dim);
}
.p3-pl-foot a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--stroke);
  padding-bottom: 2px;
}
.p3-pl-foot a:hover { border-color: var(--text); }

/* ---- cta ----------------------------------------------------------------- */
.p3-cta {
  padding: 96px 0 110px;
  text-align: center;
}
.p3-cta h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.03em;
  font-weight: 630;
  margin: 0 0 14px;
}
.p3-cta p {
  color: var(--text-dim);
  font-size: 15.5px;
  margin: 0 0 30px;
}
.p3-cta .p3-actions { justify-content: center; }

/* ---- responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .p3-hero { padding: 72px 0 54px; }
  .p3-pillars { grid-template-columns: 1fr; }
  .p3-pillar {
    padding: 26px 0;
    border-inline-end: 0;
    border-bottom: 1px solid var(--stroke);
  }
  .p3-pillar:last-child { border-bottom: 0; }
  .p3-pillar:not(:first-child) { padding-inline-start: 0; }
  .p3-split { grid-template-columns: 1fr; gap: 34px; }
  .p3-pl-grid { grid-template-columns: 1fr; gap: 12px; }
  .p3-showcase, .p3-formats, .p3-pipeline { padding: 54px 0; }
  .p3-shots { gap: 10px; }
  .p3-format-grid { grid-template-columns: 1fr; }
  .p3-cta { padding: 64px 0 76px; }
}

@media (max-width: 560px) {
  .p3-title { font-size: 32px; max-width: 100%; }
  .p3-shots { grid-template-columns: 1fr; }
  .p3-shot-frame { aspect-ratio: 16 / 9; }
  .p3-pl-card { padding: 22px 20px 20px; }
  .p3-actions { flex-direction: column; align-items: stretch; }
  .p3-actions .btn { width: 100%; justify-content: center; }
}
