/* ============================================================
   UX CASE STUDIES — Study Abroad Assistant, Smart Steps
   ------------------------------------------------------------
   Layered on museum.css (nav, footer, shell, reveals). Values
   follow the Figma case-study frames (KO / Color, KO / Space).

   Prefix: .uc-  shared case-study parts
           .saa- Study Abroad Assistant graphic
           .ss-  Smart Steps graphic

   Contents
     1  Tokens
     2  Page frame + type
     3  Hero, intro, sections
     4  Figures, closing, next project
     5  Study Abroad — How it works
     6  Smart Steps — From pressure to insight
     7  Motion
     8  Responsive
     9  Reduced motion
   ============================================================ */

/* ------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------ */
.uc {
  --uc-fg:     #000000;
  --uc-fg-2:   #3c3e3b;
  --uc-fg-3:   #767676;   /* Figma #8c8c8c, darkened to pass AA at 14px */
  --uc-rule:   #e2e2e0;
  --uc-plate:  #f3f3f1;
  --uc-accent: #fa5000;
  --uc-red:    #c8102e;   /* Iowa State cardinal — Study Abroad only */

  --uc-display: clamp(56px, 6.67vw, 96px);
  --uc-h1:      clamp(40px, 4.45vw, 64px);
  --uc-intro:   clamp(24px, 2.23vw, 32px);
  --uc-body:    clamp(16px, 1.25vw, 18px);
  --uc-small:   14px;
  --uc-text:    16px;

  --uc-sec:     clamp(96px, 8.9vw, 128px);
  --uc-sec-xl:  clamp(120px, 13.3vw, 192px);
  --uc-gap:     var(--col-gap);

  --uc-ease:    var(--ease);
}

/* ------------------------------------------------------------
   2. PAGE FRAME + TYPE
   ------------------------------------------------------------ */
.uc main { padding-top: var(--nav-h); }

.uc-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--uc-gap);
}

.uc-h1 {
  font-size: var(--uc-h1);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: var(--fw-regular);
}
.uc-intro {
  font-size: var(--uc-intro);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: var(--fw-regular);
}
.uc-body {
  font-size: var(--uc-body);
  line-height: 1.52;
}
.uc-small {
  font-size: var(--uc-small);
  line-height: 1.45;
}
.uc-label {
  font-size: var(--uc-small);
  line-height: 1.45;
  color: var(--uc-fg-3);
}
.uc-caption {
  font-size: var(--uc-small);
  line-height: 1.45;
  color: var(--uc-fg-2);
  max-width: 39em;
}

/* Visually hidden, still read aloud */
.uc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.uc-rule {
  height: 1px;
  border: 0;
  background: var(--uc-rule);
}

/* Small square marker — the portfolio's status tick */
.uc-marker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--uc-small);
  line-height: 1.45;
}
.uc-marker::before {
  content: '';
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--uc-accent);
}

/* ------------------------------------------------------------
   3. HERO, INTRO, SECTIONS
   ------------------------------------------------------------ */
.uc-hero {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: calc(100svh - var(--nav-h));
  width: 100%;
  background: var(--uc-plate);
}
.uc-hero img,
.uc-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uc-section { padding-bottom: var(--uc-sec); }

/* Intro: title left, lede + meta right, then problem/solution/role */
.uc-intro-block { padding-block: var(--uc-sec); }

.uc-spread__left {
  grid-column: 1 / span 6;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.uc-spread__right {
  grid-column: 7 / span 6;
  padding-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.uc-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px var(--uc-gap);
}
.uc-meta div { display: flex; flex-direction: column; gap: 4px; }
.uc-meta dt { font-size: var(--uc-small); line-height: 1.45; color: var(--uc-fg-3); }
.uc-meta dd { font-size: var(--uc-small); line-height: 1.45; }

.uc-pillars {
  margin-top: 96px;
  padding-top: 24px;
  border-top: 1px solid var(--uc-rule);
}
.uc-pillar { grid-column: span 4; display: flex; flex-direction: column; gap: 12px; }

/* Section head: heading left, note right, hairline under */
.uc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--uc-rule);
  margin-bottom: 32px;
}
.uc-head .uc-label { text-align: right; max-width: 432px; }

/* ------------------------------------------------------------
   4. FIGURES, CLOSING, NEXT PROJECT
   ------------------------------------------------------------ */
.uc-figure { display: flex; flex-direction: column; gap: 16px; }
.uc-figure__frame {
  position: relative;
  overflow: hidden;
  background: var(--uc-plate);
}
.uc-figure__frame--16x9 { aspect-ratio: 16 / 9; }
.uc-figure__frame--2x1  { aspect-ratio: 2 / 1; }
.uc-figure__frame--3x2  { aspect-ratio: 3 / 2; }
.uc-figure__frame--16x9 img,
.uc-figure__frame--2x1 img,
.uc-figure__frame--3x2 img { width: 100%; height: 100%; object-fit: cover; }
.uc-figure .uc-caption { max-width: calc(5 / 12 * 100%); }

/* Full-bleed photograph with its caption back on the grid */
.uc-bleed { padding-bottom: var(--uc-sec); }
.uc-bleed .uc-figure__frame { aspect-ratio: 16 / 9; max-height: 100svh; }
.uc-bleed figcaption { margin-top: 16px; }
.uc-bleed__caption.ex-shell { max-width: var(--page); }
.uc-section--xl { padding-bottom: var(--uc-sec-xl); }

/* Three numbered screens */
.uc-screens { row-gap: 48px; }
.uc-screen { grid-column: span 4; display: flex; flex-direction: column; gap: 16px; }
.uc-screen__title { display: flex; gap: 12px; font-size: var(--uc-small); line-height: 1.45; }
.uc-screen__title span { color: var(--uc-fg-3); }
.uc-screen .uc-caption { margin-top: 4px; max-width: 384px; }

/* Closing statement */
.uc-closing { padding-block: var(--uc-sec-xl); }
.uc-closing__text {
  grid-column: 1 / span 5;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.uc-closing__text .uc-body { max-width: 432px; }
.uc-closing__figure { grid-column: 7 / span 6; }

/* Next project */
.uc-next {
  border-top: 1px solid var(--uc-rule);
  padding-block: 40px 96px;
}
.uc-next__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 48px;
  font-size: var(--uc-text);
  line-height: 1.5;
}
.uc-next__back { color: var(--uc-fg-3); transition: color var(--dur-1) var(--uc-ease); }
.uc-next__back:hover { color: var(--uc-fg); }

.uc-next__card { align-items: start; }
.uc-next__title {
  grid-column: 1 / span 6;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.uc-next__index { font-size: var(--uc-text); line-height: 1.5; color: var(--uc-fg-3); }
.uc-next__name {
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
}
.uc-next__arrow {
  font-size: 0.75em;
  color: var(--uc-accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--dur-2) var(--uc-ease), transform var(--dur-2) var(--uc-ease);
}
.uc-next__media {
  grid-column: 7 / span 6;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--uc-plate);
}
.uc-next__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-3) var(--uc-ease);
}
.uc-next__media .uc-wordmark { transition: transform var(--dur-3) var(--uc-ease); }
a.uc-next__card:hover .uc-next__media img,
a.uc-next__card:focus-visible .uc-next__media img,
a.uc-next__card:hover .uc-next__media .uc-wordmark,
a.uc-next__card:focus-visible .uc-next__media .uc-wordmark { transform: scale(1.03); }
a.uc-next__card:hover .uc-next__arrow,
a.uc-next__card:focus-visible .uc-next__arrow { opacity: 1; transform: none; }
a.uc-next__card:focus-visible { outline-offset: 8px; }

/* The ARW wordmark plate used where that project has no photograph */
.uc-wordmark {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background: var(--uc-plate);
}
.uc-wordmark b {
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
}
.uc-wordmark span {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--uc-fg-2);
}

.uc .ex-foot { border-top: 1px solid var(--uc-rule); padding-block: 28px 40px; }

