/* Homepage only (Chris 11-16): the opening photo wall and the strip of builds under the hero.
   In its own file so style.css keeps its ?v= and no other page changes. */

/* ---------- opening: a full-screen wall of our build photos, hard cuts, then it lifts ---------- */
.intro{position:fixed;inset:0;z-index:200;display:grid;grid-template-columns:repeat(12,1fr);grid-template-rows:repeat(6,1fr);gap:6px;padding:6px;background:#0B0F16;transition:transform .5s cubic-bezier(.76,0,.24,1)}
.intro.lift{transform:translateY(-101%)}
.intro i{position:relative;overflow:hidden}
.intro img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0}
.intro i.on img{opacity:1;animation:intro-cut .14s cubic-bezier(.16,1,.3,1)}
@keyframes intro-cut{from{transform:scale(1.07)}}
.intro i:nth-child(1){grid-area:1/1/5/6}.intro i:nth-child(2){grid-area:1/6/3/9}.intro i:nth-child(3){grid-area:1/9/4/13}.intro i:nth-child(4){grid-area:3/6/7/9}
.intro i:nth-child(5){grid-area:5/1/7/4}.intro i:nth-child(6){grid-area:5/4/7/6}.intro i:nth-child(7){grid-area:4/9/7/11}.intro i:nth-child(8){grid-area:4/11/7/13}
html.intro-on{overflow:hidden}
@media (max-width:760px){
  .intro{grid-template-columns:repeat(6,1fr);grid-template-rows:repeat(8,1fr);gap:4px;padding:4px}
  .intro i:nth-child(1){grid-area:1/1/4/7}.intro i:nth-child(2){grid-area:4/1/6/4}.intro i:nth-child(3){grid-area:4/4/7/7}.intro i:nth-child(4){grid-area:6/1/9/4}
  .intro i:nth-child(5){grid-area:7/4/9/7}.intro i:nth-child(n+6){display:none}
}

/* ---------- strip of builds under the hero: drifts left, pauses under the pointer, each photo opens its case ---------- */
.hero-wrap{--strip:clamp(112px,19vh,200px)}
@media (min-width:961px){.hero-wrap{--strip:clamp(96px,calc(100svh - var(--nav-h) - 623px),200px)}.v2 .hero{padding-top:14px;padding-bottom:14px}}
.proj-strip{list-style:none;display:flex;gap:6px;height:var(--strip);margin:0;padding:0;overflow-x:auto;overflow-y:hidden;background:#0B0F16;border-top:6px solid #0B0F16;scrollbar-width:none}
.proj-strip::-webkit-scrollbar{display:none}
.proj-strip li{flex:none;height:100%;aspect-ratio:3/2}
.proj-strip a{position:relative}
.proj-strip span{position:absolute;left:0;right:0;bottom:0;padding:22px 12px 9px;background:linear-gradient(transparent,rgba(11,15,22,.86));font-size:13px;line-height:1.3;color:rgba(255,255,255,.88);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.proj-strip b{margin-right:4px;font-size:15px;font-weight:600;color:#fff}
.proj-strip a,.proj-strip img{display:block;width:100%;height:100%}
.proj-strip img{object-fit:cover}
.proj-strip a:focus-visible{outline:3px solid #7DB8FF;outline-offset:-3px}
.proj-strip.run{overflow:hidden}
.proj-strip.run li{animation:strip-drift var(--t,90s) linear infinite}
.proj-strip.run:hover li{animation-play-state:paused}
/* keyboard: the row stops and becomes scrollable, so the focused photo is brought into view */
.proj-strip.run:focus-within{overflow-x:auto}.proj-strip.run:focus-within li{animation:none}
@keyframes strip-drift{to{transform:translateX(calc(-1 * var(--shift)))}}
@media (prefers-reduced-motion:reduce){.proj-strip.run{overflow-x:auto}.proj-strip.run li{animation:none}}

/* the strip is the bottom edge of the first screen on desktop: the hero takes what is left above it */
@media (min-width:961px){.v2 .hero{min-height:calc(100svh - var(--nav-h) - var(--strip) - 7px)}}
@media (min-width:2300px){.v2 .hero{min-height:calc((100svh - (var(--strip) + 7px)*var(--z))/var(--z) - var(--nav-h))}}

/* quieter page (Chris 11-16: reads as machine-made): section headings in one colour, the three numbers as a plain row instead of boxes */
.v2 .section h2 em,.v2 .section-dark h2 em,.v2 .team-band h2 em{color:inherit}
.v2 .stat-grid>div{padding:20px 0 0;border:0;border-top:1px solid rgba(238,242,247,.28);border-radius:0;background:none}

/* case cards: the photo stays clear at the top and the text sits on a dark foot, instead of a grey wash over the whole photo with text on top of it */
.v2 .story::after{background:linear-gradient(180deg,rgba(6,12,24,0) 25%,rgba(6,12,24,.6) 52%,rgba(6,12,24,.94) 100%)}
.v2 .story small{color:rgba(255,255,255,.72)}
.v2 .team-band::after{background:rgba(6,12,24,.74)}

/* detail pass 2 (Chris 11-16) */
/* prices in the page's own heading face, not a code font */
.v2 .story .story-price,.v2 .vip-price strong{font-family:var(--display);font-weight:700;letter-spacing:-.01em}
/* the four stages as a ruled row, not four boxes */
.v2 .stage{padding:20px 0 0;border:0;border-top:2px solid var(--ink);border-radius:0;background:none}
.v2 .stage:hover{background:none;border-color:var(--accent)}.v2 .stage:hover span{text-decoration:underline}
.v2 .stage::after{display:none}
.v2 .more+.more{margin-top:12px}
/* phone and tablet: the VIP card matches the dark hero, like on desktop, instead of a white box with a thick blue frame */
@media (max-width:960px){.v2 .hero .vip-card{background:rgba(11,15,22,.62);border:1px solid rgba(125,184,255,.55);color:rgba(255,255,255,.82)}
.v2 .hero .vip-card h2,.v2 .hero .vip-price{color:#fff}.v2 .hero .vip-price strong{color:#7DB8FF}.v2 .hero .vip-note{color:rgba(255,255,255,.6)}}

/* detail pass 3 (Chris 11-16): solid nav instead of frosted glass, engineers as ruled rows instead of white boxes, quiet link line under each capability */
.v2 .nav{background:#fff;-webkit-backdrop-filter:none;backdrop-filter:none}
.v2 .person{padding:20px 0 0;border:0;border-top:1px solid rgba(11,15,22,.22);border-radius:0;background:none}
.v2 #own .work-stack{color:var(--ink-faint)}

/* hero background: a muted loop of our own bench footage (Chris 11-21, like Seeed Fusion), same dark wash as the photo; the photo is the poster */
.hero-wrap{position:relative;isolation:isolate}
.hero-video{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover}
.hero-wrap::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(10,18,32,.88) 0%,rgba(10,18,32,.66) 55%,rgba(10,18,32,.5) 100%)}
@media (prefers-reduced-motion:reduce){.hero-video{display:none}}
/* short desktop screens (Chris 11-21: at ~1220x680 the strip sat 8px into the fold): the hero keeps to the room above the strip
   and the form card runs down over the strip instead of pushing it off screen */
@media (min-width:961px) and (max-height:820px){.v2 .hero{height:calc(100svh - var(--nav-h) - var(--strip) - 7px);min-height:0}
.v2 .hero .quote-card{align-self:start;position:relative;z-index:2}}
