.labeling-case .case-hero h1 {
  max-width: none;
}

.status-dot-production {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(20, 122, 90, 0.16);
}

.labeling-story {
  gap: clamp(86px, 14vw, 165px);
}

.privacy-media,
.measurement-photo {
  position: relative;
  overflow: hidden;
}

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

.privacy-blur {
  position: absolute;
  top: 45.2%;
  left: 15.6%;
  width: 15.1%;
  height: 31.7%;
  border-radius: 7px 7px 0 0;
  background: rgba(223, 228, 224, 0.64);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.video-shot video {
  display: block;
  width: 100%;
  height: auto;
  background: #eeeae2;
}

.routing-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid #cbd4da;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 58px rgba(24, 32, 42, 0.1);
}

.route-node,
.route-split {
  min-height: 138px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.route-primary {
  grid-column: 1 / -1;
  border-color: rgba(20, 122, 90, 0.34);
  background: rgba(20, 122, 90, 0.055);
}

.route-human {
  border-color: rgba(155, 100, 20, 0.34);
  background: rgba(155, 100, 20, 0.055);
}

.route-node span,
.route-node strong,
.route-node small {
  display: block;
}

.route-node span {
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 0.65rem;
}

.route-node strong {
  font-size: 0.86rem;
  line-height: 1.4;
}

.route-node small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.5;
}

.route-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.route-split div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background: var(--panel);
}

.route-split span,
.route-split strong {
  display: block;
}

.route-split span {
  font-size: 0.72rem;
}

.route-split strong {
  margin-top: 18px;
  font-size: 0.67rem;
  line-height: 1.45;
}

.route-pass {
  color: var(--green);
}

.route-review {
  color: var(--amber);
}

.measurement-figure {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(190px, 0.62fr);
  overflow: hidden;
  margin: 0;
  border: 1px solid #cbd4da;
  border-radius: 7px;
  background: #f6f1e8;
  box-shadow: 0 24px 64px rgba(24, 32, 42, 0.13);
}

.measurement-photo {
  aspect-ratio: 766 / 1270;
  background: #d8d8d8;
}

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

.measurement-figure figcaption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 4vw, 36px);
  border-left: 1px solid #d5cdbf;
}

.measurement-figure figcaption span,
.measurement-figure figcaption strong,
.measurement-figure figcaption small {
  display: block;
}

.measurement-figure figcaption span {
  margin-bottom: 18px;
  color: var(--amber);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.measurement-figure figcaption strong {
  color: var(--text);
  font-size: clamp(0.9rem, 2vw, 1.18rem);
  line-height: 1.4;
}

.measurement-figure figcaption small {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.6;
}

.measure-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border: 2px solid #ff9a19;
  border-radius: 50%;
  background: rgba(255, 154, 25, 0.14);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.72);
}

.measure-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
}

.measure-line {
  position: absolute;
  height: 2px;
  transform-origin: 0 50%;
  background: rgba(255, 154, 25, 0.76);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.crown-dot { left: 49.9%; top: 21.3%; }
.chin-dot { left: 49.2%; top: 37.5%; }
.shoulder-left-dot { left: 31.3%; top: 44.1%; }
.shoulder-right-dot { left: 69.8%; top: 43.7%; }
.hip-left-dot { left: 37.2%; top: 65%; }
.hip-right-dot { left: 60.7%; top: 66.1%; }
.head-line { left: 49.9%; top: 21.3%; width: 26.9%; transform: rotate(91.4deg); }
.shoulder-line { left: 31.3%; top: 44.1%; width: 38.5%; transform: rotate(-1deg); }
.torso-left-line { left: 31.3%; top: 44.1%; width: 35.1%; transform: rotate(80.4deg); }
.torso-right-line { left: 69.8%; top: 43.7%; width: 38.3%; transform: rotate(103.8deg); }
.hip-line { left: 37.2%; top: 65%; width: 23.6%; transform: rotate(4.8deg); }

.cost-route-visual {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid #cbd4da;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 58px rgba(24, 32, 42, 0.1);
}

.cost-stage,
.model-test-field,
.gemini-route,
.cost-result {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.cost-stage-start {
  border-color: rgba(155, 100, 20, 0.25);
  background: rgba(155, 100, 20, 0.04);
}

.cost-result {
  border-color: rgba(20, 122, 90, 0.3);
  background: rgba(20, 122, 90, 0.055);
}

.cost-route-visual span,
.cost-route-visual strong,
.cost-route-visual small {
  display: block;
}

.cost-route-visual span {
  margin-bottom: 15px;
  color: var(--amber);
  font-size: 0.65rem;
}

.cost-route-visual strong {
  font-size: 0.86rem;
  line-height: 1.35;
}

.cost-route-visual small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.4;
}

.model-test-field > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.model-test-field b {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--blue);
  font-size: 0.64rem;
}

