/* Wired Technologies
 *
 * The home page is the product-studio revision (November 2026): one dark
 * stage, four product blocks in their own colours, then the custom-software
 * sections kept from design/wired-site.md revision 3.10 in the ops repository.
 *
 * There is no JavaScript on this page and the Content-Security-Policy has no
 * script-src, so anything injected later fails loudly rather than working
 * quietly. Every piece of motion here is therefore CSS: the stage entrance uses
 * @starting-style and the section reveals use scroll-driven timelines. All of it
 * degrades to a static, complete page when the feature is absent.
 *
 * Type: Millik for display at 30px and up, Moderat below it. That threshold is
 * not a preference. Millik is a heavy, high-contrast face that reads squashed
 * at card-title size, measured in section 4.1c.
 */

/* ---------------------------------------------------------------- fonts -- */

/* Subset to Latin with kerning, ligatures and tabular figures kept. The full
 * TTFs are 446KB; these are 45KB, and a subset webfont is also how the
 * TIGHTYPE and ZEALAB licences are honoured rather than serving the retail
 * files for anyone to take. */

@font-face {
  font-family: "Millik";
  src: url("assets/fonts/Millik.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Moderat";
  src: url("assets/fonts/Moderat-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Moderat";
  src: url("assets/fonts/Moderat-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------- tokens -- */

:root {
  --ink: #0c0e12;
  --ink-2: #181c23;
  --paper: #fcfdfd;
  --steel: #e8ebee;
  --tint: #f1f4f6;
  --graphite: #464c54;
  --graphite-lt: #5a616a;
  --graphite-dk: #949ba4;
  --paper-dim: #b9c0c8;
  --credit: #7c838c;
  --rule: #d2d7dc;
  --rule-ink: #262b31;
  --signal: #1433b8;
  --signal-lt: #8fb4ff;

  --display: "Millik", Georgia, "Times New Roman", serif;
  --text: "Moderat", "Helvetica Neue", Arial, sans-serif;

  /* One shadow language: same colour, no x offset, four elevations, so the
   * page is lit from straight above at one strength. Section 4.6. */
  --e2: 0 4px 14px rgba(12, 14, 18, 0.28);
  --e3: 0 10px 28px rgba(12, 14, 18, 0.09);
  --e4: 0 20px 52px rgba(12, 14, 18, 0.22);

  --gutter: 80px;
  --measure: 1280px;
}

/* ----------------------------------------------------------------- reset -- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 28px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--signal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 10;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* --------------------------------------------------------------- display -- */

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.015em;
}

/* Solid leading at display sizes, so a two-line headline reads as one shape
 * rather than as two lines of text. */
h1,
h2 {
  font-family: var(--display);
  line-height: 1.04;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 44px;
}

/* Below 30px Millik reads squashed, so block and card titles are Moderat Bold.
 * Section 4.1b. */
h3 {
  font-family: var(--text);
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.005em;
}

.lede {
  font-size: 19px;
  line-height: 31px;
  color: var(--graphite);
}

/* The mono layer is tracked Moderat with tabular figures rather than a fifth
 * typeface. Moderat carries tnum, which was the only real argument for adding
 * a monospace at all. Section 4.1b. */
.stamp {
  font-family: var(--text);
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  color: var(--graphite-lt);
}

/* --------------------------------------------------------------- shell ---- */

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  position: relative;
}

/* ---------------------------------------------------------------- header -- */

/* A floating pill on the photograph, not a bar. It hugs its content and is
 * centred; the wordmark and the button carry matched clearance inside it. */
.nav {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 36px;
  height: 52px;
  padding: 0 6px 0 23px;
  top: 36px;
  background: rgba(24, 28, 35, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  backdrop-filter: blur(10px);
}

.wordmark {
  font-family: var(--text);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.06em;
  color: var(--paper);
  white-space: nowrap;
}

.wordmark .dot {
  color: var(--signal-lt);
  /* The wordmark is tracked +6%, and CSS letter-spacing is added after the
   * last character as well as between them, so the D pushes the dot away and
   * it reads as "WIRED ." — the same defect the Figma file had for 26
   * instances, arriving here by a different route. Pull the tracking back off
   * this one glyph. */
  margin-left: -0.06em;
  letter-spacing: normal;
}

.nav a:not(.btn) {
  color: var(--paper);
  font-size: 16px;
  white-space: nowrap;
}

.nav a:not(.btn):hover {
  color: var(--signal-lt);
  text-decoration: none;
}

/* ----------------------------------------------------------------- button -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 26px;
  background: var(--signal);
  color: #fff;
  font-family: var(--text);
  font-weight: 700;
  font-size: 17px;
  line-height: 20px;
  border-radius: 8px;
  box-shadow: var(--e2);
  transition: translate 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  background: #0f2a9c;
  translate: 0 -1px;
  box-shadow: 0 6px 18px rgba(12, 14, 18, 0.32);
  text-decoration: none;
}

.btn:active {
  translate: 0 1px;
  box-shadow: 0 2px 8px rgba(12, 14, 18, 0.26);
}

.nav .btn {
  min-height: 40px;
  padding: 10px 22px;
  font-size: 16px;
}

/* --------------------------------------------------------------- accents -- */
/* The house device on every Wired product site: a ruled eyebrow, and one word
 * of the headline in the accent colour. Millik has no italic, so the accent is
 * colour alone. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
em.accent {
  font-style: normal;
  color: var(--signal);
}

/* ----------------------------------------------------------------- stage -- */
/* One dark panel inset on the white page. It holds the claim and, beside it,
 * the four products themselves, so the first screen shows the work. */
.stage {
  padding: 12px 12px 0;
}
.stage__panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 40px;
  min-height: 760px;
  padding: 128px 0 72px max(68px, calc((100vw - var(--measure)) / 2 + 68px));
  border-radius: 28px;
  color: var(--paper);
  background:
    radial-gradient(900px 520px at 78% 8%, rgba(20, 51, 184, 0.42), transparent 62%),
    radial-gradient(700px 460px at 8% 100%, rgba(20, 51, 184, 0.16), transparent 60%),
    var(--ink);
}
.stage .eyebrow,
.stage em.accent {
  color: var(--signal-lt);
}
.stage h1 {
  margin: 22px 0 24px;
  font-size: clamp(44px, 5.1vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 11ch;
}
.stage__lede {
  margin: 0;
  max-width: 46ch;
  font-size: 19px;
  line-height: 31px;
  color: var(--paper-dim);
}
.stage__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 38px;
}
.stage__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--paper);
}
.stage__link svg {
  transition: translate 200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.stage__link:hover {
  color: var(--signal-lt);
  text-decoration: none;
}
.stage__link:hover svg {
  translate: 4px 0;
}

/* The journey: a photograph of people at the idea stage, and over it the two
 * ends of the story: the sentence somebody arrived with, and the product that
 * is now live. The photograph bleeds to three edges of the panel and fades
 * into it on the fourth, so it reads as part of the panel, not a picture on it. */
.stage__copy {
  position: relative;
  z-index: 2;
}
.journey {
  position: relative;
  align-self: stretch;
  min-height: 560px;
  margin: -128px 0 -72px;
}
.journey__photo {
  position: absolute;
  inset: 0 0 0 -16%;
  width: 116%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 46% 30%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%);
  mask-image: linear-gradient(to right, transparent 0%, #000 34%);
}
.journey::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 14, 18, 0.72) 0%, rgba(12, 14, 18, 0) 46%);
  pointer-events: none;
}
.journey > div {
  position: absolute;
  z-index: 1;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 28px 60px rgba(0, 0, 0, 0.5);
}
.chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 700;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.chip--live {
  background: var(--signal);
  color: #fff;
}
.journey__idea {
  left: 4%;
  bottom: 64px;
  width: 46%;
  padding: 20px 24px 24px;
  background: var(--paper);
  color: var(--ink);
  rotate: -3deg;
}
.journey__idea .chip {
  background: var(--tint);
  color: var(--graphite);
}
.journey__idea p {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.journey__live {
  right: 7%;
  bottom: -150px;
  width: 27%;
  padding: 8px;
  background: #0a0b0f;
  border-radius: 30px;
}
.journey__live img {
  width: 100%;
  height: auto;
  border-radius: 23px;
}
.journey__live .chip {
  position: absolute;
  left: -22px;
  top: 34px;
  box-shadow: var(--e2);
}
@starting-style {
  .stage__copy > * {
    translate: 0 22px;
    opacity: 0;
  }
  .journey > div {
    translate: 0 34px;
    opacity: 0;
  }
}
.stage__copy > * {
  translate: 0 0;
  opacity: 1;
  transition: translate 700ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 520ms ease-out;
}
.stage__copy > :nth-child(2) { transition-delay: 60ms; }
.stage__copy > :nth-child(3) { transition-delay: 120ms; }
.stage__copy > :nth-child(4) { transition-delay: 180ms; }
.journey > div {
  translate: 0 0;
  opacity: 1;
  transition: translate 900ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 600ms ease-out;
}
.journey__idea { transition-delay: 250ms; }
.journey__live { transition-delay: 450ms; }

/* ------------------------------------------------------------- expertise -- */
.expertise {
  padding: 112px 0 104px;
}
.expertise__head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 64px;
  margin-bottom: 64px;
}
.expertise__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--e3);
}
.expertise h2,
.proofs h2,
.process h2,
.page-head h1 {
  margin: 20px 0 20px;
  font-size: clamp(38px, 4.2vw, 60px);
}
.expertise .lede {
  margin: 0;
  max-width: 54ch;
}
.skills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
}
.skills li {
  padding: 8px 18px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  line-height: 22px;
}
.sectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}
.sector {
  padding: 30px 32px 34px 0;
  border-bottom: 1px solid var(--rule);
}
.sector h3 {
  margin: 14px 0 10px;
}
.sector p {
  margin: 0;
  max-width: 34ch;
  color: var(--graphite);
  font-size: 16px;
  line-height: 26px;
}