/* ------------------------------------------------------------
   5. STUDY ABROAD — HOW IT WORKS
   ------------------------------------------------------------
   Three stages on one row. Row 1 holds the words, row 2 the
   illustrations on a full-bleed plate. Stages are subgrids so
   the band can span all three without breaking the list.
   ------------------------------------------------------------ */
.saa-how { position: relative; }

.saa-how__stages {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
  column-gap: var(--uc-gap);
  row-gap: 48px;
}

.saa-stage {
  grid-row: 1 / span 2;   /* explicit, so the band can share row 2 */
  display: grid;
  grid-template-rows: subgrid;
  grid-template-columns: minmax(0, 1fr);
  position: relative;
  z-index: 1;
}
.saa-stage:nth-child(1) { grid-column: 1; }
.saa-stage:nth-child(2) { grid-column: 2; }
.saa-stage:nth-child(3) { grid-column: 3; }
.saa-stage__text { display: flex; flex-direction: column; }
.saa-stage__num { font-size: var(--uc-small); line-height: 1.45; color: var(--uc-red); }
.saa-stage__word {
  margin-top: 4px;
  font-size: var(--uc-display);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: var(--fw-regular);
}
.saa-stage__desc {
  margin-top: 16px;
  max-width: 360px;
  font-size: var(--uc-body);
  line-height: 1.52;
  color: var(--uc-fg-2);
}

.saa-stage__art {
  position: relative;
  padding-block: 40px 44px;
}

/* The plate behind all three illustrations, full bleed */
.saa-how__band {
  grid-row: 2;
  grid-column: 1 / -1;
  margin-inline: calc((100% - 100vw) / 2);
  background: var(--uc-plate);
  z-index: 0;
}

/* ---- Shared UI pieces (all illustrative) ---- */
.saa-ui { font-family: var(--font); color: var(--uc-fg); }
.saa-ui * { box-sizing: border-box; }

.saa-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  background: var(--uc-red);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
.saa-badge--sm { height: 20px; padding: 0 6px; }

/* ---- 01 Input: application sheet ---- */
.saa-sheet {
  width: min(320px, 100%);
  background: #fff;
  border: 1px solid var(--uc-rule);
  transition: box-shadow var(--dur-2) var(--uc-ease);
}
.saa-sheet__bar {
  height: 40px;
  padding: 10px 20px;
  background: var(--uc-red);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
}
.saa-sheet__body { padding: 19px 19px 19px; }
.saa-sheet__step { font-size: 12px; line-height: 17px; color: var(--uc-fg-3); letter-spacing: 0.02em; }
.saa-sheet__progress {
  position: relative;
  height: 3px;
  margin: 5px 0 15px;
}
.saa-sheet__progress::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 1px;
  height: 1px;
  background: var(--uc-rule);
}
.saa-sheet__progress span {
  position: absolute;
  left: 0; top: 0;
  height: 3px;
  width: 60%;              /* step 9 of 15 */
  background: var(--uc-red);
}
.saa-sheet__title { font-size: 18px; line-height: 25px; font-weight: var(--fw-medium); }
.saa-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 11px 0 18px;
  padding: 6px 10px;
  border: 1px solid var(--uc-red);
  border-radius: 4px;
  font-size: 12px;
  line-height: 20px;
  background: #fff;
  transition: background-color var(--dur-2) var(--uc-ease), box-shadow var(--dur-2) var(--uc-ease);
}
.saa-field { font-size: 12px; line-height: 17px; color: var(--uc-fg-2); }
.saa-input {
  height: 30px;
  margin: 3px 0 12px;
  border: 1px solid var(--uc-fg-3);
  border-radius: 3px;
}
.saa-input--area { height: 52px; margin-bottom: 0; }

.saa-voice {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 12px 20px 12px 16px;
  border-radius: 22px;
  background: var(--uc-fg);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
}
.saa-wave { display: flex; align-items: center; gap: 3px; height: 20px; }
.saa-wave i { display: block; width: 2px; border-radius: 1px; background: var(--uc-red); }
.saa-wave i:nth-child(1), .saa-wave i:nth-child(5) { height: 6px; }
.saa-wave i:nth-child(2), .saa-wave i:nth-child(4) { height: 13px; }
.saa-wave i:nth-child(3) { height: 20px; }

/* ---- 02 Assist: the three AI Assist panels ---- */
.saa-assist {
  list-style: none;
  width: min(400px, 100%);
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.saa-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--uc-rule);
  border-radius: 6px;
  transition: border-color var(--dur-2) var(--uc-ease), transform var(--dur-2) var(--uc-ease);
}
.saa-panel__row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.saa-panel__name { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.4; font-weight: var(--fw-medium); }
.saa-panel__btn {
  padding: 6px 12px;
  border: 1px solid var(--uc-fg-3);
  border-radius: 4px;
  font-size: 13px;
  line-height: 18px;
  color: var(--uc-fg-2);
}

/* ---- 03 Output: the three generated documents ---- */
.saa-docs { position: relative; width: min(400px, 100%); height: 352px; }
.saa-docs__stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 400px;
  height: 352px;
  transform-origin: 0 0;
}
.saa-doc {
  position: absolute;
  background: #fff;
  border: 1px solid var(--uc-rule);
  overflow: hidden;
  transition: transform var(--dur-2) var(--uc-ease), box-shadow var(--dur-2) var(--uc-ease);
}
.saa-doc--form    { left: 0;     top: 0;     width: 208px; height: 272px; }
.saa-doc--summary { left: 88px;  top: 64px;  width: 208px; height: 272px; }
.saa-doc--brochure{ left: 152px; top: 176px; width: 248px; height: 176px; }

.saa-doc__body { padding: 14px; }
.saa-doc__body--head { padding-bottom: 0; }
.saa-doc__kind { font-size: 12px; line-height: 17px; color: var(--uc-red); }
.saa-doc__kind + .saa-doc__title { margin-top: 4px; }
.saa-doc__title { font-size: 18px; line-height: 25px; font-weight: var(--fw-medium); }
.saa-doc__section {
  margin-top: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--uc-rule);
  font-size: 12px;
  line-height: 17px;
}
.saa-doc--form .saa-doc__title { font-size: 12px; line-height: 17px; font-weight: var(--fw-regular); }

/* Placeholder content lines, drawn with CSS so they stay crisp */
.saa-lines { display: flex; flex-direction: column; }
.saa-lines i {
  display: block;
  height: 2px;
  background: var(--uc-rule);
}

/* Approval form table */
.saa-table {
  position: absolute;
  left: 14px; right: 14px; top: 58px;
  border-top: 1px solid var(--uc-fg-3);
}
.saa-table div {
  display: grid;
  grid-template-columns: 38% 1fr;
  height: 22px;
  border-bottom: 1px solid var(--uc-rule);
}
.saa-table div > * { display: flex; align-items: center; padding-left: 4px; font-size: 12px; color: var(--uc-fg-2); }
.saa-table div > *:last-child { border-left: 1px solid var(--uc-rule); padding-left: 6px; }
.saa-table i { position: relative; }
.saa-table i::after { content: ''; height: 2px; width: var(--w, 70%); background: var(--uc-rule); }
.saa-table i.is-dark::after { background: var(--uc-fg-3); }

/* Program summary rows */
.saa-kv { display: flex; flex-direction: column; margin-top: 4px; }
.saa-kv span {
  display: grid;
  grid-template-columns: 36% 1fr;
  column-gap: 10%;
  align-items: center;
  height: 20px;
}
.saa-kv span::before,
.saa-kv span::after { content: ''; height: 2px; background: var(--uc-rule); }
.saa-kv span::after { background: var(--uc-fg-3); width: var(--w, 60%); }

