/* ============================================================
   layout.css · the asymmetric spine grid + components.
   The spine is a fixed hairline rail at the left; content hangs
   off it asymmetrically. A travelling node + section markers
   form a live progress gauge (driven by spine.js).
   ============================================================ */

/* ---- The shell: everything sits right of the spine --------- */
.shell {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-left: calc(var(--spine-x) + var(--gutter));
  padding-right: var(--gutter);
}

/* 12-col content grid for asymmetric composition */
.grid12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
}

/* Anchor targets clear the fixed header when jumped to */
section[id] { scroll-margin-top: clamp(4.5rem, 9vh, 6rem); }

/* ---- THE SPINE -------------------------------------------- */
.spine {
  position: fixed;
  left: var(--spine-x);
  top: 0;
  height: 100vh;
  width: var(--hairline);
  z-index: 5;
  pointer-events: none;        /* never blocks input */
}
.spine__rail {
  position: absolute;
  inset: 0;
  width: var(--hairline);
  background: linear-gradient(
    to bottom,
    transparent 0,
    var(--c-line) 8%,
    var(--c-line) 92%,
    transparent 100%
  );
}
/* progress fill that the node trails behind */
.spine__progress {
  position: absolute;
  left: 0; top: 0;
  width: var(--hairline);
  height: 0;                    /* set by spine.js */
  background: linear-gradient(to bottom, var(--c-signal-soft), var(--c-signal));
  opacity: 0.55;
}
/* travelling node */
.spine__node {
  position: absolute;
  left: 50%;
  top: 0;                       /* translated by spine.js */
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--c-signal);
  transform: translate(-50%, -50%);
  box-shadow: var(--glow-signal);
  will-change: transform;
}
.spine__node::after {          /* breathing halo */
  content: "";
  position: absolute; inset: -7px;
  border-radius: 50%;
  border: var(--hairline) solid var(--c-signal-glow);
  animation: pulse-ring 3s var(--ease-instrument) infinite;
}
/* evenly-spaced section markers (the index/gauge) */
.spine__markers {
  position: absolute;
  left: 50%;
  top: 12vh; bottom: 12vh;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.spine__marker {
  position: relative;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--c-faint);
  transition: background var(--dur-1) var(--ease-instrument),
              box-shadow var(--dur-1) var(--ease-instrument),
              transform var(--dur-1) var(--ease-instrument);
}
.spine__marker[data-active="true"] {
  background: var(--c-signal);
  box-shadow: var(--glow-signal);
  transform: scale(1.4);
}
/* hide the rail on the narrowest screens; gauge stays meaningful above */
@media (max-width: 560px) {
  :root { --spine-x: 1.25rem; }
  .spine__markers { display: none; }
  .spine__node { width: 7px; height: 7px; }
}

/* ---- Header ----------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding: var(--s-4) var(--gutter) var(--s-4) calc(var(--spine-x) + var(--gutter));
  transition: background var(--dur-2) var(--ease-instrument),
              backdrop-filter var(--dur-2) var(--ease-instrument),
              border-color var(--dur-2) var(--ease-instrument);
  border-bottom: var(--hairline) solid transparent;
}
.site-header[data-scrolled="true"] {
  background: color-mix(in oklch, var(--c-bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--c-line);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  font-size: 1.05rem;
}
.brand .signal { font-weight: 700; }
.nav {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}
.nav__links a {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  transition: color var(--dur-1) var(--ease-instrument);
}
.nav__links a:hover { color: var(--c-text); }
@media (max-width: 820px) {
  .nav__links { display: none; }
}

/* ---- Buttons ---------------------------------------------- */
.btn {
  --_bg: transparent;
  --_fg: var(--c-text);
  --_bd: var(--c-line-strong);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0.85em 1.4em;
  border-radius: var(--radius-pill);
  background: var(--_bg);
  color: var(--_fg);
  border: var(--hairline) solid var(--_bd);
  font-weight: 550;
  font-size: var(--t-small);
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform var(--dur-1) var(--ease-instrument),
              background var(--dur-1) var(--ease-instrument),
              border-color var(--dur-1) var(--ease-instrument),
              box-shadow var(--dur-1) var(--ease-instrument),
              color var(--dur-1) var(--ease-instrument);
}
.btn__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-signal);
  box-shadow: 0 0 10px var(--c-signal-glow);
  flex: none;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  --_bg: var(--c-signal);
  --_fg: var(--c-signal-ink);
  --_bd: var(--c-signal);
  font-weight: 650;
  box-shadow: 0 0 0 0 var(--c-signal-glow);
}
.btn--primary .btn__dot { background: var(--c-signal-ink); box-shadow: none; }
.btn--primary:hover { box-shadow: var(--glow-signal); }
.btn--ghost { --_bg: transparent; }
.btn--ghost:hover { --_bd: var(--c-signal); color: var(--c-text); }
.btn--lg { padding: 1.05em 1.8em; font-size: var(--t-body); }

