/* ============================================================
   NOXUS — work.css
   Work / case studies page (per spec Step 5)
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */

.work-hero {
  position: relative;
  background:
    radial-gradient(ellipse at 15% 85%, #D4B5A8 0%, transparent 55%),
    radial-gradient(ellipse at 75% 15%, #EDD8CC 0%, transparent 50%),
    #F0E6DF;
  padding: 180px 40px 100px;
  min-height: 100dvh;
  overflow: hidden;
}
.work-hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  align-items: end;
  gap: 64px;
}
.work-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 22px;
}
.work-hero__title {
  font-family: var(--font-display);
  font-size: clamp(84px, 13vw, 190px);
  letter-spacing: -0.045em;
  line-height: 0.82;
  text-transform: uppercase;
  color: var(--black);
  margin: 0;
}
.work-hero__desc {
  font-family: var(--font-ui);
  font-size: clamp(15px, 1.7vw, 21px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-on-light-primary);
  line-height: 1.5;
  max-width: 22ch;
  margin: 30px 0 0;
}
.work-hero__status {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 28px;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-on-light-secondary);
}
.work-hero__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  animation: heroPulse 2.6s cubic-bezier(0.32, 0.72, 0, 1) infinite;
}
@keyframes heroPulse {
  0%   { box-shadow: 0 0 0 0 rgba(232, 84, 10, 0.45); }
  70%  { box-shadow: 0 0 0 11px rgba(232, 84, 10, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 84, 10, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .work-hero__status-dot { animation: none; }
}
.work-hero__index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(17, 17, 17, 0.18);
}
/* Interactive index rows — dimensional surface on hover, cursor-follow
   spotlight, a trailing arrow that slides in, the open slot reading as a
   claimable slot. Links: 01 -> the case below, 02 -> contact. */
.work-hero__index-item {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto 30px;
  align-items: center;
  gap: 18px;
  padding: 18px 14px;
  margin: 0 -14px;
  border-radius: 12px;
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  transition:
    transform 0.42s cubic-bezier(0.32, 0.72, 0, 1),
    background 0.42s cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 0.42s cubic-bezier(0.32, 0.72, 0, 1);
}
.work-hero__index-item > * { position: relative; z-index: 1; }
/* cursor-follow spotlight (fed by hover-spotlight.js) */
.work-hero__index-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(232, 84, 10, 0.14), transparent 60%);
  transition: opacity 0.42s cubic-bezier(0.32, 0.72, 0, 1);
}
.work-hero__index-item:hover {
  transform: translateX(6px);
  background: linear-gradient(120deg, rgba(232, 84, 10, 0.07) 0%, rgba(255, 255, 255, 0.025) 70%);
  box-shadow: 0 16px 32px -24px rgba(20, 12, 6, 0.55);
}
.work-hero__index-item:hover::after { opacity: 1; }
.work-hero__index-item:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* open slot carries a faint always-on tint + pulsing live dot */
.work-hero__index-item.is-open {
  background: linear-gradient(120deg, rgba(232, 84, 10, 0.05) 0%, transparent 72%);
}
.work-hero__index-item.is-open .work-hero__index-tag::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(232, 84, 10, 0.5);
  animation: heroPulse 2.6s cubic-bezier(0.32, 0.72, 0, 1) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .work-hero__index-item.is-open .work-hero__index-tag::before { animation: none; }
  .work-hero__index-item:hover { transform: none; }
}