/* Brochure */
.saa-doc--brochure::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--uc-red);
}
.saa-tabs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--uc-rule);
}
.saa-tabs i { width: 32px; height: 4px; background: var(--uc-rule); }
.saa-tabs i:first-child { background: var(--uc-red); }
.saa-cta {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--uc-red);
  color: #fff;
  font-size: 12px;
  line-height: 17px;
}
.saa-dates { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.saa-dates span { display: grid; grid-template-columns: 1fr 1fr 26px; gap: 12px; align-items: center; }
.saa-dates span::before { content: ''; height: 2px; width: 70%; background: var(--uc-rule); }
.saa-dates span i { height: 2px; width: 70%; background: var(--uc-fg-3); }
.saa-dates span b { height: 10px; border-radius: 5px; background: var(--uc-red); }

/* ---- Connector: application panel -> three assist panels ---- */
.saa-how__link {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}
.saa-how__link path {
  fill: none;
  stroke: var(--uc-red);
  stroke-width: 2;
  stroke-linecap: square;
  transition: stroke-width var(--dur-1) var(--uc-ease), opacity var(--dur-2) var(--uc-ease);
}
.saa-how__link .is-dim { opacity: 0.25; }

/* Hover / focus: a panel lights up its branch and the source field */
.saa-panel:hover,
.saa-panel:focus-visible,
.saa-panel.is-active { border-color: var(--uc-red); }
.saa-panel:focus-visible { outline: 2px solid var(--uc-red); outline-offset: 3px; }
.saa-how.is-linking .saa-mini { background: #fdf2f4; box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12); }

.saa-docs__stage:hover .saa-doc--form,
.saa-docs__stage:focus-within .saa-doc--form { transform: translate(-6px, -4px); }
.saa-docs__stage:hover .saa-doc--brochure,
.saa-docs__stage:focus-within .saa-doc--brochure { transform: translate(6px, 4px); }

/* ------------------------------------------------------------
   6. SMART STEPS — FROM PRESSURE TO INSIGHT
   ------------------------------------------------------------
   One reading, the inside toe, is lit across all four panels.
   Choosing another sensor moves that light; the static page
   shows the inside toe.
   ------------------------------------------------------------ */
.ss-panels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--uc-gap);
  row-gap: 64px;
}
.ss-panel { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.ss-panel__head { display: flex; flex-direction: column; gap: 6px; }
.ss-panel__title { font-size: var(--uc-body); line-height: 1.52; }
.ss-panel__head .uc-caption { max-width: none; }

/* Pressure map */
.ss-map { position: relative; width: 100%; max-width: 318px; aspect-ratio: 318 / 240; }
.ss-map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ss-heat ellipse { fill: var(--uc-accent); transition: opacity var(--dur-2) var(--uc-ease); }
.ss-heat g { transition: opacity var(--dur-2) var(--uc-ease); }
.ss-scale rect { fill: var(--uc-accent); }
.ss-scale text { font-size: 14px; fill: var(--uc-fg-3); font-family: var(--font); }

.ss-sensor {
  position: absolute;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.ss-sensor::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--uc-fg);
  transition: transform var(--dur-1) var(--uc-ease), background-color var(--dur-1) var(--uc-ease);
}
.ss-sensor::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1.5px solid var(--uc-fg);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--dur-1) var(--uc-ease), transform var(--dur-1) var(--uc-ease);
}
.ss-sensor:hover::after,
.ss-sensor:focus-visible::after,
.ss-sensor[aria-pressed='true']::after { opacity: 1; transform: none; }
.ss-sensor[aria-pressed='true']::before { background: #fff; }
.ss-sensor:focus-visible { outline: none; }
.ss-sensor:focus-visible::after { border-color: var(--uc-accent); }

/* Readings */
.ss-readings { width: 100%; }
.ss-readings__head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--uc-fg);
}
.ss-reading {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid var(--uc-rule);
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.ss-reading:last-child { border-bottom: 0; }
.ss-reading__label { font-size: var(--uc-small); color: var(--uc-fg-2); transition: color var(--dur-1) var(--uc-ease); }
.ss-reading__value {
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  transition: color var(--dur-1) var(--uc-ease);
}
.ss-reading:hover .ss-reading__label { color: var(--uc-fg); }
.ss-reading.is-active .ss-reading__label,
.ss-reading.is-active .ss-reading__value { color: var(--uc-accent); }
.ss-reading:focus-visible { outline-offset: -2px; }

/* Chart */
.ss-chart { width: 100%; max-width: 318px; }
.ss-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.ss-chart text { font-size: 14px; fill: var(--uc-fg-3); font-family: var(--font); }
.ss-chart .ss-grid { stroke: var(--uc-rule); stroke-width: 1; }
.ss-series {
  fill: none;
  stroke: #bfbfbd;
  stroke-width: 1;
  stroke-linejoin: round;
  transition: stroke var(--dur-2) var(--uc-ease), stroke-width var(--dur-2) var(--uc-ease);
}
.ss-series.is-active { stroke: var(--uc-accent); stroke-width: 2.5; }

/* Insights + sessions */
.ss-insights { display: flex; flex-direction: column; gap: 10px; font-size: var(--uc-small); line-height: 1.45; }
.ss-insights ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ss-insights li { display: flex; align-items: center; gap: 10px; transition: color var(--dur-2) var(--uc-ease); }
.ss-insight::before { content: ''; width: 6px; height: 6px; flex: none; background: var(--uc-fg); transition: background-color var(--dur-2) var(--uc-ease); }
.ss-insight.is-active::before { background: var(--uc-accent); }
.ss-insights[data-dim] .ss-insight:not(.is-active) { color: var(--uc-fg-3); }
.ss-insights hr { border: 0; height: 1px; background: var(--uc-rule); margin: 14px 0 4px; }
.ss-session::before { content: ''; width: 8px; height: 8px; flex: none; border-radius: 50%; border: 1px solid var(--uc-fg); box-sizing: border-box; margin-right: 2px; }
.ss-session.is-current::before { background: var(--uc-fg); }
.ss-session:not(.is-current) { color: var(--uc-fg-2); }

/* Dashboard spread */
.ss-dash { align-items: end; }
.ss-dash__media { grid-column: 1 / span 8; aspect-ratio: 888 / 549; }
.ss-dash__text { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 16px; }
.ss-dash__text .uc-body { color: var(--uc-fg-2); }
.ss-principle { padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }

.uc-pair .uc-figure { grid-column: span 6; gap: 14px; }
.uc-pair .uc-figure__frame { aspect-ratio: 660 / 371; }
.uc-pair .uc-figure__frame img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------
   6a. SMART STEPS — system workflow
   ------------------------------------------------------------
   A from-scratch rebuild of the original raster graphic. Laid
   out on a 1295 × 628 canvas in the software's own colours and
   zoomed to the column; phones stack the three stages.
   ------------------------------------------------------------ */
.ssw {
  --ssw-ih: #2f7bf0;
  --ssw-oh: #8e4fe0;
  --ssw-it: #18a058;
  --ssw-ot: #f39c12;
  --ssw-blue: #1d6fe8;
  --ssw-ink: #1f2328;
  --ssw-mute: #8a8f98;
  position: relative;
  width: 100%;
}
.ssw__canvas {
  position: relative;
  width: 1295px;
  height: 628px;
  border-radius: 22px;
  background: #f3f3f4;
  color: var(--ssw-ink);
  font-family: var(--font);
  overflow: hidden;
}
.ssw-defs { position: absolute; }

.ssw__label,
.ssw__count {
  position: absolute;
  top: 34px;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #3a3d42;
}
.ssw__label { left: 42px; }
.ssw__count { right: 43px; letter-spacing: 0.16em; }

.ssw-stage { position: absolute; top: 76px; }
.ssw-stage--1 { left: 41.5px; width: 327px; }
.ssw-stage--2 { left: 408px;  width: 412px; }
.ssw-stage--3 { left: 861.5px; width: 395px; }
.ssw-stage__caption {
  margin-top: 14px;
  text-align: center;
  font-size: 16px;
  line-height: 22px;
  color: #3a3d42;
}

.ssw-card {
  position: relative;
  height: 485px;
  border-radius: 18px;
  background: #f7f7f7;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 10px 30px rgba(0, 0, 0, 0.04);
}
.ssw-card__num {
  position: absolute;
  left: 24px;
  top: 17px;
  font-size: 15px;
  line-height: 18px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
  color: var(--ssw-blue);
}
.ssw-card__title {
  position: absolute;
  left: 24px;
  top: 44px;
  font-size: 16px;
  line-height: 20px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ssw-insole {
  position: absolute;
  left: 1px;
  top: 72px;
  width: 318.5px;
  height: auto;
  transition: transform var(--dur-3) var(--uc-ease);
}
.ssw-stage--1:hover .ssw-insole { transform: scale(1.02); }

/* Connectors */
.ssw-link { position: absolute; top: 313px; height: 8px; }
.ssw-link--1 { left: 365px; width: 42px; }
.ssw-link--2 { left: 816px; width: 46px; }
.ssw-link i {
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ssw-blue);
  box-shadow: 0 0 0 3px #fff;
}
.ssw-link b {
  position: absolute;
  left: 14px;
  right: 0;
  top: 3px;
  height: 2px;
  background: var(--ssw-blue);
  transform-origin: left center;
}
.ssw-link b::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--ssw-blue);
  border-right: 2px solid var(--ssw-blue);
  transform: rotate(45deg);
}

