/* =============================================================================
   SXM /work/ case-study index - spine shelf + zig-zag grid
   Geometry is Figma 912:1899 (spine), 1211:644 (open), 912:1351 / 508:1927 (grid).

   All design numbers are unitless custom properties multiplied by --u, a
   container-query unit, so the whole composition scales off the component's own
   inline size rather than 100vw (which includes the scrollbar on this site,
   where body has overflow-x:hidden).

   Rules standing in for a face that is not on the server yet are tagged
   SXM FONT SUBSTITUTE: Nord Medium, Circular Std, OCR-B, Staff X Condensed Black.
   ========================================================================== */

.sxm-w{
  --u: calc(100cqi / 1232);          /* 1 Figma px at the current width       */
  --ink:  #F3F1E7;                   /* the comp's off-white                  */
  --card: #2E2E2E;
  --plate:#000000;
  --sxm-wide:    'Nord Medium', 'Nord Regular', sans-serif;
  --sxm-copy:    'DM Sans', system-ui, sans-serif;     /* SXM FONT SUBSTITUTE: Circular Std */
  --sxm-mono:    'Ocr A Tribute', 'OCRATributeW01 Regular Mono', ui-monospace, monospace; /* SXM FONT SUBSTITUTE: OCR-B */
  --sxm-display: 'F37 Stout Black Compressed', sans-serif;

  container-type: inline-size;
  width: 100%;
  max-width: 1232px;
  margin-inline: auto;
  position: relative;
}

/* the real Nord Medium (2026-08-27) — no synthetic stroke */
.sxm-w .wide-md{
  font-family: var(--sxm-wide); font-weight: 500;
  paint-order: stroke fill;
}

.sxm-w *,
.sxm-w *::before,
.sxm-w *::after{ box-sizing: border-box; }

.sxm-w-sprite{ position:absolute; width:0; height:0; overflow:hidden; }

/* ---------------------------------------------------------------- filter bar */

