/* Product pages (pedestrian-signal.html). Loaded after landing-film.css, which supplies the tokens, header and menu. */

/* One type scale for the product pages' own blocks: body text (paragraphs, spec values, tabs, FAQ), small text (labels,
   captions, tags, buttons) and card titles. Section titles use the statement title size (.specs-title). */
:root{--pp-body:clamp(15px,1.2vw,20px);--pp-small:clamp(13px,.95vw,16px);--pp-subtitle:clamp(20px,1.6vw,30px);--pp-sign:clamp(26px,2vw,36px)}

/* Key visual: two transparent 16:9 layers (one per unit) on pure black fill the first screen like the landing hero (at
   least one large viewport tall and at least as tall as the picture at full width), so screens wider than 16:9 show
   it whole and narrower ones lose only the sides. */
.product-kv{position:relative;height:max(100vh,56.25vw);height:max(100lvh,56.25vw);overflow:hidden;background:#000}
.product-kv-media{position:absolute;inset:0}
.product-kv-layer{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%}
/* Mouse parallax: product-page.js sets each layer's `translate` (transform stays free for the upright zoom). The
   units sit well inside the frame, so no extra scale is needed to hide the edges. */
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  .product-kv-layer{will-change:translate}
}

/* Upright screens: a square crop right under the header bar, followed by the statement. The two units sit at 20–77%
   across the render, so a square (the middle 56%) keeps both whole; its top and bottom edges fade into the black.
   Scroll depth: product-page.js sets --kv-p from 0 to 1 over the section's height; the nearer unit (right) pushes in
   harder than the far one, both about the middle of the square. */