/* Tiles inside the analysis card */
.ssw-tile {
  position: absolute;
  border: 0;
  border-radius: 10px;
  background: #fbfbfb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  font: inherit;
  color: inherit;
  text-align: left;
  padding: 0;
}
.ssw-tile__label,
.ssw-chart__label {
  position: absolute;
  font-size: 8.5px;
  line-height: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3a3d42;
}
.ssw-map { left: 17px; top: 89px; width: 151px; height: 225px; }
.ssw-map .ssw-tile__label { left: 11px; top: 9px; }
.ssw-foot { position: absolute; display: block; }
.ssw-map .ssw-foot { left: 20px; top: 33px; width: 77px; height: 192px; filter: drop-shadow(0 6px 10px rgba(47, 123, 240, 0.18)); }
.ssw-scale {
  position: absolute;
  left: 114px;
  top: 77px;
  width: 4px;
  height: 123px;
  border-radius: 2px;
  background: linear-gradient(#e3121b, #f7a21b 25%, #d9e021 45%, #3ed3c3 65%, #2f6ff0 85%, #3b2fd6);
}
.ssw-scale__hi,
.ssw-scale__lo { position: absolute; left: 126px; font-size: 7.5px; line-height: 10px; color: #3a3d42; }
.ssw-scale__hi { top: 73px; }
.ssw-scale__lo { top: 194px; }

.ssw-sensor { width: 104px; height: 81px; cursor: pointer; transition: box-shadow var(--dur-1) var(--uc-ease), transform var(--dur-1) var(--uc-ease); }
.ssw-sensor--a { left: 179px; top: 92px;  --c: var(--ssw-ih); }
.ssw-sensor--b { left: 290px; top: 92px;  --c: var(--ssw-it); }
.ssw-sensor--c { left: 179px; top: 179px; --c: var(--ssw-oh); }
.ssw-sensor--d { left: 290px; top: 179px; --c: var(--ssw-ot); }
.ssw-sensor__name {
  position: absolute;
  left: 13px;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8.5px;
  line-height: 12px;
  font-weight: var(--fw-bold);
}
.ssw-sensor__name::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.ssw-sensor__value {
  position: absolute;
  left: 12px;
  top: 27px;
  font-size: 21px;
  line-height: 24px;
  font-weight: var(--fw-medium);
  color: var(--c);
  font-variant-numeric: tabular-nums;
}
.ssw-spark { position: absolute; left: 13px; right: 10px; bottom: 10px; width: 80px; height: 20px; overflow: visible; }
.ssw-spark path { fill: none; stroke: var(--c); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.85; }
.ssw-sensor:hover,
.ssw-sensor:focus-visible,
.ssw-sensor.is-active { box-shadow: 0 0 0 1.5px var(--c), 0 6px 16px rgba(0, 0, 0, 0.06); }
.ssw-sensor:focus-visible { outline: none; }

.ssw-chart__label { left: 188px; top: 283px; }
.ssw-chart { position: absolute; left: 34px; top: 336px; width: 346px; height: 116px; overflow: visible; }
.ssw-chart__axis text { font-size: 7px; fill: #3a3d42; font-family: var(--font); }
.ssw-chart__axis line { stroke: #3a3d42; stroke-width: 1; }
.ssw-chart__base { stroke: #8b5fd6; stroke-width: 1; }
.ssw-chart__lines path {
  fill: none;
  stroke-width: 1;
  stroke-linejoin: round;
  transition: opacity var(--dur-2) var(--uc-ease), stroke-width var(--dur-2) var(--uc-ease);
}
[data-ssw-series='ih'] { stroke: var(--ssw-ih); }
[data-ssw-series='oh'] { stroke: var(--ssw-oh); }
[data-ssw-series='it'] { stroke: var(--ssw-it); }
[data-ssw-series='ot'] { stroke: var(--ssw-ot); }
.ssw[data-active] .ssw-chart__lines path { opacity: 0.14; }
.ssw[data-active] .ssw-chart__lines path.is-active { opacity: 1; stroke-width: 1.6; }

.ssw-legend {
  position: absolute;
  left: 0;
  right: 0;
  top: 449px;
  display: flex;
  justify-content: center;
  gap: 18px;
}
.ssw-legend button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 2px 0;
  font: inherit;
  font-size: 9px;
  line-height: 12px;
  color: #3a3d42;
  cursor: pointer;
  transition: color var(--dur-1) var(--uc-ease);
}
.ssw-legend button::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.ssw-legend [data-ssw-sensor='ih'] { --c: var(--ssw-ih); }
.ssw-legend [data-ssw-sensor='oh'] { --c: var(--ssw-oh); }
.ssw-legend [data-ssw-sensor='it'] { --c: var(--ssw-it); }
.ssw-legend [data-ssw-sensor='ot'] { --c: var(--ssw-ot); }
.ssw[data-active] .ssw-legend button { color: var(--ssw-mute); }
.ssw[data-active] .ssw-legend button.is-active { color: var(--ssw-ink); }

/* The dashboard in card 03 */
.ssw-app {
  position: absolute;
  left: 13px;
  top: 81px;
  width: 370px;
  height: 383px;
  border-radius: 10px;
  background: #eef2f7;
}
.ssw-app__head { position: absolute; inset: 0 0 auto 0; height: 50px; }
.ssw-app__logo {
  position: absolute;
  left: 15px;
  top: 13px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--ssw-blue);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding-bottom: 6px;
}
.ssw-app__logo i { width: 3px; background: #fff; border-radius: 1px; }
.ssw-app__logo i:nth-child(1) { height: 5px; }
.ssw-app__logo i:nth-child(2) { height: 8px; }
.ssw-app__logo i:nth-child(3) { height: 11px; }
.ssw-app__brand { position: absolute; left: 47px; top: 12px; display: flex; flex-direction: column; }
.ssw-app__brand b { font-size: 11px; line-height: 13px; font-weight: var(--fw-bold); }
.ssw-app__brand span { font-size: 7px; line-height: 10px; color: var(--ssw-mute); }
.ssw-app__search {
  position: absolute;
  left: 120px;
  top: 15px;
  width: 242px;
  height: 23px;
  padding-left: 22px;
  border-radius: 6px;
  background: #fff;
  font-size: 7px;
  line-height: 23px;
  color: var(--ssw-mute);
}
.ssw-app__search::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 8px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--ssw-mute);
  border-radius: 50%;
}

.ssw-app__nav { position: absolute; left: 10px; top: 56px; width: 83px; list-style: none; }
.ssw-app__nav li {
  position: relative;
  height: 25px;
  margin-bottom: 2px;
  padding-left: 24px;
  border-radius: 5px;
  font-size: 8px;
  line-height: 25px;
  color: #3a3d42;
}
.ssw-app__nav li.is-current { background: #e1ebfb; color: var(--ssw-blue); font-weight: var(--fw-medium); }
.ssw-ico { position: absolute; left: 8px; top: 8px; width: 9px; height: 9px; border: 1px solid currentColor; border-radius: 2px; opacity: 0.8; }
.ssw-ico--bars { border: 0; background: linear-gradient(currentColor, currentColor) 0 100% / 2px 50% no-repeat, linear-gradient(currentColor, currentColor) 3.5px 100% / 2px 100% no-repeat, linear-gradient(currentColor, currentColor) 7px 100% / 2px 70% no-repeat; }
.ssw-ico--people { border-radius: 50% 50% 2px 2px; }
.ssw-ico--gear { border-radius: 50%; border-style: dotted; border-width: 1.5px; }

.ssw-app__session {
  position: absolute;
  left: 101px;
  top: 55px;
  width: 262px;
  height: 229px;
  border-radius: 8px;
  background: #fff;
}
.ssw-app__title { position: absolute; left: 11px; top: 13px; font-size: 9.5px; line-height: 12px; font-weight: var(--fw-bold); }
.ssw-app__live {
  position: absolute;
  left: 203px;
  top: 8px;
  width: 50px;
  height: 16px;
  border-radius: 4px;
  background: #def7e5;
  color: #1f9d55;
  font-size: 6.5px;
  line-height: 16px;
  text-align: center;
}
.ssw-foot--sm { left: 10px; top: 47px; width: 50px; height: 125px; }
.ssw-scale--sm { left: 75px; top: 71px; width: 3px; height: 87px; }

.ssw-app__insights {
  position: absolute;
  left: 97px;
  top: 62px;
  width: 158px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ssw-app__insights li {
  position: relative;
  height: 16px;
  padding-left: 12px;
  border-radius: 3px;
  background: #eef4fd;
  font-size: 6.2px;
  line-height: 16px;
  color: #3a3d42;
  white-space: nowrap;
}
.ssw-app__insights li::before { content: ''; position: absolute; left: 5px; top: 7px; width: 2.5px; height: 2.5px; border-radius: 50%; background: var(--ssw-blue); }

.ssw-replay { position: absolute; left: 97px; top: 138px; width: 160px; height: 86px; }
.ssw-replay > * { position: absolute; }
.ssw-replay__label { left: 0; top: 2px; font-size: 7px; line-height: 9px; color: #3a3d42; }
.ssw-replay__time { left: 0; top: 13px; font-size: 13px; line-height: 16px; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.ssw-replay__pos { left: 0; top: 33px; font-size: 6px; line-height: 8px; color: #3a3d42; }
.ssw-replay__track { left: 38px; top: 36px; width: 110px; height: 2px; border-radius: 1px; background: #dbe5f6; }
.ssw-replay__track span { position: absolute; inset: 0 auto 0 0; width: 96%; border-radius: 1px; background: var(--ssw-blue); }
.ssw-replay__track span::after { content: ''; position: absolute; right: -3px; top: -2.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--ssw-blue); }
.ssw-replay__back { left: 2px; top: 59px; font-size: 8px; color: var(--ssw-mute); }
.ssw-replay__play { left: 18px; top: 54px; width: 24px; height: 22px; border-radius: 4px; background: var(--ssw-blue); }
.ssw-replay__play::after { content: ''; position: absolute; left: 9.5px; top: 6.5px; border-left: 6px solid #fff; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.ssw-replay__speeds { left: 66px; top: 58px; display: flex; gap: 7px; align-items: center; font-size: 6px; line-height: 12px; color: #3a3d42; }
.ssw-replay__speeds .is-on { padding: 0 5px; border: 1px solid #bcd3f8; border-radius: 3px; background: #e1ebfb; }

.ssw-app__tiles { position: absolute; left: 3px; right: 7px; top: 296px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.ssw-stat {
  position: relative;
  height: 83px;
  border-radius: 8px;
  background: #fff;
  transition: box-shadow var(--dur-1) var(--uc-ease);
}
.ssw-stat[data-ssw-stat='ih'] { --c: var(--ssw-ih); }
.ssw-stat[data-ssw-stat='oh'] { --c: var(--ssw-oh); }
.ssw-stat[data-ssw-stat='it'] { --c: var(--ssw-it); }
.ssw-stat .ssw-sensor__name { left: 10px; font-size: 8px; }
.ssw-stat b { position: absolute; left: 10px; top: 27px; font-size: 21px; line-height: 24px; font-weight: var(--fw-medium); color: var(--c); }
.ssw-stat i { position: absolute; left: 10px; right: 10px; top: 56px; height: 2px; background: #e6e9ee; }
.ssw-stat i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--fill); background: var(--c); opacity: 0.85; }
.ssw-stat small { position: absolute; left: 10px; top: 64px; font-size: 6.5px; line-height: 9px; color: var(--ssw-mute); }
.ssw-stat.is-active { box-shadow: 0 0 0 1.5px var(--c); }

/* Entrance: the three stages and their links arrive in order */
.uc-js .ssw-stage,
.uc-js .ssw__label,
.uc-js .ssw__count { opacity: 0; transform: translateY(12px); transition: opacity 700ms var(--uc-ease), transform 700ms var(--uc-ease); }
.uc-js .ssw-link i { opacity: 0; transition: opacity 300ms var(--uc-ease); }
.uc-js .ssw-link b { transform: scaleX(0); transition: transform 500ms var(--uc-ease); }
.uc-js .ssw.is-visible .ssw-stage,
.uc-js .ssw.is-visible .ssw__label,
.uc-js .ssw.is-visible .ssw__count { opacity: 1; transform: none; }
.uc-js .ssw.is-visible .ssw-stage--2 { transition-delay: 520ms; }
.uc-js .ssw.is-visible .ssw-stage--3 { transition-delay: 1040ms; }
.uc-js .ssw.is-visible .ssw-link i { opacity: 1; }
.uc-js .ssw.is-visible .ssw-link b { transform: none; }
.uc-js .ssw.is-visible .ssw-link--1 i { transition-delay: 300ms; }
.uc-js .ssw.is-visible .ssw-link--1 b { transition-delay: 380ms; }
.uc-js .ssw.is-visible .ssw-link--2 i { transition-delay: 820ms; }
.uc-js .ssw.is-visible .ssw-link--2 b { transition-delay: 900ms; }
.uc-js .ssw .ssw-chart__lines path,
.uc-js .ssw .ssw-spark path { stroke-dasharray: var(--len, 900); stroke-dashoffset: var(--len, 900); }
.uc-js .ssw.is-visible .ssw-chart__lines path,
.uc-js .ssw.is-visible .ssw-spark path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1500ms cubic-bezier(0.4, 0, 0.2, 1) 760ms, opacity var(--dur-2) var(--uc-ease), stroke-width var(--dur-2) var(--uc-ease);
}

/* Phones: the stages stack, each drawn at its own size and zoomed */
.ssw.is-stacked .ssw__canvas {
  width: auto;
  height: auto;
  padding: 24px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.ssw.is-stacked .ssw__label,
.ssw.is-stacked .ssw__count { position: static; align-self: flex-start; }
.ssw.is-stacked .ssw__count { display: none; }
.ssw.is-stacked .ssw__label { margin-bottom: 20px; font-size: 11px; }
.ssw.is-stacked .ssw-stage { position: static; }
.ssw.is-stacked .ssw-link { position: relative; left: auto; top: auto; width: 8px; height: 36px; margin: 6px 0; }
.ssw.is-stacked .ssw-link b { left: 3px; right: auto; top: 14px; bottom: 0; width: 2px; height: auto; transform-origin: top center; }
.ssw.is-stacked .ssw-link b::after { right: -3px; top: auto; bottom: 0; transform: rotate(135deg); }
.uc-js .ssw.is-stacked .ssw-link b { transform: scaleY(0); }
.uc-js .ssw.is-stacked.is-visible .ssw-link b { transform: none; }

/* ------------------------------------------------------------
   6b. UX INDEX — Selected UX/UI work
   ------------------------------------------------------------ */
.ux-index__head { padding-block: 96px 56px; }
.ux-index__title { grid-column: 5 / span 8; letter-spacing: -0.03em; }
.ux-index__gallery { padding-bottom: 160px; }

.ux-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--uc-plate);
}
.ux-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-3) var(--uc-ease);
}
.ux-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--uc-fg);
  opacity: 0;
  transition: opacity var(--dur-2) var(--uc-ease);
  pointer-events: none;
}

.ux-arrow {
  display: inline-block;
  margin-left: 14px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--dur-2) var(--uc-ease), transform var(--dur-2) var(--uc-ease);
}

a.ux-feature:hover .ux-media img,
a.ux-card:hover .ux-media img,
a.ux-feature:focus-visible .ux-media img,
a.ux-card:focus-visible .ux-media img { transform: scale(1.03); }
a.ux-feature:hover .ux-media::after,
a.ux-card:hover .ux-media::after { opacity: 0.04; }
a.ux-feature:hover .ux-arrow,
a.ux-card:hover .ux-arrow,
a.ux-feature:focus-visible .ux-arrow,
a.ux-card:focus-visible .ux-arrow { opacity: 1; transform: none; }
a.ux-feature:focus-visible,
a.ux-card:focus-visible { outline-offset: 8px; }

/* Feature row: text in columns 1–4, picture in 5–12 */
.ux-feature { align-items: stretch; }
.ux-feature__text {
  grid-column: 1 / span 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.ux-feature__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--uc-rule);
  font-size: var(--uc-small);
  line-height: 1.45;
  color: var(--uc-fg-3);
}
.ux-feature__bottom { display: flex; flex-direction: column; gap: 16px; }
.ux-feature__title {
  font-size: clamp(30px, 2.8vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: var(--fw-regular);
}
.ux-feature__summary { color: var(--uc-fg-2); max-width: 372px; }
.ux-feature__media { grid-column: 5 / span 8; }

/* Pair of cards */
.ux-pair { margin-top: 96px; row-gap: 48px; }
.ux-card { grid-column: span 6; display: flex; flex-direction: column; }
.ux-card__caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--uc-rule);
}
.ux-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.ux-card__title {
  font-size: 18px;
  line-height: 1.4;
  font-weight: var(--fw-medium);
  letter-spacing: -0.006em;
}
.ux-card .uc-caption { max-width: none; }

