:root {
  color-scheme: light;
  --paper: #fbfcfd;
  --white: #fff;
  --ink: #172436;
  --muted: #4c5e72;
  --line: #d8e1e9;
  --blue: #23558e;
  --wash: #edf3f9;
  --page: 1152px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 system-ui, sans-serif;
}
a { color: var(--blue); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
.wrap { width: min(var(--page), calc(100% - 56px)); margin-inline: auto; }
.review { background: var(--wash); border-bottom: 1px solid var(--line); }
.review .wrap, .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-block: 12px;
}
.review label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.review input { accent-color: var(--blue); }
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { padding-block: 18px; }
.wordmark { color: var(--ink); font-size: 1.3rem; font-weight: 750; text-decoration: none; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 19px; margin: 0; padding: 0; }
nav a { display: inline-block; padding-block: 4px; }
.layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 46px; }
.contents { align-self: start; position: sticky; top: 24px; padding-block: 40px; }
.contents ol { margin: 10px 0 0; padding-inline-start: 23px; color: var(--muted); font-size: .875rem; }
.contents li { padding-block: 4px; }
.chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 184px;
  gap: 24px;
  padding-block: 52px;
  border-bottom: 1px solid var(--line);
}
.chapter:last-child { border: 0; }
.note {
  align-self: start;
  padding: 9px 0 9px 13px;
  border-inline-start: 2px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}
.note strong { display: block; color: var(--ink); margin-bottom: 3px; }
body:has(#show-notes:not(:checked)) .note { display: none; }
body:has(#show-notes:not(:checked)) .chapter { grid-template-columns: minmax(0, 1fr); }
h1, h2, h3, p { margin: 0; }
h1, h2 { line-height: 1.12; text-wrap: balance; letter-spacing: -.035em; }
h1 { font-size: clamp(2.35rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.5rem); }
h3 { font-size: 1.08rem; line-height: 1.3; }
h1 + p, h2 + p { margin-top: 15px; }
.lead { font-size: clamp(1.06rem, 1.9vw, 1.25rem); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px;
  padding: 7px 13px; border: 1px solid var(--blue); border-radius: 5px;
  font: inherit; font-weight: 650; color: var(--blue); background: var(--white); text-decoration: none;
}
.button.primary { color: var(--white); background: var(--blue); }
.rows { margin-top: 20px; }
.row { padding-block: 12px; border-top: 1px solid var(--line); }
.row p, dd { margin: 5px 0 0; color: var(--muted); }
.row a { display: inline-block; margin-top: 5px; }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
dt { font-weight: 700; }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary { padding-block: 10px; font-weight: 650; cursor: pointer; }
details p { padding: 0 0 12px 19px; color: var(--muted); }
.video-slot {
  display: grid; place-content: center; gap: 4px; aspect-ratio: 16 / 9; text-align: center;
  margin-top: 20px; padding: 16px; border: 1px dashed #8196aa; border-radius: 5px; background: var(--wash);
}
.video-slot small, .muted { color: var(--muted); }
fieldset { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; border: 0; }
fieldset label { display: grid; gap: 4px; font-weight: 600; }
fieldset input, textarea {
  width: 100%; border: 1px solid #8196aa; border-radius: 4px;
  padding: 8px; background: var(--white); color: var(--ink); font: inherit;
}
textarea { resize: vertical; }
button:disabled { justify-self: start; border-color: var(--line); color: var(--muted); background: var(--wash); }
footer { padding-block: 16px; border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 980px) {
  .layout { gap: 28px; grid-template-columns: 150px minmax(0, 1fr); }
  .chapter { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 32px); }
  .layout { display: block; }
  .contents { position: static; padding-block: 18px; border-bottom: 1px solid var(--line); }
  .contents ol { columns: 2; }
  .contents li { break-inside: avoid; }
  .chapter { padding-block: 32px; }
}
@media (max-width: 350px) {
  .services, .contents ol { display: block; columns: auto; }
}

.chapter p + p { margin-top: 12px; }
.pilot {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--wash);
}
.pilot p { margin-top: 5px; }

.visual-slot {
  display: grid;
  align-items: center;
  min-height: clamp(150px, 18vw, 230px);
  margin: 20px 0 0;
  padding: clamp(16px, 3vw, 32px);
  border: 1px dashed #8297ab;
  border-radius: 5px;
  background: var(--wash);
  color: var(--muted);
}
.visual-slot figcaption { max-width: 58ch; }
.visual-slot small, .visual-slot strong { display: block; }
.visual-slot small { color: var(--blue); }
.visual-slot strong { margin: 4px 0; color: var(--ink); }