/* ---------------------------------------------------------------- proofs -- */
/* Our own products, as evidence. Four small cards and a way to the page that
 * holds them; the home page is about the visitor's idea, not ours. */
.proofs {
  background: var(--tint);
  padding: 96px 0 104px;
}
.proofs__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 48px;
  margin-bottom: 48px;
}
.proofs__head h2 {
  margin-bottom: 0;
}
.proofs__head .lede {
  margin: 0;
}
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  font-weight: 700;
  white-space: nowrap;
}
.more-link svg {
  transition: translate 200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.more-link:hover svg {
  translate: 4px 0;
}
.proofs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.proof {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 10px 10px 22px;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--e3);
  color: var(--ink);
  transition: translate 220ms cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 220ms ease;
}
.proof:hover {
  text-decoration: none;
  translate: 0 -4px;
  box-shadow: 0 16px 38px rgba(12, 14, 18, 0.13);
}
.proof img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 0 0;
  border-radius: 10px;
  margin-bottom: 12px;
  background: var(--steel);
}
.proof img.center {
  object-position: 50% 50%;
}
.proof strong,
.proof span,
.proof em {
  padding: 0 10px;
}
.proof strong {
  font-size: 19px;
  line-height: 26px;
}
.proof span {
  color: var(--graphite);
  font-size: 15px;
  line-height: 23px;
}
.proof em {
  margin-top: 8px;
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
}

