/* services module (hub + five service pages), site-wide round 1. Tokens, type scale and surfaces from site.css only;
   every rule is scoped to this module's own classes (sv-*) or data attributes set by tools/v3/pages/services.py. */

/* ---------- the ONE Paper band: a split screen. Items left; on the right a film that runs from the header to the foot of
   the screen, bled to the page edge, and changes to the item being read (site.js: data-ix / data-layer). ---------- */
/* fix 1: rows are as tall as their words plus a measured gap (they were 64svh with the text centred: dead paper) */
.sv-ix .ix-list > li { min-height: 0; justify-content: flex-start; padding-block: clamp(2.25rem, 5.5svh, 3.75rem) clamp(2.5rem, 6svh, 4rem); }
.sv-ix .ix-list p + p { margin-top: .8rem; }
.sv-ix .ix-frame [data-layer] :is(img, video), .sv-ix .ix-list .ph :is(img, video) { object-position: var(--pos, 50% 50%); }
.sv-ix .ix-list h3 { font-size: clamp(1.7rem, 1.1rem + 1.9vw, 3rem); max-width: 16ch; }
.sv-ix .ix-list p { font-size: var(--t-body); }
.sv-ix .ix-list li.is-on p { color: var(--fg); }
/* symbols pass (2026-11-10): a stage figure opens its item (drawn top on the item's top, drawn left edge on the column's,
   1.5rem above its heading): 72 px drawn beside the 45 px heading, 40 px on phones. Quiet Ink at rest, a step stronger once
   passed, the accent while its item is the one being read, with one sixth of a turn into place. */
.sv-ix .sv-fig { display: block; width: max-content; margin: -.14em 0 calc(1.5rem - .2em) -.09em; font-size: var(--fig-s); line-height: 1; letter-spacing: 0; transform-origin: 50% 47%;
  color: var(--fig-c); opacity: var(--fig-rest); transition: color .5s var(--ease), opacity .5s var(--ease); }
@media (min-width: 64rem) { .sv-ix .sv-fig { font-size: var(--fig-m); } }
.sv-ix .ix-list li:has(~ li.is-on) .sv-fig { color: var(--fig-c-past); opacity: var(--fig-past); }
.sv-ix .ix-list li.is-on .sv-fig { color: var(--acc); opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .sv-ix .ix-list li:not(.is-on) .sv-fig { transform: rotate(-60deg); }
  .js .sv-ix .ix-list li:has(~ li.is-on) .sv-fig { transform: none; }
  .js .sv-ix .ix-list li.is-on .sv-fig { transition: color .5s var(--ease), opacity .5s var(--ease), transform var(--fig-turn) var(--fig-ease); }
}
/* the hub's one accent: a faint still of the 3D mark in the quiet Paper at the end of the heading's row, centred on the
   heading's cap height (never beside a stage figure: the stage map is a different band) */
