/* DIGITHRONEX · The Cut · Studio: the people who decide what stays. The first page in the studio room (studio white,
   ink type, cobalt as the instrument colour), so it opens in the dark and the lights come up.
   - 01 Lights: three banks of light switch on one by one as you scroll, then the house lights fill the room
   - 02–07 The people: a card each that the person steps out of; the team in rows whose sides alternate, each with
     the tools that person works in
   - 05–08: reading surfaces are solid studio sheets (white, a 1px line, the brand cut with its cobalt edge)
   Behavior: studio-page.js. Load after home.css and story.css. */

/* ---------- 01 Lights ---------- */
.lights-track { position: relative; height: 260vh; }
.lights-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; isolation: isolate; background: var(--d-ground); }
.lights-rig { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* a bank: the tube overhead, and the light it throws down into the room. Nearer banks hang lower and wider. */
.lights-bank { position: absolute; left: 50%; top: calc(max(96px, 15vh) + var(--i) * 6.5vh); width: calc(44% + var(--i) * 15%); transform: translateX(-50%); }
.lights-tube { position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 2px; background: rgba(241, 242, 244, .07); }
.lights-tube::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: #fff; opacity: 0;
  box-shadow: 0 0 14px 2px rgba(255, 255, 255, .6), 0 0 52px 12px rgba(214, 233, 255, .2);
}
.lights-spill { position: absolute; left: -24%; right: -24%; top: 0; height: 78vh; opacity: 0; background: radial-gradient(56% 52% at 50% 0%, rgba(241, 242, 244, .15), rgba(241, 242, 244, 0) 72%); }
/* switching on: a fluorescent's stutter, then steady (10 frames) */
.lights-bank.is-on .lights-tube::after, .lights-bank.is-on .lights-spill { opacity: 1; animation: lights-on calc(10 * var(--f)) linear both; }
@keyframes lights-on { 0% { opacity: 0; } 12% { opacity: .85; } 22% { opacity: .1; } 36% { opacity: 1; } 48% { opacity: .4; } 60%, 100% { opacity: 1; } }
/* the house lights: the room itself, filling with daylight */
.lights-house { position: absolute; inset: 0; z-index: 1; background: var(--s-ground); opacity: var(--l, 0); pointer-events: none; }
.lights-captions { z-index: 2; }
.lights-cue .beat-text { font-size: clamp(44px, 7.6vw, 136px); }
.lights-title {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 18px;
  padding-inline: var(--margin); text-align: center; color: var(--s-text); pointer-events: none;
}
.lights-title .statement { color: var(--s-text); font-size: clamp(72px, 13vw, 240px); }
.lights-kicker { color: var(--s-text3); }
.lights-lead { color: var(--s-text2); max-width: 34em; }
.lights-hint { position: absolute; left: 50%; bottom: clamp(22px, 4.5vh, 52px); z-index: 3; margin: 0; transform: translateX(-50%); color: rgba(241, 242, 244, .55); white-space: nowrap; transition: opacity calc(10 * var(--f)) linear; }
.lights.is-moved .lights-hint { opacity: 0; }
/* until the script has the scene: the title waits for its rise, the subtitle for its own (unless it arrived by a cut) */
.js .lights:not(.is-ready) :is(.lights-kicker, .lights-title .statement, .lights-lead) { opacity: 0; }
.rise-run:not([data-arrival]) .lights:not(.is-in) .lights-cue { opacity: 0; animation: dx-failsafe 1ms linear 2.5s forwards; }
@keyframes dx-failsafe { to { opacity: 1; } }
/* reduced motion: the lights are simply on */
.lights.is-static .lights-track { height: auto; }
.lights.is-static .lights-stage { position: relative; background: var(--s-ground); }
.lights.is-static .lights-captions, .lights.is-static .lights-hint, .lights.is-static .lights-rig { display: none; }

