/* Mind The Gap, direction B. Step 1: type and grid only.
   Sizes are in rem against an artboard: 1500 wide on desktop, 390 on a phone.
   1rem = 10px at the artboard width, and scales with the window. */

/* PP Neue Montreal v3.0, free for personal use. For mocking up only: the fonts folder is
   kept out of the Cloudflare publish, where this option falls back to Inter Tight. */
@font-face { font-family: "PP Neue Montreal"; src: url("fonts/PPNeueMontreal-Regular.otf") format("opentype"); font-weight: 400; font-display: block; }
@font-face { font-family: "PP Neue Montreal"; src: url("fonts/PPNeueMontreal-Semibold.otf") format("opentype"); font-weight: 600; font-display: block; }
@font-face { font-family: "PP Neue Montreal Text"; src: url("fonts/PPNeueMontrealText-Book.otf") format("opentype"); font-weight: 400; font-display: block; }
/* PP Neue Montreal Mono v1.0, also free for personal use and also kept out of the publish. */
@font-face { font-family: "PP Neue Montreal Mono"; src: url("fonts/PPNeueMontrealMono-Book.otf") format("opentype"); font-weight: 400; font-display: block; }
@font-face { font-family: "PP Neue Montreal Mono"; src: url("fonts/PPNeueMontrealMono-Medium.otf") format("opentype"); font-weight: 500; font-display: block; }

html { scrollbar-gutter: stable; }   /* the scrollbar's room is always kept, so nothing shifts as a page loads */

:root {
  --size: 390;
  --cols: 4;
  --gap: 2rem;
  --pad: 2rem;

  --ground: #fff;
  --ink: #090420;                 /* TPC's navy, used as the black */
  --grey: rgba(9, 4, 32, .45);
  --rule: rgba(9, 4, 32, .14);
  --accent: #e37625;              /* the logo's orange, sampled from img/logo.png */

  /* Type roles. The display face is switched by [data-display] on <html>. */
  --display: "Marcellus", "Times New Roman", serif;
  --d-weight: 400;
  --d-ls: -.02em;
  --d-lh: .84;
  --d-k: 1;                       /* size correction per face */
  --d-case: uppercase;
  --t-ls: -.02em;                 /* tracking for running text */
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.19, 1, .22, 1);
}

/* The A24 treatment: a medium-weight grotesque in sentence case, tracked tight. */
[data-display="montreal"] {
  --display: "PP Neue Montreal", "Inter Tight", system-ui, sans-serif;
  --d-weight: 400;
  --d-ls: -.05em;
  --d-lh: .84;
  --d-k: 1;
  --d-case: none;
  --sans: "PP Neue Montreal", "Inter Tight", system-ui, sans-serif;
  --small: "PP Neue Montreal Text", "PP Neue Montreal", "Inter Tight", system-ui, sans-serif;  /* the Text cut, for small sizes only */
  --mono: "PP Neue Montreal Mono", "DM Mono", ui-monospace, monospace;
  --t-ls: -.01em;
}

[data-display="grotesk"] {
  --display: "Instrument Sans", system-ui, sans-serif;
  --d-weight: 700;
  --d-ls: -.035em;
  --d-lh: .84;
  --d-k: .9;
  --sans: "Instrument Sans", system-ui, sans-serif;
}

@media (min-width: 900px) {
  :root { --size: 1500; --cols: 12; }
}

html {
  font-size: min(calc(10 * 100vw / var(--size)), 12.8px);   /* stops growing on wide phones, tablets and very wide screens */
  background: var(--ground);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: var(--t-ls);
}
@media (min-width: 900px) { body { font-size: max(2.3rem, 15px); }   /* was 2rem; up 15% on trial */ }

p, h1, h2, h3, ol, ul { margin: 0; padding: 0; font-weight: inherit; font-size: inherit; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gap);
  padding-inline: var(--pad);
}

/* The grid drawn over the page, for checking alignment. */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  display: none;
}
.show-grid .overlay { display: grid; }
.overlay i { background: rgba(127, 127, 127, .1); }
.overlay i.stop { background: rgba(127, 127, 127, .2); }
@media (max-width: 899px) { .overlay i:nth-child(n + 5) { display: none; } }

/* ---------- Type roles ---------- */

.d-xl, .d-l, .d-m, .d-s {
  font-family: var(--display);
  font-weight: var(--d-weight);
  letter-spacing: var(--d-ls);
  text-transform: var(--d-case);
}
.d-xl { font-size: calc(6.2rem * var(--d-k)); line-height: var(--d-lh); }
.d-l  { font-size: calc(5.2rem * var(--d-k)); line-height: var(--d-lh); }
.d-m  { font-size: calc(3.7rem * var(--d-k)); line-height: 1.02; }
.d-s  { font-size: calc(2.8rem * var(--d-k)); line-height: 1.1; }

.t-l { font-size: 2.6rem; line-height: 1.08; }
.t-s { font-family: var(--small, var(--sans)); font-size: 1.4rem; line-height: 1.25; }

/* The small label style. It was the mono face in capitals (hence the class name); Peter dropped
   the mono on 3 Dec 2026, so it is now the same small Neue Montreal as ".t-s", in sentence case. */
.mono {
  font-family: var(--small, var(--sans));
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.25;
}
.grey { color: var(--grey); }

@media (min-width: 900px) {
  .d-xl { font-size: calc(22rem * var(--d-k)); }
  .d-l  { font-size: calc(16rem * var(--d-k)); }
  .d-m  { font-size: calc(7rem * var(--d-k)); }
  .d-s  { font-size: calc(4rem * var(--d-k)); }
  .t-l  { font-size: 3.4rem; line-height: 1.06; }   /* was 3rem; on trial */
  .t-s  { font-size: max(1.4rem, 11.5px); }
  .mono { font-size: max(1.4rem, 11.5px); }
}

/* ================= The page (index.html) ================= */

/* A link whose arrow leaves to the right and comes back in from the left on hover. */
.arrow { display: inline-flex; align-items: baseline; gap: .3em; white-space: nowrap; }
.arrow i { position: relative; display: inline-block; overflow: hidden; font-style: normal; line-height: inherit; }
.arrow i::before, .arrow i::after { content: "\2192"; display: block; transition: transform .6s var(--ease); }
.arrow i::after { position: absolute; inset: 0; transform: translateX(-110%); }
@media (hover: hover) {
  .arrow:hover i::before { transform: translateX(110%); }
  .arrow:hover i::after { transform: none; }
}