.sv-ix--hub .ix-head { position: relative; }
.sv-ix--hub .ix-head .mk-acc { position: absolute; right: 0; top: calc(var(--t-display) * .51 - 2.25rem); --mk-acc-o: .5; }
@media (min-width: 64rem) { .sv-ix--hub .ix-head .mk-acc { top: calc(var(--sec) + var(--t-display) * .51 - 2.25rem); } }
@media (min-width: 64rem) {
  .sv-ix { --bleed: calc(var(--gut) + max(0px, (100vw - var(--wrap)) / 2)); padding-block: 0; }
  .sv-ix .ix { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; column-gap: clamp(2.5rem, 6vw, 7rem); }
  .sv-ix .ix-head { grid-column: 1; grid-row: 1; display: block; padding-top: var(--sec); margin-bottom: clamp(.5rem, 2vw, 1.5rem); }
  /* the list ends with room for its last row to reach the reading line, so the last film is seen with its own words */
  .sv-ix .ix-list { padding-bottom: max(var(--sec), 22svh); }
  .sv-ix .ix-head h2 { font-size: var(--t-display); }
  .sv-ix .ix-head p { margin-top: 1.25rem; }
  .sv-ix .ix-list { grid-column: 1; grid-row: 2; padding-bottom: var(--sec); }
  .sv-ix .ix-panel { grid-column: 2; grid-row: 1 / span 2; margin-right: calc(-1 * var(--bleed)); }
  .sv-ix .ix-frame { top: var(--hd); height: calc(100svh - var(--hd)); max-height: none; border-radius: 0; }
}
/* the panel opens from an inset as the band rises; the film settles from a slight push-in while the band is read */
@media (prefers-reduced-motion: no-preference) and (min-width: 64rem) { @supports (animation-timeline: view()) {
  .sv-ix { view-timeline: --svix block; }
  .sv-ix .ix-frame { animation: sv-open linear both; animation-timeline: --svix; animation-range: entry 10% entry 90%; }
  .sv-ix .ix-frame picture, .sv-ix .ix-frame video { animation: sv-push linear both; animation-timeline: --svix; animation-range: cover 0% cover 100%; }
  @keyframes sv-open { from { clip-path: inset(14% 0 18% 22%); } to { clip-path: inset(0 0 0 0); } }
  @keyframes sv-push { from { transform: scale(1.14); } to { transform: scale(1.02); } }
} }