#launch > div { container-type: inline-size; }
.launch-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  counter-reset: stage;
  margin: 28px 0;
  padding: 0;
}
.launch-steps li { position: relative; counter-increment: stage; padding-right: 12px; }
.launch-steps li::before {
  content: counter(stage);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  margin-bottom: 10px;
}
.launch-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 32px;
  right: 0;
  border-top: 2px solid var(--line);
}
.launch-steps p { margin-top: 6px; font-size: .94rem; color: var(--muted); }
@container (max-width: 730px) {
  .launch-steps { grid-template-columns: 1fr; }
  .launch-steps li { padding: 3px 0 20px 46px; }
  .launch-steps li::before { position: absolute; top: 0; left: 0; }
  .launch-steps li:not(:last-child)::after {
    top: 32px; bottom: 0; left: 15px; right: auto;
    border-top: 0; border-left: 2px solid var(--line);
  }
}

button.button { cursor: pointer; }
button:disabled, fieldset:disabled button { cursor: default; }
#process-film {
  width: min(42rem, calc(100% - 2rem));
  max-height: 90vh;
  padding: clamp(16px, 3vw, 32px);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
}
#process-film::backdrop { background: rgb(23 36 54 / 55%); }
.film-heading, .footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.film-heading { justify-content: space-between; }
#process-film .video-slot p { max-width: 48ch; }
fieldset .consent-check { display: flex; align-items: baseline; font-weight: 400; }
.consent-check input { width: auto; }
.footer-links { font-size: .875rem; }
.legal-copy { max-width: 74ch; padding-block: 3rem; }
.legal-copy h2 { margin-top: 2rem; }
.legal-copy p + p { margin-top: .8rem; }