@media(max-aspect-ratio:4/5){
  .product-kv{height:auto;padding-top:var(--header-bar)}
  .product-kv-media{position:relative;inset:auto;aspect-ratio:1;overflow:hidden;
    -webkit-mask-image:linear-gradient(transparent,#000 14%,#000 86%,transparent);mask-image:linear-gradient(transparent,#000 14%,#000 86%,transparent)}
  .product-kv-layer{object-position:51% 50%;transform-origin:50% 50%;will-change:transform}
  .product-kv-left{transform:scale(calc(1 + .22 * var(--kv-p,0)))}
  .product-kv-right{transform:scale(calc(1 + .42 * var(--kv-p,0)))}
}

/* Two-layer key visual (in-ground-light.html): the scene and the airborne gravel. Upright screens keep the lamp centred
   in the square (it sits at 23-75% across); scrolling pushes the gravel in harder than the scene. */
@media(max-aspect-ratio:4/5){
  .product-kv-impact .product-kv-layer{object-position:49% 50%}
  .product-kv-base{transform:scale(calc(1 + .15 * var(--kv-p,0)))}
  .product-kv-fly{transform:scale(calc(1 + .35 * var(--kv-p,0)))}
}

/* Single-render key visual with its own 3:4 cut (pedestrian-countdown.html): upright screens show the 3:4 picture
   (chosen by <source media>) whole at full width instead of a square crop; scrolling pushes it in slightly. */
@media(max-aspect-ratio:4/5){
  .product-kv-single .product-kv-media{aspect-ratio:3/4}
  .product-kv-single .product-kv-layer{transform:scale(calc(1 + .12 * var(--kv-p,0)))}
}

/* A product film with only a 16:9 cut (in-ground-light.html): upright screens keep it 16:9 at full width instead of the
   landing film's 4:5 crop, which would cut the product. */
@media(max-aspect-ratio:4/5){
  .film-reel-wide .film-reel-media{aspect-ratio:16/9}
}

/* Statement under the key visual: .statement and its .phrase rule come from landing-film.css. */

/* Core features and full spec: document-style sheets on black, compact type with a hairline above each row and under
   the last row of each column; the label muted beside its value (above it on phones). Values break only at punctuation
   and spaces (keep-all), unless a run would not fit. */
.product-specs{background:#000;padding:clamp(88px,7.5vw,180px) var(--intro-gutter) clamp(104px,9vw,220px)}
/* A second sheet (the full product spec under the core features) starts right after the first one's bottom space. */
.product-specs+.product-specs{padding-top:0}
.specs-title,.specs-grid{max-width:1360px;margin-inline:auto}
/* Section titles match the statement titles (landing-film.css .statement-title): same size, weight and spacing. */
.specs-title{text-align:center;margin-block:0 clamp(28px,2.8vw,56px);font-family:var(--font-zh);font-size:clamp(26px,2.5vw,52px);font-weight:700;line-height:1.2;letter-spacing:.02em}
.specs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(40px,6vw,120px);margin-block:0}
.spec{display:grid;grid-template-columns:minmax(7.5em,.32fr) minmax(0,1fr);gap:4px clamp(16px,1.6vw,32px);align-items:baseline;padding:clamp(16px,1.4vw,26px) 0;border-top:1px solid #ffffff24}
.spec:nth-last-child(-n+2){border-bottom:1px solid #ffffff24}
.spec dt{font-family:var(--font-zh);font-size:var(--pp-small);font-weight:500;letter-spacing:.12em;color:#ffffff8c}
/* A long label breaks between its phrases, never one character on its own. */
.spec dt .phrase{display:inline-block}
.spec dd{margin:0;font-family:var(--font-sans);font-size:var(--pp-body);font-weight:400;line-height:1.7;letter-spacing:.03em;color:#fff;font-variant-numeric:tabular-nums;word-break:keep-all;overflow-wrap:anywhere}
@media(max-width:760px){
  .specs-grid{grid-template-columns:minmax(0,1fr)}
  .spec{grid-template-columns:minmax(0,1fr);padding:12px 0}
  .spec:nth-last-child(2){border-bottom:0}
}

/* Scene slider (pedestrian-signal.html): the current render sits centred at --scene-w with rounded corners; the other
   two peek in at either side, smaller and dimmed. product-page.js gives each slide --o (-1, 0 or 1, its place relative
   to the current one), and the transform below moves it one slide width plus the gap per step. Under the stage, in the
   same width: a three-part progress line, then the caption, centred; every slide is a click target. Upright screens
   show the 4:5 cuts at 80% of the width. Vertical touch scrolling stays native; product-page.js reads sideways swipes.
   The sheets around it supply the space above and below. */
.scene-slider{--scene-w:min(70vw,1180px);--scene-gap:clamp(16px,2vw,32px);background:#000;overflow-x:clip;touch-action:pan-y}
.scene-stage{position:relative;width:var(--scene-w);margin-inline:auto;aspect-ratio:16/9}
.scene-stage:focus-visible{outline:2px solid #fff;outline-offset:6px;border-radius:clamp(12px,1.2vw,20px)}
.scene-slide{position:absolute;inset:0;overflow:hidden;border-radius:clamp(12px,1.2vw,20px);background:#0a0a0a;cursor:pointer;
  transform:translateX(calc(var(--o,0) * (100% + var(--scene-gap)))) scale(.9);opacity:.35;
  transition:transform .8s cubic-bezier(.22,.61,.36,1),opacity .8s ease}
.scene-slide.is-active{transform:translateX(0) scale(1);opacity:1}
.scene-slide img{display:block;width:100%;height:100%;object-fit:cover}
.scene-meta{width:var(--scene-w);margin:clamp(18px,1.6vw,28px) auto 0}
.scene-progress{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px} /* one equal part per slide */
.scene-progress span{height:2px;background:#ffffff2e;transition:background-color .4s}
.scene-progress span.is-active{background:#fff}
.scene-caption{display:flex;justify-content:center;align-items:baseline;gap:14px;margin:14px 0 0;font-family:var(--font-zh);font-size:var(--pp-small);letter-spacing:.12em;color:#fff}
.scene-current{font-family:var(--font-mono);font-size:var(--mono-type);letter-spacing:.12em;color:#ffffff8c;font-variant-numeric:tabular-nums}
@media(prefers-reduced-motion:reduce){
  .scene-slide,.scene-progress span{transition:none}
}
@media(max-aspect-ratio:4/5){
  .scene-slider{--scene-w:80vw;--scene-gap:12px}
  .scene-stage{aspect-ratio:4/5}
}

/* Core feature highlights (pedestrian-signal.html): six cards in the spec sheet's width, a large figure (its unit
   smaller beside it) or a four-character term (.is-term, set a little smaller so it matches the figures' height) over
   a muted label. Wide screens: 3x2. Phones: 2x3. product-page.js adds .is-pending (cards hidden and lowered) until the
   row comes on screen, then swaps it for .is-revealing for as long as the staggered entrance runs (--i delays each
   card), so hover changes are never delayed. Hover (mouse only): the card lifts 4px, its edge and fill brighten, and a
   soft light follows the pointer (product-page.js sets --mx/--my). */
.highlights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:clamp(12px,1.2vw,20px);max-width:1360px;margin:0 auto;padding:0;list-style:none}
.highlight{position:relative;overflow:hidden;text-align:center;padding:clamp(22px,2.2vw,40px) clamp(20px,2vw,36px);border:1px solid #ffffff24;border-radius:clamp(12px,1.2vw,20px);background:#ffffff08;
  transition:opacity .7s ease,transform .5s cubic-bezier(.22,.61,.36,1),border-color .3s,background-color .3s}
.highlights.is-pending .highlight{opacity:0;transform:translateY(18px)}
.highlights.is-revealing .highlight{transition-duration:.7s;transition-delay:calc(var(--i,0) * 90ms)}
.highlight::before{content:"";position:absolute;inset:0;border-radius:inherit;background:radial-gradient(280px circle at var(--mx,50%) var(--my,50%),#ffffff1c,transparent 65%);opacity:0;transition:opacity .35s;pointer-events:none}
.highlight>*{position:relative}
@media(hover:hover) and (pointer:fine){
  .highlight:hover{transform:translateY(-4px);border-color:#ffffff59;background-color:#ffffff0f}
  .highlight:hover::before{opacity:1}
}
.highlight-value{margin:0;font-family:var(--font-sans);font-size:clamp(30px,3.2vw,56px);font-weight:500;line-height:1.1;letter-spacing:.01em;color:#fff;font-variant-numeric:tabular-nums;white-space:nowrap}
/* The ≥ sign comes from the CJK fallback font, wide and tall; it sits smaller beside the figure. */
.highlight-sign{margin-right:.06em;font-size:.6em;vertical-align:.12em}
.highlight-unit{margin-left:.2em;font-size:.4em;font-weight:400;letter-spacing:.04em;color:#ffffffb3}
.highlight-value.is-term{font-family:var(--font-zh);font-size:clamp(25px,2.7vw,47px);letter-spacing:.04em}
.highlight-label{margin:clamp(10px,.9vw,16px) 0 0;font-family:var(--font-zh);font-size:var(--pp-small);letter-spacing:.08em;line-height:1.6;color:#ffffff8c}
@media(max-width:760px){
  .highlights{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .highlight{padding:18px 16px}
  .highlight-value{font-size:clamp(22px,6.4vw,30px)}
  .highlight-value.is-term{font-size:clamp(19px,5.4vw,25px)}
  .highlight-label{margin-top:8px;font-size:12px;letter-spacing:.04em}
}
@media(prefers-reduced-motion:reduce){
  .highlight{transition:none}
  .highlight:hover{transform:none}
}

/* Product information (both product pages): collapsible rows like the FAQ (native <details>), each summary an h3 with a
   + that turns into × when open; the open row shows its panel, a one-column label and value list. */
.info-list{max-width:1360px;margin-inline:auto;border-top:1px solid #ffffff24}
.info-item{border-bottom:1px solid #ffffff24}
.info-item>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:clamp(20px,1.8vw,32px) 0;list-style:none;cursor:pointer}
.info-item>summary::-webkit-details-marker{display:none}
.info-item>summary::after{content:"+";flex:none;width:1em;margin-right:.2em;text-align:center;font-family:var(--font-sans);font-size:var(--pp-sign);font-weight:300;line-height:1;color:#ffffff8c;transition:transform .3s}
.info-item[open]>summary::after{transform:rotate(45deg)}
.info-item>summary:focus-visible{outline:2px solid #fff;outline-offset:4px}
.info-title{margin:0;font-family:var(--font-zh);font-size:clamp(18px,1.4vw,26px);font-weight:500;letter-spacing:.08em;color:#fff}
.info-item>.spec-panel{padding:clamp(4px,.6vw,12px) 0 clamp(20px,1.8vw,32px)}
.spec-panel .specs-grid,.specs-grid.is-list{grid-template-columns:minmax(0,1fr)}
.spec-panel .spec,.is-list .spec{grid-template-columns:minmax(10em,400px) minmax(0,1fr)}
.spec-panel .spec:first-child{border-top:0}
.spec-panel .spec:nth-last-child(2),.is-list .spec:nth-last-child(2){border-bottom:0}
/* Inside a row the item's own rule closes the list, so its last line drops its rule. */
.info-item .spec:last-child{border-bottom:0}
@media(max-width:760px){
  .spec-panel .spec,.is-list .spec{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){
  .info-item>summary::after{transition:none}
}

/* About block (pedestrian-signal.html: what it is, where it fits): centred titles and paragraphs at a reading width,
   the suitable sites as outlined tags; the second title keeps a section's worth of space above it. */
.product-prose{max-width:1360px;margin-inline:auto;text-align:center}
.product-prose p{max-width:40em;margin:0 auto 1em;font-family:var(--font-zh);font-size:var(--pp-body);line-height:2;letter-spacing:.04em;color:#ffffffd9;text-wrap:pretty}
.product-prose p:last-child{margin-bottom:0}
.product-prose strong{font-weight:500;color:#fff}
.scene-tags{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:0 0 clamp(20px,1.8vw,32px);padding:0;list-style:none}
.scene-tags li{padding:6px 14px;border:1px solid #ffffff33;border-radius:999px;font-family:var(--font-zh);font-size:var(--pp-small);letter-spacing:.06em;color:#ffffffd9}

/* FAQ: native <details> rows between hairlines; the + turns into × when a row is open. Its sign is centred on the same
   vertical line as the product information rows' larger sign (--pp-sign: 1em wide, .2em from the edge). */
.faq{max-width:1360px;margin-inline:auto;border-top:1px solid #ffffff24}
.faq-item{border-bottom:1px solid #ffffff24}
.faq-item summary{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:clamp(16px,1.4vw,26px) 0;list-style:none;cursor:pointer;font-family:var(--font-zh);font-size:var(--pp-body);letter-spacing:.04em;color:#fff}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";flex:none;width:1em;margin-right:calc(var(--pp-sign) * .7 - .5em);text-align:center;font-family:var(--font-sans);font-size:1.4em;font-weight:300;line-height:1;color:#ffffff8c;transition:transform .3s}
.faq-item[open] summary::after{transform:rotate(45deg)}
.faq-item summary:focus-visible{outline:2px solid #fff;outline-offset:4px}
.faq-item p{max-width:48em;margin:0 0 clamp(16px,1.3vw,24px);font-family:var(--font-zh);font-size:var(--pp-body);line-height:1.9;letter-spacing:.03em;color:#ffffffb3;text-wrap:pretty}

/* Buttons and the closing call to action: an outlined pill (filled white for the main one) that inverts on hover. */
.product-actions{max-width:1360px;margin:clamp(24px,2vw,36px) auto 0;text-align:center}
.product-button{display:inline-flex;align-items:center;gap:.6em;padding:14px 28px;border:1px solid #ffffffb3;border-radius:999px;font-family:var(--font-zh);font-size:var(--pp-small);letter-spacing:.1em;color:#fff;text-decoration:none;transition:background-color .25s,color .25s,border-color .25s}
.product-button::after{content:"→";font-family:var(--font-sans)}
.product-button:hover{background:#fff;color:#000;border-color:#fff}
.product-button.is-solid{background:#fff;color:#000;border-color:#fff}
.product-button.is-solid:hover{background:transparent;color:#fff}
.product-button:focus-visible{outline:2px solid #fff;outline-offset:4px}
.product-cta{background:#000;padding:0 var(--intro-gutter) clamp(104px,9vw,220px);text-align:center}
.product-cta .product-actions{margin:0 auto}
/* After a scene slider (pedestrian-countdown.html) the button gets the same space above it that a spec sheet leaves below. */
.scene-slider+.product-cta{padding-top:clamp(104px,9vw,220px)}
/* About cards: the two prose blocks as cards in the highlight cards' frame, side by side; stacked on phones. */
.about-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,1.2vw,20px);max-width:1360px;margin-inline:auto}
.about-card{padding:clamp(28px,3vw,56px) clamp(22px,2.6vw,48px);border:1px solid #ffffff24;border-radius:clamp(12px,1.2vw,20px);background:#ffffff08;display:flex;flex-direction:column}
.about-card-title{margin:0 0 clamp(16px,1.4vw,24px);font-family:var(--font-zh);font-size:var(--pp-subtitle);font-weight:700;line-height:1.3;letter-spacing:.06em}
.about-card .scene-tags{margin-bottom:clamp(16px,1.4vw,24px)}
@media(max-width:760px){
  .about-cards{grid-template-columns:minmax(0,1fr);gap:12px}
}

/* Spec row of the product information block (pedestrian-signal.html): one table like the other rows, label beside
   value with each value on one line, the three spec groups one under another with a small title each. The FAQ list
   drops its own top rule under its row's summary. */
.spec-groups{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(28px,2.4vw,44px)}
.spec-group-title{margin:0 0 8px;font-family:var(--font-zh);font-size:var(--pp-body);font-weight:500;letter-spacing:.1em;color:#fff}
.spec-groups .spec:first-child{border-top:1px solid #ffffff24}
.spec-panel .faq{border-top:0}
@media(max-width:760px){
  .spec-groups{gap:28px}
}

/* Animation design service band (pedestrian-signal.html): a wide card in the cards' frame, set apart by a brighter edge
   and a soft green glow from the top (the walking figure's colour); a small mono eyebrow over the section title. */
.service-card{padding:clamp(40px,4.5vw,88px) clamp(22px,4vw,80px);border:1px solid #ffffff38;border-radius:clamp(12px,1.2vw,20px);
  background:radial-gradient(120% 90% at 50% 0%,#2fd17a24,transparent 62%),#ffffff08}
.service-eyebrow{margin:0 auto clamp(12px,1vw,18px);font-family:var(--font-mono);font-size:var(--mono-type);letter-spacing:.24em;color:#7ee2a8}
.service-card .scene-tags{margin:clamp(20px,1.8vw,32px) 0 0}
.service-card .product-actions{margin-top:clamp(28px,2.4vw,44px)}

/* Product series list (both product pages), the last block before the footer: the landing page's numbered index at
   its full width inside the page gutters, with the footer's top space below it; the page's own product is dimmed and
   inert. */
.product-series{padding:0 var(--gutter) clamp(64px,9svh,110px)}
.product-series .product-index a[aria-current="page"]{opacity:.4;pointer-events:none}

/* Animation design page (animation-design.html): a centred hero under the header bar (eyebrow, title at the about
   title's size, one paragraph, the pixel flower in a black display frame drawn with crisp pixels), three service cards,
   five numbered steps in a row (stacked on phones); the production details and FAQ use the product information rows. */
.service-hero{background:#000;padding:calc(var(--header-bar) + clamp(56px,7vw,150px)) var(--intro-gutter) clamp(88px,7.5vw,180px);text-align:center}
.service-hero .service-eyebrow{margin-bottom:clamp(14px,1.2vw,22px)}
.service-title{margin:0 0 clamp(20px,2vw,36px);font-family:var(--font-zh);font-size:clamp(30px,3.4vw,64px);font-weight:700;line-height:1.25;letter-spacing:.04em}
.service-visual{width:min(420px,72vw);margin:clamp(40px,4vw,72px) auto 0;padding:clamp(14px,1.4vw,22px);border:1px solid #ffffff24;border-radius:clamp(12px,1.2vw,20px);background:#000}
.service-visual img{display:block;width:100%;height:auto;image-rendering:pixelated}
.service-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,1.2vw,20px);max-width:1360px;margin:0 auto;padding:0;list-style:none}
.service-cards .about-card-title{font-size:var(--pp-subtitle)}
.service-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(12px,1.2vw,20px);max-width:1360px;margin:0 auto;padding:0;list-style:none;counter-reset:none}
.service-steps li{display:flex;flex-direction:column;align-items:center;gap:12px;padding:clamp(22px,2vw,36px) 12px;border-top:2px solid #ffffff38;text-align:center}
.service-step-num{font-family:var(--font-mono);font-size:var(--mono-type);letter-spacing:.14em;color:#7ee2a8}
.service-step-name{font-family:var(--font-zh);font-size:var(--pp-body);letter-spacing:.06em;line-height:1.6;color:#fff}
@media(max-width:760px){
  .service-cards{grid-template-columns:minmax(0,1fr)}
  .service-steps{grid-template-columns:minmax(0,1fr);gap:0}
  .service-steps li{flex-direction:row;align-items:baseline;gap:16px;padding:16px 0;border-top:1px solid #ffffff24;text-align:left}
}
/* Pedestrian-safety topic page and the product pages' link to it: a button inside an about card (the .product-prose p
   margin would otherwise pull it up to the text), the note under the track-record cards, and the source and news lines in
   small grey type with an underlined link. */
/* The card is a column, so its button sits at the bottom and side-by-side cards line their buttons up. */
.about-card .product-actions{margin-top:auto;padding-top:clamp(20px,1.8vw,32px)}
.record-note{margin-top:clamp(28px,2.6vw,48px)}
.product-prose .source-note{font-size:var(--pp-small);color:#ffffff8c}
.source-note a{color:inherit;text-decoration:underline;text-underline-offset:.25em}
.source-note a:hover{color:#fff}
/* Related-news line: the same size and colour as the paragraph above it (it is part of the track record), with only the
   headline underlined as the link; the date stays outside the link. */
.news-link a{color:#fff;text-decoration:underline;text-decoration-color:#ffffff66;text-underline-offset:.25em}
.news-link a:hover{text-decoration-color:#fff}
/* Specification text for designers: a grey note, then numbered clauses in body type with the clause name in white,
   and a copy button (a <button>, so it drops the browser's own background and font). */
.design-spec-note{max-width:48em;margin:0 0 clamp(16px,1.4vw,24px);font-family:var(--font-zh);font-size:var(--pp-small);line-height:1.8;letter-spacing:.04em;color:#ffffff8c}
.design-spec{max-width:56em;margin:0;padding-left:1.8em;font-family:var(--font-zh);font-size:var(--pp-body);line-height:1.9;letter-spacing:.03em;color:#ffffffd9}
.design-spec li{margin-bottom:.5em;padding-left:.2em}
.design-spec li::marker{font-family:var(--font-sans);color:#ffffff8c}
.design-spec strong{font-weight:500;color:#fff}
button.product-button{background:none;cursor:pointer}
.copy-spec::after{content:none}
