main {
  max-width: 1600px;
}
#boards {
  margin-top: 65px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-title h2 {
  font-size: 25px;
}
.duration {
  font-size: 12px;
  color: var(--muted);
}
.keyframes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.visual {
  height: 340px;
  background:
    radial-gradient(ellipse at top right, #326c77, transparent), #003640;
  position: relative;
  border-radius: 9px;
  overflow: hidden;
}
.rear {
  position: absolute;
  inset: 14% 8% 13% 13%;
  background: #aac9cc66;
  transform: rotate(4deg);
  border-radius: 12px;
}
.surface {
  position: absolute;
  inset: 10% 10% 15% 8%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 15px 40px #001d2844;
  overflow: hidden;
}
.surface-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-bottom: 1px solid #e6ebeb;
}
.surface-head strong {
  font-size: 11px;
  display: block;
}
.surface-head small {
  font-size: 8px;
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.emblem {
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--teal);
  border-radius: 7px;
  width: 25px;
  height: 25px;
  font-size: 20px;
}
.surface-body {
  padding: 12px 15px;
  font-size: 10px;
}
.badge {
  position: absolute;
  right: 5%;
  bottom: 10%;
  background: #fff;
  padding: 9px 12px;
  border: 1px solid #dce3e3;
  border-radius: 8px;
  font-size: 9px;
  color: var(--teal);
  box-shadow: 0 6px 20px #001d2833;
}
.chat-note,
.chat-answer {
  padding: 9px 12px;
  background: var(--mint);
  border-radius: 9px 9px 2px 9px;
  margin-left: 25px;
  line-height: 1.6;
}
.question {
  margin: 12px 0;
  color: var(--teal);
  line-height: 1.6;
}
.chat-answer {
  font-size: 9px;
  padding: 7px 10px;
}
.input {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
  padding: 8px;
  border-radius: 6px;
  color: var(--muted);
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  font-size: 9px;
}
.input span {
  color: white;
  background: var(--teal);
  padding: 2px 6px;
  border-radius: 4px;
}
.breathing-space {
  height: 60px;
}
.waiting {
  display: flex;
  gap: 4px;
  margin-top: 20px;
}
.waiting i {
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: #88b8c0;
}
.pack {
  width: 180px;
  height: 75px;
  display: block;
  margin: auto;
}
.pack text {
  font-size: 8px;
  fill: #40484b;
  font-family: Inter;
}
.mini-diagram .pack {
  height: 65px;
  width: 165px;
}
.chat-answer + .mini-diagram .pack {
  height: 45px;
}
.detail {
  padding: 8px 10px;
  border-bottom: 1px solid #edf1f1;
}
.detail span {
  font-size: 8px;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.detail strong {
  font-size: 10px;
  font-weight: 600;
}
.highlight {
  background: var(--mint);
  border-radius: 6px;
}
.note {
  padding: 9px;
  background: #f3f7f6;
  border-radius: 7px;
  display: flex;
  gap: 8px;
  margin: 8px 0;
}
.note strong {
  font-size: 9px;
  color: var(--teal);
}
.note p {
  font-size: 9px;
  margin: 4px 0 0;
  line-height: 1.5;
}
.spark {
  color: var(--teal);
  font-size: 16px;
}
.evidence-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.evidence-top .pack {
  width: 60%;
  height: 85px;
}
.sources {
  display: grid;
  gap: 7px;
  flex: 1;
}
.sources span {
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 8px;
  color: var(--teal);
}
.feature {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #e6ebeb;
  padding: 9px 0;
  font-size: 9px;
}
.feature b {
  font-size: 8px;
  color: var(--teal);
  font-weight: 400;
}
.scan {
  display: grid;
  gap: 5px;
  margin-top: 14px;
}
.scan i {
  height: 4px;
  background: #edf1f1;
  width: 80%;
}
.scan i:nth-child(2) {
  width: 60%;
}
.versions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 12px;
}
.versions span {
  font-size: 9px;
  color: var(--muted);
}
.versions .current {
  padding: 5px 9px;
  background: var(--mint);
  color: var(--teal);
  border-radius: 5px;
}
.revision {
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
}
.revision small {
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--muted);
}
.revision p {
  font-size: 9px;
  margin: 6px 0;
}
.revision ins {
  font-size: 9px;
  text-decoration: none;
  color: var(--teal);
  background: var(--mint);
  line-height: 1.7;
}
.action-cue {
  padding: 8px;
  border: 1px solid #c0c8cb;
  border-radius: 5px;
  color: var(--teal);
  font-size: 9px;
  text-align: center;
}
.case-title {
  font: 600 15px Rubik;
  color: var(--teal);
  margin: 3px 0 12px;
}
.case-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #e6ebeb;
  color: var(--teal);
}
.case-row strong {
  display: block;
  font-size: 9px;
}
.case-row small {
  display: block;
  font-size: 8px;
  margin-top: 4px;
  color: var(--muted);
}
.case-row b {
  margin-left: auto;
  font-size: 10px;
}
.gather {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}
.gather span {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--teal);
}
figcaption {
  display: flex;
  gap: 12px;
  font-size: 11px;
}
figcaption span {
  font-size: 10px;
  white-space: nowrap;
}
.motion-description {
  font-size: 13px;
  max-width: 1050px;
  margin-top: 6px;
}
.motion-description strong {
  color: var(--teal);
}
.website-step {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 55px;
  align-items: center;
  background: white;
  padding: 40px;
  border-top: 4px solid var(--teal);
  margin-bottom: 50px;
}
.website-step .visual {
  height: 400px;
}
.website-step .surface {
  inset: 12% 12% 15%;
}
.website-step .surface-body {
  padding: 18px;
}
.website-step .pack {
  height: 90px;
}
.website-step:nth-child(even) > div:first-child {
  order: 2;
}
.website-step h2 {
  font-size: 26px;
  line-height: 1.2;
}
#page-context {
  max-width: 1300px;
}
.context-intro {
  background: var(--deep);
  padding: 55px 5vw;
  color: white;
}
.context-intro h1 {
  font-size: 42px;
}
.context-intro p {
  color: #bed2d5;
}
@media (max-width: 1100px) {
  .keyframes {
    grid-template-columns: 1fr;
  }
  .visual {
    max-width: 600px;
    height: 380px;
  }
  .surface {
    inset: 10% 12% 15%;
  }
  .surface-body {
    padding: 16px;
  }
  .pack {
    height: 90px;
  }
  .section-title {
    align-items: start;
    gap: 15px;
  }
  .duration {
    white-space: nowrap;
  }
  .website-step {
    gap: 25px;
    padding: 25px;
  }
  .website-step .surface {
    inset: 8% 5% 15%;
  }
}
@media (max-width: 700px) {
  header small {
    display: none;
  }
  .website-step {
    grid-template-columns: 1fr;
  }
  .website-step:nth-child(even) > div:first-child {
    order: 0;
  }
  .website-step .visual {
    height: 350px;
  }
  .section-title {
    display: block;
  }
  .visual {
    height: 350px;
  }
  .surface {
    inset: 9% 6% 15%;
  }
  .section-title h2 {
    font-size: 23px;
  }
  .context-intro h1 {
    font-size: 32px;
  }
  .website-step .surface-body {
    padding: 12px;
  }
  .website-step .pack {
    height: 70px;
  }
  .website-step {
    padding: 18px;
  }
  .website-step .badge {
    font-size: 8px;
  }
  .website-step .case-title {
    font-size: 14px;
  }
}
/* Leave the action cue visible within the compact storyboard card. */
.versions {
  margin-bottom: 7px;
}
.revision {
  padding: 7px;
}
.revision p {
  margin: 4px 0;
}
.revision + .mini-diagram .pack {
  height: 48px;
}
.action-cue {
  padding: 6px;
}
.website-step .revision + .mini-diagram .pack {
  height: 58px;
}
.entry-path {
  padding: 13px;
  background: #f3f7f6;
  border: 1px solid #dce3e3;
  border-radius: 7px;
}
.entry-path strong {
  font-size: 11px;
  color: var(--teal);
}
.entry-path p {
  font-size: 9px;
  margin: 5px 0 0;
}
.or {
  text-align: center;
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--muted);
  padding: 8px;
}
.discovery-arrow {
  text-align: center;
  color: var(--teal);
  padding: 9px;
}
.auto-status {
  font-size: 9px;
  color: var(--teal);
  padding: 8px;
  background: var(--mint);
  border-radius: 6px;
  margin-top: 6px;
}
.loop-label {
  font-size: 8px;
  text-align: center;
  color: var(--muted);
  margin-top: 8px;
}
.role-label {
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 10px;
}
.submit-cue {
  background: var(--teal);
  color: white;
  margin-top: 16px;
}
/* Section-slot adaptation: a stable 640×360 composition scaled into 16:9. */
.visual,
.website-step .visual {
  aspect-ratio: 16/9;
  height: auto;
  max-width: none;
  background: #eef3f2;
  border: 1px solid #dce3e3;
  border-radius: 10px;
  overflow: hidden;
}
.slot-canvas {
  position: absolute;
  width: 640px;
  height: 360px;
  left: 0;
  top: 0;
  transform-origin: top left;
}
.slot-canvas .rear {
  inset: 12% 8% 10% 10%;
  background: #dce9e6;
  transform: rotate(1.5deg);
  border: 1px solid #c0d5d2;
}
.slot-canvas .surface,
.website-step .slot-canvas .surface {
  inset: 7% 10% 13% 7%;
  border: 1px solid #dce3e3;
  box-shadow: 0 8px 20px #134f5c12;
  border-radius: 10px;
}
.slot-canvas .surface-head {
  padding: 13px 18px;
}
.slot-canvas .surface-head strong {
  font-size: 13px;
}
.slot-canvas .surface-head small {
  font-size: 10px;
}
.slot-canvas .surface-body,
.website-step .slot-canvas .surface-body {
  padding: 12px 18px;
  font-size: 12px;
}
.slot-canvas .badge {
  font-size: 11px;
  bottom: 7%;
  right: 6%;
  box-shadow: 0 4px 12px #134f5c12;
}
.slot-canvas .pack,
.website-step .slot-canvas .pack {
  height: 70px;
  width: 190px;
}
.slot-canvas .chat-answer + .mini-diagram .pack {
  height: 43px;
}
.slot-canvas .revision + .mini-diagram .pack {
  height: 48px;
}
.slot-canvas .chat-note,
.slot-canvas .question {
  font-size: 12px;
}
.slot-canvas .chat-answer {
  font-size: 11px;
}
.slot-canvas .input {
  font-size: 11px;
}
.slot-canvas .detail {
  padding: 7px 10px;
}
.slot-canvas .detail strong {
  font-size: 12px;
}
.slot-canvas .detail span {
  font-size: 10px;
}
.slot-canvas .note strong {
  font-size: 11px;
}
.slot-canvas .note p {
  font-size: 11px;
}
.slot-canvas .note {
  padding: 8px;
  margin: 6px 0;
}
.slot-canvas .entry-path strong {
  font-size: 13px;
}
.slot-canvas .entry-path p {
  font-size: 11px;
}
.slot-canvas .entry-path {
  padding: 11px;
}
.slot-canvas .case-title,
.website-step .slot-canvas .case-title {
  font-size: 18px;
}
.slot-canvas .case-row strong {
  font-size: 12px;
}
.slot-canvas .case-row small {
  font-size: 10px;
}
.slot-canvas .role-label {
  font-size: 10px;
}
.slot-canvas .feature {
  font-size: 12px;
}
.slot-canvas .feature b {
  font-size: 10px;
}
.slot-canvas .sources span {
  font-size: 10px;
}
.slot-canvas .auto-status {
  font-size: 11px;
}
.slot-canvas .action-cue {
  font-size: 11px;
}

