@font-face {
  font-family: SoehneLight;
  src: url("assets/fonts/sohne-breit-leicht.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: Fustat;
  src: url("assets/case-studies/fustat.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@keyframes stage-in { from { opacity: .86; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
:where(.case-study, .case-preview-dialog) {
  & {
    --desk: #eeede8;
    --paper: #f8f7f2;
    --ink: #22221e;
    --muted: #626057;
    --red: #a63227;
    --type: Inter, Helvetica, Arial, sans-serif;
    --display: SoehneLight, Inter, sans-serif;
  }


  * { box-sizing: border-box; }
  & { color: var(--ink); font: 15px/1.64 var(--type); -webkit-font-smoothing: antialiased; }
  [hidden] { display: none !important; }
  h1, h2, p, figure, blockquote { margin: 0; }
  a { color: inherit; text-decoration: none; }
  button, input { color: inherit; font: inherit; }
  button, summary, input[type="range"], input[type="checkbox"] { cursor: pointer; }
  button { border: 0; padding: 0; background: transparent; }
  :focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }
  [tabindex="-1"]:focus { outline: none; }
  img { display: block; max-width: 100%; height: auto; }

  .case { position: relative; }
  .case-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .84fr);
    align-items: end;
    gap: clamp(24px, 7.8vw, 108px);
  }
  .title-line { display: flex; align-items: flex-end; gap: 13px; }
  .case-header h1 {
    color: var(--ink);
    font: 300 clamp(48px, 6.3vw, 89px)/.97 var(--display);
    letter-spacing: -.058em;
  }

  .case-alerts h1 { font-size: clamp(42px, 5.7vw, 78px); }
  .project-mark { flex: 0 0 23px; width: 23px; margin-bottom: 4px; color: var(--red); }
  .project-mark svg { display: block; width: 100%; }
  .role { margin-top: 15px; color: var(--muted); font-size: 12px; }
  .deck { max-width: 29ch; padding-bottom: 4px; font: 430 clamp(17px, 1.72vw, 23px)/1.36 var(--type); letter-spacing: -.026em; }

  .text-spread {
    display: grid;
    grid-template-columns: minmax(0, .73fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(26px, 7vw, 95px);
    margin-top: clamp(60px, 8.1vw, 115px);
  }
  .text-spread.continuation { margin-top: clamp(39px, 5.5vw, 76px); }
  .text-spread h2 { max-width: 19ch; font: 430 clamp(23px, 2.65vw, 36px)/1.16 var(--type); letter-spacing: -.047em; }
  .reading { max-width: 59ch; }
  .reading > p + p { margin-top: 14px; }
  figcaption, .artifact-note { margin-top: 9px; color: var(--muted); font: 400 11px/1.45 var(--type); }
  .pull-quote { margin-top: 27px; }
  .pull-quote blockquote { max-width: 33ch; color: var(--red); font: 420 clamp(19px, 2vw, 25px)/1.26 var(--type); letter-spacing: -.036em; }
  .brand-spread .brand-line { max-width: 21ch; color: var(--red); font: 300 clamp(25px, 3.1vw, 43px)/1.15 var(--display); letter-spacing: -.05em; }
  .brand-spread .brand-line + p { margin-top: 20px; }
  .next-case { display: flex; justify-content: flex-end; margin-top: clamp(42px, 7vw, 96px); color: var(--red); font-size: 13px; }
  .next-case span { margin-left: 3px; }
  .next-case a:hover, .screen-caption button:hover { text-decoration: underline; text-underline-offset: 4px; }

  .work-visual { width: min(88%, 920px); margin: clamp(26px, 4vw, 54px) 0 0 auto; }
  .laptop { width: 96%; margin: 0 auto; }
  .laptop-lid {
    position: relative;
    padding: clamp(6px, .86vw, 12px) clamp(5px, .73vw, 10px) clamp(5px, .67vw, 9px);
    border: 1px solid #555653;
    border-radius: 14px 14px 5px 5px;
    background: #262725;
    box-shadow: 0 8px 18px -14px #2525216a;
  }
  .laptop-lid::before {
    position: absolute;
    top: 4px;
    left: calc(50% - 1px);
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #737570;
    content: "";
  }
  .laptop-base {
    position: relative;
    height: 7px;
    margin: 0 -2.8%;
    border-radius: 1px 1px 45% 45%;
    background: linear-gradient(#7e807b, #b4b5b0 43%, #777973);
    box-shadow: 0 3px 6px -4px #14151175;
  }
  .laptop-base::after {
    position: absolute;
    top: 0;
    left: 45%;
    width: 10%;
    height: 3px;
    border-radius: 0 0 8px 8px;
    background: #666861;
    content: "";
  }
  .screen-caption { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 5px 18px; }
  .screen-caption button { color: var(--red); font-size: inherit; }
  .gallery-figure { width: min(93%, 950px); margin-top: 32px; }
  .piece-figure { width: min(72%, 670px); margin-top: 30px; }

  &.image-review {
    width: min(95vw, 1430px);
    max-width: none;
    max-height: 96vh;
    margin: auto;
    padding: 10px;
    border: 1px solid #aea99c;
    background: var(--paper);
    color: var(--ink);
  }
  &.image-review::backdrop { background: #24231eab; }
  .image-review-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
  .image-review-top p { color: var(--muted); font-size: 12px; }
  .image-review-top button { width: 29px; height: 28px; font-size: 23px; line-height: 1; }
  &.image-review img { width: auto; max-width: 100%; max-height: calc(94vh - 58px); margin: 0 auto; object-fit: contain; }

  @media (max-width: 960px) {
    .case-header { gap: 32px; }
    .case-alerts h1 { font-size: clamp(37px, 5.6vw, 70px); }
    .work-visual { width: 94%; }
    .text-spread { gap: 34px; }
  }
  @media (max-width: 655px) {
    .case-header, .text-spread { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .case-header h1 { font-size: clamp(43px, 11vw, 63px); }

    .project-mark { width: 19px; flex-basis: 19px; }
    .role { margin-top: 8px; font-size: 11px; }
    .deck { padding: 0; }
    .work-visual { width: 100%; margin-top: 24px; }
    .laptop-lid { border-radius: 8px 8px 4px 4px; }
    .laptop-lid::before { top: 2px; }
    .laptop-base { height: 4px; }
    .laptop-base::after { height: 2px; }
    .reading { font-size: 14px; }
  }
  @media (pointer: coarse) {
  }

  .icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
  .ui-icon { display: inline-block; width: 1.05em; height: 1.05em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.15em; }
  .glass-sheet {
    border: 1px solid #ffffffa8;
    background: #fffcf9b9;
    box-shadow: 0 20px 52px -36px #45302b69, inset 0 1px 0 #fff9;
    backdrop-filter: blur(16px);
  }
  .product-figure { width: min(95%, 970px); }
  .muko-site-preview, .muko-workspace, .lepere-piece { --muko-type: Fustat, var(--type); }
  .muko-glyph { display: inline-block; width: 25px; height: 19px; overflow: hidden; flex-shrink: 0; vertical-align: middle; }
  .muko-glyph img { width: 100%; border-radius: 0; filter: brightness(0); }

  .muko-site-preview {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 265px;
    aspect-ratio: 1.88;
    overflow: hidden;
    container-type: inline-size;
    border-radius: 6px 6px 2px 2px;
    background: #eeede6;
    isolation: isolate;
    color: #161715;
    font: 450 13px/1.45 var(--muko-type);
  }
  .muko-site-nav { position: absolute; z-index: 2; inset: 4% 3.4% auto; display: flex; justify-content: space-between; align-items: center; }
  .muko-logotype { font: 300 clamp(16px, 3.5cqw, 30px)/1 var(--display); letter-spacing: -.065em; }
  .muko-site-nav a { font-size: clamp(9px, 1.52cqw, 12px); }
  .muko-site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .brand-orbit { position: absolute; z-index: -1; inset: 5% 0; width: 100%; height: 90%; color: #718c91; opacity: .66; }
  .muko-site-copy { width: 100%; margin: auto; padding: 33px 5% 24px; text-align: center; }
  .brand-glyph { width: clamp(24px, 5.5cqw, 47px); height: clamp(18px, 4.2cqw, 34px); margin-bottom: clamp(9px, 2cqw, 19px); }
  .muko-hero-headline {
    font: 300 clamp(21px, 6.3cqw, 59px)/1.02 var(--display);
    letter-spacing: -.072em;
  }
  .muko-hero-deck { max-width: 45ch; margin: clamp(7px, 2cqw, 16px) auto 0; color: #53554d; font-size: clamp(9px, 1.6cqw, 14px); }
  .muko-primary, .alert-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 35px;
    padding: 7px 14px;
    border-radius: 100px;
    background: #1f211d;
    color: #fffdf7;
    font-weight: 550;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    transition: background 180ms, box-shadow 180ms;
  }
  .muko-primary:hover, .alert-apply:hover { background: #4c3c36; box-shadow: 0 4px 10px -6px #251810; }
  .muko-site-copy .muko-primary { min-height: 29px; margin-top: clamp(10px, 2.15cqw, 19px); font-size: clamp(10px, 1.45cqw, 12px); }

  .living-figure { width: 100%; scroll-margin-top: 20px; }
  .muko-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 4px clamp(9px, 1.8vw, 22px); margin: 0 1px 11px; }
  .muko-steps button { min-height: 26px; padding: 2px 1px; color: #635f58; font-size: 11px; white-space: nowrap; }
  .muko-steps button:hover:not(:disabled), .muko-steps button[aria-pressed="true"] { color: var(--red); }
  .muko-steps button[aria-pressed="true"] { box-shadow: inset 0 -1px var(--red); }
  .muko-steps button:disabled { color: #8c867c; cursor: default; }
  .muko-workspace {
    container-type: inline-size;
    overflow: hidden;
    border: 1px solid #d9d0c6;
    border-radius: 16px;
    background: #f6f3ed;
    color: #241f1c;
    font: 440 13px/1.5 var(--muko-type);
  }
  .muko-workspace-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 8px clamp(13px, 3cqw, 32px);
  }
  .muko-workspace-brand { display: flex; align-items: center; gap: 8px; font-size: 11px; }
  .muko-workspace-brand .muko-glyph { width: 21px; height: 16px; }
  .muko-workspace-concept { justify-self: end; padding: 5px 10px; border-radius: 40px; background: #fffc; color: #655e55; font-size: 10px; }
  .muko-context { color: #6a6056; font-size: 11px; }
  .muko-stage { min-height: clamp(475px, 50cqw, 555px); padding: clamp(19px, 3.6cqw, 42px); animation: stage-in 230ms ease-out both; }

  .muko-world {
    display: grid;
    grid-template-columns: minmax(0, 2.25fr) minmax(221px, .9fr);
    align-items: center;
    gap: clamp(14px, 4cqw, 50px);
    background:
      radial-gradient(ellipse at 88% 2%, #c8d2ce7d, transparent 49%),
      radial-gradient(ellipse at 18% 100%, #dfb6a679, transparent 56%),
      linear-gradient(146deg, #f4ece5, #f6f4ed);
  }
  .world-atlas { min-width: 0; }
  .world-heading h3 { margin: 0; font: 230 clamp(45px, 8.4cqw, 87px)/.92 var(--muko-type); letter-spacing: -.07em; }
  .world-heading p { margin-top: 8px; color: #6d625a; font-size: 11px; }
  .world-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid #fff9; border-radius: 24px; background: #eae4db65; }
  .world-switch button { display: inline-flex; gap: 4px; align-items: center; min-height: 26px; padding: 2px 7px; border-radius: 20px; color: #655d53; font-size: 10px; }
  .world-switch button[aria-pressed="true"], .world-switch button:hover { background: #fffcf8; color: #292420; }
  .world-map { position: relative; height: clamp(175px, 30cqw, 290px); margin: 4px 0 8px; }
  .world-dots, .world-pins { position: absolute; inset: 0; width: 100%; height: 100%; }
  .world-category { position: absolute; color: #6e6059; font-size: clamp(9px, 1.3cqw, 11px); pointer-events: none; }
  .category-outerwear { top: 23%; left: 9%; }
  .category-knitwear { top: 5%; left: 63%; }
  .category-tops { top: 39%; left: 84%; }
  .category-dresses { bottom: 8%; left: 58%; }
  .category-bottoms { bottom: 3%; left: 23%; }
  .world-pin { position: absolute; display: grid; place-items: center; width: 23px; height: 23px; margin: -11px 0 0 -11px; border-radius: 50%; color: #794348; }
  .world-pin::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px #874f4f24; }
  .world-pin[data-piece="cole"] { color: #92653f; }
  .world-pin[aria-pressed="true"], .world-pin:hover { background: #fff8; }
  .world-pin[aria-pressed="true"]::after { width: 10px; height: 10px; box-shadow: 0 0 0 5px #874f4f2e; }
  .world-pin[data-released="true"]::after { background: transparent; border: 1px solid #795e55; box-shadow: 0 0 0 3px #77574b14; }
  .world-list { display: grid; align-content: center; gap: 3px; min-height: clamp(175px, 30cqw, 290px); margin: 4px 0 8px; }
  .world-list button { display: flex; justify-content: space-between; align-items: center; gap: 6px; min-height: 35px; padding: 4px 10px; border-radius: 6px; text-align: left; }
  .world-list button[aria-pressed="true"], .world-list button:hover { background: #fff9; }
  .world-list button span:last-child, .world-list button[data-released="true"] > span:first-child { color: #6d5f55; font-size: 11px; }
  .world-list button span:last-child { white-space: nowrap; }
  .world-piece-focus { display: flex; align-items: center; gap: 8px; min-height: 39px; width: fit-content; max-width: 100%; }
  .world-piece-focus img { width: 37px; height: 37px; object-fit: contain; border-radius: 50%; background: #fff9; }
  .world-piece-focus strong, .world-piece-focus span { display: block; }
  .world-piece-focus strong { font-weight: 560; line-height: 1.18; }
  .world-piece-focus span { color: #6c5850; font-size: 10px; }
  .world-tray { display: grid; align-content: center; gap: 11px; }
  .muko-signal { padding: clamp(12px, 2.1cqw, 23px); border-radius: 17px; background: #fffdfaeb; align-self: center; }
  .muko-signal header { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
  .muko-signal h3 { margin: 0; font: 390 clamp(18px, 2.35cqw, 26px)/1.05 var(--muko-type); letter-spacing: -.045em; }
  .muko-signal-icon { display: grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: #272420; color: #fff8ed; font-size: 14px; }
  .signal-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 7px 0; border-top: 1px solid #7c63521b; font-size: 11px; }
  .signal-line .ui-icon, .signal-line strong { color: #814d48; }
  .signal-line strong { font-weight: 590; }
  .signal-question { margin: 0 0 10px; font: 420 clamp(15px, 2cqw, 20px)/1.15 var(--muko-type); letter-spacing: -.032em; }
  #muko-applied h3 { margin: 8px 0 6px; }
  #muko-applied > p { color: #51483f; }
  .muko-applied-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 13px; }

  .muko-compare, .muko-fallback {
    display: flex;
    flex-direction: column;
    background: radial-gradient(ellipse at 75% 115%, #e5d6c6bf, transparent 72%), #f6f3ed;
  }
  .muko-stage-heading { margin: 0 auto clamp(20px, 5.2cqw, 56px); text-align: center; }
  .muko-stage-heading h3, .record-sheet h3 { margin: 0; font: 360 clamp(25px, 3.7cqw, 40px)/1.1 var(--muko-type); letter-spacing: -.052em; }
  .muko-stage-heading > p { margin-top: 9px; color: #6c5f54; font-size: 11px; }
  .muko-stage-heading p span { margin: 0 3px; color: #9b6958; }
  .muko-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .muko-options button {
    display: flex; flex-direction: column; justify-content: center; align-items: start; gap: 4px; min-height: 52px;
    padding: 7px clamp(8px, 1.6cqw, 16px); border: 1px solid #ffffff80; border-radius: 38px; background: #ffffff80; text-align: left;
  }
  .muko-options button:hover { background: #fffc; }
  .muko-options button[aria-pressed="true"] { border-color: #856b67; background: #fffdf8; }
  .muko-options strong { font-size: 12px; font-weight: 550; line-height: 1.16; }
  .muko-options small { color: #6d5f55; font-size: 10px; line-height: 1.16; }
  .comparison-body, .fallback-body { display: grid; grid-template-columns: minmax(0, 2.43fr) minmax(218px, 1fr); gap: clamp(14px, 3cqw, 33px); align-items: start; }
  .scenario-cast { min-width: 0; }
  .garment-line {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); justify-content: center;
    gap: 9px 7px; margin-top: clamp(14px, 2.7cqw, 28px);
  }
  .garment-line:has(> :nth-child(5)) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .garment-item {
    min-width: 0; min-height: 144px; padding: 10px 4px 13px; border: 1px solid transparent;
    border-radius: 99px; background: #ffffff86; text-align: center;
  }
  .garment-item[data-disposition="kept"] { border-color: #b08b73; background: #fffdf8e8; }
  .garment-media { display: grid; place-items: center; width: min(100%, 68px); aspect-ratio: 1; margin: 0 auto 7px; border-radius: 50%; background: #eeebe5; }
  .garment-item img { width: 100%; height: 100%; object-fit: contain; }
  .garment-item[data-disposition="kept"] .garment-media { background: #decbba; }
  .garment-item[data-disposition="restyled"] .garment-media { background: #e1e3dd; }
  .garment-item[data-disposition="exits"] img { opacity: .54; }
  .garment-item figcaption { margin: 0; color: #453b33; font: 500 11px/1.16 var(--muko-type); overflow-wrap: anywhere; }
  .garment-item small { display: block; margin-top: 5px; color: #6b5d53; font-size: 9px; line-height: 1.14; }
  .garment-item[data-disposition="exits"] figcaption { color: #6e6258; }
  .scenario-read { padding: clamp(14px, 2.1cqw, 22px); border-radius: 16px; background: #fffdf9ef; }
  .read-label { color: #79544f; font-size: 10px; font-weight: 560; }
  .scenario-read h4 { margin: 5px 0 8px; font: 400 clamp(17px, 2.45cqw, 25px)/1.1 var(--muko-type); letter-spacing: -.04em; }
  .scenario-read p { color: #5b4e44; font-size: 12px; }
  .read-calc { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 6px; margin-top: 15px; padding-top: 11px; border-top: 1px solid #74635824; }
  .read-calc strong { font: 470 27px/1.05 var(--muko-type); letter-spacing: -.048em; }
  .read-calc span, .scenario-read .read-foot { color: #6d5a50; font-size: 10px; }
  .scenario-read .read-foot { margin-top: 5px; }
  .commitment-track { height: 4px; margin: 10px 0 6px; border-radius: 10px; background: #e9e4dd; }
  .commitment-track span { display: block; width: var(--commitment); height: 100%; border-radius: inherit; background: #b38c72; }
  .muko-stage-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 22px; }
  .muko-stage-actions > .muko-primary:last-child { margin-left: auto; }
  .muko-compare > .muko-stage-actions { margin-top: auto; padding-top: 22px; }
  #fallback-available > .muko-stage-actions { margin-top: clamp(22px, 5cqw, 52px); }
  .muko-text-action { display: inline-flex; align-items: center; gap: 5px; padding: 5px 0; color: #704744; text-align: left; font-size: 12px; }
  .muko-text-action:hover { text-decoration: underline; text-underline-offset: 3px; }
  .fallback-pieces { display: grid; grid-template-columns: repeat(2, minmax(0, 112px)); justify-content: center; gap: 11px; margin-top: 22px; }
  .fallback-unavailable { padding: 24px 0; text-align: center; }
  .fallback-unavailable .muko-primary { margin-top: 12px; }

  .muko-record, .muko-outcome { display: grid; place-items: center; background: radial-gradient(ellipse at 28% 78%, #cbbbad, #d7d3cb 63%, #d5d3cc); }
  .record-sheet { width: min(100%, 578px); padding: clamp(20px, 4cqw, 42px); border-radius: 15px; background: #fbf9f4; }
  .record-heading { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; color: #775a50; font-size: 11px; }
  .record-sheet h3 { font-size: clamp(24px, 3.65cqw, 38px); }
  .record-reasons { margin: 17px 0 0; }
  .record-reasons > div { display: grid; grid-template-columns: minmax(72px, .37fr) minmax(0, 1fr); gap: 8px 14px; padding: 8px 0; border-top: 1px solid #77625222; }
  .record-reasons dt { color: #6d5851; font-size: 11px; }
  .record-reasons dd { margin: 0; font-size: 12px; }
  .muko-outcome .record-sheet { background: radial-gradient(ellipse at 100% 0, #e2e5d9, #fbf9f4 57%); }
  .muko-outcome .record-heading { color: #52634b; }
  .muko-receipt { margin-top: 17px; padding: 15px 0; border-block: 1px solid #77625225; }
  .receipt-amount { display: block; font: 270 clamp(40px, 6.6cqw, 64px)/1 var(--muko-type); letter-spacing: -.06em; }
  .receipt-label, .receipt-metrics span { color: #665a51; font-size: 11px; }
  .receipt-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 15px; }
  .receipt-metrics strong { display: block; font: 430 22px/1.1 var(--muko-type); letter-spacing: -.04em; }
  .outcome-open { margin-top: 12px; color: #534840; font-size: 12px; }

  .piece-live-figure { width: min(87%, 845px); }
  .lepere-piece {
    display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center; gap: clamp(21px, 4vw, 53px);
    color: #252a29; font: 440 13px/1.46 var(--muko-type);
  }
  .lepere-image { min-width: 0; }
  .lepere-image img { width: 100%; aspect-ratio: .87; object-fit: cover; border-radius: 13px; background: #a1b3bf; }
  .lepere-image figcaption { margin-top: 6px; color: #60696b; font-size: 10px; }
  .lepere-plan { min-width: 0; }
  .lepere-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #596365; font-size: 11px; }
  .lepere-plan-top .muko-glyph { width: 22px; height: 17px; }
  .lepere-plan h3 { margin: 16px 0 7px; font: 350 clamp(24px, 3.45vw, 40px)/1.03 var(--muko-type); letter-spacing: -.058em; }
  .lepere-plan h3 span { color: #696176; }
  .lepere-plan > p { color: #5f6666; font-size: 13px; }
  .lepere-unit-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 17px; padding-block: 8px; border-block: 1px solid #68787535; }
  .lepere-stepper { display: inline-flex; align-items: center; gap: 3px; padding: 2px 4px; border: 1px solid #67777831; border-radius: 30px; }
  .lepere-stepper button { display: grid; place-items: center; width: 29px; height: 27px; border-radius: 50%; color: #546466; }
  .lepere-stepper button:hover { background: #e6e9e8; }
  .lepere-stepper input { width: 36px; min-width: 0; padding: 0; border: 0; background: transparent; text-align: center; appearance: textfield; font-variant-numeric: tabular-nums; }
  .lepere-stepper input::-webkit-inner-spin-button { appearance: none; }
  .lepere-figures { margin: 0; }
  .lepere-figures > div { display: flex; justify-content: space-between; align-items: baseline; gap: 7px; padding: 7px 0; border-bottom: 1px solid #68787526; }
  .lepere-figures dt { color: #596365; }
  .lepere-figures dt span { font-size: 10px; }
  .lepere-figures dd { margin: 0; text-align: right; }
  .lepere-curve { margin-top: 15px; color: #596365; font-size: 11px; }
  .size-distribution { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 6px; padding-block: 5px; background: #e8eae64d; border-radius: 7px; }
  .size-distribution > span { display: grid; justify-items: center; gap: 2px; padding: 3px 2px; }
  .size-distribution b { color: #27302e; font: 530 14px/1.1 var(--muko-type); }
  .size-distribution small { font-size: 10px; }

  @container (max-width: 820px) {
    .garment-line:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .garment-item { min-height: 122px; }
    .garment-media { width: min(100%, 58px); }
    .muko-options button { border-radius: 14px; }
  }
  @container (max-width: 630px) {
    .muko-world, .comparison-body, .fallback-body { grid-template-columns: minmax(0, 1fr); }
    .muko-stage { min-height: 0; }
    .muko-workspace-top { gap: 5px; padding-inline: 10px; }
    .muko-workspace-concept { padding: 4px 6px; text-align: right; }
    .muko-stage-heading { margin-bottom: 19px; }
    .garment-line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .world-tray { gap: 7px; }
    .muko-signal { padding: 13px; }
  }
  @media (max-width: 655px) {
    .product-figure, .piece-live-figure { width: 100%; }
    .muko-site-preview { min-height: 230px; }
    .muko-site-copy { padding-inline: 7%; }
    .muko-workspace { border-radius: 12px; }
    .lepere-piece { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .lepere-image img { aspect-ratio: 1.12; }
    .lepere-plan h3 { margin-top: 9px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .muko-stage, .phone-content section { animation: none !important; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
  }


}

.case-icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }

.editorial-project-view.has-case-study .binder-page {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(25px, 4vw, 52px);
  padding-inline-start: clamp(24px, 5vw, 66px);
}

.editorial-project-view.has-case-study .binder-veil {
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  margin: 0;
  padding: 7px 11px;
  flex-flow: row wrap;
  align-items: center;
  gap: 4px 10px;
}

.editorial-project-view.has-case-study .veil-imprint { margin: 0; }
.editorial-project-view.has-case-study .veil-mark { width: 13px; }
.editorial-project-view.has-case-study .binder-content { display: block; }
.editorial-project-view.has-case-study .binding-ring { top: 112px; }
.editorial-project-view.has-case-study .binding-ring:nth-child(2) { top: 282px; }
.editorial-project-view.has-case-study .binding-ring:nth-child(3) { top: 452px; }

.case-study {
  container: portfolio-case / inline-size;
  min-width: 0;
}

.case-study .case-header h1 {
  font-size: clamp(35px, 7.8cqw, 89px);
}

.case-study .case-alerts .case-header h1 { font-size: clamp(32px, 7.5cqw, 78px); }
.case-study .case-header { gap: clamp(18px, 5cqw, 56px); }
.case-study .text-spread { gap: clamp(20px, 6cqw, 74px); }
.case-study .work-visual { scroll-margin-top: 80px; }
.case-study .muko-site-nav button { font-size: clamp(9px, 1.52cqw, 12px); }
.case-study .muko-site-nav button:hover { text-decoration: underline; text-underline-offset: 4px; }

.case-study .text-spread > .piece-live-figure {
  grid-column: 1 / -1;
  width: min(100%, 650px);
  margin-block-start: 0;
}

.case-study .reading > .alert-fragment + p { margin-top: 20px; }

@container portfolio-case (max-width: 595px) {
  .case-study .case-header, .case-study .text-spread { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .case-study .text-spread > .piece-live-figure { margin-top: 8px; }
  .case-study .work-visual { width: 100%; }
}

@container (max-width: 495px) {
  .editorial-project-view.has-case-study .binder-page { padding-inline: 18px 15px; }
  .editorial-project-view.has-case-study .binding-ring { top: 72px; }
  .editorial-project-view.has-case-study .binding-ring:nth-child(2) { top: 210px; }
  .editorial-project-view.has-case-study .binding-ring:nth-child(3) { top: 350px; }
}

.editorial-project-view.has-case-study .binder-page::before {
  background-image: linear-gradient(#f9f8f2b3, #f9f8f2b3), var(--binder-fiber);
}

.editorial-project-view.has-case-study .binder-page::after {
  background-image: linear-gradient(122deg, #fff9, #f4f0e570 56%, #ede8da51);
}

/* The portfolio masthead styles are also applied to native header and nav elements. */
.case-study header { height: auto; min-height: 0; margin: 0; }
.case-study header nav { max-width: none; }

/* Intelligent Alerts · instrument and reading */
.case-alerts {
  --alert-type: Inter, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --alert-ink: #282823;
  --alert-muted: #6a6a62;
  --alert-hairline: #deded6;
  --alert-accent: #847044;
}
.case-alerts .alerts-figure {
  width: min(100%, 820px);
  margin-inline: auto;
  container: alerts-composition / inline-size;
  color: var(--alert-ink);
  font-family: var(--alert-type);
}
.case-alerts .alerts-stage {
  display: grid;
  grid-template-columns: minmax(0, 235px) minmax(0, 490px);
  align-items: center;
  justify-content: center;
  gap: clamp(25px, 6cqw, 64px);
}
.case-alerts .alert-phone {
  position: relative;
  width: 100%;
  min-height: 386px;
  padding: 14px 17px 27px;
  overflow: hidden;
  border: 1px solid #e7e7e0;
  border-radius: 34px;
  background: #f1f1ed;
}
.case-alerts .phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #34342d;
  font-size: 10px;
  font-weight: 640;
}
.case-alerts .phone-status svg { width: 30px; height: 10px; }
.case-alerts .alert-phone h3 {
  margin: 20px 0 12px 2px;
  font-size: 20px;
  font-weight: 540;
  letter-spacing: -.045em;
}
.case-alerts .alert-dial { position: relative; height: 242px; }
.case-alerts .alert-dial-arc {
  position: absolute;
  top: 50%;
  left: 72%;
  width: 242px;
  height: 336px;
  transform: translateY(-50%);
  border: 1px solid #d6d6cf;
  border-radius: 50%;
  pointer-events: none;
}
.case-alerts .alert-dial-choices {
  position: relative;
  display: grid;
  grid-auto-rows: 70px;
  align-items: center;
  align-content: center;
  min-height: 100%;
  padding-right: 27%;
}
.case-alerts .alert-dial-choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 44px;
  padding: 2px 9px;
  border-radius: 999px;
  color: #626259;
  font-size: 11px;
  white-space: nowrap;
}
.case-alerts .alert-dial-choice:is([data-alert-choice="revenue"], [data-alert-choice="churn"]) { translate: 13px 0; }
.case-alerts .alert-dial-choice:hover { color: var(--alert-ink); }
.case-alerts .alert-dial-icon {
  display: grid;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: #eaeae5;
  color: #65655b;
  font-size: 15px;
}
.case-alerts .alert-dial-choice[aria-pressed="true"] { color: var(--alert-ink); font-weight: 610; }
.case-alerts .alert-dial-choice[aria-pressed="true"] .alert-dial-icon {
  border-color: #b6a575;
  background: #f8f6ed;
  color: var(--alert-accent);
}
.case-alerts .alert-dial-choice[aria-pressed="true"]::after {
  position: absolute;
  top: calc(50% - 2px);
  right: -13px;
  width: 10px;
  height: 4px;
  border-radius: 999px;
  background: var(--alert-ink);
  content: "";
}
.case-alerts .alert-phone-status {
  margin: 5px 0 0;
  color: var(--alert-muted);
  font-size: 10px;
}
.case-alerts .alert-phone-home {
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 59px;
  height: 3px;
  border-radius: 4px;
  transform: translateX(-50%);
  background: #d0d0c9;
}

.case-alerts .alert-reading {
  min-width: 0;
  padding: clamp(21px, 4.6cqw, 42px);
  border: 1px solid #eae9e3;
  border-radius: 25px;
  background: #fcfcfa;
  box-shadow: 0 12px 24px -24px #34342d73;
}
.case-alerts .alert-reading-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}
.case-alerts .alert-reading-label { margin: 0 0 4px; color: var(--alert-muted); font-size: 10px; }
.case-alerts .alert-reading h3 {
  margin: 0;
  color: var(--alert-ink);
  font: 510 clamp(22px, 3.6cqw, 33px)/1.12 var(--alert-type);
  letter-spacing: -.045em;
}
.case-alerts .alert-reading-scope { margin-top: 3px; color: var(--alert-muted); font-size: 11px; }
.case-alerts .alert-reading-value {
  flex: 0 0 auto;
  color: var(--alert-ink);
  font: 420 clamp(34px, 7cqw, 57px)/.95 var(--alert-type);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.074em;
}
.case-alerts .alert-plot { margin: 16px 0; }
.case-alerts .alert-plot svg {
  display: block;
  width: 100%;
  height: clamp(102px, 20cqw, 150px);
  overflow: visible;
}
.case-alerts .alert-plot path { fill: none; vector-effect: non-scaling-stroke; }
.case-alerts .alert-plot-grid { stroke: #d4d4cb; stroke-width: 1px; stroke-dasharray: 1 5; }
.case-alerts .alert-plot-guide { stroke: #e1e1d9; stroke-width: 1px; }
.case-alerts .alert-plot-line { stroke: #414139; stroke-width: 1.05px; }
.case-alerts .alert-plot-baseline { fill: #88887e; }
.case-alerts .alert-plot-halo { fill: #d9c687; fill-opacity: .34; }
.case-alerts .alert-plot-observed { fill: #272721; }
.case-alerts .alert-plot-labels {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  margin-top: 3px;
  padding-inline: 1px;
  color: var(--alert-muted);
  font-size: 10px;
}
.case-alerts .alert-plot-labels b { margin-left: 3px; color: var(--alert-ink); font-weight: 580; }
.case-alerts .alert-reading-foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px 14px;
  padding-top: 11px;
  border-top: 1px solid #e9e9e1;
}
.case-alerts .alert-reading-foot p {
  max-width: 33ch;
  margin: 0;
  color: var(--alert-muted);
  font-size: 11px;
  line-height: 1.4;
}
.case-alerts .alert-reading-foot button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  color: var(--alert-ink);
  font-size: 11px;
  font-weight: 560;
}
.case-alerts .alert-reading-foot button:hover { text-decoration: underline; text-underline-offset: 4px; }

.case-alerts .alert-fragment {
  width: 100%;
  max-width: 480px;
  margin-top: 16px;
  container: alert-trigger / inline-size;
}
.case-alerts .alert-trigger-stage {
  padding: clamp(11px, 5.4cqw, 26px);
  border: 1px solid #dfdfd7;
  border-radius: 21px;
  background: radial-gradient(ellipse at 90% 90%, #dcded8, transparent 65%), #eeeee8;
}
.case-alerts .alert-trigger-screen {
  overflow: hidden;
  border: 1px solid #d8d9d1;
  border-radius: 14px;
  background: #fdfdfa;
  box-shadow: 0 9px 20px -16px #35372c80, 0 1px 4px #35372c12;
}
.case-alerts .alert-trigger-window-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 23px;
  padding: 0 10px;
  border-bottom: 1px solid #e7e7df;
  background: #f2f2ed;
}
.case-alerts .alert-trigger-window-bar span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c5c6bc;
}
.case-alerts .alert-fragment-body {
  padding: 16px clamp(12px, 4.2cqw, 20px);
  color: var(--alert-ink);
  font-family: var(--alert-type);
}
.case-alerts .alert-trigger-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
}
.case-alerts .alert-trigger-icon {
  display: grid;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: #eeeee8;
  color: #54574a;
  font-size: 14px;
}
.case-alerts .alert-trigger-head h3 {
  margin: 0 0 2px;
  font: 540 18px/1.15 var(--alert-type);
  letter-spacing: -.04em;
}
.case-alerts .alert-trigger-head p, .case-alerts .alert-trigger-sample > span {
  color: var(--alert-muted);
  font-size: 11px;
}
.case-alerts .alert-trigger-workspace {
  display: grid;
  grid-template-columns: minmax(94px, .7fr) minmax(0, 1.3fr);
  align-items: stretch;
  gap: 12px;
}
.case-alerts .alert-trigger-sample {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e7e6db;
  border-radius: 10px;
  background: radial-gradient(ellipse at 94% 88%, #eee7d6, transparent 75%), #f3f3ed;
}
.case-alerts .alert-trigger-sample > div { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; }
.case-alerts .alert-trigger-sample strong {
  color: var(--alert-ink);
  font: 480 clamp(20px, 6cqw, 30px)/1 var(--alert-type);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.064em;
}
.case-alerts .alert-trigger-sample .ui-icon { color: var(--alert-accent); font-size: 13px; }
.case-alerts .alert-rule {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 10px 12px;
  color: var(--alert-muted);
  font-size: 11px;
}
.case-alerts .alert-rule label { display: grid; grid-template-rows: 1fr auto; gap: 3px; }
.case-alerts .alert-input, .case-alerts .alert-rule select {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  min-height: 33px;
  padding: 1px 8px;
  border: 1px solid var(--alert-hairline);
  border-radius: 7px;
  background: #fcfcfa;
  color: var(--alert-ink);
  font: inherit;
}
.case-alerts .alert-input input {
  width: 43px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.case-alerts .alert-rule-run {
  width: fit-content;
  min-height: 31px;
  padding: 4px 10px;
  border: 1px solid var(--alert-hairline);
  border-radius: 20px;
  background: #f2f1ed;
  color: var(--alert-ink);
  font: inherit;
  font-weight: 560;
}
.case-alerts .alert-rule-run span { margin-left: 4px; }
.case-alerts .alert-rule-run:hover { background: #ebeae4; }
.case-alerts .alert-trigger-outcome:has(button:not([hidden])) {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--alert-hairline);
}
.case-alerts .alert-rule-result { margin: 0; color: var(--alert-muted); font-size: 11px; }
.case-alerts #alert-rule-view {
  min-height: 24px;
  color: var(--alert-ink);
  font: 560 11px/1.4 var(--alert-type);
}
.case-alerts #alert-rule-view:hover { text-decoration: underline; text-underline-offset: 4px; }

@container alert-trigger (max-width: 400px) {
  .case-alerts .alert-trigger-workspace { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .case-alerts .alert-trigger-sample { flex-direction: row; align-items: center; }
}
@container alert-trigger (max-width: 255px) {
  .case-alerts .alert-rule { grid-template-columns: minmax(0, 1fr); }
}
.case-alerts :is(.alerts-figure, .alert-fragment) :focus-visible { outline-color: var(--alert-accent); outline-offset: 3px; }

@container alerts-composition (max-width: 560px) {
  .case-alerts .alerts-stage { grid-template-columns: minmax(0, 1fr); gap: 19px; }
  .case-alerts .alert-phone { width: min(100%, 236px); min-height: 322px; margin-inline: auto; }
  .case-alerts .alert-phone h3 { margin-block: 15px 5px; }
  .case-alerts .alert-dial { height: 191px; }
  .case-alerts .alert-dial-choices { grid-auto-rows: 54px; }
}
/* The clipped contents note and the project file share the same stamped type. */
.project-file-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 22px;
  min-width: 0;
}
.editorial-project-view.has-case-study .project-file-slip {
  display: grid;
  gap: 6px;
  width: max-content;
  max-width: min(100%, 21rem);
  min-width: 0;
  padding: 9px 12px 10px;
  font: 700 .6875rem/1.38 "Paper Stamp Mono", monospace;
  letter-spacing: .02em;
  text-transform: uppercase;
  overflow-wrap: normal;
}
.project-file-slip .file-brand {
  display: flex;
  align-items: center;
}
.project-file-slip .file-brand { gap: .45rem; color: var(--ink); }
.editorial-project-view.has-case-study .project-file-slip .veil-mark { width: 1.3rem; flex: none; }
.project-file-slip .file-fields {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: .7rem;
  row-gap: .14rem;
  margin: 0;
}
.project-file-slip .file-fields dt { color: var(--muted); }
.project-file-slip .file-fields dd { margin: 0; }
