/* JoshCKH — restrained service-site typography and interaction system. */
:root {
  --text-body: 16px;
  --text-small: 13px;
  --radius-control: 6px;
  --radius-surface: 10px;
}
body { font-size: var(--text-body); }
h1, h2, h3 { text-wrap: balance; }
.wrap { max-width: 1248px; }
.site-header { height: 80px; }
.site-header nav { font-size: 13px; }
.hero { padding-block: 64px; gap: 48px; }
.hero h1 { font-size: clamp(40px, 4.25vw, 64px); line-height: 1.1; }
.hero .lead { font-size: 16px; line-height: 1.8; max-width: 530px; }
.eyebrow { font-size: 11px; letter-spacing: 1.1px; }
.button, .button.compact { font-size: 13px; min-height: 48px; border-radius: var(--radius-control); }
.plain-link { font-size: 13px; }
.byline p { font-size: 13px; }
.byline p span { font-size: 11px; max-width: 330px; }
.soft { color: #666; }
.section { padding-block: 96px; }
.section-heading { margin-bottom: 40px; gap: 48px; }
.section-heading > p { font-size: 15px; max-width: 360px; }
.visual-label { font-size: 9px; }
.workflow-scene { border-radius: var(--radius-surface); background: #f1f1f1; box-shadow: none; }
.scene-grid { opacity: .3; }
.float-note { transform: none; box-shadow: 0 4px 16px #00000005; }
.float-note small, .result-note small { font-size: 8px; letter-spacing: .4px; }
.float-note b { font-size: 12px; }
.system-core strong { font-size: 16px; }
.system-core small { font-size: 8px; letter-spacing: .5px; }
.scene-bottom > span { font-size: 10px; }
.scene-bottom button { font-size: 11px; min-width: 64px; min-height: 44px; }
.visual-foot { display: none; }
.result-note { bottom: 82px; }
.value-strip { gap: 24px; padding-block: 28px; }
.value-strip > div p { font-size: 13px; }
.value-strip small { font-size: 12px; }
.value-strip > div > span { font-size: 11px; }
.explorer { border-radius: var(--radius-surface); }
.explorer-options { padding: 16px; gap: 8px; }
.explorer-options button { padding: 24px 20px; font-size: 12px; }
.explorer-options button strong { font-size: 20px; font-weight: 600; }
.explorer-options button > span { font-size: 13px; line-height: 1.6; display: block; }
.explorer-panel { padding: 40px; }
.explorer-panel h3 { font-size: 28px; }
.thinking-steps { gap: 28px; }
.thinking-steps article > span { font-size: 11px; letter-spacing: .6px; }
.thinking-steps p { font-size: 15px; line-height: 1.75; }
.small-print { font-size: 12px; line-height: 1.7; max-width: 78ch; }
.proof-story { grid-template-columns: .55fr 1.4fr 1fr; gap: 40px; padding-block: 48px; }
.proof-number { font-size: 11px; line-height: 1.7; }
.proof-story p, .proof-story dd { font-size: 15px; line-height: 1.8; }
.proof-story dt { font-size: 12px; }
.proof-story .button { font-size: 12px; }
.proof-diagram { font-size: 13px; border: 1px solid var(--line); background: #f5f5f5; }
.proof-diagram small { font-size: 11px; }
.about { gap: 64px; padding: 40px; border-radius: var(--radius-surface); }
.about-copy > p:not(.eyebrow) { font-size: 15px; line-height: 1.8; }
.portrait span { font-size: 10px; }
.engagement-steps { gap: 40px; }
.engagement-steps p { font-size: 15px; }
.faq summary { font-size: 16px; min-height: 64px; }
.faq p { font-size: 15px; line-height: 1.8; }
.contact-bottom p { font-size: 16px; }
.contact-note { font-size: 12px; }
footer { font-size: 12px; padding-bottom: 96px; }
.button:active, .small-button:active, .chat-launch:active { transform: translateY(1px); }
.plain-link { text-underline-offset: 5px; }
.plain-link:hover { text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible { outline: 2px solid #292929; outline-offset: 4px; }
.small-button, .proof-nav button, .board-task button { min-height: 44px; font-size: 13px; }
.proof-content { padding: 32px; }
.proof-content p, .knowledge-page p { font-size: 15px; line-height: 1.8; }
.proof-content .eyebrow { font-size: 11px; }
.proof-intro { padding-block: 48px 32px; }
.proof-intro > p:not(.eyebrow) { font-size: 16px; }
.proof-bar { font-size: 13px; padding: 20px 24px; }
.demo-disclosure { font-size: 12px; padding: 16px 24px; line-height: 1.7; }
.proof-nav { padding: 20px; }
.proof-nav input, .proof-nav label { font-size: 13px; }
.proof-app-body { grid-template-columns: 270px minmax(0, 1fr); }
.proof-nav button { line-height: 1.5; padding: 12px; }
.data-table { font-size: 14px; }
.data-table th { font-weight: 600; }
.proof-content input, .proof-content select { font-size: 16px; min-height: 48px; }
.proof-content label, .proof-label { font-size: 13px; }
.quote-item, .board-task { font-size: 14px; }
.board-task small { font-size: 12px; }
.board-column > h3 { font-size: 15px; }
.board-demo { gap: 16px; }
.workspace-chat p { font-size: 15px; }
.workspace-form { align-items: stretch; }
.activity { font-size: 13px; line-height: 1.7; }
.metric-row span { font-size: 13px; }
.chat-launch { font-size: 12px; min-height: 48px; bottom: max(20px, env(safe-area-inset-bottom)); }
.discovery-chat header strong { font-size: 15px; }
.discovery-chat header small { font-size: 12px; }
.discovery-chat header button { min-width: 44px; min-height: 44px; }
.chat-message, .discovery-chat label { font-size: 14px; }
.discovery-chat textarea { font-size: 16px; }
.discovery-chat .button { font-size: 13px; }
.discovery-chat .plain-link { margin-left: 0; }
.menu-toggle { display: none; }

@media (min-width: 1101px) {
  .hero { min-height: min(820px, calc(100svh - 80px)); }
  .workflow-scene { min-height: 500px; }
}
@media (max-width: 1100px) {
  .hero { gap: 32px; }
  .float-note b { font-size: 10px; }
  .float-note small, .result-note small { font-size: 7px; }
  .system-core strong { font-size: 13px; }
  .scene-bottom > span { font-size: 8px; }
  .proof-story { grid-template-columns: 1fr 1fr; gap: 24px; }
  .proof-number { grid-column: 1 / -1; }
  .proof-app-body { grid-template-columns: 210px minmax(0, 1fr); }
  .board-demo { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .hero { gap: 40px; }
  .hero h1 { font-size: clamp(40px, 6.6vw, 56px); }
  .hero h1 br { display: none; }
  .hero h1 .soft { display: block; }
  .hero h1 .soft br { display: none; }
  .section { padding-block: 72px; }
  .section-heading { gap: 20px; }
  .explorer-options button { padding: 16px 12px; }
  .explorer-options button strong { font-size: 16px; }
  .explorer-options button > span { font-size: 12px; }
  .explorer-panel { padding: 32px; }
  .about { gap: 32px; padding: 28px; }
  .engagement-steps { gap: 24px; }
  .value-strip > div { min-width: 180px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 88px; }
  .site-header { height: 72px; padding-inline: 20px; gap: 12px; }
  .site-header .compact { margin-left: auto; padding: 10px 14px; font-size: 12px; min-height: 44px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid #d5d5d5; background: transparent; border-radius: 6px; padding: 8px; font-size: 12px; }
  .site-header nav.mobile-open { display: flex; position: absolute; top: 72px; left: 0; right: 0; padding: 20px; margin: 0; background: #fafafa; border-bottom: 1px solid var(--line); flex-direction: column; gap: 8px; }
  .site-header nav.mobile-open a { min-height: 44px; display: flex; align-items: center; font-size: 16px; }
  .hero { padding-top: 36px; padding-bottom: 40px; gap: 32px; }
  .hero h1 { font-size: clamp(36px, 9.5vw, 48px); line-height: 1.12; }
  .hero .lead { font-size: 15px; line-height: 1.75; margin-block: 24px; }
  .hero .eyebrow { font-size: 10px; }
  .hero .button { font-size: 13px; padding: 14px 18px; }
  .hero .plain-link { font-size: 13px; }
  .actions { gap: 12px; align-items: stretch; flex-direction: column; }
  .actions > .button { justify-content: space-between; }
  .actions > .plain-link { justify-content: center; }
  .byline p { font-size: 12px; }
  .byline p span { font-size: 10px; max-width: 240px; }
  .section { padding-block: 56px; }
  .section-heading { margin-bottom: 28px; }
  .section-heading > p { font-size: 15px; }
  h2 { font-size: 32px; }
  .visual-label { font-size: 8px; }
  .scene-bottom > span { font-size: 7px; }
  .scene-bottom { padding: 8px 10px; }
  .result-note { bottom: 68px; }
  .system-core strong { font-size: 12px; }
  .system-core small { font-size: 7px; }
  .value-strip small { max-width: none; font-size: 12px; }
  .value-strip > div p { font-size: 13px; }
  .explorer-options { flex-direction: column; padding: 12px; }
  .explorer-options button { display: grid; grid-template-columns: 25px 1fr; column-gap: 10px; padding: 16px; font-size: 11px; }
  .explorer-options button strong { font-size: 17px; margin: 0; }
  .explorer-options button > span { display: block; grid-column: 2; margin-top: 6px; font-size: 13px; }
  .explorer-panel { padding: 28px 20px; }
  .explorer-panel h3 { font-size: 25px; }
  .thinking-steps p { font-size: 15px; }
  .thinking-steps article > span { font-size: 11px; }
  .proof-story { grid-template-columns: 1fr; gap: 24px; padding-block: 32px; }
  .proof-story h3 { font-size: 25px; }
  .proof-story .button { width: 100%; font-size: 12px; justify-content: center; }
  .proof-diagram { padding: 24px; }
  .about { padding: 24px; }
  .portrait { min-height: 320px; }
  .about-copy > p:not(.eyebrow) { font-size: 15px; }
  .engagement-steps { gap: 28px; }
  .contact-bottom { align-items: stretch; }
  .contact-bottom .button { justify-content: center; }
  .contact-bottom p { font-size: 15px; }
  .contact-note { font-size: 12px; }
  footer { font-size: 12px; padding-bottom: 100px; }
  .proof-page .site-header { height: auto; min-height: 80px; flex-wrap: wrap; padding-block: 16px; }
  .proof-page .site-header > .plain-link { order: 3; width: 100%; font-size: 13px; }
  .proof-intro { padding-block: 32px; }
  .proof-intro h1 { font-size: 34px; }
  .proof-intro > p:not(.eyebrow) { font-size: 15px; }
  .proof-app-body { grid-template-columns: 1fr; }
  .proof-bar { flex-direction: column; gap: 5px; font-size: 13px; padding: 18px; }
  .demo-disclosure { font-size: 12px; padding: 16px 18px; }
  .proof-nav { padding: 18px; }
  .proof-nav button { margin: 4px 0; }
  #catalogue-list button { display: block; width: 100%; }
  .proof-content { padding: 24px 18px; }
  .proof-content h2 { font-size: 27px; }
  .proof-content h3 { font-size: 20px; }
  .data-table { font-size: 13px; }
  .data-table td, .data-table th { padding: 12px 8px; }
  .proof-actions { gap: 12px; }
  .proof-actions > button { flex: 1; }
  .workspace-form { flex-direction: column; }
  .workspace-form .button { justify-content: center; }
  .chat-launch { font-size: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .discovery-chat { padding: 18px; bottom: 76px; }
}
@media (max-width: 360px) {
  .workflow-scene { min-height: 460px; }
  .result-note { bottom: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Give every workflow step a defined row and consistent edges. */
.workflow-scene {
  --flow-gap: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto 1fr;
  gap: var(--flow-gap) 20px;
  min-height: 500px;
  padding: 32px 24px 0;
  align-content: start;
}
.workflow-scene .float-note,
.workflow-scene .system-core,
.workflow-scene .result-note {
  position: relative;
  inset: auto;
  width: 100%;
  min-width: 0;
  margin: 0;
  transform: none;
}
.workflow-scene .note-one { grid-column: 1; grid-row: 1; }
.workflow-scene .note-two { grid-column: 2; grid-row: 1; }
.workflow-scene .system-core { grid-column: 1 / -1; grid-row: 2; padding: 20px 16px; }
.workflow-scene .note-three { grid-column: 1; grid-row: 3; }
.workflow-scene .result-note { grid-column: 2; grid-row: 3; padding: 16px 12px; }
.workflow-scene .float-note { padding: 16px 12px; gap: 8px; }
.workflow-scene .float-note b { white-space: normal; font-size: 11px; line-height: 1.5; display: block; }
.workflow-scene .float-note small,
.workflow-scene .result-note small { font-size: 7px; line-height: 1.5; }
.workflow-scene .note-icon { flex-shrink: 0; width: 28px; }
.workflow-scene .result-note b { font-size: 12px; }
.workflow-scene .result-note div > span { font-size: 9px; display: block; line-height: 1.5; }
.workflow-scene .result-arrow { display: none; }
.workflow-scene .check { flex-shrink: 0; width: 24px; height: 24px; }
.workflow-scene .scene-bottom {
  position: relative;
  inset: auto;
  grid-column: 1 / -1;
  grid-row: 4;
  margin: 0 -24px;
  padding: 12px 16px;
  align-self: end;
  min-height: 64px;
}
.workflow-scene .route-lines { display: none; }
.workflow-scene .system-core::before,
.workflow-scene .system-core::after {
  content: '';
  position: absolute;
  left: 50%;
  height: calc(var(--flow-gap) / 2);
  width: 1px;
  background: #a5a5a5;
  pointer-events: none;
}
.workflow-scene .system-core::before { bottom: 100%; }
.workflow-scene .system-core::after { top: 100%; }
.workflow-scene .note-one::after,
.workflow-scene .note-two::after,
.workflow-scene .note-three::before,
.workflow-scene .result-note::before {
  content: '';
  position: absolute;
  width: calc(50% + 10px);
  height: calc(var(--flow-gap) / 2);
  border-color: #a5a5a5;
  border-style: solid;
  pointer-events: none;
}
.workflow-scene .note-one::after { top: 100%; left: 50%; border-width: 0 0 1px 1px; }
.workflow-scene .note-two::after { top: 100%; right: 50%; border-width: 0 1px 1px 0; }
.workflow-scene .note-three::before { bottom: 100%; left: 50%; border-width: 1px 0 0 1px; }
.workflow-scene .result-note::before { bottom: 100%; right: 50%; border-width: 1px 1px 0 0; }
@media (max-width: 1100px) and (min-width: 801px) {
  .workflow-scene { --flow-gap: 32px; padding: 24px 16px 0; gap: var(--flow-gap) 12px; min-height: 480px; }
  .workflow-scene .scene-bottom { margin-inline: -16px; }
  .workflow-scene .note-icon { display: none; }
  .workflow-scene .system-core::before,
  .workflow-scene .system-core::after { height: calc(var(--flow-gap) / 2); }
}
@media (max-width: 540px) {
  .workflow-scene { --flow-gap: 28px; min-height: 420px; padding: 24px 16px 0; gap: var(--flow-gap) 12px; }
  .workflow-scene .scene-bottom { margin-inline: -16px; }
  .workflow-scene .note-icon, .workflow-scene .check { display: none; }
  .workflow-scene .float-note, .workflow-scene .result-note { padding: 12px; }
  .workflow-scene .float-note b, .workflow-scene .result-note b { font-size: 10px; }
  .workflow-scene .system-core::before,
  .workflow-scene .system-core::after { height: calc(var(--flow-gap) / 2); }
}