.work-hero__index-num {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--orange);
  line-height: 1;
  transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1);
}
.work-hero__index-item:hover .work-hero__index-num { transform: scale(1.08); }
.work-hero__index-name {
  font-family: var(--font-ui);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black);
  transition: color 0.42s cubic-bezier(0.32, 0.72, 0, 1);
}
.work-hero__index-tag {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-light-secondary);
  text-align: right;
}
.work-hero__index-item.is-open .work-hero__index-name {
  color: var(--text-on-light-secondary);
}
.work-hero__index-item:hover .work-hero__index-name,
.work-hero__index-item.is-open:hover .work-hero__index-name {
  color: var(--text-on-light-primary);
}
/* trailing arrow chip — hidden at rest, slides in on hover */
.work-hero__index-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--orange);
  border: 1px solid rgba(232, 84, 10, 0.32);
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 0.42s cubic-bezier(0.32, 0.72, 0, 1),
    transform 0.42s cubic-bezier(0.32, 0.72, 0, 1),
    background 0.42s cubic-bezier(0.32, 0.72, 0, 1);
}
.work-hero__index-item:hover .work-hero__index-arrow {
  opacity: 1;
  transform: translateX(0);
  background: rgba(232, 84, 10, 0.1);
}
@media (max-width: 880px) {
  .work-hero__inner { grid-template-columns: 1fr; gap: 40px; align-items: start; }
  .work-hero__index { margin-top: 8px; }
}

/* ============================================================
   PROOF · SELF — the site itself, as primary proof.
   Light theme to contrast the case-feature below; declarative
   typography + flat metric strip (no tile-boxes) so it reads as
   a distinct grammar from the case-feature template.
   ============================================================ */

.proof-self {
  background: var(--cream, #F2EDE8);
  color: var(--text-on-light, #1a1411);
  padding: 96px 40px;
  position: relative;
  overflow: hidden;
}
.proof-self::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 40% at 80% 10%, rgba(232, 84, 10, 0.07), transparent 65%),
    radial-gradient(40% 30% at 10% 90%, rgba(232, 84, 10, 0.04), transparent 70%);
  pointer-events: none;
}
.proof-self > * { position: relative; z-index: 1; }

.proof-self__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.proof-self__top {
  max-width: 720px;
  margin-bottom: 64px;
}

.proof-self__eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 24px;
}

.proof-self__heading {
  font-family: var(--font-ui);
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0;
  color: var(--text-on-light, #1a1411);
}
.proof-self__heading em {
  font-style: italic;
  color: var(--orange);
  font-weight: 600;
}

.proof-self__sub {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.3vw, 16px);
  line-height: 1.6;
  color: var(--text-on-light-secondary);
  max-width: 52ch;
  margin: 28px 0 0;
}

/* Flat metric strip — no boxes, thin dividers, brutalist row */
.proof-self__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.proof-self__metric {
  padding: 36px 24px 32px;
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.proof-self__metric:first-child {
  border-left: none;
  padding-left: 0;
}
.proof-self__metric:last-child {
  padding-right: 0;
}

.proof-self__metric-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--orange);
  margin-bottom: 12px;
}
.proof-self__metric-num sup {
  font-size: 0.45em;
  vertical-align: 0.55em;
  margin-left: 2px;
}
.proof-self__metric-sep {
  color: var(--text-on-light-muted, rgba(26,20,17,0.35));
  font-weight: 400;
}

.proof-self__metric-lbl {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-on-light, #1a1411);
}

.proof-self__metric-sub {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-light-secondary);
  margin-top: 2px;
  line-height: 1.5;
}

/* ============================================================
   PROOF · SELF — live interactive embed (iframe of full site)
   The whole Noxus site, rendered inside a browser-frame mockup.
   Click-to-activate overlay prevents scroll-jacking until the
   visitor intentionally engages with the embed.
   ============================================================ */

.proof-self__embed {
  margin-top: 64px;
  border-radius: 14px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow:
    0 50px 100px -20px rgba(0, 0, 0, 0.25),
    0 20px 40px -10px rgba(232, 84, 10, 0.16);
}