/* Locked project: the wordmark gives way to a short note on hover */
.ux-media--locked::after { display: none; }
.ux-media--locked .uc-wordmark { transition: opacity var(--dur-2) var(--uc-ease), transform var(--dur-2) var(--uc-ease); }
.ux-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-2) var(--uc-ease), transform var(--dur-2) var(--uc-ease);
}
.ux-lock__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 18px;
}
.ux-lock__title::before { content: ''; width: 6px; height: 6px; background: var(--uc-accent); }
.ux-lock__line { font-size: var(--uc-small); line-height: 1.45; color: var(--uc-fg-2); }
a.ux-card:hover .ux-media--locked .uc-wordmark,
a.ux-card:focus-visible .ux-media--locked .uc-wordmark { opacity: 0; transform: translateY(-6px); }
a.ux-card:hover .ux-lock,
a.ux-card:focus-visible .ux-lock { opacity: 1; transform: none; }

.uc-wordmark--sm b { font-size: clamp(40px, 3.9vw, 56px); letter-spacing: -0.03em; }
.uc-wordmark--sm span { font-size: 8px; font-weight: var(--fw-medium); letter-spacing: 0.22em; }

@media (max-width: 767px) {
  .ux-index__head { padding-block: 40px 32px; }
  .ux-index__title { grid-column: 1 / -1; }
  .ux-index__gallery { padding-bottom: 96px; }
  .ux-feature__text,
  .ux-feature__media,
  .ux-card { grid-column: 1 / -1; }
  .ux-feature__media { order: -1; margin-bottom: 0; }
  .ux-feature__text { gap: 16px; }
  .ux-feature__meta { margin-top: 0; padding-top: 18px; }
  .ux-feature__title { font-size: 18px; line-height: 1.4; font-weight: var(--fw-medium); letter-spacing: -0.006em; }
  .ux-feature__summary { font-size: var(--uc-small); line-height: 1.45; max-width: none; }
  .ux-feature__bottom { gap: 4px; }
  .ux-pair { margin-top: 48px; }
  .ux-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ux-media img, .ux-arrow { transition: none; }
  a.ux-feature:hover .ux-media img,
  a.ux-card:hover .ux-media img { transform: none; }
}

