/* The project pages. glass.css loads first and gives every page its ground, header, cards,
   closing panel and footer; this file styles what a project page shows in between. Its last
   section, "Glass", brings these pieces into the site's night-and-glass look. The names
   --tomato and --butter are older than the colors they hold now: navy and coral. */

@font-face{font-family:'Big Shoulders Display';font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/big-shoulders-display-latin.woff2) format('woff2')}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/hanken-grotesk-latin.woff2) format('woff2')}
@font-face{font-family:'Courier Prime';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/courier-prime-400-latin.woff2) format('woff2')}
@font-face{font-family:'Courier Prime';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/courier-prime-700-latin.woff2) format('woff2')}

:root{
  --tomato:#062A4D;
  --ink:#FFFFFF;
  --butter:#FF6F59;
  --file-ink:#030E1A;
  --ink-88:rgba(255,255,255,.88);
  --ink-60:rgba(255,255,255,.6);
  --panel:rgba(31,63,95,.84);
  --base:#041B32;
  --display:'Big Shoulders Display',Impact,sans-serif;
  --body:'Hanken Grotesk',ui-sans-serif,system-ui,sans-serif;
  --mono:'Courier Prime','Courier New',ui-monospace,monospace;
  --gutter:clamp(16px,3.9vw,56px);
  --section:clamp(72px,8.4vw,120px);
  --rule:1px solid rgba(255,255,255,.3);
  --ease:cubic-bezier(.2,.8,.2,1);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{margin:0;color:var(--ink);font-family:var(--body);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
h1,h2,h3,p,figure,blockquote,dl,dd{margin:0}
img{display:block;max-width:100%;height:auto}
::selection{background:var(--butter);color:var(--tomato)}
:focus-visible{outline:3px solid var(--butter);outline-offset:4px}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
.accent{color:var(--butter)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.wrap{width:100%;max-width:1440px;margin-inline:auto;padding-inline:var(--gutter)}
.skip{position:absolute;left:16px;top:-80px;z-index:10;padding:12px 20px;border-radius:999px;background:var(--butter);color:var(--tomato);font-weight:700;text-decoration:none}
.skip:focus{top:12px}

/* Shared pieces */
.pill{display:inline-flex;align-items:center;justify-content:center;gap:.3em;border-radius:999px;background:var(--butter);color:var(--tomato);font-weight:700;text-decoration:none;white-space:nowrap;transition:background-color .15s,color .15s}
.pill:hover{background:var(--ink);color:var(--tomato)}
.pill-sm{min-height:44px;padding:0 18px;font-size:15px;font-weight:600}
.pill-lg{min-height:60px;padding:0 30px;font-size:19px}
.pill-xl{min-height:68px;padding:0 36px;font-size:22px;background:var(--tomato);color:var(--butter)}
.pill-xl:hover{background:var(--file-ink);color:var(--butter)}
.text-link{display:inline-flex;align-items:center;gap:.3em;min-height:44px;font-size:17px;font-weight:600;color:var(--ink);text-underline-offset:5px}
.text-link:hover{color:var(--butter)}
.display-xl{font:900 clamp(60px,8.4vw,120px)/.86 var(--display);text-transform:uppercase}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:48px}
.section-intro{max-width:440px;font-size:19px;line-height:1.5;color:var(--ink-88)}
.label{font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--butter)}

/* Header */
.site-header{border-bottom:var(--rule)}
.header-inner{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.logo{font:900 36px/1 var(--display);color:var(--ink);text-decoration:none}
.logo span{color:var(--butter)}
.status{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.status-dot{width:10px;height:10px;flex-shrink:0;border-radius:999px;background:var(--butter)}
.nav{display:flex;align-items:center;gap:28px;font-size:15px;font-weight:600}
.nav-link{display:inline-flex;align-items:center;min-height:44px;color:var(--ink);text-decoration:none}
.nav-link:hover{color:var(--butter)}

/* Hero */
.hero{position:relative;min-height:828px;display:flex;align-items:center;overflow-x:clip}
.hero-copy{position:relative;z-index:1;width:600px;display:flex;flex-direction:column;gap:24px}
.eyebrow{font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-88)}
.hero h1{font:900 90px/.86 var(--display);letter-spacing:.005em;text-transform:uppercase}
.hero-lede{max-width:540px;font-size:28px;font-weight:600;line-height:1.12;letter-spacing:-.015em;color:var(--butter)}
.hero-note{max-width:470px;font-size:17px;line-height:1.55;color:var(--ink-88)}
.arrow-down{display:none}
.hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px 28px}

/* Hero 3D: a 560x380 plane with five layers. .is-open (set by hero.js) spreads them apart. */
.stack-3d{position:absolute;top:0;bottom:0;right:0;left:calc(var(--gutter) + 564px);perspective:2600px;perspective-origin:50% 45%;pointer-events:none}
.plane{position:absolute;left:50%;top:70%;width:560px;height:380px;margin:-190px 0 0 -280px;transform-style:preserve-3d;transform:rotateX(57deg) rotateZ(-40deg);animation:orbit 16s ease-in-out infinite}
@keyframes orbit{0%,100%{transform:rotateX(57deg) rotateZ(-47deg)}50%{transform:rotateX(53deg) rotateZ(-31deg)}}
.layer{position:absolute;inset:0;border:2px solid var(--ink-60);border-radius:22px;background:var(--panel);transform:translateZ(var(--z));transition:transform 1100ms var(--ease) var(--delay)}
.is-open .layer{transform:translateZ(var(--z-open))}
.layer-base{--z:0px;--z-open:0px;--delay:0ms;border-color:rgba(255,255,255,.22);background-color:var(--base);background-image:linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px);background-size:28px 28px}
.layer-office{--z:12px;--z-open:100px;--delay:60ms}
.layer-tech{--z:24px;--z-open:200px;--delay:140ms}
.layer-pool{--z:36px;--z-open:300px;--delay:220ms}
.layer-cal{--z:48px;--z-open:400px;--delay:300ms;inset:auto;left:150px;top:130px;width:260px;height:120px;border:0;border-radius:20px;background:var(--butter);color:var(--tomato);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.cal-name{font:900 50px/1 var(--display)}
.cal-note{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.base-label{position:absolute;left:22px;right:22px;bottom:16px;display:flex;align-items:baseline;justify-content:space-between}
.base-name{font:900 38px/1.2 var(--display);text-transform:uppercase}
.base-note{font-size:13px;font-weight:600;color:rgba(255,255,255,.82)}
.layer-title{position:absolute;left:22px;top:18px;display:flex;flex-direction:column;gap:2px}
.layer-title span:first-child{font-size:19px;font-weight:700;color:var(--butter)}
.layer-title span:last-child{font-size:13px;font-weight:500;color:rgba(255,255,255,.86)}
.office-bars{position:absolute;left:22px;top:84px;bottom:22px;width:92px;display:flex;flex-direction:column;gap:14px}
.office-bars span{height:10px;border-radius:5px;background:rgba(255,255,255,.45)}
.office-bars span:nth-child(1){width:100%;background:var(--butter)}
.office-bars span:nth-child(2){width:80%}
.office-bars span:nth-child(3){width:90%}
.office-bars span:nth-child(4){width:70%}
.office-bars span:nth-child(5){width:85%}
.office-map{position:absolute;left:132px;top:84px}
.map-bg{fill:rgba(0,0,0,.2)}
.map-grid{stroke:rgba(255,255,255,.12);stroke-width:2}
.map-route{fill:none;stroke:var(--butter);stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.stop-done{fill:var(--butter)}
.stop-now{fill:var(--ink)}
.stop-next{fill:none;stroke:var(--ink);stroke-width:3}
.tech-stops{position:absolute;left:22px;right:22px;top:84px;display:flex;flex-direction:column;gap:12px}
.tech-stop{height:52px;padding:0 16px;border-radius:12px;background:rgba(255,255,255,.1);display:flex;align-items:center;gap:14px}
.tech-check{width:22px;height:22px;flex-shrink:0;border-radius:50%;background:var(--butter)}
.tech-line{height:10px;border-radius:5px;background:rgba(255,255,255,.45)}
.tech-tag{margin-left:auto;width:64px;height:22px;border-radius:11px;background:rgba(255,255,255,.18)}
.tech-stop.is-current{border:2px solid var(--butter);background:rgba(255,255,255,.14)}
.is-current .tech-check{background:none;border:3px solid var(--butter)}
.is-current .tech-line{background:var(--ink)}
.is-current .tech-tag{background:var(--butter)}
.is-next .tech-check{background:none;border:2px solid rgba(255,255,255,.5)}
.w-160{width:160px}.w-190{width:190px}.w-210{width:210px}.w-230{width:230px}
.pool-ring{position:absolute;left:22px;top:100px}
.ring-track{fill:none;stroke:rgba(255,255,255,.2);stroke-width:18}
.ring-value{fill:none;stroke:var(--butter);stroke-width:18;stroke-linecap:round;stroke-dasharray:320 440}
.ring-core{fill:rgba(255,255,255,.12)}
.pool-lines{position:absolute;left:236px;right:22px;top:104px;display:flex;flex-direction:column;gap:18px}
.pool-pair{display:flex;flex-direction:column;gap:8px}
.pool-key{height:8px;border-radius:4px;background:rgba(255,255,255,.4)}
.pool-val{height:14px;border-radius:7px;background:rgba(255,255,255,.7)}
.w-35p{width:35%}.w-40p{width:40%}.w-75p{width:75%}.w-90p{width:90%}
.pool-buttons{display:flex;align-items:center;gap:10px;padding-top:10px}
.pool-pay{width:110px;height:34px;border-radius:17px;background:var(--butter)}
.pool-alt{width:90px;height:34px;border-radius:17px;border:2px solid rgba(255,255,255,.55)}
/* Connectors stand up out of the plane: rotateX(90deg) turns their height into depth. */
.wire{position:absolute;width:2px;height:36px;background:var(--ink-60);transform-origin:top center;transform:rotateX(90deg);transition:height 1100ms var(--ease)}
.is-open .wire{height:300px}
.wire-left{left:36px;top:344px}
.wire-right{left:522px;top:34px}
.wire-cal{left:279px;top:190px;height:12px;background:var(--butter);transform:translateZ(36px) rotateX(90deg);transition:transform 1100ms var(--ease) 220ms,height 1100ms var(--ease) 300ms}
.is-open .wire-cal{height:100px;transform:translateZ(300px) rotateX(90deg)}
.packet{position:absolute;width:12px;height:12px;border-radius:3px;background:var(--butter);box-shadow:0 0 14px var(--butter);opacity:0}
.packet-up{left:31px;top:339px}
.packet-down{left:517px;top:29px;background:var(--ink);box-shadow:0 0 14px var(--ink)}
.packet-cal{left:274px;top:185px}
.is-open .up-1{animation:rise 2.8s linear 1.1s infinite}
.is-open .up-2{animation:rise 2.8s linear 2.5s infinite}
.is-open .down-1{animation:rise 2.8s linear 1.4s infinite reverse}
.is-open .down-2{animation:rise 2.8s linear 2.8s infinite reverse}
.is-open .packet-cal{animation:to-cal 1.9s ease-in-out 1.6s infinite}
@keyframes rise{0%{transform:translateZ(0);opacity:0}12%{opacity:1}88%{opacity:1}100%{transform:translateZ(300px);opacity:0}}
@keyframes to-cal{0%{transform:translateZ(300px);opacity:0}15%{opacity:1}85%{opacity:1}100%{transform:translateZ(400px);opacity:0}}
.is-paused .plane,.is-paused .packet{animation-play-state:paused}

/* Phones and tablets: the same stack, flat and still. */
.stack-flat{display:none;flex-direction:column;gap:16px;max-width:480px}
.flat{position:relative;padding:14px 18px;border:2px solid var(--ink-60);border-radius:14px;background:var(--panel);display:flex;flex-direction:column;gap:2px}
.flat-name{font-size:19px;font-weight:700;color:var(--butter)}
.flat-note{font-size:13px;font-weight:500;color:var(--ink)}
.flat+.flat::before,.flat+.flat::after{content:"";position:absolute;top:-18px;width:2px;height:16px;background:var(--ink-60)}
.flat+.flat::before{left:26px}
.flat+.flat::after{right:26px}
.flat-after-cal::before{left:calc(50% - 1px);background:var(--butter)}
.flat-after-cal::after{display:none}
.flat-cal{border-color:var(--butter);background:var(--butter);flex-direction:row;align-items:baseline;justify-content:center;gap:14px}
.flat-cal .flat-name{font:900 38px/1 var(--display);color:var(--tomato)}
.flat-cal .flat-note{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--tomato)}
.flat-base{border-color:rgba(255,255,255,.22);background-color:var(--base);background-image:linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px);background-size:28px 28px;flex-direction:row;align-items:baseline;justify-content:space-between}
.flat-base .flat-name{font:900 30px/1.1 var(--display);text-transform:uppercase;color:var(--ink)}
.flat-base .flat-note{font-weight:600;color:rgba(255,255,255,.82)}

/* Proof strip */
.proof-grid{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:var(--rule);border-bottom:var(--rule)}
.proof-item{padding:40px 32px 44px;display:flex;flex-direction:column;gap:10px}
.proof-item:first-child{padding-left:0}
.proof-item+.proof-item{border-left:var(--rule)}
.proof-figure{font:900 clamp(56px,6.1vw,88px)/.9 var(--display);color:var(--butter)}
.proof-text{font-size:18px;line-height:1.45;color:var(--ink-88)}

/* Sound familiar? */
.problems{padding-top:var(--section);display:flex;flex-direction:column;gap:40px}
.problem-list{margin:0;padding:0;list-style:none;border-bottom:var(--rule)}
.problem{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px;padding:36px 0;border-top:var(--rule)}
.problem-quote{font-size:clamp(26px,2.8vw,40px);font-weight:600;line-height:1.1;letter-spacing:-.015em}
.problem-answer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:start;gap:8px 28px;padding-top:6px}
.problem-answer>p{grid-column:1}
.problem-answer p:last-child{font-size:20px;line-height:1.5}