/* ---- Movements (sections on the spine) -------------------- */
.movement {
  position: relative;
  padding-block: var(--space-section);
}
.movement__index {
  display: block;
  margin-bottom: var(--s-5);
}
/* asymmetric placement helpers */
.col-wide  { grid-column: 1 / span 9; }
.col-mid   { grid-column: 1 / span 7; }
.col-right { grid-column: 5 / span 8; }
.col-far   { grid-column: 7 / span 6; }
.col-full  { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .col-wide, .col-mid, .col-right, .col-far { grid-column: 1 / -1; }
}

/* ---- Orient / statement ----------------------------------- */
.statement {
  /* calmer than the raw h2 ramp: the hero speaks loudest, sections speak clearly */
  font-size: clamp(1.7rem, 1.05rem + 2.5vw, 3.1rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: var(--ls-tight);
  max-width: 26ch;
}
.statement .signal { font-weight: 600; }

/* ---- Manifesto -------------------------------------------- */
.manifesto {
  font-size: var(--t-h2);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: var(--ls-tight);
  max-width: 22ch;
}
.manifesto .drawn { position: relative; display: inline; }

/* a drawn hairline under the manifesto */
.rule-draw {
  height: var(--hairline);
  background: linear-gradient(to right, var(--c-signal), var(--c-signal-soft));
  transform-origin: left;
  margin-top: var(--s-6);
  max-width: 540px;
}

/* ---- Work / portfolio media (shared by the homepage rail and /work/) */
.wscene:hover .work__media img { transform: scale(1.04); }
.work__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--hairline) solid var(--c-line);
  background: var(--c-surface);
  box-shadow: var(--shadow-lift);
  aspect-ratio: 16 / 10;
}
.work__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-instrument);
}
.work__media::after {     /* signal edge-light */
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 var(--hairline) var(--c-line-strong),
              inset 0 -120px 120px -90px var(--c-signal-soft);
  pointer-events: none;
}
.work__meta { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); }
.work__title {
  font-size: var(--t-h2);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  margin-block: var(--s-4) var(--s-4);
}
.work__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tag {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  border: var(--hairline) solid var(--c-line);
  border-radius: var(--radius-pill);
  padding: 0.35em 0.9em;
}

/* ---- Trust ------------------------------------------------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--gutter);
  margin-top: var(--s-8);
}
.quote {
  border-left: var(--hairline) solid var(--c-line);
  padding-left: var(--s-5);
}
.quote p {
  font-size: var(--t-lead);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-5);
  text-wrap: pretty;
}
.quote__who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: var(--s-4);
  border-left: 2px solid var(--c-signal);
}
.quote__name { font-weight: 600; font-size: var(--t-small); }
.quote__role {
  color: var(--c-muted);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.08em;
}

/* Trustpilot custom badge */
.trustpilot {
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border: var(--hairline) solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  transition: border-color var(--dur-1) var(--ease-instrument),
              transform var(--dur-1) var(--ease-instrument);
}
.trustpilot:hover { border-color: var(--c-signal); transform: translateY(-2px); }
.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 20px; height: 20px; }
.trustpilot__txt { display: flex; flex-direction: column; line-height: 1.3; }
.trustpilot__txt b { font-size: var(--t-small); }
.trustpilot__txt span { color: var(--c-muted); font-size: var(--t-mono); font-family: var(--font-mono); letter-spacing: 0.08em; }

