/* Shared project template provides typography, layout, navigation and CTA. */
.gridpilot-page .case-intro .intro-title{color:var(--ink,#171717)}
.gridpilot-page .intro-title-logo{filter:brightness(0);object-fit:contain;border-radius:0}
.gridpilot-hero{position:relative;isolation:isolate;aspect-ratio:5861/3452;padding:0;background:#f5f5f7}
.gridpilot-background{position:absolute;inset:0;z-index:-1;overflow:hidden}
.gridpilot-page .gridpilot-hero>.gridpilot-glass-mark{display:block;width:22%;height:auto;object-fit:contain;padding:0}
.gridpilot-page .product-figure,.gridpilot-page .demo{margin:0}
.gridpilot-page .gridpilot-overview-figure{margin-top:36px}
.gridpilot-overview-figure{padding:40px 0 22px;background:#fff;border-radius:8px;overflow:hidden}
.gridpilot-welcome-heading{padding:0 7%;font-size:clamp(20px,2.6vw,32px);line-height:1.35;letter-spacing:-.025em;color:#171717}
.gridpilot-welcome-heading>span{color:#808080}
.gridpilot-welcome-heading>p{margin:4px 0 0}
.homepage-energy-motion{--motion-gap:24px;--motion-card-width:200px;position:relative;width:100%;height:182px;margin-top:28px;overflow:hidden;isolation:isolate;pointer-events:none;user-select:none;-webkit-mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent);mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent)}
.homepage-energy-motion::before{content:"";position:absolute;inset:0;z-index:3;background:linear-gradient(180deg,#fff,transparent 23%,transparent 78%,#fff);pointer-events:none}
.energy-motion-track{display:flex;align-items:center;gap:var(--motion-gap);width:max-content;padding:20px 0;will-change:transform}
.energy-motion-card{position:relative;display:block;flex:0 0 var(--motion-card-width);height:128px;border-radius:17px;overflow:hidden}
.gridpilot-page .energy-motion-card img,.energy-motion-canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.gridpilot-page .energy-motion-card img{object-fit:cover;filter:saturate(.94) contrast(1.03)}
.energy-motion-canvas{z-index:1;opacity:0;transition:opacity .22s ease}
.energy-motion-card.shader-ready .energy-motion-canvas{opacity:1}
.energy-motion-card.shader-ready img{opacity:0}
@media(max-width:700px){.gridpilot-overview-figure{padding-top:24px}.homepage-energy-motion{--motion-card-width:150px;--motion-gap:16px;height:140px;margin-top:18px}.energy-motion-card{height:96px}}
@media(prefers-reduced-motion:reduce){.energy-motion-canvas{display:none}.energy-motion-card img{opacity:1!important}}
.gridpilot-page .product-figure img,.gridpilot-page .demo video{display:block;width:100%;height:auto;border-radius:8px;background:var(--stage)}
.gridpilot-page .product-figure figcaption,.gridpilot-page .demo figcaption,.gridpilot-page .gridpilot-motion-caption{text-align:center;font-size:16px;line-height:22.4px;color:#8a8a8a;margin:14px 0 0}
.gridpilot-page .detail-story{margin-top:80px}
.gridpilot-contribution{margin-top:64px}
.gridpilot-page .gridpilot-system-components{margin-top:32px}
.gridpilot-system-stage{position:relative;isolation:isolate;overflow:hidden;padding:clamp(20px,4vw,48px);border-radius:12px;background-color:#e9e9ec;background-image:linear-gradient(rgba(100,100,110,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(100,100,110,.07) 1px,transparent 1px),radial-gradient(circle,rgba(100,100,110,.14) 1.2px,transparent 1.6px);background-position:0 0,0 0,11px 11px;background-size:48px 48px,48px 48px,24px 24px}
.gridpilot-system-stage::before{position:absolute;inset:0;z-index:-1;content:"";pointer-events:none;background:url("./assets/deck-intro/gridpilot-blueprint-lines.svg") center/100% 100% no-repeat;filter:grayscale(1);opacity:.4}
.gridpilot-page .gridpilot-system-stage>img{position:relative;box-shadow:0 12px 36px rgba(23,23,23,.12),0 1px 4px rgba(23,23,23,.08)}
.gridpilot-evidence-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.gridpilot-before-recording{margin-top:24px}
.gridpilot-before-recording>summary{cursor:pointer;color:var(--muted);font-size:16px;line-height:24px}
.gridpilot-page .gridpilot-before-recording>.demo{margin-top:16px}
.gridpilot-challenge-row{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,7fr);gap:40px;align-items:center}
.gridpilot-challenge-row>.section-copy{margin:0}
.gridpilot-method-row{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:32px;align-items:start}
.gridpilot-zoom{display:block;width:100%;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#fff;cursor:zoom-in}
.gridpilot-zoom:focus-visible{outline:3px solid var(--ink);outline-offset:4px}
.gridpilot-page .gridpilot-review-crop{aspect-ratio:1.5}
.gridpilot-page .gridpilot-review-crop img{height:100%;object-fit:cover;object-position:bottom}
.gridpilot-skill-source{margin:32px 0;padding:24px;border:1px solid var(--line);border-radius:8px;background:var(--stage);--ink:#171717;--muted:#696969;color:var(--ink)}
.gridpilot-source-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.gridpilot-source-heading h3,.gridpilot-ownership h3{margin:0;font-size:18px;line-height:27px;font-weight:500}
.gridpilot-source-heading a{font-size:14px;line-height:21px;text-decoration:underline;text-underline-offset:3px}
.gridpilot-skill-source pre{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:23px}
.gridpilot-state-table{overflow-x:auto}
.gridpilot-state-table table{width:100%;border-collapse:collapse;font-size:16px;line-height:24px;text-align:left}
.gridpilot-state-table caption{text-align:left;color:var(--muted);font-size:16px;line-height:22.4px;margin-bottom:16px}
.gridpilot-state-table th,.gridpilot-state-table td{padding:18px 16px;border-bottom:1px solid var(--line);vertical-align:top}
.gridpilot-state-table th{font-weight:500}
.gridpilot-state-table td{color:var(--muted)}
.gridpilot-ownership{max-width:700px;margin-top:32px}
.gridpilot-ownership p{font-size:18px;line-height:27px;color:var(--muted);margin:12px 0 0}
.gridpilot-context-link{font-size:16px;line-height:24px;color:var(--muted);margin:32px 0 0}
.gridpilot-context-link a,.gridpilot-before-demo figcaption a{text-decoration:underline;text-underline-offset:3px}
.gridpilot-image-dialog{width:min(1280px,calc(100vw - 32px));max-height:92dvh;padding:16px;border:1px solid #ddd;border-radius:12px;background:#fff;color:#171717}
.gridpilot-image-dialog::backdrop{background:rgba(0,0,0,.75)}
.gridpilot-image-dialog form{position:sticky;top:0;display:flex;justify-content:flex-end;margin:0 0 12px}
.gridpilot-image-dialog button{padding:10px 16px;border:1px solid #ddd;border-radius:6px;background:#fff;color:#171717;cursor:pointer;font:inherit}
.gridpilot-image-dialog>img{display:block;width:100%;height:auto}
.gridpilot-background[data-motion-paused] .energy-ascii-character,#gridpilot-review-files[data-motion-paused] [data-node-id]{animation-play-state:paused}
.gridpilot-internal-gallery{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
.gridpilot-copy-rules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.gridpilot-copy-rules article{padding:24px;border:1px solid var(--line);border-radius:8px;background:var(--stage)}
.gridpilot-copy-rules h3{margin:0 0 12px;font-size:18px;line-height:1.4;font-weight:500}
.gridpilot-copy-rules p{margin:0;font-size:16px;line-height:1.5;color:var(--muted)}
.gridpilot-page .seniority-snapshot{grid-template-columns:repeat(3,minmax(0,1fr))}
.gridpilot-page .outcome{padding-bottom:100px}
.gridpilot-motion-grid{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:270px 270px;gap:16px;padding:32px;border-radius:12px;background-color:#075d34;background-image:linear-gradient(rgba(125,211,160,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(125,211,160,.12) 1px,transparent 1px),radial-gradient(circle,rgba(144,225,177,.26) 1.2px,transparent 1.6px);background-position:0 0,0 0,11px 11px;background-size:48px 48px,48px 48px,24px 24px}
.gridpilot-motion-grid::before{position:absolute;inset:0;z-index:-1;content:"";pointer-events:none;background:url("./assets/deck-intro/gridpilot-blueprint-lines.svg") center/100% 100% no-repeat}
.gridpilot-motion-tile{position:relative;display:grid;place-items:center;min-width:0;overflow:hidden;margin:0;border-radius:10px;background:#f5f5f5;padding:0 20px}
.gridpilot-motion-tile--entry{grid-row:1/3;padding:0}
.gridpilot-motion-tile--entry video{width:100%;height:100%;object-fit:contain;background:#f5f5f5}
.gridpilot-motion-row{display:grid;grid-template-columns:minmax(0,7fr) minmax(220px,3fr);align-items:center;gap:clamp(24px,4vw,56px)}
.gridpilot-motion-media{min-width:0}
.gridpilot-motion-copy h3{margin:0 0 12px;font-size:20.8px;line-height:29.12px;font-weight:500}
.gridpilot-motion-copy p{margin:0;color:var(--muted);font-size:18px;line-height:27px}
.gridpilot-motion-row .gridpilot-motion-grid{aspect-ratio:1.5;grid-template-rows:repeat(2,minmax(0,1fr));padding:20px;gap:10px}
.gridpilot-motion-row .gridpilot-motion-tile{padding:0 10px}
.gridpilot-motion-row .gridpilot-motion-tile--entry{padding:0}
.gridpilot-motion-row .gridpilot-review-status{gap:10px;font-size:18px}
.gridpilot-motion-row .gridpilot-review-status video{width:52px}
.gridpilot-motion-row .gridpilot-motion-tile--files .review-file-motion{height:140px}
.gridpilot-motion-row .gridpilot-motion-tile--files .review-file-scene{top:-20px;left:calc(50% - 68px);transform:scale(.17)}
.gridpilot-review-status{display:flex;align-items:center;gap:18px;color:#5d6066;font-size:26px;line-height:1.2}
.gridpilot-review-status video{width:76px;height:auto;object-fit:contain}
.gridpilot-motion-tile--files .review-file-motion{margin:0;width:100%;height:210px;overflow:visible}
.gridpilot-motion-tile--files .review-file-scene{top:-20px;left:calc(50% - 96px);transform:scale(.24)}
.gridpilot-site-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.gridpilot-site-gallery>a{position:relative;display:block;overflow:hidden;aspect-ratio:4/5;border-radius:8px;background:#252a2d;color:#fff}
.gridpilot-site-gallery>a::after{position:absolute;inset:0;content:"";background:linear-gradient(transparent 45%,rgba(0,0,0,.6));pointer-events:none}
.gridpilot-site-gallery img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.gridpilot-site-gallery>a:hover img{transform:scale(1.025)}
.gridpilot-site-gallery>a:focus-visible{outline:3px solid #395ed9;outline-offset:4px}
.gridpilot-site-gallery>a>span{position:absolute;z-index:1;bottom:22px;left:22px;right:22px;font-size:17px}
.gridpilot-site-gallery>.gridpilot-site-banner{grid-column:1/-1;aspect-ratio:2.4/1}
.gridpilot-site-banner>span{display:flex;justify-content:space-between;align-items:end;gap:20px}
.gridpilot-site-banner b{font-size:30px;font-weight:500}
html[data-theme="dark"] .gridpilot-page .intro-title-logo{filter:none}
/* These media and cards intentionally stay light in both themes. */
.gridpilot-page :is(.seniority-snapshot .seniority-card,.gridpilot-copy-rules article,.gridpilot-overview-figure,.gridpilot-motion-tile){--ink:#171717;--muted:#696969;--line:#e8e8e8;color:var(--ink);color-scheme:light}
html[data-theme="dark"] .gridpilot-page :is(.product-figure figcaption,.demo figcaption,.gridpilot-motion-caption){color:#a6a6a3}
@media(max-width:767px){
.gridpilot-page .product-figure figcaption,.gridpilot-page .demo figcaption,.gridpilot-page .gridpilot-motion-caption{font-size:12px;line-height:16.8px}
}
@media(max-width:700px){
.gridpilot-challenge-row,.gridpilot-method-row{grid-template-columns:1fr;gap:24px}
.gridpilot-challenge-row>.product-figure{width:min(220px,65%)}
.gridpilot-evidence-pair{grid-template-columns:1fr;gap:28px}
.gridpilot-skill-source{padding:20px}
.gridpilot-skill-source pre{font-size:12px;line-height:20px}
.gridpilot-state-table table{font-size:14px;line-height:21px}
.gridpilot-state-table th,.gridpilot-state-table td{padding:12px 8px}
.gridpilot-ownership p{font-size:16px;line-height:24px}
.gridpilot-page .gridpilot-hero>.gridpilot-glass-mark{width:28%}
.gridpilot-page .seniority-snapshot{grid-template-columns:1fr}
.gridpilot-page .detail-story{margin-top:56px}
.gridpilot-copy-rules{grid-template-columns:1fr}
.gridpilot-contribution{margin-top:48px}
.gridpilot-internal-gallery{grid-template-columns:1fr;gap:28px}
.gridpilot-page .outcome{padding-bottom:60px}
.gridpilot-motion-grid{grid-template-columns:1fr;grid-template-rows:380px 240px 270px;padding:12px;gap:12px}
.gridpilot-motion-tile--entry{grid-row:auto}
.gridpilot-motion-row{grid-template-columns:1fr;gap:24px}
.gridpilot-motion-row .gridpilot-motion-grid{grid-template-columns:1fr 1fr;padding:12px;gap:8px}
.gridpilot-motion-row .gridpilot-motion-tile--entry{grid-row:1/3}
.gridpilot-motion-copy h3{font-size:20px;line-height:28px}
.gridpilot-motion-copy p{font-size:16px;line-height:24px}
.gridpilot-motion-row .gridpilot-review-status{font-size:13px;gap:6px}
.gridpilot-motion-row .gridpilot-review-status video{width:36px}
.gridpilot-motion-row .gridpilot-motion-tile--files .review-file-motion{height:90px}
.gridpilot-motion-row .gridpilot-motion-tile--files .review-file-scene{top:-14px;left:calc(50% - 44px);transform:scale(.11)}
.gridpilot-site-gallery{grid-template-columns:1fr}
.gridpilot-site-gallery>a{aspect-ratio:4/3}
.gridpilot-site-gallery>.gridpilot-site-banner{aspect-ratio:4/3}
.gridpilot-site-banner>span{align-items:start;flex-direction:column;gap:8px}
}
