/* UNDOING THE TV PAGE: site.css is the homepage's stylesheet. These lines switch off the parts
   only the TV page wants, so this page scrolls and lays out as before. */
html,
body {
  height: auto;
  overflow: visible;
}
body {
  display: block;
}
.signup-slot {
  --ink: inherit;
  --card: inherit;
  --hi: inherit;
  --line-2: inherit;
  --hint: inherit;
  color: inherit;
}
:root {
  --paper: #fff;
  --card: #fff;
  --hi: #f0f1f4;
  /* The homepage covers' glass edge, verbatim (index.html: --ring, --roll, --raise-lip), for the brand-work cards. */
  --ring-w: 1.5px;
  --ring: conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.58) 0deg,
    rgba(255, 255, 255, 0.32) 55deg,
    rgba(255, 255, 255, 0.1) 115deg,
    rgba(255, 255, 255, 0.06) 170deg,
    rgba(255, 255, 255, 0.14) 195deg,
    rgba(255, 255, 255, 0.09) 235deg,
    rgba(255, 255, 255, 0.32) 280deg,
    rgba(255, 255, 255, 0.7) 310deg,
    rgba(255, 255, 255, 0.58) 360deg
  );
  --roll:
    inset 0 0 3px 1px rgba(0, 0, 0, 0.15),
    inset -2px -3px 5px -2px rgba(0, 0, 0, 0.28);
  --raise-lip:
    0 -1px 0 rgba(255, 255, 255, 0.55), 1px 1px 0 rgba(20, 22, 28, 0.16),
    2px 3px 6px -2px rgba(20, 22, 28, 0.22),
    4px 8px 15px -6px rgba(20, 22, 28, 0.14);
  /* ...and the push button on top of it (index.html, THE PUSH BUTTONS), verbatim too. */
  --stk: 1;
  --btn-depth: 5px;
  --btn-gap: 4px;
  --btn-frame: 0px;
  --btn-up:
    0 -1px 0 rgba(255, 255, 255, 0.35), 0 1px 1px rgba(20, 22, 28, 0.1),
    0 calc(var(--btn-depth) * 0.5) 2px rgba(20, 22, 28, 0.06),
    0 var(--btn-depth) 3px rgba(20, 22, 28, 0.07),
    1px calc(var(--btn-depth) + 1px) 8px -3px rgba(20, 22, 28, 0.1),
    2px calc(var(--btn-depth) + 6px) 15px -8px rgba(20, 22, 28, 0.08); /* softened 2026-10-24, as the homepage's */
  --btn-down:
    0 0 1px rgba(20, 22, 28, 0.16), 0 1px 2px rgba(20, 22, 28, 0.08);
  --line: #e3e4e8;
  --line-2: #cdd0d6;
  --ink: #111;
  --hint: #6e7078;
  color-scheme: light;
  --text: "Barlow", system-ui, -apple-system, sans-serif;
  --disp: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  --disp-wt: 600;
  --t-btn: 13.5px;
  --t-sm: 14.5px;
  --t-lg: 17px;
  --t-word: clamp(19px, 1.75vw, 24px);
  --t-title: clamp(28px, 3vw, 40px);
  --sp-1: 6px;
  --sp-2: 10px;
  --sp-3: 16px;
  --sp-4: clamp(18px, 2.6vh, 24px);
  --sp-5: clamp(24px, 3.6vh, 34px);
  --sp-6: clamp(30px, 5vh, 46px);
  --gutter: 32px;
  /* The homepage's composition width, so this header's edges land exactly
     where the homepage header's do. */
  --screen-w: clamp(660px, calc(36.842vw + 210.53px), 800px);
  --list-w: clamp(380px, calc(20vw + 150px), 460px);
  --comp-w: calc(var(--screen-w) + 48px + var(--list-w));
}
::selection {
  background: var(--ink);
  color: var(--paper);
}
body {
  color: var(--ink);
  font-family: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* ================= header (programme.html's) ================= */
.hbar {
  width: 100%;
  max-width: var(--comp-w);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-4);
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--disp);
  font-size: var(--t-word);
  font-weight: var(--disp-wt);
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.34em;
}