/* ---- Process (spine-aligned steps) ------------------------ */
.steps { display: grid; gap: 0; margin-top: var(--s-8); }
.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-2);
  padding-block: var(--s-6);
  border-top: var(--hairline) solid var(--c-line);
}
.step:last-child { border-bottom: var(--hairline) solid var(--c-line); }
.step__head { display: flex; align-items: baseline; gap: var(--s-5); }
.step__no { font-family: var(--font-mono); color: var(--c-signal); font-size: var(--t-mono); letter-spacing: 0.1em; }
.step__title { font-size: var(--t-h3); font-weight: 550; letter-spacing: var(--ls-tight); }
.step__body { color: var(--c-muted); max-width: 52ch; }
@media (min-width: 760px) {
  .step { grid-template-columns: 14rem 1fr; align-items: start; gap: var(--gutter); }
  .step__head { display: contents; }
}

/* ---- Pricing ---------------------------------------------- */
.pricing {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  margin-top: var(--s-8);
}
.price-card {
  border: var(--hairline) solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--c-surface);
  position: relative;
  overflow: hidden;
}
.price-card--feature { border-color: var(--c-signal-soft); }
.price-card--feature::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, var(--c-signal-faint), transparent 60%);
  pointer-events: none;
}
.price-card h3 { font-size: var(--t-h3); margin-bottom: var(--s-2); }
.price-amount {
  display: flex; align-items: baseline; gap: 0.3ch;
  font-size: clamp(2.4rem, 1.5rem + 3vw, 3.6rem);
  font-weight: 650;
  letter-spacing: var(--ls-tighter);
  margin-block: var(--s-4);
}
.price-amount .per { font-size: var(--t-body); font-weight: 400; color: var(--c-muted); letter-spacing: 0; }
.price-list { display: grid; gap: var(--s-3); margin-block: var(--s-5) var(--s-6); }
.price-list li { display: flex; gap: var(--s-3); align-items: flex-start; color: var(--c-muted); font-size: var(--t-small); }
.price-list svg { flex: none; width: 18px; height: 18px; color: var(--c-signal); margin-top: 0.15em; }

/* ---- Convert / closing CTA -------------------------------- */
.convert {
  text-align: left;
  padding-block: var(--space-section);
  border-top: var(--hairline) solid var(--c-line);
}
.convert h2 {
  font-size: var(--t-h1);
  font-weight: 650;
  letter-spacing: var(--ls-tighter);
  max-width: 16ch;
  margin-bottom: var(--s-6);
}
.convert__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }
.convert__contact { display: flex; flex-wrap: wrap; gap: var(--s-5); margin-top: var(--s-7); }
.convert__contact a {
  font-family: var(--font-mono); font-size: var(--t-small);
  color: var(--c-muted); display: inline-flex; gap: var(--s-3); align-items: center;
  transition: color var(--dur-1) var(--ease-instrument);
}
.convert__contact a:hover { color: var(--c-signal); }

/* ---- Footer ----------------------------------------------- */
.site-footer {
  padding-block: var(--s-8) var(--s-7);
  border-top: var(--hairline) solid var(--c-line);
  color: var(--c-muted);
}
.footer-grid {
  display: grid;
  gap: var(--s-6) var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.footer-grid h2 { font-family: var(--font-mono); font-size: var(--t-mono); letter-spacing: var(--ls-mono); text-transform: uppercase; color: var(--c-faint); margin-bottom: var(--s-4); font-weight: 500; }
.footer-grid a { color: var(--c-muted); font-size: var(--t-small); line-height: 2; transition: color var(--dur-1); }
.footer-grid a:hover { color: var(--c-text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-8); padding-top: var(--s-5); border-top: var(--hairline) solid var(--c-line); font-size: var(--t-mono); font-family: var(--font-mono); letter-spacing: 0.06em; color: var(--c-faint); }

/* ============================================================
   Large-screen composition · let the artwork breathe on desktop
   while the mobile layout above is untouched.
   ============================================================ */
@media (min-width: 1024px) {
  /* Big editorial index numeral behind each scene */
  .wstack { counter-reset: work; }
  .wscene { counter-increment: work; }
  .wscene .shell { position: relative; z-index: 1; }
  .wscene::before {
    content: "0" counter(work);
    position: absolute; top: 4%; right: 3%;
    font-family: var(--font-mono); font-weight: 700;
    font-size: clamp(9rem, 14vw, 15rem); line-height: 1;
    letter-spacing: -0.05em;
    color: var(--c-signal); opacity: 0.06;
    z-index: 0; pointer-events: none; user-select: none;
  }
  /* Larger, more cinematic media + titles */
  .work__media { aspect-ratio: 16 / 9; }
  .work__title { font-size: clamp(1.8rem, 1rem + 2vw, 2.9rem); }

  /* Statements read wide, filling the row rather than sitting in a
     narrow poster column with empty space either side */
  .statement { max-width: 34ch; }
  .manifesto { max-width: 26ch; }

  .nav { gap: var(--s-7); }

  /* Scenes: image and text side by side, alternating, one composed frame each */
  .wscene__grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); min-height: 56vh; }
  .wscene__media { grid-column: 1 / span 7; }
  .wscene__body { grid-column: 9 / span 4; }
  .wscene:nth-of-type(even) .wscene__media { grid-column: 6 / span 7; order: 2; }
  .wscene:nth-of-type(even) .wscene__body { grid-column: 1 / span 4; order: 1; }
}

