/* ==========================================================================
   Self — Tech page  ("Tech — D", 1728px frame)
   Laid out exactly like the homepage: every desktop size is N * var(--u), with --u = 1/1728 of the window width,
   and below 800px the mobile adaptation takes over (the file has no mobile frame for this page).
   The Brand page ("Brand — D") is the same layout with other words and pictures: it shares everything here (its own few differences are in brand.css),
   and the Studio page borrows the Mates block.

   Text boxes in the design are trimmed to cap-height / baseline. Aguzzo: ascent .80, descent .26, cap .765.
   For a line-height L and size S the line box has half-leading (L - 1.06S) / 2, so
     margin-top    = -(half-leading + .035S)     (line top -> cap top)
     margin-bottom = -(half-leading + .26S)      (baseline -> line bottom)
   which is what the small negative margins below do.
   ========================================================================== */

/* ---------- The view + the veil used when passing between pages (see pass.js) ---------- */
.view { position: relative; z-index: 1; }
.view[hidden] { display: none !important; }
.view--tech, .view--brand { background: #f0f0f0; color: #0f0f0f; }
body[data-view="tech"], body[data-view="brand"] { background: #f0f0f0; }

/* "Passing through" (Figma frame): the page being left sits under a 70 % white layer in difference mode, which flattens and inverts every colour
   (result = 0.7 - 0.4 * colour). Each page carries its own layer, so when the next page dissolves in over it the veil goes with the old page,
   as in the prototype. The navigation, which stays put, gets the same effect as a filter: invert(70 %) is exactly that maths.
   The pages (Home, Tech, Studio, Brand) pass under the veil (body.is-veil) whichever way they are changed; a project page is reached with the plain 0.3 s dissolve of its own prototype link. */
.view__pass {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: #fff; mix-blend-mode: difference; opacity: 0;
}
.view.is-veiled > .view__pass { opacity: .7; }
body.is-passing { pointer-events: none; }
body.is-passing.is-veil .topbar > *, body.is-passing.is-veil .dock a { filter: invert(.7); }
body.is-passing.is-veil.is-dissolving .topbar > *, body.is-passing.is-veil.is-dissolving .dock a {
  filter: invert(0); transition: filter var(--pass-fade, 300ms) cubic-bezier(.42, 0, 1, 1);
}
.view.is-old { position: fixed; left: 0; right: 0; width: 100%; z-index: 0; overflow: hidden; overflow: clip; }   /* clip, so a pinned caption (.t-rail) stays pinned while the page is frozen */
.view.is-new { position: relative; z-index: 1; }

.t-main { display: block; overflow-x: clip; }
:where(.view--tech, .view--brand) :where(h3) { margin: 0; font: inherit; }
:where(.view--tech, .view--brand) :where(ol) { margin: 0; padding: 0; list-style: none; }

/* Display type: the statement at the top of the Tech and Brand pages and the "Useful info" of both are one style. Aguzzo Book 90, line height Auto, tracking -3 %;
   stylistic set 1 and discretionary ligatures on, ligatures and contextual forms off. (The boxes are trimmed to the cap-top of the first line and the baseline of the last:
   Aguzzo's Auto line is 1.056 em, .8 above the baseline and .256 below it, and the cap is .765, so the cap-top sits .035 em, 3.15, under the top of its line.) */
.t-title, .t-h2 {
  font-weight: 400;
  font-size: calc(90 * var(--u));
  line-height: normal;
  letter-spacing: -.03em;
  font-feature-settings: "ss01" 1, "calt" 0, "liga" 0, "dlig" 1;
}

/* ---------- Header ---------- */
.t-head { padding: calc(226.85 * var(--u)) calc(39 * var(--u)) 0; }          /* the cap-top of the first line at 230 (the Brand page's at 200: brand.css) */
.t-title {
  width: calc(1650 * var(--u)); max-width: 100%;
  margin: 0 0 calc(-23.04 * var(--u));                                       /* trimmed to the baseline of the last line */
  color: #0f0f0f;                                                  /* the design's white type in "difference" over #f0f0f0 */
}

/* "Our Means" and the five skills: 26px type, 9px of air around it, the hand-drawn line 10px under the baseline */
.t-skills { display: flex; align-items: flex-start; gap: calc(16 * var(--u)); margin-top: calc(100 * var(--u)); }
.t-skills__list { display: flex; align-items: flex-start; gap: calc(12 * var(--u)); }
.t-skill {
  position: relative; display: block; height: calc(48 * var(--u));
  padding: calc(9 * var(--u));
  color: #0f0f0f; cursor: default;
}
.t-skill__text {
  display: block; white-space: nowrap;
  font-size: calc(26 * var(--u)); line-height: calc(27.56 * var(--u)); letter-spacing: -.03em;
  margin: calc(-.1 * var(--u)) 0 calc(-7.57 * var(--u));           /* -.5 … +.3 lands the glyphs on the same pixel rows as the design's export */
}
/* the line: an empty box, 25px tall, with the hand-drawn stroke drawn into it by tech.js (an SVG that wanders about the middle).
   Until that has run, a plain 1px rule stands in. */
.t-skill__line {
  position: absolute; left: calc(9 * var(--u)); right: calc(9 * var(--u)); top: calc(26.5 * var(--u)); height: calc(25 * var(--u));
  color: #000; pointer-events: none;
}
.t-skill__line::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - .5px); height: max(1px, calc(1 * var(--u))); background: currentColor; }
.t-skill__line.is-drawn::after { display: none; }
.t-skill__line svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; display: block; }
/* box widths as in the design (its text renders a hair wider than the browser's, so the boxes keep the design's spacing) */
.t-skill--label { min-width: calc(145 * var(--u)); }
.t-skills__list .t-skill:nth-child(1) { min-width: calc(166 * var(--u)); }
.t-skills__list .t-skill:nth-child(2) { min-width: calc(217 * var(--u)); }
.t-skills__list .t-skill:nth-child(3) { min-width: calc(214 * var(--u)); }
.t-skills__list .t-skill:nth-child(4) { min-width: calc(174 * var(--u)); }
.t-skills__list .t-skill:nth-child(5) { min-width: calc(153 * var(--u)); }