.proof-self__embed-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.proof-self__embed-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.proof-self__embed-dot:nth-of-type(1) { background: #F66160; }
.proof-self__embed-dot:nth-of-type(2) { background: #F8BD4F; }
.proof-self__embed-dot:nth-of-type(3) { background: #56C246; }

.proof-self__embed-url {
  margin-left: 14px;
  flex: 1;
  background: #1a1a1a;
  border-radius: 6px;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
}

.proof-self__embed-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  flex-shrink: 0;
}
.proof-self__embed-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #56C246;
  box-shadow: 0 0 0 0 rgba(86, 194, 70, 0.55);
  animation: proof-embed-pulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes proof-embed-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(86, 194, 70, 0.55); }
  50%      { box-shadow: 0 0 0 8px rgba(86, 194, 70, 0); }
}

.proof-self__embed-stage {
  position: relative;
  background: var(--cream, #F2EDE8);
}

.proof-self__embed-frame {
  width: 100%;
  height: 780px;
  border: none;
  display: block;
  background: var(--cream, #F2EDE8);
}

.proof-self__embed-activate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(2px);
  border: none;
  cursor: pointer;
  z-index: 3;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-ui);
  color: white;
  padding: 0;
}
.proof-self__embed-activate:hover {
  background: rgba(10, 10, 10, 0.45);
}
.proof-self__embed-activate:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}

.proof-self__embed-activate-icon {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  color: var(--orange);
  margin-bottom: 4px;
}
.proof-self__embed-activate-label {
  font-family: var(--font-ui);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.proof-self__embed-activate-sub {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

/* Active state: overlay fades, iframe becomes interactive */
.proof-self__embed.is-active .proof-self__embed-activate {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .proof-self__embed { margin-top: 48px; }
  .proof-self__embed-frame { height: 560px; }
  .proof-self__embed-activate-icon { font-size: 36px; }
  .proof-self__embed-url { font-size: 10px; padding: 5px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .proof-self__embed-status-dot { animation: none; }
  .proof-self__embed-activate { transition: none; }
}

/* Dark theme inherit — the embed bar is already dark, but the frame
   background should follow the active theme of the parent page. */
:root.dark .proof-self__embed-stage,
:root.dark .proof-self__embed-frame {
  background: var(--dark-bg, #14100B);
}

/* Stack footer line — typographic punctuation */
.proof-self__stack {
  margin-top: 40px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.proof-self__stack-eyebrow {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--orange);
  font-weight: 500;
  white-space: nowrap;
}
.proof-self__stack-list {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-on-light-secondary);
}

@media (max-width: 980px) {
  .proof-self { padding: 72px 24px; }
  .proof-self__top { margin-bottom: 48px; }
  .proof-self__metrics { grid-template-columns: repeat(2, 1fr); }
  .proof-self__metric {
    padding: 28px 20px;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
  .proof-self__metric:nth-child(odd) {
    border-left: none;
    padding-left: 0;
  }
  .proof-self__metric:nth-child(-n+2) {
    border-top: none;
  }
  .proof-self__metric:nth-child(even) {
    padding-right: 0;
  }
}

@media (max-width: 540px) {
  .proof-self__metrics { grid-template-columns: 1fr; }
  .proof-self__metric,
  .proof-self__metric:nth-child(odd),
  .proof-self__metric:nth-child(even) {
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 24px 0;
  }
  .proof-self__metric:first-child {
    border-top: none;
    padding-top: 0;
  }
}

/* Dark theme override — when curtain pulls the page dark */
:root.dark .proof-self {
  background: var(--dark-bg, #14100B);
  color: white;
}
:root.dark .proof-self::before {
  background:
    radial-gradient(50% 40% at 80% 10%, rgba(232, 84, 10, 0.15), transparent 65%),
    radial-gradient(40% 30% at 10% 90%, rgba(232, 84, 10, 0.08), transparent 70%);
}
:root.dark .proof-self__heading { color: white; }
:root.dark .proof-self__sub { color: var(--text-on-dark-secondary); }
:root.dark .proof-self__metrics {
  border-top-color: rgba(255, 255, 255, 0.10);
  border-bottom-color: rgba(255, 255, 255, 0.10);
}
:root.dark .proof-self__metric { border-left-color: rgba(255, 255, 255, 0.06); }
:root.dark .proof-self__metric-lbl { color: white; }
:root.dark .proof-self__metric-sub { color: var(--text-on-dark-secondary); }
:root.dark .proof-self__metric-sep { color: var(--text-on-dark-muted); }
:root.dark .proof-self__stack-list { color: var(--text-on-dark-secondary); }
@media (max-width: 980px) {
  :root.dark .proof-self__metric { border-top-color: rgba(255, 255, 255, 0.06); }
}
@media (max-width: 540px) {
  :root.dark .proof-self__metric { border-top-color: rgba(255, 255, 255, 0.06); }
}

/* ============================================================
   CASE STUDY · SELF — narrative receipt for this site.
   Editorial 2-col chapters (number+title on the left, body on the
   right) on a cream background, continuing the proof-self theme.
   Distinct from the disciplines section grammar by typographic
   density: prominent display numbers, longer narrative paragraphs,
   bold decision list.
   ============================================================ */

.case-study-self {
  background: var(--cream, #F2EDE8);
  color: var(--text-on-light, #1a1411);
  padding: 96px 40px 112px;
  position: relative;
  overflow: hidden;
}
.case-study-self::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 30% at 5% 5%, rgba(232, 84, 10, 0.06), transparent 70%),
    radial-gradient(35% 25% at 95% 95%, rgba(232, 84, 10, 0.04), transparent 70%);
  pointer-events: none;
}
.case-study-self > * { position: relative; z-index: 1; }

.case-study-self__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.case-study-self__top {
  max-width: 760px;
  margin-bottom: 72px;
}

.case-study-self__eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 24px;
}

.case-study-self__heading {
  font-family: var(--font-ui);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0;
  color: var(--text-on-light, #1a1411);
}
.case-study-self__heading em {
  font-style: italic;
  color: var(--orange);
  font-weight: 600;
}

.case-study-self__sub {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.3vw, 15px);
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--text-on-light-secondary);
  margin: 24px 0 0;
  max-width: 56ch;
}

/* Chapter list */
.case-study-self__chapters {
  list-style: none;
  margin: 0;
  padding: 0;
}

.case-study-self__chapter {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 56px;
  padding: 48px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.10);
  align-items: start;
}
.case-study-self__chapter:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.case-study-self__chapter-marker {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 120px;
}
.case-study-self__chapter-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 0.95;
  color: var(--orange);
  letter-spacing: -0.01em;
}
.case-study-self__chapter-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-on-light, #1a1411);
}