/* ---------- The studio room's parts ---------- */
.st-head { display: grid; gap: 14px; max-width: 48rem; margin-bottom: clamp(32px, 4vw, 56px); }
.studio .eyebrow { color: var(--s-text3); }
.st-title { font-size: clamp(38px, 5vw, 86px); color: var(--s-text); text-wrap: balance; }
.st-lead { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.5; color: var(--s-text2); max-width: 38em; }
.st-note { margin-top: 18px; font-size: 15px; color: var(--s-text2); }
/* a solid studio sheet: white, a 1px line, and the brand cut on its corner with the edge drawn in cobalt */
.st-sheet {
  --c: var(--cut-l); position: relative;
  background:
    linear-gradient(to top right, transparent calc(50% - .75px), var(--s-signal) calc(50% - .75px), var(--s-signal) calc(50% + .75px), transparent calc(50% + .75px)) right top / var(--c) var(--c) no-repeat,
    var(--s-surface);
  box-shadow: inset 0 0 0 1px var(--s-line);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%);
}

/* ---------- The people: a card each (Portrait.astro) ---------- */
/* At rest: the portrait in a 3:4 frame with the brand cut. Stepping out (.is-up: hover, or in view on a phone): the
   frame leans back, a band of light crosses it at 45°, the person rises out over its top edge and the label lifts.
   With a fine pointer the card also tilts a few degrees toward it. Only transforms and opacity move. */
