@font-face {
  font-family: 'Satoshi';
  src: url('assets/fonts/satoshi-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('assets/fonts/satoshi-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('assets/fonts/satoshi-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Exact Figma Design-to-Code: "Study 1 - VA" (Node 908:4268)
   ========================================================================== */

/* Design Tokens directly from Figma */
:root {
  --color-white: #FFFFFF;
  --color-border: #EBEBEB;
  --color-border-subtle: #C4C4C4;
  --color-black: #000000;
  --color-text-dark: #333333;
  --color-text-muted: #707070;
  --color-text-dim: #767676;
  --color-link: #0000FF;

  --font-satoshi: 'Satoshi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --content-width: 755px;
}

/* Base reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* No underlines anywhere in the system: links darken (and, in running text, sit in medium weight) instead */
a { text-decoration: none; }

html {
  scroll-behavior: smooth;
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-satoshi);
  color: var(--color-text-dark);
  background-color: #FFFFFF;
  line-height: 1.3;
}

/* Canvas Container: 1440px wide desktop frame from Figma */
.canvas-container {
  width: 100%;
  max-width: none;
  margin: 0;
  background-color: var(--color-white);
  min-height: 100vh;
  position: relative;
  border-radius: 0;
  overflow: clip;
}

/* ==========================================================================
   Header Navigation (Node 908:4269 - inset: [16px 60px 0 60px], h: 70px)
   ========================================================================== */
.figma-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 60px 0 60px;
}

.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0;
  gap: 16px;
}

/* Main Pill Box (flex-1, px: 24px, py: 16px, border-b #ebebeb) */
.header-nav-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--color-text-muted);
}

.nav-home, .nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  transition: color 0.15s ease;
}

.nav-home:hover, .nav-link:hover {
  color: var(--color-black);
}

.nav-links-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ==========================================================================
   Page Layout: Left Sidebar + Center 755px Column
   ========================================================================== */
.page-layout {
  position: relative;
  display: block;
  padding: 56px 60px 160px;
}

/* Left Sidebar Menu (Node 908:4548 - left: 58px, top: 142px, w: 96px) */
.sidebar-container {
  position: sticky;
  top: 130px;
  width: 96px;
  flex-shrink: 0;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.back-button {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.3;
  transition: color 0.15s ease;
}

.back-button:hover {
  color: var(--color-black);
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-item {
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
  transition: color 0.15s ease, font-weight 0.15s ease;
}

.menu-item:hover, .menu-item.active {
  color: var(--color-black);
  font-weight: 500;
}

/* Center Main Column (Exact 755px centered in Figma) */
.main-column {
  width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 112px; /* var(--l-2, 112px) from Figma */
}

/* ==========================================================================
   Pedagogy Hero Section (Node 908:4287)
   ========================================================================== */
.pedagogy-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.pedagogy-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.pedagogy-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.tagline {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.3;
}

.hero-title {
  font-size: 32px;
  font-weight: 500;
  color: var(--color-black);
  line-height: normal;
}

/* Layered Hero Image Container (Node 908:4292 - h: 365px, w: 755px) */
.presentation-hero-container {
  position: relative;
  width: 755px;
  height: 365px;
  overflow: hidden;
  background-color: #1a1a1a;
  border-radius: 4px;
}

/* Role Details Bar (Node 908:4301 - gap: 84px) */
.role-details-container {
  display: flex;
  gap: 84px;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.role-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 1.3;
}

.role-detail { width: 105px; }
.timeline-detail { width: 138px; }
.org-detail { width: 124px; }
.team-detail { width: 138px; }

.meta-label {
  color: var(--color-text-muted);
}

.meta-val {
  color: var(--color-text-muted);
}

.org-name {
  color: var(--color-black);
}

/* ==========================================================================
   Content Sections Flow (gap: 80px)
   ========================================================================== */
.content-sections-flow {
  display: flex;
  flex-direction: column;
  gap: 80px; /* var(--l, 80px) */
  width: 100%;
}

.flow-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* Typography styles matching Figma components */
.section-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-dim);
  line-height: normal;
}

.section-headline {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-black);
  line-height: 1.5;
}

.block-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-black);
  line-height: 1.5;
}

.body-p {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-dark);
  line-height: 1.3;
}

.figma-link {
  color: var(--color-link);
  text-decoration: none;
  cursor: pointer;
}

/* Generic Image Banners */
.image-banner-container {
  width: 100%;
  overflow: hidden;
  border-radius: 2px;
}

.full-img {
  width: 100%;
  height: auto;
  display: block;
}

/* SVG Line divider */
.section-divider {
  width: 100%;
  height: 0.5px;
  display: flex;
  align-items: center;
}

.divider-svg {
  width: 100%;
  display: block;
}

/* Subsection Text Blocks */
.overview-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.overview-subsections {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.text-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   Solution Cards (Node 908:4344 - gap: 16px, w: 755px)
   ========================================================================== */
.solution-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-top: 4px;
}

.activity-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: flex-end;
  width: 755px;
}

.activity-img-wrap {
  flex: 1;
  aspect-ratio: 1763 / 899;
  position: relative;
  overflow: hidden;
}

.activity-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.activity-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-black);
  line-height: 1.5;
}

.activity-desc {
  font-size: 14px;
  color: var(--color-text-dark);
  line-height: 1.3;
}

/* ==========================================================================
   Research: Interviews (Node 908:4376 - 2 images row, h: 230px, gap: 8px)
   ========================================================================== */
.interviews-images-row {
  display: flex;
  gap: 8px;
  width: 100%;
  height: 230px;
}

.interview-img-col {
  flex: 1;
  height: 230px;
  overflow: hidden;
}

.interview-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Classroom Video Player (Node 908:4401 - w: 755px, h: 518px)
   ========================================================================== */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  overflow: hidden;
  border-radius: 2px;
}

.video-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-credit {
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-top: 4px;
}

/* ==========================================================================
   Implementation: Bordered Activity Cards (Node 908:4425 - h: 339px, w: 370px)
   ========================================================================== */
.bordered-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}

.bordered-activity-card {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: flex-end;
  width: 755px;
}

.bordered-img-box {
  width: 370px;
  height: 339px;
  flex: 0 0 370px;
  box-sizing: border-box;
  border: 1px solid var(--color-border-subtle);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

/* Keep both activity photos in identically sized frames without cropping. */
.bordered-img-box .full-img,
.bordered-img-box .session-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gif-badge {
  position: absolute;
  left: 1px;
  bottom: 1px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 26px;
  padding: 4px 8px;
  box-sizing: border-box;
  background: #000;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.stat-big {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-black);
  line-height: 1.5;
}

/* ==========================================================================
   Projects Overview: Horizontal Scroll Carousel (Node 908:4470 - h: 439px)
   ========================================================================== */
.projects-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* ==========================================================================
   Learnings: 2x2 Grid (Node 908:4474)
   ========================================================================== */
.learnings-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 16px;
  width: 100%;
}

.learning-entry {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.learning-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-black);
  line-height: 1.5;
}

/* ==========================================================================
   Story Section: Sateesh Yadav (Node 908:4504)
   ========================================================================== */
.story-profile-row {
  display: flex;
  gap: 16px;
  align-items: center;
  width: 100%;
}

.profile-avatar-wrap {
  width: 69px;
  height: 69px;
  border-radius: 320px;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-text-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-black);
  line-height: 1.5;
}

.camera-caption {
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-top: -8px;
}

.camera-images-row {
  display: flex;
  gap: 16px;
  width: 100%;
}

.camera-col {
  flex: 1;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 2px;
}

.camera-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1120px) {
  .page-layout {
    padding: 40px 24px;
  }
  .figma-header {
    padding: 12px 24px 0 24px;
  }
  .sidebar-container {
    display: none;
  }
  .main-column, .presentation-hero-container, .activity-row, 
  .video-container, .bordered-activity-card, .projects-horizontal-scroll {
    width: 100%;
  }
  .project-slide {
    flex: 0 0 100%;
  }
}

@media (max-width: 768px) {
  .role-details-container {
    flex-wrap: wrap;
    gap: 24px;
  }
  .activity-row, .bordered-activity-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .bordered-img-box {
    width: 100%;
    flex: 0 0 auto;
    height: auto;
    aspect-ratio: 370 / 339;
  }
  .stats-three-cols, .learnings-matrix, .camera-images-row {
    flex-direction: column;
    grid-template-columns: 1fr;
  }
  .video-container {
    height: 300px;
  }
}


/* Accessibility and interaction refinements for the Ready for Dev implementation */
.skip-link {
  position: fixed;
  z-index: 2000;
  top: 8px;
  left: 8px;
  padding: 8px 16px;
  color: var(--color-black);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.header-nav-container {
  min-width: 0;
}

.header-nav-container a:focus-visible,
.figma-link:focus-visible,
.play-btn-link:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 4px;
}

.header-nav-container a[aria-current="location"] {
  color: var(--color-black);
  font-weight: 500;
}

.flow-section[id],
#overview,
#projects {
  scroll-margin-top: 104px;
}

@media (max-width: 768px) {
  .figma-header {
    padding: 12px 20px 0;
  }

  .header-nav-container {
    padding: 16px 4px;
  }

  .nav-links-right {
    gap: 16px;
  }

  .page-layout {
    padding: 40px 20px 96px;
  }

  .hero-title {
    font-size: clamp(26px, 7vw, 32px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   Portfolio architecture + Figma Ready for Dev corrections
   ========================================================================== */
.canvas-container {
  max-width: 1200px;
  width: 100%;
}

.page-layout {
  display: block;
  position: relative;
  padding: 56px 60px 120px;
}

.main-column {
  width: min(100%, var(--content-width));
  margin-inline: auto;
}

.sidebar-container {
  position: fixed;
  top: calc(var(--header-h, 57px) + 56px);
  left: 60px;
  z-index: 30;
  width: 96px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: transparent;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.3;
}

.back-button:hover,
.menu-item:hover {
  color: var(--color-black);
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.menu-item {
  display: block;
  max-width: 100%;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  transition: color 150ms ease;
}

.menu-item[aria-current="location"] {
  color: var(--color-black);
  font-weight: 500;
}

.header-nav-container a:focus-visible,
.sidebar-container a:focus-visible,
.figma-link:focus-visible,
.play-btn-link:focus-visible,
.skip-link:focus-visible,
.home-project-row a:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 4px;
}

.header-nav-container a[aria-current="location"] {
  color: inherit;
  font-weight: inherit;
}

/* The Figma hero is one composed wave artwork, not three stacked images. */
.presentation-hero-container {
  position: relative;
  width: 100%;
  max-width: 755px;
  aspect-ratio: 754 / 365;
  height: auto;
  overflow: hidden;
  border-radius: 0;
  background: #d0d0d0;
}

.flow-section[id],
#overview,
#projects,
#solution,
#research,
#implementation,
#results,
#reflections {
  scroll-margin-top: 112px;
}

.case-study-footer,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 12px;
}

.case-study-footer a,
.site-footer a {
  color: inherit;
  text-decoration: none;
}

.case-study-footer a:hover,
.site-footer a:hover {
  color: var(--color-black);
}

/* Home: match the clean editorial layout in the Landing page frame. */
.home-main {
  padding: 0 60px;
}

@media (min-width: 1025px) {
  .sidebar-container {
    display: flex;
    /* Align the sidebar's left edge with the header navigation content. */
    transform: translateX(24px);
  }
  .main-column {
    width: min(100%, var(--content-width));
    margin-inline: auto;
  }
  .presentation-hero-container {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .sidebar-container {
    display: none;
  }
  .page-layout {
    padding: 40px 24px 100px;
  }
  .home-main {
    padding: 0 24px;
  }
          }

@media (max-width: 768px) {
  .canvas-container {
    border-radius: 0;
  }
  .figma-header {
    padding: 12px 20px 0;
  }
  .header-inner {
    height: 62px;
  }
  .header-nav-container {
    padding: 14px 0;
  }
  .nav-links-right {
    gap: 16px;
  }
          .role-details-container {
    gap: 22px;
  }
  .case-study-footer,
  .site-footer {
    flex-wrap: wrap;
    padding-inline: 20px;
  }
}

/* Responsive layout pass — keep the reading column capped, not the site canvas. */
.canvas-container {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  border-radius: 0;
}

html,
body {
  width: 100%;
  min-width: 0;
}

body {
  overflow-x: clip;
}

.page-layout {
  width: 100%;
  min-width: 0;
  padding-inline: clamp(20px, 4.2vw, 60px);
}

.main-column {
  width: min(100%, var(--content-width));
  min-width: 0;
  margin-inline: auto;
}

.main-column > *,
.flow-section,
.overview-header,
.text-block,
.image-banner-container,
.presentation-hero-container,
.role-details-container,
.stat-container,
.projects-block {
  min-width: 0;
  max-width: 100%;
}

.presentation-hero-container {
  width: 100%;
  height: auto;
  aspect-ratio: 754 / 365;
}

.role-details-container {
  width: 100%;
  gap: clamp(16px, 4vw, 84px);
  flex-wrap: wrap;
}

.role-details-container > * {
  min-width: 0;
  max-width: 100%;
}

.full-img {
  display: block;
  max-width: 100%;
  height: auto;
}

.image-banner-container .full-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.projects-block {
  width: 100%;
  display: block;
  min-width: 0;
}

.projects-figma-frame {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2584 / 1612;
  object-fit: contain;
}

.barriers-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: #f1f1f1;
  border-radius: 2px;
}

.barriers-video-frame iframe {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 1024px) {
  .canvas-container {
    border-radius: 0;
  }
  .page-layout {
    padding-inline: 24px;
  }
  .sidebar-container {
    display: none;
  }
  .main-column {
    width: min(100%, var(--content-width));
  }
}

@media (max-width: 640px) {
  .page-layout {
    padding: 28px 16px 80px;
  }
  .main-column {
    gap: 72px;
  }
  .presentation-hero-container {
    aspect-ratio: 4 / 3;
  }
  .role-details-container {
    gap: 20px;
  }
  .barriers-video-frame {
    aspect-ratio: 16 / 9;
  }
  .section-headline {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .figma-header {
    padding-inline: 16px;
  }
  .header-inner {
    gap: 12px;
  }
  .nav-links-right {
    gap: 12px;
  }
}


/* Case-study sidebar collision guard.
   Hide the fixed section navigation once the viewport can no longer fit
   the sidebar, its gutter, and the centered reading column without overlap.
   Keep the same threshold on both case studies. */
@media (max-width: 1200px) {
  .page-layout > .sidebar-container {
    display: none !important;
  }

  .page-layout {
    padding-left: 32px;
    padding-right: 32px;
  }

  .page-layout > .main-column {
    width: min(100%, 754px);
    max-width: 754px;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .page-layout {
    padding: 28px 16px 80px;
  }

  .page-layout > .main-column {
    width: 100%;
    max-width: 100%;
  }
}


/* ==========================================================================
   MakeO case study (Figma frame 908:4562 "Study 2 - Design System")
   754px column; every top-level container is separated by 80px.
   ========================================================================== */
.mk-study {
  width: 754px;
  gap: 80px;
}

.mk-study p,
.mk-study h1,
.mk-study h2,
.mk-study h3,
.mk-study figure,
.mk-study blockquote,
.mk-study ol {
  margin: 0;
}

.mk-study img,
.mk-study video {
  max-width: none;
}

.mk-h18 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-black);
}

.mk-h14 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-black);
}