.case-study-self__chapter-body {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.7;
  color: var(--text-on-light, #1a1411);
}
.case-study-self__chapter-body p {
  margin: 0 0 14px;
  max-width: 60ch;
}
.case-study-self__chapter-body p:last-child {
  margin-bottom: 0;
}

/* Decisions list — bold titles + inline body */
.case-study-self__decisions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.case-study-self__decisions li {
  padding-left: 20px;
  position: relative;
  max-width: 64ch;
}
.case-study-self__decisions li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1px;
  background: var(--orange);
}
.case-study-self__decisions strong {
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--text-on-light, #1a1411);
}
.case-study-self__decisions span {
  color: var(--text-on-light-secondary);
}

.case-study-self__closer {
  margin-top: 12px;
  font-family: var(--font-ui);
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--text-on-light, #1a1411);
}
.case-study-self__closer em {
  font-style: italic;
  color: var(--orange);
  font-weight: 600;
}

@media (max-width: 980px) {
  .case-study-self { padding: 72px 24px 88px; }
  .case-study-self__top { margin-bottom: 56px; }
  .case-study-self__chapter {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 40px 0;
  }
  .case-study-self__chapter-marker {
    position: static;
    flex-direction: row;
    align-items: baseline;
    gap: 16px;
  }
}

/* Dark theme override */
:root.dark .case-study-self {
  background: var(--dark-bg, #14100B);
  color: white;
}
:root.dark .case-study-self__heading,
:root.dark .case-study-self__chapter-title,
:root.dark .case-study-self__chapter-body,
:root.dark .case-study-self__decisions strong,
:root.dark .case-study-self__closer {
  color: white;
}
:root.dark .case-study-self__sub,
:root.dark .case-study-self__decisions span {
  color: var(--text-on-dark-secondary);
}
:root.dark .case-study-self__chapter {
  border-top-color: rgba(255, 255, 255, 0.10);
}
:root.dark .case-study-self__chapter:last-child {
  border-bottom-color: rgba(255, 255, 255, 0.10);
}
:root.dark .case-study-self::before {
  background:
    radial-gradient(40% 30% at 5% 5%, rgba(232, 84, 10, 0.12), transparent 70%),
    radial-gradient(35% 25% at 95% 95%, rgba(232, 84, 10, 0.08), transparent 70%);
}

/* ============================================================
   FEATURED CASE STUDY — full-bleed dark feature
   ============================================================ */

.case-feature {
  background: var(--dark-bg);
  padding: 80px 40px;
  color: white;
  position: relative;
  overflow: hidden;
}
.case-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 20%, rgba(232, 84, 10, 0.18), transparent 60%),
    radial-gradient(40% 30% at 20% 80%, rgba(232, 84, 10, 0.08), transparent 70%);
  pointer-events: none;
}
.case-feature > * { position: relative; z-index: 1; }