.gemini-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.gemini-route > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(20, 122, 90, 0.18);
  border-radius: 5px;
  background: rgba(20, 122, 90, 0.035);
}

.gemini-route > b {
  color: var(--green);
  font-weight: 400;
}

.cost-result strong {
  color: var(--green);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  letter-spacing: -0.055em;
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(90px, 15vw, 170px);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.76);
}

.metric-band div {
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
}

.metric-band div + div {
  border-left: 1px solid var(--line);
}

.metric-band strong,
.metric-band span {
  display: block;
}

.metric-band strong {
  color: var(--green);
  font-size: clamp(1.2rem, 2.5vw, 1.85rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.metric-band span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.63rem;
  line-height: 1.45;
}

.labeling-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 34px 0;
}

.labeling-flow div {
  min-height: 134px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.76);
}

.labeling-flow span,
.labeling-flow strong,
.labeling-flow small {
  display: block;
}

.labeling-flow span {
  margin-bottom: 18px;
  color: var(--amber);
  font-size: 0.63rem;
}

.labeling-flow strong {
  font-size: 0.7rem;
  line-height: 1.35;
}

.labeling-flow small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.56rem;
  line-height: 1.45;
}

.labeling-flow b {
  color: var(--green);
  font-weight: 400;
}

.tool-fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 30px 0;
}

.tool-fit-grid article {
  padding: 22px;
  box-shadow: none;
}

.tool-fit-grid span,
.tool-fit-grid strong {
  display: block;
}

.tool-fit-grid span {
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 0.68rem;
}

.tool-fit-grid strong {
  margin-bottom: 12px;
  font-size: 0.86rem;
}

.tool-fit-grid p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.65;
}

.cost-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 34px 0;
}

.cost-comparison div {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.76);
}

.cost-comparison .cost-after {
  border-color: rgba(20, 122, 90, 0.3);
  background: rgba(20, 122, 90, 0.055);
}

.cost-comparison span,
.cost-comparison strong,
.cost-comparison small {
  display: block;
}

.cost-comparison span {
  color: var(--muted);
  font-size: 0.65rem;
}

.cost-comparison strong {
  margin-top: 16px;
  color: var(--text);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  letter-spacing: -0.05em;
}

.cost-comparison small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.62rem;
}

.cost-comparison b {
  color: var(--green);
  font-weight: 400;
}

.cost-detail-grid {
  margin-bottom: 30px;
}

.readme-content section > .privacy-capability-note {
  max-width: 760px;
  padding: 18px 20px;
  border-left: 2px solid var(--green);
  background: rgba(20, 122, 90, 0.055);
}

.privacy-capability-note strong {
  color: var(--text);
}

@media (max-width: 980px) {
  .measurement-figure {
    grid-template-columns: 1fr;
  }

  .measurement-figure figcaption {
    border-top: 1px solid #d5cdbf;
    border-left: 0;
  }

  .labeling-flow {
    grid-template-columns: 1fr auto 1fr;
  }

  .labeling-flow b:nth-of-type(3) {
    display: none;
  }
}

@media (max-width: 820px) {
  .matrix-step .product-shot,
  .objective-step .measurement-figure {
    order: 2;
  }

  .metric-band {
    grid-template-columns: 1fr 1fr;
  }

  .metric-band div:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .metric-band div:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .routing-visual,
  .tool-fit-grid {
    grid-template-columns: 1fr;
  }

  .route-primary {
    grid-column: auto;
  }

  .labeling-flow {
    grid-template-columns: 1fr;
  }

  .labeling-flow b,
  .labeling-flow b:nth-of-type(3) {
    display: block;
    transform: rotate(90deg);
    text-align: center;
  }
}

@media (max-width: 520px) {
  .measure-dot {
    width: 14px;
    height: 14px;
  }

  .metric-band {
    grid-template-columns: 1fr;
  }

  .metric-band div + div,
  .metric-band div:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .cost-comparison {
    grid-template-columns: 1fr;
  }

  .cost-comparison b {
    transform: rotate(90deg);
    text-align: center;
  }

  .gemini-route {
    grid-template-columns: 1fr;
  }

  .gemini-route > b {
    transform: rotate(90deg);
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-shot video {
    display: none;
  }

  .video-shot::before {
    content: "";
    display: block;
    aspect-ratio: 1180 / 850;
    background: url("/assets/work/photo-labeling/question-matrix-poster.jpg") center / cover no-repeat;
  }
}