@media (min-width: 1600px) {
  :root { --page-max: 1480px; }
}
@media (min-width: 1920px) {
  :root { --page-max: 1560px; }
}

/* ============================================================
   Generative artwork in the desktop voids. Hidden on mobile
   (single column has no voids). All canvases are decorative.
   ============================================================ */
.art { display: none; }
@media (min-width: 1024px) {
  .has-art { position: relative; overflow: hidden; }
  .has-art > .shell { position: relative; z-index: 1; }
  .art {
    display: block; position: absolute; z-index: 0; pointer-events: none;
    top: 50%; transform: translateY(-50%);
  }
  /* Orient · wireframe globe in the left void (a CMX logo echo).
     Explicit square dims (not aspect-ratio): Safari treats <canvas> as a
     replaced element and keeps its 2:1 intrinsic ratio under aspect-ratio. */
  .art--globe {
    left: clamp(-24px, 0vw, 24px); width: min(34vw, 470px); height: min(34vw, 470px);
    -webkit-mask: radial-gradient(closest-side, #000 60%, transparent 100%);
            mask: radial-gradient(closest-side, #000 60%, transparent 100%);
    opacity: 0.9;
  }
  /* The belief · flow field streaming through the right void */
  .art--flow {
    right: -4%; width: min(58vw, 940px); height: 132%;
    -webkit-mask: linear-gradient(to right, transparent 0%, #000 32%, #000 100%);
            mask: linear-gradient(to right, transparent 0%, #000 32%, #000 100%);
  }
  /* Process · harmonograph curve in the right void beside the steps */
  .art--harmo {
    right: clamp(-16px, 2vw, 56px); width: min(38vw, 500px); height: min(38vw, 500px);
    -webkit-mask: radial-gradient(closest-side, #000 58%, transparent 100%);
            mask: radial-gradient(closest-side, #000 58%, transparent 100%);
    opacity: 0.95;
  }
}

/* ============================================================
   Honest trust block (standards + founder). Pre-launch: no reviews.
   ============================================================ */
/* The six standards as an instrument panel: framed gauge tiles with a
   mono index in the corner and a signal glow that answers the pointer. */
.standards {
  list-style: none;
  margin-top: var(--s-8);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: var(--s-4);
  counter-reset: std;
}
.standard {
  counter-increment: std;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--s-3);
  align-content: start;
  padding: var(--s-5);
  border: var(--hairline) solid var(--c-line);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--c-surface) 65%, transparent);
  overflow: hidden;
  transition: border-color var(--dur-1) var(--ease-instrument),
              transform var(--dur-1) var(--ease-instrument);
}
.standard::before {
  content: "0" counter(std);
  position: absolute;
  top: var(--s-3); right: var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.14em;
  color: var(--c-faint);
  transition: color var(--dur-1) var(--ease-instrument);
}
.standard::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(90% 90% at 0% 100%, var(--c-signal-faint), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease-instrument);
}
.standard:hover { border-color: var(--c-signal-soft); transform: translateY(-2px); }
.standard:hover::before { color: var(--c-signal); }
.standard:hover::after { opacity: 1; }
.standard svg { width: 18px; height: 18px; color: var(--c-signal); margin-top: 0.2em; grid-row: 1 / span 2; }
.standard b { font-weight: 600; font-size: var(--t-body); }
.standard span { color: var(--c-muted); font-size: var(--t-small); grid-column: 2; }
@media (prefers-reduced-motion: reduce) {
  .standard, .standard::before, .standard::after { transition: none; }
  .standard:hover { transform: none; }
}

.founder {
  margin-top: var(--s-9);
  display: grid;
  gap: var(--gutter);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .founder { grid-template-columns: minmax(240px, 320px) 1fr; gap: var(--s-8); }
}
.founder__photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--hairline) solid var(--c-line-strong);
  background:
    radial-gradient(120% 80% at 50% 0%, var(--c-signal-faint), transparent 60%),
    var(--c-surface);
  display: grid;
  place-items: center;
}
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder__ph {
  display: grid; justify-items: center; gap: 0.45rem;
  font-family: var(--font-mono); letter-spacing: var(--ls-mono);
  color: var(--c-faint); font-size: var(--t-mono);
}
.founder__ph i { font-style: normal; font-size: 0.62rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.1em; }
.founder__quote {
  font-size: var(--t-lead); font-weight: 500; line-height: 1.5;
  letter-spacing: -0.01em; margin-block: var(--s-4) var(--s-5);
  max-width: 46ch; text-wrap: pretty;
}
.founder__name { font-weight: 600; }
.founder__name span { display: block; color: var(--c-muted); font-family: var(--font-mono); font-size: var(--t-mono); letter-spacing: 0.08em; margin-top: var(--s-2); }
.trust-close { margin-top: var(--s-8); }
.ilink { color: var(--c-signal); text-decoration: none; border-bottom: 1px solid var(--c-signal-soft); transition: border-color var(--dur-1) var(--ease-instrument); }
.ilink:hover { border-bottom-color: var(--c-signal); }