/* ------------------------------------------------------------- page head -- */
/* The top of an inner page: white, with room for the floating navigation. */
.page-head {
  padding: 168px 0 56px;
}
.page-head .lede {
  margin: 0;
  max-width: 58ch;
}
.nav a[aria-current="page"] {
  color: var(--signal-lt);
}

/* -------------------------------------------------------------- products -- */
.products {
  padding: 0 0 40px;
}

/* A product block wears its product's colours. The screen is set larger than
 * its column and cut by the block's own edge: the product shown big, which is
 * the one thing every reference site the founder named has in common. */
.product {
  --p-bg: var(--ink);
  --p-accent: var(--signal-lt);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 56px;
  min-height: 560px;
  margin-bottom: 28px;
  padding: 72px 0 72px 72px;
  border-radius: 24px;
  background: var(--p-bg);
  color: #f4f5f6;
}
.product[data-brand="fellowkeep"] { --p-bg: #12141d; --p-accent: #d3ae62; }
.product[data-brand="wirecatch"] { --p-bg: #0b1214; --p-accent: #5eead4; }
.product[data-brand="flagsimple"] { --p-bg: #0e1a2c; --p-accent: #a5ecc6; }
.product[data-brand="kids"] { --p-bg: #17130c; --p-accent: #e9bd75; }

.product .eyebrow,
.product em.accent {
  color: var(--p-accent);
}
.product h3 {
  margin: 22px 0 10px;
  font-size: 17px;
  line-height: 24px;
  letter-spacing: 0.02em;
  color: rgba(244, 245, 246, 0.72);
}
.product__line {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: clamp(34px, 3.3vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.015em;
}
.product__copy > p:not(.product__line):not(.status) {
  margin: 0 0 26px;
  max-width: 40ch;
  color: rgba(244, 245, 246, 0.74);
}
.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.02em;
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--p-accent) 22%, transparent);
}
.visit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--p-accent);
  color: #0c0e12;
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  transition: translate 160ms ease, filter 160ms ease;
}
.visit:hover {
  text-decoration: none;
  translate: 0 -1px;
  filter: brightness(1.08);
}
.visit svg {
  transition: translate 200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.visit:hover svg {
  translate: 4px 0;
}
.product :focus-visible {
  outline-color: var(--p-accent);
}

.product__media {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.product .shot {
  width: 116%;
  max-width: none;
  height: auto;
  border-radius: 14px 0 0 14px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 70px rgba(0, 0, 0, 0.5);
  transition: translate 500ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.product:hover .shot {
  translate: -10px 0;
}
.product .phone {
  position: absolute;
  left: -34px;
  bottom: -110px;
  width: 190px;
  height: auto;
  border-radius: 26px;
  border: 6px solid #0a0b0f;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
}

/* Flipped: screen on the left, running off the left edge. */
.product--flip {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  padding: 72px 72px 72px 0;
}
.product--flip .product__copy {
  order: 2;
}
.product--flip .product__media {
  justify-content: flex-end;
}
.product--flip .shot {
  border-radius: 0 14px 14px 0;
}
.product--flip:hover .shot {
  translate: 10px 0;
}

/* The film block shows the whole frame, since a film cut by an edge is a
 * cropped film. */
.product--film {
  padding-left: 72px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}
.product--film .shot {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.product--film:hover .shot {
  translate: 0 0;
}
.episodes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  counter-reset: ep;
}
.episodes li {
  counter-increment: ep;
  font-size: 13px;
  line-height: 18px;
  color: rgba(244, 245, 246, 0.74);
}
.episodes img {
  width: 100%;
  height: auto;
  margin-bottom: 8px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.episodes span::before {
  content: "Genesis " counter(ep) " ";
  display: block;
  font-weight: 700;
  color: var(--p-accent);
}

/* ----------------------------------------------------------------- cards -- */

/* The Paystack mechanics, which are not the rounded corners: white cards on a
 * tinted ground so the card is the bright object and the page recedes, an
 * illustration per card to give the row rhythm, and a link so each card goes
 * somewhere. Section 7.10. */
.process {
  background: var(--tint);
  padding: 96px 0 104px;
}

.process h2 {
  margin-bottom: 48px;
  max-width: 16ch;
}
.cards.cards--four {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card .stamp {
  margin-bottom: 8px;
  color: var(--signal);
}
.cards--four .card {
  padding: 28px 26px 30px;
  overflow: hidden;
}
.card__photo {
  width: calc(100% + 52px);
  max-width: none;
  height: auto;
  margin: -28px -26px 24px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.cards--four .card p {
  margin-bottom: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: 16px;
  padding: 32px 32px 30px;
  box-shadow: var(--e3);
  transition: translate 220ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 220ms ease;
}

.card:hover {
  translate: 0 -4px;
  box-shadow: 0 16px 38px rgba(12, 14, 18, 0.13);
}

.card svg {
  margin-bottom: 26px;
}

.card h3 {
  margin-bottom: 14px;
}

.card p {
  margin: 0 0 26px;
  color: var(--graphite);
  font-size: 16px;
  line-height: 26px;
}

.card .more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
}

.card .more svg {
  margin: 0;
  transition: translate 200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.card:hover .more svg {
  translate: 4px 0;
}

/* ---------------------------------------------------------- closing card -- */

.closing {
  padding: 96px 0 104px;
}

.close-card {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-radius: 20px;
  padding: 64px 72px 68px;
  box-shadow: var(--e4);
}

/* The mark infused rather than applied: oversized, cropped by two edges, a
 * couple of percent lighter than the card. A change in the surface, not a
 * graphic on top of it. */
.close-card::after {
  content: "W";
  position: absolute;
  right: -0.06em;
  bottom: -0.34em;
  font-family: var(--display);
  font-size: 420px;
  line-height: 1;
  color: var(--ink-2);
  pointer-events: none;
  user-select: none;
}

.close-card > * {
  position: relative;
  z-index: 1;
}

.close-card h2 {
  max-width: 14ch;
  margin-bottom: 20px;
}

.close-card p {
  margin: 0 0 30px;
  color: var(--paper-dim);
  max-width: 52ch;
}

.close-card .actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.close-card .actions a:not(.btn) {
  color: var(--paper-dim);
}

.close-card .note {
  margin: 26px 0 0;
  color: var(--credit);
  font-size: 15px;
  line-height: 24px;
}

/* ---------------------------------------------------------------- footer -- */

.footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper-dim);
  padding: 72px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 64px;
}

.footer .wordmark {
  font-size: 22px;
  display: inline-block;
  margin-bottom: 26px;
}

.footer p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 24px;
  max-width: 56ch;
}

.footer .credit {
  color: var(--credit);
}

.footer h4 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: 0.02em;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  margin-bottom: 8px;
}

.footer li a {
  color: var(--paper-dim);
  font-size: 15px;
}

.footer li a:hover {
  color: var(--paper);
}

.social {
  display: flex;
  gap: 8px;
  margin-top: 26px;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--graphite-dk);
  transition: color 160ms ease;
}

.social a:hover {
  color: var(--paper);
}

/* The bleed wordmark, cropped by the bottom of the page and by both side
 * edges. It has to be sized against the viewport rather than in pixels: at a
 * fixed 260px it covered about 60% of a 1440 screen and left a dead area to
 * the right, which reads as a broken footer rather than as a bleed. 30vw puts
 * the word slightly wider than the viewport at every width, so it is always
 * cut by all three edges. */
.footer__bleed {
  font-family: var(--display);
  font-size: 30vw;
  line-height: 0.72;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  margin-left: -0.03em;
  margin-bottom: -0.16em;
}

/* ---------------------------------------------------------------- reveal -- */

/* Scroll-driven, so it runs off the scroller rather than a timer and cannot
 * desynchronise from what the reader is looking at. Where the feature is
 * missing the element simply starts visible: the @supports guard means no
 * reader ever gets a blank section because their browser lacks a timeline. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 6% cover 26%;
    }

    .cards > .card {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 4% cover 30%;
    }

    .cards > .card:nth-child(2) {
      animation-range: entry 0% cover 30%;
    }

    .cards > .card:nth-child(3) {
      animation-range: entry -4% cover 30%;
    }
    .cards > .card:nth-child(4) {
      animation-range: entry -8% cover 30%;
    }
  }
}

@keyframes reveal-in {
  from {
    opacity: 0;
    translate: 0 18px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* ------------------------------------------------------------- reduced --- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------- tablet -- */
@media (max-width: 1180px) and (min-width: 901px) {
  :root {
    --gutter: 40px;
  }
  .stage__panel {
    padding-left: 48px;
    gap: 28px;
  }
  .journey__idea {
    width: 58%;
  }
  .journey__idea p {
    font-size: 18px;
  }
  .expertise__head {
    gap: 36px;
  }
  .cards.cards--four,
  .sectors,
  .proofs__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product,
  .product--flip {
    gap: 36px;
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .product,
  .product--film {
    padding-left: 44px;
  }
  .product--flip {
    padding-right: 44px;
  }
}
/* --------------------------------------------------------------- mobile -- */

@media (max-width: 900px) {
  :root {
    --gutter: 20px;
  }

  body {
    font-size: 15px;
    line-height: 24px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 29px;
  }

  h3 {
    font-size: 20px;
    line-height: 26px;
  }

  .lede {
    font-size: 16px;
    line-height: 26px;
  }

  .nav {
    top: 14px;
    width: calc(100% - 28px);
    left: 14px;
    translate: none;
    justify-content: space-between;
    gap: 12px;
    padding: 0 8px 0 18px;
  }

  /* The desktop nav links do not fit a 393px pill, so they go and the button
   * stays, being the one action that matters. The wordmark is also an
   * `a:not(.btn)` and must be excluded by name, or the pill loses the company
   * it is there to identify. */
  .nav a:not(.btn):not(.wordmark):not(.keep) {
    display: none;
  }

  .stage {
    padding: 8px 8px 0;
  }
  .stage__panel {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
    padding: 104px 22px 0;
    border-radius: 22px;
  }
  .stage h1 {
    font-size: 42px;
    max-width: none;
  }
  .stage__lede {
    font-size: 16px;
    line-height: 26px;
  }
  .stage__actions {
    gap: 20px;
  }
  .stage__actions .btn {
    width: 100%;
  }
  .journey {
    min-height: 0;
    height: 380px;
    margin: 0 -22px;
  }
  .journey__photo {
    inset: 0;
    width: 100%;
    object-position: 40% 20%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 26%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 26%);
  }
  .journey > div {
    border-radius: 14px;
  }
  .journey__idea {
    left: 16px;
    bottom: 22px;
    width: 58%;
    padding: 14px 16px 16px;
  }
  .journey__idea p {
    font-size: 15px;
    margin-top: 8px;
  }
  .journey__live {
    right: 16px;
    bottom: -90px;
    width: 30%;
    padding: 5px;
    border-radius: 20px;
  }
  .journey__live img {
    border-radius: 16px;
  }
  .journey__live .chip {
    left: -14px;
    top: 18px;
  }
  .expertise__head {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .chip {
    font-size: 10px;
    padding: 3px 9px;
  }
  .expertise,
  .proofs {
    padding: 64px 0 68px;
  }
  .expertise__head {
    margin-bottom: 36px;
  }
  .expertise h2,
  .proofs h2,
  .process h2,
  .page-head h1 {
    font-size: 34px;
  }
  .skills li {
    padding: 6px 14px;
    font-size: 14px;
  }
  .sectors {
    grid-template-columns: 1fr;
  }
  .sector {
    padding: 22px 0 24px;
  }
  .proofs__head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }
  .proofs__grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .proof {
    padding: 8px 8px 16px;
  }
  .proof strong,
  .proof span,
  .proof em {
    padding: 0 6px;
  }
  .proof strong {
    font-size: 16px;
    line-height: 22px;
  }
  .proof span {
    font-size: 13px;
    line-height: 19px;
  }
  .page-head {
    padding: 112px 0 36px;
  }
  .products {
    padding: 0 0 20px;
  }
  .product,
  .product--flip,
  .product--film {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: 0;
    margin-bottom: 16px;
    padding: 40px 0 0 24px;
    border-radius: 20px;
  }
  .product__copy {
    padding-right: 24px;
  }
  .product--flip .product__copy {
    order: 0;
  }
  .product__line {
    font-size: 32px;
  }
  .product .shot,
  .product--flip .shot {
    width: 108%;
    border-radius: 12px 0 0 0;
  }
  .product--flip .product__media {
    justify-content: flex-start;
  }
  .product .phone {
    left: auto;
    right: 20px;
    bottom: -60px;
    width: 120px;
    border-radius: 18px;
    border-width: 4px;
  }
  .product--film {
    padding: 40px 24px 28px;
  }
  .product--film .product__copy {
    padding-right: 0;
  }
  .product--film .shot {
    width: 100%;
    border-radius: 12px;
  }
  .process,
  .closing {
    padding: 64px 0 68px;
  }

  .cards,
  .cards.cards--four {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .close-card {
    padding: 40px 28px 44px;
  }

  .close-card::after {
    font-size: 260px;
  }

  .close-card h2 {
    max-width: none;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-bottom: 44px;
  }

  /* The fluid size already works at 393; overriding it with a fixed value
   * reintroduces exactly the gap this rule exists to close. */
  .footer__bleed {
    letter-spacing: 0;
  }
}

/* ============================================================ legal pages ==
 *
 * privacy.html and terms.html carry their own class vocabulary, written
 * before this redesign. Rather than rewrite 657 lines of careful legal copy to
 * match new class names, the names are supported here. A privacy policy is a
 * document, so it is set narrow and quiet, and it does not animate.
 */

.site-header {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px var(--gutter);
  background: var(--ink);
  flex-wrap: wrap;
}

.site-header .wordmark {
  font-size: 19px;
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-right: auto;
}

.site-nav a {
  color: var(--paper-dim);
  font-size: 16px;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--paper);
}

.action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 22px;
  background: var(--signal);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  border-radius: 8px;
  box-shadow: var(--e2);
}

