@charset "utf-8";
:root{color-scheme:dark;--bg:#101010;--text:#f0eee9;--muted:#a4a39e;--line:#343432;--red:#ff563d}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Arial,Helvetica,sans-serif}
a{color:inherit;text-decoration:none}
a:hover{color:var(--red)}
a:focus-visible,summary:focus-visible{outline:2px solid var(--red);outline-offset:6px}
.wrap{max-width:1440px;margin:auto;padding:0 6vw}
header{display:flex;justify-content:space-between;align-items:center;padding:32px 0;font-size:14px;letter-spacing:.06em}
header .name{font-size:22px;letter-spacing:-1px;font-weight:700}
nav{display:flex;gap:28px}
.hero{padding:75px 0 70px}
.label{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
h1{font-size:clamp(64px,10.7vw,154px);line-height:.88;letter-spacing:-.07em;font-weight:800;margin:34px 0 50px;text-transform:uppercase}
h1 .accent{color:var(--red)}
/* "Ideas" lights up like a bulb, or a blacklight on alternate visits
   (class "uv" from site/hero.js), when the mouse is over it (mouse and hover
   only; a steady glow, without the switch-on flicker, for reduced motion). */
h1 .idea{transition:color .25s ease,text-shadow .35s ease}
@media(hover:hover) and (pointer:fine){
h1 .idea:hover{color:#fff6d6;text-shadow:0 0 6px rgba(255,236,170,.9),0 0 22px rgba(255,214,110,.75),0 0 60px rgba(255,190,70,.5),0 0 110px rgba(255,170,50,.3);animation:bulb-on .45s ease-out}
h1 .idea.uv:hover{color:#ead6ff;text-shadow:0 0 6px rgba(205,150,255,.95),0 0 22px rgba(160,80,255,.8),0 0 60px rgba(120,40,255,.55),0 0 110px rgba(90,20,230,.35);animation:uv-on .6s ease-out}
}
/* "Into": on mouse hover, I and N hop into the O, which rolls after the
   cursor along the empty space to the right, then rolls home (site/hero.js). */
h1 .into{display:inline-block}

/* "Turn" spins one of three ways at random on mouse hover (site/hero.js). */
h1 .turn{display:inline-block}
h1 .turn.spin-y{animation:turn-y .9s cubic-bezier(.45,0,.2,1)}
h1 .turn.spin-x{animation:turn-x .9s cubic-bezier(.45,0,.2,1)}
h1 .turn.spin-z{animation:turn-z .9s cubic-bezier(.45,0,.2,1)}
@keyframes turn-y{from{transform:perspective(800px) rotateY(0)}to{transform:perspective(800px) rotateY(360deg)}}
@keyframes turn-x{from{transform:perspective(800px) rotateX(0)}to{transform:perspective(800px) rotateX(360deg)}}
@keyframes turn-z{from{transform:rotate(0)}to{transform:rotate(360deg)}}
/* The "I" becomes an eye on mouse hover: the letter fades out and a drawn
   eye fades in, blinks once, then looks left and right (no blink, look or fade for reduced motion). */
h1 .eye-i{position:relative;display:inline-block}
h1 .eye-letter{transition:opacity .2s ease}
h1 .eyeart{position:absolute;left:50%;top:50%;width:.55em;height:auto;color:var(--text);transform:translate(-50%,-50%) scale(.6);opacity:0;pointer-events:none;transition:opacity .2s ease,transform .25s ease}
@media(hover:hover) and (pointer:fine){
h1 .eye-i:hover .eye-letter{opacity:0}
h1 .eye-i:hover .eyeart{opacity:1;transform:translate(-50%,-50%) scale(1);animation:eye-blink .5s ease-in-out .35s}
h1 .eye-i:hover .eyelook{animation:eye-look 2.4s ease-in-out .85s infinite}
}
@keyframes eye-look{0%,100%{transform:translateX(0)}20%,38%{transform:translateX(-24px)}62%,80%{transform:translateX(24px)}}
@keyframes eye-blink{0%,100%{transform:translate(-50%,-50%) scale(1,1)}50%{transform:translate(-50%,-50%) scale(1,.08)}}
@keyframes uv-on{0%{color:inherit;text-shadow:none}20%{color:#b79ad6;text-shadow:0 0 10px rgba(160,80,255,.5)}30%{color:inherit;text-shadow:none}55%{color:#d9c2f5;text-shadow:0 0 22px rgba(160,80,255,.7)}100%{color:#ead6ff}}
@keyframes bulb-on{0%{color:inherit;text-shadow:none}15%{color:#fff6d6;text-shadow:0 0 18px rgba(255,214,110,.7)}25%{color:inherit;text-shadow:none}40%{color:#fff6d6;text-shadow:0 0 22px rgba(255,214,110,.75)}50%{color:#d9d3c2;text-shadow:0 0 6px rgba(255,214,110,.3)}100%{color:#fff6d6}}
@media(prefers-reduced-motion:reduce){h1 .idea:hover,h1 .idea.uv:hover{animation:none}h1 .idea{transition:none}h1 .eye-letter,h1 .eyeart{transition:none}h1 .eye-i:hover .eyeart,h1 .eye-i:hover .eyelook{animation:none}h1 .turn.spin-x,h1 .turn.spin-y,h1 .turn.spin-z{animation:none}}
/* Hero letters (site/hero.js): dock-style magnification, by transform only */
.heroletters span{display:inline-block;transform-origin:50% 50%}
.heroword{user-select:none}
.herobottom{display:flex;justify-content:space-between;align-items:end;gap:30px}
.herobottom p{max-width:490px;font-size:19px;line-height:1.55;margin:0}
.shipped{flex:0 0 auto;min-width:240px}
.shipped ul{list-style:none;margin:14px 0 0;padding:0;border-top:1px solid var(--line)}
.shipped li{display:flex;justify-content:space-between;align-items:baseline;gap:20px;padding:12px 0;border-bottom:1px solid var(--line)}
.shipped a{font-size:18px}
.shipped a::after{content:" →";color:var(--red)}
.shipped span{font-size:13px;color:var(--muted)}
.intro{display:grid;grid-template-columns:1fr 2fr;gap:50px;border-top:1px solid var(--line);padding:55px 0 90px}
.intro p{font-size:clamp(23px,3vw,39px);line-height:1.3;margin:0;letter-spacing:-.025em}
.intro p span{color:var(--muted)}
.sectionhead{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:50px}
.project{margin-bottom:100px}
.projecttop{display:flex;justify-content:space-between;align-items:baseline;gap:25px;margin-bottom:26px}
h2{font-size:clamp(32px,5vw,67px);letter-spacing:-.045em;font-weight:500;margin:0}
.projecttop p{font-size:14px;color:var(--muted)}
.visual{min-height:490px;overflow:hidden;position:relative}
.description{display:grid;grid-template-columns:1.5fr 1fr;gap:70px;padding-top:26px}
.description p{font-size:18px;line-height:1.65;margin:0;color:var(--muted)}
.description .action{display:flex;justify-content:flex-end;align-items:start;gap:28px;flex-wrap:wrap}
.action a{padding-bottom:9px;border-bottom:1px solid var(--text);font-size:16px}
/* "Explore the project" on the homepage: an accent button leading to the
   project's case study page (Max, 2026-10-21). Dark text on the red keeps
   it readable. */
.description .action a[href^="projects/"]{display:inline-flex;align-items:center;gap:8px;background:var(--red);color:#101010;border:0;border-radius:999px;padding:12px 22px;font-weight:700;line-height:1.2}
.description .action a[href^="projects/"]::after{content:"→"}
.description .action a[href^="projects/"]:hover{background:#ff7a66;color:#101010}
/* the same red button, for links outside the project cards (the Rules film entry on the Writing list) */
.action a.redbutton{display:inline-flex;align-items:center;gap:8px;background:var(--red);color:#101010;border:0;border-radius:999px;padding:12px 22px;font-weight:700;line-height:1.2}
.action a.redbutton::after{content:"→"}
.action a.redbutton:hover{background:#ff7a66;color:#101010}
.description .action{align-items:center}
.action .status{padding-bottom:9px;font-size:16px;opacity:.7}
.visual.videovisual{min-height:0;aspect-ratio:16/9;background:#1b1916}
.videovisual video{display:block;width:100%;height:100%;object-fit:cover}
.visual.photovisual{min-height:0;aspect-ratio:16/9;background:#1b1916}
.photovisual img{display:block;width:100%;height:100%;object-fit:cover}
.about{border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 2fr;gap:50px;padding:65px 0}
.about h2{font-size:40px}
.about p{font-size:21px;line-height:1.6;margin:0 0 1.2em;color:var(--muted)}
.about p:last-child{margin-bottom:0}
footer{border-top:1px solid var(--line);padding:45px 0 30px}
.footerline{display:flex;justify-content:space-between;align-items:center;gap:30px}
.footerline h2{font-size:clamp(36px,5vw,66px)}
.footerline a{border-bottom:1px solid var(--text);padding-bottom:7px}
.fine{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);padding-top:65px}
details{margin-top:20px;color:var(--muted);font-size:15px}
summary{cursor:pointer}
details p{padding-top:10px}
@media(max-width:760px){
.wrap{padding:0 24px}
header{align-items:start}
nav{gap:15px;font-size:12px}
.hero{padding:55px 0}
.herobottom p{font-size:17px}
.herobottom{flex-direction:column;align-items:start}
.shipped{width:100%;min-width:0}
.intro,.about{grid-template-columns:1fr;gap:25px;padding:35px 0 55px}
.projecttop{display:block}
.projecttop p{margin:10px 0}
.visual{min-height:400px}
.description{grid-template-columns:1fr;gap:22px}
.description .action{justify-content:start}
.project{margin-bottom:65px}
.footerline{align-items:start;flex-direction:column}
.fine{gap:20px;flex-wrap:wrap}
.sectionhead{margin-bottom:35px}
h1{font-size:clamp(34px,calc((100vw - 48px)/6.7),90px)}
}
@media(prefers-reduced-motion:reduce){
html{scroll-behavior:auto}
}

/* Writing: homepage teaser, list page, essay page */
:root{--prose:#dcd9d2}
nav a[aria-current=page]{color:var(--red)}
.writing{padding:20px 0 80px}
.post{display:grid;grid-template-columns:1fr 2fr;gap:50px;border-top:1px solid var(--line);padding:32px 0 60px}
.post .action{display:flex;flex-wrap:wrap;gap:12px 28px}
.filmnote{display:grid;grid-template-columns:1fr 2fr;gap:50px;margin:-50px 0 80px}
.filmnote p{grid-column:2;margin:0;line-height:1.8}
.filmnote a{color:var(--text);border-bottom:1px solid var(--muted);padding-bottom:2px}
.filmnote a:hover{color:var(--red);border-color:var(--red)}
.sectionhead+.post{border-top:0;padding:0}
.post h2{line-height:1.02}
.standfirst{font-family:Georgia,'Times New Roman',serif;font-style:italic;font-size:clamp(19px,1.9vw,25px);line-height:1.45;color:var(--muted);margin:22px 0 30px;max-width:30em}
.listhead{padding:75px 0 60px}
.listhead h1{margin:0}
.essayhead{padding:60px 0 45px}
h1.title{font-size:clamp(40px,7vw,104px);line-height:.92;letter-spacing:-.055em;margin:28px 0 30px}
.essayhead .standfirst{margin:0}
.essay{display:grid;grid-template-columns:1fr 2fr;gap:50px;border-top:1px solid var(--line);padding:45px 0 90px}
.essaymeta{position:sticky;top:32px;align-self:start;line-height:2}
.essaymeta a{border-bottom:1px solid var(--muted);padding-bottom:3px}
.prose{max-width:680px;font-family:Georgia,'Times New Roman',serif;font-size:20px;line-height:1.7;color:var(--prose)}
.prose p{margin:0 0 1.25em}
.prose h2{font-family:Arial,Helvetica,sans-serif;font-size:clamp(26px,3vw,38px);line-height:1.1;letter-spacing:-.035em;color:var(--text);margin:2.3em 0 .85em}
.prose .pull{font-family:Arial,Helvetica,sans-serif;font-size:clamp(24px,2.7vw,34px);line-height:1.25;letter-spacing:-.025em;color:var(--text);margin:1.5em 0}
.prose .pull strong{font-weight:inherit}
.prose p a{border-bottom:1px solid currentColor}
.prose .action{font-family:Arial,Helvetica,sans-serif;color:var(--text)}
.prose .credit{font-family:Arial,Helvetica,sans-serif;font-size:15px;line-height:1.6;color:var(--muted);border-top:1px solid var(--line);padding-top:26px;margin:3.2em 0 2.2em}
@media(max-width:760px){
header{flex-wrap:wrap;gap:10px 24px}
.writing{padding:0 0 45px}
.post,.essay{grid-template-columns:1fr;gap:20px}
  .filmnote{grid-template-columns:1fr;gap:0;margin:-10px 0 60px}
  .filmnote p{grid-column:1}
.post{padding:26px 0 45px}
.listhead{padding:55px 0 40px}
.essayhead{padding:40px 0 32px}
h1.title{font-size:clamp(34px,10.5vw,60px);margin:22px 0 24px}
.essay{padding:30px 0 60px}
.essaymeta{position:static}
.prose{font-size:18px}
}

/* Case study pages (site/projects/) */
[hidden]{display:none!important}
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
button{font:inherit;color:inherit}
button:focus-visible{outline:2px solid var(--red);outline-offset:6px}
.slide:focus{outline:none}
.casehead{padding:60px 0 40px}
.casehead h1.title{margin:28px 0 18px}
.backlink{border-bottom:1px solid var(--muted);padding-bottom:3px}
.backlink::before{content:"← "}
.casestatus{font-size:18px;color:var(--muted);margin:0}
.casesummary{display:grid;grid-template-columns:1fr 2fr;gap:50px;border-top:1px solid var(--line);padding:45px 0 60px}
.caseprose{max-width:720px}
.casecontrib{display:flex;flex-direction:column;gap:8px;max-width:760px;margin:26px 0 0;font-size:17px;line-height:1.55}
.aboutmore{margin-top:30px}
.casemeta .action{display:flex;flex-wrap:wrap;gap:12px 32px}
#record-title{scroll-margin-top:30px}
.caseprose p{font-size:20px;line-height:1.6;color:var(--muted);margin:0 0 1.2em}
.caseprose p:first-child{font-size:clamp(23px,2.4vw,30px);line-height:1.35;letter-spacing:-.02em;color:var(--text)}
.caseprose p:last-child{margin-bottom:0}
.casevideo{margin:0 0 70px}
.casevideo figcaption{margin-top:16px}
.essayfilm{margin:28px 0 30px;scroll-margin-top:30px}
.deck{margin-bottom:80px}
.deckhead{align-items:center;gap:20px;flex-wrap:wrap}
.decktitle{font:inherit;letter-spacing:inherit;margin:0}
.deckcontrols{display:flex;align-items:center;gap:18px}
.deckbtn{background:none;border:1px solid var(--line);border-radius:999px;padding:10px 18px;font-size:12px;letter-spacing:.16em;text-transform:uppercase;cursor:pointer;color:var(--text)}
.deckbtn:hover{border-color:var(--red);color:var(--red)}
.deckbtn[aria-disabled=true]{opacity:.35;cursor:default}
.deckbtn[aria-disabled=true]:hover{border-color:var(--line);color:var(--text)}
.deckcount{min-width:3.5em;text-align:center;color:var(--text);font-variant-numeric:tabular-nums}
/* Slides use Context Scout's own look: the forest stage and paper cards from
   the app (App/ScoutStyle.swift) and its explainer video, in the system font. */
.slide{--paper:#FBF7DE;--ink:#1F244B;--forest:#3C6B64;--soft:#6B6F86;--cardline:#E6DFC2;display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;background:radial-gradient(120% 90% at 50% 40%,#41706A 0%,#3A6861 45%,#2B4F49 100%);color:var(--paper);font-family:system-ui,-apple-system,'SF Pro Text','Helvetica Neue',sans-serif;border-radius:28px;padding:clamp(28px,5vw,64px);margin-bottom:24px}
.is-deck .slide{margin-bottom:0}
.slide .label{color:var(--paper);letter-spacing:.12em}
.slidekicker{display:flex;align-items:center;gap:12px}
.slidekicker img{width:30px;height:30px;border-radius:22.5%;flex:none}
.slidetext h3{font-size:clamp(30px,3.4vw,50px);line-height:1.08;letter-spacing:-.015em;font-weight:700;margin:22px 0 26px}
.slidetext p{font-size:19px;line-height:1.55;font-weight:500;color:var(--paper);margin:0 0 1em;max-width:34em}
.slidetext p:last-child{margin-bottom:0}
.slidevisual{margin:0;display:flex;flex-direction:column;align-items:center;gap:16px}
.slidevisual figcaption,.visualnote{text-align:center;max-width:30em;line-height:1.6;margin:0}
.slidevisual figcaption.label,.visualnote.label{text-transform:none;letter-spacing:0;font-size:14px}
.phone{display:block;width:min(100%,280px);height:auto;border-radius:16.5% / 7.9%;box-shadow:0 30px 60px rgba(0,0,0,.3)}
.phonepair{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}
.phonepair figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:14px}
.phonepair .visualnote{grid-column:1/-1;justify-self:center}
.observations{list-style:none;margin:0;padding:0;width:100%;display:flex;flex-direction:column;gap:12px}
.observations li{background:var(--paper);color:var(--ink);border-radius:16px;padding:16px 22px;font-size:clamp(22px,2.4vw,32px);font-weight:700;letter-spacing:-.015em;line-height:1.15;box-shadow:0 16px 36px rgba(0,0,0,.22)}
.observations li:nth-child(even){margin-left:clamp(0px,4vw,48px)}
.flow{width:100%;display:flex;flex-direction:column;gap:14px}
.flownode{background:var(--paper);color:var(--ink);border-radius:16px;padding:16px 18px;display:flex;flex-direction:column;gap:4px;box-shadow:0 16px 36px rgba(0,0,0,.22)}
.flownode .label{color:var(--forest);opacity:1}
.flownode strong{font-weight:700;font-size:18px;line-height:1.3}
.flowsource{border-left:6px solid var(--forest)}
.flowoutside{background:transparent;color:var(--paper);border:2px dashed var(--paper);box-shadow:none}
.flowoutside .label{color:var(--paper)}
.flowsmall{font-size:14px;color:var(--soft)}
.flowoutside .flowsmall{color:var(--paper)}
.flowsplit{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.flowpath{display:flex;flex-direction:column;gap:10px}
.flowarrow{font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--paper);padding-left:18px}
.flowarrow::before{content:"↓ "}
.rolesplit{display:grid;grid-template-columns:auto 1fr;gap:32px;align-items:center}
.rolesplit figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:14px}
.rolesplit .phone{width:min(100%,220px)}
.roles{margin:0;display:flex;flex-direction:column;gap:16px}
.roles>div{background:var(--paper);color:var(--ink);border-radius:16px;padding:18px 20px;box-shadow:0 16px 36px rgba(0,0,0,.22)}
.roles dt.label{color:var(--forest);opacity:1;margin-bottom:8px}
.roles dd{margin:0;font-size:18px;font-weight:600;line-height:1.4;padding:7px 0;border-bottom:1px solid var(--cardline)}
.roles dd:last-child{border-bottom:0}
.inlinelink{border-bottom:1px solid currentColor}
.caseend.action{gap:36px}
/* ASTO slides use the game's own look (ASTO styles/tokens.css): cream paper,
   milk tiles, warm brown ink, honey and the four tier colours. Bree Serif is
   the game's display face; Georgia stands in so no web font is loaded. The
   soft ink is a shade darker than the game's #7A6B57 so small text passes
   4.5:1 on cream. */
.theme-asto .slide{--cream:#F3ECDC;--milk:#FAF5E9;--oat:#EAE0CB;--taupe:#D8CCB3;--ink:#40342A;--softink:#6B5D4A;--honey:#D9A741;background:var(--cream);color:var(--ink);font-family:'Nunito','Avenir Next',system-ui,sans-serif}
.theme-asto .slide .label{color:var(--softink);letter-spacing:.12em}
.theme-asto .slidetext h3{font-family:'Bree Serif',Georgia,serif;font-weight:700;letter-spacing:0;color:var(--ink)}
.theme-asto .slidetext p{color:var(--ink);font-weight:500}
.astomark{font-family:'Bree Serif',Georgia,serif;font-weight:700;font-size:20px;letter-spacing:.03em;color:var(--ink);text-transform:none}
.gameshot{display:block;width:min(100%,300px);height:auto;border-radius:18px;border:2px solid var(--taupe);box-shadow:0 6px 18px rgba(64,52,42,.1)}
.studioshot{display:block;width:100%;height:auto;border-radius:16px;border:2px solid var(--taupe);box-shadow:0 6px 18px rgba(64,52,42,.1)}
.casesub{margin:0 0 22px}
.casemeta{display:flex;align-items:baseline;gap:32px;flex-wrap:wrap}
.playlink{font-size:18px;color:var(--text)}
.playlink::after{content:" ↗";color:var(--red)}
.theme-asto .slidevisual figcaption.label,.theme-asto .visualnote{color:var(--softink)}
.slidepunch{font-family:'Bree Serif',Georgia,serif;font-size:24px!important;font-weight:700!important}
.visualnote.small{font-size:13px;line-height:1.5;text-align:center;max-width:26em;color:var(--softink)}
.tilerow{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.tile{background:var(--milk);border:2px solid var(--taupe);border-radius:14px;padding:14px 16px;font-weight:800;font-size:clamp(17px,1.6vw,21px);color:var(--ink);box-shadow:0 6px 18px rgba(64,52,42,.08);min-width:4.2em;text-align:center}
.op{font-family:'Bree Serif',Georgia,serif;font-size:22px;color:var(--softink)}
.tilerow.small{gap:5px;justify-content:flex-start}
.tilerow.small .tile{padding:8px 10px;font-size:15px;border-radius:10px;min-width:0;box-shadow:none}
.tilerow.small .op{font-size:16px}
.tileread{font-family:'Bree Serif',Georgia,serif;font-size:20px;margin:0;color:var(--ink)}
.annotatedshot{position:relative;width:min(100%,340px);margin-left:14px}
.annotatedshot .gameshot{width:100%}
.pin{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px;border-radius:50%;background:var(--honey);color:var(--ink);font-weight:800;font-size:15px;display:flex;align-items:center;justify-content:center;border:2px solid var(--milk);box-shadow:0 4px 12px rgba(64,52,42,.25)}
.pinnotes{margin:0;padding:0;list-style:none;counter-reset:pin;display:flex;flex-direction:column;gap:8px;max-width:22em}
.pinnotes li{counter-increment:pin;display:grid;grid-template-columns:24px 1fr;gap:10px;align-items:start;font-size:16px;line-height:1.45;color:var(--ink)}
.pinnotes li::before{content:counter(pin);flex:none;width:24px;height:24px;border-radius:50%;background:var(--honey);color:var(--ink);font-weight:800;font-size:13px;display:inline-flex;align-items:center;justify-content:center}
.phases{list-style:none;margin:0;padding:0;width:100%;display:flex;flex-direction:column;gap:22px}
.phases li{position:relative;background:var(--milk);border:2px solid var(--taupe);border-radius:18px;padding:14px 16px 14px 56px;display:grid;grid-template-columns:1fr auto;gap:4px 12px;align-items:center}
.phases li+li::before{content:"↓";position:absolute;top:-23px;left:27px;font-size:17px;line-height:1;color:var(--softink)}
.phasenum{position:absolute;left:14px;top:14px;width:28px;height:28px;border-radius:50%;background:var(--oat);font-weight:800;font-size:14px;display:flex;align-items:center;justify-content:center;color:var(--ink)}
.phases strong{font-family:'Bree Serif',Georgia,serif;font-size:19px;color:var(--ink)}
.who{display:flex;gap:6px;justify-self:end}
.phasedesc{grid-column:1/-1;font-size:15px;line-height:1.4;color:var(--softink)}
.tag{font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;border-radius:999px;padding:3px 9px;border:1.5px solid}
.tag-ai{color:#4F6B47;border-color:#8FAC84;background:#E9EFE0}
.tag-code{color:#4A453E;border-color:#A39C90;background:#E5E1D8}
.tag-max{color:#FAF5E9;border-color:var(--ink);background:var(--ink)}
.phasefinal{border-color:var(--honey)!important;background:#F7ECD1!important}
.revisionnote{margin:0;font-size:15px;line-height:1.5;color:var(--softink);text-align:center}
.revisionnote span{font-size:18px;color:var(--ink)}
.setcards{display:flex;flex-direction:column;gap:16px;width:100%}
.setcard{border-radius:20px;border:2px solid;padding:16px 18px;display:flex;flex-direction:column;gap:10px}
.setcard em{font-size:16px;color:var(--ink)}
.setwhy{font-size:15px;line-height:1.45;color:var(--ink)}
.tier-green{background:#E9EFE0;border-color:#8FAC84}
.tier-black{background:#E5E1D8;border-color:#4A453E}
.tierchip{align-self:flex-start;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;border-radius:999px;padding:3px 10px;background:var(--milk);border:1.5px solid currentColor}
.tier-green .tierchip{color:#4F6B47}
.tier-black .tierchip{color:#2E2B27}
.twosides{display:grid;grid-template-columns:minmax(140px,190px) 1fr;gap:18px;align-items:start}
.twosides figure{margin:0;display:flex;flex-direction:column;gap:10px}
.twosides .gameshot{width:100%}
.twosides .visualnote{grid-column:1/-1;justify-self:center;text-transform:none;letter-spacing:0;font-size:14px}
.sidelabel{font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--ink)}
.caselinks{display:flex;flex-wrap:wrap;gap:16px 36px;padding:10px 0 50px}
.caselinks a{border-bottom:1px solid var(--text);padding-bottom:8px;font-size:17px}
.caselinks a::after{content:" ↗";color:var(--red)}
/* Max Flow Art slides: a quiet gallery wall so the paintings carry the
   colour. Artwork keeps its own proportions (no cropping except labelled
   details). */
.theme-mfa .slide{--wall:#F2F0EB;--ink:#1D1C1A;--soft:#5C5A55;background:var(--wall);color:var(--ink);font-family:Arial,Helvetica,sans-serif}
.theme-mfa .slide .label{color:var(--soft);letter-spacing:.12em}
.theme-mfa .slidetext h3{font-weight:700;letter-spacing:-.03em;color:var(--ink)}
.theme-mfa .slidetext p{color:var(--ink);font-weight:400}
.theme-mfa .slidevisual figcaption.label{text-transform:none;letter-spacing:.02em;font-size:13px;color:var(--soft)}
.artwork,.photo{display:block;max-width:100%;height:auto;box-shadow:0 10px 28px rgba(0,0,0,.18)}
.artpair{display:grid;grid-template-columns:3fr 2fr;gap:20px;align-items:end;width:100%}
.artpair figure,.artdetails figure,.lightrow figure{margin:0;display:flex;flex-direction:column;gap:10px}
.artdetails{display:grid;grid-template-columns:2fr 1fr;gap:16px;align-items:start;width:100%}
.detailstack{display:flex;flex-direction:column;gap:14px}
.lightrow{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;width:100%}
.lightrow .artwork{width:100%}
.photo.wide{width:100%}
.photo.cover{width:min(100%,320px)}
/* Painting carousel: a fixed-height stage so the page doesn't jump between
   paintings; each painting is shown whole at its own proportions. */
.artgallery{margin:0 0 90px}
.galleryitem{margin:0;display:flex;flex-direction:column;align-items:center;gap:16px}
.artgallery:not(.is-deck) .galleryitem{margin-bottom:50px}
.gallerymedia{height:min(70vh,640px);width:100%;display:flex;align-items:center;justify-content:center}
.gallerymedia img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;box-shadow:0 18px 50px rgba(0,0,0,.45)}
.galleryitem figcaption{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 14px;text-align:center}
.gtitle{font-size:18px;color:var(--text)}
.gmeta{font-size:14px;color:var(--muted)}
.galleryitem:focus{outline:none}
.gallerybar{display:flex;flex-direction:column;align-items:center;gap:18px;margin-top:26px}
.gallerythumbs{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.gallerythumbs button{width:62px;height:62px;padding:4px;border:1px solid var(--line);border-radius:6px;background:#1a1a19;cursor:pointer;display:flex;align-items:center;justify-content:center}
.gallerythumbs img{max-width:100%;max-height:100%;width:auto;height:auto;display:block;opacity:.7}
.gallerythumbs button:hover{border-color:var(--red)}
.gallerythumbs button:hover img,.gallerythumbs button[aria-current] img{opacity:1}
.gallerythumbs button[aria-current]{border-color:var(--text)}
/* About and Contact pages */
.portrait{margin:0;width:min(100%,280px)}
.about .portrait{margin-top:30px}
.portrait img{display:block;width:100%;height:auto;border-radius:6px}
.portrait figcaption{margin-top:12px;font-size:14px;font-style:italic;color:var(--muted)}
.pagehead{padding:60px 0 40px}
.pagehead h1.title{margin:28px 0 0}
.pagebody{display:grid;grid-template-columns:1fr 2fr;gap:50px;border-top:1px solid var(--line);padding:45px 0 90px}
.contactlinks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;align-items:flex-start;gap:34px}
.contactlinks li{display:flex;flex-direction:column;align-items:flex-start;gap:10px;max-width:100%}
.contactlinks .contactemail{overflow-wrap:anywhere}
.footerslim .fine{padding-top:0}
.contactemail{font-size:clamp(24px,3vw,40px);letter-spacing:-.02em;border-bottom:1px solid var(--text);padding-bottom:6px}
.caserecord{border-top:1px solid var(--line);padding:40px 0 60px}
.caserecord>h2.label{font:inherit;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);margin:0 0 30px}
.recordgrid{display:grid;grid-template-columns:1.2fr 1fr .8fr;gap:50px}
.recordgrid h3{font-size:18px;font-weight:600;margin:0 0 14px;letter-spacing:-.01em}
.recordgrid h3:not(:first-child){margin-top:30px}
.recordgrid ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.recordgrid li{font-size:16px;line-height:1.55;color:var(--muted)}
.recordgrid strong{color:var(--text);font-weight:600}
.presslinks a{color:var(--text);border-bottom:1px solid var(--text);padding-bottom:4px;line-height:1.7}
.presslinks a::after{content:" ↗";color:var(--red)}
.deckdots{display:flex;justify-content:center;gap:10px;margin-top:22px}
.deckdots button{width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:none;cursor:pointer;font-size:13px;color:var(--muted)}
.deckdots button:hover{border-color:var(--red);color:var(--red)}
.deckdots button[aria-current]{background:var(--text);border-color:var(--text);color:var(--bg)}
.caseend{display:flex;justify-content:flex-start;padding:0 0 90px}
@media(max-width:1000px){
.slide{grid-template-columns:1fr;gap:36px}
}
@media(max-width:760px){
.casehead{padding:40px 0 30px}
.casesummary{grid-template-columns:1fr;gap:20px;padding:30px 0 45px}
.caseprose p{font-size:18px}
.casevideo{margin-bottom:50px}
.deckhead{flex-direction:column;align-items:flex-start}
.deckcontrols{width:100%;justify-content:space-between}
.slidetext p{font-size:17px}
.phonepair{gap:14px}
.flowsplit{grid-template-columns:1fr}
.rolesplit{grid-template-columns:1fr;justify-items:center}
.twosides{grid-template-columns:1fr;justify-items:center}
.twosides figure{width:min(100%,420px)}
.twosides .gameshot{width:min(100%,220px);align-self:center}
.tilerow.small{justify-content:center}
.roles{width:100%}
.caseend{padding-bottom:60px}
}

@media(max-width:760px){
.pagehead{padding:40px 0 30px}
.pagebody{grid-template-columns:1fr;gap:28px;padding:30px 0 60px}
.portrait{width:min(100%,240px)}
.recordgrid{grid-template-columns:1fr;gap:30px}
.artgallery{margin-bottom:60px}
.gallerystage{height:auto}
.gallerymedia{height:min(92vw,520px)}
.artpair,.artdetails{grid-template-columns:1fr}
.detailstack{flex-direction:row}
.detailstack figure{flex:1}
.lightrow{gap:8px}
}
/* Standard 16:9 slides (Max, 2026-10-21). On screens 900px and wider every
   slide keeps a 16:9 frame and its contents scale with the frame's width
   (cqi units: 1cqi is 1% of the slide), like a presentation. Narrower
   screens keep the stacked layout above, where slides grow taller rather
   than shrink their text. */
@media(min-width:900px){
.slides{container-type:inline-size}
.slide,.theme-asto .slide{aspect-ratio:16/9;overflow:hidden;grid-template-columns:5fr 6fr;gap:4cqi;padding:4.2cqi 5cqi;border-radius:2.4cqi}
.slide .label{font-size:1.05cqi}
.slidekicker{gap:1cqi}
.slidekicker img{width:2.5cqi;height:2.5cqi}
.astomark{font-size:1.7cqi}
.slidetext h3{font-size:3.5cqi;margin:1.5cqi 0 1.8cqi}
.slidetext p{font-size:1.45cqi;max-width:none;margin-bottom:1.1cqi}
.slidepunch{font-size:1.95cqi!important}
.slidevisual{gap:1.3cqi;max-height:100%}
.slidevisual figcaption.label,.visualnote.label,.twosides .visualnote{font-size:1.15cqi}
.visualnote.small{font-size:1.05cqi}
/* Context Scout */
.phone{width:auto;height:38cqi}
.phonepair{gap:2cqi}
.phonepair .phone{height:33cqi}
.phonepair figure{gap:1cqi}
.observations{gap:1cqi}
.observations li{font-size:2.3cqi;padding:1.2cqi 1.8cqi;border-radius:1.4cqi}
.observations li:nth-child(even){margin-left:3.5cqi}
.flow{gap:1.1cqi}
.flowsplit{gap:1.4cqi}
.flowpath{gap:.8cqi}
.flownode{padding:1.2cqi 1.4cqi;border-radius:1.4cqi}
.flownode strong{font-size:1.5cqi}
.flowsmall{font-size:1.15cqi}
.flowarrow{font-size:1cqi;padding-left:1.4cqi}
.rolesplit{gap:2.4cqi}
.rolesplit .phone{height:36cqi}
.roles{gap:1.3cqi}
.roles>div{padding:1.4cqi 1.6cqi;border-radius:1.4cqi}
.roles dd{font-size:1.4cqi;padding:.5cqi 0}
/* ASTO */
.tilerow{gap:.7cqi}
.tile{font-size:1.75cqi;padding:1.15cqi 1.3cqi;border-radius:1.2cqi;min-width:0}
.op{font-size:1.9cqi}
.tileread{font-size:1.75cqi}
.slidevisual.annotated{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:1.4cqi 2.4cqi}
.slidevisual.annotated figcaption{grid-column:1/-1;justify-self:center}
.annotatedshot{width:24cqi;margin-left:1.2cqi}
.gameshot{border-radius:1.5cqi}
.pin{width:2.5cqi;height:2.5cqi;font-size:1.25cqi}
.pinnotes{gap:1cqi}
.pinnotes li{grid-template-columns:2.1cqi 1fr;gap:.9cqi;font-size:1.35cqi}
.pinnotes li::before{width:2.1cqi;height:2.1cqi;font-size:1.1cqi}
.phases{gap:1.9cqi}
.phases li{padding:1.05cqi 1.3cqi 1.05cqi 4.6cqi;border-radius:1.5cqi;gap:.3cqi 1cqi}
.phases li+li::before{top:-1.85cqi;left:2.25cqi;font-size:1.35cqi}
.phasenum{left:1.2cqi;top:1.05cqi;width:2.3cqi;height:2.3cqi;font-size:1.15cqi}
.phases strong{font-size:1.6cqi}
.phasedesc{font-size:1.2cqi}
.tag{font-size:.95cqi;padding:.25cqi .75cqi}
.revisionnote{font-size:1.2cqi}
.setcards{gap:1.3cqi}
.setcard{padding:1.25cqi 1.5cqi;gap:.75cqi;border-radius:1.7cqi}
.tilerow.small .tile{font-size:1.3cqi;padding:.65cqi .8cqi;border-radius:.9cqi}
.tilerow.small .op{font-size:1.4cqi}
.setcard em{font-size:1.35cqi}
.setwhy{font-size:1.25cqi}
.tierchip{font-size:.95cqi}
.twosides{display:flex;flex-direction:column;gap:1.4cqi;width:100%}
.twosides figure{gap:.7cqi}
.twosides .gameshot{width:17cqi}
.studioshot{border-radius:1.3cqi}
.sidelabel{font-size:1cqi}
/* Max Flow Art */
.theme-mfa .slide{grid-template-columns:4fr 7fr}
.theme-mfa .slidevisual figcaption.label{font-size:1.1cqi}
.artpair{gap:1.8cqi;grid-template-columns:auto auto;justify-content:center;align-items:end}
.artpair .artmain .artwork{max-height:41cqi;width:auto;height:auto}
.artpair .artside .photo{width:17cqi}
.artdetails{grid-template-columns:auto auto;justify-content:center;gap:1.6cqi}
.artdetails .artmain .artwork{max-height:42.5cqi;width:auto;height:auto}
.detailstack{gap:1.2cqi}
.detailstack .artwork{width:18.5cqi}
.lightrow{grid-template-columns:repeat(3,auto);justify-content:center;gap:1.6cqi}
.lightrow .artwork{max-height:39.5cqi;width:auto;height:auto}
.photo.wide{max-height:34cqi;width:auto;height:auto}
.photo.cover{max-height:42cqi;width:auto;height:auto}
.artpair figure,.artdetails figure,.lightrow figure{gap:.8cqi}
}
/* The orange word, shaken loose, falls down the page (site/hero.js). */
.fallers{position:absolute;left:0;top:0;width:100%;overflow:hidden;pointer-events:none;z-index:5;color:var(--red);text-transform:uppercase}
.fallers span{position:absolute;left:0;top:0;display:block;text-align:center;transform-origin:50% 50%;white-space:nowrap}
.portal{position:absolute;z-index:7;display:flex;flex-direction:column;align-items:center;gap:12px;padding:0;border:0;background:none;font:inherit;color:var(--red);cursor:pointer;transform:translateX(-50%) scale(0);opacity:0;transition:transform .5s cubic-bezier(.3,1.5,.5,1),opacity .3s ease}
div.portal{pointer-events:none;z-index:4}
.portal.open{transform:translateX(-50%) scale(1);opacity:1}
.portalring{display:block;width:150px;height:150px;border-radius:50%;background:radial-gradient(circle,#050505 0 36%,rgba(5,5,5,0) 46%),conic-gradient(from 0deg,#ff563d,#ffc2a6,#8a2414,#ff563d,#ffd9c7,#b8321d,#ff563d);box-shadow:0 0 28px rgba(255,86,61,.55),0 0 80px rgba(255,86,61,.25);animation:portal-spin 2.4s linear infinite}
.portal:hover .portalring,.portal:focus-visible .portalring{animation-duration:.9s}
.portal:focus-visible{outline:2px solid var(--red);outline-offset:6px;border-radius:12px}
.portallabel{font-size:13px;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap;background:var(--bg);border:1px solid currentColor;border-radius:999px;padding:8px 16px}
.portal:hover .portallabel,.portal:focus-visible .portallabel{background:var(--red);color:var(--bg)}
@keyframes portal-spin{to{transform:rotate(1turn)}}
/* Ghosts of the fallen letters rise into the empty word and drift; they
   dissipate as the real letters return (site/hero.js). */
.heroletters.ghost span{color:transparent;background:linear-gradient(180deg,rgba(248,242,238,.42) 12%,rgba(242,226,220,.2) 58%,rgba(240,220,214,0) 100%);-webkit-background-clip:text;background-clip:text;animation:ghost-rise 1.8s cubic-bezier(.2,.7,.3,1) var(--d,0s) both,ghost-float 3.2s ease-in-out calc(var(--d,0s) + 1.8s) infinite}
.heroletters.ghost.ghost-out span{animation:ghost-out .7s ease-in var(--o,0s) both}
@keyframes ghost-rise{0%{opacity:0;transform:translateY(60%) scaleY(1.5);filter:blur(9px) drop-shadow(0 0 0 rgba(255,110,90,0))}55%{opacity:1}100%{opacity:1;transform:none;filter:blur(1.2px) drop-shadow(0 0 18px rgba(255,110,90,.7))}}
@keyframes ghost-float{0%,100%{transform:translateY(0) skewX(0)}50%{transform:translateY(-6px) skewX(-3deg)}}
@keyframes ghost-out{from{opacity:1;filter:blur(1.2px) drop-shadow(0 0 18px rgba(255,110,90,.7))}to{opacity:0;transform:translateY(-35%) scale(1.15);filter:blur(10px) drop-shadow(0 0 0 rgba(255,110,90,0))}}
/* The O of "into" becomes the portal the letters come home through. */
h1 .into .heroletters span{transition:color .35s ease,text-shadow .35s ease}
h1 .into .heroletters span.portal-o{color:var(--red);text-shadow:0 0 16px rgba(255,86,61,.85),0 0 48px rgba(255,86,61,.5),0 0 90px rgba(255,86,61,.3);animation:o-portal .9s ease-in-out infinite}
@keyframes o-portal{0%,100%{transform:scale(1) rotate(0)}50%{transform:scale(1.08) rotate(8deg)}}
/* The burst when the word breaks loose. */
.fallers .burst{position:absolute;width:0;height:0}
.fallers .burst span{position:absolute;left:0;top:0;border-radius:50%;pointer-events:none}
.burstflash{width:260px;height:260px;margin:-130px 0 0 -130px;background:radial-gradient(circle,rgba(255,236,220,.95) 0,rgba(255,120,90,.6) 30%,rgba(255,86,61,0) 70%);animation:burst-flash .35s ease-out both}
.burstring{width:60px;height:60px;margin:-30px 0 0 -30px;border:4px solid var(--red);animation:burst-ring .6s cubic-bezier(.1,.7,.3,1) both}
.fallers .burst .spark{width:16px;height:4px;margin:-2px 0 0 -8px;border-radius:2px;background:#ffc9b5;box-shadow:0 0 8px var(--red);transform:rotate(var(--r));animation:burst-spark .6s cubic-bezier(.1,.8,.3,1) both}
@keyframes burst-flash{from{opacity:1;transform:scale(.3)}to{opacity:0;transform:scale(1.4)}}
@keyframes burst-ring{from{opacity:1;transform:scale(.2);border-width:6px}to{opacity:0;transform:scale(7);border-width:1px}}
@keyframes burst-spark{from{opacity:1;transform:translate(0,0) rotate(var(--r)) scaleX(1.6)}to{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--r)) scaleX(.3)}}
/* A small cursor clicking the period beside the orange word, and the
   headline's occasional teases (site/hero.js; mouse only, until a word is
   hovered). */
.herohint{position:absolute;display:flex;align-items:center;pointer-events:none;opacity:0;transition:opacity .6s ease}
.herohint.show{opacity:1}
.hintcursor{position:relative;display:block;width:24px;height:24px;color:var(--text);transform-origin:5px 3px}
.herohint.show .hintcursor{animation:hint-click 2.6s ease-in-out infinite}
.hintcursor svg{display:block;width:24px;height:24px}
.hintring{position:absolute;left:5px;top:3px;width:10px;height:10px;margin:-5px 0 0 -5px;border:1.5px solid var(--text);border-radius:50%;opacity:0}
.herohint.show .hintring{animation:hint-ring 2.6s ease-out infinite}
@keyframes hint-click{0%,100%{transform:translate(16px,14px)}35%{transform:translate(0,0) scale(1)}42%{transform:translate(0,0) scale(.8)}50%,70%{transform:translate(0,0) scale(1)}}
@keyframes hint-ring{0%,40%{opacity:0;transform:scale(.4)}44%{opacity:1}75%,100%{opacity:0;transform:scale(2.6)}}
h1 .eye-i.tease .eye-letter{opacity:0}
h1 .eye-i.tease .eyeart{opacity:1;transform:translate(-50%,-50%) scale(1);animation:eye-blink .5s ease-in-out .35s}
h1 .turn.tease{animation:turn-nudge .8s ease-in-out}
@keyframes turn-nudge{0%,100%{transform:perspective(800px) rotateY(0)}35%{transform:perspective(800px) rotateY(38deg)}70%{transform:perspective(800px) rotateY(-12deg)}}
h1 .idea.tease{animation:idea-flicker 1s ease-out}
@keyframes idea-flicker{0%,100%{color:inherit;text-shadow:none}15%,45%{color:#fff6d6;text-shadow:0 0 18px rgba(255,214,110,.7),0 0 50px rgba(255,190,70,.35)}30%{color:inherit;text-shadow:none}}
h1 .accent.tease .heroletters span{animation:word-shiver .7s ease-in-out}
@keyframes word-shiver{0%,100%{transform:none}20%{transform:translate(-2px,1px) rotate(-1.5deg)}40%{transform:translate(2px,-1px) rotate(1.5deg)}60%{transform:translate(-1px,0) rotate(-1deg)}80%{transform:translate(1px,0) rotate(.5deg)}}
.heroletters span.hint-target{animation:period-click 2.6s ease-in-out infinite}
@keyframes period-click{0%,41%,60%,100%{transform:none}46%{transform:translateY(3%) scale(1.25,.75)}53%{transform:translateY(-4%) scale(.9,1.12)}}
/* A little Colorado flag sprouts out of the top of the last R of "Producer" on mouse hover and
   waves (the label no longer names the state; this is the easter egg). */
.hero .label .colorado{position:relative;display:inline-block;z-index:0}
.hero .label .co-r{position:relative;display:inline-block}
.coflag{position:absolute;left:-.0225em;bottom:.92em;width:40px;height:46px;overflow:visible;pointer-events:none}  /* pole lines up with the R's stem: 1.5px wide, .06em in; base at the cap top */
.coflag .pole{transform-origin:1.75px 46px;transform:scaleY(0);transition:transform .22s ease-out}
.coflag .cloth{transform-origin:3px 1px;transform:scale(0);transition:transform .4s cubic-bezier(.3,1.6,.5,1) .12s}
@media(hover:hover) and (pointer:fine){
.hero .label .colorado:hover .pole{transform:scaleY(1)}
.hero .label .colorado:hover .cloth{transform:scale(1);animation:co-wave 1.4s ease-in-out .55s infinite}
}
@keyframes co-wave{0%,100%{transform:skewY(0) scaleX(1)}30%{transform:skewY(-5deg) scaleX(.95)}65%{transform:skewY(3deg) scaleX(.98)}}
@media(prefers-reduced-motion:reduce){.coflag .pole,.coflag .cloth{transition:none}.hero .label .colorado:hover .cloth{animation:none}}
/* Live Experiences photo grid: justified rows. Each item's width follows its
   photo's proportions (--r = width / height), so every row shares one height
   and nothing is cropped. The two tasting-pavilion photos share one item so
   they always sit side by side. Order follows the markup on every screen. */
.photogrid{margin:0 0 90px;--gap:12px;--rowh:240px}
.pgrid{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:var(--gap)}
.pgrid::after{content:"";flex:999 1 0}  /* keeps a short last row at natural size */
.pgrid>li{flex:var(--r) 1 calc(var(--r) * var(--rowh));min-width:0}
.pgrid>li.pgpair{display:flex;gap:var(--gap);flex-basis:calc(var(--r) * var(--rowh) + var(--gap))}  /* the extra gap keeps its photos the same height as the row */
.pgpair .pgitem{flex:var(--r) 1 0;min-width:0}
.pgitem{display:block;border-radius:4px;overflow:hidden;background:#1b1916}
.pgitem img{display:block;width:100%;height:auto;transition:transform .3s ease,opacity .3s ease}
.pgitem:hover img{transform:scale(1.02);opacity:.9}
.pgitem:focus-visible{outline:2px solid var(--red);outline-offset:4px}
@media(max-width:760px){.photogrid{--gap:8px;--rowh:130px;margin-bottom:60px}.pgrid::after{display:none}}
@media(prefers-reduced-motion:reduce){.pgitem img{transition:none}.pgitem:hover img{transform:none}}
/* Photo viewer (a native <dialog>: Escape closes it, focus stays inside) */
.lightbox{border:0;padding:20px;margin:0;width:100vw;height:100vh;max-width:none;max-height:none;background:transparent;color:var(--text)}
.lightbox::backdrop{background:rgba(10,10,10,.94)}
.lightbox[open]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}
.lbclose{position:absolute;top:20px;right:20px}
.lbfig{margin:0;display:flex;flex-direction:column;align-items:center;gap:12px;min-height:0}
.lbimg{display:block;max-width:min(100%,1200px);max-height:calc(100vh - 190px);width:auto;height:auto;border-radius:4px}
.lbdesc{font-size:15px;color:var(--muted);text-align:center}
.lbnav{display:flex;align-items:center;gap:18px}
body:has(.lightbox[open]){overflow:hidden}

/* Homepage Live Experiences photo: stage lights pulse and sweep over the
   party photo. Bold but never fast: each pulse takes a second or more, well
   under the three-flashes-a-second safety limit. Still for anyone who asks
   for reduced motion. Glows sit on the photo's own light sources (warm spots
   left and right, blue wash over the stage); beams sweep across the crowd. */
.partylights::before,.partylights::after{content:"";position:absolute;inset:-15%;pointer-events:none;mix-blend-mode:screen}
.partylights::before{background:
  radial-gradient(24% 30% at 12% 45%,rgba(255,90,140,.7),transparent 70%),
  radial-gradient(22% 28% at 87% 43%,rgba(255,140,80,.65),transparent 70%),
  radial-gradient(30% 34% at 50% 52%,rgba(110,80,255,.6),transparent 72%);
  animation:pl-warm 5s ease-in-out infinite}
.partylights::after{background:
  conic-gradient(from 180deg at 50% 62%,transparent 0deg,rgba(255,70,170,.3) 10deg,transparent 22deg,transparent 60deg,rgba(255,180,90,.22) 70deg,transparent 82deg,transparent 278deg,rgba(90,140,255,.25) 290deg,transparent 302deg,transparent 336deg,rgba(150,90,255,.3) 348deg,transparent 360deg);
  animation:pl-sweep 8s ease-in-out infinite}
.partylights img{animation:pl-lift 5s ease-in-out infinite}
@keyframes pl-warm{0%,100%{opacity:.35}25%{opacity:.9}50%{opacity:.5}75%{opacity:1}}
@keyframes pl-sweep{0%,100%{opacity:.5;transform:rotate(-12deg)}50%{opacity:.9;transform:rotate(12deg)}}
@keyframes pl-lift{0%,100%{filter:brightness(.97)}25%,75%{filter:brightness(1.06) saturate(1.1)}}
@media(prefers-reduced-motion:reduce){.partylights::before,.partylights::after,.partylights img{animation:none}.partylights::before,.partylights::after{opacity:.6}}
/* Side Quests (site/side-quests.html): a hidden page reached by clicking the
   About portrait. Each quest is a row: what and when on the left, photos on
   the right; photos open in the shared viewer (lightbox.js). */
.portraitlink{display:block;border-radius:6px}
.portraitlink img{transition:transform .35s ease,box-shadow .35s ease}
.portraitlink:hover img,.portraitlink:focus-visible img{transform:rotate(-1.5deg) scale(1.02);box-shadow:0 0 0 2px var(--red),0 14px 40px rgba(255,86,61,.25)}
.portraitlink:focus-visible{outline:none}
.questhead .standfirst{margin-bottom:0}
.quests{padding-bottom:40px}
.quest{display:grid;grid-template-columns:1fr 2fr;gap:50px;border-top:1px solid var(--line);padding:45px 0}
.questdone{color:var(--red)}
.questmeta h2{font-size:clamp(28px,3vw,40px);line-height:1.1;letter-spacing:-.02em;margin:16px 0 16px}
.questmeta p{font-size:18px;line-height:1.6;color:var(--muted);margin:0 0 18px}
.questmeta .action{display:flex}
.questmedia{min-width:0}
.questshot{margin:0;max-width:640px}
.questshot figcaption{margin-top:10px;font-size:14px;color:var(--muted)}
.quest#cliff .questshot,.quest#raft .questshot{max-width:340px}
.triple{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.triple .questshot{max-width:none}
.filmcard{display:flex;flex-direction:column;justify-content:flex-end;gap:6px;max-width:640px;aspect-ratio:16/9;padding:28px;border-radius:4px;border:1px solid var(--line);background:radial-gradient(120% 90% at 80% 10%,#2a3a52 0%,#121518 60%),#121518;position:relative;overflow:hidden}
.filmcard:hover{color:var(--text);border-color:var(--red)}
.filmplay{position:absolute;top:50%;left:50%;width:72px;height:72px;margin:-36px 0 0 -36px;border-radius:50%;border:2px solid var(--text);transition:border-color .2s}
.filmplay::after{content:"";position:absolute;left:28px;top:22px;border-style:solid;border-width:14px 0 14px 22px;border-color:transparent transparent transparent var(--text)}
.filmcard:hover .filmplay{border-color:var(--red)}
.filmtitle{font-size:clamp(24px,3vw,36px);letter-spacing:-.02em;font-weight:700;position:relative}
.filmmeta{font-size:14px;color:var(--muted);position:relative}
.creds{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.creds li{display:grid;grid-template-columns:1fr auto;gap:4px 20px;padding:16px 0;border-bottom:1px solid var(--line)}
.creds li:first-child{padding-top:0}
.creds strong{font-size:18px;font-weight:600}
.creds span{grid-column:1;font-size:15px;color:var(--muted);line-height:1.5}
.creds a{grid-column:2;grid-row:1 / span 2;align-self:center;font-size:15px;border-bottom:1px solid var(--text);padding-bottom:3px}
.creds a::after{content:" ↗";color:var(--red)}
@media(max-width:760px){
.quest{grid-template-columns:1fr;gap:22px;padding:32px 0}
.triple{grid-template-columns:1fr}
.quest#cliff .questshot,.quest#raft .questshot{max-width:260px}
.filmcard{padding:20px}
.creds li{grid-template-columns:1fr}
.creds a{grid-column:1;grid-row:auto;justify-self:start;margin-top:6px}
}
@media(prefers-reduced-motion:reduce){.portraitlink img{transition:none}.portraitlink:hover img{transform:none}}