.mk-stack4,
.mk-stack16,
.mk-block {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.mk-stack4 { gap: 4px; }
.mk-stack16,
.mk-block { gap: 16px; }
.mk-section-pad { padding: 4px 0; }
.mk-pt16 { padding-top: 16px; }

.mk-study .section-label { line-height: normal; }

.mk-wide {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.mk-bordered { border: 1px solid var(--color-border); }

/* Intro (908:4578) */
.mk-intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 0 32px;
}

.mk-intro-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 0;
}

.mk-headings {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mk-study .hero-title { line-height: normal; }

.mk-hero {
  position: relative;
  width: 100%;
  height: 365px;
  overflow: hidden;
}

.mk-details {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.mk-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.mk-detail-role,
.mk-detail-timeline { white-space: normal; }
.mk-detail-role { width: 134px; }
.mk-detail-role p:last-child { width: 121px; }
.mk-detail-timeline { width: 93px; }

/* Multi-column text groups */
.mk-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mk-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.mk-cols > * {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mk-journey > * { gap: 8px; }
.mk-research > * { gap: 12px; }
.mk-impact > * { gap: 16px; }
.mk-learnings > * { gap: 12px; }

.mk-step {
  font-size: 11px;
  line-height: normal;
  color: var(--color-black);
}

/* Design decisions (908:4716) */
.mk-decisions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
}

.mk-decision-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mk-decision {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.mk-decision-row-1 .mk-decision { height: 205.974px; }
.mk-decision-row-2 .mk-decision { height: 184px; }

.mk-decision > p {
  font-size: 14px;
  line-height: 1.3;
  color: var(--color-black);
}

.mk-decision-box {
  position: relative;
  flex: 1 0 0;
  min-height: 0;
  background: #fbfcfc;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}

.mk-palette img {
  position: absolute;
  left: 24px;
  top: calc(50% + 4px);
  transform: translateY(-50%);
  width: 357px;
  height: 93px;
}

.mk-icons-inner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 173px;
  height: 94px;
}

.mk-icons-row {
  display: flex;
  align-items: center;
  gap: 36px;
}

.mk-icon-figma {
  position: relative;
  width: 51px;
  height: 50px;
  border-radius: 12px;
  overflow: hidden;
}

.mk-icon-figma img {
  position: absolute;
  left: -31.25%;
  top: -34.04%;
  width: 162.5%;
  height: 165.96%;
}

.mk-icon-strapi {
  width: 51px;
  height: 51px;
  border-radius: 16px;
  object-fit: cover;
}

.mk-icons-inner p {
  font-size: 11px;
  line-height: 1.4;
  color: var(--color-text-muted);
  text-align: center;
}

.mk-mobile-first {
  flex: 1 0 0;
  min-height: 0;
  overflow: hidden;
}

.mk-mobile-first img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 416 / 304;
}

.mk-decision-row-2 .mk-tokens { flex: 0 0 150px; }

.mk-tokens img {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 240.667px;
  height: 196.346px;
  border-radius: 12px;
}

.mk-company img {
  position: absolute;
  left: 20px;
  top: 16px;
  width: 211px;
  height: 172px;
  border-radius: 14.058px;
}

.mk-swap-inner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 154.575px;
}

.mk-swap-inner span {
  padding: 16px 0;
  background: #eef9fc;
  border: 1.414px dashed #ace0f0;
  border-radius: 7.54px;
  font-family: 'Poppins', var(--font-satoshi);
  font-size: 8.25px;
  font-weight: 500;
  line-height: 10.721px;
  color: #222d30;
  text-align: center;
  white-space: nowrap;
}

/* Pin code "Before" panel (908:4757) */
.mk-pin-before {
  position: relative;
  height: 442px;
  background: #f7f7f7;
  border: 1px solid var(--color-border);
  border-radius: 16px;
}

.mk-pin-before-label {
  position: absolute;
  left: 28px;
  top: 32px;
  transform: translateY(-50%);
}

.mk-pin-before-phones img,
.mk-pin-before-phones video {
  position: absolute;
  top: 72px;
  width: 155px;
  height: 339px;
  object-fit: cover;
  border: 0.461px solid #bde3ff;
  border-radius: 5.533px;
}

.mk-pin-before-phones > :first-child { left: 48px; }
.mk-pin-before-phones > :last-child { left: 216px; }

.mk-pin-problems {
  position: absolute;
  left: 420px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 242px;
}

.mk-pin-problems ol { padding-left: 20px; }

/* Side-by-side before/after stages */
.mk-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.mk-pair figure {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.mk-pair figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mk-stage {
  position: relative;
  height: 442px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
}

.mk-stage-gray { background: #f7f7f7; }

.mk-stage img,
.mk-stage video {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.mk-stage .mk-pin-india { left: 50%; top: 50%; width: 182px; height: 387px; border-radius: 18.525px; }
.mk-stage .mk-pin-uae { left: 50%; top: calc(50% - 104px); width: 268px; height: 571px; border-radius: 35px; }
.mk-stage .mk-loc-before,
.mk-stage .mk-loc-after { height: 393px; border: 0.393px solid var(--color-border); border-radius: 4.713px; }
.mk-stage .mk-loc-before { width: 189px; }
.mk-stage .mk-loc-after { left: 50%; width: 178px; }
.mk-stage .mk-coupon-without { top: 50%; width: 239px; height: 404px; }
.mk-stage .mk-coupon-with { left: 50%; top: 50%; width: 210px; height: 392px; }

/* Micro interactions (Ready for Dev, 1127:6919), in the study's own pattern: a grey group label,
   bordered stages and a title + line caption under each visual. */
#flow-micro > .mk-friction-flow { margin-top: 16px; }

.mk-micro-skel,
.mk-micro-grid figure { display: flex; flex-direction: column; gap: 16px; min-width: 0; margin: 0; }

.mk-micro-skel figcaption,
.mk-micro-grid figcaption { display: flex; flex-direction: column; gap: 4px; }

.mk-micro-skel .mk-stage { height: auto; aspect-ratio: 800 / 428; }
.mk-stage .mk-micro-skeleton { position: static; transform: none; display: block; width: 100%; height: 100%; object-fit: cover; }

.mk-micro-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.mk-micro-grid .mk-stage { height: 340px; background: #f7f7f7; }
.mk-micro-grid .mk-stage .mk-macro-phone { height: 290px; }

@media (max-width: 640px) {
  .mk-micro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .mk-micro-grid .mk-stage { height: 300px; }
  .mk-micro-grid .mk-stage .mk-macro-phone { height: 250px; }
}

/* Outcome (908:4952) */
.mk-outcome { gap: 40px; }

.mk-metric {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-black);
}

@media (max-width: 760px) {
  .mk-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .mk-detail,
  .mk-detail-role,
  .mk-detail-timeline,
  .mk-detail-role p:last-child { width: auto; white-space: normal; }

  .mk-pin-before {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px 24px 28px;
  }
  .mk-pin-before-label,
  .mk-pin-problems { position: static; transform: none; width: auto; }
  .mk-pin-before-phones { display: flex; gap: 12px; }
  .mk-pin-before-phones img,
  .mk-pin-before-phones video { position: static; }
}

@media (max-width: 640px) {
  .main-column.mk-study { gap: 64px; }
  .mk-hero { height: 240px; }
        .mk-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-cols,
  .mk-cols-2,
  .mk-pair { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .mk-decision-row,
  .mk-cards { flex-direction: column; align-items: stretch; gap: 16px; }
  .mk-decision,
  .mk-card { flex: 0 0 auto; width: 100%; }
  .mk-decision-row-2 .mk-tokens { flex-basis: 150px; }
  .mk-pin-before-phones img,
  .mk-pin-before-phones video { width: calc(50% - 6px); height: auto; aspect-ratio: 155 / 339; }
}


/* MakeO UX additions: results strip, journey flow, next step, image zoom */
.mk-glance {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mk-glance-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 12px;
  line-height: 1.3;
}

.mk-glance-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mk-glance-row p {
  display: flex;
  flex-direction: column;
  gap: 4px;
}


.mk-journeyflow {
  position: relative;
  height: 496px;
  background: var(--color-white);
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
}

.mk-journeyflow img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 701px;
  height: 450px;
  max-width: calc(100% - 24px);
  object-fit: contain;
}

.mk-next {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.mk-next-link {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}

.mk-next-link { align-self: flex-start; }
.mk-next-secondary { font-size: 14px; font-weight: 400; }

.mk-zoomable { cursor: zoom-in; }

.mk-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.96);
  cursor: zoom-out;
}

.mk-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 640px) {
  .mk-glance-row { grid-template-columns: minmax(0, 1fr); }
  .mk-journeyflow { height: auto; padding: 12px; }
  .mk-journeyflow img { position: static; transform: none; width: 100%; height: auto; max-width: 100%; }
}

/* MakeO redesign: problem, solution, motion */
.mk-video { display: block; background: var(--color-white); object-fit: cover; }

.mk-problem-viz {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px 0 24px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* Drop-off: a large figure beside 20 dots. Filled dots are the users who stayed. */
.mk-dot-stat {
  display: grid;
  grid-template-columns: minmax(170px, 0.3fr) minmax(0, 1fr);
  column-gap: 32px;
  align-items: center;
  gap: 24px;
  --dot: var(--color-black);
}
.mk-dot-stat + .mk-dot-stat { padding-top: 20px; border-top: 1px solid var(--color-border); }
.mk-dot-stat .mk-dot-num { font-size: clamp(44px, 5vw, 64px); font-weight: 400; line-height: 1; letter-spacing: -0.02em; color: var(--color-black); }
.mk-dot-stat .mk-dot-num-accent { color: #f08a50; }
.mk-dot-body { display: flex; flex-direction: column; gap: 14px; }
.mk-dot-label { font-size: 14px; line-height: 1.3; color: var(--color-text-dark); }
.mk-dots { display: grid; grid-template-columns: repeat(10, 18px); gap: 10px 12px; }
.mk-dots-accent { --dot: #f08a50; }
.mk-dots i { display: block; width: 18px; height: 18px; border-radius: 50%; background: #d9d9d9; }
.mk-dots i.on { background: var(--dot); }
@media (max-width: 640px) {
  .mk-dot-stat { grid-template-columns: 1fr; gap: 12px; }
  .mk-dots { grid-template-columns: repeat(10, 14px); gap: 8px 9px; }
  .mk-dots i { width: 14px; height: 14px; }
}

.mk-friction-group { display: flex; flex-direction: column; gap: 16px; }

.mk-friction-flow {
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
  color: var(--color-text-dim);
}

.mk-friction-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.mk-friction-list li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.mk-friction-list h4 { margin: 0; }

.mk-evidence { display: flex; flex-direction: column; gap: 8px; }
.mk-evidence figcaption { font-size: 11px; line-height: 1.4; color: var(--color-text-dim); }

.mk-moves {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mk-move { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.mk-move-media {
  aspect-ratio: 4 / 3;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 4px;
}

.mk-move-media img,
.mk-move-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.mk-move-media img { object-position: left top; }
.mk-move-media-motion video { object-fit: contain; }

.mk-insight {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.mk-research-section .mk-journey { margin-top: 8px; }

.mk-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mk-trio .mk-stage { height: 380px; }
.mk-trio .mk-stage .mk-coupon-before { width: 160px; height: 359px; border-radius: 4px; }
.mk-trio .mk-stage .mk-coupon-without { top: 50%; width: 200px; height: 338px; }
.mk-trio .mk-stage .mk-coupon-with { top: 50%; left: 50%; width: 181px; height: 338px; }

@media (max-width: 760px) {
  .mk-trio .mk-stage { height: 340px; }
}

@media (max-width: 640px) {
  .mk-friction-list,
  .mk-moves,
  .mk-trio { grid-template-columns: minmax(0, 1fr); }
  .mk-trio .mk-stage { height: 442px; }
  .mk-trio .mk-stage .mk-coupon-before { width: 190px; height: 426px; }
  .mk-trio .mk-stage .mk-coupon-without { width: 239px; height: 404px; }
  .mk-trio .mk-stage .mk-coupon-with { width: 210px; height: 392px; }
}

/* MakeO spacing rhythm: clear breathing room between sub-blocks */
#problem > .mk-pt16,
.mk-research-section > .mk-pt16 { padding-top: 24px; }
.mk-friction-group { margin-top: 16px; }
#flows > [id^="flow-"] { margin-top: 48px; }
#flows > .mk-pt16 { padding-top: 0; }

/* MakeO: before/after tags, media controls, cross-links, quotes */
.mk-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 12px;
  border: 1px solid var(--color-black);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.mk-tag-before {
  background: var(--color-white);
  border-color: var(--color-border);
  color: var(--color-text-muted);
}

.mk-tag-after {
  background: var(--color-black);
  color: var(--color-white);
}

.mk-pill {
  position: absolute;
  z-index: 3;
  padding: 4px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-black);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.mk-pill:hover { border-color: var(--color-black); }
.mk-pill:focus-visible { outline: 2px solid var(--color-black); outline-offset: 2px; }

.mk-motion-toggle { right: 12px; bottom: 12px; }
.mk-move-media { position: relative; }
.mk-move-media .mk-motion-toggle { right: 8px; bottom: 8px; }

.mk-zoomwrap { position: relative; display: block; }
.mk-enlarge { top: 12px; right: 12px; opacity: 0; transition: opacity 0.15s ease, border-color 0.15s ease; }
.mk-zoomwrap:hover .mk-enlarge,
.mk-journeyflow:hover .mk-enlarge,
.mk-enlarge:focus-visible { opacity: 1; }

@media (hover: none) {
  .mk-enlarge { opacity: 1; }
}

:root { --color-hover-line: #f26b21; }

.mk-link {
  color: var(--color-black);
  text-decoration: none;
  transition: color 0.15s ease;
}

.mk-flow-index a,
.mk-next-link {
  text-decoration: none;
  transition: color 0.15s ease;
}

.mk-flow-index a { color: var(--color-text-muted); }
.mk-next-link { color: var(--color-black); }


.mk-flow-index a:hover,
.mk-flow-index a[aria-current] { color: var(--color-black); }


.mk-link:focus-visible,
.mk-flow-index a:focus-visible,
.mk-next-link:focus-visible { outline: 2px solid var(--color-black); outline-offset: 2px; border-radius: 2px; }

.mk-friction-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 12px;
  line-height: 1.3;
}

.mk-flow-index {
  position: sticky;
  top: calc(var(--header-h, 58px) - 1px);
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 12px 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.mk-flow-index a {
  font-size: 14px;
  line-height: 1.3;
}

#problem-location,
#problem-coupon { scroll-margin-top: calc(var(--header-h, 58px) + 32px); }

#flow-pincode,
#flow-location,
#flow-coupon,
#flow-macro,
#flow-micro { scroll-margin-top: calc(var(--header-h, 58px) + 64px); }

.mk-quote {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.mk-quote p {
  font-size: 14px;
  line-height: 1.3;
  color: var(--color-text-dark);
}

.mk-quote footer {
  font-size: 12px;
  line-height: 1.3;
  color: var(--color-text-dim);
}

.mk-quote footer strong {
  margin-right: 8px;
  font-weight: 500;
  color: var(--color-black);
}

/* MakeO: role block */
.mk-role-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }

@media (max-width: 640px) {
  .mk-role-list { grid-template-columns: minmax(0, 1fr); }
}

/* Case studies: return-to-position pill */
.back-to-spot {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-spot.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.back-to-spot button {
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-black);
  cursor: pointer;
}

.back-to-spot-main {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px 0 0 999px;
}

.back-to-spot-close {
  padding: 8px 16px 8px 8px;
  border-radius: 0 999px 999px 0;
  color: var(--color-text-muted);
}

.back-to-spot:hover { border-color: var(--color-black); }
.back-to-spot button { transition: background-color 0.15s ease; }
.back-to-spot button:hover { background: #f3f3f3; }
.back-to-spot button:active { background: var(--color-border); }
.back-to-spot button:focus-visible { outline: 2px solid var(--color-black); outline-offset: -2px; }

@media (prefers-reduced-motion: reduce) {
  .back-to-spot { transition: none; }
}

@media (min-width: 1201px) {
  .back-to-spot { left: 60px; transform: translateY(8px); }
  .back-to-spot.is-visible { transform: none; }
}

@media (max-width: 640px) {
  .back-to-spot { bottom: 16px; }
}

@media (max-width: 640px) {
  .mk-flow-index { flex-wrap: nowrap; overflow-x: auto; gap: 24px; scrollbar-width: none; }
  .mk-flow-index::-webkit-scrollbar { display: none; }
  .mk-flow-index a { flex-shrink: 0; white-space: nowrap; }
}

/* Header: no empty space under its rule; sticky bars read --header-h so they sit flush below it. */
.header-inner { height: auto; }

/* Solution move 2: the four shared screens light up in sequence */
.mk-flowstrip { background: #fbfcfc; }

.mk-fs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  height: 100%;
  padding: 24px 12px 16px;
  align-content: center;
  list-style: none;
}

.mk-fs-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  opacity: 0.4;
  animation: mk-fs-step 8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 2s);
}

.mk-fs-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 2;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-white);
}

.mk-fs-item span {
  font-size: 11px;
  line-height: 1.4;
  font-weight: 500;
  text-align: center;
  color: var(--color-black);
}

.mk-flowstrip:hover .mk-fs-item { animation-play-state: paused; }

@keyframes mk-fs-step {
  0%, 22% { opacity: 1; transform: translateY(-4px); }
  28%, 100% { opacity: 0.4; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mk-fs-item { animation: none; opacity: 1; }
}

@keyframes mk-phone-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@media (max-width: 640px) {
  .mk-hero { height: 336px; }
      }

/* Macro interactions: three matching stages under two group labels */
.mk-macro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.mk-macro-group { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mk-macro-group-wide { grid-column: span 2; }

.mk-macro-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.mk-macro-grid figure {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.mk-macro-grid figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mk-macro-grid .mk-stage { height: 400px; background: #f7f7f7; }

.mk-stage .mk-macro-phone {
  height: 320px;
  width: auto;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-white);
  object-fit: cover;
}

@media (max-width: 640px) {
  .mk-macro-grid,
  .mk-macro-pair { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .mk-macro-group-wide { grid-column: auto; }
}

/* One tag that shows both states, for clips that contain a before and an after */
.mk-tag-both {
  display: flex;
  padding: 0;
  overflow: hidden;
  border-color: var(--color-black);
}

.mk-tag-both > span { padding: 4px 12px; }

/* Slot selection trio uses the same tall stage as the reminder group */
.mk-slots .mk-stage { height: 400px; background: #f7f7f7; }

/* Macro interactions: clear breaks between the slot, reminder and add-to-cart groups */
#flow-macro > .mk-friction-flow { margin-top: 16px; }
#flow-macro > .mk-macro-grid { margin-top: 32px; }

/* Key decisions: trade-offs as a compact, scannable list */
.mk-decide-wrap { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.mk-decide-wrap h3 { margin: 0; }

.mk-decide { margin: 0; }

.mk-decide-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--color-border);
}

.mk-decide-row dt {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-black);
}

.mk-decide-row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  color: var(--color-text-dark);
}

@media (max-width: 640px) {
  .mk-decide-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* Sub-blocks: a small label, then a title, then content */
.mk-sublabel {
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
  color: var(--color-text-dim);
}

.mk-subsection { margin-top: 32px; }

.mk-decide-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px;
  margin-top: 16px;
  padding-bottom: 8px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text-dim);
}

.mk-decide { counter-reset: decision; }
.mk-decide-row { counter-increment: decision; }

.mk-decide-row dt::before {
  content: counter(decision, decimal-leading-zero);
  display: block;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text-dim);
}

@media (max-width: 640px) {
  .mk-decide-head { display: none; }
}

/* Problem: where users dropped off, and how we found out */
.mk-dropoff {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.mk-dropoff li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  border-top: 2px solid var(--color-black);
}

.mk-dropoff h4 { margin: 0; }

.mk-dropoff-tag {
  font-size: 11px;
  line-height: 1.4;
  color: var(--color-text-dim);
}

.mk-sources > * { gap: 4px; }
.mk-sources h4 { margin: 0; }

@media (max-width: 640px) {
  .mk-dropoff { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Collapsible blocks (My role, Key decisions) */
.mk-toggle > summary {
  position: relative;
  padding-right: 72px;
  cursor: pointer;
  list-style: none;
}

.mk-toggle > summary::-webkit-details-marker { display: none; }

.mk-toggle > summary::after {
  content: "Show";
  position: absolute;
  top: 0;
  right: 16px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}

.mk-toggle > summary::before {
  content: "";
  position: absolute;
  top: 4px;
  right: 2px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--color-text-muted);
  border-bottom: 1.5px solid var(--color-text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.15s ease;
}

.mk-toggle[open] > summary::after { content: "Hide"; }
.mk-toggle[open] > summary::before { top: 7px; transform: rotate(-135deg); }

.mk-toggle > summary:hover::after { color: var(--color-black); }
.mk-toggle > summary:hover::before { border-color: var(--color-black); }

.mk-toggle > summary:focus-visible { outline: 2px solid var(--color-black); outline-offset: 4px; border-radius: 2px; }

.mk-toggle[open] > summary { margin-bottom: 16px; }
.mk-toggle[open] > .mk-decide-head { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .mk-toggle > summary::before { transition: none; }
}


/* ==========================================================================
   UI kit: accent colour, links and buttons
   Neutrals carry the page; the ember accent appears only on interaction
   (hover, focus, current item, selection). It never fills large areas and
   never colours body text.
   ========================================================================== */
:root {
  --accent: #f26b21;
  --accent-press: #d95a14;
  --accent-strong: #c2410c;
  --accent-100: #ffe4d2;
  --accent-50: #fff4ec;
  --color-hover-line: var(--accent);
  --ease: 150ms ease;
}

::selection {
  background: var(--accent-100);
  color: var(--color-black);
}

/* ---- Links ---------------------------------------------------------------
   No underlines anywhere. Links get darker on hover; links inside running
   text are set in medium weight so they read as links at rest; the current
   or selected item is medium weight and black. */
.mk-link,
.figma-link,
.mk-flow-index a,
.mk-next-link,
.project-title a,
.project-read-more,
.site-footer a,
.case-study-footer a,
.nav-home,
.nav-link,
.back-button {
  text-decoration: none;
  transition: color var(--ease);
}

/* Inline text links: medium weight and black at rest */
.mk-link,
.figma-link {
  color: var(--color-black);
  font-weight: 500;
}

.mk-link:hover,
.figma-link:hover,
.mk-flow-index a:hover,
.mk-next-link:hover,
.project-title a:hover,
.project-read-more:hover,
.site-footer a:hover,
.case-study-footer a:hover,
.nav-home:hover,
.nav-link:hover,
.back-button:hover {
  color: var(--color-black);
}

/* Arrows nudge in the direction they point */
.project-read-more span[aria-hidden],
.mk-next-link span[aria-hidden],
.back-button span[aria-hidden] {
  display: inline-block;
  transition: transform var(--ease);
}



/* ---- Sidebar: ember marker on hover and on the current item ------------- */
.menu-item { position: relative; }

.menu-item::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: -12px;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform var(--ease);
}

.menu-item:hover::before { transform: scaleY(0.5); }
.menu-item[aria-current="location"]::before,
.menu-item.active::before { transform: scaleY(1); }

/* ---- Buttons ---------------------------------------------------------------
   .btn-primary   black fill, ember on hover (text stays black for contrast)
   .btn-secondary outline, ember border and soft tint on hover
   .btn-text      medium-weight text that turns black on hover
   Pills (.mk-pill, the return pill) follow the secondary rules. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease), transform 100ms ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--color-black); color: var(--color-white); }
.btn-primary:hover { background: var(--accent); color: var(--color-black); }
.btn-primary:active { background: var(--accent-press); }

.btn[disabled],
.btn[aria-disabled="true"] {
  background: #f3f3f3;
  border-color: transparent;
  color: #a0a0a0;
  text-decoration: none;
  cursor: not-allowed;
  pointer-events: none;
}

.btn:focus-visible,
.mk-pill:focus-visible,
.back-to-spot button:focus-visible,
.mk-toggle > summary:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

/* Small pills (Pause / Play, Enlarge) */
.mk-pill:hover { border-color: var(--accent); background: var(--accent-50); }
.mk-pill:active { background: var(--accent-100); }

/* Return pill */
.back-to-spot:hover { border-color: var(--accent); }
.back-to-spot button:hover { background: var(--accent-50); }
.back-to-spot button:active { background: var(--accent-100); }

/* Collapsible blocks */
.mk-toggle > summary:hover::after { color: var(--color-black); }
.mk-toggle > summary:hover::before { border-color: var(--accent); }


/* Touch screens: larger tap targets */
@media (pointer: coarse) {
  .mk-pill { padding: 8px 16px; }
  .back-to-spot button { padding-top: 12px; padding-bottom: 12px; }
  .menu-item, .nav-link, .nav-home { padding-block: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .menu-item::before,
  .project-read-more span[aria-hidden],
  .mk-next-link span[aria-hidden],
  .back-button span[aria-hidden] { transition: none; }
}


/* ---- Icons: sized to the font, 4px from the label -------------------------
   Arrows are drawn as masks that follow the text colour, so they scale with
   font-size and always match the label height. */
:root { --icon-gap: 4px; }

.icon {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  transition: transform var(--ease);
}

.icon-right { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='3 3 18 18' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.icon-left { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='3 3 18 18' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E"); }
.icon-up-right { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='3 3 18 18' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E"); }
.icon-up { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='3 3 18 18' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E"); }

/* ---- Links and buttons that carry an icon ---------------------------------
   Label and icon move together: darker on hover, the icon nudges. No line. */
.project-read-more,
.mk-next-link,
.back-button,
.link-icon,
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: var(--icon-gap);
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  text-decoration: none;
  transition: color var(--ease);
}


.project-read-more:hover,
.mk-next-link:hover,
.back-button:hover,
.link-icon:hover,
.btn-text:hover {
  color: var(--color-black);
}

/* Buttons: same 4px gap between label and icon */
.btn { gap: var(--icon-gap); }

/* Icons nudge in the direction they point */
.link-icon:hover .icon-up { transform: translateY(-2px); }
.link-icon:hover .icon-left { transform: translateX(-2px); }
.link-icon:hover .icon-right,
.btn:hover .icon-right { transform: translateX(2px); }

@media (prefers-reduced-motion: reduce) {
  .icon { transition: none; }
}

/* Back: its own control on the case studies. Keeps the original quiet behaviour
   (grey to black on hover, no underline, no accent) with the font-height icon. */
.back-button {
  display: flex;
  align-items: center;
  align-self: auto;
  gap: 8px;
  width: auto;
  max-width: none;
  padding-bottom: 0;
  text-decoration: none;
  box-shadow: none;
  transition: color 0.15s ease;
}

.back-button:hover {
  color: var(--color-black);
  text-decoration: none;
  box-shadow: none;
}

/* Keep exploring and Back: colour change only, the arrow stays put */
.mk-next-link:hover span[aria-hidden],
.back-button:hover span[aria-hidden] { transform: none; }

/* Header: Home, Playground and About keep their original quiet interaction
   (grey to black on hover, no underline, no accent). */
.nav-home,
.nav-link {
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-home:hover,
.nav-link:hover {
  color: var(--color-black);
  text-decoration: none;
}


/* ==========================================================================
   Case-study parity: Building self-learning follows the same tokens as MakeO
   ========================================================================== */
:root {
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
}

/* Media corners: 12px everywhere (hero artwork stays square, avatar stays round) */
.image-banner-container,
.video-container,
.barriers-video-frame,
.camera-col,
.activity-img-wrap,
.bordered-img-box,
.projects-figma-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Borders: the same hairline as MakeO */
.bordered-img-box { border-color: var(--color-border); }

/* Metrics: 24px medium, as on MakeO */
.stat-big {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

/* Results at a glance: reuses the page's own outcome numbers, no new copy */
.cs-glance {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.cs-glance-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cs-glance-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-glance-item .stat-big { margin: 0; }
.cs-glance-label { font-size: 14px; line-height: 1.3; color: var(--color-text-dark); }

@media (max-width: 640px) {
  .cs-glance-row { grid-template-columns: minmax(0, 1fr); }
}

/* Enlarge pill hosts on the Building self-learning page */
.activity-img-wrap,
.bordered-img-box,
.image-banner-container,
.projects-block { position: relative; }

.activity-img-wrap:hover .mk-enlarge,
.bordered-img-box:hover .mk-enlarge,
.image-banner-container:hover .mk-enlarge,
.projects-block:hover .mk-enlarge { opacity: 1; }

/* Meta row: same distribution and 16px rhythm as MakeO */
.role-details-container {
  justify-content: space-between;
  gap: 16px;
}

/* Typography parity: both case studies use the same text styles */
.main-column strong,
.main-column b {
  font-weight: 500;
  color: var(--color-black);
}

/* Small badge uses the 11px / 500 tag style */
.gif-badge {
  left: 12px;
  bottom: 12px;
  min-width: 0;
  height: auto;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  line-height: 1.4;
}

/* Meta values and 11px captions share one muted color */
.meta-val.org-name { color: var(--color-text-muted); }
.stat-sub,
.video-credit,
.camera-caption { color: var(--color-text-dim); }

/* Step numbers use the same 1.4 line height as the other 11px text */
.mk-step { line-height: 1.4; }

/* ==========================================================================
   Visual parity (3): Building photos use MakeO's stage + caption pattern
   ========================================================================== */
.solution-cards-container,
.bordered-cards-container {
  display: grid;
  gap: 16px;
  margin-top: 4px;
}

.solution-cards-container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bordered-cards-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.activity-row,
.bordered-activity-card {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  gap: 16px;
}

.activity-img-wrap,
.bordered-img-box,
.interview-img-col,
.camera-col {
  position: relative;
  box-sizing: border-box;
  padding: 16px;
  background: #f7f7f7;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.activity-img-wrap { flex: none; width: 100%; aspect-ratio: 4 / 3; }
.bordered-img-box { flex: none; width: 100%; height: auto; aspect-ratio: 370 / 339; }

.activity-img-wrap img,
.bordered-img-box .full-img,
.bordered-img-box .session-img,
.interview-img-col img,
.camera-col img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.activity-text { flex: none; gap: 4px; }

.interviews-images-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  height: auto;
}

.interview-img-col { height: auto; aspect-ratio: 373 / 230; }

.camera-images-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.camera-col { aspect-ratio: 1 / 1; }

.interview-img-col:hover .mk-enlarge,
.camera-col:hover .mk-enlarge { opacity: 1; }

@media (max-width: 640px) {
  .solution-cards-container,
  .bordered-cards-container,
  .interviews-images-row,
  .camera-images-row { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Visual parity (5): quotes use the thin-line quote style
   ========================================================================== */
.quote-text-wrap {
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.story-profile-row .profile-name { margin: 0; }

/* ==========================================================================
   Visual parity (8): dividers are the same 1px hairline on both pages
   ========================================================================== */
.section-divider {
  height: 0;
  border-top: 1px solid var(--color-border);
}

.section-divider .divider-svg { display: none; }

/* MakeO gets the same rule under each section label */
.mk-study > section:not(.mk-intro) > .section-label,
.mk-study > #results > .mk-stack16:first-child > .section-label {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

/* Building: neighbouring text blocks are always 32px apart, like Overview */
.research-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.research-inner > .text-block + .text-block,
.flow-section > .text-block + .text-block { margin-top: 8px; }

/* ==========================================================================
   Building self-learning: heading system (scoped to this page only)
   Same sizes and weights as the rest of the site, with a softer ink for the
   14px subheads and a tighter bond between a title and its paragraph.

   Level        Size / weight   Ink
   Hero title   32 / 500        #000
   Headline     18 / 500        #000
   Subhead      14 / 500        --bsl-ink (#1a1a1a)
   Card title   14 / 500        --bsl-ink
   Metric       24 / 500        #000
   Label        12 / 500        #767676 (dim)
   ========================================================================== */
.bsl-study {
  --bsl-ink: #1a1a1a;
}

.bsl-study .section-headline,
.bsl-study .stat-big { color: var(--color-black); }

.bsl-study .block-title,
.bsl-study .activity-title,
.bsl-study .stat-header,
.bsl-study .learning-title,
.bsl-study .profile-name { color: var(--bsl-ink); }

/* A title sits 8px above its paragraph (the blocks themselves stay 32px apart) */
.bsl-study .block-title + .body-p,
.bsl-study .section-headline + .body-p { margin-top: -4px; }

@keyframes bsl-stage-step {
  0%, 16% { opacity: 1; transform: translateY(-4px); }
  22%, 100% { opacity: 0.7; transform: none; }
}

@media (max-width: 640px) {
  .bsl-study .presentation-hero-container { aspect-ratio: auto; height: 420px; }
  }


/* Tabs: show one friction group at a time (all groups show if scripts are off) */
.mk-tabs { display: none; }

.mk-js .mk-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  border-bottom: 1px solid var(--color-border);
}

.mk-js .mk-friction-head { display: none; }

.mk-tab {
  margin-bottom: -1px;
  padding: 8px 0;
  border: 0;
  border-bottom: 0;
  background: none;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.3;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--ease);
}

.mk-tab:hover { color: var(--color-black); }

.mk-tab[aria-selected="true"] {
  font-weight: 500;
  color: var(--color-black);
}

.mk-tab:focus-visible { outline: 2px solid var(--color-black); outline-offset: 2px; border-radius: 2px; }

.mk-friction-group[hidden] { display: none; }

/* Flows jump bar uses the same tab style as the Problem tabs */
.mk-flow-index {
  gap: 8px 24px;
  padding: 0;
  border-bottom: 1px solid var(--color-border);
}

.mk-flow-index a {
  margin-bottom: -1px;
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.3;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--ease);
}

.mk-flow-index a:hover {
  color: var(--color-black);
  text-decoration: none;
}

.mk-flow-index a[aria-current] {
  font-weight: 500;
  color: var(--color-black);
  text-decoration: none;
}

.mk-flow-index a:focus-visible { outline: 2px solid var(--color-black); outline-offset: 2px; border-radius: 2px; }

/* Where it happened + How we found out share one block; the evidence folds away */
.mk-evidence-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

@keyframes th-draw { from { stroke-dashoffset: 1; } }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; list-style: none; }

.chip-list li {
  padding: 4px 12px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-dark);
  transition: border-color var(--ease), background-color var(--ease);
}

.chip-list li:hover { border-color: var(--accent); background: var(--accent-50); }

/* ==========================================================================
   Play page (Figma: high-fidelity play, 1105:3474). A media stage on the left,
   the project text and thumbnails on the right. Arrows step through a
   project's images; thumbnails switch projects. All projects show stacked
   when scripts are off.
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.play-main { padding: 0 60px 120px; }

.play-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 239px;
  gap: 31px;
  margin: 60px 12px 0;
}

.play-media { position: relative; min-width: 0; background: #f3f3f3; }
.play-slide { display: block; width: 100%; height: auto; margin-bottom: 16px; }

.play-js .play-media { aspect-ratio: 798 / 449; }
.play-js .play-slide {
  position: absolute;
  inset: 0;
  height: 100%;
  margin: 0;
  object-fit: cover;
  opacity: 0;
  transition: opacity 400ms ease;
}
.play-js .play-slide.is-active { opacity: 1; }

.play-arrows { display: none; }
.play-js .play-arrows {
  position: absolute;
  left: 22px;
  bottom: 15px;
  z-index: 2;
  display: flex;
  gap: 12px;
}

.play-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 103px;
  background: rgba(255, 255, 255, 0.31);
  cursor: pointer;
  transition: background-color var(--ease), opacity var(--ease);
}

.play-arrow img { display: block; width: 20px; height: 20px; }
.play-arrow:hover:not(:disabled) { background: rgba(255, 255, 255, 0.7); }
.play-arrow:disabled { opacity: 0.45; cursor: default; }
.play-arrow:focus-visible { outline: 2px solid var(--color-black); outline-offset: 2px; }

.play-side { display: flex; flex-direction: column; min-width: 0; }

.play-infos { display: flex; flex-direction: column; gap: 40px; }
.play-js .play-info:not(.is-active) { display: none; }

.play-info { display: flex; flex-direction: column; gap: 8px; max-width: 194px; }

.play-title { font-size: 14px; font-weight: 500; line-height: 1.5; color: #333; }

.play-info p,
.play-facts {
  font-size: 11px;
  line-height: 1.4;
  color: var(--color-text-dim);
}

.play-info a {
  color: var(--color-text-dark);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--ease);
}
.play-info a:hover { color: var(--color-black); }

.play-facts { padding-left: 16.5px; list-style: disc; }
.play-note { margin-top: 24px; }

.play-thumbs {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-top: auto;
  padding-top: 40px;
  padding-bottom: 30px;
  list-style: none;
}

.play-thumbs { display: none; }
.play-js .play-thumbs { display: flex; }

.play-thumb {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform var(--ease);
}

.play-thumb img { display: block; height: auto; }
.play-thumb-cmf img { width: 57px; }
.play-thumb-rhythm img { width: 50px; border: 0.287px solid var(--color-border); border-radius: 3.447px 3.447px 0 0; }
.play-thumb-icon img { width: 38px; }

/* Thumbnails: the others sit lighter; hover and the current one are full strength */
.play-thumb { opacity: .45; transition: transform var(--ease), opacity var(--ease); }
.play-thumb:hover { transform: translateY(-2px); opacity: .8; }
.play-thumb[aria-current="true"] { opacity: 1; }
.play-thumb:focus-visible { outline: 2px solid var(--color-black); outline-offset: 4px; }

@media (max-width: 900px) {
  .play-stage { grid-template-columns: minmax(0, 1fr); gap: 24px; margin: 40px 0 0; }
  .play-info { max-width: 32em; }
  .play-thumbs { padding: 8px 0 0; }
}

@media (max-width: 768px) {
  .play-main { padding: 0 20px 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .play-js .play-slide, .play-thumb { transition: none; }
}

/* Play: video slide and click-to-load embeds (nothing third-party loads until asked). */
video.play-slide { background: #000; object-fit: cover; }

.play-embed { position: relative; margin-bottom: 16px; }
.play-embed-poster { display: block; width: 100%; height: auto; }

.play-js .play-embed-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.play-embed-load {
  position: absolute;
  right: 22px;
  bottom: 15px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-black);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  box-shadow: 0 0 0 1px var(--color-border);
  transition: box-shadow var(--ease), background-color var(--ease);
}

.play-embed-load:hover { box-shadow: 0 0 0 1px var(--accent); background: var(--accent-50); }
.play-embed-load:focus-visible { outline: 2px solid var(--color-black); outline-offset: 2px; }

.play-embed-frame { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; background: var(--color-white); }
.play-embed.is-loaded .play-embed-load { display: none; }
.play-embed.is-loaded .play-embed-poster { visibility: hidden; }

.play-slide[inert] { pointer-events: none; }

.play-js .play-arrows[hidden] { display: none; }

.play-hint { margin-top: 4px; }

/* ==========================================================================
   Shared page intro (Play and About) and the Play page, tuned to the rest of
   the site: the same tight Satoshi type, ember numbers, hairline rules and
   12px corners.
   ========================================================================== */
.pg-hero { padding-top: 72px; }


.pg-lead { max-width: 32em; margin-top: 28px; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.45; color: var(--color-text-muted); }

.ab-num { margin-right: 8px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--accent-strong); }

/* Play */
.play-stage { margin: 64px 0 0; gap: 40px; grid-template-columns: minmax(0, 1fr) 260px; }
.play-media { border-radius: var(--radius-md); overflow: hidden; }

.play-arrows { align-items: center; gap: 8px; }
.play-arrow { width: 36px; height: 36px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18); }
.play-arrow:hover:not(:disabled) { background: var(--color-white); }
.play-arrow:disabled { opacity: 0.55; }
.play-count {
  margin-left: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-dark);
}

.play-info { max-width: 260px; gap: 12px; }
.play-index { padding-top: 12px; border-top: 1px solid var(--color-border); font-size: 12px; color: var(--color-text-muted); }
.play-info .play-index { color: var(--color-text-muted); }
.play-title { font-size: 26px; font-weight: 500; line-height: 1.1; letter-spacing: -0.04em; color: var(--color-black); }
.play-info p { font-size: 13px; line-height: 1.5; }
.play-info p.play-index { font-size: 12px; line-height: 1.4; }
.play-note { margin-top: 12px; padding-left: 12px; border-left: 2px solid var(--accent); color: var(--color-text-dark); }
.play-facts { font-size: 13px; }

.play-thumbs { gap: 16px; padding-bottom: 8px; }
.play-thumb-cmf img { width: 72px; }
.play-thumb-rhythm img { width: 63px; }
.play-thumb-icon img { width: 48px; }
.play-thumb img { border-radius: 6px; }

@media (max-width: 900px) {
  .pg-hero { padding-top: 56px; }
  .play-stage { margin-top: 40px; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .play-info { max-width: 32em; }
}

@media (max-width: 768px) {
  .play-title { font-size: 24px; }
}

.th-more {
  display: inline-block;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-dark);
  text-decoration: none;
  transition: color var(--ease);
}

.th-more::after { content: " →"; }
.th-more:hover { color: var(--color-black); }
.th-more:focus-visible { outline: 2px solid var(--color-black); outline-offset: 4px; }

/* Play: the judge's quote, set large so it is read. */
.play-quote { margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--accent); }
.play-info .play-quote p { font-size: 20px; font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; color: var(--color-black); }
.play-quote figcaption { margin-top: 8px; font-size: 12px; line-height: 1.4; }
.play-info .play-quote a { color: var(--color-text-muted); }
.play-info .play-quote a:hover { color: var(--color-black); }

/* Icon links in footers carry no line either. */
.site-footer .link-icon,
.site-footer .link-icon:hover,
.case-study-footer .link-icon,
.case-study-footer .link-icon:hover { text-decoration: none; }

/* No visible page title on Play and About: the lead line opens the page. */
.pg-lead { margin-top: 0; max-width: 36em; font-size: clamp(18px, 2vw, 24px); line-height: 1.35; letter-spacing: -0.015em; color: var(--color-text-dark); }
.pg-hero { padding-top: 64px; }

/* Header: the current page reads a shade darker (On-surface-text-gray). */
.nav-home[aria-current="page"],
.nav-link[aria-current="page"] { color: #333333; }
.nav-home[aria-current="page"]:hover,
.nav-link[aria-current="page"]:hover { color: var(--color-black); }

/* Design system study (Klinikal): cover, pull quotes, pillar images, toast rules and a four-up impact grid. */
.ds-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2304 / 1116;
  object-fit: cover;
}

/* Klinikal hero: the see-through hero image over slow, warm drifting glows
   (coral, peach and brand red). Still for reduced motion. */
.ds-hero-glow { position: relative; overflow: hidden; background: #fde8e1; isolation: isolate; }
.ds-hero-glow .ds-cover { position: relative; }
.ds-glow { position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; border-radius: 50%; filter: blur(60px); opacity: 0.85; will-change: transform; }
.ds-glow.g1 { background: #ff9a7a; left: -20%; top: -40%; animation: ds-drift1 18s ease-in-out infinite alternate; }
.ds-glow.g2 { background: #e03c31; opacity: 0.55; right: -25%; top: -30%; animation: ds-drift2 22s ease-in-out infinite alternate; }
.ds-glow.g3 { background: #ffd2a8; left: 20%; bottom: -55%; animation: ds-drift3 20s ease-in-out infinite alternate; }
.ds-glow.g4 { background: #ffb4a6; right: 0; bottom: -45%; width: 55%; animation: ds-drift4 24s ease-in-out infinite alternate; }
.ds-glow.g5 { background: #ffe9c7; opacity: 0.7; left: 38%; top: 10%; width: 30%; animation: ds-drift5 16s ease-in-out infinite alternate; }
@keyframes ds-drift1 { to { transform: translate(35%, 30%) scale(1.15); } }
@keyframes ds-drift2 { to { transform: translate(-30%, 35%) scale(0.9); } }
@keyframes ds-drift3 { to { transform: translate(-25%, -30%) scale(1.2); } }
@keyframes ds-drift4 { to { transform: translate(-40%, -20%) scale(1.1); } }
@keyframes ds-drift5 { to { transform: translate(-60%, 40%) scale(1.3); } }
@media (prefers-reduced-motion: reduce) {
  .ds-glow { animation: none; }
}

.ds-pull { padding: 0 0 0 16px; border-top: 0; border-left: 2px solid var(--accent); }
.ds-pull p { font-size: 16px; line-height: 1.45; color: var(--color-text-dark); }

.ds-pillars > * { gap: 8px; }

.ds-pillars img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 789 / 618;
  margin-bottom: 8px;
  object-fit: cover;
  object-position: top left;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.ds-cost { font-size: 12px; line-height: 1.4; color: var(--accent-strong); }

/* Component template: a dotted canvas hero (same size on every tab, so nothing jumps), then
   States, Interaction and Properties parts separated by hairlines. */
.ds-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  aspect-ratio: 2 / 1;
  padding: clamp(20px, 6%, 48px);
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: #f7f7f7;
}

.ds-canvas {
  background-image: radial-gradient(circle, #d2d2d2 1px, transparent 1.3px);
  background-size: 14px 14px;
  background-position: 7px 7px;
}

.ds-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ds-stage .ds-hero-bar { width: min(66%, 420px); height: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.12)); }
.ds-stage .ds-hero-card,
.ds-stage .ds-hero-phone { filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.08)); }

.ds-part {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.ds-sheet {
  margin: 4px 0 0;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.ds-sheet-tint { background: #f7f7f7; }
.ds-sheet img { display: block; width: 100%; height: auto; }

.ds-panel-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.ds-panel { display: block; width: 100%; height: auto; border: 1px solid var(--color-border); border-radius: 8px; }
.ds-panel-text { display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 640px) {
  .ds-stage { aspect-ratio: 4 / 3; }
  .ds-panel-row { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
}

.ds-rules { display: flex; flex-direction: column; gap: 12px; list-style: none; }

.ds-rules li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-text-dark);
}

.ds-rules li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-white);
}

.ds-rules .is-do::before { content: "\2713"; background: #15803d; }
.ds-rules .is-dont::before { content: "\2715"; background: #b91c1c; }

.ds-states { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ds-impact { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .ds-impact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-states { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .ds-impact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .ds-states { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   About. Quiet and small: one intro line, a short facts row and a thin strip
   of photos. No rules, numbers or dots.
   ========================================================================== */
.about-main { padding: 0 60px 120px; }
.about-main .pg-hero { padding-top: 64px; }
.about-main .pg-lead { max-width: 30em; text-wrap: pretty; }

.ab-stage { display: block; }
.ab-text { display: flex; flex-direction: column; gap: 56px; max-width: 880px; }
.ab-photos { max-width: 880px; margin-top: 72px; }

.ab-top {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.ab-me { min-width: 0; }

.ab-me img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 120 / 131;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #f3f3f3;
}

.ab-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ab-heading { font-size: 14px; font-weight: 400; line-height: 1.4; color: var(--color-text-muted); }
.ab-list { display: flex; flex-direction: column; gap: 20px; list-style: none; }
.ab-role { font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--color-black); }
.ab-when { margin-top: 2px; font-size: 13px; line-height: 1.3; color: var(--color-text-muted); }

/* Photos: one row of small, equal-height pictures; each keeps its own shape.
   --r is width / height, --row the target height. Rows wrap and even out on
   narrower screens, and the last row keeps its natural size. */
.ab-gallery {
  --row: min(96px, calc((100vw - 220px) / 8));
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
}

.ab-gallery li { flex: var(--r) 1 calc(var(--r) * var(--row)); min-width: 0; }

.ab-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--r);
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  border-radius: var(--radius-sm);
  background: #f3f3f3;
}

.ab-gallery::after { content: ""; flex: 1000 1 0; }

@media (max-width: 900px) {
  .ab-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .ab-me { grid-column: 1 / -1; max-width: 160px; }
}

@media (max-width: 768px) {
  .about-main { padding: 0 20px 80px; }
  .about-main .pg-hero { padding-top: 40px; }
  .ab-text { gap: 40px; }
  .ab-photos { margin-top: 56px; }
  .ab-top { grid-template-columns: minmax(0, 1fr); }

  /* Phones: a tidy 4 x 2 grid of small tiles, the last one spanning two. */
  .ab-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 88px)); gap: 8px; }
  .ab-gallery::after { display: none; }
  .ab-gallery li { position: relative; aspect-ratio: 1; }
  .ab-gallery li:nth-child(7) { grid-column: span 2; aspect-ratio: auto; }
  .ab-gallery .ab-shot { position: absolute; inset: 0; height: 100%; }
  .ab-gallery img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}

/* About: photos open larger in a quiet full-screen viewer. The close button, caption and
   steps sit in fixed places, so they never move when the photo changes. */
.ab-shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  font: inherit;
  cursor: zoom-in;
}

.ab-shot img { transition: opacity var(--ease); }
.ab-shot:hover img { opacity: 0.85; }
.ab-shot:focus-visible { outline: 2px solid var(--color-black); outline-offset: 3px; }

.ab-lightbox {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 72px 24px 136px; /* room for the close button above, and the caption and steps below */
  border: 0;
  background: rgba(255, 255, 255, 0.985);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--color-black);
  overflow: auto;
  overscroll-behavior: contain;
}

.ab-lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ab-lb-in 160ms ease;
}

.ab-lightbox::backdrop { background: transparent; }

@keyframes ab-lb-in { from { opacity: 0; } }

.ab-lb-img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 1100px);
  max-height: calc(100vh - 208px);
  max-height: calc(100dvh - 208px);
  border-radius: var(--radius-sm);
}

.ab-lb-caption {
  position: absolute;
  left: 50%;
  bottom: 76px;
  width: min(calc(100% - 48px), 40em);
  margin: 0;
  transform: translateX(-50%);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
  color: var(--color-text-dark);
}

.ab-lb-caption[hidden] { display: none; }

.ab-lb-bar {
  position: absolute;
  left: 50%;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.ab-lb-count {
  min-width: 3.5em;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--color-text-muted);
}

.ab-lb-step,
.ab-lb-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-text-dark);
  cursor: pointer;
  transition: border-color var(--ease);
}

.ab-lb-step:hover,
.ab-lb-close:hover { border-color: var(--accent); }

.ab-lb-close { position: absolute; top: 20px; right: 24px; }

.ab-lb-close svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.ab-lb-step:focus-visible,
.ab-lb-close:focus-visible { outline: 2px solid var(--color-black); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .ab-lightbox[open] { animation: none; }
  .ab-shot img { transition: none; }
}

/* About: book a call. A short note and a button that opens Calendly's scheduler in a popup;
   it sits in the right-hand column on wide screens and below the details everywhere else. */
.ab-book {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 880px;
  margin-top: 56px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: #f7f7f7;
}

.ab-book-text { max-width: 26em; font-size: 15px; line-height: 1.45; color: var(--color-text-dark); }

@media (min-width: 1280px) {
  .ab-stage {
    display: grid;
    grid-template-columns: minmax(0, 880px) minmax(320px, 1fr);
    column-gap: 64px;
    align-items: start;
  }

  .ab-book { justify-self: end; width: min(100%, 380px); margin-top: 64px; }
}

@media (max-width: 768px) {
  .ab-book { margin-top: 40px; }
}

/* Case studies: the motion toggle is an icon (pause bars / play triangle) in a small round pill. */
.mk-pill.mk-icon-pill {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
}

.mk-icon-pill svg { display: block; width: 14px; height: 14px; fill: currentColor; }

@media (pointer: coarse) {
  .mk-pill.mk-icon-pill { width: 40px; height: 40px; padding: 0; }
}


/* MakeO hero: "screen wall" with makeO wordmark (study hero + landing card) */
.mkw {
  position: relative;
  display: block;
  overflow: hidden;
  container-type: inline-size;
  background: radial-gradient(90% 120% at 70% 30%, #e03c31 0%, #7a1c15 45%, #1a0907 100%);
}
.mkw::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(26, 9, 7, 0.55), transparent 22%, transparent 78%, rgba(26, 9, 7, 0.6)); }
.mkw-plane {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  gap: 1.9cqw;
  transform: translate(-50%, -50%) rotate(-16deg) skewX(8deg) scale(0.8);
}
.mkw-col { display: flex; flex-direction: column; gap: 1.9cqw; animation: mkw-up 38s linear infinite; }
.mkw-col:nth-child(even) { animation-name: mkw-down; margin-top: -17cqw; }
.mkw-col:nth-child(3) { animation-duration: 46s; }
.mkw-scr { display: block; flex-shrink: 0; width: 14cqw; height: 30.3cqw; overflow: hidden; border-radius: 1.9cqw; background: #fff; box-shadow: 0 2.6cqw 5.3cqw rgba(0, 0, 0, 0.35); }
.mkw .mkw-scr img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transform: none; }
.mkw-scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(42% 46% at 50% 50%, rgba(26, 9, 7, 0.72), rgba(26, 9, 7, 0) 100%); }
.mkw-wm {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  font-family: 'Poppins', var(--font-satoshi);
  font-weight: 600;
  font-size: 14.8cqw;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 1.3cqw 5.3cqw rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
@keyframes mkw-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes mkw-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .mkw-col { animation: none; }
}

/* Building hero: a photo from the student interviews */
.bsl-hero-photo { overflow: hidden; border-radius: 4px; background: #eee; }
.bsl-hero-photo img,
.bsl-hero-photo video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
@media (max-width: 640px) { .bsl-study .bsl-hero-photo { aspect-ratio: 4 / 3; height: auto; } }
/* ==========================================================================
   Landing: the Index hero, then each study as a row (details left, hero
   right) that runs edge to edge with the header line. Type, rules and
   metrics follow the case-study pages.
   ========================================================================== */
.hm-main { padding: 0 60px; }

/* Hero (from the Index landing) */
.hm-hero { margin: 104px 0 128px; }
.hm-kicker { display: flex; align-items: center; gap: 16px; margin-bottom: 48px; }
.hm-kicker p { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.35; font-weight: 500; color: var(--color-black); }
.hm-kicker span { font-weight: 400; color: var(--color-text-muted); }
.hm-hero h1 {
  max-width: 13em;
  font-size: clamp(44px, 7vw, 108px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: var(--color-black);
}
.hl {
  background: linear-gradient(var(--accent-100), var(--accent-100)) 0 90% / 100% 0.26em no-repeat;
  animation: hl-draw 900ms 400ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
@keyframes hl-draw { from { background-size: 0 0.26em; } }


.hm-project {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 2.2fr);
  gap: 48px;
  align-items: start;
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}

.hm-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hm-eyebrow { font-size: 14px; line-height: 1.4; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.hm-name { font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; color: var(--color-black); }
.hm-desc { max-width: 36ch; }

.hm-meta { margin: 8px 0 0; }
.hm-meta div { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--color-border); font-size: 14px; line-height: 1.3; }
.hm-meta div:last-child { border-bottom: 1px solid var(--color-border); }
.hm-meta dt { color: var(--color-text-muted); }
.hm-meta dd { margin: 0; color: #333; }

.hm-metric { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; font-size: 14px; color: var(--color-text-muted); }
.hm-metric span { font-size: 24px; font-weight: 500; line-height: 1.1; color: var(--color-black); font-variant-numeric: tabular-nums; }

.hm-more { align-self: flex-start; margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--color-text-dark); }

.hm-visual { display: block; aspect-ratio: 754 / 365; overflow: hidden; border-radius: 4px; }
.hm-visual:not(.mkw):not(.ds-hero-glow):not(.ds-jelly):not(.hm-soon-visual) { background: #f2f2f2; }
.hm-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }

.hm-more:hover { color: var(--color-black); }

/* About */
.hm-about {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 2.2fr);
  gap: 48px;
  margin: 128px 0 120px;
}
.hm-label { font-size: 14px; font-weight: 500; color: var(--color-black); }
.hm-about-text { max-width: 34em; font-size: clamp(20px, 2vw, 26px); line-height: 1.35; letter-spacing: -0.01em; color: var(--color-black); margin-bottom: 16px; }
.hm-about .chip-list { margin-top: 24px; }

@media (max-width: 1120px) {
  .hm-main { padding: 0 24px; }
}
@media (max-width: 900px) {
  .hm-project, .hm-about { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hm-visual { order: -1; }
  .hm-desc { max-width: none; }
}
@media (max-width: 768px) {
  .hm-main { padding: 0 20px; }
  .hm-hero { margin: 56px 0 80px; }
  .hm-kicker { margin-bottom: 32px; }
  .hm-project { padding: 32px 0; }
  .hm-about { margin: 96px 0 80px; gap: 16px; }
}
@media (max-width: 380px) {
  .hm-main { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hl { animation: none; }
}

/* ==========================================================================
   Cursor (script.js): dot, link ring, labelled pill, text caret.
   ========================================================================== */
.cur-on, .cur-on *, .cur-on *::before, .cur-on *::after { cursor: none !important; }
.cur-on.cur-native, .cur-on.cur-native * { cursor: auto !important; }
.cur-on.cur-native a, .cur-on.cur-native button { cursor: pointer !important; }

.cur {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2147483000;
  pointer-events: none;
  will-change: transform;
  mix-blend-mode: difference;
}
.cur[data-state="link"], .cur[data-state="pill"] { mix-blend-mode: normal; }
.cur::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
  translate: -50% -50%;
  transition: width 220ms cubic-bezier(0.2, 0.7, 0.2, 1), height 220ms cubic-bezier(0.2, 0.7, 0.2, 1), border-radius 220ms ease, background-color 180ms ease, border-color 180ms ease, opacity 150ms ease, scale 150ms ease;
}
.cur-label {
  position: absolute;
  left: 0;
  top: 0;
  translate: -50% -50%;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--color-black, #111);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  scale: 0.6;
  transition: opacity 160ms ease, scale 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cur.is-hidden::before, .cur.is-hidden .cur-label { opacity: 0; }

/* Links and buttons: an orange ring around the pointer */
.cur[data-state="link"]::before {
  width: 36px;
  height: 36px;
  background: rgba(242, 107, 33, 0.08);
  border: 1.5px solid var(--accent, #f26b21);
}
/* Images that open full size: a labelled pill */
.cur[data-state="pill"]::before { opacity: 0; width: 0; height: 0; }
.cur[data-state="pill"] .cur-label { opacity: 1; scale: 1; }
/* Text: a thin caret */
.cur[data-state="text"]::before { width: 2px; height: 22px; border-radius: 1px; }

.cur.is-down::before { scale: 0.8; }
.cur.is-down .cur-label { scale: 0.92; }
/* The cursor says "Enlarge", so the corner tag only shows for keyboard focus
   (and on touch, where the custom cursor is off). */
.cur-on .mk-enlarge:not(:focus-visible) { opacity: 0 !important; pointer-events: none; }

/* Klinikal: how the library is organised (tokens → library groups →
   collective components → products) */
.ds-map { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.ds-map-board {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: clamp(16px, 4%, 32px);
  border-radius: var(--radius-md);
  background-color: #f7f7f7;
}
.ds-map-tier {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 8px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  color: #333;
}
.ds-map-tier > span:not(.ds-map-tag) + span:not(.ds-map-tag)::before { content: "·"; margin-right: 8px; color: var(--color-border-subtle); }
.ds-map-tag { font-size: 12px; font-weight: 500; color: var(--color-black); margin-right: 4px; }
.ds-map-arrow { width: 1px; height: 18px; background: var(--color-border-subtle); position: relative; }
.ds-map-arrow::after { content: ""; position: absolute; left: -3px; bottom: -1px; border: 3.5px solid transparent; border-top: 5px solid var(--color-border-subtle); border-bottom: 0; }

.ds-map-file { width: 100%; padding: 14px; border: 1px solid var(--color-border); border-radius: 12px; background: #fff; }
.ds-map-file > .ds-map-tag { display: block; margin: 0 0 12px; text-align: center; }
.ds-map-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ds-map-group { padding: 12px; border-radius: 8px; background: #f7f7f7; }
.ds-map-group h3 { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--color-black); }
.ds-map-group h3 span { color: var(--color-text-muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.ds-map-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.ds-map-group li { padding: 3px 7px; border-radius: 999px; background: #fff; border: 1px solid var(--color-border); font-size: 11.5px; line-height: 1.3; color: #333; }
.ds-map-group li em { font-style: normal; color: var(--color-text-muted); font-size: 10px; }
.ds-map-group li.is-shown { border-color: var(--accent); color: var(--accent-strong); background: #fff7f1; font-weight: 500; }

@media (max-width: 640px) {
  .ds-map-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .ds-map-groups { grid-template-columns: minmax(0, 1fr); }
}

/* Klinikal: the design audit as five screens on the study's dotted board,
   with numbered pins that match the problem list */
.ds-audit { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.ds-audit figcaption { font-size: 12px; color: var(--color-text-muted); }
.ds-audit-board { padding: clamp(20px, 4%, 36px) clamp(12px, 3%, 28px); border-radius: var(--radius-md); background-color: #f7f7f7; }
.ds-audit-shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 2vw, 20px); align-items: start; }
.ds-audit-shots li { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ds-audit-shot {
  position: relative;
  display: block;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--color-border), 0 10px 24px rgba(0, 0, 0, 0.06);
}
.ds-audit-shot img { display: block; width: 100%; height: auto; aspect-ratio: 241 / 533; object-fit: cover; object-position: top; border-radius: 10px; }
.ds-audit-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 3px rgba(242, 107, 33, 0.22), 0 2px 6px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}
.ds-audit-label { display: flex; gap: 6px; font-size: 12px; line-height: 1.3; color: #333; }
.ds-audit-label span { color: var(--accent-strong); font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .ds-audit-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
}
@media (max-width: 420px) {
  .ds-audit-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Klinikal iteration: the toast across two rounds of team review, on one board */
.ds-iter {
  list-style: none;
  margin: 0;
  padding: clamp(16px, 3%, 24px);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  border-radius: var(--radius-md);
  background: #f7f7f7;
}
.ds-iter > li { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ds-iter-step { display: flex; gap: 6px; align-items: baseline; font-size: 13px; font-weight: 500; color: var(--color-black); }
.ds-iter-step span { font-size: 11px; font-weight: 400; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.ds-iter-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ds-iter-shot { margin: 0; padding: 0; background: none; }
.ds-iter-shot img { display: block; width: 100%; height: auto; }
.ds-iter-narrow img { width: 100%; margin: 0; }
.ds-iter-review { margin: 0; padding: 0 0 0 10px; border-left: 2px solid var(--accent); }
.ds-iter-review p:last-child, .ds-iter-body > .body-p { font-size: 12.5px; line-height: 1.4; color: #333; }
.ds-iter-label { margin-bottom: 2px; font-size: 11px; color: var(--color-text-muted); }

@media (max-width: 640px) {
  .ds-iter { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* ==========================================================================
   Pixel morph (Play experiment): the grid, its carousel preview, and the
   scroll demo page.
   ========================================================================== */
.px-board {
  display: grid; grid-template-columns: repeat(16, 1fr); gap: 1px;
  aspect-ratio: 1; background: #e4e0d9; border: 1px solid #e4e0d9;
}
.px-board i { display: block; background: #f6f4f0; transition: background-color 260ms ease; }

/* In the Play carousel: the board centred on the warm off-white */
.play-pixel { background: #f6f4f0; }
.play-js .play-pixel { display: grid; place-items: center; }
.play-pixel .px-board { width: min(78%, 330px); height: auto; }
.play-js .play-pixel .px-board { width: auto; height: 82%; }

/* Demo page */
.pxd-main { padding: 0 60px; }
.pxd-intro { max-width: 754px; margin: 72px auto 56px; display: flex; flex-direction: column; gap: 12px; }
.pxd-intro .link-icon, .pxd-end .link-icon { font-size: 14px; color: var(--color-text-muted); }
.pxd-intro .link-icon:hover, .pxd-end .link-icon:hover { color: var(--color-black); }
.pxd-intro h1 { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; color: var(--color-black); }
.pxd { position: relative; height: 320vh; }
.pxd-stage {
  position: sticky; top: 74px; height: calc(100vh - 74px); min-height: 520px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 48px;
  border-top: 1px solid var(--color-border);
}
.pxd-corner, .pxd-count { position: absolute; top: 18px; margin: 0; font-size: 13px; color: var(--color-text-muted); }
.pxd-corner { left: 0; }
.pxd-count { right: 0; font-variant-numeric: tabular-nums; }
.pxd-count span { color: var(--accent-strong); }
.pxd-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.pxd-steps > li { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity 420ms ease, transform 520ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.pxd-steps > li.is-on { opacity: 1; transform: none; }
.pxd-steps h2 { font-size: clamp(30px, 3.6vw, 52px); font-weight: 500; line-height: 1.05; letter-spacing: -0.035em; color: var(--color-black); max-width: 9em; }
.pxd-notes { align-self: end; justify-self: end; max-width: 300px; padding-bottom: 56px; }
.pxd-notes .pxd-steps p { font-size: 15px; line-height: 1.45; color: #333; }
.pxd-stage > .px-board { width: min(58vh, 440px); }
.pxd-end { max-width: 754px; margin: 64px auto 120px; }

.pxd-cards { display: none; list-style: none; margin: 0; padding: 0; }
.pxd.is-static { height: auto; }
.pxd.is-static .pxd-stage { display: none; }
.pxd.is-static .pxd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 24px; border-top: 1px solid var(--color-border); }
.pxd-cards li { display: flex; flex-direction: column; gap: 12px; }
.pxd-cards h2 { font-size: 20px; font-weight: 500; line-height: 1.2; color: var(--color-black); }
.pxd-cards p { font-size: 14px; line-height: 1.45; color: #333; }

@media (max-width: 1120px) { .pxd-main { padding: 0 24px; } }
@media (max-width: 768px) {
  .pxd-main { padding: 0 20px; }
  .pxd.is-static .pxd-cards { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pxd-cards .px-board { width: min(100%, 320px); }
}

/* Play: every project card shares one cell, so the column is always as tall as
   the longest card and the thumbnail strip never moves between projects. */
.play-js .play-infos { display: grid; }
.play-js .play-info { grid-area: 1 / 1; }
.play-js .play-info:not(.is-active) { display: flex; visibility: hidden; }
.play-js .play-thumbs { margin-top: auto; }

/* Landing: a study that is not published yet */
.hm-soon-tag { align-self: flex-start; margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: #f2efe9; font-size: 13px; font-weight: 500; color: var(--color-text-muted); }

/* Contact icons (footer on every page, and the About page) */
.footer-social { display: inline-flex; align-items: center; gap: 4px; }
.social-link { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--color-text-muted); text-decoration: none; transition: color 160ms ease, background-color 160ms ease; }
.social-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.social-link:hover { color: var(--color-black); background: #f2f2f2; }
.social-link:focus-visible { outline: 2px solid var(--color-black); outline-offset: 2px; }

/* About: open to roles */
.ab-open { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 20px; }
.ab-open p { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; line-height: 1.4; color: #333; }
.ab-open strong { font-weight: 500; color: var(--color-black); }
/* Open to roles: Resume, Gmail, LinkedIn. The one place the site keeps an
   underline (asked for on 2026-11-15): it matches the text colour, and both
   go a shade darker on hover. */
/* P2 (14px / 1.3) in Text-light-1; 40px below "Open to roles" (8px row gap + 32px) */
.ab-open-links { display: flex; flex-wrap: wrap; gap: 8px 20px; width: 100%; margin: 32px 0 0; padding: 0 0 0 16px; list-style: none; font-size: 14px; line-height: 1.3; }
.ab-open-links a { color: var(--color-text-dim); text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color var(--ease); }
.ab-open-links a:hover { color: var(--color-text-dark); }
/* Currently reading: same look as the links; hovering or focusing it floats the book cover below */
.ab-reading { position: relative; }
.ab-reading-btn { color: var(--color-text-dim); text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color var(--ease); }
.ab-reading-btn:hover, .ab-reading-btn:focus-visible, .ab-reading:hover .ab-reading-btn { color: var(--color-text-dark); }
.ab-reading-btn:focus-visible { outline: 2px solid var(--color-black); outline-offset: 2px; border-radius: 2px; }
.ab-reading-cover { position: absolute; z-index: 30; left: 0; top: calc(100% + 12px); width: 132px; aspect-ratio: 367 / 500; border-radius: 3px 6px 6px 3px; background: #f5f5f5; outline: 1px solid rgba(0, 0, 0, .06); outline-offset: -1px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 10px 28px rgba(0, 0, 0, .16); overflow: hidden; pointer-events: none;
  opacity: 0; visibility: hidden; transform: translateY(6px) rotate(-2deg); transform-origin: 0 0;
  transition: opacity 200ms var(--ease-out, cubic-bezier(0.2, 0.7, 0.2, 1)), transform 260ms cubic-bezier(0.2, 0.9, 0.3, 1.2), visibility 0s linear 200ms; }
.ab-reading:hover .ab-reading-cover, .ab-reading:focus-within .ab-reading-cover { opacity: 1; visibility: visible; transform: rotate(-2deg); transition-delay: 0s; }
.ab-reading-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-reading-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 12px 10px; background: #fff; color: var(--color-black); }
.ab-reading-fallback strong { font-size: 15px; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.ab-reading-fallback small { font-size: 8px; line-height: 1.3; color: var(--color-text-dim); }
@media (prefers-reduced-motion: reduce) { .ab-reading-cover { transition: opacity 120ms linear; transform: rotate(-2deg); } }
.ab-open-links a:focus-visible { outline: 2px solid var(--color-black); outline-offset: 2px; border-radius: 2px; }
.ab-open-dot { width: 8px; height: 8px; border-radius: 50%; background: #1f8a5b; box-shadow: 0 0 0 4px rgba(31, 138, 91, 0.15); flex: none; }
/* Footer: keep the icons beside the copyright line */
.site-footer > .footer-social, .case-study-footer > .footer-social { margin-right: auto; margin-left: -12px; }

/* Footer, final layout: content lines up with the header line, every item is
   vertically centred, and phones get two tidy rows. */
.site-footer, .case-study-footer { padding: 22px 60px; }
.site-footer > *, .case-study-footer > * { align-self: center; }
.site-footer .link-icon, .case-study-footer .link-icon { padding-bottom: 0; }
@media (max-width: 1120px) {
  .site-footer, .case-study-footer { padding-inline: 24px; }
}
@media (max-width: 768px) {
  .site-footer, .case-study-footer {
    display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; row-gap: 10px;
    padding: 20px;
  }
  .site-footer > .footer-social, .case-study-footer > .footer-social { margin: 0 0 0 -6px; justify-self: start; }
  .site-footer > :nth-child(3), .case-study-footer > :nth-child(3) { grid-column: 1; }
  .site-footer > :nth-child(4), .case-study-footer > :nth-child(4) { grid-column: 2; justify-self: end; }
}
@media (max-width: 380px) {
  .site-footer, .case-study-footer { padding-inline: 16px; }
}

/* About: visible title above the photo strip */
.ab-photos-title { margin-bottom: 16px; }

/* Landing: the line above the project list */
.hm-rule { margin: 0; border: 0; border-top: 1px solid var(--color-border); }

/* Landing: Relevance / Latest sort */
.hm-sort { display: flex; align-items: baseline; justify-content: flex-end; gap: 14px; margin-bottom: 14px; }
.hm-sort[hidden] { display: none; }
.hm-sort-label { font-size: 13px; color: var(--color-text-muted); }
.hm-sort-btn {
  padding: 2px 0; border: 0; background: none;
  font: inherit; font-size: 13px; font-style: italic; color: var(--color-text-muted); cursor: pointer;
  text-decoration: none;
  transition: color 160ms ease;
}
.hm-sort-btn:hover { color: #333; }
.hm-sort-btn[aria-pressed="true"] { color: var(--color-black); }
.hm-sort-btn:focus-visible { outline: 2px solid var(--color-black); outline-offset: 2px; }
.hm-project { position: relative; background: #fff; }

/* Landing: project hero images are clickable */
.hm-visual[data-cursor] { cursor: pointer; }

/* Landing: "Work" label and the sort on one line above the divider */
.hm-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.hm-bar-title { font-size: 14px; font-weight: 500; color: var(--color-black); }
.hm-bar .hm-sort { margin-bottom: 0; }

/* Landing: on load, blocks come in from top to bottom, a few ms apart. */
@media (prefers-reduced-motion: no-preference) {
  .portfolio-home .figma-header,
  .portfolio-home .hm-kicker,
  .portfolio-home .hm-hero h1,
  .portfolio-home .hm-bar,
  .portfolio-home .hm-project {
    animation: hm-in 560ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  }
  .portfolio-home .figma-header { animation-name: hm-fade; animation-delay: 0ms; }
  .portfolio-home .hm-kicker { animation-delay: 80ms; }
  .portfolio-home .hm-hero h1 { animation-delay: 160ms; }
  .portfolio-home .hm-bar { animation-delay: 300ms; }
  .portfolio-home .hm-rule { animation: hm-draw 640ms cubic-bezier(0.2, 0.7, 0.2, 1) 340ms backwards; transform-origin: left; }
  .portfolio-home .hm-project:nth-of-type(1) { animation-delay: 400ms; }
  .portfolio-home .hm-project:nth-of-type(2) { animation-delay: 480ms; }
  .portfolio-home .hm-project:nth-of-type(3) { animation-delay: 560ms; }
  .portfolio-home .hm-project:nth-of-type(4) { animation-delay: 640ms; }
  .portfolio-home .hl { animation-delay: 620ms; }
}
@keyframes hm-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes hm-fade { from { opacity: 0; } }
@keyframes hm-draw { from { transform: scaleX(0); } }
.portfolio-home .hm-work.is-sorted .hm-project { animation: none; }

/* Every other page: the same top-to-bottom load-in as the landing page.
   Header fades; each opening block rises in about 80 ms after the one above. */
@media (prefers-reduced-motion: no-preference) {
  .canvas-container > .figma-header { animation: hm-fade 560ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }

  /* Case studies: MakeO, Klinikal */
  .sidebar-container { animation: hm-fade 560ms cubic-bezier(0.2, 0.7, 0.2, 1) 80ms backwards; }
  .mk-intro .mk-headings,
  .mk-intro .mk-intro-top > :nth-child(2),
  .mk-intro .mk-details,
  .mk-intro .mk-glance,
  .mk-study > .mk-intro + section { animation: hm-in 560ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  .mk-intro .mk-headings { animation-delay: 80ms; }
  .mk-intro .mk-intro-top > :nth-child(2) { animation-delay: 160ms; }
  .mk-intro .mk-details { animation-delay: 300ms; }
  .mk-intro .mk-glance { animation-delay: 380ms; }
  .mk-study > .mk-intro + section { animation-delay: 460ms; }

  /* Building self-learning */
  .pedagogy-detail,
  .bsl-hero-photo,
  .role-details-container,
  .pedagogy-section .cs-glance,
  .content-sections-flow { animation: hm-in 560ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  .pedagogy-detail { animation-delay: 80ms; }
  .bsl-hero-photo { animation-delay: 160ms; }
  .role-details-container { animation-delay: 300ms; }
  .pedagogy-section .cs-glance { animation-delay: 380ms; }
  .content-sections-flow { animation-delay: 460ms; }

  /* About */
  .about-main .pg-lead,
  .about-main .ab-open,
  .ab-top,
  .ab-book,
  .ab-photos { animation: hm-in 560ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  .about-main .pg-lead { animation-delay: 80ms; }
  .about-main .ab-open { animation-delay: 160ms; }
  .ab-top { animation-delay: 260ms; }
  .ab-book { animation-delay: 360ms; }
  .ab-photos { animation-delay: 440ms; }

  /* Play */
  .play-main .pg-hero,
  .play-media,
  .play-side { animation: hm-in 560ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  .play-main .pg-hero { animation-delay: 80ms; }
  .play-media { animation-delay: 180ms; }
  .play-side { animation-delay: 260ms; }

  /* Pixel morph demo */
  .pxd-intro,
  .pxd { animation: hm-in 560ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  .pxd-intro { animation-delay: 80ms; }
  .pxd { animation-delay: 200ms; }
}

/* Klinikal study hero: a jelly blob rolls along the bottom; every few seconds a
   pale drop falls onto it and the blob and background change to a new pair. */
@property --dj-bg { syntax: "<color>"; inherits: true; initial-value: #fff8e1; }
@property --dj-core { syntax: "<color>"; inherits: true; initial-value: #d9452f; }
@property --dj-mid { syntax: "<color>"; inherits: true; initial-value: #f08a6a; }
@property --dj-ink { syntax: "<color>"; inherits: true; initial-value: #6b5314; }
.ds-jelly { position: relative; overflow: hidden; isolation: isolate; container-type: inline-size; aspect-ratio: 2304 / 1116;
  background: var(--dj-bg); transition: --dj-bg 1.2s ease, --dj-core 1.2s ease, --dj-mid 1.2s ease, --dj-ink 1.2s ease; }
.ds-jelly-track { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 0; animation: dj-slide 14s ease-in-out infinite alternate; }
.ds-jelly-blob { position: absolute; left: -5%; bottom: 0; width: 39%; aspect-ratio: 1; translate: var(--pull, 0px) 38%; transform-origin: 50% 100%; border-radius: 50%;
  background: radial-gradient(circle, var(--dj-core) 0%, var(--dj-mid) 35%, transparent 70%); filter: blur(20px);
  animation: dj-jelly 1.75s ease-in-out infinite; }
.ds-jelly-blob.is-splat { animation: dj-jelly 1.75s ease-in-out infinite, dj-splat .9s ease-out; }
.ds-jelly-drop { position: absolute; left: 14.5%; translate: var(--pull, 0px) 0; bottom: 18cqw; width: 10cqw; aspect-ratio: 1; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, var(--dj-drop-core) 0%, var(--dj-drop-mid) 40%, transparent 72%); filter: blur(8px); }
.ds-jelly-drop.is-falling { animation: dj-fall 1.3s cubic-bezier(.55,0,1,.45) forwards; }
.ds-jelly-title { height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 8%; color: var(--dj-ink); }
.ds-jelly .ds-jelly-title strong { color: inherit; } /* the main column otherwise forces bold text to black */
.ds-jelly-title small { font-size: clamp(14px, 1.8cqw, 20px); font-weight: 500; opacity: .6; margin-bottom: .4em; }
.ds-jelly-title strong { font-size: clamp(32px, 7cqw, 84px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
@keyframes dj-slide { to { transform: translateX(70%); } }
@keyframes dj-jelly {
  0%, 100% { transform: scale(1, 1); border-radius: 50%; }
  25% { transform: scale(1.12, 0.88); border-radius: 55% 45% 50% 50% / 45% 55% 50% 50%; }
  50% { transform: scale(0.92, 1.08); border-radius: 45% 55% 50% 50% / 55% 45% 50% 50%; }
  75% { transform: scale(1.05, 0.95); border-radius: 50%; }
}
@keyframes dj-splat { 0% { scale: 1 1; } 25% { scale: 1.3 .7; } 50% { scale: .85 1.15; } 75% { scale: 1.08 .94; } 100% { scale: 1 1; } }
@keyframes dj-fall {
  0%   { opacity: 0; transform: translate(-50%, -40cqw) scale(.9, 1.1); }
  15%  { opacity: 1; }
  85%  { opacity: 1; transform: translate(-50%, 0) scale(.95, 1.1); }
  100% { opacity: 0; transform: translate(-50%, 6cqw) scale(1.6, .5); }
}
@media (prefers-reduced-motion: reduce) {
  .ds-jelly-track, .ds-jelly-blob { animation: none; }
  .ds-jelly-drop { display: none; }
}

/* Landing: tall studies. Each takes ~78% of the screen so the next one peeks in;
   text sits at the top, the hero takes a little more of the row. */
.hm-work .hm-project { grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); min-height: 78svh; align-items: stretch; padding: 40px 0; }
.hm-work .hm-visual { aspect-ratio: auto; height: calc(78svh - 80px); min-height: 360px; }
@media (max-width: 900px) {
  .hm-work .hm-project { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hm-work .hm-visual { height: 56svh; min-height: 300px; }
}

/* About, laid out like a case study: side rail of sections, one reading column */
.ab-study .ab-intro-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.ab-study .pg-lead { font-size: 20px; line-height: 1.45; color: var(--color-black); }
.ab-study .ab-open { margin-top: 0; }
.ab-study .ab-life { font-size: 16px; line-height: 1.5; color: var(--color-text-dark, #444); max-width: 38em; }
.ab-study .ab-book { max-width: none; width: 100%; margin-top: 24px; }
.ab-study .ab-list { gap: 0; }
.ab-study .ab-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; padding: 16px 0; border-top: 1px solid var(--color-border); }
.ab-study .ab-list li:last-child { border-bottom: 1px solid var(--color-border); }
.ab-study .ab-list li:first-child { border-top: 0; } /* the section heading already draws this line */
.ab-study .ab-cancelled { cursor: default; }
.ab-study .ab-type { grid-column: 1; grid-row: 2; font-size: 14px; line-height: 1.4; color: var(--color-text-muted); }
.ab-study .ab-role { font-size: 16px; }
.ab-study .ab-when { margin: 0; font-size: 14px; text-align: right; white-space: nowrap; }
.ab-study .ab-photos { max-width: none; margin-top: 0; }
.ab-study .ab-gallery { --row: min(120px, calc((100vw - 220px) / 7)); }
@media (max-width: 768px) {
  .ab-study .ab-intro-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ab-study .ab-me { max-width: 140px; }
  .ab-study .pg-lead { font-size: 18px; }
  .ab-study .ab-list li { grid-template-columns: minmax(0, 1fr); }
  .ab-study .ab-when { text-align: left; white-space: normal; }
}

/* About photos, grouped: Teaching across the top, then In the field and Animals side by side */
.ab-study .ab-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.ab-study .ab-group { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ab-study .ab-group-wide { grid-column: 1 / -1; }
.ab-study .ab-group-title { font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--color-black); }
.ab-study .ab-group .ab-gallery { --row: 170px; }
.ab-study .ab-group-wide .ab-gallery { --row: 160px; }
@media (max-width: 768px) {
  .ab-study .ab-groups { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ab-study .ab-group .ab-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Landing: hovering (or focusing) "Raj" in the hero shows a photo, styled
   like an image dropped on a FigJam board: thick white frame, soft shadow,
   a slight tilt. */
.hm-me {
  position: relative;
  display: inline-block;
  cursor: default;
  outline: none;
}
.hm-me:focus-visible { outline: 2px solid var(--color-black); outline-offset: 4px; border-radius: 4px; }
.hm-me-photo {
  position: absolute;
  z-index: 20;
  left: 50%;
  top: 92%;
  width: clamp(150px, 15vw, 210px);
  height: auto;
  border: 7px solid #fff;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 12px 32px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px) rotate(-2deg) scale(0.92);
  transform-origin: 50% 0;
  transition: opacity 180ms ease, transform 260ms cubic-bezier(0.2, 0.9, 0.3, 1.25), visibility 0s linear 260ms;
}
.hm-me:hover .hm-me-photo,
.hm-me:focus-visible .hm-me-photo {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) rotate(-5deg) scale(1);
  transition: opacity 180ms ease, transform 260ms cubic-bezier(0.2, 0.9, 0.3, 1.25), visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .hm-me-photo { transition: opacity 120ms ease, visibility 0s linear 120ms; transform: translate(-50%, 0) rotate(-5deg); }
}

/* MakeO study hero: a screen recording of the redesigned location flow */
.mk-hero.mk-hero-video { height: auto; aspect-ratio: 1376 / 818; background: #f5f5f5; border-radius: 4px; }
.mk-hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Landing: MakeO card plays the same location-flow recording as the study */
.hm-visual.hm-visual-video { background: #f5f5f5; }
.hm-visual-video video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* About photos, in the page's system: a "Photos" section heading with its rule,
   each group a ruled row like Experience, and the photos on one 3-column grid
   of 4:3 tiles so every edge lines up with the reading column. The viewer
   still opens each photo uncropped. */
.ab-study .ab-groups { display: flex; flex-direction: column; gap: 0; }
.ab-study .ab-group { gap: 16px; padding: 16px 0 28px; border-top: 1px solid var(--color-border); }
.ab-study .ab-group:first-child { border-top: 0; } /* the section heading already draws this line */
.ab-study .ab-group:last-child { padding-bottom: 0; }
.ab-study .ab-group-title { font-size: 16px; }
.ab-study .ab-group .ab-gallery,
.ab-study .ab-group-wide .ab-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ab-study .ab-gallery::after { display: none; }
.ab-study .ab-gallery li { position: relative; aspect-ratio: 4 / 3; }
.ab-study .ab-gallery li:nth-child(7) { grid-column: auto; aspect-ratio: 4 / 3; }
.ab-study .ab-gallery .ab-shot { position: absolute; inset: 0; height: 100%; }
.ab-study .ab-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
@media (max-width: 768px) {
  .ab-study .ab-group .ab-gallery,
  .ab-study .ab-group-wide .ab-gallery { gap: 8px; }
}

/* ==========================================================================
   Home, Wireframers "Home page" (1280:11173, 1309:2362, 1309:2404, notes
   1294:2396). The site header, then a 754px column: statement, credits,
   and Work: one preview beside an accordion of projects.
   - One project open at a time; hover or focus opens it, click opens its study.
   - The open project's divider is the time bar for what plays in the preview.
   - "more..." adds Ahiro inside the same height; the list scrolls with no bar.
   ========================================================================== */
.wf-home {
  --wf-col: 754px;
  --wf-ink: var(--color-black);
  --wf-text: var(--color-text-dark);
  --wf-muted: var(--color-text-dim);
  --wf-label: var(--color-text-muted);
  --wf-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* The preview takes the MakeO recording's ratio (1376 x 818): MakeO fills it
     exactly and Persai's 16:9 recording sits inside on its own white, so
     neither video is cropped. */
  --wf-ratio: 1376 / 818;
}

/* Statement and credits */
.wf-main { width: min(var(--wf-col), 100% - 48px); margin: 0 auto; padding: 96px 0 120px; display: flex; flex-direction: column; gap: 120px; outline: none; }
.wf-intro { display: flex; flex-direction: column; gap: 24px; }
.wf-title { margin: 0; max-width: 17em; font-size: 44px; font-weight: 500; line-height: 1.06; letter-spacing: -0.025em; color: var(--wf-ink); text-wrap: balance; }
.wf-credits { display: flex; gap: 24px; margin: 0; font-size: 14px; line-height: 1.3; }
.wf-credits div { display: flex; flex-direction: column; gap: 8px; }
.wf-credits dt { color: var(--wf-label); }
.wf-credits dd { margin: 0; color: var(--wf-text); }

/* Work */
.wf-work { display: flex; flex-direction: column; gap: 24px; }
.wf-label { margin: 0; font-size: 14px; font-weight: 400; line-height: 1.3; color: var(--wf-label); }
.wf-stage { display: flex; align-items: stretch; gap: 36px; }

.wf-preview { position: relative; flex: 0 0 406px; aspect-ratio: var(--wf-ratio); overflow: hidden; border-radius: 4px; background: #f2f2f2; cursor: pointer; isolation: isolate; }
.wf-preview::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); pointer-events: none; }
.wf-preview.is-static { cursor: default; }
.wf-shot { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity 420ms var(--wf-out), transform 900ms var(--wf-out); }
.wf-shot.is-active { z-index: 1; opacity: 1; transform: none; }
.wf-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wf-shot video { display: block; width: 100%; height: 100%; object-fit: contain; }
.wf-shot-white { background: #fff; }
/* Vigyan Ashram: the clip is wider than the box, so it sits inside it (never cropped); the thin
   bands above and below take the clip's own top and bottom edge colours. */
.wf-shot-building { background: linear-gradient(#797b79 50%, #1d2125 50%); }
.wf-shot.ds-jelly { aspect-ratio: auto; height: 100%; }
.wf-shot .ds-jelly-title strong { font-size: 26px; }
.wf-shot .ds-jelly-title small { font-size: 10px; }
.wf-shot-soon { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 32px; background: #f7f7f7; }
.wf-shot-soon span { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; color: var(--wf-ink); }
.wf-shot-soon small { font-size: 12px; color: var(--wf-muted); }

/* The list keeps the preview's height; it scrolls (bar hidden) once Ahiro joins */
.wf-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.wf-scroll { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.wf-scroll::-webkit-scrollbar { display: none; }
.wf-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.wf-entry[hidden] { display: none; }

.wf-item { display: flex; flex-direction: column; font-size: 14px; line-height: 1.3; color: var(--wf-muted); text-decoration: none; cursor: pointer; }
span.wf-item { cursor: default; }
.wf-head { display: block; }
.wf-name { color: var(--wf-ink); }
.wf-line { color: var(--wf-text); transition: color var(--ease); }
.wf-item:hover .wf-line, .wf-entry.is-open .wf-line { color: var(--wf-ink); }
.wf-item:focus-visible { outline: 2px solid var(--wf-ink); outline-offset: 4px; border-radius: 2px; }

/* Description opens under the title; one at a time */
.wf-desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 360ms var(--wf-out); }
.wf-desc > span { overflow: hidden; min-height: 0; opacity: 0; transition: opacity 240ms ease; }
.wf-entry.is-open .wf-desc { grid-template-rows: 1fr; }
.wf-entry.is-open .wf-desc > span { padding-top: 8px; opacity: 1; transition-delay: 80ms; }

/* Divider = time bar for the open project */
/* Figma time bar: a 1px #858585 line over the 1px #EBEBEB divider. Both are
   drawn as borders, not 1px-tall boxes: at fractional screen scaling (125%,
   150%) a 1px box paints as 1 or 2 device pixels depending on where the row
   lands, while a border width is always rounded to the same whole number of
   device pixels, so every row's line is identical. */
.wf-bar { display: grid; margin-top: 8px; }
.wf-bar::before, .wf-bar-fill { grid-area: 1 / 1; height: 0; border-top: 1px solid var(--color-border); } /* both in one cell: one shared edge */
.wf-bar::before { content: ""; }
.wf-bar-fill { justify-self: start; width: 0; border-top-color: #858585; }
.wf-entry:not(.is-open) .wf-bar-fill { width: 0 !important; }

.wf-more { align-self: flex-start; padding: 0; border: 0; background: none; font: inherit; font-size: 11px; line-height: 1.3; color: var(--wf-ink); cursor: pointer; transition: color var(--ease), opacity 200ms ease; }
.wf-more:hover { color: var(--wf-text); }
.wf-more:focus-visible { outline: 2px solid var(--wf-ink); outline-offset: 2px; border-radius: 2px; }
/* Hidden while Ahiro shows, but it keeps its line so the list box keeps its height and scrolls */
.wf-more[hidden] { display: block; visibility: hidden; opacity: 0; }

/* Load-in: the header fades, then each block rises about 80 ms after the one above */
@media (prefers-reduced-motion: no-preference) {
  .wf-title, .wf-credits, .wf-label, .wf-preview, .wf-list > li, .wf-more { animation: hm-in 560ms var(--wf-out) backwards; }
  .wf-title { animation-delay: 80ms; }
  .wf-credits { animation-delay: 160ms; }
  .wf-label { animation-delay: 240ms; }
  .wf-preview { animation-delay: 300ms; }
  .wf-list > li:nth-child(1) { animation-delay: 340ms; }
  .wf-list > li:nth-child(2) { animation-delay: 400ms; }
  .wf-list > li:nth-child(3) { animation-delay: 460ms; }
  .wf-list > li:nth-child(4) { animation-delay: 520ms; }
  .wf-more { animation-delay: 580ms; }
}

@media (max-width: 820px) {
  .wf-main { padding: 56px 0 80px; gap: 72px; }
  .wf-title { font-size: clamp(30px, 7.4vw, 44px); line-height: 1.08; }
  .wf-credits { flex-direction: column; gap: 16px; }
  .wf-stage { flex-direction: column; gap: 20px; }
  .wf-preview { flex: none; width: 100%; }
  .wf-scroll { flex: none; overflow: visible; }
  .wf-shot .ds-jelly-title strong { font-size: clamp(26px, 7vw, 40px); }
}
@media (prefers-reduced-motion: reduce) {
  .wf-shot { transform: none; transition: opacity 120ms linear; }
  .wf-desc, .wf-desc > span { transition: none; }
}

/* Home, Wireframers 1323:4681 (promoted from the /home-trial page). The text column stays 754px;
   only the Work row grows to 783px (it runs 29px past the column on the right):
   a 482 x 240 preview, a 32px gap and a 269px list. The preview is as tall as
   the list, so the list fills it and "more..." still scrolls inside it. Videos
   sit inside the wider box (contain) on their own edge colour, so none is cropped. */
.wf-home .wf-main { gap: 90px; }
@media (min-width: 821px) {
  .wf-home .wf-stage { gap: 32px; }
  .wf-home .wf-preview { flex-basis: 482px; aspect-ratio: 482 / 240; }
  .wf-home .wf-shot[data-shot="makeo"] { background: #f5f5f5; } /* the recording's own edge colour */
}
@media (min-width: 900px) {
  .wf-home .wf-stage { margin-right: -29px; }
}

/* Persai study (short, while the full case study ships). The recording is 16:9 on
   white; it sits inside the hero box on white so nothing is cropped. */
.ps-hero { overflow: hidden; border-radius: 4px; background: #fff; }
/* Hairline frame drawn above the video so the recording's white never breaks it */
.ps-hero::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--color-border); pointer-events: none; }
.ps-hero video { display: block; width: 100%; height: 100%; object-fit: contain; }
.ps-body { display: flex; flex-direction: column; gap: 24px; max-width: 480px; padding-top: 8px; }
.ps-block { display: flex; flex-direction: column; gap: 8px; }
.ps-block .section-label { margin: 0; }
.ps-lead { font-size: 18px; font-weight: 500; line-height: 1.3; color: #000; }
/* Narrow screens: the hero box takes the recording's own 16:9, so no white bands */
@media (max-width: 768px) { .ps-study .ps-hero { aspect-ratio: 16 / 9; height: auto; } }
