/* ──────────────────────────────────────────────────────────────────────────
   Visual Suspect — portfolio project page, visual language v2
   LOCKED. Copy this file verbatim into site/vs-portfolio-v2/vs-portfolio-v2.css
   and link it from the page head. Do not re-derive it, do not "tidy" it, do
   not rename a class: the section HTML in design/sections/ is written against
   these exact names.

   Palette, light band        Palette, dark band (= Visuallizer skin "dark")
   surface #ffffff            surface #0b0b0c
   ink     #1d1d1f            ink     #f5f5f7
   muted   #6e6e73            muted   #8e8e94
   dim     #c7c7cc            dim     #6b6b72
   body    #3a3a3f            facts grey #9a9a9f
   accent  #d20000 (one use per page: the active chapter-nav underline)
   ────────────────────────────────────────────────────────────────────────── */

*{box-sizing:border-box}
body{margin:0;background:#fff;color:#1d1d1f;font-family:'Inter',-apple-system,sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible{outline:2px solid #d20000;outline-offset:4px}

/* ── type ─────────────────────────────────────────────────────────────── */
.big{font-weight:700;letter-spacing:-.042em;line-height:1.08;margin:0}
.body{font-size:18px;line-height:1.65;color:#3a3a3f;margin:0}
.eyebrow{font-size:10px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#6e6e73;margin:0 0 30px}
.lbl{font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:#6e6e73}
.lbld{font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:#9a9a9f}
.sup{font-size:11px;font-weight:600;color:#9a9a9f;letter-spacing:.02em;display:inline-block;transform:translateY(-1.05em);margin-left:.3em}
.supd{font-size:clamp(10px,.95vw,14px);font-weight:600;color:#6e6e73;letter-spacing:.02em;display:inline-block;transform:translateY(-1.3em);margin-left:.3em}
.ul{border-bottom:1px solid currentColor;padding-bottom:3px}
.ul:hover{color:#d20000;border-bottom-color:#d20000}
.navlinkW{color:#6e6e73;transition:color .4s cubic-bezier(.16,1,.3,1)}
.navlinkW:hover{color:#1d1d1f}

/* ── scroll reveals. view() only: never an IntersectionObserver ────────── */
@keyframes vsReveal{from{opacity:0;transform:translateY(36px)}to{opacity:1;transform:none}}
@keyframes vsWipe{from{opacity:0;clip-path:inset(22% 0 0 0);transform:translateY(32px) scale(.99)}to{opacity:1;clip-path:inset(0 0 0 0);transform:none}}
.reveal{animation:vsReveal .9s cubic-bezier(.16,1,.3,1) both;animation-timeline:view();animation-range:entry 0% entry 55%}
.wipe{animation:vsWipe 1.1s cubic-bezier(.16,1,.3,1) both;animation-timeline:view();animation-range:entry 0% entry 62%}
@supports not (animation-timeline:view()){.reveal,.wipe{animation:none}}

/* ── facts bar ────────────────────────────────────────────────────────── */
.fact{background:none;border:0;text-align:left;cursor:pointer;padding:0;min-height:44px;font-family:'Inter',sans-serif;transition:transform .5s cubic-bezier(.22,1,.36,1),opacity .4s cubic-bezier(.16,1,.3,1)}
.fact:hover{opacity:1!important;transform:translateY(-3px)}
.factlabel{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;margin-bottom:11px;transition:color .4s cubic-bezier(.16,1,.3,1)}
.track{display:block;height:4px;border-radius:2px;background:rgba(255,255,255,.16);overflow:hidden}
.rail{display:block;height:100%;border-radius:2px;transition:width .8s cubic-bezier(.22,1,.36,1),background .4s cubic-bezier(.16,1,.3,1)}
.watch{transition:transform .5s cubic-bezier(.22,1,.36,1)}
.watch:hover{transform:translateX(3px)}

/* ── the film: the FRONT PAGE's showreel player, byte for byte ─────────── */
/* The film has a white screen to itself (owner, 2026-11-16): the section is
   at least one viewport tall and the plate sits in its centre, so wherever
   the reader stops with the film centred there is nothing else in view — no
   facts bar above it, no next chapter below. More white than the film
   strictly needs, on purpose. svh, so a phone's own bars do not eat into it.
   The script lands "Watch the film" on that centre (script §4). */
#film{min-height:100vh;min-height:100svh;display:flex;flex-direction:column;justify-content:center;box-sizing:border-box}
.showreel-video-wrapper{position:relative;width:100%;margin:0 auto;padding:0 120px}
.showreel-glass-plate{position:relative;z-index:2;width:100%;padding:30px;border-radius:24px;background:rgba(255,255,255,.45);backdrop-filter:blur(28px) saturate(140%);-webkit-backdrop-filter:blur(28px) saturate(140%);border:1px solid rgba(255,255,255,.55);box-shadow:0 50px 100px -20px rgba(0,0,0,.18),0 15px 35px -10px rgba(0,0,0,.08),inset 0 1px 0 rgba(255,255,255,.6)}
.showreel-glass-layout{display:flex;flex-direction:row;align-items:center;gap:40px;width:100%}
.showreel-left-col{flex:2;min-width:0}
.showreel-right-col{flex:1;min-width:0}
.showreel-main-card{position:relative;z-index:10;width:100%;padding:1px;border-radius:14px;background:rgba(255,255,255,.25);border:1px solid rgba(255,255,255,.4);box-shadow:0 25px 55px -12px rgba(0,0,0,.35),0 8px 16px -8px rgba(0,0,0,.15);transition:transform .4s cubic-bezier(.25,1,.5,1),box-shadow .4s ease}
.showreel-main-card:hover{transform:translateY(-2px);box-shadow:0 30px 60px -10px rgba(0,0,0,.4),0 10px 20px -8px rgba(0,0,0,.2)}
.showreel-main-card-inner{position:relative;width:100%;padding-bottom:56.25%;height:0;overflow:hidden;border-radius:12px;background:#1a1a1e}
.showreel-main-card-inner video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
/* (.showreel-sound-btn below is the front page's on-film button. The project
   page no longer uses it — its sound button is a tag in .showreel-play — but
   the rule stays so this block still matches the front page's player.) */
.showreel-sound-btn{position:absolute;right:16px;bottom:16px;width:44px;height:44px;border-radius:50%;background:rgba(0,0,0,.45);border:1px solid rgba(255,255,255,.25);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .3s}
.showreel-sound-btn:hover{background:rgba(0,0,0,.65)}

/* ── production spec rows (client profile plate) ──────────────────────── */
.srow{display:grid;grid-template-columns:112px minmax(0,1fr);gap:18px;padding:11px 0;border-top:1px solid #e9e9ed;align-items:baseline}
.srow dt{font-size:10px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:#6e6e73;margin:0}
.srow dd{margin:0;font-size:16px;font-weight:500;letter-spacing:-.015em;line-height:1.4}

/* ── collage grids. Markup comes from the Collage renderer, never by hand ─ */
.vz-collage{display:grid;position:relative;width:100%;overflow:hidden}
.vz-collage .vz-cell{position:relative;overflow:hidden}
.vz-collage .vz-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform-origin:center;display:block}
.card figure{overflow:hidden;margin:0;border-radius:20px}
.card img{transition:transform .9s cubic-bezier(.16,1,.3,1)}
.card:hover img{transform:scale(1.05)}

/* ── the film wall (Visuallizer Web Elements kit), DARK skin ───────────── */
.vsw-t{display:block;width:100%;text-align:left;background:none;border:0;padding:4px 0;cursor:pointer;font-family:'Inter',-apple-system,sans-serif;font-weight:700;letter-spacing:-.042em;line-height:1.1;font-size:clamp(26px,2.9vw,50px);transform-origin:left center;transition:color .5s cubic-bezier(.16,1,.3,1),transform .5s cubic-bezier(.22,1,.36,1),filter .5s cubic-bezier(.16,1,.3,1)}
.vsw-t sup{font-size:11px;font-weight:600;letter-spacing:.02em;display:inline-block;transform:translateY(-1.05em);margin-left:.34em;text-transform:none}
.vsw-c{background:none;border:0;border-bottom:2px solid transparent;cursor:pointer;font-family:'Inter',sans-serif;font-size:15px;font-weight:600;padding:12px 0;min-height:44px;white-space:nowrap;transition:color .4s cubic-bezier(.16,1,.3,1),border-color .4s cubic-bezier(.16,1,.3,1)}
.vsw-strip{display:flex;gap:28px;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none}
.vsw-strip::-webkit-scrollbar{display:none}
.vsw-nav{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:border-color .35s,color .35s}
.disc{transition:transform .6s cubic-bezier(.22,1,.36,1),background .4s}
.disc:hover{transform:scale(1.07);background:rgba(255,255,255,.3)}
#films{background:#0b0b0c;color:#f5f5f7}
#films .vsw-t sup{color:#8e8e94}
#films .vsw-t[aria-pressed="true"]{color:#f5f5f7;transform:translateY(-3px) scale(1.02);filter:none}
#films .vsw-t[aria-pressed="false"]{color:#6b6b72;transform:scale(.97);filter:blur(.5px)}
#films .vsw-c[aria-pressed="true"]{color:#f5f5f7;border-bottom-color:#d20000}
#films .vsw-c[aria-pressed="false"]{color:#8e8e94;border-bottom-color:transparent}
#films .vsw-nav{border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.04);color:#f5f5f7}
#films .vsw-nav:hover{border-color:#f5f5f7}
#films .showreel-glass-plate{background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.12);box-shadow:0 50px 100px -24px rgba(0,0,0,.72),0 15px 35px -14px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.1)}

/* ── the production spec card (black sheet beside a vertical collage) ──── */
.vsp-card{--vsp-accent:#d20000;position:relative;z-index:3;width:100%;margin:0;padding:clamp(34px,2.9vw,54px) clamp(34px,2.9vw,54px) clamp(28px,2.2vw,40px);border-radius:24px;background:linear-gradient(180deg,#17181b 0%,#0e0f11 62%,#0b0c0e 100%);border:1px solid rgba(255,255,255,.09);box-shadow:0 1px 0 rgba(255,255,255,.06) inset,0 0 0 1px rgba(255,255,255,.028),0 18px 44px -26px rgba(0,0,0,.6),0 2px 10px -6px rgba(0,0,0,.45);text-align:left;display:flex;flex-direction:column}
.vsp-sheen{position:absolute;inset:0;border-radius:24px;padding:1px;background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,0) 30%);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}
.vsp-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.vsp-eyebrow{font-size:11px;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:rgba(255,255,255,.55)}
.vsp-status{display:inline-flex;align-items:center;gap:7px;font-family:ui-monospace,'SF Mono',monospace;font-size:11px;letter-spacing:.08em;color:rgba(255,255,255,.62)}
.vsp-dot{width:6px;height:6px;border-radius:50%;flex:none;background:var(--vsp-accent);box-shadow:0 0 10px var(--vsp-accent);animation:vspPulse 2.4s ease-in-out infinite}
@keyframes vspPulse{0%,100%{opacity:1}50%{opacity:.35}}
.vsp-head{margin:clamp(26px,3vw,52px) 0 clamp(26px,3vw,48px)}
.vsp-kicker{font-size:clamp(12px,1.1vw,16px);font-weight:500;letter-spacing:.02em;color:var(--vsp-accent);margin:0 0 clamp(12px,1.2vw,20px)}
.vsp-title{margin:0;font-size:clamp(42px,5.2vw,92px);line-height:1;font-weight:600;letter-spacing:-.03em;color:#f4f5f7}
.vsp-sub{margin:clamp(18px,1.8vw,30px) 0 0;font-size:clamp(17px,1.55vw,26px);line-height:1.4;color:rgba(255,255,255,.62);max-width:94%}
.vsp-specs{display:grid;grid-template-columns:1fr 1fr;gap:0;border-top:1px solid rgba(255,255,255,.08)}
.vsp-spec{display:flex;flex-direction:column;gap:7px;padding:12px 14px 12px 0;border-bottom:1px solid rgba(255,255,255,.07);border-right:1px solid rgba(255,255,255,.07)}
.vsp-label{font-size:10px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.5);margin:0}
.vsp-value{font-family:ui-monospace,'SF Mono',monospace;font-size:14px;font-weight:500;letter-spacing:-.01em;color:#e9eaee;font-variant-numeric:tabular-nums;line-height:1.45;margin:0}
.vsp-foot{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:22px;gap:12px}
.vsp-by{display:flex;align-items:center;gap:7px;min-width:0}
.vsp-credit{font-size:13px;font-weight:500;color:rgba(255,255,255,.78)}
.vsp-meta{font-family:ui-monospace,'SF Mono',monospace;font-size:11px;letter-spacing:.1em;color:rgba(255,255,255,.5);white-space:nowrap}

/* ── resource rows ────────────────────────────────────────────────────── */
.res{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px 0;border-top:1px solid #e9e9ed}

/* ── the tag ──────────────────────────────────────────────────────────────
   One white tag, used twice, and it must stay ONE thing:
     - on the hero media's bottom edge:  "Watch the full film"  (an <a>)
     - under the film's words, right:    "Play the film"        (a <button>)
   It is the site's contact tab turned on its side, in white, at 70% of the
   tab's size: 36px thick, a 6px curve and 8.4px/700 capitals at .2em (the tab
   is 52px, 8px and 12px — the owner took 30% off the first build).

   Every selector names its place as well as `.vs-tag`. The host layer resets
   links and buttons at (0,1,1) — colour, shadow, text-transform — and the
   theme repaints every button its accent on hover, focus and press at the
   same weight. One class alone loses to all of it, and the tag turns red. */
.straddle .vs-tag,.showreel-play .vs-tag{position:relative;display:inline-flex;align-items:center;gap:8px;height:36px;margin:0;padding:0 18px 0 20px;border:0;border-radius:6px;background:#ffffff;color:#0b0b0c;font-family:'Inter',-apple-system,sans-serif;font-size:8.4px;font-weight:700;line-height:1;letter-spacing:.2em;text-transform:uppercase;white-space:nowrap;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent;box-shadow:0 10px 24px -6px rgba(0,0,0,.38),0 1px 6px rgba(0,0,0,.12),0 0 0 1px rgba(11,11,12,.06);transition:opacity .35s cubic-bezier(.16,1,.3,1),transform .5s cubic-bezier(.22,1,.36,1),box-shadow .5s cubic-bezier(.22,1,.36,1)}
.straddle .vs-tag svg{flex:none}
/* 36px is a fine thing to look at and too small a thing to press: the target
   reaches 6px past the tag on every side, to 48px. */
.straddle .vs-tag::after,.showreel-play .vs-tag::after{content:"";position:absolute;inset:-6px}
.straddle .vs-tag:hover,.showreel-play .vs-tag:hover{color:#0b0b0c}
.straddle .vs-tag:focus-visible,.showreel-play .vs-tag:focus-visible{outline:2px solid #ffffff;outline-offset:3px;box-shadow:0 0 0 5px #0b0b0c,0 10px 24px -6px rgba(0,0,0,.38)}

/* ── the tag on the hero: "Watch the full film" ───────────────────────────
   Hangs on the hero media's bottom edge, half on it and half off, and takes
   the reader down to the film — which then starts playing (script, §3b/§4).
   It replaced the "The full film is below" link beside the lead.

   Shown on hover or keyboard focus where the pointer CAN hover; always shown
   where it cannot, because a phone has no hover and a control nobody can
   reveal is not a control. Hidden means opacity and pointer-events only —
   never visibility or display, which would take it out of the tab order and
   leave :focus-within nothing to answer. */
.straddle .vs-filmtag{position:absolute;left:50%;top:100%;z-index:2;transform:translate(-50%,-50%)}
.straddle .vs-filmtag:hover{transform:translate(-50%,calc(-50% + 4px));box-shadow:0 6px 17px -6px rgba(0,0,0,.34),0 1px 6px rgba(0,0,0,.12),0 0 0 1px rgba(11,11,12,.06)}
@media (hover:hover) and (pointer:fine){
  .straddle .vs-filmtag{opacity:0;pointer-events:none;transform:translate(-50%,calc(-50% - 6px))}
  .straddle:hover .vs-filmtag,.straddle:focus-within .vs-filmtag{opacity:1;pointer-events:auto;transform:translate(-50%,-50%)}
  .straddle:hover .vs-filmtag:hover{transform:translate(-50%,calc(-50% + 4px))}
}

/* ── the tag under the film: "Play the film" ──────────────────────────────
   NOT part of the front page's player: this is the project page's own
   addition, under the film's words and right-aligned. Words only, no symbol.
   The film opens as the page's silent loop; this starts it from the top WITH
   SOUND, then reads "Pause the film" and "Resume the film". Written `hidden`
   in the markup and revealed by the script, so a page without the script
   never shows a button that does nothing. */
.showreel-play{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:clamp(26px,2.6vw,40px)}
.showreel-play[hidden]{display:none}
/* Same tag, a fraction of the lift. On the hero the tag hangs over a film and
   the collage's own shadow, and needs its full shadow to separate. Here it
   sits on the plate's flat white, where that shadow read as heavy — the owner
   asked for "very, very subtle" (2026-11-16). It is barely off the surface:
   a hairline, a 1px contact shadow and a soft 4px one. Do not strengthen it. */
.showreel-play .vs-tag{box-shadow:0 0 0 1px rgba(11,11,12,.07),0 1px 2px rgba(0,0,0,.05),0 4px 10px -4px rgba(0,0,0,.10)}
.showreel-play .vs-tag:hover{transform:translateY(-1px);box-shadow:0 0 0 1px rgba(11,11,12,.08),0 2px 3px rgba(0,0,0,.06),0 7px 16px -6px rgba(0,0,0,.14)}
.showreel-play .vs-tag:active{transform:translateY(0)}
.showreel-play .vs-tag:focus-visible{box-shadow:0 0 0 5px #0b0b0c}
/* The sound button. It used to be a dark disc ON the film, bottom right; the
   owner took it off the picture (2026-11-16) — nothing sits on the film now —
   and put it here, beside the play tag: the same tag, square, holding the
   speaker mark and nothing else. It keeps its accessible name. */
.showreel-play .vs-tag-icon{width:36px;padding:0;justify-content:center}

/* ── responsive. One breakpoint. ──────────────────────────────────────── */
@media (max-width:980px){
  .wrapRow{flex-direction:column!important}
  .plateCol{order:-1}
  .two,.tri,.stagger{grid-template-columns:minmax(0,1fr)!important}
  .facts{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .straddle{margin-bottom:0!important}
  .straddle .vs-tag,.showreel-play .vs-tag{height:38px;font-size:9.5px;letter-spacing:.18em}
  .showreel-play .vs-tag-icon{width:38px}
  .shift{padding-top:0!important}
  .alignEnd{text-align:left!important;justify-content:flex-start!important}
  .showreel-video-wrapper{padding:0 20px}
  .showreel-glass-plate{padding:16px}
  .showreel-glass-layout{flex-direction:column;gap:30px}
  /* Without these two the film has NO SIZE below 980px. The row layout's
     `flex:2` becomes a zero flex-basis on the column axis, and the layout's
     `align-items:center` shrink-wraps a column whose only child is
     width:100% of nothing — the plate measured 4x4 and the <video> 0x0, on
     every phone and tablet. The front page's own sheet carries both lines;
     they were left behind when the player was lifted from it. */
  .showreel-left-col,.showreel-right-col{flex:none;width:100%}
  .vsp-card{aspect-ratio:auto!important}
  .vsp-specs{grid-template-columns:1fr!important}
  .vsp-spec{border-right:0}
  .vsp-title{font-size:34px}
}
/* A phone on its side: narrow enough for the stacked plate, too short for a
   16:9 frame at full width (844x390 gave a 450px film in 309px of screen).
   Cap the film's WIDTH so its whole frame fits under the header with a little
   air, and centre it. The script then centres that frame on the screen
   (§4: the frame, when the plate is taller than the view). 113px = the 81px
   bar and 16px above and below. */
@media (max-width:980px) and (max-height:560px){
  .showreel-left-col{max-width:calc((100vh - 113px) * 16 / 9);max-width:calc((100svh - 113px) * 16 / 9);margin:0 auto}
}
@media (prefers-reduced-motion:reduce){
  .fact,.rail,.watch,.vsw-t,.card img,.disc,.straddle .vs-tag,.showreel-play .vs-tag{transition:none!important}
  .vsw-t{filter:none!important;transform:none!important}
  .vsp-dot{animation:none}
  .reveal,.wipe{animation:none!important}
}