.page h1 {
  font-family: var(--disp);
  font-weight: var(--disp-wt);
  font-size: var(--t-title);
  line-height: 1.05;
  margin-bottom: var(--sp-5);
}
.page p {
  font-size: var(--t-lg);
  line-height: 1.6;
  max-width: 62ch;
  text-wrap: pretty;
}
.page p + p {
  margin-top: 1.1em;
}
.page a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.page a:hover,
.page a:focus-visible {
  text-decoration-thickness: 2px;
}
.page a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 3px;
}
.page a[href^="http"]::after {
  content: "\2197";
  display: inline-block;
  margin-left: 0.25em;
  font-size: 0.7em;
  font-weight: 500;
  text-decoration: none;
}

.about {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  column-gap: 56px;
  align-items: start;
}
/* The visible "About" heading was removed on request (2026-10-14); the h1 stays for screen readers and the page outline. */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.side {
  position: sticky;
  top: var(--sp-5);
}
.photo {
  margin: 0;
}
/* The pixel portrait is shown whole and square: a 4:3 crop cut off the top of the head and the chin. */
.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 9px;
  background: var(--hi);
  image-rendering: pixelated;
}
.side nav {
  margin-top: var(--sp-4);
}
.side ul {
  list-style: none;
  font-size: var(--t-lg);
  line-height: 1.55;
}
.side li + li {
  margin-top: 2px;
}
.side .cv {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
}
/* The statement is the bio, set big: it is the one thing on the page that says who this is. */
.page .lede {
  font-family: var(--text);
  font-weight: 500;
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.008em;
  max-width: 25em;
  text-wrap: balance;
  margin-bottom: 0;
}
.sec {
  margin-top: calc(var(--sp-6) * 1.5);
}
.sec:first-of-type {
  margin-top: calc(var(--sp-6) * 1.25);
}
.sec h2 {
  font-family: var(--disp);
  font-weight: var(--disp-wt);
  font-size: var(--t-word);
  line-height: 1.15;
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--line-2);
}
/* The ledger: what it is, where, and when, in three columns that every section shares. */
.ledger {
  list-style: none;
}
.ledger li {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) 5.5em;
  column-gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-lg);
  line-height: 1.35;
}
.ledger .what {
  font-family: var(--disp);
  font-weight: var(--disp-wt);
}
.ledger .yr {
  font-variant-numeric: tabular-nums;
}
/* A row still waiting for Sami's facts. Delete when filled in. */
.ledger .todo {
  font-style: italic;
}
/* Press: the project, then every outlet that covered it, wrapping in the space the other two columns use. */
.press .outlets {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 2px var(--sp-3);
}

.work ol {
  list-style: none;
  margin-top: var(--sp-4);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5) var(--sp-4);
}
.work img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 660/388;
  object-fit: cover;
  border-radius: calc(12px - var(--btn-frame));
  background: var(--hi);
  position: relative;
  z-index: 0;
}