.pcard { position: relative; width: 100%; aspect-ratio: 3 / 4; margin: 0; perspective: 1600px; container-type: inline-size; }
.pcard-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform calc(14 * var(--f)) var(--ease-focus); }
.pcard.is-tracking .pcard-tilt { transition-duration: calc(3 * var(--f)); }
.pcard-back {
  --c: var(--cut-l); position: absolute; inset: 0; overflow: hidden; transform-origin: 50% 100%;
  background:
    linear-gradient(to top right, transparent calc(50% - .75px), rgba(255, 255, 255, .7) calc(50% - .75px), rgba(255, 255, 255, .7) calc(50% + .75px), transparent calc(50% + .75px)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(45deg, transparent 63%, rgba(1, 128, 255, .16) 63.2%, transparent 63.6%),
    radial-gradient(90% 70% at 22% 8%, rgba(241, 242, 244, .12), rgba(241, 242, 244, 0) 62%),
    #15171A;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%);
  transition: transform calc(12 * var(--f)) var(--ease-focus);
}
.pcard.is-up .pcard-back { transform: translateY(-3%) rotateX(20deg); }
.pcard-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* the top darkens as the frame leans back, so the person stepping out stands clear of it */
.pcard-shade { position: absolute; inset: 0; opacity: 0; transition: opacity calc(12 * var(--f)) linear; background: linear-gradient(to bottom, rgba(11, 12, 14, .82), rgba(11, 12, 14, .35) 40%, rgba(11, 12, 14, 0) 62%), linear-gradient(to top, rgba(11, 12, 14, .7), rgba(11, 12, 14, 0) 30%); }
.pcard.is-up .pcard-shade { opacity: 1; }
.pcard-sweep { position: absolute; inset: -30%; opacity: 0; transform: translate3d(-45%, 45%, 0); background: linear-gradient(45deg, transparent 44%, rgba(255, 255, 255, .16) 50%, transparent 56%); transition: transform calc(22 * var(--f)) var(--ease-focus), opacity calc(6 * var(--f)) linear; }
.pcard.is-up .pcard-sweep { opacity: 1; transform: translate3d(45%, -45%, 0); }
.pcard-person { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; -webkit-mask-image: linear-gradient(to top, transparent, #000 24%); mask-image: linear-gradient(to top, transparent, #000 24%); pointer-events: none; transform: translate3d(0, 0, 0); transition: opacity calc(8 * var(--f)) linear, transform calc(14 * var(--f)) var(--ease-focus); }
.pcard.is-up .pcard-person { opacity: 1; transform: translate3d(0, -15%, 70px); }
.pcard-label { position: absolute; left: 18px; bottom: 16px; margin: 0; color: rgba(241, 242, 244, .82); transition: transform calc(12 * var(--f)) var(--ease-focus); }
.pcard.is-up .pcard-label { transform: translate3d(0, -8px, 50px); }
.pcard-slate { position: absolute; left: 16px; right: 16px; top: 14px; color: rgba(241, 242, 244, .5); font-size: 10.5px; }
/* the name, set on the card like a film poster's title, with the role as its credit line under it; the floor of shade
   keeps it readable on any photograph, and it lifts toward you as the person steps out */
.pcard-floor { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 12, 14, .82), rgba(11, 12, 14, .3) 26%, rgba(11, 12, 14, 0) 44%); }
.pcard-title {
  position: absolute; left: 6%; right: 6%; bottom: calc(18px + 1.4em); margin: 0; text-align: center; pointer-events: none;
  font-stretch: 75%; font-weight: 760; font-size: clamp(22px, 15cqw, 84px); line-height: .9; letter-spacing: .01em; text-transform: uppercase; color: #F1F2F4;
  transition: transform calc(12 * var(--f)) var(--ease-focus);
}
.pcard.is-up .pcard-title { transform: translate3d(0, -12px, 90px); }
.pcard--titled .pcard-label { left: 0; right: 0; bottom: 16px; text-align: center; font-size: 10.5px; letter-spacing: .24em; color: rgba(241, 242, 244, .72); }
/* the stand-in: a drawn silhouette, faint in the frame and lit when it steps out; the founder's head is a question mark */
.pcard-figure path, .pcard-figure ellipse { fill: currentColor; }
.pcard-figure text { fill: currentColor; font-family: var(--font-sans); font-stretch: 75%; font-weight: 800; font-size: 190px; }
.pcard-back .pcard-figure { color: rgba(241, 242, 244, .13); }
.pcard-person.pcard-figure { color: #D9DCE1; }
.pcard--mystery .pcard-person.pcard-figure text { fill: var(--brand-azure); }

/* a person's row: the card on one side, the words on the other, sides alternating down the page */
.person { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; margin-top: clamp(96px, 11vw, 180px); }
.person-card { grid-row: 1; grid-column: 8 / span 4; }
.person-text { grid-row: 1; grid-column: 2 / span 5; display: grid; gap: 10px; }
.person[data-side="left"] .person-card { grid-column: 2 / span 4; }
.person[data-side="left"] .person-text { grid-column: 7 / span 5; }
.person-no { margin: 0; color: var(--s-signal); }
.person-name { margin: 0; font-stretch: 112.5%; font-weight: 560; font-size: clamp(30px, 3.4vw, 56px); line-height: 1.04; letter-spacing: -.012em; color: var(--s-text); }
.person-role { margin: 0; color: var(--s-text2); }
.person-line { margin: 4px 0 0; max-width: 30em; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; color: var(--s-text2); }
.person .fact, .pair .fact, .founder .fact { white-space: normal; }
/* a team member's row: their first name runs huge across the row, behind the picture (the person steps out in front of
   it), and drifts sideways as the row passes; the details sit tight at the top, under a rule */
.dept-head + .person { margin-top: clamp(72px, 8vw, 128px); }
.person--member { position: relative; align-items: stretch; }
.person--member .person-card { position: relative; z-index: 1; grid-column: 8 / span 5; }
.person--member[data-side="left"] .person-card { grid-column: 1 / span 5; }
.person--member .person-text { grid-column: 1 / span 6; }
.person--member[data-side="left"] .person-text { grid-column: 7 / span 6; }
.person--member .person-text { position: relative; z-index: 2; align-self: start; gap: 12px; padding-top: 18px; border-top: 1px solid var(--s-text); }
/* the giant name is as big as its length allows (short names are capped), so it fills the row's lower corner; under
   the words there's always room for it: where they run longer than the picture, the row grows to keep them clear of
   the name, and the picture stays down on it */
.person--member { --big: max(clamp(104px, 16vw, 290px), min(calc(115vw / var(--len, 6)), 17.2vw, 330px)); }
.person--member .person-text { padding-bottom: calc(var(--big) * .74 + 60px); }
.person--member .person-card { align-self: end; }
.person-big {
  position: absolute; left: 0; right: 0; bottom: 2%; z-index: 0; margin: 0; pointer-events: none; white-space: nowrap;
  font-stretch: 75%; font-weight: 760; font-size: var(--big, clamp(104px, 16vw, 290px)); line-height: .74; letter-spacing: -.02em; color: var(--s-text);
}
.person[data-side="right"] .person-big { text-align: right; padding-right: 21%; }
.person[data-side="left"] .person-big { text-align: left; padding-left: 21%; }
.person-big-word { display: inline-block; transform: translate3d(var(--drift, 0px), 0, 0); }
.person-index { margin: 0; font-family: var(--font-mono); font-stretch: 87.5%; font-size: clamp(40px, 4vw, 64px); line-height: 1; letter-spacing: -.02em; color: var(--s-signal); }
.person--member .person-name { font-size: clamp(24px, 2.2vw, 34px); }
.person-about { margin: 0; max-width: 30em; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; color: var(--s-text); }
.person-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; }
.person-tags li { padding: 7px 11px; border: 1px solid var(--s-line); border-radius: 2px; background: var(--s-surface); font-stretch: 112.5%; font-weight: 560; font-size: 12.5px; letter-spacing: .02em; color: var(--s-text2); }
/* the tools a person works in, as a spec list filling the space between their tags and their giant name: a ruled
   line each, the full width of the words, with the tool's own logo in its own colour, its name, what the tool is, and
   its number. As the row arrives each line's rule draws across, its logo draws its outline and floods with colour,
   and the name types in. With a mouse a band of the tool's colour sweeps along the line, the rule turns that colour
   (and runs off to the right when the pointer leaves), the logo grows and a shine crosses it, and the name steps
   aside. Logos keep their own colours (Adobe's dark squares and coloured letters draw and flood shape by shape);
   LinkedIn's comes only as a picture, so it wipes in instead of drawing. Social media management, a service, has a
   plain drawn mark in ink and a cobalt glint round its frame. Narrow, what the tool is drops under its name. Only transforms and opacity move, besides
   each logo's strokes, once. studio-page.js arms the list. */
.kit { container-type: inline-size; display: grid; gap: 10px; margin-top: clamp(18px, 2.2vw, 40px); }
.kit-label { margin: 0; color: var(--s-text3); }
.kit-list { list-style: none; margin: 0; padding: 0; }
.kit-tool {
  --tint: color-mix(in srgb, var(--brand) 15%, transparent);
  position: relative; display: grid; grid-template-columns: clamp(36px, 2.8vw, 52px) minmax(0, 1fr) auto clamp(24px, 2vw, 36px);
  grid-template-areas: "mark name what n"; align-items: center; column-gap: clamp(14px, 1.4vw, 26px);
  min-height: clamp(50px, 3.1vw, 60px); padding: 6px 0;
}
.kit-tool::before, .kit-tool:last-child::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--s-line); transform-origin: 0 50%; }
.kit-tool::before { top: 0; }
.kit-tool:last-child::after { bottom: 0; }
/* the tool's own colour along its rule, waiting until the pointer arrives */
.kit-edge {
  position: absolute; left: 0; right: 0; top: -.5px; height: 2px; background: var(--brand); pointer-events: none;
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform calc(10 * var(--f)) var(--ease-focus);
}
.kit-sheen { position: absolute; inset: 1px 0; overflow: hidden; pointer-events: none; transition: background-color calc(10 * var(--f)) linear; }
.kit-sheen::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 42%;
  background: linear-gradient(100deg, transparent 8%, var(--tint) 50%, transparent 92%); transform: translate3d(-102%, 0, 0);
}
.kit-mark { grid-area: mark; position: relative; justify-self: center; display: block; width: auto; max-width: 100%; height: clamp(24px, 1.75vw, 34px); overflow: visible; color: var(--brand); transition: transform calc(10 * var(--f)) var(--ease-focus); }
.kit-draw { fill: var(--fill, currentColor); stroke: var(--fill, currentColor); stroke-width: calc(.45px * var(--k, 1)); stroke-linejoin: round; stroke-opacity: 0; }
.kit-shine { transform: translate3d(-16px, 0, 0) skewX(-20deg); }
.kit-defs { position: absolute; }
.kit-tool[data-plain] .kit-mark { color: var(--s-text); }
.kit-tool[data-plain] .kit-draw { fill: none; stroke-width: 1.1; stroke-opacity: 1; }
/* a logo that only comes as a picture: the shine crosses it through its own shape */
.kit-pic { height: clamp(24px, 1.75vw, 34px); }
.kit-pic img { display: block; width: auto; height: 100%; }
.kit-pic::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: var(--pic) center / contain no-repeat; mask: var(--pic) center / contain no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .7) 50%, transparent 62%) no-repeat 100% 0 / 300% 100%;
}
.kit-glyph { fill: currentColor; }
.kit-trace { fill: none; stroke: var(--s-signal); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: .16 .84; opacity: 0; }
.kit-short { fill: currentColor; font-family: var(--font-mono); font-stretch: 87.5%; font-weight: 560; font-size: 8.6px; letter-spacing: -.02em; text-anchor: middle; dominant-baseline: central; }
.kit-name { grid-area: name; position: relative; font-stretch: 112.5%; font-weight: 560; font-size: clamp(18px, 1.4vw, 26px); line-height: 1.12; letter-spacing: -.012em; color: var(--s-text); transition: transform calc(10 * var(--f)) var(--ease-focus); }
.kit-what { grid-area: what; position: relative; margin: 0; text-align: right; color: var(--s-text2); }
.kit-n { grid-area: n; position: relative; margin: 0; text-align: right; color: var(--s-text3); }
.kit-word { white-space: nowrap; }
.kit-word > span { display: inline-block; }
/* narrow (phones, small laptops): what the tool is drops under its name */
@container (max-width: 520px) {
  .kit-tool { grid-template-columns: clamp(34px, 9cqw, 44px) minmax(0, 1fr) 26px; grid-template-areas: "mark name n" "mark what n"; row-gap: 3px; padding: 12px 0; }
  .kit-what { text-align: left; }
}
/* the entrance, once, as the row arrives: the rule draws, the logo draws and floods, the name types */
.kit.is-armed:not(.is-in) .kit-tool { opacity: 0; }
.kit.is-in .kit-tool::before { animation: kit-rule calc(16 * var(--f)) var(--ease-focus) calc(var(--i) * 3 * var(--f)) backwards; }
.kit.is-in .kit-tool:last-child::after { animation: kit-rule calc(16 * var(--f)) var(--ease-focus) calc((var(--i) + 1) * 3 * var(--f)) backwards; }
.kit.is-in .kit-draw { animation: kit-draw calc(24 * var(--f)) cubic-bezier(.5, 0, .25, 1) calc((var(--i) * 3 + 3) * var(--f)) backwards; }
.kit.is-in .kit-tool[data-plain] .kit-draw { animation-name: kit-draw-plain; }
.kit.is-in .kit-pic { animation: kit-wipe calc(18 * var(--f)) cubic-bezier(.5, 0, .25, 1) calc((var(--i) * 3 + 4) * var(--f)) backwards; }
.kit.is-in .kit-short, .kit.is-in .kit-glyph { animation: kit-in calc(6 * var(--f)) linear calc((var(--i) * 3 + 21) * var(--f)) backwards; }
.kit.is-in .kit-word > span { animation: kit-type calc(2 * var(--f)) linear calc((var(--i) * 3 + 10) * var(--f) + var(--c) * 28ms) backwards; }
.kit.is-in .kit-what, .kit.is-in .kit-n { animation: kit-in calc(10 * var(--f)) linear calc((var(--i) * 3 + 14) * var(--f)) backwards; }
@keyframes kit-rule { from { transform: scaleX(0); } }
@keyframes kit-draw {
  0% { stroke-dasharray: 1 1; stroke-dashoffset: 1; stroke-opacity: 1; fill-opacity: 0; }
  68% { stroke-dasharray: 1 1; stroke-dashoffset: 0; stroke-opacity: 1; fill-opacity: 0; }
  100% { stroke-dasharray: 1 1; stroke-dashoffset: 0; stroke-opacity: 0; fill-opacity: 1; }
}
@keyframes kit-draw-plain { 0% { stroke-dasharray: 1 1; stroke-dashoffset: 1; } 80%, 100% { stroke-dasharray: 1 1; stroke-dashoffset: 0; } }
@keyframes kit-wipe { from { clip-path: inset(0 100% 0 0); } }
@keyframes kit-in { from { opacity: 0; } }
@keyframes kit-type { from { opacity: 0; } }
/* the pointer on a line */
@media (hover: hover) and (pointer: fine) {
  .kit-tool:hover .kit-edge { transform: scaleX(1); transform-origin: 0 50%; transition-duration: calc(14 * var(--f)); }
  .kit-tool:hover .kit-sheen { background-color: color-mix(in srgb, var(--brand) 4%, transparent); }
  .kit-tool:hover .kit-sheen::after { transform: translate3d(340%, 0, 0); transition: transform calc(22 * var(--f)) cubic-bezier(.4, 0, .2, 1); }
  .kit-tool:hover .kit-mark { transform: scale(1.12); }
  .kit-tool:hover .kit-name { transform: translate3d(6px, 0, 0); }
  .kit-tool:hover .kit-shine { transform: translate3d(44px, 0, 0) skewX(-20deg); transition: transform calc(16 * var(--f)) cubic-bezier(.4, 0, .2, 1) calc(2 * var(--f)); }
  .kit-tool:hover .kit-trace { animation: kit-trace calc(26 * var(--f)) cubic-bezier(.45, 0, .25, 1) both; }
  .kit-tool:hover .kit-pic::after { background-position: 0 0; transition: background-position calc(16 * var(--f)) cubic-bezier(.4, 0, .2, 1) calc(2 * var(--f)); }
}
@keyframes kit-trace { 0% { opacity: 0; stroke-dashoffset: .16; } 12%, 82% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: -.84; } }