.action:hover {
  background: #0f2a9c;
  text-decoration: none;
}

.action--sm {
  min-height: 40px;
  padding: 9px 18px;
  font-size: 15px;
}

.doc-title {
  padding: 72px 0 34px;
  border-bottom: 1px solid var(--rule);
}

.doc-title h1 {
  font-size: 44px;
  margin: 8px 0 16px;
}

.label {
  font-family: var(--text);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite-lt);
  margin: 0;
}

.doc-meta {
  margin: 0;
  color: var(--graphite);
  font-size: 16px;
  line-height: 26px;
}

.short-version {
  margin: 40px 0;
  padding: 32px 36px;
  background: var(--tint);
  border-radius: 16px;
}

.short-version h2 {
  font-size: 28px;
  margin-bottom: 14px;
}

.doc-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  padding: 16px 0 96px;
  align-items: start;
}

.doc-contents {
  position: sticky;
  top: 28px;
  font-size: 15px;
  line-height: 24px;
}

.doc-contents ol,
.doc-contents ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--graphite);
}

.doc-contents li {
  margin-bottom: 7px;
}

.doc-sec {
  padding-bottom: 34px;
}

.doc-sec h2 {
  font-size: 30px;
  margin: 26px 0 14px;
}

.doc-sec h3 {
  font-size: 19px;
  margin: 22px 0 10px;
}