.work .pic {
  display: block;
  position: relative;
  isolation: isolate;
  border-radius: 12px;
  margin-bottom: var(--sp-3);
  box-shadow: var(--btn-up);
  container-type: inline-size;
  outline: 2.5px solid transparent;
  outline-offset: 3px;
  transition:
    outline-color 0.08s,
    box-shadow 0.2s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.work .pic::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
  mix-blend-mode: multiply;
  box-shadow:
    var(--roll),
    inset -3px -4px 8px -4px rgba(0, 0, 0, calc(0.14 * var(--stk)));
  background: radial-gradient(
    120% 140% at 82% 108%,
    rgba(0, 0, 0, 0.2) 0,
    transparent 62%
  );
  transition:
    box-shadow 0.12s,
    background-color 0.12s;
}
.work .pic::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  border-radius: inherit;
  mix-blend-mode: screen;
  padding: var(--ring-w);
  background: var(--ring);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
}
.work .pic .sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
  mix-blend-mode: screen;
  box-shadow:
    inset 1px 2px 4px -1px rgba(255, 255, 255, calc(0.3 * var(--stk))),
    inset 0 0 0 2px rgba(255, 255, 255, calc(0.16 * var(--stk))),
    inset 0 0 10px 1px rgba(255, 255, 255, calc(0.14 * var(--stk)));
  background: radial-gradient(
    90% 70% at 22% -12%,
    rgba(255, 255, 255, 0.22) 0,
    rgba(255, 255, 255, 0.06) 45%,
    transparent 70%
  );
}
.work .pic .sheen::before,
.work .pic .sheen::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 8px;
  border: 0 solid;
  filter: blur(1.2px);
}
.work .pic .sheen::before {
  border-color: rgba(255, 255, 255, calc(0.4 * var(--stk)));
  border-width: 3px 0 0 3px;
  -webkit-mask: radial-gradient(
    48cqi 30cqi at 0 0,
    #000 30%,
    rgba(0, 0, 0, 0.4) 60%,
    transparent 100%
  );
  mask: radial-gradient(
    48cqi 30cqi at 0 0,
    #000 30%,
    rgba(0, 0, 0, 0.4) 60%,
    transparent 100%
  );
}
.work .pic .sheen::after {
  border-color: rgba(255, 255, 255, calc(0.16 * var(--stk)));
  border-width: 0 2px 2px 0;
  -webkit-mask: radial-gradient(
    34cqi 20cqi at 100% 100%,
    #000 25%,
    transparent 100%
  );
  mask: radial-gradient(
    34cqi 20cqi at 100% 100%,
    #000 25%,
    transparent 100%
  );
}
@media (hover: hover) {
  .work li:hover .pic {
    box-shadow: var(--btn-down);
    transition-duration: 0.08s, 0.1s;
    transition-timing-function: ease-out;
  }
  .work li:hover .pic::before {
    box-shadow:
      var(--roll),
      inset -3px -4px 8px -4px rgba(0, 0, 0, calc(0.14 * var(--stk))),
      inset 0 4px 6px -4px rgba(0, 0, 0, 0.18);
    background-color: rgba(0, 0, 0, 0.035);
  }
}
.work li:active .pic {
  box-shadow: var(--btn-down);
}
.work li:active .pic::before {
  box-shadow:
    var(--roll),
    inset -3px -4px 8px -4px rgba(0, 0, 0, calc(0.14 * var(--stk))),
    inset 0 5px 7px -4px rgba(0, 0, 0, 0.28);
  background-color: rgba(0, 0, 0, 0.06);
}
.work li:focus-within .pic {
  outline-color: #111;
}
/* The well (index.html, THE PUSH BUTTONS, SOFT). The well's height is the picture's, worked out from its width. */
.work li {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
}
.work li::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  left: calc(-1 * var(--btn-gap));
  right: calc(-1 * var(--btn-gap));
  top: calc(-1 * var(--btn-gap));
  height: calc(
    (100cqi - 2 * var(--btn-frame)) * 388 / 660 + 2 * var(--btn-frame) +
      2 * var(--btn-gap)
  );
  border-radius: calc(12px + var(--btn-gap));
  background: rgba(20, 22, 28, 0.045);
  box-shadow:
    inset 0 1px 3px rgba(20, 22, 28, 0.14),
    0 1px 1px rgba(255, 255, 255, 0.55);
}
.work .pic::after {
  opacity: 0.5;
}
@media (prefers-reduced-motion: reduce) {
  .work .pic,
  .work .pic::before {
    transition: none;
  }
}

