 :root { --case-accent: #f7a8d8; }
.section-nav a[aria-current="location"] { background: var(--case-accent); }
a:focus-visible, button:focus-visible { outline-color: var(--ink); }
.hero-tags span, .hero .hero-meta dt, .hero-meta dd { font-size: 16px; }
.hero-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px 32px; }
.case-section h2 { font: 600 36px/1.15 "Newsreader", Georgia, serif; letter-spacing: 0; }
.section-number { margin-bottom: 12px; }
.paired { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 48px; align-items: start; margin-top: 64px; }
.copy-group { display: grid; gap: 32px; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.draft { margin-top: 12px; color: #555550; font-size: 18px; line-height: 1.55; font-weight: 400; }
.boundary { border-left: 1px solid var(--line); padding-left: 32px; }
.material { min-width: 0; }
.asset-placeholder { display: flex; align-items: center; justify-content: center; aspect-ratio: 16/10; padding: 24px; border-radius: 24px; background: #f5f5f5; text-align: center; color: #555550; font-size: 16px; line-height: 1.4; }
.asset-placeholder.compact { aspect-ratio: 16/9; }
.material figcaption { margin-top: 12px; font-size: 13px; color: #555550; }
.comparisons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.comparisons .asset-placeholder { aspect-ratio: 4/3; }
.reference-row { display: grid; grid-template-columns: 2fr 3fr; gap: 48px; margin-top: 48px; align-items: start; }
.reference-row .asset-placeholder { max-height: 160px; aspect-ratio: auto; min-height: 140px; }
.workflow-table { margin-top: 64px; border-collapse: collapse; width: 100%; table-layout: fixed; font-size: 18px; line-height: 1.55; }
.workflow-table th, .workflow-table td { padding: 24px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.workflow-table thead th { border-top: 1px solid var(--line); font-size: 16px; font-weight: 600; }
.workflow-table tbody th { font-weight: 500; }
.workflow-table .draft { font-size: 18px; }
.mobile-label { display: none; }
.scenario { margin: 0; padding-left: 24px; font-size: 18px; line-height: 1.55; }
.scenario li + li { margin-top: 24px; }
.detail-grid, .component-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px 24px; margin-top: 64px; }
.component-grid { grid-template-columns: 1fr 1fr; }
.detail-grid .material, .component-grid .material { margin-top: 24px; }
.reflection-copy { display: grid; gap: 32px; margin-top: 32px; }
.testing-plan-copy { max-width: 52rem; margin-top: 32px; font: 400 20px/1.55 "DM Sans", Arial, sans-serif; }
.testing-plan-copy p + p { margin-top: 16px; }
.testing-plan-table { width: 100%; margin-top: 48px; border-collapse: collapse; table-layout: fixed; font: 400 18px/1.55 "DM Sans", Arial, sans-serif; }
.testing-plan-table th, .testing-plan-table td { padding: 24px 16px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; overflow-wrap: break-word; }
.testing-plan-table thead th { border-top: 1px solid var(--line); font-size: 16px; font-weight: 600; }
.testing-plan-table thead th:first-child { width: 25%; }
.testing-plan-table thead th:nth-child(2) { width: 40%; }
.testing-plan-table tbody th { font-weight: 400; }
.testing-mobile-label { display: none; }
.testing-plan-follow-up { margin-top: 48px; }
@media (max-width: 760px) {
  .testing-plan-copy { margin-top: 24px; font-size: 18px; }
  .testing-plan-copy p + p { margin-top: 12px; }
  .testing-plan-table { margin-top: 40px; }
  .testing-plan-table, .testing-plan-table tbody, .testing-plan-table tr, .testing-plan-table td, .testing-plan-table tbody th { display: block; width: 100%; }
  .testing-plan-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
  .testing-plan-table tr { padding: 24px 0; border-top: 1px solid var(--line); }
  .testing-plan-table tr:last-child { border-bottom: 1px solid var(--line); }
  .testing-plan-table th, .testing-plan-table td { padding: 0; border: 0; }
  .testing-plan-table td { margin-top: 24px; }
  .testing-mobile-label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 600; }
  .testing-plan-follow-up { margin-top: 40px; }
}
.reflection-list { max-width: 52rem; margin: 32px 0 0; padding-left: 1.3em; list-style: circle; font: 400 20px/1.55 "DM Sans", Arial, sans-serif; }
.reflection-list li + li { margin-top: 24px; }
.reflection-list li { padding-left: 8px; }
@media (max-width: 760px) {
  .reflection-list { font-size: 18px; }
}
.case-end { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 224px; padding-bottom: 80px; }
.next-project { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 32px; border: 1px solid var(--line); border-radius: 24px; width: min(100%,500px); transition: background 200ms; }
.next-project:hover { background: var(--case-accent); text-decoration: none; }
.next-project strong { display: block; margin-top: 12px; font-size: 24px; }
@media(max-width:1100px) { .paired, .reference-row { gap: 24px; } .comparisons { grid-template-columns: 1fr; } .detail-grid { grid-template-columns: 1fr; } .detail-grid article { display: grid; grid-template-columns: 2fr 3fr; gap: 24px; } .detail-grid .material { margin: 0; } }
@media(max-width:760px) { .hero-meta { grid-template-columns: 1fr 1fr; } .hero-tags span { font-size: 16px; } .paired, .reference-row, .comparisons, .detail-grid, .component-grid, .detail-grid article { display: grid; grid-template-columns: 1fr; gap: 32px; } .paired, .workflow-table, .detail-grid, .component-grid { margin-top: 48px; } .boundary { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; } .workflow-table, .workflow-table tbody, .workflow-table tr, .workflow-table td, .workflow-table tbody th { display: block; width: 100%; } .workflow-table thead { display: none; } .workflow-table tr { padding-block: 24px; border-top: 1px solid var(--line); } .workflow-table th, .workflow-table td { padding: 12px 0; border: 0; } .mobile-label { display: block; margin-bottom: 8px; font-size: 16px; color: #555550; font-weight: 400; } .detail-grid .material { margin-top: 0; } .case-end { flex-direction: column; align-items: stretch; margin-top: 144px; padding-bottom: 64px; } }
@media(prefers-reduced-motion:reduce) { .next-project { transition: none; } }
    .contact {
      --blue: #5044ff;
      --lime: #d9ff63;
      --font-sans: "DM Sans", Arial, sans-serif;
      --font-serif: "Newsreader", Georgia, serif;
      --type-contact-heading: clamp(5rem, 15vw, 15rem);
      --type-contact-copy: clamp(1.5rem, 2vw, 1.9rem);
      --type-contact-label: .85rem;
      --type-contact-email: clamp(2rem, 3.55vw, 4.2rem);
      --type-contact-arrow: clamp(1.8rem, 2.6vw, 3.2rem);
      --type-contact-social: clamp(1rem, 1.3vw, 1.35rem);
    }
    .contact {
      min-height: 85svh;
      display: grid;
      grid-template-columns: 1.05fr .95fr;
      grid-template-rows: 1fr auto;
      gap: 2rem 5rem;
      padding: 5rem 2rem 2rem;
      background: var(--blue);
      color: var(--lime);
    }
    .contact h2 {
      grid-column: 1;
      grid-row: 1;
      align-self: start;
      margin: 0;
      font: 400 var(--type-contact-heading)/.75 var(--font-serif);
      letter-spacing: -.04em;
    }
    .contact__bottom { display: contents; }
    .contact__bottom > p {
      grid-column: 1;
      grid-row: 2;
      align-self: end;
      margin: 0;
      max-width: 31rem;
      font-size: var(--type-contact-copy);
      line-height: 1.12;
      letter-spacing: -.025em;
    }
    .contact__links {
      grid-column: 2;
      grid-row: 1 / 3;
      align-self: center;
      display: grid;
      gap: 1.75rem;
    }
    .contact__label {
      margin: 0;
      font-size: var(--type-contact-social);
      font-weight: 600;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .contact__email {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 2rem;
      padding: 1.35rem 0 1.65rem;
      border-top: 1px solid currentColor;
      border-bottom: 1px solid currentColor;
      font: 500 var(--type-contact-email)/.95 var(--font-sans);
      letter-spacing: .005em;
      text-decoration: none;
    }
    .contact__email::after {
      content: none;
      flex: 0 0 auto;
      font: 400 var(--type-contact-arrow)/1 var(--font-sans);
      transition: transform .25s ease;
    }
    .contact__email:hover::after,
    .contact__email:focus-visible::after { transform: translate(.25rem, -.25rem); }
    .contact__socials {
      display: flex;
      gap: 2rem;
      justify-content: flex-end;
    }
    .contact__socials a {
      font-size: var(--type-contact-social);
      font-weight: 600;
    }

    @media (max-width: 760px) {
      .contact { --type-contact-email: clamp(1.65rem, 7vw, 2.65rem); }
      .contact {
        min-height: 90svh;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
        gap: 3rem;
        padding-inline: 1rem;
      }
      .contact h2 { grid-column: 1; grid-row: 1; }
      .contact__bottom { display: contents; }
      .contact__bottom > p { grid-column: 1; grid-row: 2; }
      .contact__links { grid-column: 1; grid-row: 3; width: 100%; align-self: end; }
      .contact__socials { justify-content: flex-start; }
    }

    button.contact__email { font-weight: 600; width: 100%; border-left: 0; border-right: 0; border-radius: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; }
    button.contact__email::after { content: none; }
    button.contact__email:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
    .email-copy-status { display: block; min-height: 1.5em; font-size: 14px; }
    .email-copy-icon { flex: 0 0 auto; width: 1em; height: 1em; }
    .contact { -webkit-font-smoothing: auto; }
    .contact__socials a { text-decoration: none; }
/* Keep each explanation beside its artifact on desktop. */
@media (min-width: 761px) {
  .detail-grid, .component-grid { grid-template-columns: 1fr; gap: 32px; }
  .detail-grid article, .component-grid article { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,3fr); gap: 48px; align-items: start; }
  .detail-grid .material, .component-grid .material { margin-top: 0; }
  .final-pair { grid-template-columns: minmax(0,1fr) minmax(0,4fr); gap: 32px; }
}

/* Hero and sidebar follow the established case-page components. */
.hero-artifact .hero-placeholders { display: block; background: #f5f5f5; }
.hero-meta { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; }
@media (max-width:1100px) { .hero-meta { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; } }
@media (max-width:760px) { .hero-meta { grid-template-columns: 1fr; } }
/* Equal desktop gaps between metadata blocks, sized to their full copy. */
@media (min-width: 1101px) {
  .hero-meta {
    grid-template-columns: max-content minmax(0, max-content) minmax(0, 1fr);
    column-gap: 72px;
  }
}

/* Context uses the editorial text treatment of the approved cases. */
.luma-context .editorial-intro { margin-top: 32px; max-width: 52rem; font: 400 20px/1.55 "DM Sans", Arial, sans-serif; }
.luma-context .editorial-intro + .editorial-intro { margin-top: 16px; }
@media (max-width:760px) {
  .luma-context .editorial-intro { margin-top: 24px; font-size: 18px; }
  .luma-context .editorial-intro + .editorial-intro { margin-top: 12px; }
}

/* Brief-to-workflow: explanatory table and non-interactive stage sequence. */
.luma-workflow .workflow-table { margin-top: 16px; }
.luma-workflow .workflow-table th { font-size: 16px; font-weight: 500; }
.luma-workflow .workflow-table td { font-size: 18px; font-weight: 400; }
.luma-workflow .workflow-table th:first-child, .luma-workflow .workflow-table td:first-child { padding-left: 0; padding-right: 32px; }
.luma-workflow .workflow-table th:last-child, .luma-workflow .workflow-table td:last-child { padding-right: 0; padding-left: 32px; }
.appointment-stages { margin-top: 64px; }
.stage-sequence { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 32px; list-style: none; margin: 32px 0 0; padding: 0; }
.stage-sequence li { position: relative; min-width: 0; }
.stage-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
/* Figma appointment components, enlarged uniformly for the case explanation. */
.stage-copy { zoom: 1.5; }
.stage-status { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 0; border-radius: 999px; font: 600 11px/14px "Mulish", sans-serif; white-space: nowrap; }
.stage-status img { display: block; flex: 0 0 5px; }
.stage-status--scheduled { background: #f0f3f6; border: 1px solid #e2e6ec; color: #526174; }
.stage-status--checked-in { background: #fff2dc; color: #c57a00; }
.stage-status--in-consultation { background: #edf2ff; color: #3169e8; }
.stage-status--completed { background: #fff; border: 1px solid #e2e6ec; color: #8793a5; }
.stage-action { display: inline-flex; align-items: center; justify-content: center; min-height: 0; padding: 8px 10px; border: 0; border-radius: 6px; background: #1686c4; color: #fff; font: 600 11px/14px "Mulish", sans-serif; white-space: nowrap; }
.stage-action--secondary { background: #fff; color: #0b1220; border: 1px solid #e2e6ec; }
.stage-no-action { display: inline-flex; align-items: center; min-height: 30px; font: 400 11px/14px "DM Sans", sans-serif; color: var(--muted); }
.workflow-sketch-arrow { position: absolute; right: -28px; top: 2px; width: 48px; height: 36px; color: var(--case-accent); }
.appointment-stages figcaption { margin-top: 32px; max-width: 52rem; font-size: 18px; line-height: 1.55; color: var(--muted); }
@media (max-width:1100px) and (min-width:761px) {
  .stage-sequence { gap: 24px; }
  .workflow-sketch-arrow { right: -23px; width: 32px; }
}
@media (max-width:760px) {
  .luma-workflow .workflow-table { margin-top: 12px; }
  .luma-workflow .workflow-table td:first-child, .luma-workflow .workflow-table td:last-child { padding: 0; }
  .luma-workflow .workflow-table td + td { margin-top: 24px; }
  .luma-workflow .workflow-table td p { margin-top: 12px; }
  .luma-workflow .mobile-label { margin: 0; }
  .appointment-stages { margin-top: 48px; }
  .stage-sequence { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
  .stage-copy { gap: 12px; }
  .workflow-sketch-arrow { top: auto; bottom: -52px; left: 12px; right: auto; width: 48px; height: 36px; transform: rotate(90deg); }
  .appointment-stages figcaption { margin-top: 24px; }
}
.luma-workflow .workflow-table thead th { font-weight: 700; }

/* Two framed component families with shared alignment. */
.stage-frame { padding: 24px; border: 1px solid var(--line); border-radius: 24px; }
.status-frame { margin-top: 32px; }
.action-frame { margin-top: 24px; }
.stage-frame h4 { margin: 0; font: 500 16px/1.4 "DM Sans", Arial, sans-serif; color: var(--muted); }
.stage-frame .stage-sequence, .stage-actions { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 32px; margin: 24px 0 0; padding: 0; list-style: none; }
.stage-actions li { min-width: 0; }
@media (max-width:1100px) and (min-width:761px) {
  .stage-frame { padding: 20px; }
  .stage-frame .stage-sequence, .stage-actions { gap: 24px; }
  .stage-frame .stage-copy { zoom: 1.25; }
}

/* Layout exploration: complete JPEGs in C, B order. */
.luma-layout .layout-intro { max-width: 52rem; margin-top: 32px; font: 400 20px/1.55 "DM Sans", Arial, sans-serif; }
.layout-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; margin-top: 64px; align-items: start; }
.layout-option { min-width: 0; }
.layout-option h3 { font: 600 20px/1.3 "DM Sans", Arial, sans-serif; }
.layout-selected { font-weight: 400; color: var(--muted); text-decoration: none; }
.layout-image-link { display: block; margin-top: 32px; border: 1px solid #e2e6ec; border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.layout-image-link:focus-visible { outline-offset: 4px; }
.design-system-intro { max-width: 52rem; margin-top: 32px; font: 400 20px/1.55 "DM Sans", Arial, sans-serif; }
.design-system-stack { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; align-self: stretch; }
.design-system-assets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 48px; align-items: start; }
.design-system-preview { display: block; width: 100%; padding: 0; border: 1px solid #e2e6ec; border-radius: 12px; overflow: hidden; background: transparent; cursor: zoom-in; }
.design-system-preview:disabled { cursor: default; opacity: 1; }
.design-system-placeholder { display: block; width: 100%; aspect-ratio: 4 / 3; background: #f5f5f5; }
.design-system-preview img { display: block; width: 100%; height: auto; }
.design-system-dialog { width: min(1600px, 96vw); max-width: 96vw; max-height: 94vh; margin: auto; padding: 16px; border: 1px solid #e2e6ec; border-radius: 12px; background: white; }
.design-system-dialog::backdrop { background: rgb(0 0 0 / 55%); }
.design-system-dialog form { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.design-system-close { width: 36px; height: 36px; border: 1px solid #e2e6ec; border-radius: 50%; background: white; font: 24px/1 Arial, sans-serif; cursor: pointer; }
.design-system-enlarged { overflow: auto; max-height: calc(94vh - 86px); }
.design-system-enlarged img { display: block; width: 100%; min-width: 749px; height: auto; }
@media (max-width: 760px) {
  .design-system-intro { margin-top: 24px; font-size: 18px; }
  .design-system-assets { grid-template-columns: 1fr; margin-top: 40px; }
  .design-system-stack { gap: 32px; }
}
.final-dashboard { margin-top: 48px; }
.final-dashboard-preview { display: block; width: 100%; padding: 0; border: 1px solid #e2e6ec; border-radius: 12px; overflow: hidden; background: transparent; cursor: zoom-in; }
.final-dashboard-preview img { display: block; width: 100%; height: auto; }
.final-dashboard-dialog { width: min(1600px, 96vw); max-width: 96vw; max-height: 94vh; margin: auto; padding: 16px; border: 1px solid #e2e6ec; border-radius: 12px; background: white; }
.final-dashboard-dialog::backdrop { background: rgb(0 0 0 / 55%); }
.final-dashboard-dialog form { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.final-dashboard-close { width: 36px; height: 36px; border: 1px solid #e2e6ec; border-radius: 50%; background: white; font: 24px/1 Arial, sans-serif; cursor: pointer; }
.final-dashboard-enlarged { overflow: auto; max-height: calc(94vh - 86px); }
.final-dashboard-enlarged img { display: block; width: 100%; min-width: 1440px; height: auto; }
@media (max-width: 760px) { .final-dashboard { margin-top: 32px; } }
.decisions-composition { display: grid; gap: 40px; margin-top: 48px; }
.decisions-copy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.decisions-copy h3 { font: 600 20px/1.3 "DM Sans", Arial, sans-serif; text-decoration: none; }
.decisions-copy p { margin-top: 16px; font: 400 18px/1.55 "DM Sans", Arial, sans-serif; }
.decisions-asset { min-width: 0; }
.appointment-rows-preview { display: grid; gap: 0; width: 100%; padding: 0; border: 1px solid #e2e6ec; background: transparent; text-align: left; cursor: zoom-in; }
.appointment-rows-preview img { display: block; width: 100%; height: auto; }
.appointment-rows-dialog { width: min(1400px, 96vw); max-width: 96vw; padding: 24px; border: 1px solid #e2e6ec; border-radius: 12px; margin: auto; background: white; }
.appointment-rows-dialog::backdrop { background: rgb(0 0 0 / 55%); }
.appointment-rows-dialog form { display: flex; justify-content: flex-end; margin-bottom: 24px; }
.rows-close { border: 1px solid #e2e6ec; border-radius: 50%; width: 36px; height: 36px; background: white; font: 24px/1 Arial, sans-serif; cursor: pointer; }
.rows-enlarged { overflow-x: auto; }
.rows-enlarged img { display: block; width: 100%; min-width: 760px; height: auto; }
@media (max-width: 760px) {
  .decisions-composition { grid-template-columns: 1fr; gap: 40px; margin-top: 32px; }
  .decisions-copy { grid-template-columns: 1fr; }
  .appointment-rows-dialog { padding: 16px; }
}
.layout-image-link img { display: block; width: 100%; height: auto; }
.layout-option > p { margin-top: 24px; font: 400 18px/1.55 "DM Sans", Arial, sans-serif; }
@media (max-width:760px) {
  .luma-layout .layout-intro { margin-top: 24px; font-size: 18px; }
  .layout-options { grid-template-columns: 1fr; gap: 48px; margin-top: 48px; }
  .layout-image-link { margin-top: 24px; }
  .layout-option > p { margin-top: 16px; }
}
@media (max-width:760px) {
  .stage-frame { padding: 20px; }
  .status-frame { margin-top: 24px; }
  .action-frame { margin-top: 24px; }
  .stage-frame .stage-sequence, .stage-actions { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
  .stage-actions .stage-no-action { min-height: 0; }
}
@media (min-width: 761px) {
  .stage-frame { max-width: 840px; }
  .stage-frame .stage-sequence, .stage-actions { gap: 24px; }
  .stage-frame .workflow-sketch-arrow { right: -22px; width: 36px; }
}

.workflow-table thead th,
.luma-workflow .workflow-table th,
.testing-plan-table thead th,
.mobile-label,
.testing-mobile-label { font-size: 18px; }

.layout-image-link { width: 100%; padding: 0; background: transparent; }
.layout-image-dialog { width: min(1600px, 96vw); max-width: 96vw; max-height: 94vh; margin: auto; padding: 16px; border: 1px solid #e2e6ec; border-radius: 12px; background: white; }
.layout-image-dialog::backdrop { background: rgb(0 0 0 / 55%); }
.layout-image-dialog form { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.layout-image-close { width: 44px; height: 44px; border: 1px solid #e2e6ec; border-radius: 50%; background: white; font: 24px/1 Arial, sans-serif; cursor: pointer; }
.layout-image-enlarged { overflow: auto; max-height: calc(94vh - 94px); }
.layout-image-enlarged img { display: block; width: 100%; min-width: 1100px; height: auto; }

.luma-workflow-desktop-break { display: none; }
@media (min-width: 1101px) {
  .luma-workflow-desktop-break { display: initial; }
}