#motion-gallery {
  max-width: 900px;
  margin: 60px auto;
}
.loop-review {
  margin-bottom: 85px;
}
.loop-review > .visual {
  margin-top: 25px;
}
.surface-body {
  position: relative;
}
.beat {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 12px;
  min-height: 205px;
  pointer-events: none;
}
.beat .input {
  bottom: 0;
  left: 0;
  right: 0;
}
.loop-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
  flex-wrap: wrap;
}
.loop-controls button {
  border: 1px solid #c0c8cb;
  border-radius: 6px;
  background: white;
  color: #134f5c;
  font: 12px Inter;
  padding: 8px 13px;
  cursor: pointer;
}
.loop-controls input {
  flex: 1;
  min-width: 80px;
  accent-color: #134f5c;
}
.loop-controls output {
  font: 11px Inter;
  color: #40484b;
}
.loop-controls :focus-visible {
  outline: 2px solid #134f5c;
  outline-offset: 3px;
}
.website-step > .loop-controls {
  grid-column: 2;
  margin-top: -35px;
}
.website-step:nth-child(even) > .loop-controls {
  grid-column: 1;
}
.website-step:nth-child(even) > .visual {
  grid-column: 1;
  grid-row: 1;
}
.website-step:nth-child(even) > div:first-child {
  grid-row: 1;
}
.website-step > .loop-controls .restart,
.website-step > .loop-controls input,
.website-step > .loop-controls output {
  display: none;
}
.chat-entry {
  position: absolute;
  inset: 0;
}
.beat .case-row b {
  font-weight: 400;
}
.beat .entry-path {
  min-height: 55px;
}
@media (max-width: 700px) {
  .website-step > .loop-controls,
  .website-step:nth-child(even) > .loop-controls {
    grid-column: 1;
    margin-top: -12px;
  }
  .website-step:nth-child(even) > .visual {
    grid-row: auto;
  }
  .website-step:nth-child(even) > div:first-child {
    grid-row: auto;
  }
  .loop-controls {
    gap: 8px;
  }
  header nav {
    display: flex;
  }
  header nav a:last-child {
    display: none;
  }
}
/* Consistent section artboards; host background shows through. */
.visual,
.website-step .visual {
  background: transparent;
  border: 0;
  border-radius: 0;
  aspect-ratio: 16/9;
}
.slot-canvas .rear {
  display: none;
}
.slot-canvas .surface,
.website-step .slot-canvas .surface {
  inset: 12px 12px 16px;
  border: 1px solid #dce3e3;
  border-radius: 12px;
  box-shadow: 0 5px 12px #134f5c08;
}
.slot-canvas .surface-head {
  height: 57px;
  padding: 12px 22px;
}
.slot-canvas .surface-head strong {
  font-size: 15px;
}
.slot-canvas .surface-head small {
  font-size: 11px;
}
.slot-canvas .surface-body,
.website-step .slot-canvas .surface-body {
  padding: 16px 22px;
}
.website-step {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}
.website-step > div:first-child {
  grid-column: 1;
  grid-row: 1;
  order: 0;
}
.website-step > .visual {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.website-step:nth-child(even) > div:first-child {
  grid-column: 2;
  grid-row: 1;
  order: 0;
}
.website-step:nth-child(even) > .visual {
  grid-column: 1;
  grid-row: 1;
}
.persistent-scene {
  height: 245px;
  font-size: 14px;
  color: #191c1d;
  position: relative;
}
.persistent-scene small,
.evidence-label {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  color: #647488;
  margin-bottom: 8px;
}
.persistent-scene strong {
  display: block;
  font-size: 15px;
  color: #134f5c;
  line-height: 1.4;
}
.persistent-scene p {
  font-size: 13px;
  line-height: 1.6;
  margin: 10px 0;
}
.entry-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.entry-pair > div {
  min-height: 85px;
}
.persistent-message {
  font-size: 14px;
  line-height: 1.6;
  min-height: 50px;
}
.file-chip {
  border: 1px solid #dce3e3;
  border-radius: 6px;
  padding: 12px;
  font-size: 13px;
  color: #40484b;
}
.flow-thread {
  text-align: center;
  color: #88b8c0;
  height: 25px;
}
.persistent-result {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  align-items: center;
  border-top: 1px solid #edf1f1;
  padding-top: 16px;
}
.persistent-result .pack {
  width: 190px;
  height: 90px;
}
.persistent-result small {
  font-size: 9px;
}
.persistent-row {
  padding: 9px 0;
  border-bottom: 1px solid #edf1f1;
  min-height: 52px;
}
.persistent-row small {
  font-size: 9px;
  margin-bottom: 4px;
}
.persistent-row strong {
  font-size: 14px;
}
.persistent-question {
  font-size: 14px;
  line-height: 1.5;
  color: #134f5c;
  border-left: 2px solid #88b8c0;
  padding-left: 12px;
  margin: 12px 0;
  min-height: 23px;
}
.persistent-answer {
  font-size: 14px;
  line-height: 1.6;
  min-height: 45px;
  padding: 3px 0 3px 14px;
  color: #40484b;
}
.persistent-status {
  font-size: 12px;
  color: #134f5c;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #edf1f1;
}
.persistent-evidence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 35px;
  height: 125px;
}
.mechanism-fixed {
  text-align: center;
}
.mechanism-fixed .pack {
  width: 200px;
  height: 90px;
}
.mechanism-fixed small {
  font-size: 9px;
  margin: 0;
}
.source-links > div {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #88b8c0;
  height: 34px;
}
.source-links span {
  font-size: 12px;
  color: #40484b;
  border-bottom: 1px solid #edf1f1;
  padding: 5px;
  width: 150px;
}
.persistent-comparison {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #edf1f1;
  padding: 9px 0;
  font-size: 12px;
}
.persistent-comparison strong {
  font-size: 12px;
  font-weight: 400;
}
.scene-2 .persistent-question {
  font-size: 12px;
}
.scene-3 .persistent-question {
  font-size: 16px;
  margin: 18px 0;
}
.scene-3 .persistent-answer {
  min-height: 60px;
}
.scene-3 .persistent-row {
  margin-top: 10px;
}
.handover-documents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.handover-documents > div {
  border: 1px solid #dce3e3;
  padding: 12px 16px;
  border-radius: 8px;
  height: 120px;
}
.document-lines {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}
.document-lines i {
  display: block;
  height: 3px;
  background: #dce3e3;
  width: 95%;
}
.document-lines i:last-child {
  width: 65%;
}
.handover-track {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 22px;
  font-size: 12px;
  color: #40484b;
}
.handover-line {
  flex: 1;
  height: 2px;
  background: #edf1f1;
}
.handover-line i {
  height: 2px;
  display: block;
  background: #134f5c;
  transform-origin: left;
}
.review-receipt {
  font-size: 12px;
  color: #134f5c;
  margin-top: 12px;
}
@media (max-width: 700px) {
  .website-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .website-step > div:first-child,
  .website-step:nth-child(even) > div:first-child {
    grid-column: 1;
    grid-row: 1;
  }
  .website-step > .visual,
  .website-step:nth-child(even) > .visual {
    grid-column: 1;
    grid-row: 2;
  }
  .website-step {
    padding: 18px;
  }
  .loop-review .visual {
    margin-top: 20px;
  }
}
/* Contrast refinement: defined panel edge, tonal header, readable fine detail. */
.slot-canvas .surface,
.website-step .slot-canvas .surface {
  border-color: #aebcbd;
  box-shadow: 0 5px 14px #00364012;
}
.slot-canvas .surface-head {
  background: #eef3f2;
  border-bottom: 1px solid #aebcbd;
}
.slot-canvas .surface-head small {
  color: #40484b;
}
.persistent-scene small,
.evidence-label {
  color: #4d5c60;
}
.persistent-row,
.persistent-comparison,
.source-links span {
  border-bottom-color: #c0c8cb;
}
.persistent-result,
.persistent-status {
  border-top-color: #c0c8cb;
}
.file-chip,
.handover-documents > div {
  border-color: #aebcbd;
  background: #f8f9fa;
}
.document-lines i {
  background: #aebcbd;
}
.handover-line {
  background: #c0c8cb;
}
.flow-thread,
.source-links > div {
  color: #647488;
}
.persistent-question {
  border-left-color: #134f5c;
}

html,
body {
  margin: 0;
  background: transparent;
  overflow: hidden;
}
main {
  padding: 0;
  margin: 0;
  max-width: none;
}
.visual {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}
.badge {
  display: none;
}