/* ------------------------------------------------------------
   6c. ADAPTIVE RECOVERY WEAR — password gate
   ------------------------------------------------------------ */
.arw-hero { display: grid; place-items: center; }
.uc-wordmark--lg { background: none; gap: clamp(14px, 1.8vw, 26px); }
.uc-wordmark--lg b { font-size: clamp(72px, 10vw, 144px); letter-spacing: -0.03em; }
.uc-wordmark--lg span { font-size: clamp(11px, 1.42vw, 20px); font-weight: var(--fw-medium); letter-spacing: 0.22em; }

.arw-gate { padding-block: 96px 192px; }
.arw-gate__left {
  grid-column: 1 / span 6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}
.arw-gate__meta {
  display: grid;
  grid-template-columns: 90px 1fr;
  column-gap: 24px;
  font-size: var(--uc-text);
  line-height: 1.5;
}
.arw-gate__meta dt { color: var(--uc-fg-3); }
.arw-gate__meta dd { color: var(--uc-fg-2); }

.arw-gate__right {
  grid-column: 7 / span 6;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.arw-access { max-width: 436px; display: flex; flex-direction: column; }
.arw-access__message { font-size: var(--uc-text); line-height: 1.5; color: var(--uc-fg-2); }

.arw-form { display: flex; gap: 12px; margin-top: 24px; }
.arw-form__field {
  flex: 1 1 300px;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--uc-fg-3);
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-size: var(--uc-small);
  color: var(--uc-fg);
  transition: border-color var(--dur-1) var(--uc-ease), box-shadow var(--dur-1) var(--uc-ease);
}
.arw-form__field::placeholder { color: var(--uc-fg-3); }
.arw-form__field:hover { border-color: var(--uc-fg-2); }
.arw-form__field:focus { outline: none; border-color: var(--uc-fg); box-shadow: inset 0 0 0 1px var(--uc-fg); }
.arw-form__field[aria-invalid='true'] { border-color: var(--uc-accent); box-shadow: inset 0 0 0 1px var(--uc-accent); }

.arw-form__button {
  flex: none;
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  background: var(--uc-fg);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: background-color var(--dur-1) var(--uc-ease);
}
.arw-form__button:hover { background: var(--uc-accent); }
.arw-form__button:active { background: #d94400; }
.arw-form__button:focus-visible { outline: 2px solid var(--uc-accent); outline-offset: 3px; }
.arw-form__button[aria-busy='true'] { background: var(--uc-fg-2); cursor: progress; }

.arw-form__error {
  min-height: 0;
  margin-top: 0;
  font-size: var(--uc-small);
  line-height: 1.45;
  color: var(--uc-accent);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--dur-2) var(--uc-ease), transform var(--dur-2) var(--uc-ease), margin-top var(--dur-2) var(--uc-ease);
}
.arw-form__error.is-shown { margin-top: 12px; opacity: 1; transform: none; }

.arw-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin-top: 24px;
  font-size: 14px;
  font-weight: var(--fw-medium);
  transition: color var(--dur-1) var(--uc-ease);
}
.arw-back__cue { color: var(--uc-accent); transition: transform var(--dur-1) var(--uc-ease); }
.arw-back:hover { color: var(--uc-accent); }
.arw-back:hover .arw-back__cue { transform: translateX(-5px); }

