/* Portfolio dark/lime system. Motion explains handovers, never simulates live agents. */
.ai-page{--wf-ink:#f2f4ec;--wf-muted:#bbc4b6;--wf-accent:#D4FF24;--wf-line:#3b4635;--wf-surface:#171d17;--wf-active:#222e1c;--wf-dim:#a6b397;--wf-bg:#101510;--wf-ease:cubic-bezier(.2,.7,.2,1);}
.ai-page .ai-editorial-hero h1{font-size:clamp(56px,7.4vw,94px);max-width:14ch;line-height:1.02;}
.ai-page .ai-hero-bottom .route-intro{max-width:53ch;}
.ai-operating-system{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:clamp(32px,4vw,56px);padding:56px 0 8px;margin-top:40px;border-top:1px solid var(--wf-line);}
.ai-page .ai-operating-system h2{font-size:clamp(32px,3.5vw,46px);line-height:1.08;letter-spacing:-.045em;margin:0 0 18px;}
.ai-operating-system h2 span{color:var(--wf-accent);}
.ai-system-illustration{position:relative;align-self:center;justify-self:center;width:100%;max-width:480px;overflow:clip;}
.ai-system-illustration img{display:block;width:100%;height:auto;}
.ai-system-illustration :is(img, video) {
  /* Center the drawing within the asymmetric padding baked into both assets. */
  transform: translate(3%, 10.6%);
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 93%, transparent 97%),
    linear-gradient(to bottom, transparent, #000 3%, #000 86%, transparent 89.4%);
  mask-composite: intersect;
}
.ai-system-illustration video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
@media(prefers-reduced-motion:reduce){.ai-system-illustration video{display:none;}}
.ai-page .ai-operating-system header>p:not(.route-eyebrow){font-size:15px;line-height:1.75;color:var(--wf-muted);max-width:50ch;margin:0;}
.ai-setup-body{min-width:0;}
.ai-page .ai-setup-method-title{font-size:18px;line-height:1.35;margin:24px 0 10px;color:var(--wf-ink);}
.ai-setup-list{min-width:0;border-top:1px solid var(--wf-line);}
.ai-page .ai-setup-list details{padding:0;margin:0;border:0;border-bottom:1px solid var(--wf-line);border-radius:0;background:transparent;}
.ai-setup-list summary{display:flex;align-items:center;gap:18px;list-style:none;cursor:pointer;padding:22px 0;color:var(--wf-ink);font-weight:500;font-size:19px;line-height:1.35;}
.ai-setup-list summary::-webkit-details-marker{display:none;}
.ai-setup-toggle{position:relative;width:18px;height:18px;margin-left:auto;flex:0 0 18px;color:var(--wf-accent);}
.ai-setup-toggle::before,.ai-setup-toggle::after{content:"";position:absolute;background:currentColor;border-radius:1px;}
.ai-setup-toggle::before{height:1px;width:12px;left:3px;top:8px;}
.ai-setup-toggle::after{height:12px;width:1px;left:8px;top:3px;}
.ai-setup-list details[open] .ai-setup-toggle::after{display:none;}
.ai-setup-list summary:focus-visible{outline:2px solid var(--wf-accent);outline-offset:4px;}
.ai-setup-list details[open] summary{color:var(--wf-accent);}
.ai-setup-content{padding:0 0 20px;}
.ai-page .ai-setup-content p{font-size:15px;line-height:1.75;color:var(--wf-muted);max-width:61ch;margin:0;}
.ai-orchestration{margin-top:64px;padding:48px 0 36px;border-top:1px solid var(--wf-line);display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.4fr);gap:28px 68px;color:var(--wf-ink);}
.ai-orchestration-heading{align-self:start;position:sticky;top:110px;}
.ai-page .ai-orchestration h2{font-size:clamp(36px,4.2vw,58px);line-height:1.04;letter-spacing:-.055em;margin:22px 0;max-width:13ch;}
.ai-orchestration h2 span{color:var(--wf-accent);}
.ai-page .ai-orchestration-heading>p:last-child{font-size:16px;line-height:1.75;color:var(--wf-muted);max-width:32ch;margin:0;}
.ai-work-example{min-width:0;position:relative;isolation:isolate;}