:root {
  --hard-ease: cubic-bezier(
    0.3,
    1.3,
    0.5,
    1
  ); /* back up: quick, one tiny bounce */
  --hard-up:
    0 0 0 0.5px rgba(20, 22, 28, 0.16), 0 3px 0 rgba(20, 22, 28, 0.11),
    0.5px 3.5px 1px rgba(20, 22, 28, 0.16),
    1px 5px 4px -1px rgba(20, 22, 28, 0.12),
    2px 8px 10px -6px rgba(20, 22, 28, 0.1);
  --hard-down:
    0 0 0 0.5px rgba(20, 22, 28, 0.2), 0 0.5px 1px rgba(20, 22, 28, 0.12);
  --hard-bevel:
    inset 0 0 0 0.5px rgba(0, 0, 0, 0.2),
    inset 0 -2px 2px -1px rgba(0, 0, 0, 0.24),
    inset -2px 0 2px -1px rgba(0, 0, 0, 0.12);
}
.work li::before {
  background: linear-gradient(
    to bottom,
    rgba(20, 22, 28, 0.05),
    rgba(20, 22, 28, 0.1)
  );
  box-shadow:
    inset 0 1px 0 rgba(20, 22, 28, 0.14),
    inset 0 2px 3px -1px rgba(20, 22, 28, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.75);
}
.work .pic {
  box-shadow: var(--hard-up);
  transition:
    outline-color 0.08s,
    box-shadow 0.14s var(--hard-ease),
    transform 0.14s var(--hard-ease);
}
.work .pic::before {
  box-shadow: var(--hard-bevel);
  background: radial-gradient(
    120% 140% at 82% 108%,
    rgba(0, 0, 0, 0.08) 0,
    transparent 62%
  );
  transition:
    box-shadow 0.14s,
    background-color 0.14s;
}
.work .pic::after {
  opacity: 0.4;
}
.work .pic .sheen {
  transition: opacity 0.14s var(--hard-ease);
  box-shadow: inset 0 1.5px 1.5px -1px rgba(255, 255, 255, 0.3);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.02) 40%,
    transparent 65%
  );
}
.work .pic .sheen::before {
  inset: 1px;
  border-radius: 11px;
  border-width: 2px 0 0 2px;
  border-color: rgba(255, 255, 255, 0.55);
  filter: blur(0.4px);
  -webkit-mask: radial-gradient(
    40cqi 26cqi at 0 0,
    #000 15%,
    rgba(0, 0, 0, 0.35) 55%,
    transparent 100%
  );
  mask: radial-gradient(
    40cqi 26cqi at 0 0,
    #000 15%,
    rgba(0, 0, 0, 0.35) 55%,
    transparent 100%
  );
}
.work .pic .sheen::after {
  inset: 0;
  border-radius: 12px;
  border-width: 0 1px 1px 0;
  border-color: rgba(255, 255, 255, 0.2);
  filter: blur(0.3px);
  -webkit-mask: radial-gradient(
    30cqi 18cqi at 100% 100%,
    #000 20%,
    transparent 100%
  );
  mask: radial-gradient(
    30cqi 18cqi at 100% 100%,
    #000 20%,
    transparent 100%
  );
}
@media (hover: hover) {
  .work li:hover .pic {
    box-shadow: var(--hard-down);
    transform: scale(0.985);
    transition:
      outline-color 0.08s,
      box-shadow 0.07s ease-in,
      transform 0.07s ease-in;
  }
  .work li:hover .pic::before {
    transition-duration: 0.07s;
    background-color: rgba(0, 0, 0, 0.03);
    box-shadow:
      var(--hard-bevel),
      inset 0 3px 3px -2px rgba(0, 0, 0, 0.24);
  }
  .work li:hover .pic .sheen {
    opacity: 0.75;
    transition: opacity 0.07s ease-in;
  }
}
.work li:active .pic {
  box-shadow: var(--hard-down);
  transform: scale(0.978);
}
.work li:active .pic::before {
  background-color: rgba(0, 0, 0, 0.05);
  box-shadow:
    var(--hard-bevel),
    inset 0 4px 4px -2px rgba(0, 0, 0, 0.32);
}
.work li:active .pic .sheen {
  opacity: 0.65;
}
@media (prefers-reduced-motion: reduce) {
  .work .pic,
  .work .pic::before,
  .work .pic .sheen {
    transition: none;
  }
}

