/* TURRIAGO.AI V25 case pages. Loaded after home-v25.css: shared type, docks, menu, cursor and footer come from there.
   The project viewer rules (framed window, live preview, full-resolution dialog) are copied unchanged from V02 below. */
:root{--cream:var(--ink);--gray:#ece6dab3;--gut:clamp(16px,1.6vw,32px)}
.mono{font-family:var(--mono);letter-spacing:.06em;text-transform:uppercase}

/* the docks are the top bar here (as on phones), so the desktop header row is hidden */
.case .top{display:none}

/* arrival: the red curtain that covered the last page lifts off this one */
.curtain.out{transform:translateY(-101%)}
.entering .curtain{transition:none}

/* ---------- hero ---------- */
.case-hero{padding-top:clamp(96px,11vw,170px);padding-bottom:clamp(56px,7vw,110px)}
.case-row{display:flex;justify-content:space-between;align-items:end;gap:20px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.case-crumbs{display:flex;flex-wrap:wrap;gap:.7em;color:var(--dim)}
.case-crumbs a{color:var(--ink)}
.case-crumbs [aria-current]{color:var(--ink)}
.case-count{color:var(--dim);white-space:nowrap}
.case-title{margin:clamp(28px,4vw,64px) 0 0;font:400 clamp(52px,12.4vw,230px)/.86 var(--sans);letter-spacing:-.055em;text-transform:uppercase;text-wrap:balance}
.case-title i,.case-title .ci{letter-spacing:-.02em;margin:0 .03em 0 .01em}
.case-title .star,.case-next-name .star{font-size:.3em;vertical-align:.12em}
.case-cols{display:grid;grid-template-columns:3fr 8fr;gap:clamp(18px,3vw,56px);margin-top:clamp(40px,6vw,96px);padding-top:22px;border-top:1px solid var(--line)}
.case-facts{display:grid;gap:22px;align-content:start}
.case-facts dt{color:var(--dim);margin-bottom:6px}
.case-facts dd{margin:0;font-size:clamp(14px,1.05vw,17px);line-height:1.45;max-width:30ch}
.case-facts a{border-bottom:1px solid;border-image:var(--prism) 1;transition:color .3s}
.case-facts a:hover{color:var(--red)}
.case-copy{max-width:62rem}
.case-lede{font:400 clamp(28px,3.6vw,62px)/1.02 var(--sans);letter-spacing:-.04em;text-wrap:balance;margin-bottom:clamp(24px,3vw,44px)}
.case-lede strong{font-weight:400}
.case-copy>p:not(.case-lede){max-width:56ch;font-size:clamp(15px,1.15vw,18px);line-height:1.55;color:#ece6dad9;text-wrap:pretty}
.case-copy>p+p:not(.case-lede){margin-top:1em}
.case-copy strong{font-weight:500;color:var(--ink)}

/* ---------- viewer sections keep their own spacing (home sets padding on every section) ---------- */
section.mini-web{padding:0}
section.live-web{padding:0 var(--pad)}
.mini-web-meta,.live-web .mini-web-meta{font-family:var(--mono);text-transform:uppercase;letter-spacing:.06em}

/* ---------- live-system link (no window) ---------- */
section.case-link-only{padding:clamp(40px,6vw,100px) var(--pad);border-top:0}
.case .case-link-only a{border-radius:10px;font:400 clamp(40px,8vw,140px)/.92 var(--sans);letter-spacing:-.05em;text-transform:uppercase;border-color:var(--line);background:#0c0c0c}
.case .case-link-only a:hover,.case .case-link-only a:focus-visible{background:var(--red);border-color:var(--red)}

/* ---------- CTA ---------- */
.case-cta{border-top:1px solid var(--line);margin:0 var(--pad);padding-left:0;padding-right:0}
.case-cta .display{margin-top:clamp(18px,2vw,30px);font-size:clamp(40px,7vw,128px)}
.case-cta .c-violet{color:var(--violet)}
.wc.c-violet{color:#ece6da33}
.wc.c-violet.wv{color:var(--wave)}
.wc.c-violet.on{color:var(--violet)}
.case-pill{margin-top:clamp(28px,3.4vw,52px)}

/* ---------- next project ---------- */
.case-next{display:block;margin:0 var(--pad) clamp(40px,6vw,90px);padding-top:22px;border-top:1px solid var(--line)}
.case-next .label{color:var(--dim)}
.case-next-name{margin-top:clamp(14px,2vw,28px);display:flex;align-items:baseline;justify-content:space-between;gap:20px;font:400 clamp(44px,10vw,190px)/.9 var(--sans);letter-spacing:-.055em;text-transform:uppercase}
.case-next-name i{letter-spacing:-.02em;margin:0 .03em 0 .01em}
.case-next-arrow{font-size:.6em;transition:transform .6s var(--ease),color .3s}
.case-next:hover .case-next-arrow{transform:translate(.08em,-.08em);color:var(--red)}

@media(max-width:820px){
  .case-hero{padding-top:92px}
  .case-row{flex-direction:column;align-items:flex-start;gap:10px}
  .case-cols{grid-template-columns:1fr;gap:34px}
  .case-next-name{font-size:12vw}
}

/* ---------- project viewer (unchanged from V02) ---------- */
.gallery-image{display:block;width:100%;padding:0;border:0;background:#101010;cursor:zoom-in;overflow:hidden}.gallery-image img{display:block;width:100%;max-height:1050px;height:auto;object-fit:contain;margin:auto}.image-viewer{position:fixed;inset:0;width:100vw;height:100svh;max-width:none;max-height:none;border:0;padding:0;margin:0;background:#080808;color:var(--cream);overflow:hidden}.image-viewer::backdrop{background:#000}.viewer-bar{height:70px;padding:0 24px;display:flex;justify-content:space-between;gap:24px;align-items:center;position:absolute;inset:0 0 auto;z-index:3;background:#080808e8}.viewer-title{font:11px "IBM Plex Mono";max-width:35%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.viewer-actions{display:flex;align-items:center;gap:8px}.viewer-actions button,.viewer-arrow{background:#161616;color:var(--cream);border:1px solid #ffffff30;padding:10px 12px;cursor:pointer;font:11px "IBM Plex Mono"}.viewer-stage{position:absolute;inset:70px 0 50px;overflow:hidden;touch-action:none;cursor:zoom-in}.viewer-stage.zoomed{cursor:grab}.viewer-stage.dragging{cursor:grabbing}.viewer-stage img{position:absolute;max-width:none;max-height:none;top:50%;left:50%;transform-origin:center;user-select:none;-webkit-user-drag:none;will-change:transform;transition:opacity .2s}.viewer-stage img.loading-image{opacity:.4}.viewer-bottom{height:50px;position:absolute;inset:auto 24px 0;display:flex;align-items:center;justify-content:space-between;font:10px "IBM Plex Mono";color:var(--gray)}.viewer-arrow{position:absolute;top:50%;z-index:3;font-size:22px}.viewer-prev{left:16px}.viewer-next{right:16px}.viewer-status{position:absolute;inset:45% 0 auto;text-align:center;font:11px "IBM Plex Mono";pointer-events:none}.image-viewer:modal{display:block}body:has(.image-viewer[open]){overflow:hidden}@media(max-width:700px){.viewer-bar{height:100px;padding:15px;flex-wrap:wrap;gap:10px;align-content:center}.viewer-title{max-width:100%;width:100%;font-size:9px}.viewer-actions{width:100%;justify-content:space-between;gap:4px}.viewer-actions button{font-size:9px;padding:8px}.viewer-stage{top:100px}.viewer-arrow{font-size:18px;padding:6px}.viewer-bottom{inset:auto 12px 0;font-size:8px;gap:12px}.viewer-bottom>span:last-child{max-width:60%;text-align:right}}.mini-web{height:260vh;position:relative;margin:0 0 70px}.mini-web-sticky{position:sticky;top:0;height:100svh;display:flex;flex-direction:column;justify-content:center;gap:16px;padding:90px var(--pad) 24px}.mini-web-meta{display:flex;justify-content:space-between;color:var(--gray);font-size:10px}.mini-web-frame{flex:1;min-height:0;display:flex;flex-direction:column;border:1px solid #ffffff1f;border-radius:12px;overflow:hidden;background:#0c0c0c;box-shadow:0 40px 90px #000a}.mini-web-bar{display:flex;align-items:center;gap:7px;height:38px;padding:0 14px;background:#161616;border-bottom:1px solid #ffffff14}.mini-web-bar i{width:10px;height:10px;border-radius:50%;background:#ffffff26}.mini-web-bar i:first-child{background:var(--red)}.mini-web-url{margin:0 auto;padding:5px 18px;border-radius:20px;background:#ffffff0d;color:var(--gray);font:10px "IBM Plex Mono"}.mini-web-view{flex:1;min-height:0;overflow:hidden;position:relative}.mini-web-track{will-change:transform}.mini-web-track img{display:block;width:100%;height:auto}@media(prefers-reduced-motion:reduce){.mini-web{height:auto}.mini-web-sticky{position:relative;height:90svh}.mini-web-view{overflow-y:auto}}@media(max-width:700px){.mini-web{height:200vh}.mini-web-sticky{padding-top:85px}}.mini-web-zoom{cursor:zoom-in}.live-web{padding:0 var(--pad);margin:0 0 70px}.live-web .mini-web-meta{margin-bottom:16px}.live-web .mini-web-meta a{color:var(--cream);transition:color .25s}.live-web .mini-web-meta a:hover{color:var(--red)}.live-frame{height:min(88svh,980px)}.live-frame .mini-web-bar{position:relative}.live-frame .mini-web-url{position:absolute;left:50%;transform:translateX(-50%);margin:0}.live-devices{margin-left:auto;display:flex;gap:2px;background:#ffffff0d;border-radius:20px;padding:3px}.live-devices button{border:0;background:transparent;color:var(--gray);font:10px "IBM Plex Mono";padding:4px 12px;border-radius:16px;cursor:pointer}.live-devices button[aria-pressed=true]{background:var(--cream);color:#000}.live-open{font-size:10px;color:var(--cream);margin-left:14px}.live-open:hover{color:var(--red)}.live-view{flex:1;min-height:0;display:flex;justify-content:center;background:#0c0c0c center top/cover no-repeat}.live-view iframe{width:100%;height:100%;border:0;background:transparent;transition:width .6s cubic-bezier(.22,1,.36,1)}.live-frame[data-device=mobile] .live-view{background:#0c0c0c}.live-frame[data-device=mobile] iframe{width:390px;border-left:1px solid #ffffff14;border-right:1px solid #ffffff14}@media(max-width:700px){.live-frame{height:80svh}.live-devices{display:none}}.mini-web{margin:0 0 30px} /* height is set by case-v25.js: 0.7 screen of scroll per image */.mini-web-meta{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--gut);align-items:baseline}.mini-web-meta>span:first-child{grid-column:1/5}.mini-web-meta .mini-web-caption{grid-column:5/11;color:var(--cream);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mini-web-meta>span:last-child{grid-column:11/13}.mini-web-count{color:var(--red);font-weight:400}.mini-web-bar{position:relative}.mini-web-bar .mini-web-url{position:absolute;left:50%;transform:translateX(-50%);margin:0}.mini-web-hint{margin-left:auto;font-size:10px;color:var(--gray)}.mini-web-view{background:#0b0b0b}.mini-shot{display:block;width:100%;height:var(--slide-h,70vh);padding:clamp(14px,2vw,32px);border:0;background:transparent;cursor:zoom-in}.mini-shot img{display:block;width:100%;height:100%;object-fit:contain;transition:transform .6s cubic-bezier(.2,.7,.2,1)}.mini-shot:hover img{transform:scale(1.01)}.mini-web-track{transition:none}@media(max-width:700px){.mini-web-meta .mini-web-caption,.mini-web-hint{display:none}.mini-web-meta>span:first-child{grid-column:1/7}.mini-web-meta>span:last-child{grid-column:7/13;justify-self:end}}@media(max-width:700px){.mini-web-meta,.mini-web-hint{font-size:10px!important}}.case-link-only{padding:clamp(40px,8vw,130px) var(--pad);border-top:1px solid var(--line)}.case-link-only a{display:flex;align-items:center;justify-content:space-between;gap:30px;min-height:30vw;padding:clamp(28px,5vw,80px);border:1px solid #ffffff45;color:var(--cream);font:600 clamp(34px,7vw,110px)/1.02 "Chakra Petch";letter-spacing:.02em;transition:background .3s,color .3s,border-color .3s}.case-link-only a:hover,.case-link-only a:focus-visible{background:var(--violet);border-color:var(--violet);color:#fff}.case-link-only a span:last-child{font-size:.7em;flex:none}@media(max-width:700px){.case-link-only a{min-height:260px}}

/* ---------- small-screen fixes for the viewer chrome (labels never break word by word) ---------- */
.live-web .mini-web-meta{display:flex!important;justify-content:space-between;align-items:baseline;gap:16px}
.live-web .mini-web-meta>*{white-space:nowrap}
.mini-web-url{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:min(60%,420px)}
.live-open,.mini-web-hint{white-space:nowrap}
@media(max-width:700px){
  .live-open{display:none}
  .live-frame .mini-web-url{max-width:62%}
  .mini-web-url{max-width:calc(100% - 160px)}
}

/* "Open site in a new tab": a slow red→violet shimmer drifts through the letters, with a matching hairline under it */
.live-web .mini-web-meta a,.mini-web-hint,.case-facts a{position:relative;background:linear-gradient(90deg,var(--red) 0%,#ff2d63 20%,#c444e6 40%,var(--violet) 50%,#c444e6 60%,#ff2d63 80%,var(--red) 100%) 0 0/200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;animation:open-shimmer 6s linear infinite;padding-bottom:4px}
.live-web .mini-web-meta a::after,.case-facts a::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:inherit;background-clip:border-box;-webkit-background-clip:border-box;opacity:.55;transform-origin:left;transition:opacity .4s,transform .6s var(--ease)}
.live-web .mini-web-meta a:hover{color:transparent}
.live-web .mini-web-meta a:hover::after,.case-facts a:hover::after{opacity:1}
@keyframes open-shimmer{to{background-position:-200% 0}}

/* the shimmer link in the facts keeps the hairline drawn by ::after, not the old border */
.case-facts a{border-bottom:0}

/* project viewer: one snap stop per image on touch screens, so each swipe moves exactly one image */
.mini-web-stop{position:absolute;left:0;width:1px;height:1px;pointer-events:none;scroll-snap-align:start;scroll-snap-stop:always}
@media(pointer:coarse){html:has(.mini-web-stop){scroll-snap-type:y proximity}}

/* the full-resolution hint is a real button */
.mini-web-hint{cursor:pointer}
/* Video series (Animation Principles): one player in the browser frame, film list below */
.films .film-frame{max-width:calc((min(82svh,920px) - 38px) * 16 / 9);margin:0 auto}
.film-view{aspect-ratio:16/9;background:#000}
.film-view video{display:block;width:100%;height:100%;object-fit:contain;background:#000}
.films .mini-web-meta{max-width:calc((min(82svh,920px) - 38px) * 16 / 9);margin-left:auto;margin-right:auto}
.film-list{list-style:none;margin:20px auto 0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;max-width:calc((min(82svh,920px) - 38px) * 16 / 9)}
.film-pick{display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto auto;column-gap:8px;row-gap:10px;width:100%;padding:0 0 4px;border:0;background:none;color:var(--gray);text-align:left;cursor:pointer;font:inherit}
.film-pick img{grid-column:1/-1;display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border:1px solid #ffffff1f;border-radius:6px;opacity:.55;transition:opacity .3s,border-color .3s}
.film-pick .film-n{font-size:10px;align-self:baseline}
.film-pick b{font-weight:400;font-size:13px;line-height:1.3;color:var(--cream);align-self:baseline}
.film-pick small{font-size:10px;align-self:baseline}
.film-pick:hover img,.film-pick:focus-visible img{opacity:.85}
.film-pick[aria-pressed=true] img{opacity:1;border-color:var(--red)}
.film-pick[aria-pressed=true] .film-n{color:var(--red)}
@media(max-width:900px){.film-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.film-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}.films .mini-web-hint,.films .films-now{display:none}.film-pick b{font-size:12px}}
/* project viewer on touch screens: the section takes no extra page scroll; only the frame scrolls through the images */
.mini-web.is-swipe{height:auto}
.mini-web.is-swipe .mini-web-sticky{position:relative;height:auto;padding-top:24px;padding-bottom:24px}
.mini-web.is-swipe .mini-web-frame,.mini-web.is-swipe .mini-web-view{flex:none}
.mini-web.is-swipe .mini-web-view{overflow-x:hidden;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.mini-web.is-swipe .mini-web-view::-webkit-scrollbar{display:none}
.mini-web.is-swipe .mini-shot{scroll-snap-align:start;scroll-snap-stop:always}
/* live previews: the whole frame fits below the pinned docks */
@media(min-width:821px){.live-web .live-frame{height:min(calc(100svh - 104px),980px)}}

/* Field galleries (/fields/<slug>/): every project of one category as a grid of covers */
.gal-hero{padding-bottom:clamp(28px,4vw,64px)}
.gal-lede{margin-top:clamp(20px,2.4vw,36px);max-width:40ch;font:400 clamp(18px,1.6vw,26px)/1.25 var(--sans);letter-spacing:-.02em;color:var(--gray)}
.gal{padding:0 var(--pad) clamp(56px,7vw,120px)}
.gal-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(28px,3.2vw,56px) clamp(14px,1.6vw,28px)}
.gal-card{display:flex;flex-direction:column;gap:12px}
.gal-media{position:relative;aspect-ratio:3/2;border-radius:8px;overflow:hidden;background:#141414}
.gal-media img{width:100%;height:100%;object-fit:cover;transition:transform .9s var(--ease)}
.gal-card:hover .gal-media img,.gal-card:focus-visible .gal-media img{transform:scale(1.04)}
.gal-info{order:-1;display:flex;justify-content:space-between;align-items:baseline;gap:14px}
.gal-info h2{font:400 clamp(22px,2.5vw,42px)/1 var(--sans);letter-spacing:-.035em;text-transform:uppercase}
.gal-info span{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--dim);white-space:nowrap;transition:color .3s}
.gal-card:hover .gal-info span,.gal-card:focus-visible .gal-info span{color:var(--red)}
@media(max-width:1000px){.gal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.gal-grid{grid-template-columns:1fr}}

/* field gallery cards: a swipeable carousel of every frame of the project */
.gal-strip{display:flex;width:100%;height:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.gal-strip::-webkit-scrollbar{display:none}
.gal-strip img{flex:0 0 100%;scroll-snap-align:start;scroll-snap-stop:always}
.gal-dots{position:absolute;left:0;right:0;bottom:10px;display:flex;justify-content:center;gap:6px;pointer-events:none}
.gal-dots i{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.35);transition:background .3s,transform .3s}
.gal-dots i.on{background:#fff;transform:scale(1.25)}
.gal-prev,.gal-next{position:absolute;top:50%;width:38px;height:38px;margin-top:-19px;display:grid;place-items:center;border-radius:50%;background:rgba(10,10,10,.6);color:#fff;font-size:22px;line-height:1;opacity:0;transition:opacity .3s;cursor:pointer;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.gal-prev{left:10px}.gal-next{right:10px}
@media(hover:hover){.gal-card:hover .gal-prev,.gal-card:hover .gal-next{opacity:1}}
/* project viewer: static work slides sideways (web pages keep scrolling down) */
.mini-web.is-x .mini-web-track{display:flex}
.mini-web.is-x .mini-shot{flex:0 0 100%}
.mini-web.is-swipe.is-x .mini-web-view{overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain}