/* what a person leads or focuses on, under its small label; a cofounder's own words, quoted as written */
.person-leads { display: grid; gap: 4px; margin: 6px 0 0; max-width: 32em; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.5; color: var(--s-text2); }
.person-leads .label { color: var(--s-text3); }
.person-bio { margin: 12px 0 0; padding-left: 16px; border-left: 2px solid var(--s-signal); max-width: 32em; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.5; color: var(--s-text); }
.person-bio p { margin: 0; }

/* the founder: a bigger card, and the words that build up to him */
.founder .wrap { padding-top: clamp(64px, 8vw, 128px); }
.person--founder { margin-top: 0; }
.person--founder .person-card { grid-column: 7 / span 5; }
.person--founder .person-text { grid-column: 1 / span 6; }
.founder-name { margin-top: 6px; }
.founder-file { display: grid; gap: 10px; margin: 20px 0 0; padding: 16px 0; border-top: 1px solid var(--s-text); border-bottom: 1px solid var(--s-line); }
.founder-file div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
.founder-file dt { color: var(--s-text3); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.founder-file dd { margin: 0; color: var(--s-text); }
.founder-quote { margin: 16px 0 0; padding-left: 18px; border-left: 2px solid var(--s-signal); font-size: 18px; line-height: 1.5; color: var(--s-text); }
.founder-quote p { margin: 0; }

/* the cofounders: side by side */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 112px); max-width: 1000px; margin-inline: auto; padding-top: clamp(48px, 6vw, 96px); }
.pair-one { display: grid; gap: 24px; align-content: start; }
.pair-text { display: grid; gap: 8px; }

