/* Project overview and shared case navigation. */
#clubhouse .club-intro .intro-heading {
  display: grid;
  justify-items: start;
  gap: .09em;
  font-size: clamp(48px, 7vw, 118px);
  line-height: 1.02;
  letter-spacing: -.041em;
  max-width: 1200px;
}
.intro-heading-lead {
  color: #48502e;
  font-size: .89em;
  font-weight: 450;
  letter-spacing: -.026em;
}
.intro-heading-main { color: #19251b; font-weight: 800; }
.intro-heading-main mark {
  position: relative;
  isolation: isolate;
  background: none;
  color: inherit;
  padding: 0;
  white-space: nowrap;
}
.intro-heading-main mark::before,
.intro-heading-main mark::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.intro-heading-main mark::before {
  inset: .16em -.21em .08em -.08em;
  background: linear-gradient(100deg, #d4ee39, #e3f554 78%, #e8f56a);
  clip-path: polygon(0 21%, 3% 15%, 12% 12%, 44% 10%, 76% 3%, 97% 1%, 99% 9%, 98% 34%, 100% 45%, 98% 53%, 98% 77%, 92% 83%, 64% 88%, 46% 90%, 9% 100%, 2% 94%);
  transform: rotate(-4deg);
}
.intro-heading-main mark::after {
  inset: .65em -.35em .05em 43%;
  background: #dff23d;
  opacity: .64;
  clip-path: polygon(0 21%, 7% 13%, 74% 9%, 99% 0, 100% 63%, 98% 77%, 40% 83%, 7% 100%, 2% 91%);
  transform: rotate(-5deg);
}
.intro-copy { max-width: 820px; }
#clubhouse .intro-copy p { font-size: clamp(17px, 1.8vw, 25px); line-height: 1.8; }
#clubhouse .intro-copy p + p { margin-top: 18px; font-size: clamp(15px, 1.35vw, 19px); }

.project-course {
  --card-width: min(490px, 79vw);
  --card-edge: calc((100vw - var(--card-width)) / 2);
  --course-start: 5.5%;
  --course-end: 89%;
  height: auto;
  min-height: 0;
  padding: 0;
  scroll-margin-top: 0;
}
.project-course .project-sticky {
  position: relative;
  top: 0;
  height: auto;
  min-height: 0;
  overflow: hidden;
  padding: 108px 5% 30px;
}
.project-opening { color: #f3efd9; }
#clubhouse .project-opening h2 {
  font: 850 clamp(44px, 8vw, 128px)/.97 Arial, 'Microsoft YaHei', sans-serif;
  letter-spacing: -.09em;
}
.project-opening h2 span { margin-left: .10em; }
.project-switcher a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 39px;
  padding: 6px 12px;
  border: 1px solid #e4ead270;
  border-radius: 24px;
  color: inherit;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.project-switcher a:hover, .project-switcher a[aria-current] {
  background: #dcf13a;
  border-color: #dcf13a;
  color: #142d21;
}
.project-map { width: min(760px, 100%); margin: 0 auto; padding: 26px 0 23px; pointer-events: none; }
.project-map-line { position: relative; height: 2px; }
.project-map-line::before, .project-map-line::after {
  content: '';
  position: absolute;
  inset: 0 calc(100% - var(--course-end)) 0 var(--line-start, var(--course-start));
  border-top: 2px dashed #e2ebce6e;
}
.project-map-line::after {
  right: calc(100% - var(--ball-position, var(--course-start)));
  border-top: 2px solid #dcf13a;
}
.project-map-cup, .project-map-position {
  position: absolute;
  top: 50%;
  transform: translate(-50%,-50%);
}
.project-map-cup {
  z-index: 1;
  left: var(--course-end);
  width: 58px;
  height: auto;
  transform: translate(-20%,-25%);
}
.project-map-position { z-index: 2; left: var(--ball-position, var(--course-start)); width: 30px; height: 30px; }
.project-map-hop, .project-map-shadow, .project-map-hop img { position: absolute; inset: 0; }
.project-map-hop img { width: 30px; height: 30px; transform: rotate(var(--ball-rotation, 0)); }
.project-map-shadow {
  inset: auto 2px 0;
  height: 8px;
  border-radius: 50%;
  background: #032719ad;
  filter: blur(2px);
}
[data-interactive] .project-map:not(.has-arrived) .project-map-position { visibility: hidden; }
.project-map.has-arrived .project-map-position { animation: map-entry .9s both; }
.project-map.has-arrived .project-map-hop { animation: map-bounce .9s both; }
.project-map.is-holed .project-map-hop { animation: map-sink .48s both; }
.project-map.is-holed .project-map-shadow { opacity: 0; }
@keyframes map-entry { from { opacity: 0; } 23%, to { opacity: 1; } }
@keyframes map-bounce {
  from { transform: translateY(-78px) rotate(-30deg); animation-timing-function: cubic-bezier(.55,.04,.76,.36); }
  44% { transform: translateY(4px) scale(1.16,.78); animation-timing-function: ease-out; }
  65% { transform: translateY(-17px) scale(.97,1.04); animation-timing-function: ease-in; }
  83% { transform: translateY(2px) scale(1.07,.92); }
  to { transform: none; }
}
@keyframes map-sink {
  30% { transform: translateY(-5px) scale(.88); }
  82%, to { transform: translateY(7px) scale(.12); opacity: 0; }
}
.project-course .project-rail {
  margin: 20px -5.56% 0;
  padding: 0 0 23px;
  overflow: auto hidden;
  scroll-snap-type: x mandatory;
}
.project-course .project-track {
  display: flex;
  width: max-content;
  gap: clamp(30px, 7vw, 110px);
  padding: 0 var(--card-edge);
  align-items: stretch;
}
.project-course .project-card {
  width: var(--card-width);
  min-height: 0;
  margin: 0;
  padding: 14px;
  scroll-snap-align: center;
}
.project-course .project-image {
  height: clamp(150px, 26svh, 240px);
  aspect-ratio: auto;
}
#clubhouse .project-course .project-card h3 { min-height: 0; font-size: clamp(20px, 3.4vw, 29px); margin: 10px 0 4px; }
#clubhouse .project-course .project-card p { min-height: 0; font-size: 14px; margin: 0 0 12px; }
.project-course .project-card .lime-link { font-size: 12px; padding: 9px 15px; }
.project-card-index {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  color: #4a624c;
  font-size: 12px;
}
.project-card-index span { font: 700 13px/1 monospace; }
@media (min-width: 960px) and (min-height: 660px) and (prefers-reduced-motion: no-preference) {
  .project-course[data-interactive]:not(.course-quiet) {
    --card-width: clamp(290px, 22vw, 400px);
    --course-start: 30%;
    --course-end: 87%;
    height: calc(100svh + clamp(1150px, 108vw, 2000px));
  }
  .project-course[data-interactive]:not(.course-quiet) .project-sticky { position: sticky; height: 100svh; padding: 0; isolation: isolate; }
  .project-course[data-interactive]:not(.course-quiet) .project-opening {
    position: absolute;
    z-index: 1;
    top: 26%;
    left: 5%;
    transform: translateX(calc(-1 * var(--opening-shift, 0px)));
    opacity: clamp(0,calc(1 - var(--course-progress, 0) * 3.5),1);
    pointer-events: none;
  }
  #clubhouse .project-course[data-interactive]:not(.course-quiet) .project-opening h2 { font-size: clamp(74px, 10vw, 172px); }
  .project-course[data-interactive]:not(.course-quiet) .project-opening h2 span { display: block; margin: 7px 0 0; color: #d9ef62; }
  .project-course[data-interactive]:not(.course-quiet) .project-map {
    position: absolute;
    z-index: 1;
    top: 55%;
    left: 0;
    width: 100%;
    padding: 0;
  }
  .project-course[data-interactive]:not(.course-quiet) .project-map-cup {
    width: 99px;
    opacity: clamp(0, calc((var(--course-progress, 0) - .68) * 5), 1);
  }
  .project-course[data-interactive]:not(.course-quiet) .project-rail {
    position: relative;
    z-index: 2;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    scroll-snap-type: none;
    pointer-events: none;
  }
  .project-course[data-interactive]:not(.course-quiet) .project-rail:focus-visible { outline: 2px solid #e2ef6f; outline-offset: -3px; }
  .project-course[data-interactive]:not(.course-quiet) .project-track {
    height: 100%;
    align-items: center;
    gap: clamp(140px, 19vw, 370px);
    padding-inline: 61vw calc(48vw - var(--card-width)/2);
  }
  .project-course[data-interactive]:not(.course-quiet) .project-card {
    pointer-events: auto;
    top: -16px;
    box-shadow: 9px 15px 0 #002b2538;
  }
  .project-course[data-interactive]:not(.course-quiet) .project-card:nth-child(2) { top: 29px; }
  .project-course[data-interactive]:not(.course-quiet) .project-card:nth-child(3) { top: 6px; }
  .project-course[data-interactive]:not(.course-quiet) .project-image { height: clamp(158px, 31svh, 270px); }
}
@media (max-width: 760px) {
  .project-course .project-sticky { padding-top: 98px; }
  #clubhouse .club-intro .intro-heading { font-size: clamp(33px, 10.2vw, 62px); }
  .intro-bottom .ball-link img { width: 54px; }
}
.course-quiet .project-map-position, .course-quiet .project-map-hop { animation: none !important; }
.course-quiet .project-map.is-holed .project-map-hop { visibility: hidden; }

.project-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.project-switcher a { border-color: #214d383b; color: #17412e; }
.case-switchbar {
  background: #e9ead7;
  padding: 11px max(5%, calc((100% - 1160px)/2));
}
.case-switchbar .project-switcher { max-width: 600px; }
.case-switchbar a { min-height: 35px; }
.practice-page {
  --project-bg: #f3f3e8;
  --practice-width: min(920px, 90vw);
  --case-frame-border: #b7c7aa;
  --case-frame-inset: clamp(12px, 2vw, 20px);
  margin: 0;
  color: #23382d;
  background: var(--project-bg);
  font: 16px/1.65 Arial, 'Microsoft YaHei', sans-serif;
}
.practice-page[data-page="studio"] { --practice-width: min(1000px, 90vw); }
.practice-page *, .practice-page *::before, .practice-page *::after { box-sizing: border-box; }
.practice-page img { display: block; max-width: 100%; height: auto; }
.practice-page button { font: inherit; cursor: pointer; }
.practice-header, .practice-footer { background: #eeeedf; }
.practice-header-inner, .practice-footer-inner {
  width: var(--practice-width);
  min-height: 69px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.practice-header-inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,490px) minmax(132px,1fr);
}
.practice-header .project-switcher { grid-column: 2; }
.practice-header-actions { display: flex; justify-content: end; align-items: center; gap: 8px; }
.practice-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dcf13a;
  color: #143721;
  text-decoration: none;
  font: 400 29px/1 Arial, sans-serif;
}
.practice-close:hover { background: #e7fa68; }
.practice-close:focus-visible { outline: 2px solid #143721; outline-offset: 3px; }
.practice-header [data-open-assistant] {
  background: transparent;
  color: #143721;
  border: 1px solid #214d383b;
  border-radius: 22px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.practice-cover {
  --practice-panel-size: clamp(430px, 52svh, 550px);
  background: radial-gradient(ellipse at 84% 8%, #216449 0%, #0e4a35 51%, #0a3829 100%);
  color: #f4f2dc;
  padding: clamp(26px, 4vw, 42px) 0 24px;
}
.practice-cover-inner, .practice-chapters > div {
  width: var(--practice-width);
  margin-inline: auto;
}
.practice-cover-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.case-stage-label {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .07em;
}
.practice-cover-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin: 0 0 14px;
  color: #d5e2d3;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.practice-discipline { color: #dbea94; font-weight: 750; }
.practice-cover h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4.4vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.028em;
}
.practice-description {
  min-block-size: 1lh;
  margin: 0;
  color: #e0ead3;
  font-size: clamp(16px, 1.38vw, 20px);
  line-height: 1.7;
}
.practice-media {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-block-size: var(--practice-panel-size);
  min-width: 0;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid #f4f2dc36;
  border-radius: 16px;
  background: #062f24ad;
}
.practice-page[data-page="studio"] .practice-media { min-block-size: 0; }
.practice-media-body { align-self: center; min-inline-size: 0; }
.practice-media-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.practice-media-head h2 { margin: 0; font-size: 16px; }
.practice-media-head span { color: #dbea94; font-size: 12px; font-variant-numeric: tabular-nums; }
.practice-media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: contain;
  border-radius: 9px;
  background: #061c15;
}
.practice-disclosure, .practice-media-caption, .practice-media details {
  margin: 9px 0 0;
  color: #d5e2d3;
  font-size: 12px;
}
.practice-media a { color: #e0f185; text-underline-offset: 3px; }
.practice-media summary { width: fit-content; cursor: pointer; }
.practice-video-notes { display: flex; flex-wrap: wrap; column-gap: 18px; align-items: start; }
.practice-video-notes > details[open] { flex-basis: 100%; }
.practice-video-chapters .video-chapters { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.practice-video-chapters button {
  padding: 5px 9px;
  border: 1px solid #d5e2d362;
  border-radius: 5px;
  color: #f4f2dc;
  background: transparent;
}
.practice-video-chapters button:hover { background: #ffffff19; }
.practice-media-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.practice-media-pair figure { margin: 0; }
.practice-media-pair img { width: 100%; aspect-ratio: 1.65; object-fit: contain; border-radius: 7px; background: #061c15; }
.practice-media-pair figcaption { padding-top: 5px; color: #e0ead3; font-size: 12px; }
.practice-media .workflow-reader { --workflow-accent: #dbea94; margin: 0; padding: 0; background: transparent; }
.practice-media .workflow-nodes { gap: 11px; margin: 13px 0 10px; }
.practice-media .workflow-nodes button { min-height: 106px; padding: 8px 9px; }
.practice-media .workflow-nodes button strong { font-size: 15px; }
.practice-media .workflow-nodes button small { overflow-wrap: anywhere; }
.practice-media .workflow-nodes li:not(:last-child)::after { left: calc(100% + 1px); font-size: 11px; }
.practice-media .workflow-detail { min-height: 0; margin: 8px 0; font-size: 13px; }
.practice-media .workflow-annotation { margin: 0; }
.practice-chapters { position: sticky; z-index: 4; top: 0; background: #f0f0e3; border-bottom: 1px solid #264b352b; }
.practice-chapters > div { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 8px 0; }
.practice-chapters a { color: #315642; font-weight: 680; font-size: 13px; padding: 5px 9px; text-decoration: none; border-radius: 5px; white-space: nowrap; }
.practice-chapters a:hover, .practice-chapters a[aria-current] { color: #123d2a; background: #dce6cb; }
.practice-page .case-story .case-stage { padding: clamp(32px, 4.2vw, 60px) 0; border-bottom: 1px solid #29483330; scroll-margin-top: 80px; }
.practice-page .case-story > .case-stage { width: var(--practice-width); margin-inline: auto; }
.practice-page .case-story > :is(.case-process-chapter, .case-proof-chapter) { width: 100%; }
.practice-page .case-story .case-stage h2 {
  margin: 0 0 12px;
  color: #23382d;
  font-size: clamp(25px, 3vw, 42px);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.035em;
}
.practice-page .case-stage > p, .practice-page .case-section-head > p, .case-reading-copy > p {
  max-width: 37em;
  margin: 0 0 12px;
  line-height: 1.8;
}
.practice-page .case-stage > p:last-child, .practice-page .case-section-head > p:last-child { margin-bottom: 0; }
.practice-page .case-stage :is(.case-stage-label, .case-section-head .eyebrow),
.practice-page .case-stage.case-closing > .eyebrow {
  display: block;
  margin: 0 0 14px;
  color: #287053;
  font-size: 13px;
  font-weight: 750;
}
.case-stage .harness-simulator, .case-stage .n8n-blueprint { margin-top: 28px; }
.case-stage .evaluation-grid { margin-top: 18px; }
.case-stage .evaluation-grid article { background: #e9ecdb; color: #163c2c; }
.case-stage .evaluation-grid article p { color: inherit; }
.case-stage .skill-catalog, .case-stage .harness-iteration { margin: 32px 0 0; }
.case-stage .harness-simulator p, .case-stage .n8n-blueprint p { max-width: none; }
.case-stage .harness-simulator [aria-pressed=true] { font-weight: 650; }
.practice-page .case-story.case-content { color: inherit; font: inherit; }
.practice-page .case-story .case-width:not(.case-stage) { margin-inline: 0; }
.practice-page .case-story .case-section-head { max-width: none; margin-bottom: 26px; }
.practice-page .case-story .case-meta { padding: 14px 17px; border: 0; border-radius: 10px; background: #e9ecdc; font-size: 13px; }
.practice-page .case-story .case-meta span { font-size: 11px; font-weight: 700; color: #526850; }
.practice-page .case-story .case-meta p { margin-top: 3px; }
.practice-page .case-story .case-section-head > p { color: inherit; font-size: inherit; }
.practice-page .case-story #judgment .case-section-head > p {
  max-width: none;
  text-align: justify;
  text-justify: inter-ideograph;
}
.practice-page .case-story .case-stage .studio-vision-title { font-size: clamp(25px, 2.9vw, 39px); }
.studio-vision-title span, .studio-role-title span { display: block; }
.case-keep { white-space: nowrap; }
.practice-page .case-story .studio-decision .case-section-head > p { max-width: 44em; }
.studio-decision-principle {
  margin: 0 0 14px;
  padding: 13px clamp(14px, 2.4vw, 24px);
  border-inline-start: 3px solid #438565;
  border-radius: 0 9px 9px 0;
  background: #e8eddc;
  color: #1b4b35;
  font-size: clamp(17px, 1.55vw, 21px);
  font-weight: 750;
  line-height: 1.6;
}
.studio-decision-options {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  margin: 0;
}
.studio-decision-options > div {
  padding: clamp(14px, 2vw, 21px);
  border: 1px solid #c5d1b9;
  border-radius: 11px;
  background: #f8f8ee;
}
.studio-decision-options dt { color: #18593d; font-weight: 750; }
.studio-decision-options dd { margin: 5px 0 0; color: #344f40; line-height: 1.65; }
@media (max-width: 620px) {
  .studio-decision-options { grid-template-columns: minmax(0,1fr); gap: 9px; }
}
.practice-page[data-page="studio"] .case-story .case-closing > p { max-width: none; }
.practice-page .case-story .case-closing a { color: #164332; }
.case-reading-split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(18px, 4vw, 50px);
  align-items: center;
}
.case-reading-copy { min-width: 0; }
.case-reading-copy h2 { text-wrap: balance; }
.practice-page .case-story .case-reading-copy { margin-bottom: 0; }
.case-reading-split + .case-meta { margin-top: 24px; }
.case-reading-figure {
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid #cad5bd;
  border-radius: 13px;
  background: #f9f9ef;
}
.case-reading-figure img { display: block; width: 100%; height: auto; border-radius: 7px; }
.studio-vision-figure iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 7px;
  background: #f8f9f7;
}
.case-reading-figure .image-expand { border-radius: 7px; }
.case-reading-figure .image-expand:focus-visible { outline: 2px solid #287053; outline-offset: 3px; }
.practice-page .case-story .case-reading-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3px 12px;
  color: #47604c;
  line-height: 1.5;
  font-size: 13px;
  margin: 8px 2px 2px;
}
.case-reading-figure a { color: #166146; font-weight: 650; }
.case-reading-single { max-width: 690px; }
.case-media-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
  margin-block: 22px 28px;
}
.case-media-pair img { aspect-ratio: 16 / 9; }
.production-film-list { display: grid; gap: 12px; margin-top: 16px; scroll-margin-top: 110px; }
.production-secondary-title { margin-top: 22px; }
.production-project-flow { margin-block: 18px 26px; }
.studio-module-card .case-film { margin-block: 12px; }
.production-film-card { border: 1px solid var(--case-frame-border); border-radius: 12px; background: #eff3e7; }
.production-film-card > summary {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 14px clamp(12px, 2vw, 20px);
  cursor: pointer;
  list-style: none;
}
.production-film-card > summary::-webkit-details-marker { display: none; }
.production-film-card > summary::after {
  content: "＋";
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #286247;
  font-size: 18px;
}
.production-film-card[open] > summary::after { content: "−"; }
.production-film-card > summary strong { color: #203e2e; font-size: clamp(15px, 1.9vw, 19px); }
.production-film-card > summary span { grid-column: 1; font-size: 13px; color: #425b49; }
.production-film-body { padding: 0 clamp(10px, 2vw, 16px) 16px; }
.production-film-body .production-character-art { object-fit: contain; background: #e7eddc; }
.production-result > .production-observation {
  margin: 12px 0 0;
  padding-left: 12px;
  border-left: 2px solid #8eab7d;
  line-height: 1.65;
  color: #345440;
}
.case-film { scroll-margin-top: 110px; }
.case-film time { margin-inline-start: 10px; font-variant-numeric: tabular-nums; }
.case-film video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 7px;
  background: #12271c;
}
.practice-page[data-page="production"] .practice-description { text-wrap: balance; }
.production-media-links { display: flex; flex-wrap: wrap; gap: 7px 16px; }
.case-content-link { color: #166146; font-weight: 650; }
.case-storyboard { scroll-margin-top: 110px; }
.case-storyboard > h5 { margin: 16px 0 5px; font-size: 16px; }
.case-storyboard figcaption > span { flex-basis: 100%; }
@media (max-width: 620px) {
  .case-media-pair { grid-template-columns: 1fr; }
}
.case-reading-notes, .case-reading-flow {
  margin: 18px 0 0;
  padding: 0;
  color: #234335;
  background: #e8eddb;
  border: 1px solid #ccd7bc;
  border-radius: 12px;
}
.case-reading-split > :is(.case-reading-notes, .case-reading-flow) { margin: 0; }
.case-reading-notes div, .case-reading-flow li { padding: 10px clamp(12px, 2vw, 20px); }
.case-reading-notes div + div, .case-reading-flow li + li { border-top: 1px solid #cbd7bd; }
.case-reading-notes dt, .case-reading-flow strong { color: #18593d; font-weight: 750; }
.case-reading-notes dd { margin: 0; color: #344f40; }
.case-reading-notes-wide { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.case-reading-notes-wide div + div { border-top: 0; border-left: 1px solid #cbd7bd; }
.case-reading-flow { list-style: none; }
.case-reading-flow li {
  display: grid;
  grid-template-columns: minmax(7em, 1fr) minmax(0, 1.4fr);
  gap: 4px 14px;
  align-items: baseline;
}
.case-reading-flow span { color: #344f40; font-size: 14px; }
.case-reading-details { margin: 8px 0 0; max-width: 37em; }
.case-reading-details summary { color: #176247; font-weight: 650; cursor: pointer; }
.case-reading-details p { margin: 8px 0 0; color: #45604f; }
.case-chapter-content { width: var(--practice-width, 88%); margin-inline: auto; }
.case-process-chapter {
  color: #edf2df;
  background: radial-gradient(ellipse at 88% 18%, #23583e 0%, #123e2e 53%, #0c3025 100%);
}
.practice-page .case-story .case-process-chapter h2 { color: #f8f8e5; }
.practice-page .case-story .case-process-chapter .case-stage-label { color: #dcf184; }
.case-process-layout, .case-role-layout {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 4vw, 58px);
}
.case-process-layout { align-items: center; }
.case-process-copy h2 { text-wrap: balance; }
.case-process-copy p, .case-role-copy p {
  max-width: 28em;
  margin: 0;
  line-height: 1.75;
}
.case-process-copy p { color: #d6e6ce; }
.case-process-diagram {
  padding: clamp(14px, 2vw, 24px);
  border: 1px solid #e9f3d638;
  border-radius: 16px;
  background: #071e163f;
}
.case-process-lane + .case-process-lane { margin-top: 17px; padding-top: 14px; border-top: 1px solid #dbe7d531; }
.case-process-lane h3 {
  margin: 0 0 8px;
  color: #d7e3d1;
  font-size: 13px;
  font-weight: 700;
}
.case-process-lane ol {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.case-process-lane li {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 66px;
  padding: 8px 10px;
  color: #f3f5e7;
  border: 1px solid #c7ddbf54;
  border-radius: 8px;
  background: #e7f3de12;
}
.case-process-lane li:not(:last-child)::after {
  content: '';
  position: absolute;
  inset-inline-end: -12px;
  top: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border-top: 1px solid #b0c8ad;
  border-right: 1px solid #b0c8ad;
  transform: rotate(45deg);
}
.case-process-lane li strong { font-size: 15px; line-height: 1.32; }
.case-process-lane li span { color: #d7e3d1; font-size: 12px; line-height: 1.4; }
.case-process-lane + .case-process-lane h3 { color: #dcf184; }
.case-process-lane + .case-process-lane li { color: #173626; background: #e2edc9; }
.case-process-lane + .case-process-lane li span { color: #3c543d; }
.case-process-lane + .case-process-lane li:last-child { background: #ddf188; }
.case-role-layout { align-items: start; }
.case-role-copy h2 { text-wrap: balance; }
.case-role-copy .case-chapter-link {
  display: inline-block;
  margin-top: 12px;
  color: #176247;
  font-weight: 650;
}
.case-role-timeline {
  counter-reset: case-phase;
  position: relative;
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0 0 0 43px;
  list-style: none;
}
.case-role-timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 14px;
  width: 1px;
  background: #9daf91;
}
.case-role-timeline li {
  position: relative;
  padding: 12px 16px;
  border: 1px solid #d7e0c9;
  border-radius: 10px;
  background: #fbfbf2;
}
.case-role-timeline li::before {
  counter-increment: case-phase;
  content: counter(case-phase, decimal-leading-zero);
  position: absolute;
  top: 15px;
  left: -43px;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: #245b43;
  color: #f5f5e7;
  font: 750 12px/1 Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
.practice-page .case-story .case-role-timeline h3, .case-priorities h3 {
  margin: 0 0 3px;
  font-size: 17px;
  font-weight: 750;
  color: #185b41;
}
.case-role-timeline p { margin: 0; line-height: 1.55; font-size: 15px; }
.case-priorities { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.case-priorities article {
  padding: 18px 16px;
  border: 1px solid #cfd9c2;
  border-top: 3px solid #8da976;
  border-radius: 10px;
  background: #e8eedc;
}
.case-priorities p { margin: 0; color: #365345; font-size: 14px; line-height: 1.6; }
.case-proof-chapter { background: #e4ebd8; }
.case-proof-chapter .case-chapter-content > p { max-width: 37em; margin: 0 0 12px; line-height: 1.8; }
.case-proof-chapter .evidence-gallery figure {
  padding: 9px;
  border: 1px solid #cbd7bd;
  border-radius: 12px;
  background: #f8faef;
}
.case-proof-chapter .case-chapter-content > .case-reading-source { margin-top: 14px; color: #486451; font-size: 13px; }
.practice-page .case-story :is(.case-reading-figure, .case-reading-notes, .case-reading-flow, .case-priorities article, .case-role-timeline li) {
  border-color: var(--case-frame-border);
}
.practice-page .case-story .case-process-diagram { border-color: #bfd5b67d; }
.practice-page .case-story :is(.n8n-blueprint, .harness-simulator) {
  padding: var(--case-frame-inset);
  border: 1px solid var(--case-frame-border);
  border-radius: 15px;
  background: #f7f8ed;
}
.practice-page .case-proof-chapter .evidence-gallery {
  padding: var(--case-frame-inset);
  border: 1px solid var(--case-frame-border);
  border-radius: 15px;
  background: #edf1e1;
}
.production-track {
  margin-top: 26px;
  padding-top: 23px;
  border-top: 1px solid var(--case-frame-border);
  scroll-margin-top: 105px;
}
.production-track > h3 { margin: 0 0 8px; color: #203e2e; font-size: clamp(22px, 2.7vw, 32px); }
.production-track > p { margin: 0; max-width: 52em; line-height: 1.65; }
.production-lora-pair img { aspect-ratio: auto; }
#park-test { scroll-margin-top: 105px; }
.production-result { margin-top: 28px; scroll-margin-top: 105px; }
.production-result > h4 { margin: 0 0 6px; color: #203e2e; font-size: clamp(18px, 2.4vw, 25px); }
.production-result > h5 { margin: 0 0 6px; color: #203e2e; font-size: clamp(16px, 2vw, 20px); }
.production-result > p { margin: 0; line-height: 1.65; }
.production-result .case-media-pair { margin: 14px 0 0; }
.production-result .case-reading-figure img { object-fit: cover; }
.production-park-pair img { object-position: center bottom; }
.production-result .production-sequence { grid-template-columns: repeat(3, minmax(0,1fr)); }
.production-examples { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
@media (max-width: 700px) {
  .production-examples { grid-template-columns: minmax(0,1fr); gap: 0; }
  .production-result .production-sequence { grid-template-columns: minmax(0,1fr); }
}
.studio-modules {
  margin-top: clamp(32px, 5vw, 58px);
  scroll-margin-top: 95px;
}
.case-content .studio-modules > header { margin-bottom: 16px; }
.case-content .studio-modules > header h3 {
  margin: 0 0 4px;
  color: #203e2e;
  font-size: clamp(22px, 2.45vw, 30px);
  font-weight: 750;
  line-height: 1.3;
}
.case-content .studio-modules > header p { margin: 0; color: #48624d; font-size: 13px; }
.studio-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.studio-module-card {
  min-width: 0;
  padding: clamp(12px, 1.5vw, 18px);
  border: 1px solid var(--case-frame-border, #b7c7aa);
  border-radius: 14px;
  background: #f8faef;
  scroll-margin-top: 95px;
}
.case-content .studio-module-card h4 {
  margin: 0 0 5px;
  color: #234838;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.35;
}
.case-content .studio-module-card p {
  margin: 0 0 13px;
  color: #344e3f;
  font-size: 14px;
  line-height: 1.6;
}
.studio-modules .image-expand {
  aspect-ratio: 12 / 5;
  overflow: hidden;
  border: 1px solid #d0dac3;
  border-radius: 8px;
  background: #e9eee1;
}
.studio-modules .image-expand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.case-content .studio-modules .switcher-buttons {
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
}
.case-content .studio-modules .switcher-buttons button {
  min-height: 34px;
  padding: 5px 9px;
  border-color: #c5d2b8;
  border-radius: 6px;
  color: #345341;
  font-size: 13px;
  line-height: 1.4;
}
.case-content .studio-modules .switcher-buttons button[aria-pressed=true] {
  border-color: #799a7a;
  color: #164533;
  background: #e2ecd8;
  font-weight: 700;
}
.studio-modules .studio-responsive-figure .image-expand { aspect-ratio: auto; }
.studio-modules .studio-responsive-figure img { height: auto; }
.practice-page .case-story .studio-responsive-figure .image-expand::after { content: none; }
.studio-responsive-figure .image-expand > span {
  display: block;
  padding: 5px 9px;
  border-top: 1px solid #d0dac3;
  color: #24533e;
  background: #f7f9f0;
  font-size: 13px;
  text-align: right;
}
.case-content .studio-module-card .studio-behavior-source {
  margin: 9px 0 0;
  color: #48624d;
  font-size: 12px;
  line-height: 1.5;
  text-wrap: pretty;
}
.case-proof-chapter .studio-modules + .media-note { margin-top: 18px; }
.practice-page .case-story .image-expand {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.practice-page .case-story .image-expand::after {
  content: '⤢';
  position: absolute;
  inset: auto 7px 7px auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #ebf1de;
  border-radius: 50%;
  color: #fff;
  background: #174a38ed;
  font: 19px/1 Arial,sans-serif;
}
.practice-page .case-story .image-expand:focus-visible { outline: 2px solid #28694a; outline-offset: 3px; }
.practice-page .case-story .results-head > span { color: #48624d; font-size: 12px; }
.practice-page .case-story .case-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; padding: 12px 0 0; }
.practice-page .case-story .case-metrics article {
  min-width: 0;
  padding: clamp(8px, 1.6vw, 16px);
  border: 1px solid var(--case-frame-border);
  border-radius: 10px;
  background: #f8faef;
}
.practice-page .case-story .case-metrics strong {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 4px;
  color: #20583e;
  font: 750 clamp(21px, 3.2vw, 35px)/1.08 Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
.practice-page .case-story .case-metrics strong span { margin: 0; font-size: 12px; }
.practice-page .case-story .case-metrics p { margin: 7px 0 0; color: #3a5643; font-size: 13px; line-height: 1.5; }
.case-task-chart {
  margin: 14px 0 18px;
  scroll-margin-top: 96px;
  padding: var(--case-frame-inset, 16px);
  border: 1px solid var(--case-frame-border, #b7c7aa);
  border-radius: 13px;
  background: #f8faef;
}
.case-task-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 14px; flex-wrap: wrap; }
.case-content .case-task-chart-head h3 { margin: 0; color: #234838; font-size: 17px; font-weight: 750; }
.case-task-chart-head > strong { color: #1b6545; font-size: 22px; font-variant-numeric: tabular-nums; }
.case-task-chart-head > strong span { font-size: 13px; }
.case-task-chart meter { display: block; width: 100%; height: 16px; margin: 9px 0 11px; accent-color: #2b7452; }
.case-task-chart meter::-webkit-meter-bar { background: #dbe5cc; border: 0; border-radius: 5px; box-shadow: none; }
.case-task-chart meter::-webkit-meter-optimum-value { background: #2b7452; border-radius: 5px 0 0 5px; }
.case-task-chart meter::-moz-meter-bar { background: #2b7452; }
.case-chart-key { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; color: #365243; }
.case-chart-key li { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.case-chart-key li::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: #2b7452; }
.case-chart-key li + li::before { background: #dbe5cc; outline: 1px solid #a7b699; }
@media (prefers-reduced-motion: no-preference) {
  .practice-page .case-story .image-expand::after { transition: transform .16s ease, background-color .16s ease; }
  .practice-page .case-story .image-expand:is(:hover,:focus-visible)::after { transform: translate(-2px,-2px); background: #246247; }
  .practice-page .media-lightbox[open] { animation: case-preview-in .18s ease-out; }
  @keyframes case-preview-in {
    from { opacity: .65; transform: scale(.985); }
    to { opacity: 1; transform: scale(1); }
  }
}
.practice-page .media-lightbox {
  width: min(1400px, 94vw);
  max-height: 94dvh;
  padding: 44px 18px 14px;
  border: 1px solid #d5dec9;
  border-radius: 12px;
  color: #23382d;
  background: #f5f6ed;
}
.practice-page .media-lightbox::backdrop { background: #152e25bb; }
.practice-page .media-lightbox img { max-height: calc(90dvh - 110px); margin: auto; object-fit: contain; }
.practice-page .media-lightbox:has(img[src$="-mobile.webp"]) {
  width: 98vw;
  max-width: 98vw;
  padding-inline: 8px;
}
.practice-page .media-lightbox:has(img[src$="-mobile.webp"]) img { width: 100%; }
.practice-page .media-lightbox > button { position: absolute; top: 10px; right: 16px; border: 0; background: none; color: inherit; }
.practice-page .media-lightbox > p { margin: 10px 0 0; text-align: center; font-size: 12px; }
.practice-page.modal-open { overflow: hidden; }
.practice-page .assistant-launcher.is-docked { display: none; }
.practice-footer { margin-top: 50px; }
.practice-footer a { color: #164332; }
.practice-skip { position: fixed; top: 0; left: 5%; z-index: 40; background: #dcf13a; color: #143721; padding: 8px 14px; transform: translateY(-110%); }
.practice-skip:focus { transform: none; }
.practice-quiet-button {
  border: 0;
  padding: 6px 0;
  color: #164332;
  background: transparent;
  text-decoration: underline;
  font-size: 14px !important;
}
.workflow-reader {
  --workflow-accent: #ddf394;
  margin-top: 28px;
  border-radius: 18px;
  padding: clamp(14px,3vw,30px);
  background: #0b392e;
  color: #f3f4e9;
  scroll-margin-top: 60px;
}
.workflow-n8n { --workflow-accent: #ffd1b9; background: #263239; }
.workflow-reader header { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.workflow-reader header span { color: var(--workflow-accent); font-size: 13px; font-weight: 700; }
.workflow-reader h3 { margin: 5px 0 0; font-size: clamp(19px,2.5vw,30px); line-height: 1.3; }
:is(.workflow-reader, .practice-media) [data-flow-play] {
  padding: 7px 12px;
  white-space: nowrap;
  border: 1px solid #f3f4e968;
  background: transparent;
  color: inherit;
  border-radius: 20px;
  font-size: 12px;
}
:is(.workflow-reader, .practice-media) [data-flow-play]:hover { background: #ffffff14; }
.workflow-nodes {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 22px;
  padding: 0;
  margin: 23px 0 16px;
  list-style: none;
}
.workflow-nodes li { position: relative; }
.workflow-nodes button {
  --workflow-card: #f3f4e91a;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 100px;
  padding: 9px 10px;
  text-align: left;
  background: var(--workflow-card);
  color: #f3f4e9;
  border: 1px solid #f3f4e93d;
  border-radius: 9px;
  line-height: 1.4;
}
.workflow-nodes button strong { align-self: center; font-size: 17px; }
.workflow-nodes button span, .workflow-nodes button small { align-self: end; font-size: 10px; }
.workflow-nodes button[aria-pressed=true] {
  background: var(--workflow-accent);
  color: #172e26;
  border-color: var(--workflow-accent);
}
.workflow-nodes button:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.workflow-nodes li:not(:last-child)::after {
  content: '→';
  position: absolute;
  left: calc(100% + 4px);
  top: calc(50% - 12px);
  color: #f3f4e9a6;
  pointer-events: none;
}
.workflow-nodes li:has(button[aria-pressed=true]):not(:last-child)::after { color: var(--workflow-accent); }
[data-workflow].is-playing .workflow-nodes li:has(button[aria-pressed=true])::after { animation: flow-signal 1.1s infinite; }
@keyframes flow-signal { 0%,100% { opacity: .45; } 45% { transform: translateX(4px); opacity: 1; } }
.workflow-detail { min-height: 3em; padding: 10px 13px; border-left: 3px solid var(--workflow-accent); background: #ffffff0c; }
.workflow-annotation {
  display: flex;
  flex-wrap: wrap;
  column-gap: 22px;
  margin-bottom: 13px;
  color: var(--workflow-accent);
  font-size: 12px;
  font-weight: 700;
}
.workflow-annotation span { color: #f3f4e9d1; font-weight: 400; }
.evidence-note { margin-top: 14px !important; opacity: .83; font-size: 13px; }
.evidence-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 22px; }
.evidence-gallery.model-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
.evidence-gallery figure, .evidence-disclosure figure { margin: 0; }
.evidence-gallery img, .evidence-disclosure img { width: 100%; border-radius: 9px; }
.evidence-gallery:not(.model-gallery) img { aspect-ratio: 1.65; object-fit: cover; }
.model-gallery img { aspect-ratio: 1.25; object-fit: contain; background: #eeeee7; }
.evidence-gallery figcaption, .evidence-disclosure figcaption { font-size: 13px; margin-top: 8px; }
.evidence-disclosure { margin-top: 22px; }
.evidence-disclosure summary { padding: 8px 0; cursor: pointer; color: #174c36; font-weight: 700; }
.evidence-disclosure figure { margin-top: 10px; }
.case-page .case-switchbar { margin-top: 84px; }
.case-page .case-switchbar + #case-main { margin-top: 0; }
.case-content .case-reading-nav a[aria-current=location] { color: #0b6545; text-decoration: underline; text-underline-offset: 3px; }
.case-content a.studio-film-link { color: #176349; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.standalone-field-case .case-content [id] { scroll-margin-top: 150px; }

@media (max-width: 900px) {
  .practice-description { min-block-size: 2lh; }
}

@media (max-width:760px) {
  .practice-header-inner { grid-template-columns: minmax(0,1fr); gap: 9px; padding: 8px 0 10px; }
  .practice-header .project-switcher { grid-column: 1; grid-row: 2; }
  .project-switcher a { padding-inline: 5px; }
  .case-switchbar { padding: 9px 5%; }
  .practice-cover { --practice-panel-size: clamp(388px, 52svh, 470px); padding-block: 29px 24px; }
  .practice-cover-inner { gap: 20px; }
  .practice-cover h1 { margin-bottom: 10px; }
  .practice-cover-meta { margin-bottom: 8px; }
  .practice-media-body:has(video) { align-self: start; }
  .practice-chapters > div { gap: 2px 5px; }
  .practice-chapters a { padding-inline: 5px; }
  .practice-page .case-story .case-stage { scroll-margin-top: 95px; }
  .studio-module-grid { grid-template-columns: minmax(0, 1fr); }
  .studio-modules .image-expand { aspect-ratio: 16 / 9; }
  .case-reading-split { grid-template-columns: minmax(0, 1fr); }
  .case-process-layout, .case-role-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .case-process-lane ol { gap: 12px; }
  .case-process-lane li { padding: 8px 6px; }
  .case-process-lane li:not(:last-child)::after { inset-inline-end: -9px; width: 5px; height: 5px; }
  .case-process-lane li strong { font-size: 13px; }
  .case-priorities { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .case-page .case-switchbar { margin-top: 74px; }
  .workflow-nodes { grid-template-columns: 1fr; gap: 18px; }
  .workflow-nodes li:not(:last-child)::after { content: '↓'; top: 100%; left: 50%; line-height: 18px; }
  .practice-media .workflow-nodes { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
  .practice-media .workflow-nodes li::after { display: none; }
  [data-workflow].is-playing .workflow-nodes li::after { animation: none; }
  .workflow-nodes button { min-height: 52px; grid-template-columns: minmax(65px,.75fr) 1fr minmax(40px,1fr); align-items: center; gap: 4px; }
  .workflow-nodes button span, .workflow-nodes button small { align-self: center; overflow-wrap: anywhere; }
  .practice-media .workflow-nodes button { min-height: 66px; padding: 6px; grid-template-columns: minmax(0,1fr); }
  .practice-media .workflow-nodes button strong { font-size: 13px; }
  .evidence-gallery:not(.model-gallery) { grid-template-columns: 1fr 1fr; }
  .evidence-gallery:not(.model-gallery) figure:first-child { grid-column: span 2; }
}
@media (max-width:520px) {
  .practice-cover { --practice-panel-size: 366px; }
  .practice-media .workflow-nodes button { min-height: 59px; }
  .practice-media .workflow-nodes button span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .project-map-position, .project-map-hop, [data-workflow].is-playing .workflow-nodes li::after { animation: none !important; }
}