.sxm-w-bar{
  display: grid;
  grid-template-columns: 1fr 1fr calc(210 * var(--u));
  gap: calc(11 * var(--u));
  margin: 0 0 calc(120 * var(--u));
}
.sxm-w-sel{ position: relative; display: block; }
.sxm-w-sel select{
  appearance: none; -webkit-appearance: none;
  width: 100%;
  height: calc(55 * var(--u));
  min-height: 44px;
  background: #2E2E2E;
  border: 0;
  border-radius: 4px;
  color: rgba(255,255,255,.42);
  font-family: var(--sxm-wide);
  font-size: clamp(11px, calc(14 * var(--u)), 14px);
  letter-spacing: -.36px;
  text-transform: uppercase;
  padding-inline: calc(20 * var(--u)) calc(46 * var(--u));
  cursor: pointer;
}
.sxm-w-sel select:hover{ color: rgba(255,255,255,.7); }
.sxm-w-sel select:focus-visible{ outline: 2px solid #fff; outline-offset: 2px; color:#fff; }
.sxm-w-sel select option{ background:#141414; color:#fff; }
.sxm-w-chev{
  position: absolute; right: calc(25 * var(--u)); top: 50%;
  translate: 0 -50%;
  width: 10px; height: 6px; pointer-events: none;
  background: currentColor; color: rgba(255,255,255,.55);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.sxm-w-toggle{ display: grid; grid-template-columns: 1fr 1fr; gap: calc(10 * var(--u)); }
/* Two classes, and every property the Kit-7 reset-neutraliser zeroes is restated here.
   These are type=submit (the no-JS path posts the form), so hello-elementor's
   `[type="submit"]` and the neutraliser both match at (0,1,0) — a single-class rule
   ties with them and loses on source order. Never let a component depend on a
   site-wide reset for its own padding, alignment or type size. */
.sxm-w .sxm-w-vbtn{
  display: inline-flex; align-items: center; justify-content: center;
  height: calc(55 * var(--u));
  min-height: 44px;
  padding-block: 0;
  padding-inline: calc(18 * var(--u));
  border: 1px solid #737373;
  border-radius: 4px;
  background: transparent;
  color: rgba(255,255,255,.5);
  font-family: var(--sxm-wide);
  font-weight: 500;
  font-size: clamp(11px, calc(14 * var(--u)), 14px);
  line-height: 1;
  letter-spacing: -.36px;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease;
}
.sxm-w .sxm-w-vbtn:hover{ color:#fff; border-color:#fff; }
.sxm-w .sxm-w-vbtn:focus-visible{ outline: 2px solid #fff; outline-offset: 2px; }
.sxm-w .sxm-w-vbtn.is-on{ background:#fff; color:#000; border-color:#fff; }
.sxm-w-apply{ grid-column:1/-1; }

.sxm-w-none{
  font-family: var(--sxm-copy); font-weight:300; color: rgba(243,241,231,.7);
  padding: 60px 0 40px; text-align:center;
}
.sxm-w-none a{ color:#fff; }

/* -------------------------------------------------------------------- list */

.sxm-w-list{ list-style:none; margin:0; padding:0; }
.sxm-w-item{ position: relative; }

/* ============================================================== GRID VIEW == */

.sxm-w[data-view="grid"] .sxm-w-list{
  display: flex; flex-direction: column;
  gap: calc(30 * var(--u));
}
.sxm-w[data-view="grid"] .sxm-w-spine{ display: none; }

.sxm-w-card{
  display: grid;
  grid-template-columns: calc(592 * var(--u)) minmax(0, 1fr);
  column-gap: calc(34 * var(--u));
  align-items: stretch;
  background: var(--card);
  border-radius: 6px;
  padding: calc(24 * var(--u));
  overflow: clip;
}
.sxm-w-item[data-side="right"] .sxm-w-card{
  grid-template-columns: minmax(0, 1fr) calc(592 * var(--u));
}
.sxm-w-copy{ min-width: 0; }
.sxm-w-item[data-side="right"] .sxm-w-plate{ order: 2; }
.sxm-w-item[data-side="right"] .sxm-w-copy{ order: 1; padding-left: calc(10 * var(--u)); }

/* the logo plate — black by default, brand colour when lit */
.sxm-w-plate{
  position: relative;
  /* the comp's 592x618 as a FLOOR, never a ratio: a ratio on a stretched grid item widened the
     plate with the row's height (627-676px in a 592px column), sliding it under the gutter and
     over the copy's first glyphs, and 11px out of right-hand cards (Rob's screenshot, 2026-09-09) */
  min-height: calc(618 * var(--u));
  width: 100%; max-width: 100%; min-width: 0;
  border-radius: 6px;
  background: var(--plate);
  display: grid;
  place-items: center;
  overflow: clip;
  transition: background-color .42s cubic-bezier(.22,.86,.24,1);
}
.sxm-w-plate-logo{
  grid-area: 1 / 1;
  display: grid; place-items: center;
  width: 78%; height: 64%; min-width: 0; min-height: 0;   /* an SVG's intrinsic size must never size the column */
  color: #FFFFFF;
  transition: color .42s cubic-bezier(.22,.86,.24,1), opacity .32s ease;
}
.sxm-w-plate-logo--ink{ opacity: 0; }        /* raster clients carry two files */

.sxm-w-logo{ display:block; width:100%; height:100%; object-fit: contain; }
svg.sxm-w-logo{ fill: currentColor; }

/* lit: hover on fine pointers, focus-within for keyboards, [data-lit] on touch */
@media (hover: hover) and (pointer: fine){
  .sxm-w-card:hover .sxm-w-plate{ background: var(--cs-grid); }
  .sxm-w-card:hover .sxm-w-plate-logo{ color: var(--cs-grid-ink); }
  .sxm-w-card:hover .sxm-w-plate-logo--ink{ opacity:1; }
  .sxm-w-card:hover .sxm-w-plate--dual .sxm-w-plate-logo:not(.sxm-w-plate-logo--ink){ opacity:0; }
}
.sxm-w-card:focus-within .sxm-w-plate,
.sxm-w-item[data-lit] .sxm-w-plate{ background: var(--cs-grid); }
.sxm-w-card:focus-within .sxm-w-plate-logo,
.sxm-w-item[data-lit] .sxm-w-plate-logo{ color: var(--cs-grid-ink); }
.sxm-w-card:focus-within .sxm-w-plate-logo--ink,
.sxm-w-item[data-lit] .sxm-w-plate-logo--ink{ opacity:1; }
.sxm-w-card:focus-within .sxm-w-plate--dual .sxm-w-plate-logo:not(.sxm-w-plate-logo--ink),
.sxm-w-item[data-lit] .sxm-w-plate--dual .sxm-w-plate-logo:not(.sxm-w-plate-logo--ink){ opacity:0; }

/* content column */
.sxm-w-copy{
  display: flex; flex-direction: column;
  /* no top padding: the tag's top edge lines up with the plate's, so the two columns start on the same line
     (Juan, 2026-09-23: "adjust tag positioning to improve layout alignment"). The 6u moves to the bottom,
     so the column's height is unchanged. */
  padding: 0 calc(40 * var(--u)) calc(22 * var(--u)) 0;
}
.sxm-w-badge{
  align-self: flex-start;
  margin: 0 0 calc(34 * var(--u));
  min-height: calc(34 * var(--u));
  display: flex; align-items: center;
  padding-inline: calc(12 * var(--u));
  background: #D9D9D9; color: #000;
  border-radius: 4px;
  font-family: var(--sxm-wide);
  font-size: clamp(10px, calc(16.6 * var(--u)), 17px);
  letter-spacing: -.36px; text-transform: uppercase;
  white-space: nowrap;
}
.sxm-w-head{
  font-family: var(--sxm-wide); font-weight: 500;
  font-weight: 400;
  font-size: clamp(20px, calc(38 * var(--u)), 38px);
  line-height: 1.147;
  letter-spacing: -.48px;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 calc(30 * var(--u));
  text-wrap: balance;
}
/* the plate and the headline are links to the case study (Juan, 2026-09-23). The plate keeps every plate rule (they are
   class selectors); only the anchor's own defaults are restated. The headline underlines on hover, like a headline should. */
a.sxm-w-plate{ text-decoration: none; color: inherit; cursor: pointer; }
.sxm-w-head .sxm-w-headlink{ color: inherit; text-decoration: none; }
.sxm-w-head .sxm-w-headlink:hover{ text-decoration: underline; text-underline-offset: .14em; text-decoration-thickness: 1px; }
.sxm-w-head .sxm-w-headlink:focus-visible{ outline: 2px solid var(--ink); outline-offset: 4px; text-decoration: none; }
.sxm-w-lede{
  font-family: var(--sxm-copy); font-weight: 300;   /* SXM FONT SUBSTITUTE: Circular Std Light */
  font-size: clamp(13px, calc(14.6 * var(--u)), 15px);
  line-height: 1.658;
  letter-spacing: .4px;
  color: var(--ink);
  margin: 0 0 calc(36 * var(--u));
  max-width: calc(518 * var(--u));
}
.sxm-w-cta{
  font-family: var(--sxm-mono);                      /* SXM FONT SUBSTITUTE: OCR-B */
  font-size: clamp(11px, calc(14 * var(--u)), 14px);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 12px;
  align-self: flex-start;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, color .25s ease;
}
.sxm-w-cta:hover, .sxm-w-cta:focus-visible{ border-bottom-color: currentColor; }
.sxm-w-cta:focus-visible{ outline: 2px solid #fff; outline-offset: 4px; }
.sxm-w-cta--soon{ color: rgba(243,241,231,.42); cursor: default; }
.sxm-w-arrow{
  width: 9px; height: 9px; flex: 0 0 auto;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  rotate: -45deg;
}
.sxm-w-stat{ margin: auto 0 0; }
.sxm-w-stat b{
  display: block;
  font-family: var(--sxm-wide); font-weight: 500;
  font-size: clamp(28px, calc(45 * var(--u)), 45px);
  line-height: 1.013; letter-spacing: -.48px;
  color: var(--ink);
}
.sxm-w-stat span{
  display: block;
  font-family: var(--sxm-wide);
  font-size: clamp(10px, calc(16.6 * var(--u)), 17px);
  letter-spacing: -.36px; text-transform: uppercase;
  color: var(--ink);
  margin-top: calc(6 * var(--u));
}

/* ============================================================= SPINE VIEW == */

.sxm-w[data-view="spine"] .sxm-w-card{ display: none; }
.sxm-w[data-view="spine"] .sxm-w-list{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  gap: calc(var(--cs-gap) * var(--u));
  min-height: calc(var(--cs-rackh) * var(--u));
  padding-bottom: calc(40 * var(--u));
}
.sxm-w[data-view="spine"] .sxm-w-item{
  flex: 0 0 auto;
  width: calc(var(--cs-w) * var(--u));
  max-width: none;
  transition: width .58s cubic-bezier(.22,.86,.24,1);
  will-change: width;
}
/* the +317 rule: the open rack always spans exactly 1232 */
.sxm-w[data-view="spine"] .sxm-w-item[data-open]{
  width: calc((var(--cs-w) + var(--cs-delta)) * var(--u));
}

.sxm-w-spine{
  /* mark thickness is 60% of the spine, but never so long once rotated that it
     runs past the spine itself — a very wide logo on a narrow spine would
     otherwise be clipped out of sight entirely */
  --T: min(calc(var(--cs-w) * .60), calc(var(--cs-h) * .55 / var(--cs-ar)));
  --L: calc(var(--T) * var(--cs-ar));
  position: relative;
  height: calc(var(--cs-h) * var(--u));
  border-radius: 8px;
  background: var(--cs-spine);
  overflow: clip;
  transition: height .58s cubic-bezier(.22,.86,.24,1);
}
.sxm-w-item[data-open] .sxm-w-spine{ height: calc(var(--cs-rackh) * var(--u)); }

/* dim — a scrim over the fill only, so the mark and caption stay legible.
   Deliberate substitute for the comp's flat opacity:.6, which put Scars and All
   at 1.35:1 against the black page. */
.sxm-w-spine::after{
  content:""; position:absolute; inset:0; z-index:1;
  background:#000; opacity:0; pointer-events:none;
  border-radius: 8px;
  transition: opacity .42s ease, box-shadow .42s ease;
}
.sxm-w[data-open] .sxm-w-item:not([data-open]) .sxm-w-spine::after{
  opacity:.40;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}

.sxm-w-trigger{
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  background: none; border: 0; padding: 0; margin: 0;
  cursor: pointer;
  color: var(--cs-spine-ink);
  -webkit-tap-highlight-color: transparent;
}
.sxm-w-trigger:focus-visible{ outline: 3px solid #fff; outline-offset: -3px; border-radius: 8px; }
.sxm-w-item[data-open] .sxm-w-trigger{ cursor: default; }

/* the mark: wordmarks rotate, emblems stay upright */
.sxm-w-mark{
  position: absolute; left: 0; right: 0;
  display: grid; place-items: center;
  transition: opacity .26s ease;
}
/* The unrotated box is longer than the spine is wide, and grid/flex centring
   falls back to start-alignment for an overflowing item — which put the rotated
   mark outside the spine and clipped it away. Anchor the centre explicitly.
   Individual translate/rotate only: mixing them with `transform` composes in a
   fixed order and silently flips the sign of the translate. */
.sxm-w-mark--top{
  top: calc(34 * var(--u));
  height: calc(var(--L) * var(--u));
  display: block;
}
.sxm-w-mark--top .sxm-w-logo--spine{
  position: absolute; top: 50%; left: 50%;
  translate: -50% -50%;
  rotate: 90deg;
  width: calc(var(--L) * var(--u));
  height: calc(var(--T) * var(--u));
}
.sxm-w-mark--center{
  top: 50%; translate: 0 -50%;
  height: auto;
}
.sxm-w-mark--center .sxm-w-logo--spine{
  width: calc(var(--cs-w) * .74 * var(--u));   /* Figma: lotus 71/91, shield 99/132 */
  height: auto; aspect-ratio: var(--cs-ar);
}

/* the caption reads top-to-bottom. writing-mode, NOT rotate: the layout box must
   be 16px wide, not 200px, or the narrow spines blow the rack apart. */
.sxm-w-cap{
  position: absolute; left: 0; right: 0; bottom: calc(30 * var(--u));
  display: flex; justify-content: center;
  font-family: var(--sxm-copy); font-weight: 400;   /* SXM FONT SUBSTITUTE: Circular Std Book */
  font-size: clamp(10px, calc(12.6 * var(--u)), 13px);
  line-height: 1.286; letter-spacing: -.2px;
  color: var(--cs-spine-ink);
  transition: opacity .26s ease;
}
.sxm-w-cap > *,
.sxm-w-cap{ writing-mode: vertical-rl; }
.sxm-w-item[data-open] .sxm-w-mark,
.sxm-w-item[data-open] .sxm-w-cap{ opacity: 0; pointer-events: none; }

/* ------------------------------------------------------------- open panel */

.sxm-w-panel{
  position: absolute; inset: 0; z-index: 3;
  /* fixed target width so the interior never relayouts mid-animation */
  width: calc((var(--cs-w) + var(--cs-delta)) * var(--u));
  display: grid;
  grid-template-rows: calc(199 * var(--u)) auto 1fr;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.sxm-w-panel[hidden]{ display: none; }
.sxm-w-item[data-open] .sxm-w-panel{ opacity: 1; pointer-events: auto; transition-delay: .22s; }

.sxm-w-phead{
  background: var(--cs-spine);
  display: grid; place-items: center;
  padding-inline: calc(30 * var(--u));
}
.sxm-w-logo--panel{
  width: 100%; height: auto; max-height: calc(90 * var(--u));
  color: var(--cs-spine-ink);
}
.sxm-w-phead img.sxm-w-logo--panel{ object-fit: contain; }

.sxm-w-meta{
  background: var(--cs-accent);
  margin: 0;
  padding: calc(29 * var(--u)) calc(30 * var(--u)) calc(30 * var(--u));
}
.sxm-w-meta dt{
  font-family: var(--sxm-copy); font-weight: 800;   /* SXM FONT SUBSTITUTE: Circular Std Black */
  font-size: clamp(8px, calc(9 * var(--u)), 10px);
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--cs-spine); opacity: .8;
  line-height: 1.956;
}
.sxm-w-meta dd{
  margin: 0 0 calc(30 * var(--u));
  font-family: var(--sxm-copy); font-weight: 700;   /* SXM FONT SUBSTITUTE: Circular Std Bold */
  font-size: clamp(13px, calc(16 * var(--u)), 16px);
  line-height: 1.4; letter-spacing: -.16px;
  color: #fff;
}
.sxm-w-meta dd:last-child{ margin-bottom: 0; }

.sxm-w-pbody{
  background: color-mix(in srgb, var(--cs-accent) 82%, #000);
  padding: calc(30 * var(--u));
  display: flex; flex-direction: column;
}
.sxm-w-pbody p{
  font-family: var(--sxm-copy); font-weight: 300;   /* SXM FONT SUBSTITUTE: Circular Std Light */
  font-size: clamp(13px, calc(15 * var(--u)), 15px);
  line-height: 1.72;
  color: #fff; margin: 0 0 calc(18 * var(--u));
}
.sxm-w-pcta{
  margin-top: auto;
  padding-top: calc(14 * var(--u));
  border-top: 1px solid rgba(255,255,255,.34);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-family: var(--sxm-wide);
  font-size: clamp(11px, calc(14 * var(--u)), 14px);
  letter-spacing: .7px; text-transform: uppercase;
  color: #fff; text-decoration: none;
}
.sxm-w-pcta:focus-visible{ outline: 2px solid #fff; outline-offset: 3px; }
.sxm-w-pcta--soon{ color: rgba(255,255,255,.55); }
.sxm-w-pcta .sxm-w-arrow{ rotate: -45deg; }

/* ================================================== TABLET / MOBILE <=1024 */

@media (max-width: 1024px){
  .sxm-w{ --u: calc(100cqi / 760); }

  .sxm-w-bar{
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 34px;
    /* no sticky filter bar on tablet/phone (Juan, 2026-09-02): body{overflow-x:hidden} makes body
       the scroll container, so a sticky element under it never docks reliably (CLAUDE.md 15) */
  }
  .sxm-w-toggle{ grid-column: 1 / -1; }
  .sxm-w-sel select, .sxm-w-vbtn{ height: 48px; font-size: 12px; }
  .sxm-w-chev{ right: 16px; }

  /* --- grid: one column, plate on top ----------------------------------- */
  .sxm-w[data-view="grid"] .sxm-w-list{ gap: 16px; }
  .sxm-w-card,
  .sxm-w-item[data-side="right"] .sxm-w-card{
    grid-template-columns: 1fr;
    row-gap: 16px;
    padding: 16px;
    border-radius: 8px;
  }
  .sxm-w-item[data-side="right"] .sxm-w-plate{ order: 0; }
  .sxm-w-item[data-side="right"] .sxm-w-copy{ order: 1; padding-left: 0; }
  .sxm-w-plate{ aspect-ratio: 16 / 10; min-height: 0; }
  .sxm-w-copy{ padding: 0; }
  .sxm-w-badge{ margin-bottom: 16px; min-height: 28px; font-size: 10px; border-radius: 14px; }
  /* ⚠ two classes: `.sxm-w-head` alone is (0,1,0) and the kit's h2 rule (0,1,1) kept the phone
     head at the desktop 45px, clipped by the card (T-16 #3). Sized to the longest headline word
     (TRANSFORMATION: fits at 31.8px in a 318px column, 28.8px at 360) and never broken mid-word. */
  .sxm-w .sxm-w-head{ font-size: clamp(20px, 7vw, 45px); line-height: 1.08; margin-bottom: 14px;   /* 27 on a 390 phone, the desktop 45 from 643px up */
                      overflow-wrap: normal; word-break: normal; hyphens: manual; }
  .sxm-w-lede{ font-size: 14px; line-height: 1.6; margin-bottom: 18px; max-width: none;
               color: #A8A8A8; }
  .sxm-w-cta{ width: 100%; min-height: 48px; justify-content: space-between;
              border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px; }
  .sxm-w-cta:hover{ border-bottom-color: transparent; }
  .sxm-w-stat{ margin-top: 18px; }
  .sxm-w-stat b{ font-size: 44px; }
  .sxm-w-stat span{ font-size: 11px; letter-spacing: .14em; }

  /* --- spine: the shelf rotated 90deg. Books lying flat. ----------------- */
  .sxm-w[data-view="spine"] .sxm-w-list{
    display: flex; flex-direction: column; align-items: stretch;
    gap: 6px; min-height: 0; padding-bottom: 0;
  }
  .sxm-w[data-view="spine"] .sxm-w-item,
  .sxm-w[data-view="spine"] .sxm-w-item[data-open]{
    width: 100%; transition: none;
  }
  .sxm-w[data-view="spine"] .sxm-w-spine{
    /* Figma spine WIDTH becomes bar THICKNESS: 60..132 -> 58..92px */
    height: auto; min-height: calc(58px + (var(--cs-w) - 54) * 0.47px);
    display: grid; grid-template-rows: auto 0fr;
    transition: grid-template-rows .5s cubic-bezier(.22,.86,.24,1);
    overflow: clip;
  }
  .sxm-w[data-view="spine"] .sxm-w-item[data-open] .sxm-w-spine{
    grid-template-rows: auto 1fr;
  }
  .sxm-w[data-view="spine"] .sxm-w-trigger{
    position: relative; inset: auto; height: auto;
    min-height: calc(58px + (var(--cs-w) - 54) * 0.47px);
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; padding: 0 16px !important; text-align: left;   /* the base reset-restate sets padding:0 !important; the flat book needs its inset */
  }
  .sxm-w[data-view="spine"] .sxm-w-mark{
    position: static; left: auto; right: auto; top: auto; translate: none;
    height: auto; width: auto; max-width: 50%;
    display: flex; align-items: center; justify-content: flex-start;
    flex: 0 1 auto;
  }
  /* the desktop mark is absolutely positioned and rotated about its own centre;
     every one of those declarations needs an explicit reset here or the logo
     anchors to the middle of the bar and lands on top of the caption */
  .sxm-w[data-view="spine"] .sxm-w-mark .sxm-w-logo--spine{
    position: static; top: auto; left: auto; translate: none; rotate: none;
    width: auto; height: 26px; max-width: 100%;
    aspect-ratio: var(--cs-ar);
  }
  .sxm-w[data-view="spine"] .sxm-w-mark--center .sxm-w-logo--spine{ height: 38px; }
  .sxm-w[data-view="spine"] .sxm-w-cap{
    position: static; inset: auto; display: block; writing-mode: horizontal-tb;
    font-size: 11px; line-height: 1.25; text-align: right;
    max-width: 44%; opacity: .78;
    white-space: normal; overflow-wrap: break-word;
  }
  .sxm-w[data-view="spine"] .sxm-w-cap > *{ writing-mode: horizontal-tb; }
  .sxm-w[data-view="spine"] .sxm-w-item[data-open] .sxm-w-mark,
  .sxm-w[data-view="spine"] .sxm-w-item[data-open] .sxm-w-cap{ opacity: 1; }
  .sxm-w[data-view="spine"] .sxm-w-panel{
    position: static; inset: auto; width: 100%;
    grid-template-rows: none; display: block;
    opacity: 1; pointer-events: auto; transition: none;
    min-height: 0;
  }
  .sxm-w[data-view="spine"] .sxm-w-panel[hidden]{ display: block; }
  .sxm-w[data-view="spine"] .sxm-w-phead{ display: none; }
  .sxm-w[data-view="spine"] .sxm-w-meta{ padding: 22px 16px 18px; }
  .sxm-w[data-view="spine"] .sxm-w-meta dt{ font-size: 9px; }
  .sxm-w[data-view="spine"] .sxm-w-meta dd{ font-size: 15px; margin-bottom: 18px; }
  .sxm-w[data-view="spine"] .sxm-w-pbody{ padding: 20px 16px 18px; }
  .sxm-w[data-view="spine"] .sxm-w-pbody p{ font-size: 14px; margin-bottom: 14px; }
  .sxm-w[data-view="spine"] .sxm-w-pcta{ font-size: 13px; padding-top: 14px; min-height: 44px; }
  .sxm-w[data-view="spine"] .sxm-w-spine::after{ display: none; }
  .sxm-w[data-view="spine"][data-open] .sxm-w-item:not([data-open]){ opacity: .6; }
  .sxm-w[data-view="spine"] .sxm-w-item{ transition: opacity .35s ease; }
}

@media (max-width: 600px){
  .sxm-w{ --u: calc(100cqi / 420); }
  .sxm-w-head{ font-size: 23px; }
  .sxm-w-bar{ grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ motion */

/* books rise onto the shelf, left to right (the stagger is set per item in JS) */
.sxm-w-rv{ opacity: 0; transform: translate3d(0, 48px, 0); }
.sxm-w-rv.is-in{
  opacity: 1; transform: none;
  transition: opacity .6s ease var(--d, 0s), transform .85s cubic-bezier(.16,.84,.44,1) var(--d, 0s);
}
/* pull a book: closed spines lift under a fine pointer */
@media (hover: hover) and (pointer: fine){
  .sxm-w[data-view="spine"] .sxm-w-item:not([data-open]):hover{
    transform: translateY(-10px);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s ease;
  }
}

@media (prefers-reduced-motion: reduce){
  .sxm-w *,
  .sxm-w *::before,
  .sxm-w *::after{
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .sxm-w-rv{ opacity: 1; transform: none; }
}

/* ------------------------------------------------------- reset hardening --
   hello-elementor/assets/css/reset.css styles bare controls with
   [type="button"], [type="submit"], button { border:1px solid #c36; ... }.
   An attribute selector is (0,1,0) — a tie with a single class — and the theme
   sheet loads after ours, so the tie goes to the pink. One extra class wins it
   outright. Keep any new <button> in this component on a two-class selector. */
/* the vbtn block near the top of this file now carries every property the reset
   touches, including padding — nothing to restate here. */
.sxm-w .sxm-w-vbtn:hover,
.sxm-w .sxm-w-vbtn:focus{ background: transparent; color: #fff; border-color: #fff; }
.sxm-w .sxm-w-vbtn.is-on,
.sxm-w .sxm-w-vbtn.is-on:hover{ background: #fff; color: #000; border-color: #fff; }
.sxm-w .sxm-w-trigger,
.sxm-w .sxm-w-trigger:hover,
.sxm-w .sxm-w-trigger:focus{
  background: none; border: 0; padding: 0; border-radius: 8px;
  color: var(--cs-spine-ink);
}
.sxm-w .sxm-w-apply{ background:#fff; color:#000; border:0; border-radius:4px; min-height:44px; }

/* --------------------------------------------------- kit typography guard --
   Elementor Kit 7 sets `.elementor-kit-7 h3 { color:#000 }` etc. at (0,1,1),
   which outranks a single component class. Anything in here that is a bare tag
   (h3, dt, dd, p) needs the extra `.sxm-w` to keep its own colour and face. */
.sxm-w .sxm-w-head{
  font-family: var(--sxm-wide);
  font-weight: 400;
  color: var(--ink);
  text-transform: uppercase;
  line-height: 1.147;
  letter-spacing: -.48px;
}
.sxm-w .sxm-w-lede{ font-family: var(--sxm-copy); font-weight: 300; color: var(--ink); }
.sxm-w .sxm-w-badge{ font-family: var(--sxm-wide); color: #000; }
.sxm-w .sxm-w-stat b,
.sxm-w .sxm-w-stat span{ font-family: var(--sxm-wide); color: var(--ink); }
.sxm-w .sxm-w-cap{ color: var(--cs-spine-ink); }
.sxm-w .sxm-w-meta dt{ color: var(--cs-spine); font-family: var(--sxm-copy); font-weight: 800; }
.sxm-w .sxm-w-meta dd{ color: #fff; font-family: var(--sxm-copy); font-weight: 700; }
.sxm-w .sxm-w-pbody p{ color: #fff; font-family: var(--sxm-copy); font-weight: 300; }
.sxm-w .sxm-w-pcta{ color: #fff; font-family: var(--sxm-wide); }
.sxm-w .sxm-w-pcta--soon{ color: rgba(255,255,255,.55); }
.sxm-w .sxm-w-cta{ color: var(--ink); font-family: var(--sxm-mono); }
.sxm-w .sxm-w-cta--soon{ color: rgba(243,241,231,.42); }
.sxm-w .sxm-w-none{ color: rgba(243,241,231,.7); font-family: var(--sxm-copy); }

/* arrow direction follows the comp: the grid CTA points down-right, the open
   panel's "view full case study" points up-right */
.sxm-w .sxm-w-cta .sxm-w-arrow{ rotate: 45deg; }
.sxm-w .sxm-w-pcta .sxm-w-arrow{ rotate: -45deg; }

/* empty state — server-rendered once, shown by CSS on either path */
.sxm-w .sxm-w-none{ display: none; }
.sxm-w[data-empty] .sxm-w-none{ display: block; }
.sxm-w[data-empty] .sxm-w-list{ display: none !important; }

/* ------------------------------------------------------ client site link --
   Nine of ten case studies have no detail page yet, so the client's own site is
   the only real destination on the card. It sits under the CTA as a quiet,
   secondary line — never the primary action once a case study exists. */
.sxm-w .sxm-w-site,
.sxm-w .sxm-w-psite{
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  font-family: var(--sxm-mono);
  font-size: clamp(10px, calc(12 * var(--u)), 12.5px);
  letter-spacing: .06em;
  text-decoration: none;
  padding: 4px 0;
  transition: opacity .22s ease;
}
.sxm-w .sxm-w-site{ color: var(--ink); opacity: .5; margin-top: calc(14 * var(--u)); }
.sxm-w .sxm-w-psite{ color: #fff; opacity: .62; margin-top: calc(12 * var(--u)); }
.sxm-w .sxm-w-site:hover, .sxm-w .sxm-w-site:focus-visible,
.sxm-w .sxm-w-psite:hover, .sxm-w .sxm-w-psite:focus-visible{ opacity: 1; }
.sxm-w .sxm-w-site:focus-visible,
.sxm-w .sxm-w-psite:focus-visible{ outline: 2px solid currentColor; outline-offset: 3px; }
.sxm-w .sxm-w-site span:first-child,
.sxm-w .sxm-w-psite span:first-child{ text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.sxm-w-ext{
  width: 8px; height: 8px; flex: 0 0 auto;
  border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor;
  rotate: -45deg;
}
@media (max-width: 1024px){
  .sxm-w .sxm-w-site{ margin-top: 14px; font-size: 11px; }
  .sxm-w[data-view="spine"] .sxm-w-psite{ margin-top: 12px; font-size: 11px; min-height: 30px; }
}

/* The rotated spine mark is deliberately WIDER than the spine before rotation,
   so the theme's `img{max-width:100%}` clamps a raster logo to the spine width
   and the mark comes out a fraction of its intended length. Inline SVG was
   unaffected, which is why this only showed on the two PNG clients. */
.sxm-w .sxm-w-mark--top .sxm-w-logo--spine{ max-width: none; max-height: none; }