#barriers > div { container-type: inline-size; }
.pain-grid {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.pain-grid li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.pain-grid p { font-weight: 650; line-height: 1.35; }
.pain-scene {
  display: grid;
  align-items: center;
  min-height: 6rem;
  margin: 0;
  padding: 12px;
  border: 1px dashed #8297ab;
  border-radius: 4px;
  background: var(--wash);
  color: var(--muted);
  font-size: .875rem;
}
@container (max-width: 620px) {
  .pain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 410px) {
  .pain-grid { grid-template-columns: minmax(0, 1fr); }
}

.mes-guide { max-width: 74ch; padding-block: clamp(32px, 6vw, 72px); }
.mes-guide section { margin-top: clamp(32px, 5vw, 56px); }
.mes-guide section p, .mes-guide li + li { margin-top: .85rem; }
.mes-guide ol { padding-inline-start: 1.5rem; }
#scope .visual-slot + a { display: inline-block; margin-top: .75rem; }

.integration-map {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, 1fr);
  place-items: center;
  margin: 18px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--wash);
  container-type: inline-size;
}
.integration-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.integration-lines line { stroke: #708ba6; stroke-width: 1.6; stroke-dasharray: 3 5; }
.integration-node {
  display: grid;
  justify-items: center;
  gap: 3px;
  max-width: calc(100% - 10px);
  box-sizing: border-box;
  margin-block: 16px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  font-size: .95rem;
  line-height: 1.24;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.integration-node b { font: 750 1.35rem/27px system-ui; color: var(--blue); }
.integration-node svg { color: var(--blue); }
.integration-node small { color: var(--muted); }
.integration-hub { color: white; background: var(--blue); border-color: var(--blue); padding: 16px; }
.integration-hub svg { color: inherit; }
@container (max-width: 460px) {
  .integration-node { font-size: .8rem; padding: 5px; margin-block: 12px; }
  .integration-hub { padding: 10px 5px; }
}

.case-index { padding-block: 3rem; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; margin-top: 20px; }
.case-card { display: flex; flex-direction: column; align-items: flex-start; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.case-circle { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; margin-bottom: 14px; color: var(--blue); background: var(--wash); }
.case-card small { color: var(--muted); }
.case-card p, .case-card strong { margin-top: 12px; }
.case-card a { margin-top: auto; padding-top: 16px; }

#ai > div { container-type: inline-size; }
.ai-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.ai-card { display: flex; flex-direction: column; gap: 7px; padding: 14px; border: 1px solid var(--line); background: var(--white); border-radius: 8px; }
.ai-card p { font-size: .94rem; line-height: 1.4; }
.ai-sketch { margin: auto 0 0; padding: 8px; background: var(--wash); border: 1px dashed #8297ab; border-radius: 4px; font-size: .8rem; color: var(--muted); }
.case-card h2 { font-size: 1.08rem; letter-spacing: normal; }
body:has(#show-notes:not(:checked)) .contents { display: none; }
body:has(#show-notes:not(:checked)) .layout { grid-template-columns: minmax(0, 1fr); }
@container (max-width: 840px) { .ai-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 480px) { .ai-grid { grid-template-columns: 1fr; } }
.agent-heading { margin-top: 2rem; }

.blog-post { margin-top: clamp(32px, 5vw, 56px); }
.blog-post p + p { margin-top: .85rem; }

h1 { overflow-wrap: anywhere; hyphens: auto; }

.production-view, .case-screen { margin: 20px 0; }
.production-view { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--white); }
.production-view { position: relative; display: grid; align-items: center; min-height: clamp(17rem, 38vw, 35rem); isolation: isolate; }
.production-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: -2; }
.production-view::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f2f6f9 6%, rgba(242,246,249,.98) 38%, transparent 67%); z-index: -1; }
.production-view figcaption { width: 52%; padding: clamp(18px, 3vw, 48px); color: var(--ink); }
.production-view figcaption p { margin: 0 0 1em; font-size: clamp(18px, 2.2vw, 30px); line-height: 1.18; font-weight: 750; }
.production-view ul { margin: 0; padding-inline-start: 1.15em; font-size: clamp(15px, 1.5vw, 20px); line-height: 1.45; }
.production-view li + li { margin-top: .45em; }
.production-view li::marker { color: #205aa3; }
@media (max-width: 600px) {
  .production-view { background: #f2f6f9; min-height: 0; padding-bottom: 38%; }
  .production-view img { inset: auto 0 0; height: auto; }
  .production-view::before { background: linear-gradient(to bottom, #f2f6f9 53%, transparent 71%); }
  .production-view figcaption { width: 100%; max-width: 31rem; }
}
.case-screen a { display: grid; place-items: center; padding: 16px; background: var(--wash); border-radius: 8px; cursor: zoom-in; }
.case-screen img { max-width: 100%; max-height: 36rem; object-fit: contain; }
.case-screen figcaption { margin-top: 8px; font-size: .92rem; color: var(--muted); }
.case-preview { width: 100%; height: 10rem; object-fit: contain; background: var(--wash); border: 1px solid var(--line); border-radius: 5px; margin: 14px 0 2px; }


/* Shared editorial identity, from the workshop overview to the case articles. */
:root { --paper:#f6f8fa; --ink:#122839; --muted:#455d6e; --blue:#1958ab; --wash:#eaf1f6; --line:#cbd7df; --page:1248px; }
body { font-family:"Avenir Next","Segoe UI",system-ui,sans-serif; }
h1,h2,h3,.wordmark { font-family:"Helvetica Neue",Arial,sans-serif; }
h1,h2 { letter-spacing:-.048em; }
.site-header { border-top:4px solid var(--blue); }
.wordmark { font-size:1.65rem; letter-spacing:-.07em; }
.site-header nav a { color:var(--ink); font-weight:550; font-size:.91rem; text-decoration:none; }
.site-header nav a:hover,.site-header [aria-current="page"] { color:var(--blue); text-decoration:underline; }
.site-header nav li:last-child a { color:var(--blue); border:1px solid var(--line); border-radius:24px; padding:5px 14px; }
.site-header nav ul { align-items:center; }
.chapter { padding-block:clamp(40px,5.5vw,78px); }
h2 { font-size:clamp(1.85rem,4.2vw,3.2rem); }
#start > div { display:grid; grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr); gap:18px 6%; align-items:center; }
#start h1 { grid-row:span 2; font-size:clamp(2.6rem,5.35vw,4.8rem); line-height:1; }
#start .lead,#start .actions { margin:0; }
.workshop-map { grid-column: 1/-1; position: relative; margin: 12px 0 0; border-radius: 16px; overflow: hidden; }
.workshop-map img { display: block; width: 100%; height: auto; }
.workshop-map figcaption { position: absolute; top: 3%; left: 2%; color: #43566a; font-size: clamp(11px, 1.1vw, 14px); }
.workshop-map ul { margin: 0; padding: 0; list-style: none; }
.workshop-map li { position: absolute; left: var(--x); bottom: var(--y); transform: translateX(-50%); padding: clamp(4px, .6vw, 9px) clamp(7px, 1vw, 15px); border-radius: 9px; background: #fff; color: #17334b; line-height: 1.25; box-shadow: 0 2px 10px #19395636; }
.workshop-map li::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: white; }
.workshop-map strong, .workshop-map span { display: block; white-space: nowrap; }
.workshop-map strong { font-size: clamp(12px, 1.4vw, 20px); }
.workshop-map span { margin-top: 2px; font-size: clamp(11px, 1.16vw, 16px); }
.workshop-map span::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .4em; border-radius: 50%; background: var(--status); }
.station-cut { --x: 38%; --y: 47%; --status: #2163a7; }
.station-weld { --x: 83%; --y: 67%; --status: #ac741a; }
.station-qc { --x: 74%; --y: 37%; --status: #348257; }
.button { border-radius:24px; padding:9px 18px; }
.button.primary:hover { background:#104989; }
.pain-grid,.ai-grid,.case-grid { margin-top:clamp(20px,3vw,34px); gap:16px; }
.pain-grid li,.ai-card { border-radius:12px; border:1px solid var(--line); padding:0; overflow:hidden; gap:0; justify-content:flex-start; }
.card-art { width:100%; aspect-ratio:1.85; object-fit:cover; display:block; order:-1; }
.pain-grid p { padding:16px 18px 20px; }
.ai-card h3 { padding:16px 14px 0; }
.ai-card p { padding:7px 14px 17px; }
.ai-card img { aspect-ratio:1.72; }
.systems-art,.story-image { margin:22px 0; border-radius:14px; overflow:hidden; border:1px solid var(--line); background:var(--white); }
.editorial-image { width:100%; height:auto; display:block; }
.systems-art img { max-height:560px; object-fit:contain; }
.systems-art dl { display:grid;grid-template-columns:repeat(4,1fr);margin:0; }
.systems-art dl div { padding:12px 16px; border-top:1px solid var(--line); }
.systems-art dd,.story-image figcaption { color:var(--muted); font-size:.9rem; }
.story-image figcaption { padding:12px 16px; }
.mes-guide,.legal-copy { background:var(--white); margin-block:clamp(16px,3vw,42px); padding:clamp(18px,4vw,56px); max-width:85ch; border-radius:14px; border:1px solid var(--line); }
.mes-guide h2,.legal-copy h2 { font-size:clamp(1.6rem,3vw,2.2rem); }
.case-card { border-radius:12px; }
.case-preview { padding:5px; background:var(--wash); }
#contact > div { border-radius:16px; background:#e3edf5; padding:clamp(20px,4vw,48px); display:grid; grid-template-columns:1fr 1.25fr; align-items:start; gap:24px; }
#contact fieldset { margin-top:0; }
#contact form { background:white; padding:clamp(14px,2vw,28px); border-radius:12px; }
.footer-links a:first-child { font-weight:750; color:var(--ink); }
.review { background:transparent; font-size:.82rem; color:var(--muted); }
.review .wrap { justify-content:flex-end; }
@media(max-width:800px) {
  #start > div,#contact > div { grid-template-columns:1fr; }
  #start h1 { grid-row:auto; }
  .systems-art dl { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .header-inner { gap:8px; }
  .site-header nav ul { gap:4px 12px; }
}
.menu-toggle { border:1px solid var(--line); border-radius:22px; min-height:40px; padding:5px 15px; color:var(--ink); background:white; font:inherit; cursor:pointer; }
@media(max-width:760px) {
  .site-header .header-inner { justify-content:space-between; }
  #site-nav { flex-basis:100%; }
  #site-nav ul { align-items:stretch; flex-direction:column; gap:0; }
  #site-nav a { padding:9px 0; display:block; }
  #site-nav li:last-child a { display:inline-block; margin-block:5px; }
}
#start h1 { hyphens:none; font-size:clamp(2.05rem,4.35vw,4rem); text-wrap:initial; }
@media(max-width:360px) { #start h1 { font-size:1.83rem; } }

.layout { display:block; }
.chapter { grid-template-columns:minmax(0,1fr); }
.contact-company p + p { margin-top:12px; }
.contact-company .actions { margin:16px 0; }