/* The picture and the name are one link to the company's page (2026-10-15); the picture's copy is hidden from keyboards and screen readers so the page reads one link per company. The names carry no underline and the cards no description (2026-10-23); keyboard focus still underlines. */
.work h3 a {
  text-decoration: none;
}
.work h3 a:focus-visible {
  text-decoration: underline;
}
.work h3 {
  font-family: var(--disp);
  font-weight: var(--disp-wt);
  font-size: var(--t-lg);
  line-height: 1.2;
}
.work .yrs {
  font-size: var(--t-sm);
  font-variant-numeric: tabular-nums;
  margin: 2px 0 var(--sp-1);
}
.work li p {
  font-size: var(--t-sm);
  line-height: 1.5;
}
.page .work li p + p {
  margin-top: 0;
}

:root {
  --pc: oklch(0.52 0.1 330);
} /* the mark's colour: a sixth hue of the matched set, no project's */
.page {
  padding: var(--sp-6) var(--gutter) calc(var(--sp-6) * 2);
}
.page-in {
  max-width: var(--comp-w);
  margin-inline: auto;
}
@media (max-width: 1220px) {
  .hbar,
  .page-in {
    max-width: var(--screen-w);
  }
  .about {
    grid-template-columns: 190px minmax(0, 1fr);
    column-gap: 36px;
  }
  .ledger li {
    grid-template-columns: minmax(0, 1fr) 5.5em;
    row-gap: 2px;
  }
  .ledger .where {
    grid-column: 1;
    grid-row: 2;
  }
  .ledger .yr {
    grid-column: 2;
    grid-row: 1;
  }
  .press .outlets {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .work ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* the phone slot at the end of the page (2026-10-12): the page's own colours, black on white */
.signup-slot {
  display: none;
}
@media (max-width: 760px) {
  .signup-slot {
    display: block;
    margin-top: var(--sp-6);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--line);
  }
  .signup-slot .signup-label {
    font-family: var(--disp);
    font-weight: var(--disp-wt);
    font-size: 18px;
    line-height: 1.25;
    max-width: none;
    margin: 0 0 var(--sp-2);
    text-wrap: balance;
  }
  .signup-slot .signup {
    flex-wrap: nowrap;
    width: 100%;
  }
  .signup-slot .signup input {
    flex: 1;
    font-size: 16px;
  }
}
@media (max-width: 700px) {
  .hbar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
  }
  header .hright {
    margin-left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
  }
  header .links {
    gap: var(--sp-1) var(--sp-3);
  }
  .signup {
    flex-wrap: wrap;
    width: 100%;
  }
  .signup input {
    font-size: 16px;
    flex: 1;
  } /* under 16px, iOS zooms the page on focus */
  .page {
    padding-inline: var(--sp-3);
  }
  /* Phone: the photo comes first, under the heading, then the text. */
  .about {
    grid-template-columns: minmax(0, 1fr);
  }
  /* The photo, then the statement that says who this is, then the page's links, then the sections. The side
     column and the body are dissolved into the one stack so the links can sit after the statement. */
  .about {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .side,
  .body {
    display: contents;
  }
  .photo {
    order: 1;
  }
  .body > .lede {
    order: 2;
    margin-top: var(--sp-3);
  }
  .side nav {
    order: 3;
    margin-top: var(--sp-4);
  }
  .body > .sec {
    order: 4;
  }
  .side {
    position: static;
  }
  .photo {
    max-width: 240px;
    margin-bottom: 0;
  }
  .side ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-1) var(--sp-3);
  }
  .side .cv {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
  .side {
    margin-bottom: var(--sp-5);
  }
  /* One company per row: two columns left captions at about 22 characters a line. */
  .work ol {
    grid-template-columns: minmax(0, 1fr);
  }
  header {
    padding-inline: var(--sp-3);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