/* ---------- First screen ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  background: #77726c;            /* the empty slot, until there is a still */
}
.hero .still { position: absolute; inset: 0; z-index: -2; }
.hero .still img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(9, 4, 32, .45); }  /* the tint that holds white type */
.hero :focus-visible { outline-color: #fff; }
.hero .hero-body { margin-top: auto; }

/* The cover, as on the Dado reference. While the first screen scrolls away it moves down at a
   quarter of the scroll speed, and its still a quarter again while growing to 110%, so the next
   section slides up over the headline. The script sets --cover from 0 to 1. */
.hero { padding-top: var(--head-h); transform: translateY(calc(var(--cover, 0) * 25%)); }
.hero .still { transform: translateY(calc(var(--cover, 0) * 25%)) scale(calc(1 + var(--cover, 0) * .1)); }
/* Everything after the first screen sits above it, on the page's white. */
.what, .cred, .team, .enq, .work { position: relative; z-index: 1; background: var(--ground); }

/* ---------- Header ----------
   Fixed to the top of the window. White over the first screen and navy over the page ("on-page").
   It slides up out of the way when the page is scrolled down ("is-hidden") and back as soon as
   the page is scrolled up, over half a second, as on the Dado reference.
   Without JavaScript it simply sits at the top of the first screen. */
:root { --head-h: calc(4rem + 13rem * 402 / 1235); }                       /* the header's height: its padding and the logo */
@media (min-width: 900px) { :root { --head-h: calc(4rem + 2.4 * max(2.3rem, 15px)); } }   /* its padding and two lines of links */
.head { position: absolute; top: 0; left: 0; right: 0; z-index: 40; color: #fff; pointer-events: none; transition: transform .5s, color .5s cubic-bezier(.23, 1, .32, 1); }
.head a { pointer-events: auto; }
.js .head { position: fixed; }
.head.on-page { color: var(--ink); }
.head.is-hidden { transform: translateY(-100%); }
.head:not(.on-page) :focus-visible { outline-color: #fff; }
/* Over the page the header has a solid white bar with a hairline under it, as on the Dado reference.
   The bar slides down into place and slides back up out of the header over the first screen; it never fades. */
.head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ground); border-bottom: 1px solid var(--rule); transform: translateY(-101%); transition: transform .5s, border-color .5s linear; }
.head.on-page::after { transform: none; }

.head { padding-block: 2rem; align-items: start; }
.head .logo { grid-column: 1 / span 2; }
.head .logo img { display: block; width: 13rem; height: auto; }
.head .nav { display: none; }
.head .cta { grid-column: 3; justify-self: end; }
.head .menu-btn { grid-column: 4; justify-self: end; pointer-events: auto; }

.nav a { position: relative; display: inline-block; transition: opacity .3s linear; }
/* The dot beside a header link: on hover, and standing while that link is where you are (its
   page, or its section of the home page; the script marks sections with aria-current). Enquire has it too. */
.head .cta { position: relative; display: inline-block; }
.nav a::before, .head .cta::before {
  content: "";
  position: absolute;
  left: -1.3rem;
  top: 50%;
  width: .7rem;
  height: .7rem;
  margin-top: -.35rem;
  border-radius: 50%;
  background: currentColor;
  transform: scale(0);
  transition: transform .5s var(--ease);
}
.head .cta { transition: opacity .3s linear; }
@media (hover: hover) {
  .head:has(.nav a:hover, .cta:hover) .nav a:not(:hover),
  .head:has(.nav a:hover) .cta { opacity: .55; }
  .nav a:hover::before, .head .cta:hover::before { transform: scale(1); }
}
.nav a[aria-current]::before, .head .cta[aria-current]::before,
.nav a.picked::before, .head .cta.picked::before { transform: scale(1); }
/* Once a header link is clicked, its dot holds and the one for the place being left goes. */
.head:has(.picked) :is(.nav a, .cta)[aria-current]:not(.picked)::before { transform: scale(0); }
html.dot-set .nav a::before { transition: none; }

.mid { padding-top: calc(1.6rem + 1px); padding-bottom: 5rem; row-gap: 2.4rem; }
/* The hairline is its own piece so the entry motion can draw it from the left. */
.mid::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: rgba(255, 255, 255, .3); transform-origin: left; }
.mid .where { display: none; }
/* The still's credit sits just above the hairline, off the row, at the left. */
.mid { position: relative; }
.mid .cap { position: absolute; bottom: calc(100% + .8rem); left: var(--pad); right: var(--pad); color: rgba(255, 255, 255, .4); }
/* A small "About" label at the top left of the intro, and the first line set in one column to clear it.
   The space is an empty inline block, not a text-indent: iPhone Safari dropped a percentage indent
   after the first scroll and the sentence slid under the label. */
.mid .intro { grid-column: 1 / -1; position: relative; --in: calc((100% + var(--gap)) / 4); }
.mid .intro::before { content: ""; display: inline-block; width: var(--in); }
.mid .intro.cut::before { content: none; }   /* while the lines are cut up for the entry motion, the first line carries the space itself */
.mid .intro .chip { position: absolute; left: 0; top: .15em; letter-spacing: 0; }
.mid .more { grid-column: 1 / -1; }

.title { padding-bottom: 2rem; }
.title .up { display: inline-block; }   /* the piece the entry motion slides up */
.title .l1, .title .l2 { grid-column: 1 / -1; }

@media (min-width: 900px) {
  .head .logo { grid-column: 1 / span 3; }
  .head .logo img { width: 15rem; }
  /* One link on each column stop: 4, 7 and 10, with Enquire at the right edge. */
  .head .nav, .head .nav ul { display: contents; }
  /* The links sit on the page's own stops, 4, 7 and 10. (Stepping in from the right on 6, 8 and
     10 was tried on 3 Dec 2026 and put back: it added two lines nothing else uses.) */
  .head .nav li:nth-child(1) { grid-column: 4 / span 3; }
  .head .nav li:nth-child(2) { grid-column: 7 / span 3; }
  .head .nav li:nth-child(3) { grid-column: 10 / span 2; }
  .head .nav li { grid-row: 1; }
  .head .cta { grid-column: 12 / -1; grid-row: 1; }
  .head .menu-btn { display: none; }

  /* The space left over is shared above and below the rule row, so the row sits
     near the middle of the screen whatever the window's shape. */
  .hero .hero-body {
    flex: 1;
    margin-top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(5rem, 1fr) auto minmax(7rem, 1.1fr) auto;
  }
  .mid { grid-row: 2; padding-bottom: 0; }
  .title { grid-row: 4; }
  /* The headline never takes more height than the window can spare. */
  .hero .title { font-size: min(calc(22rem * var(--d-k)), 23svh); }
  /* In sentence case the headline runs as one line across the bottom. */
  /* --one-line is fitted by hand to each headline so it runs margin to margin. */
  [data-display="montreal"] .hero .title { display: block; white-space: nowrap; font-size: min(var(--one-line, 23.3rem), 40svh); }

  .mid .where { display: block; grid-column: 1 / span 3; grid-row: 1; }
  .mid .cap { white-space: nowrap; }
  .mid .intro { grid-column: 7 / span 4; grid-row: 1; font-size: 3rem; text-wrap: pretty; }   /* 3rem here, as on Dado: with the indent, 3.4rem ran to five lines */
  .mid .more { grid-column: 11 / -1; grid-row: 1; justify-self: end; }

  .title .l2 { grid-column: 4 / -1; }
}