.case-feature__top {
  max-width: 1280px;
  margin: 0 auto 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.case-feature__eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
}
.case-feature__heading {
  font-family: var(--font-ui);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: white;
  max-width: 24ch;
  margin: 12px 0 0;
}
.case-feature__heading em {
  font-style: italic;
  color: var(--orange);
  font-weight: 600;
}
.case-feature__corner {
  font-family: var(--font-display);
  font-size: 28px;
  color: white;
  text-align: right;
}
.case-feature__corner small {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: 4px;
}

.case-feature__layout {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
@media (max-width: 980px) { .case-feature__layout { grid-template-columns: 1fr; } }

.case-feature__visual {
  /* No box, no dark pool — the orb floats free with only a faint warm glow.
     Footprint ~ a booking card. */
  background: radial-gradient(circle at 50% 50%, rgba(232, 84, 10, 0.08), transparent 62%);
  border: none;
  padding: 0;
  width: 100%;
  max-width: 426px;
  aspect-ratio: 426 / 460;
  margin: 0 auto;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.case-feature__mock {
  width: 100%;
  max-width: 620px;
  aspect-ratio: 5/4;
  background: var(--bg-deep, #050505);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7), 0 20px 40px -10px rgba(232, 84, 10, 0.30);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.case-feature__mock-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.case-feature__mock-bar span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.case-feature__mock-bar span:nth-child(1) { background: #F66160; }
.case-feature__mock-bar span:nth-child(2) { background: #F8BD4F; }
.case-feature__mock-bar span:nth-child(3) { background: #56C246; }
.case-feature__mock-url {
  margin-left: 14px; flex: 1;
  background: #1a1a1a;
  border-radius: 6px;
  padding: 5px 14px;
  font-family: var(--font-body);
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}
.case-feature__mock-content {
  flex: 1;
  padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(232,84,10,0.30), transparent 60%),
    #050505;
}
.case-feature__mock-row {
  display: flex; justify-content: space-between; align-items: center;
}
.case-feature__mock-brand {
  font-family: var(--font-display);
  font-size: 18px;
  color: white;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.case-feature__mock-pill {
  padding: 5px 12px;
  background: var(--orange);
  color: white;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.case-feature__mock-hl {
  font-family: var(--font-ui);
  font-size: clamp(20px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: white;
  max-width: 14ch;
}
.case-feature__mock-hl em { font-style: italic; color: var(--orange); }

.case-feature__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  max-width: 440px;
}
.case-feature__lbl {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-on-dark-secondary);
}
.case-feature__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: -0.02em;
  line-height: 0.92;
  text-transform: uppercase;
  color: white;
  margin: 0;
}
.case-feature__title em {
  font-family: var(--font-ui);
  font-style: italic;
  color: var(--orange);
  font-weight: 500;
  font-size: 0.45em;
  text-transform: none;
  letter-spacing: -0.01em;
  vertical-align: 0.4em;
}
.case-feature__body {
  font-family: var(--font-body);
  font-size: clamp(12px, 1.05vw, 13.5px);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-on-dark-secondary);
  line-height: 1.65;
  max-width: 44ch;
  margin: 0;
}

.case-feature__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border-dark);
  border-radius: 8px;
  overflow: hidden;
}
.case-feature__metric {
  background: var(--dark-surface);
  padding: 16px;
}
.case-feature__metric-num {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 36px);
  color: var(--orange);
  line-height: 1;
}
.case-feature__metric-lbl {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-on-dark-secondary);
  margin-top: 7px;
}