@media (max-width: 1023px) {
  .arw-gate__left,
  .arw-gate__right { grid-column: 1 / -1; }
  .arw-gate__right { margin-top: 40px; }
}
@media (max-width: 767px) {
  .arw-gate { padding-block: 48px 96px; }
  .arw-gate__left { gap: 24px; }
  .arw-form { flex-direction: column; }
  .arw-form__field { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .arw-form__error, .arw-back__cue { transition: none; }
}

/* ------------------------------------------------------------
   7. MOTION
   ------------------------------------------------------------
   Content is visible by default. The .uc-js class (set by
   ux-case.js) arms the reveals, so nothing waits on script.
   ------------------------------------------------------------ */
.uc-js .uc-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-3) var(--uc-ease), transform var(--dur-3) var(--uc-ease);
}
.uc-js .uc-reveal.is-visible { opacity: 1; transform: none; }

/* How it works: the three stages arrive in order, then the link
   draws, then the documents settle into a stack */
.uc-js .saa-how .saa-stage__text,
.uc-js .saa-how .saa-stage__art > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--uc-ease), transform 700ms var(--uc-ease);
}
.uc-js .saa-how.is-visible .saa-stage__text,
.uc-js .saa-how.is-visible .saa-stage__art > * { opacity: 1; transform: none; }
.uc-js .saa-how.is-visible .saa-stage:nth-child(2) .saa-stage__text { transition-delay: 120ms; }
.uc-js .saa-how.is-visible .saa-stage:nth-child(3) .saa-stage__text { transition-delay: 240ms; }
.uc-js .saa-how.is-visible .saa-stage:nth-child(1) .saa-stage__art > * { transition-delay: 240ms; }
.uc-js .saa-how.is-visible .saa-stage:nth-child(2) .saa-stage__art > * { transition-delay: 600ms; }
.uc-js .saa-how.is-visible .saa-stage:nth-child(3) .saa-stage__art > * { transition-delay: 960ms; }

.uc-js .saa-how .saa-assist .saa-panel { opacity: 0; transform: translateX(-10px); transition: opacity 600ms var(--uc-ease), transform 600ms var(--uc-ease), border-color var(--dur-2) var(--uc-ease); }
.uc-js .saa-how.is-visible .saa-assist .saa-panel { opacity: 1; transform: none; }
.uc-js .saa-how.is-visible .saa-assist .saa-panel:nth-child(1) { transition-delay: 760ms, 760ms, 0ms; }
.uc-js .saa-how.is-visible .saa-assist .saa-panel:nth-child(2) { transition-delay: 860ms, 860ms, 0ms; }
.uc-js .saa-how.is-visible .saa-assist .saa-panel:nth-child(3) { transition-delay: 960ms, 960ms, 0ms; }

.uc-js .saa-how .saa-doc { opacity: 0; transform: translateY(18px); }
.uc-js .saa-how.is-visible .saa-doc { opacity: 1; transform: none; transition: opacity 700ms var(--uc-ease), transform 700ms var(--uc-ease), box-shadow var(--dur-2) var(--uc-ease); }
.uc-js .saa-how.is-visible .saa-doc--form { transition-delay: 1100ms, 1100ms, 0ms; }
.uc-js .saa-how.is-visible .saa-doc--summary { transition-delay: 1240ms, 1240ms, 0ms; }
.uc-js .saa-how.is-visible .saa-doc--brochure { transition-delay: 1380ms, 1380ms, 0ms; }
.uc-js .saa-how.is-settled .saa-doc { transition: transform var(--dur-2) var(--uc-ease); transition-delay: 0ms; }

.uc-js .saa-how .saa-how__link path { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); }
.uc-js .saa-how.is-visible .saa-how__link path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 900ms var(--uc-ease) 560ms, stroke-width var(--dur-1) var(--uc-ease), opacity var(--dur-2) var(--uc-ease);
}

/* Smart Steps: the timeline draws once */
.uc-js .ss-chart .ss-series { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); }
.uc-js .ss-chart.is-visible .ss-series {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1600ms var(--uc-ease-io, cubic-bezier(0.4, 0, 0.2, 1)), stroke var(--dur-2) var(--uc-ease), stroke-width var(--dur-2) var(--uc-ease);
}
.uc-js .ss-chart.is-visible .ss-series.is-active { transition-delay: 200ms, 0ms, 0ms; }

/* ------------------------------------------------------------
   8. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .ss-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .uc-spread__left,
  .uc-spread__right { grid-column: 1 / -1; }
  .uc-spread__right { padding-top: 40px; }
  .uc-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* How it works: one stage per row, each on its own plate */
  .saa-how__stages { grid-template-columns: minmax(0, 1fr); row-gap: 64px; }
  .saa-stage,
  .saa-stage:nth-child(n) { grid-row: auto; grid-column: 1; grid-template-rows: auto auto; row-gap: 32px; }
  .saa-how__band { display: none; }
  .saa-stage__art::before {
    content: '';
    position: absolute;
    inset: 0 calc((100% - 100vw) / 2);
    background: var(--uc-plate);
    z-index: -1;
  }
  .saa-stage__art { padding-block: 32px; }
  .saa-how__link { display: none; }

  .ss-dash__media,
  .ss-dash__text { grid-column: 1 / -1; }
  .ss-dash__text { margin-top: 32px; }
  .uc-closing__text { grid-column: 1 / span 6; }
  .uc-closing__figure { grid-column: 7 / span 6; }
}