/* ---------- 03 Karachi, right now ---------- */
.now-grid { align-items: end; }
.now-clock { display: flex; align-items: baseline; gap: 6px; margin: 22px 0 0; font-family: var(--font-mono); font-stretch: 87.5%; font-variant-numeric: tabular-nums; }
.now-hm { font-size: clamp(76px, 10.5vw, 176px); font-weight: 400; line-height: .9; letter-spacing: -.035em; color: var(--s-text); }
.now-s { font-size: clamp(18px, 1.8vw, 28px); color: var(--s-signal); }
.now-date { margin: 10px 0 0; color: var(--s-text3); }
.now-status { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font-size: clamp(18px, 1.4vw, 21px); color: var(--s-text); }
.now-status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--s-line); }
.now-status.is-open::before { background: var(--s-signal); box-shadow: 0 0 0 3px rgba(1, 88, 207, .18); }
.now-photo { margin: 0; display: grid; gap: 10px; }
.now-frame { width: 100%; aspect-ratio: 16 / 9; }
.now-clocks { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; }
.now-clocks li { display: grid; align-content: start; gap: 6px; padding: clamp(18px, 2vw, 28px); border-right: 1px solid var(--s-line); }
.now-clocks li:last-child { border-right: 0; }
.now-clocks .label { color: var(--s-text3); }
.now-you .label { color: var(--s-signal); }
.now-city { font-weight: 560; font-size: 19px; letter-spacing: -.01em; color: var(--s-text); }
.now-t { font-size: 15px; color: var(--s-text); font-variant-numeric: tabular-nums; }
.now-addr { color: var(--s-text3); }
.now-addr .fact { white-space: normal; }