/* ---------- Work: photograph + carousel ---------- */
.t-work { margin-top: calc(130 * var(--u)); }
.t-photo { position: relative; height: calc(1690 * var(--u)); margin: 0; background: #2a5278; overflow: clip; }   /* clip, not hidden: hidden would make the picture a scroll container and the caption could no longer pin to the window */
.t-photo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* The big picture's film (Nichebox's): muted, looping, asked for when the picture first comes near the screen and playing only while it is on it (tech.js, the code of the cards' films).
   It fades in over the still. With reduced motion, data saver or a 2g line the still stays. */
.t-photo__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; pointer-events: none; transition: opacity .6s ease; }
.t-photo__vid.is-ready { opacity: 1; }
/* the whole picture opens the project page (Figma: click -> the project's page, smart animate, ease-out, 0.3 s); an empty link laid over it, so the pinned caption stays as it is */
.t-photo__link { position: absolute; inset: 0; z-index: 1; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.t-photo__link:focus-visible { outline: 1px solid rgba(255, 255, 255, .7); outline-offset: calc(-8 * var(--u)); }
/* The caption frame (Figma: 338 x 605 at 33, 0 of the cover) is set to Sticky, stop at top edge: it rides up with the picture, pins to the top
   of the window once the picture's top edge gets there, holds that spot while the picture scrolls on behind it, and leaves with the picture's
   bottom edge. (The name and descriptor sit at the bottom of the frame, 572 down from the pin line.) */
.t-rail {
  position: sticky; top: 0; margin-left: calc(33 * var(--u)); width: calc(338 * var(--u)); height: calc(605 * var(--u));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: calc(33 * var(--u)); pointer-events: none;
}
.t-rail__name, .t-card__name {
  display: block; font-family: var(--serif); font-weight: 400; color: #fff;
  font-size: calc(16 * var(--u)); line-height: calc(17 * var(--u)); letter-spacing: .03em;
  font-feature-settings: "lnum" 1, "tnum" 1;
  text-shadow: 0 0 calc(3.1 * var(--u)) rgba(255, 255, 255, .9);       /* the design's blurred twin under the crisp name */
}
.t-rail__name { margin-bottom: calc(14 * var(--u)); }
.t-rail__desc, .t-card__desc {
  display: block; font-family: var(--mono); color: #c0c0c0;
  letter-spacing: .02em; text-transform: uppercase;                  /* (the size and the spacing of a desktop screen are in the block "One style of Relative Mono", below; a phone sets its own) */
  font-feature-settings: "lnum" 1, "tnum" 1;
}

/* The strip of cards (Figma "Carousel": a strip of 4 cards, 534 x 600 at 1728, with a hairline between them). The strip is exactly as tall as its cards:
   they run edge to edge, straight under the photograph and straight into the next section, with no band of page colour above or below them.
   534 in a 1728 window is three cards and 126 (24 %) of the fourth: the way to tell that the strip goes on. That is kept at EVERY width by sizing the
   cards from the strip's own width (--peek below) instead of from the design's pixels, which at 574 left the fourth card 6px of itself. */
.t-carousel {
  margin-top: 0;
  background: #1c1919;                                                 /* the cards' own colour, so rounding can never let a hair of page colour show */
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  cursor: grab; touch-action: pan-x pan-y;
  container-type: inline-size;                                         /* so the cards can be sized from this strip's width (cqw), scroll bar or not */
}
.t-carousel::-webkit-scrollbar { display: none; }
.t-carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.t-carousel:focus-visible { outline: 1px solid rgba(255, 255, 255, .5); outline-offset: -3px; }
.t-strip { display: flex; align-items: flex-start; width: max-content; }          /* as tall as the cards, whatever their height is */
.t-card {
  --pic: calc(294 * var(--u));                                         /* the picture: 294 square, its centre 50.31 above the middle of the card, corner radius 8 */
  --cy: calc(50% - 50.31 * var(--u));
  --rad: calc(8 * var(--u));
  --sig: calc(22.25 * var(--u));                                       /* the hover's layer blur is 44.5, i.e. a Gaussian of 22.25 (Figma radius = 2 x sigma) */
  --k: 0;                                                              /* how far the hover blur has grown: 0 at rest, 1 on hover */
  --peek: calc(126 / 534);                                             /* how much of the next card shows past the last whole one (Figma: 1728 - 3 x 534 = 126) */
  position: relative; flex: none; width: calc(534 * var(--u)); height: calc(600 * var(--u));
  background: #1c1919;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(33 * var(--u));
  scroll-snap-align: start;
  transition: --k .3s ease-out;                                        /* Figma: smart animate, ease-out, 0.3 s */
}
@supports (width: 1cqw) {
  .t-card { width: calc(100cqw / (3 + var(--peek))); height: auto; aspect-ratio: 534 / 600; }   /* three whole cards and a --peek of the fourth, whatever the window; the design's proportions */
}
.t-card + .t-card::before {                                         /* the hairline between cards: white at 20 % */
  content: ""; position: absolute; left: -.5px; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .2); pointer-events: none;
}
.t-card__img, .t-card__vid {
  position: absolute; left: 50%; top: var(--cy);
  width: var(--pic); height: var(--pic);
  transform: translate(-50%, -50%);
  border-radius: var(--rad); object-fit: cover; background: #26211f;
  user-select: none; -webkit-user-drag: none;
}
/* A film (PlanLab's and APECS's cards): muted, looping, asked for when its card first comes near the screen, playing only while the card is on it (tech.js). It fades in over its still,
   which is its own first frame, so the one turns into the other without a jump. With reduced motion, data saver or a 2g line the still stays. */