/* ============================================================
   Work case studies · "View case study" trigger + reading dialog
   ============================================================ */
.work__open {
  margin-top: var(--s-5);
  font-family: var(--font-mono); font-size: var(--t-mono);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-signal); background: none; border: 0; padding: 0.2em 0;
  cursor: pointer; display: inline-flex; align-items: center; gap: 0.4em;
  transition: color var(--dur-1) var(--ease-instrument);
}
.work__open:hover { color: var(--c-text); }
.work__open:focus-visible { outline: 2px solid var(--c-signal); outline-offset: 4px; border-radius: 2px; }

.case {
  width: min(100%, 920px); max-width: 920px; max-height: 92vh;
  margin: auto; padding: 0; border: var(--hairline) solid var(--c-line-strong);
  border-radius: var(--radius-lg); background: var(--c-surface); color: var(--c-text);
  overflow: hidden; position: relative;
}
.case::backdrop { background: color-mix(in srgb, #060608 80%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.case[open] { animation: brief-in var(--dur-2) var(--ease-instrument); }
@media (prefers-reduced-motion: reduce) { .case[open] { animation: none; } }
.case__scroll { max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.case__close {
  position: absolute; top: var(--s-4); right: var(--s-4); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  border: var(--hairline) solid var(--c-line-strong);
  background: color-mix(in srgb, #0a0a0f 60%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: grid; place-items: center; color: var(--c-text); cursor: pointer;
  transition: border-color var(--dur-1), transform var(--dur-1);
}
.case__close:hover { border-color: var(--c-signal); transform: rotate(90deg); }
.case__close svg { width: 18px; height: 18px; }
.case__media { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: var(--hairline) solid var(--c-line); background: var(--c-surface-2); }
.case__media img { width: 100%; height: 100%; object-fit: cover; }
.case__body { padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); }
.case__label { color: var(--c-signal); margin-bottom: var(--s-3); }
.case__title { font-size: var(--t-h2); letter-spacing: var(--ls-tight); }
.case__summary { margin-block: var(--s-4) var(--s-5); color: var(--c-text); max-width: 52ch; }
.case__tags { margin-bottom: var(--s-2); }
.case__h { font-size: var(--t-h3); margin: var(--s-6) 0 var(--s-3); letter-spacing: var(--ls-tight); font-weight: 600; }
.case__p { color: var(--c-muted); max-width: 62ch; line-height: 1.7; }
.case__craft { margin: 0; list-style: none; }
.case__craft li { color: var(--c-muted); line-height: 1.6; padding-left: 1.4em; position: relative; margin-bottom: var(--s-3); max-width: 62ch; }
.case__craft li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--c-signal); box-shadow: 0 0 8px var(--c-signal-glow); }
.case__cta { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-8); }