/* ---------- 04 The schedule ---------- */
.schedule-sheet { padding: clamp(18px, 2.4vw, 34px); }
.schedule-table { width: 100%; border-collapse: collapse; }
.schedule-table thead th { white-space: nowrap; padding: 0 16px 12px 0; border-bottom: 1px solid var(--s-text); text-align: left; font-weight: 450; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--s-text3); }
.schedule-table tbody th, .schedule-table td { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--s-line); text-align: left; vertical-align: baseline; }
.schedule-table tbody th { white-space: nowrap; font-weight: inherit; }
.schedule-no { margin-right: 12px; color: var(--s-signal); }
.schedule-name { font-weight: 560; font-size: clamp(19px, 1.6vw, 24px); letter-spacing: -.01em; color: var(--s-text); }
.schedule-what { max-width: 34em; font-size: 16px; line-height: 1.5; color: var(--s-text2); }
.schedule-table td.data { white-space: nowrap; color: var(--s-text2); }
.schedule-terms { display: flex; flex-wrap: wrap; gap: 10px 40px; margin: 20px 0 0; }
.schedule-terms div { display: flex; gap: 10px; }
.schedule-terms dt { color: var(--s-text3); }
.schedule-terms dd { margin: 0; color: var(--s-text); }

/* ---------- 05 Why we started ---------- */
.studio .beat-text { color: var(--s-text); }
.beat--studio .beat-stage { background: var(--s-ground); }
.why-wrap { padding-top: 0; }
.why-story { margin-top: 18px; }
/* what we were set up against, struck through in the cut's colour, and what we promise instead */
.promises { list-style: none; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; border-top: 1px solid var(--s-text); }
.promises li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--s-line); }
.promises-against { color: var(--s-text3); text-decoration: line-through; text-decoration-color: var(--s-signal); text-decoration-thickness: 1.5px; }
.promises-we { font-size: clamp(19px, 1.6vw, 24px); color: var(--s-text); }
.promises .fact { white-space: normal; }