.case-feature__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.case-feature__tags {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.case-feature__tag {
  padding: 6px 11px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: white;
}

/* ============================================================
   CASE-FEATURE — live-site frame (real screenshot, click → site)
   ============================================================ */
.case-feature__frame {
  display: block;
  width: 100%;
  max-width: 640px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: #0a0a0a;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.70),
    0 20px 40px -10px rgba(232, 84, 10, 0.30);
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.case-feature__frame:hover,
.case-feature__frame:focus-visible {
  transform: translateY(-4px);
  box-shadow:
    0 60px 100px -20px rgba(0, 0, 0, 0.80),
    0 30px 60px -10px rgba(232, 84, 10, 0.45);
}
.case-feature__frame:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}
.case-feature__shot {
  display: block;
  width: 100%;
  height: auto;
}
.case-feature__frame-cta {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.case-feature__frame:hover .case-feature__frame-cta,
.case-feature__frame:focus-visible .case-feature__frame-cta {
  opacity: 1;
  transform: translateY(0);
}
.case-feature__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.case-feature__link {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-on-dark-secondary);
  text-decoration: none;
  transition: color 0.25s ease;
}
.case-feature__link:hover { color: var(--orange); }

/* Before/After comparison — two framed screenshots side by side */
.case-feature__compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 660px;
}
@media (max-width: 560px) { .case-feature__compare { grid-template-columns: 1fr; } }
.case-feature__compare-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.case-feature__compare .case-feature__frame { max-width: none; }
.case-feature__compare .case-feature__shot {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}
.case-feature__frame--before .case-feature__shot {
  filter: grayscale(0.4) brightness(0.92) contrast(0.96);
}
.case-feature__frame-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-on-dark-secondary);
}
.case-feature__frame-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.40);
}
.case-feature__frame-label--after { color: var(--orange); }
.case-feature__frame-label--after::before { background: var(--orange); }

/* ============================================================
   CASE-FEATURE — holographic orbiting screen
   The framed screenshot is a double-sided 3D card that auto-spins
   360° around the Y axis on an invisible sphere (perspective + a
   small Z depth + a gentle float), styled as a projected hologram:
   translucent glass frame, dual-tone rim glow, a light-pool beneath,
   scanlines, and a sheen that sweeps once per rotation. Both faces
   carry the (readable) screenshot, so the screen is visible through
   the full turn — you never see a blank reverse side.

   Pure CSS transforms (compositor-only — no main-thread/paint cost).
   js/case-orbit.js pauses it off-screen / on tab-hide / on hover.
   Reduced motion freezes it front-facing and flat.
   ============================================================ */

.case-feature__visual {
  perspective: 1600px;
  perspective-origin: 50% 42%;
  position: relative;
  overflow: visible;
}

.case-feature__sphere {
  position: relative;
  width: 100%;
  max-width: 600px;
  transform-style: preserve-3d;
  transform: rotateX(6deg);
  animation: caseFloat 7s ease-in-out infinite;
}