/* Work */
.work{padding-top:var(--section)}
.work-head{display:flex;justify-content:space-between;align-items:baseline;padding-bottom:20px;font-size:15px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.work-head h2{font:inherit}
.work-list{margin:0;padding:0;list-style:none;border-bottom:var(--rule)}
.work-row{display:flex;align-items:center;gap:32px;min-height:150px;border-top:var(--rule);color:var(--ink);text-decoration:none}
.work-title{flex-grow:1;font:900 clamp(52px,7.8vw,112px)/.9 var(--display);text-transform:uppercase;transition:color .15s}
.work-desc{width:360px;flex-shrink:0;font-size:19px;line-height:1.4}
.work-arrow{font-size:44px;font-weight:600;color:var(--butter);transition:transform .2s var(--ease)}
.work-row:hover .work-title{color:var(--butter)}
.work-row:hover .work-arrow{transform:translate(4px,-4px)}

/* Before Cannonball: case files */
.files{padding-top:var(--section);display:flex;flex-direction:column;gap:48px}
.files-heading{display:flex;flex-direction:column;gap:18px}
.file-kicker{font:700 15px/1.3 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--butter)}
.files-intro{max-width:460px;font-size:22px;font-weight:600;line-height:1.35}
.file-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.file{position:relative;padding:26px 28px 22px;border-radius:6px;background:var(--butter);color:var(--file-ink);box-shadow:0 18px 40px rgba(1,8,15,.28);display:flex;flex-direction:column;gap:14px}
.file:nth-child(1){transform:rotate(-.6deg)}
.file:nth-child(2){transform:rotate(.4deg)}
.file:nth-child(3){transform:rotate(-.3deg)}
.file:nth-child(4){transform:rotate(.5deg)}
.file:nth-child(5){transform:rotate(-.5deg)}
.file-label{min-height:40px;padding-right:150px;display:flex;align-items:center;font:700 14px/1.3 var(--mono);letter-spacing:.06em;text-transform:uppercase}
.stamp{position:absolute;top:18px;right:18px;padding:3px 10px;border:3px solid var(--tomato);border-radius:4px;color:var(--tomato);font:900 24px/1 var(--display);letter-spacing:.06em;text-transform:uppercase;transform:rotate(-9deg)}
.file h3{font:900 42px/.92 var(--display);text-transform:uppercase}
.file dl{display:flex;flex-direction:column}
.file dl div{display:flex;gap:14px;padding:9px 0;border-top:1px dashed rgba(3,14,26,.35)}
.file dt{width:88px;flex-shrink:0;padding-top:2px;font:700 13px/1.3 var(--mono);letter-spacing:.04em;text-transform:uppercase}
.file dd{font:15px/1.45 var(--mono)}
.redact{display:inline-block;height:.95em;vertical-align:-.14em;border-radius:2px;background:var(--file-ink);forced-color-adjust:none}
.redact-butter{background:var(--butter)}
.w-40{width:40px}.w-60{width:60px}.w-70{width:70px}.w-90{width:90px}.w-120{width:120px}.w-140{width:140px}.w-170{width:170px}
.file-more{padding:26px 28px;border:3px dashed var(--butter);border-radius:6px;color:var(--ink);text-decoration:none;display:flex;flex-direction:column;justify-content:space-between;gap:20px;transition:background-color .15s}
.file-more:hover{background-color:rgba(255,111,89,.1)}
.file-more-label{font:700 14px/1.3 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--butter)}
.file-more-title{font:900 54px/.9 var(--display);text-transform:uppercase}
.file-more-note{font-size:19px;line-height:1.45;color:var(--ink-88)}
.file-more-cta{font-weight:700;color:var(--butter);white-space:nowrap}

/* Quote */
.quote{padding-top:var(--section)}
.quote figure{max-width:1120px;display:flex;flex-direction:column;gap:24px}
.quote blockquote{font-size:clamp(min(46px,11.5vw),6.1vw,88px);font-weight:600;line-height:1.02;letter-spacing:-.025em}
.quote figcaption{font-size:18px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--butter)}

/* How it works */
.how{padding-top:var(--section);display:flex;flex-direction:column;gap:40px}
.steps{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.step{padding:32px;border:var(--rule);border-radius:16px;display:flex;flex-direction:column;gap:14px}
.step-num{font:900 64px/.9 var(--display);color:var(--butter)}
.step h3{font-size:28px;font-weight:700;letter-spacing:-.01em}
.step p{font-size:18px;line-height:1.55;color:var(--ink-88)}

/* About */
.about{padding-block:var(--section);display:flex;align-items:center;gap:64px}
.about-photo{position:relative;width:420px;height:480px;flex-shrink:0;padding:24px 18px 40px;border-radius:16px;background:var(--butter);overflow:hidden;display:flex;align-items:flex-end;justify-content:center}
.about-sun{position:absolute;top:36px;left:36px;width:120px;height:120px;fill:var(--tomato);stroke:var(--tomato);stroke-width:4;stroke-linecap:round}
.about-copy{flex-grow:1;display:flex;flex-direction:column;gap:24px}
.about-copy h2{font-size:clamp(38px,4.45vw,64px);font-weight:600;line-height:1.02;letter-spacing:-.025em}
.about-copy p{max-width:720px;font-size:19px;line-height:1.55;color:var(--ink-88)}
.github-link{align-self:flex-start;display:inline-flex;align-items:center;gap:.3em;min-height:44px;font-size:17px;font-weight:700;color:var(--butter);text-underline-offset:5px}
.github-link:hover{color:var(--ink)}

/* Contact and footer: the butter block */
.contact,.site-footer{background:var(--butter);color:var(--tomato)}
.contact :focus-visible,.site-footer :focus-visible{outline-color:var(--file-ink)}
.contact-inner{padding-top:clamp(64px,6.7vw,96px);padding-bottom:clamp(56px,5vw,72px);display:flex;flex-direction:column;gap:28px}
.contact h2{font:900 clamp(54px,10.4vw,150px)/.86 var(--display);text-transform:uppercase}
.contact-note{max-width:700px;font-size:22px;font-weight:600;line-height:1.4}
.contact-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px 28px}
.contact-email{display:inline-flex;align-items:center;min-height:44px;font-size:22px;font-weight:700;color:var(--tomato);text-underline-offset:5px}
.contact-email:hover,.footer-inner a:hover{color:var(--file-ink)}
.footer-inner{min-height:80px;border-top:2px solid var(--tomato);display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:15px;font-weight:600}
.footer-inner a{display:inline-flex;align-items:center;gap:.3em;min-height:44px;color:var(--tomato)}

/* Project pages (built by scripts/build-pages.mjs): headline on the left, story on the right. */
.project-head{padding-top:clamp(28px,3.9vw,56px);padding-bottom:clamp(40px,4.2vw,60px);display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);align-items:center;gap:32px 56px}
.project-intro{display:flex;flex-direction:column;align-items:flex-start;gap:22px;min-width:0}
.project-art .signature{display:block;width:100%;max-width:540px;margin-left:auto}
.back-link{display:inline-flex;align-items:center;gap:.4em;min-height:44px;font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink);text-decoration:none}
.back-link:hover{color:var(--butter)}
.project-head h1{font:900 clamp(min(64px,17vw),7.8vw,118px)/.86 var(--display);text-transform:uppercase}
.project-lede{max-width:880px;font-size:clamp(24px,2.5vw,36px);font-weight:600;line-height:1.15;letter-spacing:-.015em;color:var(--butter)}
.project-deck{max-width:720px;font-size:19px;line-height:1.55;color:var(--ink-88)}
.project-head .pill{margin-top:6px}
.project-hero img{width:100%;border-radius:16px;box-shadow:0 18px 40px rgba(1,8,15,.28)}
.project-hero figcaption{margin-top:12px;font-size:14px;color:var(--ink-88)}
.chapters{padding-top:var(--section)}
.chapter{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-rows:auto 1fr;column-gap:48px;padding:40px 0 clamp(56px,5.6vw,80px);border-top:var(--rule)}
.chapter h2{grid-row:1 / span 2;align-self:start;position:sticky;top:24px;font-size:clamp(28px,2.8vw,40px);font-weight:600;line-height:1.1;letter-spacing:-.015em}
.chapter-text{grid-column:2;grid-row:1;max-width:680px;display:flex;flex-direction:column;gap:16px}
.chapter-text p{font-size:19px;line-height:1.55;color:var(--ink-88)}
.chapter-media{grid-column:2;grid-row:2;margin-top:36px}
.text-links{display:flex;flex-wrap:wrap;gap:4px 28px}
.shots{display:flex;flex-direction:column;gap:28px}
.shots-phone{flex-direction:row;flex-wrap:wrap;gap:24px}
.shots-phone .shot{width:min(300px,calc(50% - 12px))}
.shot-link{position:relative;display:block;border-radius:14px}
.shot img{width:100%;border-radius:14px;box-shadow:0 18px 40px rgba(1,8,15,.28)}
.shots-phone .shot-link,.shots-phone .shot img{border-radius:28px}
.shot-link::after{content:"Enlarge ↗";position:absolute;z-index:3;right:12px;bottom:12px;padding:8px 14px;border-radius:999px;background:var(--butter);color:var(--tomato);font-size:14px;font-weight:700;opacity:0;transition:opacity .15s}
.shot-link:hover::after,.shot-link:focus-visible::after{opacity:1}
.pipeline{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.pipeline li{padding:24px;border:var(--rule);border-radius:16px;display:flex;flex-direction:column;gap:8px}
.pipeline strong{font-size:22px;font-weight:700}
.pipeline span{font-size:16px;line-height:1.5;color:var(--ink-88)}
.more-work .work-row{min-height:120px}
.more-work .work-title{font-size:clamp(48px,5.6vw,80px)}

/* Ask3D model viewer (scripts/partials/model.html, public/model.js): a butter stage. */
#model-example{scroll-margin-top:24px}
.model-stage{height:550px;padding:24px 24px 0;border-radius:16px;background:var(--butter);color:var(--file-ink);display:flex;flex-direction:column}
.model-stage :focus-visible{outline-color:var(--file-ink)}
.model-top{display:flex;align-items:center;justify-content:space-between;gap:16px}
.model-brand{font:900 40px/1 var(--display);text-transform:uppercase}
.model-brand>span{color:var(--tomato)}
.model-top button,.model-controls button{min-height:44px;padding:0 18px;border-radius:999px;background:var(--tomato);color:var(--butter);font-size:15px;font-weight:700;white-space:nowrap}
.model-top button:hover,.model-controls button:hover,.model-top button[aria-pressed=true]{background:var(--file-ink)}
.model-top button:disabled,.model-controls button:disabled{opacity:.5;cursor:default}
.canvas-wrap{flex:1;position:relative;min-height:0;margin:0 -24px}
#model{width:100%;height:100%;display:block;touch-action:pan-y;cursor:grab}
#model.dragging{cursor:grabbing;touch-action:none}
.model-loading{position:absolute;inset:40% 0 auto;text-align:center;font-size:15px;pointer-events:none}
.model-controls,.model-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;font:700 13px/1.3 var(--mono);letter-spacing:.04em}
.model-controls{padding-bottom:16px}
.model-bottom{min-height:48px;border-top:1px dashed rgba(3,14,26,.35);text-transform:uppercase}