@media (max-width: 767px) {
  .uc-hero { aspect-ratio: 3 / 2; }
  .uc-pillars { margin-top: 48px; padding-top: 24px; }
  .uc-pillar { grid-column: 1 / -1; }
  .uc-pillars { row-gap: 32px; }
  .uc-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .uc-head .uc-label { text-align: left; }
  .uc-figure .uc-caption { max-width: none; }
  .uc-screen { grid-column: 1 / -1; }
  .uc-closing__text,
  .uc-closing__figure { grid-column: 1 / -1; }
  .uc-closing__figure { margin-top: 48px; }
  .uc-bleed .uc-figure__frame { aspect-ratio: 16 / 9; }
  .uc-bleed figcaption { margin-top: 12px; }
  .uc-next__title,
  .uc-next__media { grid-column: 1 / -1; }
  .uc-next__media { margin-top: 28px; }
  .uc-next { padding-block: 28px 56px; }
  .uc-next__top { margin-bottom: 28px; }
  .uc-pair .uc-figure { grid-column: 1 / -1; }
  .uc-pair { row-gap: 32px; }
  .ss-panels { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
  .ss-panel { padding-top: 20px; border-top: 1px solid var(--uc-rule); }
  .ss-map, .ss-chart { max-width: 350px; }
  .saa-stage__desc { max-width: none; }
}

/* ------------------------------------------------------------
   9. REDUCED MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .uc-js .uc-reveal,
  .uc-js .saa-how .saa-stage__text,
  .uc-js .saa-how .saa-stage__art > *,
  .uc-js .saa-how .saa-assist .saa-panel,
  .uc-js .saa-how .saa-doc { opacity: 1; transform: none; transition: none; }
  .uc-js .saa-how .saa-how__link path,
  .uc-js .ss-chart .ss-series,
  .uc-js .ssw .ssw-chart__lines path,
  .uc-js .ssw .ssw-spark path { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; }
  .uc-js .ssw-stage,
  .uc-js .ssw__label,
  .uc-js .ssw__count,
  .uc-js .ssw-link i,
  .uc-js .ssw-link b { opacity: 1; transform: none; transition: none; }
  .ssw-insole { transition: none; }
  .uc-next__media img,
  .saa-doc,
  .saa-panel { transition: none; }
  a.uc-next__card:hover .uc-next__media img { transform: none; }
}

/* ------------------------------------------------------------
   Index thumbnail for Hush: the real popup, buried in loud fake
   ads. Hover or focus turns it on: the switch slides, the count
   ticks, and each ad first empties, then collapses, the same two
   steps the extension uses. Leaving reloads the clutter.
   ------------------------------------------------------------ */
.ux-media--hush { display: grid; place-items: center; container-type: inline-size; }
.ux-media--hush::after { display: none; }

.hc-popup { position: relative; z-index: 2; transform: scale(var(--hush-card-scale, 0.9)); transition: transform var(--dur-3) var(--uc-ease); }
@media (max-width: 1100px) { .ux-media--hush { --hush-card-scale: 0.7; } }
@media (max-width: 767px) { .ux-media--hush { --hush-card-scale: 0.5; } }

/* Popup off by default */
.hc-popup .dot { background: var(--fg-3); transition: background-color 240ms ease; }
.hc-popup .track { background: var(--bg-3); }
.hc-popup .big { color: var(--fg-3); }
.hc-swap { display: inline-grid; }
.hc-swap > span { grid-area: 1 / 1; transition: opacity 240ms ease, transform 240ms ease; }
.hc-swap .hc-on { opacity: 0; transform: translateY(4px); }
.hc-swap--num { justify-content: center; }

/* The ads */
.hc-ads { position: absolute; inset: 0; z-index: 1; }
.hc-ad {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35em;
  padding: 0.9cqw 1.4cqw;
  overflow: hidden;
  font-family: 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.5cqw;
  line-height: 1.1;
  color: #111;
  transition: background-color 180ms ease, opacity 320ms var(--uc-ease), transform 420ms var(--uc-ease);
  transition-delay: 0ms;
}
.hc-ad > * { transition: opacity 160ms ease; }
.hc-ad i {
  position: absolute;
  top: 0.4cqw;
  right: 0.7cqw;
  font: 400 1.1cqw/1 'Helvetica Neue', Arial, sans-serif;
  font-style: normal;
  letter-spacing: 0.04em;
  opacity: 0.75;
}
.hc-ad b { font-size: 2.6cqw; letter-spacing: -0.01em; }
.hc-ad span { font: 700 1.35cqw/1.25 'Helvetica Neue', Arial, sans-serif; }
.hc-ad em {
  align-self: flex-start;
  margin-top: 0.3em;
  padding: 0.45cqw 1cqw;
  border-radius: 3px;
  background: #111;
  color: #fff;
  font: 700 1.2cqw/1 'Helvetica Neue', Arial, sans-serif;
  font-style: normal;
}

.hc-ad--leader { left: 3.5%; top: 5%; width: 55%; height: 13%; flex-direction: row; align-items: center; gap: 1.4cqw; background: #ffe600; }
.hc-ad--leader b { font-size: 2.4cqw; }
.hc-ad--leader em { margin: 0 0 0 auto; align-self: center; }
.hc-ad--sky { left: 3.5%; top: 22%; width: 17%; height: 58%; background: #ff2e88; color: #fff; justify-content: flex-start; padding-top: 3cqw; }
.hc-ad--sky b { font-size: 3.6cqw; line-height: 0.95; }
.hc-ad--sky em { background: #fff; color: #ff2e88; margin-top: auto; }
.hc-ad--warn { right: 3.5%; top: 5%; width: 34%; height: 14%; background: #ff3b30; color: #fff; }
.hc-ad--warn b { font-size: 1.9cqw; }
.hc-ad--warn::before { content: '!'; position: absolute; right: 1.6cqw; top: 50%; transform: translateY(-50%); width: 3cqw; height: 3cqw; border-radius: 50%; background: #fff; color: #ff3b30; font-size: 2.2cqw; line-height: 3cqw; text-align: center; }
.hc-ad--square { right: 3.5%; top: 24%; width: 21%; height: 38%; background: #2d5bff; color: #fff; align-items: center; text-align: center; }
.hc-ad--square b { font-size: 3.4cqw; letter-spacing: 0.06em; }
.hc-ad--square em { align-self: center; background: #fff; color: #2d5bff; }
.hc-ad--native { left: 23%; bottom: 5%; width: 41%; height: 19%; flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 1cqw; padding-top: 2.6cqw; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
.hc-ad--native i { left: 1.4cqw; right: auto; top: 0.8cqw; color: #8a8a8a; text-transform: uppercase; }
.hc-ad--native span { flex: 1; display: flex; align-items: center; gap: 0.8cqw; font: 400 1.25cqw/1.25 Georgia, serif; }
.hc-ad--native s { flex: none; width: 4.4cqw; aspect-ratio: 4 / 3; background: #f2c94c; }
.hc-ad--native span + span s { background: #56ccf2; }
.hc-ad--sticky { right: 3.5%; bottom: 5%; width: 30%; height: 12%; flex-direction: row; align-items: center; gap: 1cqw; background: #c6ff3d; }
.hc-ad--sticky em { margin: 0 0 0 auto; align-self: center; }
.hc-ad--timer { right: 24%; top: 21%; z-index: 3; padding: 0.8cqw 1.2cqw; background: #111; color: #ff3b30; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.hc-ad--timer b { font: 700 2.2cqw/1 ui-monospace, Menlo, monospace; letter-spacing: 0.02em; }
.hc-ad--timer span { color: #fff; font-size: 1.1cqw; }
.hc-ad--timer { transform: rotate(-3deg); }

/* On: switch slides, status and count swap, ads empty then go */
a.ux-card:is(:hover, :focus-visible, .is-on) .hc-popup .track { background: #000; }
a.ux-card:is(:hover, :focus-visible, .is-on) .hc-popup .track::after { transform: translateX(18px); background: #fff; }
a.ux-card:is(:hover, :focus-visible, .is-on) .hc-popup .dot { background: var(--accent); }
a.ux-card:is(:hover, :focus-visible, .is-on) .hc-popup .big { color: var(--fg); }
a.ux-card:is(:hover, :focus-visible, .is-on) .hc-swap .hc-off { opacity: 0; transform: translateY(-4px); }
a.ux-card:is(:hover, :focus-visible, .is-on) .hc-swap .hc-on { opacity: 1; transform: none; transition-delay: 160ms; }
a.ux-card:is(:hover, :focus-visible, .is-on) .hc-popup { transform: scale(calc(var(--hush-card-scale, 0.9) * 1.03)); }

a.ux-card:is(:hover, :focus-visible, .is-on) .hc-ad > * { opacity: 0; transition-delay: calc(var(--i) * 70ms + 180ms); }
a.ux-card:is(:hover, :focus-visible, .is-on) .hc-ad {
  background-color: #e8e8e6;
  box-shadow: none;
  opacity: 0;
  transform: scale(0.94);
  transition-delay: calc(var(--i) * 70ms + 260ms), calc(var(--i) * 70ms + 560ms), calc(var(--i) * 70ms + 560ms);
}
a.ux-card:is(:hover, :focus-visible, .is-on) .hc-ad--warn::before { opacity: 0; }
.hc-ad:nth-child(1) { --i: 0; }
.hc-ad:nth-child(2) { --i: 2; }
.hc-ad:nth-child(3) { --i: 1; }
.hc-ad:nth-child(4) { --i: 3; }
.hc-ad:nth-child(5) { --i: 5; }
.hc-ad:nth-child(6) { --i: 6; }
.hc-ad:nth-child(7) { --i: 4; }

@media (prefers-reduced-motion: reduce) {
  .hc-ad, .hc-ad > *, .hc-swap > span, .hc-popup, .hc-popup .track, .hc-popup .track::after { transition: none !important; }
}
.uc-wordmark--icon svg { width: clamp(72px, 9vw, 128px); height: auto; }

/* Index thumbnail for Claude2Blender: the render with the real sidebar on it */
/* 3:2 crop of a 16:9 render: keep the record player clear of the sidebar */
.ux-media--c2b img { object-position: 15% 50%; }
.ux-media--c2b .ux-c2b-panel {
  position: absolute;
  left: 6%;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%) scale(var(--c2b-card-scale, 0.82));
  transform-origin: left center;
  transition: transform var(--dur-3) var(--uc-ease);
}
a.ux-card:hover .ux-media--c2b .ux-c2b-panel,
a.ux-card:focus-visible .ux-media--c2b .ux-c2b-panel { transform: translateY(-50%) scale(calc(var(--c2b-card-scale, 0.82) * 1.02)); }
@media (max-width: 1280px) { .ux-media--c2b { --c2b-card-scale: 0.66; } }
@media (max-width: 1023px) { .ux-media--c2b { --c2b-card-scale: 0.5; } }
@media (max-width: 767px) { .ux-media--c2b { --c2b-card-scale: 0.46; } }