.t-card__vid { opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.t-card__vid.is-ready { opacity: 1; }

/* Hover (Figma: the card swaps to its second variant, smart animate, ease-out, 0.3 s): the picture gets a PROGRESSIVE layer blur - Start 0 at its top
   edge, End 44.5 at its bottom edge - so it stays sharp at the top and melts towards the bottom, spilling softly out of its frame.
   CSS has no progressive blur, so tech.js lays nine copies of the picture over each other (.t-card__blur): copy i is blurred by i/8 of the full
   amount and is shown through a band of the card's height that is centred on i/8 of the way down, so neighbouring copies cross-fade into one
   another (the bands add up to exactly 1, which is what "plus-lighter" adds). All the blurs are scaled by --k, which eases from 0 to 1 on hover. */
@property --k { syntax: "<number>"; inherits: true; initial-value: 0; }
.t-card__blur {
  --m: calc(var(--sig) * 3.2);                                         /* room for the blur to spill out sideways and below */
  --p: calc(var(--pic) / 8);                                           /* one step: where a copy hands over to the next */
  position: absolute;
  left: calc(50% - var(--pic) / 2 - var(--m)); top: calc(var(--cy) - var(--pic) / 2);
  width: calc(var(--pic) + 2 * var(--m)); height: calc(var(--pic) + var(--m));
  isolation: isolate; pointer-events: none;
  visibility: hidden; transition: visibility 0s linear .3s;            /* shown while the pointer is on the card, and until the blur has settled after it leaves */
}
.t-card__lay {
  position: absolute; inset: 0; mix-blend-mode: plus-lighter;
  -webkit-mask-image: linear-gradient(to bottom, transparent calc((var(--i) - 1) * var(--p)), #000 calc(var(--i) * var(--p)), transparent calc((var(--i) + 1) * var(--p)));
          mask-image: linear-gradient(to bottom, transparent calc((var(--i) - 1) * var(--p)), #000 calc(var(--i) * var(--p)), transparent calc((var(--i) + 1) * var(--p)));
}
.t-card__lay:first-child {                                             /* the sharp copy: the top of the picture */
  -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent var(--p));
          mask-image: linear-gradient(to bottom, #000 0, transparent var(--p));
}
.t-card__lay:last-child {                                              /* the fully blurred copy: the bottom, and everything that spills below it */
  -webkit-mask-image: linear-gradient(to bottom, transparent calc((var(--i) - 1) * var(--p)), #000 var(--pic));
          mask-image: linear-gradient(to bottom, transparent calc((var(--i) - 1) * var(--p)), #000 var(--pic));
}
.t-card__lay img, .t-card__lay canvas {
  position: absolute; left: var(--m); top: 0; max-width: none;
  width: var(--pic); height: var(--pic);
  border-radius: var(--rad); object-fit: cover; user-select: none; -webkit-user-drag: none;
  filter: blur(calc(var(--k) * var(--i) * var(--sig) / 8));
}
.t-card__lay:first-child img, .t-card__lay:first-child canvas { filter: none; }
.t-card.has-blur .t-card__img { transition: visibility 0s linear .3s; }
.t-card.has-blur .t-card__vid { transition: opacity .4s ease, visibility 0s linear .3s; }
@media (hover: hover) {
  .t-card:hover { --k: 1; }
  .t-card.has-blur:hover .t-card__blur { visibility: visible; transition-delay: 0s; }
  .t-card.has-blur:hover .t-card__img { visibility: hidden; transition-delay: 0s; }       /* the stack takes over from the plain picture (they match at --k: 0) */
  .t-card.has-blur:hover .t-card__vid { visibility: hidden; transition-delay: 0s, 0s; }    /* ... and from the film, whose current frame the stack's canvases are drawing */
}
@supports not (mix-blend-mode: plus-lighter) {                         /* no way to add the copies up: an even blur instead */
  @media (hover: hover) { .t-card:hover .t-card__img, .t-card:hover .t-card__vid { filter: blur(var(--sig)); } }
  .t-card__img { transition: filter .3s ease-out; }
  .t-card__vid { transition: opacity .4s ease, filter .3s ease-out; }
}
.t-card__name { margin-bottom: calc(9 * var(--u)); }
.t-card__desc { width: calc(391 * var(--u)); max-width: 100%; }
/* a card that has a project page opens it: an empty link laid over the whole card, so the hover blur and the dragging of the strip stay as they are
   (a drag that moves the strip never reaches the link: tech.js swallows the click that ends it) */
.t-card__link { position: absolute; inset: 0; z-index: 2; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.t-card__link:focus-visible { outline: 1px solid rgba(255, 255, 255, .7); outline-offset: calc(-8 * var(--u)); }

/* ---------- Useful info ---------- */
.t-useful { background: #dbdbdb; color: #242424; padding: 0 calc(39 * var(--u)) calc(150 * var(--u)); }
.t-h2 { margin: 0; padding-top: calc(146.85 * var(--u)); margin-bottom: calc(-23.04 * var(--u)); color: #242424; }   /* cap-top at 150, baseline at 219 */

.t-block { position: relative; }
.t-services { margin-top: calc(170 * var(--u)); }
.t-principles, .t-mates, .t-sa { margin-top: calc(170 * var(--u)); }

/* a label with a hairline under it (label 17 tall, 16 of air, the line at 33; the content starts 39 under the line) */
.t-sub { position: relative; margin: 0; padding-bottom: max(16px, calc(16 * var(--u))); line-height: max(17px, calc(17 * var(--u))); color: #000; font-weight: 400; }
.t-sub::after { content: ""; position: absolute; left: 0; right: 0; top: calc(100% - .5px); height: 1px; background: #000; }
.t-sub--progress h3 { font: inherit; letter-spacing: inherit; margin: 0; }
.t-sub--progress::after { background: rgba(0, 0, 0, .2); }
.t-progress { position: absolute; left: 0; right: 0; top: calc(100% - .5px); height: 1px; pointer-events: none; }
.t-progress b {
  position: absolute; left: 0; top: 0; height: 100%; background: #000;
  width: calc(240 * var(--u) * var(--n, 1));                         /* the design's 240 px per step; the last step fills the line */
  max-width: 100%;
  transition: width .3s ease-out;
}
.t-sub--mates { font-size: calc(16 * var(--u)); line-height: calc(19 * var(--u)); letter-spacing: .04em; }

/* Menu of services: the index at the left, the service starting at 535 */
.t-menu { display: grid; gap: max(12px, calc(12 * var(--u))); margin: calc(39 * var(--u)) 0 0; padding: 0; }
.t-menu li { display: grid; grid-template-columns: calc(535 * var(--u)) 1fr; align-items: start; height: max(17px, calc(17 * var(--u))); }
.t-menu .mono { line-height: max(17px, calc(17 * var(--u))); color: #000; }
@media (min-width: 801px) {
  /* the design stands the name's baseline 2.89 under the index's (16.89 and 14 in a row of 17); the index keeps its size and the name still scales, so the name
     is let down by what the scaling takes from that: 14 * (1 - u), nothing at the full 1728 */
  .t-menu__name { position: relative; top: max(0px, calc(14px - 14 * var(--u))); }
}
.t-menu__name {
  font-size: calc(22 * var(--u)); line-height: calc(30 * var(--u)); letter-spacing: 0;
  margin: calc(-4.11 * var(--u)) 0 calc(-9.06 * var(--u));
}

/* The menu's first row, Self Awareness, is the one thing on the list that has a section of its own further down, so it is a link: the name takes the page there (no underline, on hover or
   otherwise; the keyboard gets the outline below) and the HOT! badge follows it, 9 after the last glyph. The badge is a picture (it wears Figma's Texture effect: assets/tech/hot.webp, the 22 px "hot!" in
   #ef5717); the picture carries 2 of air at its left and 2.5 above the glyphs, hence the negative margins. */
.t-menu__a { display: flex; align-items: flex-start; gap: calc(9 * var(--u)); color: #000; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.t-menu__a:focus-visible { outline: 1px solid rgba(0, 0, 0, .5); outline-offset: 4px; }
.t-menu__hot { flex: none; width: calc(43 * var(--u)); height: auto; margin: calc(-2.5 * var(--u)) 0 0 calc(-2 * var(--u)); pointer-events: none; user-select: none; -webkit-user-drag: none; }
@media (min-width: 801px) { .t-menu__hot { position: relative; top: max(0px, calc(14px - 14 * var(--u))); } }

/* Self Awareness: the studio's own product, on the Mates' two columns (260, and from 537 on 1074). At the left the wordmark with its mark; it stays in the window while the story at the right goes by
   (Figma: the 260 x 220 frame is sticky: the wordmark stands 124 under the top of the window, and the frame stops with its block). The story is four parts, 90 apart: a lead (Aguzzo Medium 21),
   a paragraph, and two lists made like the Menu: an index, a label from 47 (317 wide) and a description from 391 (537 wide), 36 of air and a hairline (black at 10 %) between the rows. */
.t-sa { scroll-margin-top: calc(96 * var(--u)); }
.sa { display: grid; grid-template-columns: calc(260 * var(--u)) minmax(0, calc(1074 * var(--u))); column-gap: calc(277 * var(--u)); align-items: start; margin-top: calc(39 * var(--u)); }
.sa__mark { position: sticky; top: calc(124 * var(--u)); width: calc(260 * var(--u)); height: calc(79 * var(--u)); margin-top: calc(19 * var(--u)); }
.sa__logo { position: absolute; left: calc(80 * var(--u)); top: calc(.25 * var(--u)); width: calc(102.25 * var(--u)); height: auto; user-select: none; -webkit-user-drag: none; }
.sa__tm { position: absolute; left: calc(163 * var(--u)); top: 0; width: calc(11 * var(--u)); text-align: center; font-size: calc(8.5556 * var(--u)); line-height: calc(10 * var(--u)); letter-spacing: .06em; color: #000; }
.sa__body { display: flex; flex-direction: column; gap: calc(90 * var(--u)); min-width: 0; padding: calc(4.5 * var(--u)) 0; }
.sa__part { display: flex; flex-direction: column; gap: calc(36 * var(--u)); min-width: 0; }
.sa__part--list { gap: calc(42 * var(--u)); }
.sa__lead, .sa__h { margin: 0; font-family: var(--serif-medium); font-weight: 400; font-size: calc(21 * var(--u)); line-height: normal; letter-spacing: -.03em; color: #000; }
.sa__p {
  margin: calc(-4.154 * var(--u)) 0 calc(-9.016 * var(--u));                      /* 22 / 30, trimmed to the cap-top and the baseline */
  font-size: calc(22 * var(--u)); line-height: calc(30 * var(--u)); letter-spacing: 0; color: #242424;
}
.sa__list { display: flex; flex-direction: column; gap: calc(72 * var(--u)); margin: 0; padding: 0; list-style: none; }
.sa__row { position: relative; display: grid; grid-template-columns: calc(20 * var(--u)) calc(317 * var(--u)) minmax(0, calc(537 * var(--u))); column-gap: calc(27 * var(--u)); align-items: start; }
.sa__row + .sa__row::before { content: ""; position: absolute; left: 0; right: 0; top: calc(-36 * var(--u) - .5px); height: 1px; background: rgba(0, 0, 0, .1); }
.sa__i, .sa__k { margin: 0; line-height: max(17px, calc(17 * var(--u))); color: #000; font-weight: 400; }
.sa__d { margin: calc(-6.126 * var(--u)) 0 calc(-10.104 * var(--u)); font-size: calc(18 * var(--u)); line-height: calc(30 * var(--u)); letter-spacing: 0; color: #242424; }   /* 18 / 30, trimmed */

/* Principles: a list on the left, one paragraph on the right; the line above shows how far through the seven we are */
.t-pr { display: flex; gap: calc(197 * var(--u)); margin-top: calc(39 * var(--u)); align-items: flex-start; }
.t-pr__nav { flex: none; width: calc(340 * var(--u)); padding-top: calc(8 * var(--u)); display: flex; flex-direction: column; gap: max(12px, calc(12 * var(--u))); color: #000; }
.t-pr__tab {
  display: block; width: 100%; text-align: left; text-transform: inherit; letter-spacing: inherit; line-height: max(17px, calc(17 * var(--u))); color: #000;
  opacity: .3; transition: opacity .3s ease-out;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.t-pr__tab:hover, .t-pr__tab:focus-visible { opacity: .65; }
.t-pr__tab.is-on { opacity: 1; }
.t-pr__tab:focus-visible { outline: 1px solid rgba(0, 0, 0, .5); outline-offset: 3px; }
/* A title never goes onto a second line on a desktop window: the column is 340 at the design size and, below it, no narrower than its longest title
   (the type stops shrinking at 12 px while the column keeps scaling with the window, which is how a long title used to fall over on a laptop screen).
   The phone's stacked list is below. */
@media (min-width: 801px) {
  .t-pr__nav { width: max-content; min-width: calc(340 * var(--u)); }
  .t-pr__tab { white-space: nowrap; }
}
.t-pr__text { flex: 1 1 0; min-width: 0; min-height: calc(199 * var(--u)); cursor: pointer; }
.t-pr__p {
  font-size: calc(22 * var(--u)); line-height: calc(30 * var(--u)); letter-spacing: 0; color: #242424;
  text-indent: 2.16em;                                               /* the nine spaces the design types before every paragraph */
  margin: calc(-4.11 * var(--u)) 0 calc(-9.06 * var(--u));
  animation: prIn .3s ease-out;
}
.t-pr__p[hidden] { display: none; }
@keyframes prIn { from { opacity: 0; } to { opacity: 1; } }

/* Mates: a portrait on the left, the crew on the right; the hovered row is the selected one */
.t-crew { display: flex; gap: calc(277 * var(--u)); margin-top: calc(39 * var(--u)); align-items: flex-start; }
.t-crew__photo { position: relative; flex: none; width: calc(260 * var(--u)); height: calc(304 * var(--u)); margin: 0; border-radius: calc(4 * var(--u)); overflow: hidden; background: #c9c9c9; }
.t-crew__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease-out; user-select: none; -webkit-user-drag: none; }
.t-crew__photo img.is-on { opacity: 1; }
.t-crew__ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(160deg, #d2d2d2, #bdbdbd);
  opacity: 0; transition: opacity .3s ease-out;
}
.t-crew__ph::after { content: attr(data-initials); font-weight: 300; font-size: calc(64 * var(--u)); letter-spacing: -.04em; color: rgba(0, 0, 0, .28); }
.t-crew__photo.is-ph .t-crew__ph { opacity: 1; }
.t-crew__list { flex: 1 1 0; min-width: 0; margin: 0; padding: 0; }
.t-crew__row {
  display: flex; justify-content: space-between; gap: 16px;
  height: max(29px, calc(29 * var(--u))); padding-top: max(4.5px, calc(4.5 * var(--u)));
  border-bottom: 1px solid rgba(0, 0, 0, .3);
  line-height: max(17px, calc(17 * var(--u))); white-space: nowrap; color: #242424; cursor: default;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.t-crew__row > span { opacity: .3; transition: opacity .3s ease-out; }
.t-crew__row.is-selected > span { opacity: 1; }
.t-crew__row:focus-visible { outline: 1px solid rgba(0, 0, 0, .5); outline-offset: -1px; }

/* ---------- Useless info ---------- */
.t-useless { position: relative; height: calc(1317 * var(--u)); background: #ff002b; overflow: hidden; }
.t-h2--useless {
  position: absolute; left: calc(39 * var(--u)); top: 0; z-index: 1; margin: 0; padding-top: calc(87.07 * var(--u));   /* size, line height, tracking and features come from the shared H1 rule above; this padding keeps the cap-top where the 110 / 107 setting had it (90.2) */
  color: #00ffd4;                                                    /* the design's white type in "difference" over the red */
}
.t-story { position: absolute; inset: 0; z-index: 2; margin: 0; outline: none; }
/* Figma: the small picture on hover turns into the full-bleed one (smart animate, ease-out, 0.3 s) */
.t-story__pic {
  position: absolute; overflow: hidden; background: #2a1a1a;
  left: calc(725 * var(--u)); top: calc(566 * var(--u)); width: calc(278 * var(--u)); height: calc(185.4 * var(--u));
  transition: left .3s ease-out, top .3s ease-out, width .3s ease-out, height .3s ease-out;
}
.t-story__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.t-story__cap, .t-story__cta {
  position: absolute; left: 50%; transform: translateX(-50%); width: max-content; max-width: 100%;
  letter-spacing: .02em; color: #fff;                                /* (size: see "One style of Relative Mono", below) */
  white-space: nowrap; text-align: center; pointer-events: none; opacity: 0;
  transition: opacity .3s ease-out, top .3s ease-out;
}
/* the design stacks twelve 54-blurred copies of the line under a crisp one: a bright cloud */
.t-story__cap {
  top: calc(650 * var(--u)); z-index: 3;
  text-shadow:
    0 0 calc(54 * var(--u)) #fff, 0 0 calc(54 * var(--u)) #fff, 0 0 calc(54 * var(--u)) #fff, 0 0 calc(54 * var(--u)) #fff,
    0 0 calc(54 * var(--u)) #fff, 0 0 calc(54 * var(--u)) #fff, 0 0 calc(54 * var(--u)) #fff, 0 0 calc(54 * var(--u)) #fff,
    0 0 calc(54 * var(--u)) #fff, 0 0 calc(54 * var(--u)) #fff, 0 0 calc(54 * var(--u)) #fff, 0 0 calc(54 * var(--u)) #fff,
    0 0 calc(4 * var(--u)) #fff;
}
.t-story__cta { top: calc(716 * var(--u)); z-index: 3; padding-bottom: calc(3 * var(--u)); border-bottom: 1px solid #fff; }
@media (hover: hover) {
  .t-story__pic:hover { left: 0; top: 0; width: 100%; height: 100%; }
  .t-story:has(.t-story__pic:hover) .t-story__cap { opacity: 1; top: calc(636 * var(--u)); }
  .t-story:has(.t-story__pic:hover) .t-story__cta { opacity: 1; }
}
.t-story:focus-visible .t-story__pic, .t-story.is-open .t-story__pic { left: 0; top: 0; width: 100%; height: 100%; }
.t-story:focus-visible .t-story__cap, .t-story.is-open .t-story__cap { opacity: 1; top: calc(636 * var(--u)); }
.t-story:focus-visible .t-story__cta, .t-story.is-open .t-story__cta { opacity: 1; }

/* One style of Relative Mono on a desktop screen (styles.css, Technical Read: 14 / Auto / 6 %): the descriptions under the pictures, the photograph's caption,
   "view photos" and the sub-head "Mates" are set in it too (they were 17 / 23 / 2 % and 16 / 19 / 4 %). A phone keeps its own sizes, below. */
@media (min-width: 801px) {
  .t-rail__desc, .t-card__desc, .t-story__cap, .t-story__cta { font-size: var(--t14); line-height: calc(17 / 14); letter-spacing: var(--tls); }
  .t-sub--mates { font-size: var(--t14); line-height: max(17px, calc(17 * var(--u))); letter-spacing: var(--tls); }
}

/* ---------- Footer (the homepage's, on this page's pale ground) ---------- */
.view--tech .footer, .view--brand .footer { background: #f0f0f0; padding-top: calc(60 * var(--u)); overflow: hidden; overflow: clip; }  /* the lifted artwork (938 high in a 912.1 box) may not make the page 13px longer than the design */

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .t-pr__p { animation: none; }
  .t-card, .t-card__img, .t-card__vid, .t-photo__vid, .t-card__blur, .t-story__pic, .t-story__cap, .t-story__cta { transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ==========================================================================
   Mobile (≤ 800px) — the file has no mobile frame for this page, so this adapts the desktop one
   ========================================================================== */
@media (max-width: 800px) {
  .t-title, .t-h2 { font-size: clamp(26px, 7.4vw, 46px); line-height: 1.04; }           /* the statement and "Useful info" are one style here too */
  .t-head { padding: 112px 20px 0; }
  .t-title { width: auto; margin: 0; }
  .t-skills { margin-top: 36px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .t-skills__list { flex-wrap: wrap; gap: 0 6px; }
  .t-skill, .t-skills__list .t-skill:nth-child(n) { height: auto; padding: 8px; min-width: 0; }
  .t-skill__text { font-size: 22px; line-height: 1.06; margin: 0 0 14px; }
  .t-skill__line { left: 8px; right: 8px; top: auto; bottom: -4px; height: 25px; }

  .t-work { margin-top: 56px; }
  .t-photo { height: min(118vw, 78svh); }
  .t-photo__img, .t-photo__vid { object-position: 40% 50%; }
  .t-rail { position: absolute; left: 18px; top: 0; margin: 0; width: calc(100% - 36px); height: 100%; padding-bottom: 22px; }   /* the picture is shorter than the screen here: nothing to pin against */
  .t-rail__name { font-size: 15px; line-height: 17px; margin-bottom: 10px; }
  .t-rail__desc, .t-card__desc { font-size: 12px; line-height: 17px; }
  .t-rail__desc { max-width: 250px; }

  /* one whole card and over a third of the next (--peek): the same 7 % tightening as the desktop cards (78 x 112 vw before); flush with the photograph and the next section, like the desktop strip */
  .t-card { --peek: .37; width: 73vw; height: 104vw; aspect-ratio: auto; min-height: 400px; padding: 20px; --pic: 58vw; --cy: 42%; --rad: 6px; --sig: calc(58vw * .0757); }   /* .0757 = 22.25 / 294 */
  @supports (width: 1cqw) { .t-card { width: calc(100cqw / (1 + var(--peek))); } }
  .t-card__name { font-size: 15px; line-height: 17px; margin-bottom: 6px; }
  .t-card__desc { width: auto; }

  .t-useful { padding: 0 20px 72px; }
  .t-h2 { padding-top: 84px; margin-bottom: 0; }
  .t-block { margin-top: 64px !important; }
  .t-services { margin-top: 52px !important; }
  .t-sub { padding-bottom: 12px; font-size: 12px; line-height: 15px; }
  .t-sub--mates { font-size: 13px; line-height: 16px; }
  .t-progress b { width: calc(var(--n, 1) / 7 * 100%); }
  .t-menu { margin-top: 24px; gap: 12px; }
  .t-menu li { grid-template-columns: 40px 1fr; height: auto; }
  .t-menu .mono { font-size: 12px; line-height: 20px; }
  .t-menu__name { font-size: 20px; line-height: 1.2; margin: 0; }

  /* on a phone the name can take two lines: the badge then follows the last word, in the line, not under the name (the "hot!" in the picture stands 1.5 above its lower edge: on the baseline) */
  .t-menu__a { display: block; }
  .t-menu__a .t-menu__name { display: inline; }
  .t-menu__hot { display: inline-block; width: 39px; margin: 0 0 0 4px; vertical-align: -1.5px; }

  .t-sa { scroll-margin-top: 72px; }
  .sa { display: block; margin-top: 24px; }
  .sa__mark { position: relative; top: auto; width: 150px; height: 116px; margin: 0 0 30px; }   /* the wordmark above the story, not pinned (x 1.467 of the desktop's); it is the frame its pictures sit in */
  .sa__logo { left: 0; top: .4px; width: 150px; }
  .sa__tm { left: 122px; width: 16px; font-size: 11px; line-height: 14px; }
  .sa__body { gap: 52px; padding: 0; }
  .sa__part { gap: 20px; }
  .sa__part--list { gap: 22px; }
  .sa__lead, .sa__h { font-size: 19px; }
  .sa__p { margin: 0; font-size: 18px; line-height: 1.36; }
  .sa__list { gap: 28px; }
  .sa__row { grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; row-gap: 8px; }
  .sa__row + .sa__row::before { top: calc(-14px - .5px); }
  .sa__i, .sa__k { font-size: 12px; line-height: 20px; }
  .sa__d { grid-column: 2; margin: 0; font-size: 18px; line-height: 1.36; }

  .t-pr { flex-direction: column; gap: 24px; margin-top: 24px; }
  .t-pr__nav { width: 100%; padding-top: 0; gap: 8px; }
  .t-pr__tab { font-size: 12px; line-height: 16px; }
  .t-pr__text { flex: none; min-height: 0; }                      /* stacked, the paragraph sets the height (flex: 1 1 0 would collapse it) */
  .t-pr__p { font-size: 18px; line-height: 1.36; margin: 0; text-indent: 0; }

  .t-crew { flex-direction: column; gap: 24px; margin-top: 24px; }
  .t-crew__photo { width: 150px; height: 175px; border-radius: 4px; }
  .t-crew__ph::after { font-size: 40px; }
  .t-crew__list { width: 100%; }
  .t-crew__row { height: auto; min-height: 38px; padding: 10px 0; font-size: 11.5px; line-height: 15px; flex-wrap: wrap; row-gap: 2px; white-space: normal; }

  .t-useless { height: 620px; }
  .t-h2--useless { left: 20px; padding-top: 83px; }                   /* the same H1 size as the statement above; the cap-top stays where it was (≈ 84) */
  .t-story__pic { left: calc(50% - 31vw); top: calc(56% - 20.6vw); width: 62vw; height: calc(62vw * .667); }
  .t-story__cap, .t-story__cta { font-size: 12px; line-height: 17px; }
  .t-story__cap { white-space: normal; width: 70vw; top: 54%; }
  .t-story__cta { top: 62%; padding-bottom: 2px; }
  .t-story.is-open .t-story__cap { top: 50%; }
  .view--tech .footer, .view--brand .footer { margin-top: 0; padding-top: 36px; }       /* the homepage pulls its footer up under the projects; here it follows the red block */
}