/* Display type in sentence case needs less tightening at the smaller sizes. */
[data-display="montreal"] .d-m { letter-spacing: -.035em; line-height: 1.04; }
[data-display="montreal"] .d-s { letter-spacing: -.03em; }

/* Optical size, on trial. Sentence case reads smaller than capitals at the same font size,
   so below the first screen the display sizes run 20% larger: 7rem becomes 8.4.
   The headline is fitted separately and isn't touched. Desktop only. */
@media (min-width: 900px) {
  [data-display="montreal"] :is(.what, .cred) { --d-k: 1.2; }
}

/* ---------- Rule rows: a hairline, a label on column 1, content, and sometimes a link at the right ---------- */

.rrow { position: relative; padding-top: calc(1.6rem + 1px); row-gap: 2.4rem; }
/* The hairline is its own piece so it can be drawn from the left as the row arrives. */
.rrow::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--rule); transform-origin: left; }
/* Only "What we do" keeps its rule: the credits and team rows open without one (Peter, 3 Dec 2026). */
:is(.cred, .team) > .rrow::before { content: none; }
.rrow > .label, .rrow > .body, .rrow > .side { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .rrow > .label { grid-column: 1 / span 3; }
  .rrow > .side { grid-column: 11 / -1; grid-row: 1; justify-self: end; }   /* a row's link: top right corner, right-aligned, as on the first screen */
}

/* ---------- What we do ---------- */

.what { padding-bottom: 10rem; }
.say { padding-top: 3rem; padding-bottom: 8rem; }
.say p { grid-column: 1 / -1; }

.pic { padding-bottom: 3rem; }
.pic figure { margin: 0; grid-column: 1 / span 2; }
.pic .frame { aspect-ratio: 3 / 2; background: #dcd9d4; overflow: hidden; }
.pic .frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pic figcaption { margin-top: .8rem; }




@media (min-width: 900px) {
  .what { padding-bottom: 20rem; }
  .say { padding-bottom: 20rem; }
  .say p { grid-column: 1 / span 10; }
  .pic figure { grid-column: 7 / span 2; }
  .about > .body { grid-column: 7 / span 4; }
}

/* ---------- Credits ---------- */

.cred { padding-bottom: 10rem; }
.cred .rrow { padding-bottom: 3rem; }
/* On a phone the link to the full list comes after the rows, not between the label and the first title. */
.cred .rrow > .side { display: none; }
.cred .after { padding-top: 2.4rem; }
.cred .after p { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .cred .rrow > .side { display: block; }
  .cred .after { display: none; }
}
.cred-list li { position: relative; padding-block: calc(1.4rem + 1px) 1.8rem; row-gap: .6rem; align-items: baseline; transition: color .3s linear; }
.cred-list li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--rule); transform-origin: left; }
.cred-list li:last-child { border-bottom: 1px solid var(--rule); }
.cred-list .t { clip-path: inset(-.05em -1em -.16em -1em); }
.cred-list .t .up { display: block; }
.cred-list .t { grid-column: 1 / -1; }
.cred-list .fmt { grid-column: 1 / span 3; }
.cred-list .yr { grid-column: 4; }
.cred-list .shot { grid-column: 1 / span 2; aspect-ratio: 3 / 2; overflow: hidden; margin-top: .8rem; }
.cred-list .shot:empty { display: none; }             /* a title with no still yet is text only */
.cred-list .shot img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 900px) {
  .cred { padding-bottom: 20rem; }
  .cred .rrow { padding-bottom: 6rem; }
  .cred-list .t { grid-column: 1 / span 9; }
  /* Format and year sit on the grid, left-aligned, so the rows read across like a table. */
  .cred-list .fmt { grid-column: 10 / span 2; }
  .cred-list .yr { grid-column: 12; }
  /* The still sits over the row on columns 8 and 9, clear of the longest title, and is uncovered from the bottom on hover. */
  .cred-list .shot {
    position: absolute;
    grid-column: 8 / span 2;
    top: 50%;
    width: 100%;
    margin: 0;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
    clip-path: inset(100% 0 0 0);
    transition: clip-path .7s var(--ease);
  }
}
@media (min-width: 900px) and (hover: hover) {
  .cred-list li:hover .shot { clip-path: inset(0); }
  /* Moving from one title straight to the next swaps the stills without the wipe (the script
     adds "swap" while the pointer stays on the list); the wipe is for arriving and leaving. */
  .cred-list.swap .shot { transition: none; }
  .cred-list:has(li:hover) li:not(:hover) { color: var(--grey); }
}

/* ---------- Team ---------- */

.team { padding-bottom: 6rem; }
/* Portraits side by side, name and title under each. The bio opens in a sheet (below);
   without the script it simply sits under the title. */
.people { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; gap: 5rem var(--gap); }
.people li { position: relative; }
.people .face { margin: 0 0 1rem; aspect-ratio: 100 / 145; overflow: hidden; background: #dcd9d4; }
/* The portraits are phone photos with different walls behind them. Grey makes them a set. */
.people .face img, .sheet-face img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.05); }
.people .face.empty, .sheet-face.empty { display: flex; align-items: flex-end; padding: 1rem; }
.people .role { margin-top: .3rem; }
.people .bio { margin-top: 1.6rem; }
.js .people .bio { display: none; }
.people .open { position: absolute; inset: 0; width: 100%; cursor: pointer; }
.people .more { display: none; margin-top: 1rem; }
@media (hover: none) { .js .people .more { display: block; } }