/* ============================================================
   The work · three composed scenes, scrolled through vertically.
   Alternating sides on desktop, each under its ghost numeral.
   ============================================================ */
.wscene {
  position: relative;
  overflow: hidden;
  border-top: var(--hairline) solid var(--c-line);
}
.wstack .wscene:last-child { border-bottom: var(--hairline) solid var(--c-line); }
.wscene__grid {
  display: grid;
  gap: var(--s-6);
  align-items: center;
  padding-block: var(--s-8);
}
.wscene__index { color: var(--c-signal); display: block; margin-bottom: var(--s-4); }

/* ============================================================
   The process gauge · four steps as tabs with a signal fill.
   ============================================================ */
.ptabs { margin-top: var(--s-7); }
.ptabs__list { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.ptabs__tab {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s-3);
  padding: 0.7em 1.25em;
  border-radius: var(--radius-pill);
  border: var(--hairline) solid var(--c-line);
  color: var(--c-muted);
  font-weight: 550;
  font-size: var(--t-small);
  cursor: pointer;
  transition: color var(--dur-1) var(--ease-instrument),
              border-color var(--dur-1) var(--ease-instrument),
              background var(--dur-1) var(--ease-instrument);
}
.ptabs__tab .mono { font-size: var(--t-mono); letter-spacing: 0.1em; color: var(--c-faint); transition: color var(--dur-1); }
.ptabs__tab:hover { border-color: var(--c-line-strong); color: var(--c-text); }
.ptabs__tab[aria-selected="true"] {
  border-color: var(--c-signal);
  color: var(--c-text);
  background: var(--c-signal-faint);
}
.ptabs__tab[aria-selected="true"] .mono { color: var(--c-signal); }
.ptabs__track {
  height: 2px;
  max-width: 560px;
  background: var(--c-line);
  border-radius: 2px;
  overflow: hidden;
  margin-block: var(--s-6) var(--s-6);
}
.ptabs__fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(to right, var(--c-signal-deep), var(--c-signal));
  box-shadow: 0 0 8px var(--c-signal-glow);
  transition: width var(--dur-2) var(--ease-instrument);
}
.ptabs__panel.is-active { animation: ptab-in var(--dur-2) var(--ease-instrument); }
.ptabs__lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  letter-spacing: -0.01em;
  max-width: 46ch;
  text-wrap: pretty;
}
@keyframes ptab-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ptabs__panel.is-active { animation: none; }
  .ptabs__fill { transition: none; }
}

/* ============================================================
   Lit movements + pricing polish · the light bed language of
   the hero and closing CTA, carried into the middle acts.
   ============================================================ */
.movement--lit { isolation: isolate; }
.movement--lit::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 50% at 85% 6%, var(--c-signal-faint), transparent 65%),
    radial-gradient(45% 45% at 6% 96%, color-mix(in oklch, var(--c-signal) 6%, transparent), transparent 60%);
  pointer-events: none;
}
.price-card {
  transition: transform var(--dur-1) var(--ease-instrument),
              border-color var(--dur-1) var(--ease-instrument),
              box-shadow var(--dur-1) var(--ease-instrument);
}
.price-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-signal-soft);
  box-shadow: var(--shadow-lift), 0 0 44px -20px var(--c-signal-glow);
}
@media (prefers-reduced-motion: reduce) {
  .price-card { transition: none; }
  .price-card:hover { transform: none; }
}

/* The standard section's light field (desktop only, like all art) */
@media (min-width: 1024px) {
  .art--field {
    right: -5%;
    width: min(46vw, 760px);
    height: 120%;
    -webkit-mask: linear-gradient(to right, transparent 0%, #000 38%, #000 100%);
            mask: linear-gradient(to right, transparent 0%, #000 38%, #000 100%);
    opacity: 0.75;
  }
}