.ai-shared-brief{position:relative;padding:0 0 32px;text-align:center;}
.ai-work-label{font-size:11px;line-height:1.6;letter-spacing:.09em;text-transform:uppercase;color:var(--wf-dim);}
.ai-page .ai-shared-brief h3{font-size:clamp(22px,2.2vw,29px);font-weight:500;line-height:1.18;letter-spacing:-.035em;margin:10px 0;color:var(--wf-ink);}
.ai-page .ai-shared-brief>p{font-size:14px;line-height:1.6;color:var(--wf-muted);margin:0 auto;}
.ai-context-strip{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 18px;margin-top:20px;}
.ai-context-strip span{font-size:11px;color:var(--wf-muted);padding-bottom:4px;border-bottom:1px solid var(--wf-line);}
.ai-role-selector{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px 24px;padding-top:24px;position:relative;}
.ai-role-selector[hidden]{display:none;}
.ai-page .ai-role-selector button{position:relative;display:flex;align-items:center;text-align:left;gap:14px;min-width:0;min-height:100px;padding:20px 18px;border:1px solid #65715b;border-radius:8px;background:var(--wf-bg);color:var(--wf-muted);font-family:inherit;font-size:14px;font-weight:500;line-height:1.4;cursor:pointer;transition:background .2s var(--wf-ease),border-color .2s var(--wf-ease),color .2s var(--wf-ease);z-index:1;}
.ai-page .ai-role-selector button[data-role-view=synthesis]{grid-column:1/-1;justify-self:center;width:78%;justify-content:center;}
.ai-node-symbol{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border:1px solid var(--wf-line);border-radius:10px;color:var(--wf-dim);}
.ai-node-symbol svg{display:block;}
.ai-page .ai-role-selector button[aria-selected=true]{background:var(--wf-active);border-color:var(--wf-accent);color:var(--wf-ink);}
.ai-role-selector button[aria-selected=true] .ai-node-symbol{background:var(--wf-accent);border-color:var(--wf-accent);color:var(--wf-bg);}
.ai-role-selector button small{display:block;margin-top:5px;font-weight:400;font-size:11px;line-height:1.5;color:var(--wf-muted);}
.ai-page .ai-role-selector button:hover{background:var(--wf-surface);border-color:var(--wf-dim);}
.ai-page .ai-role-selector button[aria-selected=true]:hover{background:var(--wf-active);border-color:var(--wf-accent);}
.ai-role-selector button:focus-visible{outline:2px solid var(--wf-accent);outline-offset:4px;}
.ai-flow-beams{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:-1;}
.ai-flow-beams path{fill:none;stroke:#88957b;stroke-width:1.3;vector-effect:non-scaling-stroke;}
.ai-flow-beams path.is-active{stroke:var(--wf-accent);}
.ai-role-panel{position:relative;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:28px;margin-top:30px;padding:26px 0;border-top:1px solid var(--wf-line);min-height:256px;align-items:start;}
.ai-role-panel[hidden]{display:none;}
.ai-page .ai-role-panel h4{font-size:27px;font-weight:500;line-height:1.15;letter-spacing:-.035em;margin:12px 0;color:var(--wf-ink);}
.ai-page .ai-role-panel p{font-size:14px;line-height:1.75;color:var(--wf-muted);margin:0;}
.ai-role-output{padding-left:24px;border-left:1px solid var(--wf-line);}
.ai-page .ai-role-output ul{padding:0;margin:16px 0 0;list-style:none;}
.ai-page .ai-role-output li{font-size:13px;line-height:1.6;color:var(--wf-ink);padding:8px 0;border-bottom:1px solid var(--wf-line);}
.ai-role-dependency{display:block;margin-top:16px;color:var(--wf-dim);font-size:11px;line-height:1.5;}
.ai-work-artifact{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;border-left:2px solid var(--wf-accent);background:var(--wf-surface);}
.ai-page .ai-work-artifact h3{font-size:23px;line-height:1.2;letter-spacing:-.025em;color:var(--wf-ink);font-weight:500;margin:10px 0 0;}
.ai-artifact-format{font-size:12px;line-height:1.8;color:var(--wf-muted);}
.ai-work-decision{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:56px;margin-top:12px;padding-top:28px;border-top:1px solid var(--wf-line);}
.ai-page .ai-work-decision h3{font-size:22px;line-height:1.25;letter-spacing:-.025em;margin:8px 0 12px;color:var(--wf-ink);font-weight:500;}
.ai-page .ai-work-decision p{font-size:14px;line-height:1.7;color:var(--wf-muted);margin:0;max-width:49ch;}
.ai-page .route-contact:has(>.ai-orchestration){border-top:0;padding-top:0;margin-top:0;}
@media(max-width:900px){.ai-operating-system{grid-template-columns:1fr;gap:24px;}.ai-operating-system header{max-width:60ch;}.ai-page .ai-operating-system header>p:not(.route-eyebrow){max-width:55ch;}.ai-orchestration{grid-template-columns:1fr;gap:30px;margin-top:40px;padding-top:32px;}.ai-orchestration-heading{position:static;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 30px;align-items:end;}.ai-orchestration-heading>.route-eyebrow{grid-column:1/-1;}.ai-page .ai-orchestration h2{font-size:42px;margin:10px 0 0;}.ai-page .ai-orchestration-heading>p:last-child{font-size:14px;}.ai-work-decision{gap:30px;}}
@media(max-width:600px){.ai-page .ai-editorial-hero h1{font-size:clamp(46px,12vw,68px);}.ai-operating-system{padding-top:32px;margin-top:32px;}.ai-page .ai-operating-system h2{font-size:36px;}.ai-setup-list summary{font-size:17px;gap:12px;padding:20px 0;}.ai-orchestration{gap:28px;}.ai-orchestration-heading{display:block;}.ai-page .ai-orchestration h2{font-size:42px;margin:14px 0 18px;}.ai-page .ai-orchestration-heading>p:last-child{max-width:38ch;font-size:15px;}.ai-page .ai-shared-brief h3{font-size:28px;}.ai-context-strip{gap:12px;}.ai-role-selector{gap:42px 12px;}.ai-page .ai-role-selector button{flex-direction:column;align-items:flex-start;gap:12px;padding:16px 12px;font-size:14px;min-height:114px;}.ai-page .ai-role-selector button[data-role-view=synthesis]{flex-direction:row;align-items:center;width:88%;min-height:80px;}.ai-role-selector button small{display:none;}.ai-role-panel{grid-template-columns:1fr;gap:22px;min-height:375px;padding:22px 0;}.ai-page .ai-role-panel h4{font-size:27px;}.ai-role-output{padding:16px 0 0;border-left:0;border-top:1px solid var(--wf-line);}.ai-page .ai-role-output li{font-size:14px;}.ai-work-artifact{display:block;padding:20px;}.ai-artifact-format{display:block;margin-top:14px;}.ai-page .ai-work-artifact h3{font-size:24px;}.ai-work-decision{grid-template-columns:1fr;gap:24px;margin-top:0;padding-top:24px;}.ai-page .ai-work-decision p{font-size:14px;}}
@media(prefers-reduced-motion:no-preference){.ai-role-panel:not([hidden]){animation:wf-reveal .2s var(--wf-ease) both;}@keyframes wf-reveal{from{opacity:0;transform:translateY(5px);}to{opacity:1;transform:translateY(0);}}}
@media(prefers-reduced-motion:reduce){.ai-page .ai-role-selector button{transition:none;}}
@media print{.ai-operating-system,.ai-orchestration{display:block;}.ai-setup-list details::details-content{content-visibility:visible;}.ai-orchestration-heading{position:static;}}
/* Give the illustrative workflow a clear brief, roles and review outcome. */
.ai-work-example{padding:24px;border:1px solid #243754;border-radius:12px;background:#080d16;}

.ai-shared-brief{padding:18px 16px 32px;}
.ai-page .ai-role-selector button{background:#0c1523;border-color:#31445e;}
.ai-page .ai-role-selector button[aria-selected=true]{background:#10223a;}
.ai-work-artifact{background:#101d2e;}
@media(max-width:600px){.ai-work-example{padding:18px 16px;}.ai-role-panel{min-height:0;}}

/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4
   Editorial portfolio · existing type, palette and navigation. */
.ai-page .ai-editorial-hero{padding-top:0;padding-bottom:clamp(32px,4vw,52px);}
.ai-page .ai-editorial-hero h1{font-size:clamp(48px,6.2vw,82px);line-height:1.04;letter-spacing:-.04em;text-wrap:balance;}
.ai-page .ai-hero-bottom{align-items:start;}
.ai-page .ai-hero-bottom>a{min-height:44px;align-items:center;}
.ai-page .ai-examples>h2{margin:24px 0 20px;}
.ai-page .studio-project-header{align-items:end;}
.ai-page .studio-project-notes{gap:24px 40px;padding-bottom:12px;}
.ai-page .ai-operating-system,.ai-page .ai-orchestration{border-color:var(--portfolio-blue-rule);}
.ai-page .ai-work-example{background:var(--portfolio-canvas);border-color:var(--portfolio-blue-rule);}
.ai-page .ai-role-selector button{background:var(--portfolio-surface);border-color:var(--portfolio-blue-rule);}
.ai-page .ai-role-selector button[aria-selected=true]{color:var(--portfolio-ink);border-color:var(--portfolio-accent);}
.ai-page .ai-work-artifact{background:var(--portfolio-surface);border-left:0;border-top:1px solid var(--portfolio-blue-rule);}
.ai-page .ai-setup-list summary{min-height:56px;}
.ai-page .comparison-toolbar button{min-height:44px;}
.ai-page :is(h1,h2,h3,h4){overflow-wrap:anywhere;min-width:0;}
@media(max-width:600px){
 .ai-page .ai-editorial-hero h1{font-size:clamp(40px,11vw,54px);}
 .ai-page .ai-role-selector button small{display:block;}
 .ai-page .ai-role-selector button{min-height:126px;}
 .ai-page .ai-role-selector button[data-role-view=synthesis]{width:100%;}
 .ai-page .comparison-toolbar button{padding-inline:5px;}
}

/* Diagram Design asset: static overview; role tabs remain the accessible detail view. */
.ai-workflow-asset{margin:20px 0 28px;border:1px solid var(--portfolio-blue-rule);border-radius:12px;overflow:hidden;background:#030407;}
.ai-workflow-asset img{display:block;width:100%;height:auto;}
.ai-workflow-asset figcaption{padding:10px 14px;border-top:1px solid var(--portfolio-blue-rule);font-size:11px;color:var(--wf-muted);}
@media(max-width:640px){.ai-workflow-asset{margin:16px -1px 24px;border-radius:10px}.ai-workflow-asset figcaption{font-size:10px}}


/* Workflow board refresh: one reading path, three roles, one review outcome. */
.ai-page .ai-work-example{padding:28px 0 0;border:0;border-radius:0;background:transparent;}

.ai-page .ai-shared-brief{padding:22px 24px 24px;text-align:left;border:1px solid var(--portfolio-blue-rule);border-radius:10px;background:#080d16;}
.ai-page .ai-shared-brief h3{font-size:clamp(24px,2.6vw,34px);margin:8px 0 6px;}
.ai-page .ai-shared-brief>p{margin:0;max-width:58ch;}
.ai-page .ai-context-strip{justify-content:flex-start;margin-top:18px;gap:8px;}
.ai-page .ai-context-strip span{padding:7px 10px;border:1px solid #31445e;border-radius:999px;}
.ai-page .ai-role-selector{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding-top:18px;}
.ai-page .ai-role-selector button,.ai-page .ai-role-selector button[data-role-view=synthesis]{grid-column:auto;width:auto;min-height:178px;padding:18px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:14px;border-radius:10px;background:#080d16;border-color:#31445e;}
.ai-page .ai-role-selector button[data-role-view=synthesis]{border-color:#819452;}
.ai-page .ai-role-selector button[aria-selected=true]{background:#101d2e;border-color:var(--wf-accent);}
.ai-page .ai-role-selector button .ai-node-symbol{width:34px;height:34px;border-radius:8px;}
.ai-page .ai-role-selector button>span:last-child{font-size:16px;line-height:1.35;}
.ai-page .ai-role-selector button small{margin-top:7px;font-size:12px;line-height:1.5;}
.ai-page .ai-role-panel{margin-top:14px;padding:24px;border:1px solid var(--portfolio-blue-rule);border-radius:10px;background:#080d16;min-height:220px;}
.ai-page .ai-work-artifact{margin-top:14px;border-radius:10px;background:#101d2e;}
@media(max-width:900px){.ai-page .ai-role-selector{grid-template-columns:1fr;}.ai-page .ai-role-selector button,.ai-page .ai-role-selector button[data-role-view=synthesis]{min-height:0;display:grid;grid-template-columns:38px 1fr;align-items:center;gap:14px;}.ai-page .ai-role-selector button small{margin-top:4px;}.ai-page .ai-role-panel{padding:20px;}}
@media(max-width:600px){.ai-page .ai-work-example{padding-top:18px;}.ai-page .ai-shared-brief{padding:18px;}.ai-page .ai-role-panel{padding:18px;}.ai-page .ai-work-artifact{margin-top:12px;}}

/* Full-width workflow: keep the reading path horizontal instead of stacking into the right rail. */
.ai-page .ai-orchestration{grid-template-columns:1fr;gap:28px;}
.ai-page .ai-orchestration-heading{position:static;display:block;}
.ai-page .ai-orchestration-heading h2{margin:0;}
.ai-page .ai-work-example{width:100%;}

/* Reference-led art direction: a system map with a strong headline and horizontal stages. */
.ai-page .ai-orchestration-heading h2{max-width:24ch;font-size:clamp(32px,4.5vw,58px);line-height:1.04;letter-spacing:-.045em;text-wrap:balance;}
.ai-page .ai-orchestration-heading h2 span{color:var(--wf-accent);}
.ai-page .ai-work-example{padding-top:0;}
.ai-research-tool {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 4vw, 56px);
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--portfolio-blue-rule, var(--wf-line));
}
.ai-page .ai-research-tool h2 {
  margin: 0 0 18px;
  font-size: clamp(32px, 3.5vw, 46px);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.ai-research-tool h2 span { color: var(--wf-accent); }
.ai-page .ai-research-tool h3 { margin: 0 0 4px; font-size: 19px; line-height: 1.3; }
.ai-page .ai-research-tool p { max-width: 55ch; margin: 0; color: var(--wf-muted); font-size: 15px; line-height: 1.7; }
.ai-page .ai-research-tool p.ai-research-tool-lead {
  max-width: 35ch;
  color: var(--wf-ink);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.4;
}
.ai-page .ai-research-tool-intro > p + p { margin-top: 16px; }
.research-studio-visual { display: block; width: 100%; max-width: 500px; height: auto; margin-top: 24px; border-radius: 12px; }
.research-studio-visual svg { display: block; width: 100%; height: auto; }
.research-scan, .research-scan-dot { animation: research-sweep 8s ease-in-out infinite alternate; }
@keyframes research-sweep { from { transform: translateX(0); } to { transform: translateX(370px); } }
html[data-motion-paused="true"] :is(.research-scan, .research-scan-dot) { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .research-scan, .research-scan-dot { animation: none; } }
.ai-research-tool-cases { display: grid; align-self: start; gap: 20px; }
.ai-page .ai-research-tool p.ai-research-tool-evidence { margin-top: 5px; font-size: 14px; }
.ai-research-tool-evidence a { color: var(--wf-accent); text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 760px) {
  .ai-research-tool { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; padding-top: 32px; }
}

.ai-page .ai-shared-brief,.ai-page .ai-role-selector,.ai-page .ai-role-panel,.ai-page .ai-work-artifact{position:relative;z-index:1;}
.ai-page .ai-shared-brief{max-width:520px;margin:0 auto 34px;text-align:center;background:#0c130b;border-color:#819452;border-radius:12px;}
.ai-page .ai-shared-brief>p{margin:0 auto;}
.ai-page .ai-context-strip{justify-content:center;}
.ai-page .ai-role-selector{padding-top:0;}
.ai-page .ai-role-selector button,.ai-page .ai-role-selector button[data-role-view=synthesis]{background:#080d16;}
.ai-page .ai-role-selector button::before{content:attr(data-step);position:absolute;top:16px;right:16px;font:500 11px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.1em;color:var(--wf-dim);}
.ai-page .ai-role-selector button:nth-child(1)::after{content:"01";}
.ai-page .ai-role-selector button:nth-child(2)::after{content:"02";}
.ai-page .ai-role-selector button:nth-child(3)::after{content:"03";}
.ai-page .ai-role-selector button::after{position:absolute;top:14px;right:16px;font:500 11px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.1em;color:var(--wf-dim);}
.ai-page .ai-role-selector button[aria-selected=true]::after{color:var(--wf-accent);}
@media(max-width:900px){.ai-page .ai-shared-brief{margin-bottom:18px;}}
@media(min-width:901px){.ai-page .ai-role-selector button[data-role-view=synthesis]{justify-self:stretch;}}

/* The generated system asset is part of the main narrative, not only a linked appendix. */
.ai-page .ai-agent-system-figure{margin:0 0 30px;border:1px solid var(--portfolio-blue-rule);border-radius:14px;overflow:hidden;background:#030407;}
.ai-page .ai-agent-system-figure img{display:block;width:100%;height:auto;}
.ai-page .ai-agent-system-figure figcaption{padding:10px 14px;border-top:1px solid var(--portfolio-blue-rule);font-size:11px;color:var(--wf-muted);}
@media(max-width:600px){.ai-page .ai-agent-system-figure{margin-bottom:22px;border-radius:10px}.ai-page .ai-agent-system-figure figcaption{font-size:10px;}}

/* Apply the new system asset inside the primary workflow narrative. */
.ai-agent-system-visual{margin:24px 0 30px;border:1px solid var(--portfolio-blue-rule);border-radius:14px;overflow:hidden;background:#030407;}
.ai-agent-system-visual img{display:block;width:100%;height:auto;}
.ai-agent-system-visual figcaption{padding:10px 14px;border-top:1px solid var(--portfolio-blue-rule);font:500 10px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.1em;text-transform:uppercase;color:var(--wf-dim);}


@media(max-width:600px){.ai-agent-system-visual{margin:18px 0 22px;border-radius:10px}}

/* Review pass: the image supports the workflow; it must not become a second hero. */
.ai-page .ai-agent-system-visual{max-width:980px;margin-left:auto;margin-right:auto;}
.ai-page .ai-agent-system-visual img{max-height:460px;object-fit:contain;background:#030407;}


@media(max-width:600px){.ai-page .ai-agent-system-visual img{max-height:260px}}






/* Keep the project story and comparison aligned to the section edges. */
.ai-page .ai-example-grid > .ai-example-featured:only-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-block-start: 24px;
}

@media (min-width: 960px) {
  .ai-page .ai-example-grid > .ai-example-featured:only-child {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 24px clamp(28px, 4vw, 56px);
  }
}

.ai-page .studio-project-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
}

.studio-title-accent { color: var(--wf-accent); }

.ai-page .studio-project-copy > p {
  max-inline-size: 42ch;
  margin: 0;
  color: var(--wf-muted);
  font-size: 15px;
  line-height: 1.6;
}

.ai-page .studio-project-copy > .studio-project-lead {
  margin-block-end: 8px;
  color: var(--wf-ink);
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 600;
  line-height: 1.25;
}

.ai-page .studio-workflow-steps {
  display: grid;
  gap: 14px;
  max-inline-size: 48ch;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.55;
}

.ai-page .studio-workflow-steps > li {
  display: grid;
  grid-template-columns: minmax(min-content, 5.5em) minmax(0, 1fr);
  gap: 12px;
}

.ai-page .studio-workflow-steps strong {
  color: var(--wf-ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.ai-page .studio-workflow-steps span {
  color: var(--wf-muted);
}

/* Keep the comparison frame visible; keyboard focus adds a separate outer ring. */
.ai-page .comparison-stage { outline: 2px solid #D4FF24; outline-offset: 5px; }
.ai-page .comparison-stage:focus-within {
  box-shadow: 0 0 0 5px #030407, 0 0 0 7px #D4FF24;
  outline: 2px solid #fff;
  outline-offset: 10px;
}

/* Allow the comparison outline and focus ring to extend beyond the case grid. */
.ai-page .ai-examples .ai-example-featured { overflow: visible; }

/* Keep the comparison controls aligned after removing their label. */
.comparison-toolbar > div { margin-inline-start: auto; }

/* A second selected project follows the site's editorial typography. */
.video-system-project{display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.4fr);gap:68px;margin-top:56px;padding-top:56px;border-top:1px solid var(--wf-line);}
.ai-page .video-system-intro h2{font-size:clamp(32px,3.5vw,46px);line-height:1.08;letter-spacing:-.045em;margin:18px 0 22px;}
.video-system-intro h2 span{color:var(--wf-accent);}
.ai-page .video-system-intro>p:not(.route-eyebrow){max-width:34ch;margin:0;color:var(--wf-muted);font-size:16px;line-height:1.7;}
.video-system-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;}
.video-system-details>div{border-top:1px solid var(--wf-line);padding-top:16px;}
.ai-page .video-system-details h3{margin:0 0 10px;font-size:18px;line-height:1.35;color:var(--wf-ink);}
.ai-page .video-system-details p{margin:0;color:var(--wf-muted);font-size:15px;line-height:1.65;}
@media(max-width:900px){.video-system-project{grid-template-columns:1fr;gap:30px;}}
@media(max-width:600px){.video-system-project{margin-top:32px;padding-top:32px;}.video-system-details{grid-template-columns:1fr;gap:18px;}}

.video-studio-illustration{position:relative;box-sizing:border-box;width:100%;max-width:366px;margin-top:18px;padding:5px;border:1px solid #AACC1D;border-radius:16px;overflow:hidden;}
.video-studio-illustration img{display:block;width:100%;height:auto;border-radius:9px;}
.video-studio-illustration video{position:absolute;inset:5px;width:calc(100% - 10px);height:calc(100% - 10px);border-radius:9px;}
@media(prefers-reduced-motion:reduce){.video-studio-illustration video{display:none;}}

/* Shared project layout for Video Studio and Research Studio. */
.ai-page :is(.video-system-project,.ai-research-tool){display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:clamp(32px,4vw,56px);margin-top:56px;padding-top:56px;border-top:1px solid var(--wf-line);}
.ai-page :is(.video-system-intro,.ai-research-tool-intro) h2{margin:0 0 20px;font-size:clamp(32px,3.5vw,46px);line-height:1.08;letter-spacing:-.045em;}
.ai-page :is(.video-system-intro,.ai-research-tool-intro)>p:not(.ai-research-tool-lead){max-width:48ch;margin:0;color:var(--wf-muted);font-size:16px;line-height:1.7;}
.ai-page .ai-research-tool-intro > p.ai-research-tool-lead + p{margin-top:16px;}
.ai-page :is(.video-system-details,.ai-research-tool-cases){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;align-self:center;gap:28px 32px;}
.ai-page :is(.video-system-details,.ai-research-tool-cases)>div{padding:0;border:0;}
.ai-page :is(.video-system-details,.ai-research-tool-cases) h3{margin:0 0 10px;color:var(--wf-ink);font-size:18px;line-height:1.35;}
.ai-page :is(.video-system-details,.ai-research-tool-cases) p{max-width:none;margin:0;color:var(--wf-muted);font-size:15px;line-height:1.65;}
@media(max-width:900px){.ai-page :is(.video-system-project,.ai-research-tool){grid-template-columns:1fr;gap:30px;}.ai-page :is(.video-system-details,.ai-research-tool-cases){align-self:start;}}
@media(max-width:600px){.ai-page :is(.video-system-project,.ai-research-tool){margin-top:40px;padding-top:32px;}.ai-page :is(.video-system-details,.ai-research-tool-cases){grid-template-columns:1fr;gap:22px;}}

/* Section dividers span the viewport while content keeps its reading width. */
.ai-page :is(.ai-editorial-hero,.video-system-project,.ai-research-tool,.ai-operating-system,.route-contact){position:relative;}
.ai-page :is(.video-system-project,.ai-research-tool,.ai-operating-system,.route-contact){border-top:0;}
.ai-page .ai-editorial-hero{border-bottom:0;}
.ai-page :is(.video-system-project,.ai-research-tool,.ai-operating-system,.route-contact)::before,
.ai-page .ai-editorial-hero::after{content:"";position:absolute;inset-inline:calc(50% - 50vw);height:1px;background:var(--wf-line);pointer-events:none;}
.ai-page :is(.video-system-project,.ai-research-tool,.ai-operating-system,.route-contact)::before{top:0;}
.ai-page .ai-editorial-hero::after{bottom:0;}

.ai-page .ai-operating-system header > p.ai-workflow-perspective{font-size:clamp(19px,1.8vw,23px);line-height:1.35;letter-spacing:-.02em;color:var(--wf-ink);font-weight:600;margin:0 0 14px;}

.ai-page .ai-workflow-overview{grid-column:2;grid-row:1;min-width:0;}
.ai-page .ai-setup-body{grid-column:1;grid-row:1;align-self:center;}
.ai-page .ai-workflow-overview .ai-system-illustration{margin:28px auto 0;}
.ai-page .ai-setup-body .ai-setup-method-title{margin-top:0;}
@media(max-width:900px){.ai-page .ai-workflow-overview,.ai-page .ai-setup-body{grid-column:1;grid-row:auto;}}

/* Keep the workflow introduction and illustration on one visual axis. */
.ai-page .ai-setup-body{align-self:center;padding-top:0;}
.ai-page .ai-workflow-overview header{max-width:34rem;}
.ai-page .ai-workflow-overview .ai-system-illustration{max-width:440px;margin:12px 0 0;justify-self:start;}
.ai-page .ai-operating-system h2{margin-bottom:14px;}
.ai-page .ai-operating-system header > p.ai-workflow-perspective{font-size:clamp(18px,1.5vw,21px);margin-bottom:10px;}
@media(max-width:900px){.ai-page .ai-setup-body{align-self:start;padding-top:0;}.ai-page .ai-workflow-overview .ai-system-illustration{margin-inline:auto;}}

@media(min-width:901px){.ai-page .ai-workflow-overview{box-sizing:border-box;padding-left:20%;}}

/* Let the workflow copy use the open space beyond the reading column. */
@media(min-width:901px){
  .ai-page .ai-workflow-overview header{max-width:none;margin-left:-15%;width:calc(115% + max(0px, (100vw - 1200px)/2 - 32px));}
  .ai-page .ai-operating-system .ai-workflow-overview header > p:not(.route-eyebrow){max-width:none;}
}