@media (min-width: 900px) {
  .team { padding-bottom: 20rem; }
  .people { grid-column: 4 / -1; grid-template-columns: repeat(3, 1fr); }
}

/* The bio sheet, after the Do Things reference: the page dims, and a white sheet is
   uncovered from the bottom edge with the name and bio rising into it line by line. */
.sheet { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: none; color: var(--ink); overflow: hidden; }
.sheet::backdrop { background: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity 1s cubic-bezier(.25, .46, .45, .94); }
.sheet.on .sheet-bg { opacity: 1; transition-duration: .5s; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; height: calc(100svh - 10rem); padding-block: 2rem; background: var(--ground); overflow-y: auto; align-content: start; row-gap: 2rem;
  clip-path: inset(100% 0 0 0); transition: clip-path 1.15s var(--e-expo); }
.sheet.on .sheet-panel { clip-path: inset(0); }
.sheet-face { margin: 0; grid-column: 1 / span 2; grid-row: 1; height: 25rem; overflow: hidden; background: #dcd9d4; }
.sheet-close { grid-column: 3 / -1; grid-row: 1; justify-self: end; align-self: start; cursor: pointer; }
.sheet-top, .sheet-low { grid-column: 1 / -1; }
.sheet-bio { margin-top: 1rem; }
.sheet-label { font: inherit; margin: 0; }
.sheet-top .mono { margin-top: .8rem; }
.sheet-label { margin-top: 3rem; }
/* Lines that rise: "ln" is the mask, "up" the text inside it. */
.sheet .ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.sheet .bio .ln { white-space: nowrap; }
.sheet .up { display: block; transform: translateY(110%); }
.sheet.on .up { transform: none; transition: transform 1.15s var(--e-expo) calc(var(--at, .25s) + var(--i, 0) * var(--gap-t, .06s)); }
.sheet .bio { --at: .45s; }

@media (min-width: 900px) {
  .sheet-panel { height: calc(100svh - 15rem); max-height: 65rem; grid-template-rows: auto 1fr; overflow: hidden; }
  .sheet-face { grid-column: 1 / span 3; grid-row: 1 / -1; height: 100%; min-height: 0; }
  .sheet-top { grid-column: 7 / span 5; grid-row: 1; }
  .sheet-close { grid-column: 12; grid-row: 1; }
  /* The label sits beside the bio's first line, and the pair sits on the sheet's bottom edge. */
  .sheet-low { grid-column: 4 / -1; grid-row: 2; align-self: end; display: grid; grid-template-columns: subgrid; align-items: start; }
  .sheet-label { grid-column: 1 / span 3; margin: 0; }
  .sheet-bio { grid-column: 4 / span 5; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet-bg, .sheet-panel, .sheet.on .up { transition: none; }
}

/* A word that follows the pointer: "More" over a portrait, "Close" over the dimmed page. */
.tip { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; color: #fff; mix-blend-mode: difference; opacity: 0; transition: opacity .3s ease-out; }
.tip.on { opacity: 1; }
@media not ((hover: hover) and (pointer: fine)) { .tip { display: none; } }

/* "We mind the gap": a slightly smaller one-line size, and room under the line so the
   descenders of g and p stop 2rem above the bottom edge. */
[data-headline="gap"] { --one-line: 22.3rem; }
[data-headline="gap"][data-display="montreal"] .hero .title,
[data-headline="split"][data-display="montreal"] .hero .title { padding-bottom: calc(2rem + .12em); }

/* "Gap slides". Phone: two lines, "We mind" as a normal line, then "the" on column 1 and "gap"
   on the right margin. (Desktop was two lines as well, with "the" on column 5, until 3 Dec 2026.) */
[data-headline="split"] .title .l2 { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
[data-headline="split"] .title .l2 .w1 { grid-column: 1 / span 2; white-space: nowrap; }
[data-headline="split"] .title .l2 .w2 { grid-column: 3 / -1; justify-self: end; white-space: nowrap; }
/* Desktop (changed 3 Dec 2026): one line. "We mind the" runs from the left margin and "gap."
   ends on the right margin, so the line itself has the gap in it. The type is smaller than the
   plain one-line headline (18rem against 22.3rem) to leave that gap about a word wide. */
@media (min-width: 900px) {
  [data-headline="split"] { --one-line: 18rem; }
  [data-headline="split"][data-display="montreal"] .hero .title { display: flex; column-gap: .22em; }
  [data-headline="split"] .title .l1 { white-space: nowrap; }
  [data-headline="split"] .title .l2 { flex: 1; display: flex; justify-content: space-between; }
}

/* ---------- Loading screen and entry motion ----------
   Modelled on the Dado reference, with its timings. "intro" on <html> shows the loading screen
   and holds each part at its start; "play" releases them. From the moment of "play":
     0s      the navy panel wipes up off the screen (2s); the still settles from below and from 110% (2s);
             the header slides down from above (2.75s)
     0.5s    the mark turns away upwards (1s); the hairline draws from the left (2s)
     1s      every line of text in the row, and each word of the headline, slides up out of its own mask
   Before "play" the mark turns in from below (1s). */

:root {
  --e-out: cubic-bezier(.215, .61, .355, 1);     /* fast, then settling */
  --e-inout: cubic-bezier(.87, 0, .13, 1);       /* slow, fast, slow */
  --e-expo: cubic-bezier(.16, 1, .3, 1);         /* very fast, then a long settle */
}

.loader { display: none; }
html.intro .loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  perspective: 800px;
  clip-path: inset(0 0 0 0);
}
/* The mark is the left-hand square of the logo file. */
.loader .mark { width: 6rem; aspect-ratio: 1; background: url("img/logo.png") left center / auto 100% no-repeat; animation: mark-in 1s var(--e-out) both; }
@keyframes mark-in { from { transform: translateY(100%) rotateX(-90deg); } }
html.intro.play .loader { clip-path: inset(0 0 100% 0); transition: clip-path 2s var(--e-inout); }
html.intro.play .loader .mark-out { transform: translateY(-80%) rotateX(90deg); transition: transform 1s var(--e-out) .5s; }

html.intro .hero .still { transform: translateY(35%) scale(1.1); }
html.intro .head { transform: translateY(-100%); }
html.intro .mid::before { transform: scaleX(0); }
html:is(.intro, .arrive) .title .l1, html:is(.intro, .arrive) .title .l2 { clip-path: inset(-.1em -.1em -.2em -.1em); }   /* room for the descenders of g and p */
html:is(.intro, .arrive) .title .up { transform: translateY(125%); }

html.intro.play .hero .still { transform: none; transition: transform 2s var(--e-inout); }
html.intro.play .head { transform: none; transition: transform 2.75s var(--e-inout); }
html.intro.play .mid::before { transform: none; transition: transform 2s var(--e-inout) .5s; }
/* Text: every line slides up out of its own mask, 1.15s, 0.06s apart, from 1s in (Dado's numbers).
   The script cuts the row's text into lines ("ln" is the mask, "up" the words) and numbers them with --i. */
.mid .ln { display: block; white-space: nowrap; clip-path: inset(-.05em -1em -.16em -1em); }
.mid .intro .ln-1 { padding-left: var(--in); }
.mid .ln .up { display: inline-block; }
html:is(.intro, .arrive) .mid .up { transform: translateY(125%); }
html.intro { --wait: 1s; }
html:is(.intro, .arrive).play :is(.mid, .title) .up { transform: none; transition: transform 1.15s var(--e-expo) calc(var(--wait, 0s) + var(--i, 0) * .06s); }
html.play .title .l1 .w2 .up { --i: 1; }
html.play .title .l2 .w1 .up { --i: 2; }
html.play .title .l2 .w2 .up { --i: 3; }
/* The split headline opens its own gap: "gap." rises beside "the" and slides out to the right
   margin. The slide uses the curve and length of the Flow reference (justgowiththeflow.com,
   read from its script: "primary-ease" 0.62, 0.05, 0.01, 0.99 over 1.47s): a short lead-in, then
   a long soft settle. It starts 0.4s after the text, while the word is still rising, so the two
   read as one move. The script sets --gap-from. */
html:is(.intro, .arrive)[data-headline="split"] .title .l2 .w2 { transform: translateX(var(--gap-from, 0px)); }
html:is(.intro, .arrive).play[data-headline="split"] .title .l2 .w2 { transform: none; transition: transform 1.47s cubic-bezier(.62, .05, .01, .99) calc(var(--wait, 0s) + .4s); }

/* ---------- Arriving on scroll ----------
   The script marks rule rows, credit rows and people "seen" as they come into the window.
   Until then a row's hairline is undrawn, a credit title is below its mask and a portrait
   is covered; they arrive with the same moves as the first screen. Only under "rises". */
html.rises .rrow:not(.seen)::before, html.rises .cred-list li:not(.seen)::before { transform: scaleX(0); }
html.rises :is(.rrow, .cred-list li).seen::before { transition: transform 1.25s var(--e-out); }
html.rises .cred-list li:not(.seen) .t .up { transform: translateY(125%); }
html.rises .cred-list li.seen .t .up { transition: transform 1.15s var(--e-expo); }
/* The portraits wipe in on wide screens only: stacked on a phone, each one made the visitor wait. */
@media (min-width: 900px) {
  html.rises .people li:not(.seen) .face { clip-path: inset(100% 0 0 0); }
  html.rises .people li:not(.seen) .face img { transform: scale(1.1); }
  html.rises .people li.seen .face { clip-path: inset(0); transition: clip-path 1.25s var(--e-inout) calc(var(--n, 0) * .1s); }
  html.rises .people li.seen .face img { transition: transform 1.25s var(--e-inout) calc(var(--n, 0) * .1s); }
}
.people li:nth-child(2) { --n: 1; }
.people li:nth-child(3) { --n: 2; }

/* ---------- Phone menu ----------
   A navy panel wiped down over the page, under the header, which turns white. The links are
   at the statement's size and rise in one after another. */
.menu { position: fixed; inset: 0; z-index: 35; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--head-h) + 6rem) var(--pad) 3rem; background: var(--ink); color: #fff; clip-path: inset(0 0 100% 0); transition: clip-path 1.15s var(--e-expo); }
.menu[hidden] { display: none; }
html.menu-open .menu { clip-path: inset(0); }
.menu-list li { border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 1.2rem 1.6rem; }
.menu-list a { display: block; clip-path: inset(-.05em -1em -.16em -1em); }
.menu-list .up { display: block; transform: translateY(125%); transition: transform .3s linear; }
html.menu-open .menu-list .up { transform: none; transition: transform 1.15s var(--e-expo) calc(.2s + var(--i, 0) * .06s); }
.menu-list li:nth-child(2) .up { --i: 1; }
.menu-list li:nth-child(3) .up { --i: 2; }
.menu-list li:nth-child(4) .up { --i: 3; }
.menu-foot { color: rgba(255, 255, 255, .5); }
html.menu-open .head { color: #fff; transform: none; }
html.menu-open .head::after { transform: translateY(-101%); }
@media (min-width: 900px) { .menu { display: none; } }

/* ---------- Moving between pages ----------
   The Dado reference's page transition. Leaving: a white veil fades in over the page (0.5s)
   with the header left showing on top of it in navy, then the browser goes to the new page.
   Arriving ("arrive" on <html>, set by the head script): the new page starts behind the veil.
   On the home page the veil fades away (0.5s) while the still settles from 110% (1s) and the
   text rises; on an inner page the veil just goes, and the page's own parts come in:
   hairlines draw from the left (1.25s, 0.1s apart), ".wipe-in" blocks are uncovered from
   the top (1.25s), and marked text rises. An inner page opened directly does the same
   after the loading screen. */
.veil { position: fixed; inset: 0; z-index: 30; background: var(--ground); opacity: 0; visibility: hidden; pointer-events: none; }
html.arrive .veil { opacity: 1; visibility: visible; }
html.arrive.play .veil { opacity: 0; transition: opacity .5s ease-out; }
html.arrive.play[data-page="inner"] .veil { transition: none; }
/* Leaving comes after arriving here so it still wins when a link is clicked before the arrival has finished. */
html.leave .veil, html.leave:is(.arrive, .intro) .veil, html.leave.arrive.play .veil { opacity: 1; visibility: visible; transition: opacity .5s var(--e-out); }
/* A link to a section of the same page: the veil lifts again once the page has jumped there. */
html.lift .veil { opacity: 0; visibility: visible; transition: opacity .5s ease-out; }
html.leave .head, html.arrive:not(.play) .head { color: var(--ink); transform: none; }
/* While moving between pages or sections nothing in the header slides: it only fades.
   Going to the top of a page the bar's hairline fades out; going to a section they fade in
   (or stay, if already there); a header that was scrolled away fades back rather than dropping in. */
html.leave.to-top .head::after { border-bottom-color: transparent; }   /* only the hairline goes; the white stays, or the picture behind the header would show through */
html.leave.to-section .head:not(.on-page)::after { transform: none; transition: none; animation: fade-in .5s linear both; }
html.leave .head.is-hidden { transition: color .5s cubic-bezier(.23, 1, .32, 1); animation: fade-in .5s linear both; }
html:is(.arrive, .lift) .head::after { transition: none; }
html.lift .head { transition: color .5s cubic-bezier(.23, 1, .32, 1); }
@keyframes fade-in { from { opacity: 0; } }
html.arrive .hero .still { transform: scale(1.1); }
html.arrive.play .hero .still { transform: none; transition: transform 1s var(--e-out) .025s; }

.pre-line { display: block; margin: 0; border: 0; border-top: 1px solid var(--rule); transform-origin: left; }
html:is(.intro, .arrive) .pre-line { transform: scaleX(0); }
html:is(.intro, .arrive).play .pre-line { transform: none; transition: transform 1.25s var(--e-out) calc(var(--wait, 0s) + var(--i, 0) * .1s); }
html:is(.intro, .arrive) .wipe-in { clip-path: inset(0 0 100% 0); }
html:is(.intro, .arrive).play .wipe-in { clip-path: inset(0 0 -10% 0); transition: clip-path 1.25s var(--e-out) calc(var(--wait, 0s) + .2s); }

/* ---------- Inner pages ----------
   After the reference's contact page: open space at the top (36% of the window's height),
   the page's name at the largest size between two hairlines, then the content. */
[data-page="inner"] .head { color: var(--ink); }
.inner { position: relative; z-index: 1; background: var(--ground); }
.lead-space { height: clamp(11rem, 16vh, 18rem); }
.page-title .grid { padding-top: 2.5rem; padding-bottom: 4rem; }
.page-title h1 { grid-column: 1 / -1; margin: 0; }
@media (min-width: 900px) {
  .page-title .grid { padding-bottom: 6rem; }
}

/* ---------- Text that rises in on scroll ----------
   As on the Dado reference: when an element marked data-rise comes 10% up into the window,
   its lines slide up from behind their own masks, 1.15s each, 0.06s apart, once.
   The script adds "rises" to <html> only when it is going to run this. */
html.rises [data-rise]:not(.split) { visibility: hidden; }
[data-rise] .ln { display: block; white-space: nowrap; clip-path: inset(-.05em -1em -.16em -1em); }
[data-rise] .up { display: block; transform: translateY(125%); }
[data-rise].in .up { transform: none; transition: transform 1.15s var(--e-expo) calc(var(--i, 0) * .06s); }

/* ---------- Parallax ----------
   The script sets --py on each frame, from -10 to 10, as the frame crosses the window. */
html.parallax .pic .frame img {
  height: 120%;
  transform: translateY(calc(-8.3333% + var(--py, 0) * 1%));   /* -8.33% of the picture centres it in its frame */
  will-change: transform;
}

/* ---------- Touch screens ----------
   A phone scrolls on its own thread, so anything the script moves in step with the scroll arrives a
   frame late and judders. There the cover is simply pinned (the browser does that itself) and the
   page slides up over it; the script leaves --cover and the small still's drift alone. */
@media (hover: none) and (pointer: coarse) {
  .hero { position: sticky; top: 0; }
  .f-map li + li { margin-top: 1rem; }   /* the footer's links a finger's width apart */
}
/* The cover also runs on under the browser's own bars (Safari's floats over the page), so the white
   of the next section doesn't show beneath it. The headline stays where it was. */
@supports (height: 100lvh) {
  @media (max-width: 899px) {
    .hero { min-height: 100lvh; padding-bottom: calc(100lvh - 100svh); }
  }
}
/* On a phone the still's credit runs up the right-hand edge of the picture, out of the reading order.
   Above the hairline it was the first line anyone read. */
@media (max-width: 899px) {
  .mid .cap { left: auto; right: calc(var(--pad) - .2rem); bottom: calc(100% + 1.2rem); writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
  html:is(.intro, .arrive) .mid .cap { opacity: 0; }
  html:is(.intro, .arrive).play .mid .cap { opacity: 1; transition: opacity 1s linear calc(var(--wait, 0s) + .6s); }
}

/* ---------- Enquire ----------
   Laid out like the Dado reference's contact page: a sentence at the large text size, then
   rows with a short label at the left and the detail beside it. Here the details are fields. */
.enq { padding-bottom: 8rem; }
.enq-grid { padding-top: 2rem; }
.enq-say, .enq-form, .enq-done, .enq-side { grid-column: 1 / -1; }
.enq-side { order: 2; margin-top: 8rem; }
.enq-side .label { font: inherit; margin: 0 0 1.6rem; color: var(--grey); }
.enq-side li .mono { display: block; margin: .2rem 0 .6rem; }
.enq-form { margin-top: 4rem; }
/* A row is the field: the input fills it edge to edge, so the whole row takes the click and shows
   the text cursor. The label rests in the row at the large size and steps up small (0.5s) once the
   field is in use or filled; it never goes away. Every row is the same height. */
.field { --row-top: 2.8rem; --row-end: 1.2rem; --shrink: .538; position: relative; border-bottom: 1px solid var(--rule); transition: border-color .3s linear; }
.field:first-child { border-top: 1px solid var(--rule); }
.field:focus-within { border-bottom-color: var(--ink); }
@media (hover: hover) { .field:hover { border-bottom-color: var(--ink); } }
.field input, .field textarea { display: block; width: 100%; min-width: 0; margin: 0; padding: var(--row-top) 0 var(--row-end); border: 0; border-radius: 0; background: none; color: inherit; font-family: inherit; letter-spacing: inherit; outline: 0; resize: none; overflow: hidden; -webkit-appearance: none; appearance: none; }
.field textarea { field-sizing: content; min-height: calc(1lh + var(--row-top) + var(--row-end)); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 100rem var(--ground) inset; }
.field label { position: absolute; left: 0; top: 0; color: var(--grey); pointer-events: none; white-space: nowrap; transform-origin: 0 0; transform: translateY(calc((var(--row-top) + var(--row-end)) / 2)); transition: transform .5s var(--ease); }
.field :is(input, textarea):is(:focus, :not(:placeholder-shown), :autofill) ~ label { transform: translateY(1rem) scale(var(--shrink)); }
/* "Optional" sits at the right end of the row, level with the label, so the row is no taller for it. */
.field .note { position: absolute; right: 0; top: 0; bottom: 0; display: flex; align-items: center; pointer-events: none; }
.field.has-note input { padding-right: 9rem; }
/* What's missing is said at the top right of its row, level with the stepped-up label. */
.field .miss { position: absolute; right: 0; top: 1rem; color: var(--accent); pointer-events: none; }
.field.bad { border-bottom-color: var(--accent); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem 2rem; margin-top: 2rem; }
.send button { padding-block: 1rem; }   /* a taller target; the link itself is the size of the site's other arrow links */
.send button[disabled] { color: var(--grey); cursor: default; }

@media (min-width: 900px) {
  .enq { padding-bottom: 20rem; }
  .enq-side { grid-column: 1 / span 3; grid-row: 1 / span 2; order: 0; margin: 0; }
  .enq-say { grid-column: 7 / span 5; }
  .enq-form, .enq-done { grid-column: 7 / -1; }
  .enq-done { grid-row: 1; }
  .enq-form { margin-top: 8rem; }
  .field { --shrink: .412; }   /* 1.4rem over the large size, 3.4rem here and 2.6rem on a phone */
}

/* ---------- Credits page ----------
   A sentence and a still frame on columns 1 to 3; the list on columns 4 to 12 as a table:
   title, format on column 10, year on column 12, the same stops as the home page's list. */
.cpage { padding-bottom: 8rem; }
.cgrid { padding-top: 2rem; row-gap: 5rem; }
.c-side, .ctable { grid-column: 1 / -1; }
.cviewer { display: none; }
.chead { display: none; }
.ctable li { display: grid; grid-template-columns: 1fr auto; column-gap: var(--gap); row-gap: .4rem; align-items: baseline; border-top: 1px solid var(--rule); padding-block: 1.4rem; transition: color .3s linear; }
.ctable li:last-child { border-bottom: 1px solid var(--rule); }
.ctable .t { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .cpage { padding-bottom: 20rem; }
  .c-side { grid-column: 1 / span 3; }
  .ctable { grid-column: 4 / -1; display: grid; grid-template-columns: subgrid; align-content: start; }
  .ctable ul, .ctable li, .chead { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
  .chead { padding-bottom: 1.4rem; }
  .ctable .t, .chead span:nth-child(1) { grid-column: 1 / span 6; }
  .ctable .fmt, .chead span:nth-child(2) { grid-column: 7 / span 2; }
  .ctable .yr, .chead span:nth-child(3) { grid-column: 9; }
  /* The frame: each still lies under a mask and is uncovered from the bottom while its row is pointed at. */
  .cviewer { display: block; position: sticky; top: calc(var(--head-h) + 2rem); margin-top: 4rem; aspect-ratio: 3 / 2; }
  /* The frame is uncovered once, when the pointer first comes onto the list, and covered again
     when it leaves. In between, moving from title to title just swaps the picture. */
  .cviewer { clip-path: inset(100% 0 0 0); transition: clip-path .7s var(--ease); }
  .cviewer.show { clip-path: inset(0); }
  .cviewer span { position: absolute; inset: 0; overflow: hidden; visibility: hidden; }
  .cviewer span.on { visibility: visible; }
  .cviewer img { display: block; width: 100%; height: 100%; object-fit: cover; }
}
@media (min-width: 900px) and (hover: hover) {
  .ctable ul:has(li:hover) li:not(:hover) { color: var(--grey); }
}

/* ---------- Footer ----------
   After the Dado reference: a full-height dark field in three bands (a top line, four
   labelled columns, a closing line). The page above is opaque and sits over it; the script
   sets --lift so the footer starts a quarter of its height up and settles as it is uncovered. */
.foot { position: relative; z-index: 0; background: var(--ink); color: #fff; padding-block: 3rem; transform: translateY(calc(var(--lift, 0) * -25%)); }
.foot :focus-visible { outline-color: #fff; }
.foot-top { padding-bottom: 15rem; align-items: start; }
.f-name { display: none; }
.f-mark { grid-column: 1; grid-row: 1; width: 4rem; aspect-ratio: 1; background: url("img/logo.png") left center / auto 100% no-repeat; }
.f-ask { grid-column: 2 / -1; grid-row: 1; text-align: right; white-space: nowrap; }
.f-go { grid-column: 3 / -1; text-align: right; }
.foot-cols { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 3rem; margin-bottom: 5rem; row-gap: 6rem; align-items: start; }
.f-label { font: inherit; font-size: max(1.4rem, 11.5px); line-height: 1.2; opacity: .5; margin: 0 0 2rem; }
.f-co, .f-ack { grid-column: 1 / -1; }
.f-map, .f-tpc { grid-column: span 2; }
.f-map li { line-height: 1.1; }
.foot-end { row-gap: .5rem; }
.f-c { grid-column: 1 / -1; order: 2; }
.f-up { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 3rem; margin-bottom: 3rem; }
/* The reference's link underline: drawn from the left on hover, withdrawn to the right. */
/* A link inside running text: always underlined with a hairline. On hover the line leaves to
   the right and is drawn again from the left, on the footer links' curve. */
.tlink { position: relative; display: inline-block; white-space: nowrap; }
.tlink::before { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .05em; min-height: 1px; background: currentColor; }
@media (hover: hover) and (pointer: fine) { .tlink:hover::before { animation: redraw 1s cubic-bezier(.65, 0, .35, 1); } }
@keyframes redraw {
  0% { transform: none; transform-origin: right; }
  45% { transform: scaleX(0); transform-origin: right; }
  46% { transform: scaleX(0); transform-origin: left; }
  100% { transform: none; transform-origin: left; }
}
.uline { position: relative; display: inline-flex; white-space: nowrap; }
.uline::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: .05em; min-height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .65s cubic-bezier(1, 0, 0, 1); }
@media (hover: hover) and (pointer: fine) { .uline:hover::before { transform: none; transform-origin: left; } }

@media (min-width: 900px) {
  .foot { padding-block: 3rem 4rem; }
  .foot-top { padding-bottom: 25rem; }
  .f-name { display: block; grid-column: 1 / span 3; }
  .f-mark { grid-column: 4 / span 3; }
  .f-name, .f-ask, .f-go { grid-row: 1; }
  .f-ask { grid-column: 7 / span 3; text-align: left; }
  .f-go { grid-column: 10 / -1; }
  .foot-cols { margin-bottom: 28rem; }
  .f-label { margin-bottom: 5rem; }
  .f-co { grid-column: 1 / span 3; }
  .f-map { grid-column: 4 / span 3; }
  .f-tpc { grid-column: 7 / span 3; }
  .f-ack { grid-column: 10 / -1; }
  .f-c { grid-column: 1 / span 6; order: 0; }
  .f-up { grid-column: 10 / -1; border: 0; padding: 0; margin: 0; }
}

/* ---------- Working tools, below the first screen ---------- */

.work { padding-block: 1.6rem 2.4rem; row-gap: .8rem; align-items: baseline; }
html:not(.at-desk) .work { display: none; }   /* the working tools show on the local preview only (the page's head script adds .at-desk there) */
.work > * { grid-column: 1 / -1; }
.work .tools { display: flex; gap: 2rem; align-items: baseline; }
@media (min-width: 900px) {
  .work .w-label { grid-column: 1 / span 3; }
  .work .faces { grid-column: 4 / span 3; }
  .work .heads { grid-column: 7 / span 3; }
  .work .tools { grid-column: 10 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ================= Type page only (type.html) ================= */

/* ---------- Top bar ---------- */

.bar { padding-block: 2rem; align-items: start; }
.bar .logo { grid-column: 1 / span 2; }
.bar .logo img { display: block; width: 13rem; height: auto; }
.bar .what { display: none; }
.bar .faces { grid-column: 3 / -1; justify-self: end; text-align: right; }
.bar .tools { grid-column: 3 / -1; justify-self: end; margin-top: .4rem; }
.faces button, .heads button, .tools button { color: var(--grey); }
.faces button[aria-pressed="true"], .heads button[aria-pressed="true"], .tools button[aria-pressed="true"] { color: var(--ink); }
@media (hover: hover) { .faces button:hover, .heads button:hover, .tools button:hover { color: var(--ink); } }

@media (min-width: 900px) {
  .bar .logo { grid-column: 1 / span 3; }
  .bar .logo img { width: 15rem; }
  .bar .what { display: block; grid-column: 4 / span 3; }
  .bar .faces { grid-column: 7 / span 3; justify-self: start; text-align: left; }
  .bar .tools { grid-column: 10 / -1; justify-self: end; margin-top: 0; }
}

/* ---------- First screen: the display size in use ---------- */

.first { min-height: calc(100svh - 14rem); display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 2rem; }
.first .lead { border-top: 1px solid var(--rule); padding-top: 1.6rem; padding-bottom: 5rem; row-gap: 3rem; }
.first .lead .where { grid-column: 1 / -1; }
.first .lead .intro { grid-column: 1 / -1; }
.first .lead .go { grid-column: 1 / -1; }
.first .headline .l1 { grid-column: 1 / -1; }
.first .headline .l2 { grid-column: 1 / -1; }

@media (min-width: 900px) {
  .first { min-height: calc(100svh - 9rem); }
  .first .lead { padding-bottom: 14rem; }
  .first .lead .where { grid-column: 1 / span 3; }
  .first .lead .intro { grid-column: 7 / span 5; }
  .first .lead .go { grid-column: 12 / -1; justify-self: end; white-space: nowrap; }
  .first .headline .l2 { grid-column: 4 / -1; }
}

/* ---------- Specimen rows ---------- */

.row { border-top: 1px solid var(--rule); padding-top: 1.6rem; padding-bottom: 9rem; row-gap: 3rem; }
.row > .tag { grid-column: 1 / -1; }
.row > .wide { grid-column: 1 / -1; }
.row > .from4, .row > .c4, .row > .c7, .row > .c10 { grid-column: 1 / -1; }
.stack > * + * { margin-top: 1em; }

@media (min-width: 900px) {
  .row { padding-bottom: 16rem; row-gap: 6rem; }
  .row > .tag { grid-column: 1 / span 3; }
  .row > .tag.top { grid-column: 1 / -1; }
  .row > .from4 { grid-column: 4 / -1; }
  .row > .c4 { grid-column: 4 / span 6; }
  .row > .c7 { grid-column: 7 / span 3; }
  .row > .c10 { grid-column: 10 / span 3; }
  .row > .to10 { grid-column: 1 / span 10; }
}

/* Credits sample: sans for names, mono for data. */
.list { grid-column: 1 / -1; }
.list li { border-top: 1px solid var(--rule); padding-block: 1.2rem; row-gap: .4rem; padding-inline: 0; }
.list li:last-child { border-bottom: 1px solid var(--rule); }
.list .n { grid-column: 1 / span 1; }
.list .title { grid-column: 2 / -1; }
.list .fmt { grid-column: 2 / span 2; }
.list .yr { grid-column: 4 / -1; justify-self: end; }

@media (min-width: 900px) {
  .list .n { grid-column: 1 / span 3; }
  .list .title { grid-column: 4 / span 3; }
  .list .fmt { grid-column: 7 / span 3; }
  .list .yr { grid-column: 10 / span 2; justify-self: start; }
}

/* Type over a picture. The slot is flat until there is a still to put in it. */
.over { grid-column: 1 / -1; background: var(--ink); color: #fff; min-height: 56rem; display: flex; flex-direction: column; justify-content: space-between; padding-block: 2rem; margin-inline: calc(var(--pad) * -1); }
.over .lead { row-gap: 3rem; }
.over .lead .slot { grid-column: 1 / -1; color: rgba(255, 255, 255, .5); }
.over .lead .intro { grid-column: 1 / -1; }
.over .l1, .over .l2 { grid-column: 1 / -1; }

@media (min-width: 900px) {
  .over { min-height: 84rem; }
  .over .lead .slot { grid-column: 1 / span 3; }
  .over .lead .intro { grid-column: 7 / span 5; }
  .over .l2 { grid-column: 4 / -1; }
}

.end { border-top: 1px solid var(--rule); padding-block: 2rem 4rem; }
.end p { grid-column: 1 / -1; }
@media (min-width: 900px) { .end p { grid-column: 4 / span 6; } }

/* On a phone the year closes the row at the right edge, as it does on the Credits page. */
@media (max-width: 899px) {
  .cred-list .yr { text-align: right; }
}

/* ---------- Working tool: no stills ----------
   "Stills" off in the working tools puts "no-stills" on <html>: the site as it would be with no
   pictures from the films. The first screen is a flat navy field with the white type; the
   picture in "What we do", the hover stills and the Credits page's frame are gone. */
.no-stills .hero { background: var(--ink); }
.no-stills .hero::before,
.no-stills .hero .still,
.no-stills .hero .cap,
.no-stills .pic,
.no-stills .cred-list .shot,
.no-stills .cviewer { display: none; }