.case-feature__orbit {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---- WebGL globe mode (built by js/case-orbit.js) ----
   The canvas fills the visual panel; the textured sphere is drawn
   centered, compositing over the panel's gradient (its "space"). */
.case-feature__globe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
}
/* fallback screenshot when the globe is active: visually gone, still read by AT */
.case-feature__face.is-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.case-feature__face {
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.case-feature__face--front { position: relative; transform: translateZ(16px); }
.case-feature__face--back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg) translateZ(16px);
}

/* Holographic frame treatment (scoped to the orbiting faces only, so the
   before/after compare frames elsewhere keep their plain styling). */
.case-feature__face .case-feature__frame {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  transform: none;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 12, 0.82);
  box-shadow:
    0 50px 90px -28px rgba(0, 0, 0, 0.82),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 42px -6px rgba(232, 84, 10, 0.38),
    0 0 64px -12px rgba(96, 196, 222, 0.20);
}
.case-feature__face .case-feature__frame:hover { transform: none; }
.case-feature__face .case-feature__shot { opacity: 0.95; }

/* sheen sweep — one diagonal pass per rotation */
.case-feature__face .case-feature__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 32%,
    rgba(255, 255, 255, 0.10) 47%,
    rgba(150, 215, 235, 0.18) 50%,
    rgba(255, 255, 255, 0.06) 53%,
    transparent 70%
  );
  background-size: 280% 100%;
  background-position: 120% 0;
  mix-blend-mode: screen;
  animation: caseSheen 20s linear infinite;
}
/* scanlines */
.case-feature__face .case-feature__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05) 0 1px,
    transparent 1px 3px
  );
  opacity: 0.45;
  mix-blend-mode: overlay;
}

/* projected light-pool beneath the hologram */
.case-feature__floor {
  position: absolute;
  left: 50%;
  bottom: 5%;
  width: 60%;
  height: 64px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at center, rgba(232, 84, 10, 0.34), transparent 70%),
    radial-gradient(ellipse at center, rgba(96, 196, 222, 0.14), transparent 62%);
  filter: blur(11px);
  z-index: 0;
  pointer-events: none;
  animation: caseFloorPulse 7s ease-in-out infinite;
}

@keyframes caseSpin {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}
@keyframes caseFloat {
  0%, 100% { transform: rotateX(6deg) translateY(0); }
  50%      { transform: rotateX(6deg) translateY(-11px); }
}
@keyframes caseSheen {
  from { background-position: 120% 0; }
  to   { background-position: -180% 0; }
}
@keyframes caseFloorPulse {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scaleX(1); }
  50%      { opacity: 0.34; transform: translateX(-50%) scaleX(0.84); }
}

/* Tablet / mobile */
@media (max-width: 980px) {
  .case-feature__sphere { max-width: 460px; }
}

/* Reduced motion: freeze flat + front-facing, drop the holo motion */
@media (prefers-reduced-motion: reduce) {
  .case-feature__sphere,
  .case-feature__orbit,
  .case-feature__floor,
  .case-feature__face .case-feature__frame::before { animation: none !important; }
  .case-feature__sphere { transform: none; }
  .case-feature__orbit { transform: none; }
}

/* ============================================================
   PROJECT GRID — 3-up "Now booking" cards
   ============================================================ */

.work-grid-section {
  background: var(--dark-bg);
  padding: 80px 40px;
  border-top: 1px solid var(--border-dark);
}
.work-grid-section__top {
  max-width: 1280px;
  margin: 0 auto 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.work-grid-section__eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-on-dark-secondary);
}
.work-grid-section__heading {
  font-family: var(--font-ui);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: white;
  max-width: 26ch;
  margin: 12px 0 0;
}
.work-grid-section__heading em { font-style: italic; color: var(--orange); }

/* .work-grid + .work-card and all child selectors live in
   css/components/slot-card.css — shared with the home page process steps
   so the same component is used everywhere it appears. */

/* ============================================================
   IMPACT STATS BAR — light section between work areas
   ============================================================ */