/* ---------- Dusk: the questions the work answers, each set large ---------- */
.sv-asks-h { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(2rem, 6vw, 8rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.sv-asks-h h2 { font-size: var(--t-h2); max-width: 14ch; }
.sv-asks-h p { color: var(--fg-2); font-size: var(--t-lede); line-height: 1.45; max-width: 36ch; }
.sv-asks-h .more { margin-top: 1rem; font-size: var(--t-small); }
.sv-asks-l { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.sv-asks-l > li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(2rem, 6vw, 8rem); padding-block: clamp(2rem, 4.5vw, 3.75rem); border-bottom: 1px solid var(--rule); }
.sv-asks-l h3 { font-size: clamp(1.9rem, 1.15rem + 2.4vw, 3.5rem); font-stretch: 120%; line-height: 1.02; letter-spacing: -0.02em; max-width: 13ch; }
.sv-asks-l dl { margin: 0; display: grid; gap: 1.25rem; align-content: start; padding-top: .4rem; max-width: 40rem; }
.sv-asks-l dl > div { font-size: var(--t-lede); line-height: 1.45; color: var(--fg); }
.sv-asks-l dt { display: inline; font-weight: 640; font-stretch: 112%; }
.sv-asks-l dt::after { content: ' '; }
.sv-asks-l dd { display: inline; margin: 0; color: var(--fg-2); }
/* one question: the question carries the band at display size, its two answers side by side under it */
.sv-asks--one .sv-asks-l { border-top: 0; }
.sv-asks--one .sv-asks-l > li { grid-template-columns: 1fr; row-gap: clamp(2rem, 4vw, 3.5rem); padding-top: 0; border-bottom: 0; }
.sv-asks--one .sv-asks-l h3 { font-size: clamp(2.6rem, 1.2rem + 5vw, 6.5rem); max-width: 16ch; line-height: .98; }
.sv-asks--one .sv-asks-l dl { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 6vw, 8rem); max-width: none; padding-top: 1.75rem; border-top: 1px solid var(--rule); }
@media (max-width: 47.99rem) {
  .sv-asks-h, .sv-asks-l > li { grid-template-columns: 1fr; row-gap: 1.25rem; }
  .sv-asks--one .sv-asks-l dl { grid-template-columns: 1fr; }
}

/* ---------- what we will not do: a film band of its own design. The words sit on the RIGHT (every other band on the page
   speaks from the left), the three lines one block that brightens as the band rises; the film runs dim behind. ---------- */
/* taller than the screen: the band rises, stops with its words in the middle, and is read for a fifth of a screen of
   scrolling before the next panel starts to rise over it (the critique saw words cut by the roll-up) */
.sv-wf { min-height: 122svh; }
.sv-wf-scrim { background: linear-gradient(to left, rgb(7 19 28 / .9) 0%, rgb(7 19 28 / .74) 38%, rgb(7 19 28 / .2) 70%, rgb(7 19 28 / .05) 100%),
  linear-gradient(to bottom, rgb(7 19 28 / .45) 0, rgb(7 19 28 / 0) 22%); }
.sv-wf .wrap { align-content: center; justify-items: end; }
.sv-wf-t { width: fit-content; max-width: min(100%, 44rem); }
.sv-wf-t h2 { font-size: var(--t-h3); font-stretch: 118%; color: var(--c-glass); opacity: .86; }
.sv-wf-l { list-style: none; margin: clamp(1.5rem, 4svh, 2.75rem) 0 0; padding: 0; display: grid; row-gap: clamp(1.25rem, 3.4svh, 2.25rem);
  font-size: clamp(1.6rem, 1rem + 1.8vw, 2.9rem); font-stretch: 118%; font-weight: 580; line-height: 1.04; letter-spacing: -0.02em; color: var(--c-glass); }
.sv-wf-l > li { max-width: 19ch; }
.sv-wf-l > li + li { padding-top: clamp(1.25rem, 3.4svh, 2.25rem); border-top: 1px solid rgb(230 237 240 / .22); }
@media (max-width: 47.99rem) {
  .sv-wf { min-height: 108svh; }
  .sv-wf .wrap { justify-items: start; align-content: center; }
  .sv-wf-scrim { background: linear-gradient(to top, rgb(7 19 28 / .92) 0%, rgb(7 19 28 / .7) 55%, rgb(7 19 28 / .25) 100%); }
}
/* the buyers' questions follow on Night */
[data-sv="qa"] { padding-top: var(--sec); }

/* ---------- film bands of this module: the words sit higher, so the next panel rising from below does not cover them
   while they are read (critique: band-1 statement clipped at its roll-up) ---------- */
@media (min-width: 48rem) {
  .film[data-sv-film]:not(.sv-wf) { min-height: 118svh; }
  .film[data-sv-film]:is(.film--low, .film--inset, .film--split) .wrap { padding-bottom: clamp(6rem, 30svh, 17rem); }
}

/* ---------- the principals band (Paper): the portrait frame waits on a Paper-grey, never an empty box (site.css, .s-paper .person figure) ---------- */

/* ---------- Dusk (hub): the six stages in the Aperture Figures, each with the service that carries it ---------- */
.sv-map-h { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2rem, 6vw, 8rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.sv-map-h h2 { font-size: var(--t-display); max-width: 15ch; }
.sv-map-h p { color: var(--fg-2); font-size: var(--t-lede); line-height: 1.45; max-width: 34ch; }
.sv-stages > li > p { color: var(--fg); }
.sv-stages a.go { font-size: var(--t-lede); font-weight: 560; font-stretch: 108%; text-decoration: underline; text-decoration-color: var(--acc); text-underline-offset: .2em; }
.sv-stages a.go:hover { text-decoration-thickness: 2px; }
.sv-map-foot { display: flex; flex-wrap: wrap; gap: .5rem 2.5rem; align-items: baseline; margin-top: clamp(2rem, 4vw, 3rem); color: var(--fg-2); }
.sv-map-foot .more { margin: 0; }
@media (max-width: 47.99rem) { .sv-map-h { grid-template-columns: 1fr; row-gap: 1.25rem; } .sv-map-foot { flex-direction: column; } }

/* ---------- heroes: the two brightest films (roller, racking) get a deeper shade behind the copy ---------- */
@media (min-width: 48rem) {
  .hero--inner:is([data-sv-hero="roller"], [data-sv-hero="racking"], [data-sv-hero="office"]) .hero-ph .scrim { background:
    radial-gradient(120% 100% at 0% 100%, rgb(7 19 28 / .94) 0%, rgb(7 19 28 / .76) 34%, rgb(7 19 28 / .3) 62%, rgb(7 19 28 / 0) 82%),
    linear-gradient(to right, rgb(7 19 28 / .62) 0%, rgb(7 19 28 / .3) 40%, rgb(7 19 28 / 0) 64%),
    linear-gradient(to bottom, rgb(7 19 28 / .42) 0, rgb(7 19 28 / 0) 16%); }
}

/* ---------- the next service: its own hero film, full bleed, the whole band one link ---------- */
.sv-next { min-height: 88svh; display: grid; color: var(--c-glass); isolation: isolate; --fg: var(--c-glass); --fg-2: var(--c-glass); --acc: var(--c-teal); }
.sv-next .roll-in { z-index: -1; }
.sv-next .media img, .sv-next .media video { transition: transform 1.4s var(--quart); }
.sv-next-scrim { position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, rgb(7 19 28 / .88) 0%, rgb(7 19 28 / .42) 38%, rgb(7 19 28 / .1) 70%), linear-gradient(to right, rgb(7 19 28 / .45), rgb(7 19 28 / 0) 60%); }
.sv-next .wrap { position: relative; z-index: 3; display: grid; align-content: end; padding-block: calc(var(--hd) + 3rem) clamp(3rem, 10svh, 6.5rem); }
.sv-next h2 { font-size: var(--t-hero); font-stretch: 122%; font-weight: 620; line-height: .98; max-width: 14ch; }
.sv-next h2 a { text-decoration: none; }
.sv-next h2 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.sv-next p { margin-top: 1.25rem; max-width: 40ch; font-size: var(--t-lede); line-height: 1.45; opacity: .94; }
.sv-next:hover .media img, .sv-next:hover .media video { transform: scale(1.04); }
.sv-next:hover h2 a { text-decoration: underline; text-decoration-color: var(--c-teal); text-decoration-thickness: 3px; text-underline-offset: .12em; }
.sv-next:has(a:focus-visible) h2 a { outline: 2px solid var(--c-teal); outline-offset: 6px; }
@media (max-width: 47.99rem) { .sv-next { min-height: 80svh; } }

/* stage map (hub): the six stages in a line across the band, Aperture figures large; three by two under 64rem; rows on phones */
/* symbols pass (2026-11-10): six quiet figures (Steel at rest; none is singled out, the sixth is no longer teal); the one whose
   stage is pointed at or focused takes the accent. 72 px drawn above the name, 40 px beside it on phones; drawn left edge on
   the column's left edge, like the name and the link under it. Nothing moves here. */
.sv-map .sv-stages { --fh: clamp(1.35rem, 1rem + 1vw, 2rem); }
.sv-map .sv-stages > li > h3 { font-size: var(--fh); font-stretch: 120%; line-height: 1.06; }
.sv-map .sv-stages > li:nth-child(n)::before { font-size: var(--fig-s); margin-top: calc(var(--fh) * .53 - .47em); transition: color .4s var(--ease), opacity .4s var(--ease); }
.sv-map .sv-stages > li:is(:hover, :focus-within)::before { color: var(--acc); opacity: 1; }
@media (min-width: 48rem) {
  .sv-map .sv-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); border-top: 0; }
  /* the shared stage rows centre their cells in a wide container, which here centred the figure and the name in the column
     while the link sat on its left edge; the figure and the name now start on that edge too */
  .sv-map .sv-stages > li { display: flex; flex-direction: column; gap: .75rem; padding: 1.5rem 0 2.25rem; border-bottom: 0; border-top: 1px solid var(--rule); }
  .sv-map .sv-stages > li > h3 { align-self: flex-start; }   /* same box, same line breaks; it starts on the column's left edge instead of floating in the middle */
  .sv-map .sv-stages > li:nth-child(n)::before { font-size: var(--fig-m); align-self: flex-start; margin: -.14em 0 calc(.75rem - .2em) -.09em; }
  .sv-map .sv-stages > li > p { margin-top: auto; padding-top: .5rem; }
}
@media (min-width: 80rem) { .sv-map .sv-stages { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