.doc-body p,
.doc-sec p,
.doc-sec li {
  color: var(--graphite);
  font-size: 17px;
  line-height: 29px;
}

.doc-sec strong {
  color: var(--ink);
}

/* A wide table on a narrow screen scrolls inside its own box rather than
 * making the whole document scroll sideways. */
.doc-scroll {
  overflow-x: auto;
  margin: 18px 0;
  -webkit-overflow-scrolling: touch;
}

.doc-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 15px;
  line-height: 24px;
}

.doc-table th,
.doc-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--graphite);
}

.doc-table th {
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.mono {
  font-family: var(--text);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.link {
  font-weight: 700;
}

/* An unanswered question is marked, not hidden. A legal page that quietly
 * invented a retention period would be worse than one that admits it is
 * unfinished. */
.tbc {
  background: #fdeee9;
  color: #a62806;
  padding: 1px 7px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.86em;
  white-space: nowrap;
}

.band--ink {
  background: var(--ink);
  color: var(--paper-dim);
  border-radius: 16px;
  padding: 32px 36px;
  margin: 28px 0;
}

.band--ink h2,
.band--ink h3 {
  color: var(--paper);
}

.band--ink p,
.band--ink li {
  color: var(--paper-dim);
}

.site-footer {
  background: var(--ink);
  color: var(--paper-dim);
  padding: 44px var(--gutter);
  display: flex;
  gap: 32px;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 15px;
  line-height: 24px;
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a,
.footer-contact a {
  color: var(--paper-dim);
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--paper);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 10;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

@media (max-width: 900px) {
  .doc-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .doc-contents {
    position: static;
  }

  .doc-title {
    padding: 44px 0 26px;
  }

  .doc-title h1 {
    font-size: 29px;
  }

  .doc-sec h2 {
    font-size: 24px;
  }

  .short-version {
    padding: 24px 22px;
  }

  .site-header {
    gap: 14px;
    padding: 14px 20px;
  }
}