.impact {
  background: var(--off-white);
  padding: 104px 40px;
  color: var(--text-on-light-primary);
}
.impact__top {
  max-width: 1280px;
  margin: 0 auto 56px;
}
.impact__eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.impact__heading {
  font-family: var(--font-ui);
  font-size: clamp(32px, 4.4vw, 58px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--black);
  max-width: 18ch;
  margin: 0;
}
.impact__heading em { font-style: italic; color: var(--orange); }

/* Editorial proof strip — no cards. Hairline rule, staggered numbers. */
.impact__grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid rgba(17, 17, 17, 0.16);
  padding-top: 4px;
}
.impact__cell {
  position: relative;
  padding: 34px 8px 0 0;
}
.impact__cell--2,
.impact__cell--4 { transform: translateY(36px); }
.impact__cell-glyph {
  display: inline-flex;
  width: 26px;
  height: 26px;
  color: var(--orange);
  margin-bottom: 18px;
  opacity: 0.7;
  transition: transform 480ms cubic-bezier(0.32, 0.72, 0, 1), opacity 320ms;
  transform-origin: left center;
}
.impact__cell-glyph svg { width: 100%; height: 100%; }
.impact__cell:hover .impact__cell-glyph {
  transform: scale(1.1) rotate(-4deg);
  opacity: 1;
}
.impact__cell-num {
  font-family: var(--font-display);
  font-size: clamp(60px, 8vw, 116px);
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 0.84;
}
.impact__cell-num sup {
  font-size: 0.32em;
  color: var(--orange);
  vertical-align: top;
  margin-left: 2px;
  margin-top: 0.5em;
  display: inline-block;
}
.impact__cell-lbl {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.impact__cell-desc {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-on-light-secondary);
  margin-top: 7px;
  line-height: 1.6;
}
@media (max-width: 860px) {
  .impact__grid { grid-template-columns: 1fr 1fr; gap: 28px 32px; }
  .impact__cell--2,
  .impact__cell--4 { transform: none; }
  .impact__cell--3,
  .impact__cell--4 { margin-top: 12px; }
}
@media (max-width: 520px) {
  .impact__grid { grid-template-columns: 1fr; }
  .impact__cell--3 { margin-top: 0; }
}

/* ============================================================
   CTA — same as services
   ============================================================ */

.work-cta {
  background: var(--black);
  color: white;
  padding: 100px 40px;
  text-align: center;
}
.work-cta__title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 120px);
  letter-spacing: -0.02em;
  line-height: 0.92;
  text-transform: uppercase;
  margin: 0;
}
.work-cta__title em {
  font-family: var(--font-ui);
  font-style: italic;
  color: var(--orange);
  font-size: 0.5em;
  vertical-align: 0.3em;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.01em;
}
.work-cta__sub {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-on-dark-secondary);
  margin: 24px 0 36px;
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 1024px) {
  .impact__grid { grid-template-columns: repeat(2, 1fr); }
  .impact__cell:nth-child(2) { border-right: none; }
  .impact__cell:nth-child(1),
  .impact__cell:nth-child(2) { border-bottom: 1px solid var(--border-light); }
}

@media (max-width: 768px) {
  .work-hero { padding: 140px 24px 60px; min-height: auto; }
  .work-hero__inner { gap: 28px; }
  .work-hero__title { font-size: clamp(72px, 22vw, 104px); }

  .case-feature { padding: 56px 20px; }
  .case-feature__top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .case-feature__layout { grid-template-columns: 1fr; }

  .work-grid-section { padding: 56px 20px; }
  .work-grid-section__top { flex-direction: column; align-items: flex-start; gap: 16px; }

  .impact { padding: 56px 20px; }
  .impact__grid { grid-template-columns: 1fr; }
  .impact__cell { border-right: none; border-bottom: 1px solid var(--border-light); }
  .impact__cell:last-child { border-bottom: none; }

  .work-cta { padding: 64px 24px; }
  /* .work-card mobile tap-target overrides live in slot-card.css */
}