@media (max-width:900px){
  .chapter{grid-template-columns:minmax(0,1fr);grid-template-rows:none;row-gap:16px;padding-top:32px}
  .chapter h2{grid-row:auto;position:static}
  .chapter-text,.chapter-media{grid-column:auto;grid-row:auto}
  .chapter-media{margin-top:16px}
  .pipeline{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:640px){
  .project-deck,.chapter-text p{font-size:17px}
  .model-stage{height:460px;padding:18px 18px 0}
  .canvas-wrap{margin:0 -18px}
  .model-brand{font-size:32px}
  .model-controls{flex-wrap:wrap}
}

/* Narrower desktops: shrink the 3D view (about 726x653 at full size) so it clears the
   headline and keeps 16px from the edge at the narrowest width of each step. */
@media (max-width:1439px){
  .stack-3d{transform:scale(.94);transform-origin:50% 70%}
}
@media (max-width:1365px){
  .stack-3d{transform:scale(.84)}
}
@media (max-width:1279px){
  .hero-copy{width:540px}
  .hero h1{font-size:80px}
  .stack-3d{left:calc(var(--gutter) + 504px);transform:scale(.8)}
  .work-desc{width:300px}
}
@media (max-width:1199px){
  .stack-3d{transform:scale(.68)}
}

/* Tablets: a flat, still stack beside the text instead of the 3D view. */
@media (max-width:1099px){
  .hero{min-height:0;padding-block:56px 72px;gap:48px}
  .hero-copy{width:auto;flex:1 1 0;max-width:600px}
  .hero h1{font-size:72px}
  .stack-3d{display:none}
  .stack-flat{display:flex;flex:0 1 380px}
  .file-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .step{padding:26px 24px}
  .about{gap:48px}
  .about-photo{width:360px;height:420px}
}
/* Portrait tablets and phones: one column, with the stack below the text. */
@media (max-width:959px){
  .hero{flex-direction:column;align-items:stretch}
  .hero-copy{flex:none;max-width:640px}
  .hero h1{font-size:clamp(48px,12.4vw,90px)}
  .stack-flat{flex:none;max-width:480px}
  .arrow-side{display:none}
  .arrow-down{display:inline}
  .steps{grid-template-columns:1fr}
}
@media (max-width:900px){
  .header-inner{padding-block:12px;display:grid;grid-template-columns:auto 1fr;grid-template-areas:"logo status" "nav nav";gap:8px 16px}
  .logo{grid-area:logo}
  .status{grid-area:status;justify-self:end;font-size:12px}
  .nav{grid-area:nav;gap:4px 20px;flex-wrap:wrap}
  .nav .pill{margin-left:auto}
  .proof-grid{grid-template-columns:1fr}
  .proof-item,.proof-item:first-child{padding:28px 0 32px}
  .proof-item+.proof-item{border-left:0;border-top:var(--rule)}
  .section-head{flex-direction:column;align-items:flex-start;gap:20px}
  .problem{grid-template-columns:1fr;gap:16px;padding:28px 0}
  .work-row{display:grid;grid-template-columns:1fr auto;grid-template-areas:"title arrow" "desc desc";align-items:center;gap:10px 16px;min-height:0;padding:24px 0 26px}
  .work-arrow{grid-area:arrow;font-size:32px;line-height:1}
  .work-title{grid-area:title}
  .work-desc{grid-area:desc;width:auto;max-width:520px;font-size:17px}
  .about{flex-direction:column;align-items:stretch}
  .about-photo{width:100%;max-width:420px;height:auto;aspect-ratio:1}
  .about-sun{top:28px;left:28px;width:96px;height:96px}
}
@media (max-width:640px){
  .nav{gap:4px 16px;font-size:14px}
  .pill-sm{padding:0 14px}
  .hero-lede{font-size:23px}
  .hero-note{font-size:16px}
  .file-grid{grid-template-columns:1fr}
  .file{padding:22px 20px 20px}
  .file-label{padding-right:130px}
  .stamp{top:16px;right:14px;font-size:20px}
  .file h3{font-size:36px}
  .file dt{width:72px}
  .file-more-title{font-size:46px}
  .step{padding:26px 22px}
  .display-xl,.contact h2{font-size:min(64px,16vw)}
  .contact-note,.contact-email{font-size:19px}
  .pill-xl{min-height:60px;padding:0 26px;font-size:19px}
}

/* Reduced motion: open once and hold still. No orbit, no packets, no transitions. */
@media (prefers-reduced-motion:reduce){
  .plane{animation:none}
  .layer,.wire,.wire-cal{transition:none}
  .layer{transform:translateZ(var(--z-open))}
  .wire{height:300px}
  .wire-cal{height:100px;transform:translateZ(300px) rotateX(90deg)}
  .stack-3d .packet{animation:none;opacity:0}
  .pill,.work-title,.work-arrow,.file-more{transition:none}
}

@media (forced-colors:active){
  .pill{border:2px solid ButtonText}
}

/* ==================== Motion and graphics ====================
   Decoration only: every page reads the same without it. motion.js adds .motion to <html>
   (never with reduced motion), .in when something scrolls into view, and .in-view while a
   looping illustration is on screen. Looping animations live inside no-preference queries. */
:root{--spring:cubic-bezier(.3,1.4,.45,1)}
body{overflow-x:clip}

/* Scroll progress bar, in browsers with scroll-driven animations. */
.progress{display:none}
@supports (animation-timeline:scroll()){
  @media (prefers-reduced-motion:no-preference){
    .progress{display:block;position:fixed;top:0;left:0;right:0;z-index:30;height:3px;background:var(--butter);transform-origin:0 50%;animation:progress linear both;animation-timeline:scroll(root)}
  }
}
@keyframes progress{from{scale:0 1}to{scale:1 1}}

/* Headlines rise line by line out of a mask; butter punctuation pops in last. */
.line{display:block;overflow:hidden;padding:.05em 0 .09em;margin:-.05em 0 -.09em}
.line>span,.pop{display:inline-block}
@keyframes line-in{from{translate:0 112%}}
@keyframes pop-in{from{scale:0;rotate:-45deg}}
@keyframes rise-in{from{opacity:0;translate:0 18px}}
@keyframes spin{to{rotate:360deg}}
@keyframes live{0%{box-shadow:0 0 0 0 rgba(255,111,89,.75)}70%,100%{box-shadow:0 0 0 10px rgba(255,111,89,0)}}
@media (prefers-reduced-motion:no-preference){
  .hero h1 .line>span{animation:line-in 1s var(--ease) both}
  .hero h1 .line:nth-child(2)>span{animation-delay:.08s}
  .hero h1 .line:nth-child(3)>span{animation-delay:.16s}
  .hero h1 .pop{animation:pop-in .7s .8s var(--spring) both}
  .eyebrow,.hero-lede,.hero-note,.hero-actions,.stack-flat{animation:rise-in .8s var(--ease) both}
  .hero-lede{animation-delay:.3s}.hero-note{animation-delay:.38s}.hero-actions{animation-delay:.46s}.stack-flat{animation-delay:.55s}
  .status-dot{animation:live 2.2s ease-out infinite}
  .logo:hover span[aria-hidden]{display:inline-block;animation:hop .6s var(--spring)}
  .project-intro>:not(h1){animation:rise-in .8s var(--ease) both}
  .project-intro>:nth-child(2){animation-delay:.05s}.project-intro>:nth-child(4){animation-delay:.2s}.project-intro>:nth-child(5){animation-delay:.28s}.project-intro>:nth-child(6){animation-delay:.36s}
  .project-art{animation:rise-in 1s .25s var(--ease) both}
  .project-hero{perspective:1400px}
  .project-hero :is(.browser,.iv-run,.tour-frame){animation:shot-in 1.1s .35s var(--ease) both}
}
@keyframes hop{40%{translate:0 -45%}}
@keyframes shot-in{from{opacity:0;translate:0 50px;rotate:x 14deg}}

/* Scroll reveals */
.motion .reveal{transition:opacity .8s var(--ease),translate .9s var(--ease);transition-delay:calc(var(--i,0) * 90ms)}
.motion .reveal:not(.in){opacity:0;translate:0 28px}
.motion .reveal-lines .line>span{transition:translate 1s var(--ease)}
.motion .reveal-lines .line:nth-child(2)>span{transition-delay:.09s}
.motion .reveal-lines:not(.in) .line>span{translate:0 112%}
.motion .reveal-lines .pop{transition:scale .6s var(--spring) .55s,rotate .6s var(--spring) .55s}
.motion .reveal-lines:not(.in) .pop{scale:0;rotate:-45deg}
/* The white rules draw across as rows arrive. */
.motion :is(.problem,.work-row,.chapter){position:relative;border-top-color:transparent}
.motion :is(.problem,.work-row,.chapter)::before{content:"";position:absolute;left:0;right:0;top:-1px;height:1px;background:rgba(255,255,255,.3);transform-origin:0 50%;transition:scale 1.1s var(--ease);transition-delay:calc(var(--i,0) * 90ms)}
.motion :is(.problem,.work-row,.chapter):not(.in)::before{scale:0 1}
.motion .chapter .shot{perspective:1200px}
.motion .chapter .shot img{transition:opacity .8s var(--ease) .15s,translate 1s var(--ease) .15s,rotate 1.1s var(--ease) .15s}
.motion .chapter:not(.in) .shot img{opacity:0;translate:0 40px;rotate:x 16deg}
.motion .chapter .shot:nth-child(2) img{transition-delay:.3s}

/* Project titles shuffle in place (motion.js): each letter keeps its real width, hidden, while a
   shuffled letter is drawn over it, clipped to that width. */
.shuffle .ch{display:inline-block;position:relative}
.shuffle .ch[data-g]{color:transparent;clip-path:inset(-.3em 0)}
.shuffle .ch[data-g]::after{content:attr(data-g);position:absolute;top:0;left:50%;translate:-50% 0;color:var(--ink-60)}

/* Proof strip: numbers count up (motion.js); Live gets an on-air dot. */
.proof-live::before{content:"";display:inline-block;width:.2em;height:.2em;margin:0 .16em 0 .04em;border-radius:50%;background:var(--butter);vertical-align:.22em}
@media (prefers-reduced-motion:no-preference){.proof-live::before{animation:live 1.6s ease-out infinite}}

/* Sound familiar? Three small illustrations that act the answers out. */
.problem-answer .vignette{grid-column:2;grid-row:1 / span 2;width:150px;height:auto}
.vignette,.step-icon{overflow:visible}
.vignette :where(path,rect,circle),.step-icon :where(path,rect,circle){fill:none;stroke:var(--ink);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.vignette :where(g,path,rect,circle),.step-icon :where(g,path,rect,circle){transform-box:fill-box;transform-origin:center}
.vignette .b,.step-icon .b{stroke:var(--butter)}
.vignette .fill-b{fill:var(--butter);stroke:none}
.motion :is(.vignette,.step-icon,.tape,.about-photo):not(.in-view) *,.motion .file-more:not(.in-view){animation-play-state:paused}
/* 1. Spreadsheets, texts and calls snap into one system. At rest: the finished system. */
.c-dot,.c-light,.i-light{fill:var(--ink);stroke:none}
.c-ok .tick{stroke:var(--tomato);stroke-width:2.2}
.c-sheet,.c-phone,.c-bubble{opacity:0}
.v-chaos [pathLength]{stroke-dasharray:1 1}
@media (prefers-reduced-motion:no-preference){
  .c-sheet{animation:c-sheet 8s var(--ease) infinite,jiggle .5s ease-in-out infinite alternate}
  .c-phone{animation:c-phone 8s var(--ease) infinite,buzz .15s linear infinite alternate}
  .c-bubble{animation:c-bubble 8s var(--ease) infinite,jiggle .6s .2s ease-in-out infinite alternate}
  .c-ring{animation:blink 1s steps(2) infinite}
  .c-dot{animation:blink 1.2s ease-in-out infinite}.c-dot:nth-of-type(2){animation-delay:.2s}.c-dot:nth-of-type(3){animation-delay:.4s}
  .c-app{animation:c-app 8s var(--ease) infinite}
  .v-chaos [pathLength]{animation:draw 8s var(--ease) infinite}
  .c-ok{animation:c-ok 8s var(--spring) infinite}
}
@keyframes c-sheet{0%{opacity:0;translate:-24px 6px}8%,34%{opacity:1;translate:0 0}46%,100%{opacity:0;translate:36px 24px;scale:.3}}
@keyframes c-phone{0%{opacity:0;translate:20px -6px}8%,34%{opacity:1;translate:0 0}46%,100%{opacity:0;translate:-52px 24px;scale:.3}}
@keyframes c-bubble{0%{opacity:0;translate:0 20px}10%,34%{opacity:1;translate:0 0}46%,100%{opacity:0;translate:14px -26px;scale:.3}}
@keyframes jiggle{from{rotate:-6deg}to{rotate:5deg}}
@keyframes buzz{from{rotate:-6deg}to{rotate:6deg}}
@keyframes blink{50%{opacity:.25}}
@keyframes c-app{0%,40%{opacity:0;scale:.7}52%{opacity:1;scale:1.04}58%,88%{opacity:1;scale:1}96%,100%{opacity:0;scale:.96}}
@keyframes draw{0%,42%{stroke-dashoffset:1}62%,100%{stroke-dashoffset:0}}
@keyframes c-ok{0%,62%{opacity:0;scale:0}68%{opacity:1;scale:1.3}73%,100%{opacity:1;scale:1}}
/* 2. The off-the-shelf piece almost fits and gets tossed; a custom one clicks in. */
.f-slot{stroke-dasharray:5 6;opacity:.8}
.f-generic{fill:rgba(255,255,255,.1);opacity:0}
.f-custom{fill:var(--butter);stroke:var(--butter)}
.f-click{stroke:var(--butter);opacity:0}
.f-spark{opacity:0}
@media (prefers-reduced-motion:no-preference){
  .f-slot{animation:ants 1.2s linear infinite}
  .f-generic{animation:f-generic 7s var(--ease) infinite}
  .f-custom{animation:f-custom 7s var(--spring) infinite}
  .f-click{animation:f-click 7s ease-out infinite}
  .f-spark{animation:f-spark 7s ease-out infinite}
}
@keyframes ants{to{stroke-dashoffset:-22}}
@keyframes f-generic{0%{opacity:0;translate:-60px -34px;rotate:-12deg}12%{opacity:1;translate:0 -22px;rotate:0deg}19%{translate:0 -6px}22%{translate:0 -12px;rotate:4deg}25%{translate:0 -8px;rotate:-4deg}28%{translate:0 -10px;rotate:2deg}31%{translate:0 -10px;rotate:0deg}40%,100%{opacity:0;translate:70px -30px;rotate:18deg}}
@keyframes f-custom{0%,40%{opacity:0;translate:0 -46px}50%{opacity:1;translate:0 3px}54%,88%{opacity:1;translate:0 0}96%,100%{opacity:0;translate:0 0}}
@keyframes f-click{0%,52%{opacity:0;scale:1}55%{opacity:1;scale:1}70%,100%{opacity:0;scale:1.28}}
@keyframes f-spark{0%,53%{opacity:0;translate:0 6px}58%{opacity:1;translate:0 0}72%,100%{opacity:0;translate:0 -6px}}
/* 3. The assistant proposes, waits for Approve, and offers an undo. */
.a-yes{fill:var(--butter);stroke:var(--butter)}
.a-check circle{fill:var(--butter);stroke:none}
.a-tick{stroke:var(--tomato);stroke-width:2.6;stroke-dasharray:1 1}
.a-undo path{stroke:var(--butter)}
.a-cursor{fill:var(--ink);stroke:var(--tomato);stroke-width:1.2;opacity:0}
@media (prefers-reduced-motion:no-preference){
  .a-ask{animation:a-ask 8s var(--spring) infinite}
  .a-card{animation:a-card 8s var(--ease) infinite}
  .a-cursor{animation:a-cursor 8s var(--ease) infinite}
  .a-yes{animation:a-yes 8s ease-out infinite}
  .a-check{animation:a-check 8s var(--spring) infinite}
  .a-tick{animation:a-tick 8s ease-out infinite}
  .a-undo{animation:a-undo 8s var(--spring) infinite}
}
@keyframes a-ask{0%{opacity:0;scale:.5}8%{opacity:1;scale:1.06}12%,86%{opacity:1;scale:1}94%,100%{opacity:0;scale:1}}
@keyframes a-card{0%,12%{opacity:0;translate:0 18px}22%,86%{opacity:1;translate:0 0}94%,100%{opacity:0;translate:0 0}}
@keyframes a-cursor{0%,24%{opacity:0;translate:150px 124px}30%{opacity:1;translate:138px 116px}42%{translate:72px 94px;scale:1}46%{scale:.8}50%{scale:1;opacity:1}60%,100%{opacity:0;translate:72px 94px}}
@keyframes a-yes{0%,45%{opacity:1}47%{opacity:.35}52%,100%{opacity:1}}
@keyframes a-check{0%,48%{opacity:0;scale:.2}56%{opacity:1;scale:1.2}60%,86%{opacity:1;scale:1}94%,100%{opacity:0;scale:1}}
@keyframes a-tick{0%,54%{stroke-dashoffset:1}62%,100%{stroke-dashoffset:0}}
@keyframes a-undo{0%,64%{opacity:0;rotate:-120deg;scale:.6}72%{opacity:1;rotate:0deg;scale:1}86%{opacity:1}94%,100%{opacity:0}}

/* Work: letters wave on hover; a screenshot follows the pointer (motion.js). */
.work-title,.project-head h1{font-kerning:none}
:is(.work-title,.project-head h1) .word{white-space:nowrap}
.work-title .ch{display:inline-block;transition:translate .35s var(--spring);transition-delay:calc(var(--i,0) * 22ms)}
@media (hover:hover) and (prefers-reduced-motion:no-preference){.work-row:hover .ch{translate:0 -9%}}
.work-peek{position:fixed;left:0;top:0;z-index:25;width:300px;aspect-ratio:8/5;border-radius:14px;overflow:hidden;pointer-events:none;box-shadow:0 22px 50px rgba(1,8,15,.45);opacity:0;scale:.6;transition:opacity .25s,scale .4s var(--spring);will-change:transform}
.work-peek.show{opacity:1;scale:1}
.work-peek img{width:100%;height:100%;object-fit:cover}

/* Case files: tossed onto the page, stamped, and redacted with a marker swipe. */
.motion .file.reveal{transition:opacity .6s var(--ease),translate 1s var(--spring),rotate 1s var(--spring);transition-delay:calc(var(--i,0) * 110ms)}
.motion .file.reveal:not(.in){translate:0 80px;rotate:-8deg}
.motion .file.reveal:nth-child(even):not(.in){rotate:7deg}
.file{overflow:hidden}
.stamp::after{content:"";position:absolute;inset:-7px;border:3px solid var(--tomato);border-radius:8px;opacity:0}
.motion .file:not(.in) .stamp{opacity:0}
.motion .file.in .stamp{animation:stamp .5s cubic-bezier(.2,1.5,.4,1) both;animation-delay:calc(.55s + var(--i,0) * 110ms)}
.motion .file.in .stamp::after{animation:ink .6s ease-out both;animation-delay:calc(.78s + var(--i,0) * 110ms)}
@keyframes stamp{0%{opacity:0;scale:2.6}60%{opacity:1;scale:.9}100%{opacity:1;scale:1}}
@keyframes ink{0%{opacity:.8;scale:.9}100%{opacity:0;scale:1.5}}
.redact{position:relative;transform-origin:0 50%}
.motion .file .redact{transition:scale .5s var(--ease),translate .2s;transition-delay:calc(.35s + var(--i,0) * 110ms),0s}
.motion .file:not(.in) .redact{scale:0 1}
@media (hover:hover){
  .redact:hover{translate:0 -2px;box-shadow:0 3px 0 rgba(3,14,26,.25)}
  .redact:hover::after{content:"nice try";position:absolute;left:50%;bottom:calc(100% + 6px);translate:-50% 0;padding:2px 8px;border-radius:4px;background:var(--file-ink);color:var(--butter);font:700 11px/1.4 var(--mono);letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
  .redact-butter:hover::after{background:var(--butter);color:var(--file-ink)}
}
.file-more{border:0;background:linear-gradient(90deg,var(--butter) 55%,transparent 0) 0 0/14px 3px repeat-x,linear-gradient(90deg,var(--butter) 55%,transparent 0) 0 100%/14px 3px repeat-x,linear-gradient(0deg,var(--butter) 55%,transparent 0) 0 0/3px 14px repeat-y,linear-gradient(0deg,var(--butter) 55%,transparent 0) 100% 0/3px 14px repeat-y}
@media (prefers-reduced-motion:no-preference){.file-more{animation:marching 1s linear infinite}}
@keyframes marching{to{background-position:14px 0,-14px 100%,0 -14px,100% 14px}}

/* Quote: words arrive one at a time and "so much easier" gets underlined by hand. */
.quote{position:relative;z-index:0}
.quote figure{position:relative}
.quote figure::before{content:"\201C";position:absolute;left:-.04em;top:-.3em;z-index:-1;font:800 clamp(200px,22vw,340px)/1 var(--body);color:var(--butter);opacity:.14;pointer-events:none}
.quote .w{display:inline-block}
.scribble{position:relative;white-space:nowrap}
.scribble-line{position:absolute;left:-2%;bottom:-.14em;width:104%;height:.36em;overflow:visible}
.scribble-line path{fill:none;stroke:var(--butter);stroke-width:5;stroke-linecap:round}
.motion .quote figure.reveal:not(.in){opacity:1;translate:none}
.motion .quote .w{transition:opacity .5s var(--ease),translate .8s var(--spring);transition-delay:calc(var(--i,0) * 75ms)}
.motion .quote figure:not(.in) .w{opacity:0;translate:0 .35em}
.motion .quote .scribble-line path{stroke-dasharray:1 1;transition:stroke-dashoffset 1s .75s var(--ease)}
.motion .quote figure:not(.in) .scribble-line path{stroke-dashoffset:1}

/* How it works: an icon per step (a ringing phone, a plan being checked, phases filling in). */
.step{position:relative}
.step-icon{position:absolute;top:26px;right:26px;width:58px;height:58px}
.step-icon :where(path,rect,circle){stroke-width:2.4}
.i-phase{fill:var(--butter);stroke:var(--butter);transform-origin:0 50%}
@media (prefers-reduced-motion:no-preference){
  .i-handset{animation:ring 2.6s ease-in-out infinite}
  .i-wave{animation:wave 2.6s ease-out infinite both}.i-wave:last-child{animation-delay:.15s}
  .i-tick{stroke-dasharray:1 1;animation:tick 4.5s ease-out infinite both}
  .i-tick:nth-of-type(3){animation-delay:.7s}.i-tick:nth-of-type(4){animation-delay:1.4s}
  .i-phase{animation:phase 4.5s var(--spring) infinite both}
  .i-phase:nth-of-type(6){animation-delay:.6s}.i-phase:nth-of-type(7){animation-delay:1.2s}
}
@keyframes ring{0%,40%,100%{rotate:0deg}5%{rotate:-12deg}10%{rotate:10deg}15%{rotate:-8deg}20%{rotate:6deg}25%{rotate:0deg}}
@keyframes wave{0%,5%{opacity:0}15%{opacity:1}45%,100%{opacity:0}}
@keyframes tick{0%,10%{stroke-dashoffset:1}25%,80%{stroke-dashoffset:0}92%,100%{stroke-dashoffset:1}}
@keyframes phase{0%,8%{scale:0 1;opacity:1}22%,80%{scale:1 1;opacity:1}92%,100%{scale:1 1;opacity:0}}

/* About: the sun turns, dust drifts in the sunbeam, and Turing gets hearts when petted. */
.sun-rays,.sun-core{transform-box:view-box;transform-origin:60px 60px}
.about-motes{position:absolute;left:0;top:0;width:100%;height:62%;pointer-events:none}
.mote{fill:var(--tomato);opacity:0}
.turing{position:relative;width:100%}
.hearts{position:absolute;left:26%;top:-26%;width:30%;overflow:visible;pointer-events:none}
.heart{fill:var(--tomato);opacity:0;transform-box:fill-box;transform-origin:center}
@media (prefers-reduced-motion:no-preference){
  .sun-rays{animation:spin 26s linear infinite}
  .sun-core{animation:glow 3.6s ease-in-out infinite}
  .mote{animation:mote 7s ease-in-out infinite}
  .mote:nth-child(2){animation-duration:9s;animation-delay:-2s}.mote:nth-child(3){animation-duration:6s;animation-delay:-4s}.mote:nth-child(4){animation-duration:8s;animation-delay:-1s}.mote:nth-child(5){animation-duration:10s;animation-delay:-6s}.mote:nth-child(6){animation-duration:7.5s;animation-delay:-3s}.mote:nth-child(7){animation-duration:8.5s;animation-delay:-5s}
  .turing img{transform-origin:50% 100%;animation:breathe 4s ease-in-out infinite}
  .about-photo:hover .heart,.about-photo.pet .heart{animation:heart 1.4s ease-out both}
  .about-photo:hover .heart:nth-child(2),.about-photo.pet .heart:nth-child(2){animation-delay:.18s}
  .about-photo:hover .heart:nth-child(3),.about-photo.pet .heart:nth-child(3){animation-delay:.34s}
}
@keyframes glow{50%{scale:1.08}}
@keyframes mote{0%{opacity:0;translate:0 0}20%{opacity:.5}80%{opacity:.3}100%{opacity:0;translate:12px -64px}}
@keyframes breathe{50%{scale:1 1.012}}
@keyframes heart{0%{opacity:0;translate:0 10px;scale:.4}20%{opacity:1;scale:1.1}100%{opacity:0;translate:0 -46px;scale:.9}}

/* A tape of what I build runs across the contact block. */
.contact{position:relative;display:flow-root}
.tape-wrap{position:relative;z-index:2;overflow:hidden;margin-top:-76px;padding:40px 0}
.tape{width:108%;margin-left:-4%;rotate:-2deg;background:var(--file-ink);color:var(--butter);border-block:3px solid var(--butter);box-shadow:0 14px 30px rgba(1,8,15,.35);overflow:hidden}
.tape-track{display:flex;align-items:center;width:max-content;padding:14px 0;font:900 clamp(26px,3vw,44px)/1 var(--display);text-transform:uppercase;letter-spacing:.02em;white-space:nowrap}
.tape-track>*{margin-right:28px}
.tape-star{width:.7em;height:.7em;flex-shrink:0;fill:var(--butter)}
@media (prefers-reduced-motion:no-preference){.tape-track{animation:tape 40s linear infinite}.tape-star{animation:spin 6s linear infinite}}
@keyframes tape{to{translate:-50% 0}}

/* Phones: the flat stack's connectors carry a little butter pulse, like the 3D packets. */
@media (prefers-reduced-motion:no-preference){
  .flat+.flat::before,.flat+.flat::after{background:linear-gradient(transparent,var(--butter),transparent) 0 -12px/100% 12px no-repeat,var(--ink-60);animation:flow 1.4s linear infinite}
  .flat-after-cal::before{background:var(--butter)}
  .flat-cal{animation:bob 3s ease-in-out infinite}
}
@keyframes flow{to{background-position:0 18px,0 0}}
@keyframes bob{50%{translate:0 -3px}}

/* Hero: the 3D stack leans toward the pointer (hero.js). */
.tilt{position:absolute;inset:0;transform-style:preserve-3d;transform-origin:50% 70%;transition:transform .9s var(--ease)}

/* Page to page: a project name glides from the Work list into its page headline. */
@media (prefers-reduced-motion:no-preference){@view-transition{navigation:auto}}
#cannonball .work-title,[data-project=cannonball] .project-head h1{view-transition-name:work-cannonball}
#swim .work-title,[data-project=swim-in-style] .project-head h1{view-transition-name:work-swim}
#mediabuy .work-title,[data-project=mediabuy] .project-head h1{view-transition-name:work-mediabuy}
#ask3d .work-title,[data-project=ask3d] .project-head h1{view-transition-name:work-ask3d}
#pelican .work-title,[data-project=pelican-pointe] .project-head h1{view-transition-name:work-pelican}
#invariant .work-title,[data-project=invariant] .project-head h1{view-transition-name:work-invariant}
::view-transition-group(*){animation-duration:.55s;animation-timing-function:cubic-bezier(.2,.8,.2,1)}

@media (max-width:900px){
  .motion .file.reveal:not(.in){rotate:-2deg}
  .motion .file.reveal:nth-child(even):not(.in){rotate:2deg}
  .problem-answer{grid-template-columns:minmax(0,1fr)}
  .problem-answer .vignette{grid-column:1;grid-row:auto;width:124px;margin-bottom:4px}
  .tape-wrap{margin-top:-66px}
}
@media (max-width:640px){
  .motion .file.reveal:not(.in),.motion .file.reveal:nth-child(even):not(.in){rotate:0deg}
  .step-icon{top:20px;right:18px;width:48px;height:48px}
  .tape-track{padding:10px 0}
}
@media print{
  .motion :is(.reveal,.reveal-lines,.line>span,.pop,.w,.stamp,.redact,.shot img){opacity:1!important;translate:none!important;scale:none!important;rotate:none!important}
  .progress,.tape-wrap,.work-peek{display:none}
}

/* ==================== Project pages: signatures, frames, sequences ====================
   Each project head gets its own animated illustration (scripts/partials/art/). At rest,
   with reduced motion, every illustration shows its finished state. */
.signature{display:block;width:100%;height:auto;overflow:visible}
.signature :where(path,rect,circle,ellipse){fill:none;stroke:var(--ink);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.signature :where(g,path,rect,circle,ellipse,text){transform-box:fill-box;transform-origin:center}
.signature :where(text){stroke:none;fill:var(--ink);font:900 16px/1 var(--display);text-transform:uppercase;letter-spacing:.04em}
.signature .sg-card{fill:rgba(0,0,0,.14);stroke:var(--ink-60)}
.motion :is(.project-art,.before-after,.tour):not(.in-view) *{animation-play-state:paused}

/* Cannonball: a technician drives the day's route; stops check off as they're visited. */
.sg-canal{fill:rgba(255,255,255,.07);stroke:none}
.sg-canal-line{stroke:rgba(255,255,255,.18);stroke-width:2}
.sg-streets{stroke:rgba(255,255,255,.08);stroke-width:12;stroke-linecap:butt}
.sg-plan{stroke:rgba(255,255,255,.4);stroke-width:2;stroke-dasharray:2 9}
.sg-route{stroke:var(--butter);stroke-width:5;stroke-dasharray:1 1}
.sg-stop rect{fill:rgba(255,255,255,.14)}
.sg-wave{stroke:rgba(255,255,255,.7);stroke-width:2}
.sg-check circle{fill:var(--butter);stroke:none}
.sg-check path{stroke:var(--tomato);stroke-width:2.4}
.sg-done path{stroke:var(--butter);stroke-width:3}
.sg-van{translate:422px 76px}
.sg-van-dot{fill:var(--butter);stroke-width:3}
.sg-van-ring{stroke:var(--butter);stroke-width:2;opacity:0}
@media (prefers-reduced-motion:no-preference){
  .sg-van{animation:sg-van 10s linear infinite}
  .sg-van-ring{animation:sg-ping 1.4s ease-out infinite}
  .sg-route{animation:sg-route 10s linear infinite}
  .sg-check.c1{animation:sg-c1 10s infinite}.sg-check.c2{animation:sg-c2 10s infinite}.sg-check.c3{animation:sg-c3 10s infinite}.sg-check.c4{animation:sg-c4 10s infinite}.sg-check.c5{animation:sg-c5 10s infinite}
  .sg-done{animation:sg-done 10s infinite}
  .sg-wave{animation:sg-bob 2.4s ease-in-out infinite}
}
@keyframes sg-ping{from{scale:.8;opacity:.9}to{scale:2.4;opacity:0}}
@keyframes sg-done{0%,75%{opacity:0;scale:.6}79%{opacity:1;scale:1.15}83%,92%{opacity:1;scale:1}97%,100%{opacity:0}}
@keyframes sg-bob{50%{translate:0 -2px}}
/* Cannonball route timing (generated by the art script: stops at 5.0%, 19.6%, 31.9%, 45.8%, 60.4%, 75.0%) */
@keyframes sg-van{0%{translate:62px 300px;opacity:0} 3%,5%{translate:62px 300px;opacity:1} 19.6%{translate:132px 206px} 31.9%{translate:222px 246px} 45.8%{translate:272px 146px} 60.4%{translate:382px 186px} 75%,92%{translate:422px 76px;opacity:1} 97%,100%{translate:422px 76px;opacity:0}}
@keyframes sg-route{0%,5%{stroke-dashoffset:1;opacity:1} 19.6%{stroke-dashoffset:0.791} 31.9%{stroke-dashoffset:0.616} 45.8%{stroke-dashoffset:0.417} 60.4%{stroke-dashoffset:0.208} 75%,92%{stroke-dashoffset:0;opacity:1} 97%{stroke-dashoffset:0;opacity:0} 100%{stroke-dashoffset:1;opacity:0}}
@keyframes sg-c1{0%,19.6%{opacity:0;scale:0}21.6%{opacity:1;scale:1.3}23.6%,92%{opacity:1;scale:1}97%,100%{opacity:0;scale:1}}
@keyframes sg-c2{0%,31.9%{opacity:0;scale:0}33.9%{opacity:1;scale:1.3}35.9%,92%{opacity:1;scale:1}97%,100%{opacity:0;scale:1}}
@keyframes sg-c3{0%,45.8%{opacity:0;scale:0}47.8%{opacity:1;scale:1.3}49.8%,92%{opacity:1;scale:1}97%,100%{opacity:0;scale:1}}
@keyframes sg-c4{0%,60.4%{opacity:0;scale:0}62.4%{opacity:1;scale:1.3}64.4%,92%{opacity:1;scale:1}97%,100%{opacity:0;scale:1}}
@keyframes sg-c5{0%,75.0%{opacity:0;scale:0}77.0%{opacity:1;scale:1.3}79.0%,92%{opacity:1;scale:1}97%,100%{opacity:0;scale:1}}

/* Swim in Style: a pool with personality (and a bilingual switch, like the site). */
.sw-deck{fill:rgba(255,255,255,.06);stroke:none}
.sw-coping{stroke-width:3}
.sw-water{fill:rgba(255,255,255,.1);stroke:none}
.sw-ripple{stroke:rgba(255,255,255,.45)}
.sw-float-shade{fill:rgba(1,8,15,.18);stroke:none}
.sw-ring{stroke:var(--butter);stroke-width:14}
.sw-ring-stripes{stroke:var(--tomato);stroke-width:14;stroke-dasharray:8 17;stroke-linecap:butt}
.sw-spark{fill:var(--ink);stroke:none}
.sw-ladder{stroke-width:3}
.sw-lens{fill:var(--file-ink)}
.sw-bridge,.sw-temple{stroke-width:3}
.sw-glint{stroke:rgba(255,255,255,.85);stroke-width:3;opacity:0}
.sw-sun circle{fill:var(--butter);stroke:none}
.sw-rays path{stroke:var(--butter);stroke-width:3}
.sw-rays{transform-box:view-box;transform-origin:430px 38px}
.sw-lang-pill{fill:var(--butter);stroke:none}
.sw-knob{fill:var(--ink);stroke:none}
.sw-lang text{fill:var(--tomato);text-anchor:middle;font-size:17px}
.sw-es{opacity:.55}
@media (prefers-reduced-motion:no-preference){
  .sw-ripple{animation:sw-ripple 2.6s linear infinite}
  .sw-ripple.w2,.sw-ripple.w4{animation-direction:reverse;animation-duration:3.4s}
  .sw-float{animation:sw-float 7s ease-in-out infinite}
  .sw-spark{animation:sw-twinkle 2.2s ease-in-out infinite both}.sw-spark.s2{animation-delay:.7s}.sw-spark.s3{animation-delay:1.4s}
  .sw-glint{animation:sw-glint 4s ease-in-out infinite}.sw-glint.g2{animation-delay:.15s}
  .sw-rays{animation:spin 20s linear infinite}
  .sw-knob{animation:sw-knob 5s var(--spring) infinite}
  .sw-en{animation:sw-en 5s infinite}.sw-es{animation:sw-es 5s infinite}
}
@keyframes sw-ripple{to{translate:-40px 0}}
@keyframes sw-float{0%,100%{translate:0 0;rotate:0deg}25%{translate:14px -5px;rotate:6deg}50%{translate:28px 0;rotate:0deg}75%{translate:14px 5px;rotate:-6deg}}
@keyframes sw-twinkle{0%,100%{opacity:0;scale:.4}50%{opacity:1;scale:1}}
@keyframes sw-glint{0%,60%{opacity:0;translate:-8px 8px}70%{opacity:1}80%,100%{opacity:0;translate:14px -14px}}
@keyframes sw-knob{0%,40%{translate:0 0}50%,90%{translate:48px 0}100%{translate:0 0}}
@keyframes sw-en{0%,40%{opacity:1}50%,90%{opacity:.55}100%{opacity:1}}
@keyframes sw-es{0%,40%{opacity:.55}50%,90%{opacity:1}100%{opacity:.55}}

/* Pelican Pointe: the blueprint 911 comes apart and goes back together, then a gloss runs along the roof. */
.pl-grid{stroke:rgba(255,255,255,.07);stroke-width:1;stroke-linecap:butt}
.pl-ground{stroke:rgba(255,255,255,.35);stroke-width:1.5;stroke-dasharray:1 7}
.pl-dim{stroke:rgba(255,255,255,.4);stroke-width:1.5}
.pl-body path{stroke-width:2.2}
.pl-body .pl-fine{stroke:rgba(255,255,255,.45);stroke-width:1.2}
.pl-glass path{fill:rgba(255,255,255,.06);stroke-width:1.8}
.pl-lamp ellipse,.pl-wing path{stroke-width:1.8}
.pl-tire{stroke-width:2.2}
.pl-rim{stroke:rgba(255,255,255,.7);stroke-width:1.5}
.pl-spokes{stroke:rgba(255,255,255,.6);stroke-width:1.3}
.pl-caliper{stroke:var(--butter);stroke-width:3.5;stroke-dasharray:14 100}
.pl-gloss{stroke:var(--butter);stroke-width:3;stroke-dasharray:.14 .86;stroke-dashoffset:1;opacity:0}
@media (prefers-reduced-motion:no-preference){
  .pl-glass{animation:pl-glass 9s var(--ease) infinite}
  .pl-wing{animation:pl-wing 9s var(--ease) infinite}
  .pl-lamp{animation:pl-lamp 9s var(--ease) infinite}
  .pl-wheel{animation:pl-wheel 9s var(--ease) infinite}
  .pl-gloss{animation:pl-gloss 9s linear infinite}
}
@keyframes pl-glass{0%,10%,76%,100%{translate:0 0}26%,60%{translate:0 -30px}}
@keyframes pl-wing{0%,12%,76%,100%{translate:0 0}28%,60%{translate:8px -34px}}
@keyframes pl-lamp{0%,12%,76%,100%{translate:0 0}28%,60%{translate:-18px -14px}}
@keyframes pl-wheel{0%,14%,76%,100%{translate:0 0}30%,60%{translate:0 22px}}
@keyframes pl-gloss{0%,80%{stroke-dashoffset:1;opacity:0}82%{opacity:1}95%{stroke-dashoffset:-.14;opacity:1}100%{stroke-dashoffset:-.14;opacity:0}}

/* MediaBuy OS: the numbers, the decision, the record of what changed. */
.mb-rule{stroke:var(--ink-60)}
.mb-light{fill:var(--ink-60);stroke:none}
.mb-base{stroke:rgba(255,255,255,.35)}
.mb-bar{fill:var(--ink);stroke:none;transform-origin:50% 100%}
.mb-bar.b4{fill:var(--butter)}
.mb-spark{stroke:var(--butter);stroke-width:3;stroke-dasharray:1 1}
.mb-panel{fill:rgba(0,0,0,.1);stroke:var(--ink-60)}
.mb-title{stroke:var(--butter);stroke-width:3}
.mb-text{stroke:rgba(255,255,255,.6)}
.mb-switch{fill:rgba(255,111,89,.25);stroke:var(--butter)}
.mb-knob{fill:var(--butter);stroke:none;translate:26px 0}
.mb-approve{fill:var(--butter);stroke:none}
.mb-ok circle{fill:var(--ink);stroke:none}
.mb-ok path{stroke:var(--tomato);stroke-width:2.6}
.mb-row circle{fill:rgba(255,255,255,.6);stroke:none}
.mb-row path{stroke:rgba(255,255,255,.6)}
.mb-new circle{fill:var(--butter)}.mb-new path{stroke:var(--butter)}
.mb-cursor{fill:var(--ink);stroke:var(--tomato);stroke-width:1.2;opacity:0}
.mb-track{stroke:rgba(255,255,255,.35);stroke-dasharray:3 8}
.mb-node{fill:var(--butter);stroke:var(--butter)}
.mb-label{text-anchor:middle;font-size:17px}
.mb-dot{fill:var(--butter);stroke-width:2.5;translate:398px 292px}
@media (prefers-reduced-motion:no-preference){
  .mb-bar{animation:mb-bar 10s var(--ease) infinite both}.mb-bar.b1{animation-delay:.08s}.mb-bar.b2{animation-delay:.16s}.mb-bar.b3{animation-delay:.24s}.mb-bar.b4{animation-delay:.32s}
  .mb-spark{animation:mb-spark 10s ease-out infinite}
  .mb-knob{animation:mb-knob 10s var(--spring) infinite}
  .mb-cursor{animation:mb-cursor 10s var(--ease) infinite}
  .mb-approve{animation:mb-approve 10s ease-out infinite}
  .mb-ok{animation:mb-ok 10s var(--spring) infinite}
  .mb-rows{animation:mb-rows 10s var(--ease) infinite}
  .mb-new{animation:mb-new 10s var(--ease) infinite}
  .mb-dot{animation:mb-dot 10s var(--ease) infinite}
  .mb-node.n1{animation:mb-n1 10s infinite}.mb-node.n2{animation:mb-n2 10s infinite}.mb-node.n3{animation:mb-n3 10s infinite}
}
@keyframes mb-bar{0%,4%{scale:1 0}16%,92%{scale:1 1}98%,100%{scale:1 0}}
@keyframes mb-spark{0%,12%{stroke-dashoffset:1}24%,92%{stroke-dashoffset:0}98%,100%{stroke-dashoffset:1}}
@keyframes mb-knob{0%,30%{translate:0 0}36%,92%{translate:26px 0}98%,100%{translate:0 0}}
@keyframes mb-cursor{0%,34%{opacity:0;translate:340px 262px}38%{opacity:1;translate:330px 252px}44%{translate:262px 202px;scale:1}46%{scale:.8}48%{scale:1;opacity:1}54%,100%{opacity:0;translate:262px 202px}}
@keyframes mb-approve{0%,45%{opacity:1}47%{opacity:.5}50%,100%{opacity:1}}
@keyframes mb-ok{0%,47%{opacity:0;scale:.2}52%{opacity:1;scale:1.25}56%,92%{opacity:1;scale:1}98%,100%{opacity:0;scale:1}}
@keyframes mb-rows{0%,58%{translate:0 -28px}66%,92%{translate:0 0}98%,100%{translate:0 -28px}}
@keyframes mb-new{0%,60%{opacity:0;translate:0 -14px}68%,92%{opacity:1;translate:0 0}98%,100%{opacity:0;translate:0 -14px}}
@keyframes mb-dot{0%,6%{translate:106px 292px;opacity:0}10%,22%{translate:106px 292px;opacity:1}48%,52%{translate:262px 292px}70%,92%{translate:398px 292px;opacity:1}98%,100%{translate:398px 292px;opacity:0}}
@keyframes mb-n1{0%,20%{fill:transparent}24%,92%{fill:var(--butter)}98%,100%{fill:transparent}}
@keyframes mb-n2{0%,48%{fill:transparent}52%,92%{fill:var(--butter)}98%,100%{fill:transparent}}
@keyframes mb-n3{0%,68%{fill:transparent}72%,92%{fill:var(--butter)}98%,100%{fill:transparent}}

/* Ask3D: a request, some code, and an object that draws itself, fills in, and floats. */
.k-bubble path{fill:rgba(0,0,0,.12)}
.k-dot{fill:var(--ink);stroke:none;opacity:0}
.signature .k-say{font:700 19px/1 var(--body);text-transform:none;letter-spacing:0}
.k-link{stroke:rgba(255,255,255,.45);stroke-dasharray:3 8}
.k-code rect:first-child{fill:var(--file-ink);stroke:var(--ink-60)}
.k-ln{stroke:none;transform-origin:0 50%}
.k-ln.l1,.k-ln.l4{fill:var(--butter)}.k-ln.l2,.k-ln.l5{fill:rgba(255,255,255,.75)}.k-ln.l3{fill:#FFB3C7}
.k-shadow{fill:rgba(1,8,15,.22);stroke:none}
.h-face{stroke:none}.h-top{fill:#FF9685}.h-front{fill:var(--butter)}.h-side{fill:#DE493B}
.signature .h-line{stroke-width:2}
.h-slot{fill:#A33E35;stroke-width:1.5}
.k-travel{fill:var(--butter);stroke-width:2;opacity:0}
@media (prefers-reduced-motion:no-preference){
  .k-dot{animation:k-dotvis 9s infinite,k-bounce .9s ease-in-out infinite}
  .k-dot:nth-of-type(2){animation-delay:0s,.15s}.k-dot:nth-of-type(3){animation-delay:0s,.3s}
  .k-say{animation:k-say 9s var(--ease) infinite}.k-say.k2{animation-name:k-say2}
  .k-ln{animation:k-ln 9s var(--ease) infinite both}.k-ln.l2{animation-delay:.2s}.k-ln.l3{animation-delay:.4s}.k-ln.l4{animation-delay:.6s}.k-ln.l5{animation-delay:.8s}
  .k-holder .h-line{stroke-dasharray:1 1;animation:k-draw 9s ease-out infinite}
  .k-holder .h-face,.k-holder .h-slot{animation:k-fill 9s ease-out infinite}
  .k-object{animation:k-float 9s ease-in-out infinite}
  .k-travel{animation:k-travel 9s var(--ease) infinite}
}
@keyframes k-dotvis{0%,2%{opacity:0}4%,13%{opacity:1}15%,100%{opacity:0}}
@keyframes k-bounce{50%{translate:0 -4px}}
@keyframes k-say{0%,14%{opacity:0;translate:-8px 0}19%,90%{opacity:1;translate:0 0}96%,100%{opacity:0}}
@keyframes k-say2{0%,20%{opacity:0;translate:-8px 0}25%,90%{opacity:1;translate:0 0}96%,100%{opacity:0}}
@keyframes k-ln{0%,33%{scale:0 1}39%,90%{scale:1 1}96%,100%{scale:0 1}}
@keyframes k-draw{0%,50%{stroke-dashoffset:1}62%,100%{stroke-dashoffset:0}}
@keyframes k-fill{0%,62%{opacity:0}70%,80%{opacity:1}83%{opacity:.1}86%,92%{opacity:1}97%,100%{opacity:0}}
@keyframes k-float{0%,48%{translate:0 10px;opacity:0}56%{opacity:1;translate:0 0}74%{translate:0 -6px}86%{translate:0 0}94%{opacity:1}100%{opacity:0;translate:0 0}}
@keyframes k-travel{0%,24%{opacity:0;translate:182px 110px}26%{opacity:1}32%{translate:224px 150px;opacity:1}34%{opacity:0}42%{opacity:0;translate:318px 208px}44%{opacity:1}50%{translate:338px 208px;opacity:1}52%,100%{opacity:0;translate:338px 208px}}

/* Screenshots sit in a browser or a phone; on desktop they lean toward the pointer. */
.browser{position:relative;display:block;padding-top:28px;border-radius:14px;overflow:hidden;background:radial-gradient(circle at 18px 14px,#FF6B5F 4.5px,transparent 5px),radial-gradient(circle at 36px 14px,#FFC94D 4.5px,transparent 5px),radial-gradient(circle at 54px 14px,#62C46A 4.5px,transparent 5px),#F6EEE6;box-shadow:0 18px 40px rgba(1,8,15,.28)}
.browser img,.project-hero .browser img{border-radius:0;box-shadow:none}
.tour-frame{position:relative}
.tour-frame video{display:block;width:100%;height:auto;background:var(--file-ink)}
/* Each film's shape, by its size in pixels: tourCut names the rule, and the build stops on a size with none. */
.tour-frame .film-1440x900{aspect-ratio:1440/900}
.tour-frame .film-780x1688{aspect-ratio:780/1688}
.tour-frame .film-720x1600{aspect-ratio:720/1600}
.phone.tour-frame{width:min(100%,320px);margin-inline:auto}
.phone.tour-frame video{border-radius:30px}
/* A tour figure is also a .tour, the class of Ask3D's spotlight, whose display:flex comes later in
   this file, so the cut for the other screen size is hidden with .tour.tour-narrow, which outranks it. */
.tour.tour-narrow{display:none}
@media (max-width:599px){.tour.tour-wide:has(+ .tour-narrow){display:none}.tour.tour-narrow{display:flex}}
.tour-parts{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 0;padding:0;list-style:none}
.phone.tour-frame+.tour-parts{justify-content:center}
.tour figcaption{margin-top:10px;font-size:14px;color:var(--ink-88)}
.phone.tour-frame~figcaption{text-align:center}
.tour-parts button{display:inline-flex;align-items:baseline;gap:8px;min-height:40px;padding:12px 14px;border:1.5px solid rgba(255,255,255,.28);border-radius:999px;font-size:14px;font-weight:600;line-height:1;color:var(--ink-88);transition:border-color .2s,background-color .2s,color .2s}
.tour-parts button span{font:13px/1 var(--mono);color:var(--ink-60)}
.tour-parts button:hover{border-color:var(--ink)}
.tour-parts button[aria-current=true]{border-color:var(--butter);background:var(--butter);color:var(--file-ink)}
.tour-parts button[aria-current=true] span{color:inherit}
.phone,.shots-phone .phone{padding:9px;border-radius:38px;background:var(--file-ink);box-shadow:0 18px 40px rgba(1,8,15,.35),inset 0 0 0 2px rgba(255,255,255,.14)}
.phone img,.shots-phone .shot .phone img{border-radius:30px;box-shadow:none}
.phone::before{content:"";position:absolute;z-index:1;top:17px;left:50%;width:30%;height:18px;translate:-50% 0;border-radius:999px;background:var(--file-ink)}
.browser,.phone{transform:perspective(1100px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transition:transform .6s var(--ease)}
.browser::before{content:"";position:absolute;inset:0;z-index:2;background:radial-gradient(circle at var(--gx,50%) var(--gy,0%),rgba(255,255,255,.3),transparent 45%);opacity:0;transition:opacity .3s;pointer-events:none}
.browser.tilting::before{opacity:1}
.browser.tilting,.phone.tilting{transition:transform .15s linear}
.shots{gap:36px}
.shots-phone{gap:32px 24px}
.shot figcaption{margin-top:12px;font-size:15px;line-height:1.5;color:var(--ink-88)}

/* Step-through screenshots: one screen changing, a step at a time, with the steps beside
   it. Frames are shown for up to 12 steps; build-pages.mjs refuses a longer sequence. The radios choose the frame (sequence.js adds autoplay and swipe); without :has()
   the first frame still shows. */
.sequence{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,300px);align-items:center;gap:24px 44px}
.seq-stage{display:grid;touch-action:pan-y pinch-zoom}
.seq-frame{grid-area:1/1;border-radius:0;opacity:0;visibility:hidden;transition:opacity .5s var(--ease),visibility 0s .5s}
.seq-frame:focus-visible{outline-offset:-5px}
.seq-frame:first-child,
.sequence:has(label:nth-of-type(2) :checked) .seq-frame:nth-child(2),
.sequence:has(label:nth-of-type(3) :checked) .seq-frame:nth-child(3),
.sequence:has(label:nth-of-type(4) :checked) .seq-frame:nth-child(4),
.sequence:has(label:nth-of-type(5) :checked) .seq-frame:nth-child(5),
.sequence:has(label:nth-of-type(6) :checked) .seq-frame:nth-child(6),
.sequence:has(label:nth-of-type(7) :checked) .seq-frame:nth-child(7),
.sequence:has(label:nth-of-type(8) :checked) .seq-frame:nth-child(8),
.sequence:has(label:nth-of-type(9) :checked) .seq-frame:nth-child(9),
.sequence:has(label:nth-of-type(10) :checked) .seq-frame:nth-child(10),
.sequence:has(label:nth-of-type(11) :checked) .seq-frame:nth-child(11),
.sequence:has(label:nth-of-type(12) :checked) .seq-frame:nth-child(12){opacity:1;visibility:visible;transition-delay:0s}
.sequence:has(label:not(:first-of-type) :checked) .seq-frame:first-child{opacity:0;visibility:hidden;transition-delay:0s,.5s}
.seq-steps{display:flex;flex-direction:column;gap:4px;min-inline-size:0;margin:0;padding:0;border:0}
.seq-steps label{position:relative;display:flex;flex-direction:column;gap:4px;padding:10px 0 10px 24px;color:var(--ink-60);cursor:pointer;transition:color .25s}
.seq-steps label::before,.seq-steps label::after{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:3px;background:rgba(255,255,255,.28)}
.seq-steps label::after{background:var(--butter);transform-origin:50% 0;scale:1 0;transition:scale .35s var(--ease)}
.seq-steps strong{font-size:20px;font-weight:700;line-height:1.2}
.seq-steps span{font-size:15px;line-height:1.45}
.seq-steps label:hover,.seq-steps label:has(~ label :checked){color:var(--ink-88)}
.seq-steps label:has(:checked){color:var(--ink)}
.seq-steps label:has(:checked) strong{color:var(--butter)}
.seq-steps label:has(:checked)::after,.seq-steps label:has(~ label :checked)::after{scale:1 1}
.seq-steps label:has(:focus-visible){outline:3px solid var(--butter);outline-offset:2px;border-radius:6px}
.sequence.playing .seq-steps label:has(:checked)::after{animation:seq-fill 5s linear both}
@keyframes seq-fill{from{scale:1 0}}
.seq-toggle{position:absolute;z-index:4;top:0;right:4px;width:40px;height:28px;display:grid;place-items:center;border-radius:8px;color:var(--file-ink)}
.seq-toggle svg{width:12px;height:12px;fill:currentColor}
.seq-toggle:hover{color:var(--tomato)}
.seq-toggle:focus-visible{outline:3px solid var(--tomato);outline-offset:-3px}
@media (max-width:900px){
  .sequence{grid-template-columns:minmax(0,1fr)}
  .seq-steps strong{font-size:18px}
}

/* A phone sequence keeps the phone at phone size, with the steps beside it; its pause
   button sits under the steps. */
.seq-phone{grid-template-columns:min(300px,100%) minmax(0,1fr)}
.seq-stage.phone{width:100%;max-width:300px}
.seq-steps .seq-toggle{position:static;width:auto;height:auto;display:inline-flex;align-items:center;gap:8px;align-self:flex-start;margin:10px 0 0 24px;padding:6px 14px;border:2px solid var(--ink-60);border-radius:999px;color:var(--ink);font-size:14px;font-weight:700}
.seq-steps .seq-toggle:hover{border-color:var(--butter);color:var(--butter)}
.seq-steps .seq-toggle:focus-visible{outline:3px solid var(--butter);outline-offset:3px}
/* Stacked: the screenshot takes the full column and the steps run beneath it. */
.seq-stack{grid-template-columns:minmax(0,1fr);gap:22px}
@media (min-width:641px){
  .seq-stack .seq-steps{flex-direction:row;gap:16px}
  .seq-stack .seq-steps label{flex:1 1 0;min-width:0;padding:16px 0 0}
  .seq-stack .seq-steps label::before,.seq-stack .seq-steps label::after{top:0;bottom:auto;left:0;right:0;width:auto;height:3px}
  .seq-stack .seq-steps label::after{transform-origin:0 50%;scale:0 1}
  .seq-stack .seq-steps label:has(:checked)::after,.seq-stack .seq-steps label:has(~ label :checked)::after{scale:1 1}
  .seq-stack.playing .seq-steps label:has(:checked)::after{animation-name:seq-fill-x}
  .seq-stack .seq-steps strong{font-size:18px}
}
@keyframes seq-fill-x{from{scale:0 1}}
@media (max-width:640px){.seq-phone{grid-template-columns:minmax(0,1fr)}}

/* Rows of three phones, each with its caption. */
@media (min-width:641px){.shots-3 .shot{width:calc((100% - 48px) / 3)}}

/* The same screen on desktop and on a phone, the phone standing in front. */
.duo-stage{position:relative;padding:0 8% 9% 0}
.duo-phone{position:absolute;right:0;bottom:0;width:21%;padding:5px;border-radius:22px}
.duo-phone img{border-radius:18px}
.duo-phone::before{top:10px;height:9px}
.duo figcaption{margin-top:14px;font-size:15px;line-height:1.5;color:var(--ink-88)}

/* A wide chapter runs its media across both columns, under the heading and text; the
   heading stops being sticky so it never sits over the media. */
@media (min-width:901px){
  .chapter-wide .chapter-media{grid-column:1 / -1;grid-row:3}
  .chapter-wide h2{position:static}
}

/* In chapters, sequences and the pair rise in with the rest of the chapter. */
.motion .chapter :is(.sequence,.duo-desktop,.duo-phone){transition:opacity .8s var(--ease) .15s,translate 1s var(--ease) .15s}
.motion .chapter .duo-phone{transition-delay:.45s}
.motion .chapter:not(.in) :is(.sequence,.duo-desktop){opacity:0;translate:0 40px}
.motion .chapter:not(.in) .duo-phone{opacity:0;translate:0 70px}

/* Ask3D: the pipeline's three stages spotlit on the real screen, in step with the cards. */
.tour{display:flex;flex-direction:column;gap:32px}
.tour-layer{position:absolute;z-index:1;inset:28px 0 0;overflow:hidden;pointer-events:none;transition:opacity .6s .9s}
.motion .chapter:not(.in) .tour-layer{opacity:0}
.tour-spot{position:absolute;left:.6%;top:4.6%;width:38.8%;height:31.2%;border:2px solid var(--butter);border-radius:10px;box-shadow:0 0 22px rgba(255,111,89,.4),0 0 0 100vmax rgba(1,8,15,.62);opacity:0}
.tour-layer b{position:absolute;padding:5px 12px;border-radius:999px;background:var(--butter);color:var(--tomato);font-size:13px;font-weight:700;line-height:1.3;white-space:nowrap;opacity:0}
.tour-layer b:nth-of-type(1){left:42%;top:14%}
.tour-layer b:nth-of-type(2){left:42%;top:60%}
.tour-layer b:nth-of-type(3){right:62%;top:46%}
@media (prefers-reduced-motion:no-preference){
  .tour-spot{animation:tour-spot 6s infinite}
  .tour-layer b:nth-of-type(1){animation:tour-b1 6s infinite}
  .tour-layer b:nth-of-type(2){animation:tour-b2 6s infinite}
  .tour-layer b:nth-of-type(3){animation:tour-b3 6s infinite}
}
/* Same 6s clock as pipe-1..3: Describe lights at 8%, Compile at 38%, Inspect at 66%. */
@keyframes tour-spot{
  0%,4%{left:.6%;top:4.6%;width:38.8%;height:31.2%;opacity:0}
  8%,32%{left:.6%;top:4.6%;width:38.8%;height:31.2%;opacity:1}
  38%,60%{left:1.1%;top:37.8%;width:37.7%;height:50.8%;opacity:1}
  66%,86%{left:40.6%;top:5.4%;width:59%;height:93.6%;opacity:1}
  94%,100%{left:40.6%;top:5.4%;width:59%;height:93.6%;opacity:0}
}
@keyframes tour-b1{0%,6%{opacity:0;translate:-8px 0}11%,32%{opacity:1;translate:0 0}36%,100%{opacity:0}}
@keyframes tour-b2{0%,38%{opacity:0;translate:-8px 0}43%,60%{opacity:1;translate:0 0}64%,100%{opacity:0}}
@keyframes tour-b3{0%,66%{opacity:0;translate:8px 0}71%,86%{opacity:1;translate:0 0}91%,100%{opacity:0}}

/* Swim in Style: before and after, like the site's photos. */
.before-after{position:relative;max-width:560px;border-radius:34px;overflow:hidden}
.before-after svg{display:block;width:100%;height:auto}
.ba-before{position:absolute;inset:0;clip-path:inset(0 45% 0 0)}
.ba-coping{fill:var(--tomato);stroke:var(--ink);stroke-width:3}
.ba-after .ba-water{fill:rgba(255,255,255,.14)}
.ba-before .ba-water{fill:#56622C}
.ba-ripple{fill:none;stroke:rgba(255,255,255,.5);stroke-width:2.5;stroke-linecap:round}
.ba-spark{fill:var(--ink)}
.ba-muck{fill:#3F4A1E;opacity:.85}
.ba-leaf{fill:#8A9A45}
.ba-handle{position:absolute;top:0;bottom:0;left:55%;width:3px;margin-left:-1.5px;background:var(--ink)}
.ba-handle::after{content:"";position:absolute;top:50%;left:50%;width:30px;height:30px;margin:-15px;border-radius:50%;background:var(--ink);box-shadow:0 0 0 5px rgba(255,255,255,.3),0 4px 12px rgba(1,8,15,.3)}
.ba-tag{position:absolute;top:16px;padding:4px 10px;border-radius:999px;background:var(--file-ink);color:var(--butter);font:700 12px/1.3 var(--mono);letter-spacing:.06em;text-transform:uppercase}
.ba-tag-before{left:18px}.ba-tag-after{right:18px}
@media (prefers-reduced-motion:no-preference){
  .ba-before{animation:ba-clip 6s ease-in-out infinite}
  .ba-handle{animation:ba-handle 6s ease-in-out infinite}
  .ba-ripple{animation:sw-ripple 2.6s linear infinite}
}
@keyframes ba-clip{0%,100%{clip-path:inset(0 72% 0 0)}50%{clip-path:inset(0 22% 0 0)}}
@keyframes ba-handle{0%,100%{left:28%}50%{left:78%}}

/* Ask3D pipeline: an icon per stage, lighting up in order. */
.pipe-icon{width:40px;height:40px;margin-bottom:4px}
.pipe-icon path{fill:none;stroke:var(--butter);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
@media (prefers-reduced-motion:no-preference){
  .pipeline li:nth-child(1){animation:pipe-1 6s infinite}.pipeline li:nth-child(2){animation:pipe-2 6s infinite}.pipeline li:nth-child(3){animation:pipe-3 6s infinite}
}
@keyframes pipe-1{0%,4%{border-color:var(--ink)}8%,86%{border-color:var(--butter);background:rgba(255,111,89,.08)}94%,100%{border-color:var(--ink)}}
@keyframes pipe-2{0%,34%{border-color:var(--ink)}38%,86%{border-color:var(--butter);background:rgba(255,111,89,.08)}94%,100%{border-color:var(--ink)}}
@keyframes pipe-3{0%,62%{border-color:var(--ink)}66%,86%{border-color:var(--butter);background:rgba(255,111,89,.08)}94%,100%{border-color:var(--ink)}}

/* ==================== Invariant (scripts/invariant.mjs, public/invariant.js) ====================
   The signature: a state orbits while the invariant holds still, TLC fills in the states within
   the bounds, and a planted bug's trace is caught. */
.ivs-bounds{stroke:rgba(255,255,255,.4);stroke-width:1.5;stroke-dasharray:2 7}
.ivs-s,.ivs-state,.ivs-trail{fill:var(--ink);stroke:none}
.ivs-e{stroke:rgba(255,255,255,.38);stroke-width:1.5}
.ivs-t1{opacity:.5}.ivs-t2{opacity:.3}.ivs-t3{opacity:.15}
.ivs-tn{fill:var(--butter);stroke:none}
.ivs-trace{stroke:var(--butter);stroke-width:2.5}
.ivs-x{stroke:var(--ink);stroke-width:4}
.ivs-arc{stroke-width:5}
.ivs-core{fill:var(--butter);stroke:none}
.ivs-pulse{stroke:var(--butter);stroke-width:2;vector-effect:non-scaling-stroke;opacity:0}
.signature .ivs-orbit{transform-box:view-box;transform-origin:240px 180px}
.signature .ivs-label{font-size:15px;letter-spacing:.08em;fill:rgba(255,255,255,.75)}
@media (prefers-reduced-motion:no-preference){
  .ivs-orbit{animation:ivs-orbit 12s linear infinite}
  .ivs-pulse{animation:ivs-pulse 3s ease-out infinite}
  .ivs-l1{animation:ivs-l1 12s infinite}.ivs-l2{animation:ivs-l2 12s infinite}.ivs-l3{animation:ivs-l3 12s infinite}.ivs-l4{animation:ivs-l4 12s infinite}
  .ivs-trace{animation:ivs-trace 12s var(--ease) infinite}
  .ivs-tn{animation:ivs-tn 12s infinite}
  .ivs-x{animation:ivs-x 12s infinite}
}
@keyframes ivs-orbit{to{rotate:360deg}}
@keyframes ivs-pulse{0%{opacity:.55;scale:1}100%{opacity:0;scale:2.4}}
@keyframes ivs-l1{0%,2%{opacity:0}8%,86%{opacity:1}94%,100%{opacity:0}}
@keyframes ivs-l2{0%,8%{opacity:0}14%,86%{opacity:1}94%,100%{opacity:0}}
@keyframes ivs-l3{0%,14%{opacity:0}20%,86%{opacity:1}94%,100%{opacity:0}}
@keyframes ivs-l4{0%,20%{opacity:0}26%,86%{opacity:1}94%,100%{opacity:0}}
@keyframes ivs-trace{0%,32%{stroke-dasharray:0 1;opacity:1}46%,86%{stroke-dasharray:1 0;opacity:1}94%,100%{stroke-dasharray:1 0;opacity:0}}
@keyframes ivs-tn{0%,32%{opacity:0}40%,86%{opacity:1}94%,100%{opacity:0}}
@keyframes ivs-x{0%,46%{opacity:0;scale:.2}52%{opacity:1;scale:1.3}58%,86%{opacity:1;scale:1}94%,100%{opacity:0;scale:1}}

/* The pieces are screens in Invariant's own palette: mint for the invariant and for passing
   checks, butter for a person's decisions, red for a violation. */
.iv-screen{--iv-bg:#0E1116;--iv-raise:#161B22;--iv-deep:#0A0D12;--iv-text:#E6EDF3;--iv-dim:rgba(230,237,243,.68);--iv-line:rgba(230,237,243,.14);--iv-mint:#38D9A9;--iv-red:#FF7B72;--iv-butter:#FFE7A3;--iv-code:ui-monospace,SFMono-Regular,Menlo,Consolas,'Liberation Mono',monospace;position:relative;border-radius:16px;background:var(--iv-bg);color:var(--iv-text);box-shadow:0 18px 40px rgba(1,8,15,.35);overflow:hidden;font-size:16px;line-height:1.5}
.iv-screen :focus-visible{outline-color:var(--iv-mint)}
.iv-screen code,.iv-code{font-family:var(--iv-code);font-size:.88em}
.iv-screen button{min-height:36px}
.iv-titlebar{display:flex;align-items:center;gap:12px;min-height:50px;padding:8px 18px;background:var(--iv-raise);border-bottom:1px solid var(--iv-line)}
.iv-titlebar h2,.iv-titlebar p{flex:1;min-width:0;font-size:15px;font-weight:700;line-height:1.3}
.iv-mark{color:var(--iv-mint);font-size:18px;line-height:1}
.iv-note{color:var(--iv-dim);font-size:14px}
.iv-ok{color:var(--iv-mint);font-weight:700}
.iv-code{display:block;margin:0;padding:12px 14px;border-radius:10px;background:var(--iv-deep);border:1px solid var(--iv-line);overflow-x:auto;white-space:pre;font-size:13px;line-height:1.55;tab-size:4}

/* The factory's first issue. The bar shows who was acting, second by second. */
.iv-run>:not(.iv-titlebar){margin-inline:24px}
.iv-intro{margin-top:16px;color:var(--iv-dim);font-size:15px}
.iv-track{margin-top:18px}
.iv-bar{display:block;width:100%;height:14px;border-radius:7px}
.iv-seg.iv-factory{fill:var(--iv-mint)}
.iv-seg.iv-person{fill:var(--iv-butter)}
.iv-seg.iv-ci{fill:rgba(230,237,243,.34)}
.iv-tick{stroke:var(--iv-bg);stroke-width:2;vector-effect:non-scaling-stroke}
.iv-head{stroke:#fff;stroke-width:3;vector-effect:non-scaling-stroke;opacity:0}
.replaying .iv-head{opacity:1}
.iv-ends{display:flex;justify-content:space-between;margin-top:6px;font:12px/1.2 var(--iv-code);color:var(--iv-dim)}
.iv-legend{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:14px;padding:0;list-style:none;font-size:13px;color:var(--iv-dim)}
.iv-legend li{display:flex;align-items:center;gap:7px}
.iv-swatch{width:14px;height:8px;border-radius:4px}
.iv-legend .iv-factory .iv-swatch{background:var(--iv-mint)}
.iv-legend .iv-person .iv-swatch{background:var(--iv-butter)}
.iv-legend .iv-ci .iv-swatch{background:rgba(230,237,243,.34)}
.iv-dur{font-family:var(--iv-code);color:var(--iv-text)}
.iv-run-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:28px;align-items:start;margin-top:20px;margin-bottom:24px}
.iv-events{position:relative;margin:0;padding:0;list-style:none}
.iv-events::before{content:"";position:absolute;left:11px;top:20px;bottom:20px;width:2px;background:var(--iv-line)}
.iv-event{position:relative;transition:opacity .35s}
.iv-event summary{display:grid;grid-template-columns:24px auto minmax(0,1fr);align-items:start;gap:4px 14px;padding:10px 8px 10px 0;border-radius:10px;cursor:pointer;list-style:none}
.iv-event summary::-webkit-details-marker{display:none}
.iv-event summary:hover{background:rgba(230,237,243,.05)}
.iv-dot{position:relative;width:24px;height:24px;border-radius:50%;box-shadow:0 0 0 5px var(--iv-bg)}
.iv-person .iv-dot{background:var(--iv-butter)}
.iv-factory .iv-dot{border:3px solid var(--iv-mint);background:var(--iv-bg)}
.iv-factory .iv-dot::after{content:"";position:absolute;inset:4px;border-radius:50%;background:var(--iv-mint)}
.iv-when{padding-top:3px;font:13px/1.3 var(--iv-code);color:var(--iv-dim);white-space:nowrap}
.iv-when time{color:var(--iv-text)}
.iv-what{display:flex;flex-direction:column;gap:2px}
.iv-what strong{font-size:16px;line-height:1.35}
.iv-what span{font-size:14px;color:var(--iv-dim)}
.iv-person [open] .iv-what strong{color:var(--iv-butter)}
.iv-factory [open] .iv-what strong{color:var(--iv-mint)}
.iv-event-body{display:flex;flex-direction:column;gap:10px;margin:2px 0 14px 38px;padding:14px 16px;border-radius:12px;background:var(--iv-raise);border:1px solid var(--iv-line);font-size:15px}
.iv-event-body h3{margin-top:6px;font-size:15px;font-weight:700;line-height:1.35}
.iv-said{display:flex;flex-direction:column;gap:6px;padding-left:12px;border-left:3px solid var(--iv-mint)}
.iv-said.iv-person{border-left-color:var(--iv-butter)}
.iv-said-head{font-size:13px;font-weight:700;color:var(--iv-dim)}
.iv-said-head time{margin-left:6px;font:400 13px var(--iv-code)}
.iv-cmd{margin:0;font:13px/1.55 var(--iv-code);color:var(--iv-butter);white-space:pre-wrap}
.iv-options,.iv-statements{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;list-style:none}
.iv-options li{padding:6px 10px;border-radius:8px;border:1px solid var(--iv-line);font-size:14px}
.iv-options .iv-chosen{border-color:var(--iv-butter);background:rgba(255,231,163,.08)}
.iv-pick{display:inline-block;margin-left:6px;padding:0 7px;border-radius:5px;background:var(--iv-butter);color:var(--iv-bg);font-size:12px;font-weight:700}
.iv-statements li{font-size:14px;line-height:1.45}
.iv-statements code{margin-right:6px;color:var(--iv-mint)}
.iv-breaks{color:var(--iv-dim)}
.iv-more summary{color:var(--iv-mint);font-size:14px;font-weight:700;cursor:pointer}
.iv-more .iv-code{margin-top:8px;max-height:360px}
.iv-total{position:sticky;top:24px;display:flex;flex-direction:column;gap:4px;padding:18px 20px;border-radius:14px;background:var(--iv-raise);border:1px solid var(--iv-line);font-size:15px}
.iv-big{margin-top:12px;font:900 clamp(40px,4vw,56px)/1 var(--display);text-transform:uppercase;color:var(--iv-butter)}
.iv-big:first-child{margin-top:0;color:var(--iv-mint)}
.iv-total .iv-note{margin-top:12px}
.iv-replay{padding:0 16px;border-radius:999px;border:1px solid var(--iv-mint);color:var(--iv-mint);font-size:14px;font-weight:700}
.iv-replay:hover{background:rgba(56,217,169,.12)}
.iv-clock{font:13px/1 var(--iv-code);color:var(--iv-dim);visibility:hidden}
.replaying .iv-clock{visibility:visible}
.replaying .iv-event:not(.iv-reached){opacity:.28}

/* Trace Explorer: tabs and steps are radios, and every state shares one grid cell, so moving
   between them never changes the height. A shown step inherits its tab's visibility; a plain
   visible would show through a hidden tab. */
.iv-toggle{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--iv-dim);cursor:pointer}
.iv-toggle input{width:16px;height:16px;accent-color:var(--iv-mint)}
.iv-tabs,.iv-steps{display:flex;flex-wrap:wrap;gap:8px;min-inline-size:0;margin:0;padding:0;border:0}
.iv-tabs{padding:16px 20px 0}
.iv-tabs label{padding:7px 14px;border-radius:999px;border:1px solid var(--iv-line);color:var(--iv-dim);font-size:14px;font-weight:700;cursor:pointer}
.iv-tabs label:hover,.iv-steps label:hover{color:var(--iv-text)}
.iv-tabs label:has(:checked){border-color:var(--iv-mint);background:var(--iv-mint);color:var(--iv-bg)}
:is(.iv-tabs,.iv-steps) label:has(:focus-visible){outline:3px solid var(--iv-mint);outline-offset:2px}
.iv-panels{display:grid;padding:18px 20px 22px}
.iv-panel{grid-area:1/1;min-width:0;visibility:hidden}
.iv-panel:first-child,
.iv-traces:has(.iv-tabs label:nth-of-type(2) :checked) .iv-panel:nth-child(2),
.iv-traces:has(.iv-tabs label:nth-of-type(3) :checked) .iv-panel:nth-child(3),
.iv-traces:has(.iv-tabs label:nth-of-type(4) :checked) .iv-panel:nth-child(4),
.iv-traces:has(.iv-tabs label:nth-of-type(5) :checked) .iv-panel:nth-child(5),
.iv-traces:has(.iv-tabs label:nth-of-type(6) :checked) .iv-panel:nth-child(6){visibility:visible}
.iv-traces:has(.iv-tabs label:not(:first-of-type) :checked) .iv-panel:first-child{visibility:hidden}
.iv-bugline{color:var(--iv-dim);font-size:15px}
.iv-bugline code{color:var(--iv-text)}
.iv-tag{display:inline-block;padding:1px 8px;border-radius:6px;background:rgba(255,123,114,.16);color:var(--iv-red);font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.iv-steps{gap:6px;margin-top:14px}
.iv-steps label{padding:6px 10px;border-radius:8px;border:1px solid var(--iv-line);color:var(--iv-dim);font:13px/1.2 var(--iv-code);cursor:pointer}
.iv-steps label:has(:checked){border-color:var(--iv-mint);background:rgba(56,217,169,.1);color:var(--iv-mint)}
.iv-steps label:last-of-type:has(:checked){border-color:var(--iv-red);background:rgba(255,123,114,.1);color:var(--iv-red)}
.iv-nav{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
.iv-nav button{padding:0 14px;border-radius:999px;border:1px solid var(--iv-line);font-size:14px;font-weight:700}
.iv-nav button:hover:not(:disabled){border-color:var(--iv-mint);color:var(--iv-mint)}
.iv-nav button:disabled{opacity:.4;cursor:default}
.iv-states{display:grid;margin:14px 0 0;padding:0;list-style:none}
.iv-state{grid-area:1/1;min-width:0;visibility:hidden}
.iv-state:first-child,
.iv-panel:has(.iv-steps label:nth-of-type(2) :checked) .iv-state:nth-child(2),
.iv-panel:has(.iv-steps label:nth-of-type(3) :checked) .iv-state:nth-child(3),
.iv-panel:has(.iv-steps label:nth-of-type(4) :checked) .iv-state:nth-child(4),
.iv-panel:has(.iv-steps label:nth-of-type(5) :checked) .iv-state:nth-child(5),
.iv-panel:has(.iv-steps label:nth-of-type(6) :checked) .iv-state:nth-child(6),
.iv-panel:has(.iv-steps label:nth-of-type(7) :checked) .iv-state:nth-child(7),
.iv-panel:has(.iv-steps label:nth-of-type(8) :checked) .iv-state:nth-child(8){visibility:inherit}
.iv-panel:has(.iv-steps label:not(:first-of-type) :checked) .iv-state:first-child{visibility:hidden}
.iv-step{font:13px/1.3 var(--iv-code);color:var(--iv-dim)}
.iv-narration{margin-top:4px;font-size:clamp(18px,1.6vw,22px);font-weight:600;line-height:1.3}
.iv-vars{display:grid;gap:8px;margin:14px 0 0}
.iv-var{display:grid;grid-template-columns:minmax(150px,220px) minmax(0,1fr);align-items:center;gap:4px 16px;padding:8px 12px;border-radius:10px;border:1px solid var(--iv-line)}
.iv-var dt{font-size:14px;color:var(--iv-dim)}
.iv-var dt code{display:block;font-size:12px}
.iv-var dd{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0}
.iv-changed{border-color:rgba(56,217,169,.55);background:rgba(56,217,169,.07)}
.iv-flag{display:inline-block;margin-top:2px;padding:0 6px;border-radius:5px;background:var(--iv-mint);color:var(--iv-bg);font-size:11px;font-weight:700;text-transform:uppercase}
.iv-chip{display:inline-flex;align-items:baseline;gap:6px;padding:3px 10px;border-radius:999px;border:1px solid var(--iv-line);background:rgba(230,237,243,.07);font:13px/1.4 var(--iv-code)}
.iv-empty{color:var(--iv-dim);font-style:italic}
.iv-rm.iv-prepared{border-color:var(--iv-butter);color:var(--iv-butter)}
.iv-rm.iv-committed{border-color:var(--iv-mint);color:var(--iv-mint)}
.iv-rm.iv-aborted,.iv-over{border-color:var(--iv-red);color:var(--iv-red)}
.iv-over{background:rgba(255,123,114,.12)}
.iv-slots{display:flex;flex-wrap:wrap;gap:6px}
.iv-cap{color:var(--iv-dim);font-size:12px}
.iv-tla{display:none;margin-top:14px}
.iv-traces:has(.iv-toggle :checked) .iv-vars{display:none}
.iv-traces:has(.iv-toggle :checked) .iv-tla{display:block}
.iv-violation{margin-top:14px;padding:10px 14px;border-radius:10px;border:1px solid var(--iv-red);background:rgba(255,123,114,.1);font-size:15px}
.iv-violation>span:first-child{color:var(--iv-red);font-weight:900}
.iv-violation>span:last-child{display:block;margin-top:4px;color:var(--iv-dim);font-size:14px}

/* Dual Proof Terminal: matching clauses light up together, by hover or focus, or pinned with a
   tap (invariant.js). Notes share one grid cell, so the height never changes. */
.iv-panes{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:16px;padding:18px 20px 0}
.iv-pane{min-width:0;margin:0}
.iv-pane figcaption{margin-bottom:8px;color:var(--iv-dim);font-size:13px}
.iv-pane .iv-code{white-space:normal;overflow:visible}
.iv-ln{display:block;padding:2px 8px 2px 3.2em;text-indent:-2.6em;border-radius:6px;white-space:pre-wrap;transition:background .15s}
.iv-n{display:inline-block;width:2.6em;text-indent:0;color:rgba(230,237,243,.35);user-select:none}
.iv-contract{color:#A5EBD5}
.iv-proof [data-g]{cursor:pointer}
.iv-key{display:flex;flex-wrap:wrap;gap:8px;padding:16px 20px 0}
.iv-key button{padding:0 14px;border-radius:999px;border:1px solid var(--iv-line);font-size:14px;font-weight:700}
.iv-key-notes{display:grid;padding:10px 20px 16px;color:var(--iv-dim);font-size:15px}
.iv-key-notes p{grid-area:1/1;visibility:hidden}
.iv-key-notes .iv-key-default{visibility:visible}
.iv-proof[data-pin] .iv-key-default,.iv-proof:not([data-pin]):has([data-g]:hover,.iv-key button:focus-visible) .iv-key-default{visibility:hidden}
.iv-proof[data-pin=who] :is(.iv-ln,.iv-key button)[data-g=who],.iv-proof:not([data-pin]):has([data-g=who]:hover,.iv-key [data-g=who]:focus-visible) :is(.iv-ln,.iv-key button)[data-g=who]{background:rgba(56,217,169,.16);box-shadow:inset 3px 0 0 var(--iv-mint)}
.iv-proof[data-pin=who] .iv-key-notes [data-g=who],.iv-proof:not([data-pin]):has([data-g=who]:hover,.iv-key [data-g=who]:focus-visible) .iv-key-notes [data-g=who]{visibility:visible;color:var(--iv-text)}
.iv-proof[data-pin=when] :is(.iv-ln,.iv-key button)[data-g=when],.iv-proof:not([data-pin]):has([data-g=when]:hover,.iv-key [data-g=when]:focus-visible) :is(.iv-ln,.iv-key button)[data-g=when]{background:rgba(56,217,169,.16);box-shadow:inset 3px 0 0 var(--iv-mint)}
.iv-proof[data-pin=when] .iv-key-notes [data-g=when],.iv-proof:not([data-pin]):has([data-g=when]:hover,.iv-key [data-g=when]:focus-visible) .iv-key-notes [data-g=when]{visibility:visible;color:var(--iv-text)}
.iv-proof[data-pin=does] :is(.iv-ln,.iv-key button)[data-g=does],.iv-proof:not([data-pin]):has([data-g=does]:hover,.iv-key [data-g=does]:focus-visible) :is(.iv-ln,.iv-key button)[data-g=does]{background:rgba(56,217,169,.16);box-shadow:inset 3px 0 0 var(--iv-mint)}
.iv-proof[data-pin=does] .iv-key-notes [data-g=does],.iv-proof:not([data-pin]):has([data-g=does]:hover,.iv-key [data-g=does]:focus-visible) .iv-key-notes [data-g=does]{visibility:visible;color:var(--iv-text)}
.iv-proof[data-pin=same] :is(.iv-ln,.iv-key button)[data-g=same],.iv-proof:not([data-pin]):has([data-g=same]:hover,.iv-key [data-g=same]:focus-visible) :is(.iv-ln,.iv-key button)[data-g=same]{background:rgba(56,217,169,.16);box-shadow:inset 3px 0 0 var(--iv-mint)}
.iv-proof[data-pin=same] .iv-key-notes [data-g=same],.iv-proof:not([data-pin]):has([data-g=same]:hover,.iv-key [data-g=same]:focus-visible) .iv-key-notes [data-g=same]{visibility:visible;color:var(--iv-text)}
.iv-key button[aria-pressed=true]{border-color:var(--iv-mint);color:var(--iv-mint)}
.iv-term{margin:0 20px 22px;padding:14px 16px;border-radius:10px;background:var(--iv-deep);border:1px solid var(--iv-line);font:13px/1.6 var(--iv-code)}
.iv-term p{white-space:pre-wrap}
.iv-cmd-line{color:var(--iv-dim)}
.iv-t-name{display:inline-block;min-width:18ch;font-weight:700}
.iv-t-ev{color:var(--iv-dim)}
.iv-term.iv-typing p:not(.iv-shown){visibility:hidden}

/* The receipt badge on pull request #2. */
.iv-pr{padding:16px 18px}
.iv-pr-title{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:16px}
.iv-pr-title>span:last-child{color:var(--iv-dim)}
.iv-merged{padding:2px 10px;border-radius:999px;background:#8957E5;color:#fff;font-size:13px;font-weight:700}
.iv-builds{display:grid;gap:14px}
.iv-agent{padding:1px 10px;border:1px solid var(--iv-mint);border-radius:999px;color:var(--iv-mint);font:600 13px/1.5 var(--iv-code)}
.iv-pr-link{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px;color:inherit;text-decoration:none}
.iv-pr-link span{color:var(--iv-dim)}
.iv-pr-link:hover strong,.iv-pr-link:focus-visible strong{text-decoration:underline;text-underline-offset:4px}
.iv-badge{margin-top:12px;border-radius:10px;border:1px solid var(--iv-line);background:var(--iv-raise)}
.iv-badge summary{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:12px 14px;border-radius:10px;font-size:14px;cursor:pointer;list-style:none}
.iv-badge summary::-webkit-details-marker{display:none}
.iv-check{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--iv-mint);color:var(--iv-bg);font-size:12px;font-weight:900}
.iv-expand{margin-left:auto;color:var(--iv-mint);font-weight:700}
.iv-expand::after{content:"";display:inline-block;width:7px;height:7px;margin-left:8px;border-right:2px solid;border-bottom:2px solid;rotate:45deg;translate:0 -3px;transition:rotate .2s}
.iv-badge[open] .iv-expand::after{rotate:225deg;translate:0 1px}
.iv-receipt{display:flex;flex-direction:column;gap:10px;padding:4px 14px 14px;font-size:14px}
.iv-receipt-head{font-weight:700}
.iv-receipt table{width:100%;border-collapse:collapse;font-size:13.5px}
.iv-receipt th,.iv-receipt td{padding:7px 8px;border-top:1px solid var(--iv-line);text-align:left;vertical-align:top}
.iv-receipt thead th{border-top:0;color:var(--iv-dim)}
.iv-receipt tbody th{white-space:nowrap}
.iv-fp code{word-break:break-all}

/* The morning's three factory runs, each with its pull request's receipt. */
.iv-runs{display:grid;gap:18px;margin:0;padding:0;list-style:none}
.iv-run-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;margin-bottom:8px;color:var(--ink-88);font-size:16px}
.iv-run-head>span:first-child{font:900 22px/1 var(--display);letter-spacing:.02em;color:var(--butter)}
.iv-not{color:var(--iv-dim);font-weight:700}

/* How it works, on the tomato page. */
.iv-flow{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.iv-flow li{padding:14px 18px;border:var(--rule);border-radius:14px;color:var(--ink-88);font-size:17px;line-height:1.5}
.iv-flow strong{color:var(--butter)}

@media (max-width:900px){
  .iv-run-grid,.iv-panes{grid-template-columns:minmax(0,1fr)}
  .iv-total{position:static}
}
@media (max-width:640px){
  .iv-run>:not(.iv-titlebar){margin-inline:16px}
  .iv-event summary{grid-template-columns:24px minmax(0,1fr)}
  .iv-when{grid-column:2}
  .iv-what{grid-column:2}
  .iv-event-body{margin-left:0;padding:12px}
  .iv-var{grid-template-columns:minmax(0,1fr)}
  .iv-panels,.iv-tabs,.iv-panes,.iv-key{padding-inline:14px}
  .iv-key-notes{padding-inline:14px}
  .iv-term{margin-inline:14px}
  .iv-t-name{min-width:0;display:block}
  .iv-receipt thead{display:none}
  .iv-receipt tr{display:grid;grid-template-columns:minmax(0,1fr);border-top:1px solid var(--iv-line);padding:8px 0}
  .iv-receipt th,.iv-receipt td{padding:2px 0;border:0}
  .iv-receipt tbody th{white-space:normal}
  .iv-flow li{font-size:16px}
}

@media (max-width:900px){
  .project-head{grid-template-columns:minmax(0,1fr)}
  .project-art .signature{max-width:460px;margin:0}
}
@media print{.project-art{display:none}}

/* ================= Glass =================
   The project pages in the site's night-and-glass look: hairlines for rules, the display face
   for chapter headings, and screens framed as panes of dark glass. */
::selection{background:var(--butter);color:var(--file-ink)}
.eyebrow,.back-link{font-size:13px;letter-spacing:.1em}
.eyebrow{color:var(--butter)}
.project-head h1{font-weight:800}
.pill{color:var(--file-ink);transition:transform .25s var(--ease),box-shadow .25s}
.pill:hover{background:var(--butter);color:var(--file-ink);transform:translateY(-2px);box-shadow:0 10px 28px rgba(255,111,89,.4)}
.chapter h2{font:800 clamp(34px,3.4vw,50px)/.95 var(--display);letter-spacing:0;text-transform:uppercase}
.signature .sg-card{fill:rgba(207,235,255,.07);stroke:rgba(255,255,255,.42);stroke-width:1.3}
.browser{background:radial-gradient(circle at 18px 14px,#FF6F59 4.5px,transparent 5px),radial-gradient(circle at 36px 14px,#FFB86B 4.5px,transparent 5px),radial-gradient(circle at 54px 14px,#35C9C0 4.5px,transparent 5px),#0B2A47;box-shadow:0 30px 64px rgba(1,8,20,.7),0 0 0 1px rgba(255,255,255,.42)}
.phone,.shots-phone .phone{box-shadow:0 30px 64px rgba(1,8,20,.6),inset 0 0 0 1.5px rgba(255,255,255,.3)}
.pipeline li{border-radius:22px;background:linear-gradient(135deg,rgba(207,235,255,.12),rgba(108,203,255,.035));box-shadow:0 24px 50px rgba(1,8,20,.42),inset 0 1px 0 rgba(255,255,255,.26)}
.model-stage{border:1px solid #FFC0B5;border-radius:22px;background:linear-gradient(135deg,#FF9A88,#FF6F59 70%);box-shadow:0 24px 50px rgba(1,8,20,.42),inset 0 1px 0 rgba(255,255,255,.4)}
/* In a wide chapter, a single picture under a step-through keeps the width of the step-through's
   picture, which leaves 300px and a 44px gap for its steps. */
@media (min-width:901px){.chapter-wide .shots-inset>.shot{width:calc(100% - 344px)}}
@media (prefers-reduced-motion:reduce){.pill{transition:none}.pill:hover{transform:none}}
@media (max-width:640px){
  /* On a phone the real screen comes first: the drawing gives way to it, and a tour's parts
     are one row to swipe through instead of several rows of buttons. */
  .project-art{display:none}
  .tour-parts,.phone.tour-frame+.tour-parts{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;margin-inline:calc(var(--gutter)*-1);padding:2px var(--gutter) 6px;scrollbar-width:none}
  .tour-parts::-webkit-scrollbar{display:none}
  .tour-parts li{flex:none}
}
