/* Shared two-column spread for §03–§05. Each project's HTML uses these
   classes; per-project hint accents are applied via data-project="kuma"
   etc. on the section. */

.project {
  min-height: 100vh;
  padding: var(--space-5xl) var(--container-pad);
  display: flex;
  align-items: center;
  position: relative;
}

.project__inner {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 980px) {
  .project__inner { grid-template-columns: 1fr; gap: var(--space-3xl); }
}

/* — Copy column — */
.project__pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: oklch(25% 0.06 252 / 0.4);
  border: 1px solid oklch(35% 0.10 252 / 0.5);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: oklch(85% 0.05 252);
  margin-bottom: var(--space-lg);
  opacity: 0;
}
.project__pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* Per-project hint dot replaces the default cobalt on the pill */
.project[data-project="embers"] .project__pill::before { background: var(--embers-hint); box-shadow: 0 0 8px var(--embers-hint); }
.project[data-project="root3d"] .project__pill::before { background: var(--root3d-hint); box-shadow: 0 0 8px var(--root3d-hint); }

.project__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  font-variation-settings: "opsz" 80;
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 var(--space-md);
  max-width: 14ch;
  opacity: 0;
}
.project__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow);
}

.project__lede {
  font-family: var(--font-display);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: var(--space-xl);
  opacity: 0;
}
.project__lede em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink);
}

.project__stats {
  display: flex;
  gap: var(--space-2xl);
  padding-block: var(--space-md);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--space-xl);
  opacity: 0;
}
.project__stat-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 4px;
  line-height: 1;
}
.project__stat-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.project__cta { opacity: 0; }

/* — Device stage (right column) — */
.project__stage {
  position: relative;
  height: 640px;
  perspective: 1200px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* — Phone — */
.phone {
  position: absolute;
  background: oklch(10% 0.01 265);
  border-radius: 44px;
  padding: 8px;
  box-shadow:
    0 50px 80px -30px rgba(0,0,0,0.55),
    0 0 0 1px oklch(28% 0.05 265),
    inset 0 0 0 1px oklch(15% 0.02 265),
    0 0 60px -10px var(--accent-glow);
  transform-style: preserve-3d;
  will-change: transform;
  opacity: 0;
}
.phone__notch {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 110px;
  height: 28px;
  background: oklch(8% 0.01 265);
  border-radius: var(--radius-pill);
  z-index: 3;
  transform: translateX(-50%);
}
.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: oklch(8% 0.01 265);
}
.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.phone__halo {
  position: absolute;
  inset: -20% -10% -10% -10%;
  background: radial-gradient(closest-side, var(--accent-glow) 0%, transparent 65%);
  filter: blur(35px);
  z-index: -1;
  pointer-events: none;
}

.phone--back {
  width: 240px;
  height: 500px;
  transform: rotate(7deg) translate(60px, -10px);
  opacity: 0.92;
  z-index: 1;
}
.phone--front {
  width: 270px;
  height: 560px;
  transform: rotate(-5deg) translate(-60px, 20px);
  z-index: 2;
}

/* — Laptop (Root3D variant) — */
.project__stage--laptop {
  height: auto;
}
.laptop {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  transform: rotate(-1.5deg);
  opacity: 0;
  will-change: transform, opacity;
}
.laptop__lid {
  position: relative;
  background: oklch(10% 0.01 265);
  border-radius: 12px 12px 0 0;
  padding: 14px 14px 0;
  aspect-ratio: 16/10;
  overflow: hidden;
  box-shadow:
    0 50px 100px -30px rgba(0,0,0,0.55),
    0 0 0 1px oklch(28% 0.05 265),
    inset 0 0 0 1px oklch(15% 0.02 265),
    0 0 80px -20px var(--accent-glow);
}
.laptop__screen {
  width: 100%;
  height: 100%;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  background: oklch(8% 0.01 265);
}
.laptop__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.laptop__base {
  height: 14px;
  background: linear-gradient(180deg, oklch(20% 0.02 265), oklch(8% 0.01 265));
  border-radius: 0 0 18px 18px;
  margin: 0 -16px;
  position: relative;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.4);
}
.laptop__base::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 70px;
  height: 4px;
  background: oklch(28% 0.02 265);
  border-radius: 0 0 6px 6px;
  transform: translateX(-50%);
}

/* Companion phone for Root3D laptop variant */
.project__stage--laptop .phone--companion {
  position: absolute;
  right: -4%;
  bottom: -10%;
  width: 180px;
  height: 380px;
  transform: rotate(6deg);
  z-index: 5;
}

@media (max-width: 980px) {
  .project__stage { height: 520px; }
  .phone--back { width: 200px; height: 420px; }
  .phone--front { width: 230px; height: 480px; }
  .project__stage--laptop .phone--companion { width: 130px; height: 280px; right: -4%; bottom: -8%; }
}