/* ---------- 06 Who we work with ---------- */
.kinds { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; font-stretch: 75%; font-weight: 680; font-size: clamp(34px, 4.8vw, 84px); line-height: 1.04; letter-spacing: -.012em; color: var(--s-text); }
.kinds li:not(:last-child)::after { content: "·"; margin-inline: .22em; color: var(--s-signal); }
.clients-roll { display: grid; gap: 16px; margin: clamp(40px, 5vw, 72px) 0 0; }
.clients-roll div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; align-items: baseline; }
.clients-roll dt { color: var(--s-text3); }
.clients-roll dd { margin: 0; font-size: 18px; color: var(--s-text); }
.clients-roll .fact { white-space: normal; }
.clients-links { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 36px; }

@media (max-width: 900px) {
  .person, .person--founder { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .person .person-card, .person[data-side="left"] .person-card, .person--founder .person-card { grid-column: 1; grid-row: 1; width: min(100%, 360px); margin-top: 12%; }
  .person .person-text, .person[data-side="left"] .person-text, .person--founder .person-text { grid-column: 1; grid-row: 2; }
  .pair { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .person--member .person-big { position: relative; grid-row: 2; bottom: auto; margin-top: -.42em; text-align: center; font-size: min(26vw, calc(180vw / var(--len, 6))); } /* every name fits the phone */
  .person[data-side="right"] .person-big, .person[data-side="left"] .person-big { padding: 0; text-align: center; }
  .person--member .person-card, .person--member[data-side="left"] .person-card { grid-column: 1; }
  .person--member .person-text, .person--member[data-side="left"] .person-text { grid-column: 1; grid-row: 3; padding-bottom: 0; }
  .now-clocks { grid-template-columns: minmax(0, 1fr); }
  .now-clocks li { border-right: 0; border-bottom: 1px solid var(--s-line); }
  .now-clocks li:last-child { border-bottom: 0; }
  .schedule-table thead { display: none; }
  .schedule-table tbody tr { display: grid; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--s-line); }
  .schedule-table tbody th, .schedule-table td { padding: 0; border: 0; }
  .schedule-table td.data { white-space: normal; }
  .promises li, .clients-roll div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .lights-bank.is-on .lights-tube::after, .lights-bank.is-on .lights-spill { animation: none; }
  .pcard-tilt, .pcard-back, .pcard-person, .pcard-shade, .pcard-sweep, .pcard-label { transition: none; }
  .person-big-word { transform: none; }
  .kit-edge, .kit-mark, .kit-name { transition: none; }
  .kit-sheen, .kit-shine, .kit-trace, .kit-pic::after { display: none; }
}
