/* 803 Media — hand-written, one file.
 *
 * Direction: editorial noir. The ground is indigo-black rather than neutral
 * black, because indigo is South Carolina's own pigment and it keeps the page
 * from reading as generic dark-mode; everything on it is bone, and indigo is
 * the only chromatic accent on the site. Type does the rest: Fraunces set very
 * large and very light for display, Archivo for reading, JetBrains Mono for
 * anything that is data rather than prose.
 *
 * The signature is the hero: it is `position: sticky`, so the rest of the page
 * rises over it, and the italic clause of the headline tightens and fades as
 * you try to leave — the promise in the copy, performed. It degrades to a
 * static hero with no JavaScript and under prefers-reduced-motion.
 */

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

:root {
  --ink: #0a0b11;
  --ink2: #10111c;
  --ink3: #171826;
  --bone: #efe9dc;
  --muted: #8e8c99;
  --indigo: #4b4fe0;
  --dye: #23258f;
  --line: rgb(239 233 220 / 13%);
  --line-strong: rgb(239 233 220 / 26%);

  --display: "Fraunces", "Georgia", "Times New Roman", serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --gutter: clamp(20px, 5vw, 96px);
  --rhythm: clamp(76px, 11vw, 190px);
  --measure: 62ch;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

/* ---------------------------------------------------------------- base */

html {
  scroll-behavior: smooth;
  /* The header is fixed, so an anchor would otherwise land under it. */
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
}

p {
  margin: 0;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

::selection {
  background: var(--indigo);
  color: var(--bone);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 14px 20px;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
}

.skip:focus {
  left: 0;
}

/* Film grain. Fixed so it does not travel with the content, and blended rather
 * than laid on top, so it darkens the bone type instead of hazing it. */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 6s steps(6) infinite;
}

@keyframes grain {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-3%, 2%);
  }
  40% {
    transform: translate(2%, -3%);
  }
  60% {
    transform: translate(-2%, -2%);
  }
  80% {
    transform: translate(3%, 1%);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* ---------------------------------------------------------------- type */

.display {
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
  font-size: clamp(2.2rem, 6.2vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.display i,
.display em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
  color: var(--indigo);
}

.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.label a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.label a:hover {
  color: var(--bone);
}

.lede {
  max-width: 54ch;
  font-size: clamp(1rem, 1.35vw, 1.19rem);
  line-height: 1.55;
  color: rgb(239 233 220 / 74%);
}

/* ---------------------------------------------------------------- controls */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.4s var(--ease),
    color 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.button::after {
  content: "→";
  transition: transform 0.4s var(--ease);
}

.button:hover {
  background: var(--indigo);
  color: var(--bone);
  transform: translateY(-2px);
}

.button:hover::after {
  transform: translateX(4px);
}

.button.small {
  padding: 11px 19px;
  font-size: 11px;
}

.textlink {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition:
    color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.textlink:hover {
  color: var(--indigo);
  border-color: var(--indigo);
}

/* Reveal on scroll. The `js` class is added by the script itself, so a page
 * without JavaScript never hides anything. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.js .reveal.shown {
  opacity: 1;
  transform: none;
}

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

.announce {
  position: relative;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  text-align: center;
  padding: 11px var(--gutter);
}

.announce p {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.announce a {
  color: var(--bone);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  margin-left: 10px;
}

.announce a:hover {
  color: var(--indigo);
  border-color: var(--indigo);
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--indigo);
  vertical-align: 1px;
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  background: rgb(10 11 17 / 72%);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.5s var(--ease);
}

.header.stuck {
  border-bottom-color: var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  line-height: 1;
}

.wordmarknum {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "opsz" 40, "WONK" 1;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.wordmarkword {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: clamp(18px, 2.4vw, 38px);
}

.nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.nav a:hover {
  color: var(--bone);
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: clamp(40px, 7vh, 90px) var(--gutter) clamp(56px, 8vh, 100px);
  overflow: hidden;
}

/* A slow indigo bloom behind the type. The only place on the site where the
 * accent is used as light rather than as ink. */
.herowash {
  position: absolute;
  inset: -30% -10% auto;
  height: 130%;
  background: radial-gradient(60% 55% at 22% 40%, rgb(75 79 224 / 24%), transparent 68%);
  filter: blur(30px);
  animation: drift 24s ease-in-out infinite alternate;
}

@keyframes drift {
  to {
    transform: translate3d(9%, 5%, 0) scale(1.12);
  }
}

.heroinner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 4vh, 54px);
  /* Set by the script as the hero is covered; 0 with no JavaScript. */
  opacity: calc(1 - var(--leave, 0) * 0.72);
  transform: scale(calc(1 - var(--leave, 0) * 0.035));
  transform-origin: 0 50%;
  will-change: opacity, transform;
}

.heroKicker {
  max-width: 42ch;
}

.herohead {
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
  font-size: clamp(2.9rem, 11.4vw, 11.2rem);
  line-height: 0.83;
  letter-spacing: -0.05em;
  /* Optical alignment: at this size the cap edge sits inside the box, so the
   * line is pulled back to sit flush with the labels above it. */
  margin-left: -0.045em;
}

/* The clause that carries the promise. It tightens and dims as the page tries
 * to leave it behind — which is the joke, and the reason the hero is sticky. */
.herohead i,
.herohead em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 1;
  color: var(--indigo);
  letter-spacing: calc(var(--leave, 0) * -0.055em);
  opacity: calc(1 - var(--leave, 0) * 0.45);
  transition: none;
}

.herofoot {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 46ch;
}

.heroactions {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  flex-wrap: wrap;
}

.heronote {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.scrollcue {
  position: relative;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 46px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: calc(1 - var(--leave, 0) * 2);
}

.scrollcue::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1px;
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--line-strong), transparent);
  animation: fall 2.4s var(--ease) infinite;
}

@keyframes fall {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  55% {
    transform: scaleY(1);
    transform-origin: top;
  }
  56% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* The panel that rises over the pinned hero. Its own background is what hides
 * the hero, so it must be opaque. */
.sheet {
  position: relative;
  z-index: 2;
  background: var(--ink);
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------------- marquee */

.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marqueetrack {
  display: flex;
  width: max-content;
  gap: 46px;
  animation: slide 46s linear infinite;
}

.marqueeitem {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.marqueeitem::after {
  content: "◆";
  margin-left: 46px;
  color: var(--indigo);
  font-size: 8px;
  vertical-align: 3px;
}

@keyframes slide {
  to {
    /* The list is rendered twice, so half a track is one seamless loop. */
    transform: translateX(calc(-50% - 23px));
  }
}

/* ---------------------------------------------------------------- proof */

.proof {
  padding: var(--rhythm) var(--gutter);
  border-bottom: 1px solid var(--line);
}

.proofgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(30px, 4vw, 64px);
  margin-top: clamp(32px, 4vw, 58px);
}

.proofitem {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.prooffigure {
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "WONK" 1;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
}

.prooflabel {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.proofnote {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------------------------------------------------------------- sections */

.sectionhead {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 26ch;
}

.sectionhead .lede {
  max-width: 46ch;
}

.services,
.work,
.words,
.fit {
  padding: var(--rhythm) var(--gutter);
  border-bottom: 1px solid var(--line);
}

/* ---------------------------------------------------------------- services */

.servicelist {
  margin-top: clamp(44px, 6vw, 86px);
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 72px);
  padding: clamp(34px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.5s var(--ease);
}

.service:hover {
  background: linear-gradient(90deg, rgb(75 79 224 / 7%), transparent 60%);
}

.servicehead {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.servicename {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 72, "SOFT" 20, "WONK" 1;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.servicesummary {
  font-size: 15px;
  color: rgb(239 233 220 / 66%);
  max-width: 34ch;
}

.servicebody {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: var(--measure);
}

.servicebody > p {
  color: rgb(239 233 220 / 76%);
}

.deliverables {
  display: grid;
  gap: 9px;
}

.deliverables li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: rgb(239 233 220 / 72%);
}

.deliverables li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 11px;
  height: 1px;
  background: var(--indigo);
}

.pricenote {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------------------------------------------------------- process */

/* The one numbered thing on the site, because it is the one thing that is
 * genuinely a sequence. */
.process {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(34px, 5vw, 90px);
  padding: var(--rhythm) var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--ink2);
}

.processhead {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: start;
  position: sticky;
  top: 120px;
}

.steps {
  display: grid;
  gap: clamp(26px, 3vw, 44px);
}

.step {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: clamp(14px, 2vw, 30px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.stepnumber {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--indigo);
}

.steptitle {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 60, "WONK" 1;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.step p {
  color: rgb(239 233 220 / 72%);
  max-width: 54ch;
}

/* ---------------------------------------------------------------- work */

.studies {
  margin-top: clamp(44px, 6vw, 86px);
  border-top: 1px solid var(--line);
}

.study {
  border-bottom: 1px solid var(--line);
}

.study > a {
  display: grid;
  grid-template-columns: clamp(150px, 18vw, 260px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 3.4vw, 58px);
  padding: clamp(24px, 2.6vw, 40px) 0;
  text-decoration: none;
  transition: transform 0.5s var(--ease);
}

.study > a:hover {
  transform: translateX(9px);
}

.studyface {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--ink3);
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.6s var(--ease);
}

.study > a:hover .studyface {
  filter: grayscale(0.15) contrast(1);
}

.studyface img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Four tints, cycled by position. Values of the same indigo-and-bone system
 * rather than four different hues — most local businesses have no usable
 * photography when they hire someone to fix that, so these carry the section. */
.tint-dye .studyface {
  background: linear-gradient(150deg, var(--dye), #0d0e1c);
}

.tint-smoke .studyface {
  background: linear-gradient(150deg, #3a3b4d, #14151f);
}

.tint-bone .studyface {
  background: linear-gradient(150deg, #d8d1c2, #6f6a60);
}

.tint-ink .studyface {
  background: linear-gradient(150deg, #1d1e2e, #08080e);
}

.studyinitials {
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "WONK" 1;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  letter-spacing: -0.05em;
  color: rgb(239 233 220 / 62%);
  mix-blend-mode: overlay;
}

.tint-bone .studyinitials {
  color: rgb(10 11 17 / 55%);
}

.studybody {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.studybody .label span {
  color: var(--line-strong);
  margin: 0 4px;
}

.studytitle {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 72, "SOFT" 20, "WONK" 1;
  font-size: clamp(1.5rem, 2.7vw, 2.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 20ch;
}

.studysummary {
  font-size: 15px;
  color: rgb(239 233 220 / 62%);
  max-width: 52ch;
}

.studymetric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  padding-left: clamp(10px, 2vw, 30px);
  border-left: 1px solid var(--line);
}

.metricvalue {
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "WONK" 1;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--bone);
}

.metriclabel {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 16ch;
  margin-left: auto;
}

.studygo {
  display: none;
}

/* ---------------------------------------------------------------- quotes */

.words {
  background: var(--ink2);
}

.quotes {
  margin-top: clamp(44px, 6vw, 80px);
  display: grid;
  gap: clamp(30px, 4vw, 56px);
}

.quote {
  padding-top: clamp(26px, 3vw, 40px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.32fr);
  gap: clamp(20px, 3vw, 50px);
  align-items: start;
}

.quote blockquote {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: "opsz" 96, "SOFT" 30, "WONK" 1;
  font-size: clamp(1.35rem, 2.5vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.028em;
  text-wrap: pretty;
}

.quote blockquote::before {
  content: "“";
  color: var(--indigo);
}

.quote blockquote::after {
  content: "”";
  color: var(--indigo);
}

.quoteby {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 8px;
}

.quotename {
  font-size: 15px;
}

/* ---------------------------------------------------------------- about */

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(30px, 5vw, 90px);
  padding: var(--rhythm) var(--gutter);
  border-bottom: 1px solid var(--line);
}

.aboutportrait {
  position: sticky;
  top: 120px;
  align-self: start;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(160deg, var(--dye), #0b0c14 72%);
}

.aboutportrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
}

.portraitmark {
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "WONK" 1;
  font-size: clamp(4rem, 9vw, 8rem);
  letter-spacing: -0.06em;
  color: rgb(239 233 220 / 22%);
}

.aboutcopy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: var(--measure);
}

.aboutcopy p {
  color: rgb(239 233 220 / 76%);
}

.aboutcopy .display {
  margin-bottom: 8px;
}

.credentials {
  display: grid;
  gap: 11px;
  margin-top: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.credentials li {
  position: relative;
  padding-left: 26px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: rgb(239 233 220 / 70%);
}

.credentials li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 8px;
  color: var(--indigo);
}

.signature {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
}

.signaturename {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "opsz" 48, "SOFT" 60, "WONK" 1;
  font-size: 21px;
  letter-spacing: -0.02em;
}

/* ---------------------------------------------------------------- fit */

.fitcols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 3vw, 56px);
  margin-top: clamp(40px, 5vw, 72px);
}

.fitcol {
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid var(--line);
}

.fitcol ul {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.fitcol li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.5;
  color: rgb(239 233 220 / 76%);
}

.fitcol li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 13px;
}

.fitcol.yes {
  background: linear-gradient(160deg, rgb(75 79 224 / 9%), transparent 65%);
  border-color: rgb(75 79 224 / 34%);
}

.fitcol.yes li::before {
  content: "+";
  color: var(--indigo);
}

.fitcol.no li::before {
  content: "−";
  color: var(--muted);
}

/* ---------------------------------------------------------------- enquiry */

.start {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 90px);
  padding: var(--rhythm) var(--gutter);
  background: var(--ink2);
  border-bottom: 1px solid var(--line);
}

.startcopy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: start;
  position: sticky;
  top: 120px;
}

.startdirect {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.startdirect dd {
  margin-top: 7px;
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 48, "WONK" 1;
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  letter-spacing: -0.03em;
}

.startdirect a {
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.startdirect a:hover {
  color: var(--indigo);
  border-color: var(--indigo);
}

.startnote {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 30px);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.field.wide {
  grid-column: 1 / -1;
}

.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--bone);
  font-family: var(--body);
  font-size: 16px;
  transition: border-color 0.35s var(--ease);
  appearance: none;
}

.field textarea {
  resize: vertical;
  line-height: 1.5;
}

.field select {
  cursor: pointer;
}

/* The native menu paints on the OS surface, so its options need a background
 * of their own or they render bone-on-bone. */
.field select option {
  background: var(--ink2);
  color: var(--bone);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--indigo);
}

.form .button {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 6px;
}

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formerror {
  margin-bottom: 22px;
  padding: 14px 18px;
  border: 1px solid rgb(75 79 224 / 40%);
  font-size: 14px;
  color: rgb(239 233 220 / 84%);
}

.sent {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid rgb(75 79 224 / 40%);
  background: linear-gradient(160deg, rgb(75 79 224 / 12%), transparent 70%);
}

.sent p {
  color: rgb(239 233 220 / 76%);
  max-width: 42ch;
}

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

.footer {
  padding: clamp(56px, 7vw, 96px) var(--gutter) 34px;
  overflow: hidden;
}

.footermark {
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "WONK" 1;
  font-size: clamp(6rem, 26vw, 24rem);
  line-height: 0.72;
  letter-spacing: -0.06em;
  color: rgb(239 233 220 / 6%);
  margin-bottom: clamp(30px, 4vw, 56px);
  user-select: none;
}

.footercols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(26px, 3vw, 48px);
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.footercol {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footercol .label {
  margin-bottom: 6px;
}

.footerlink {
  font-size: 15px;
  text-decoration: none;
  color: rgb(239 233 220 / 74%);
  width: max-content;
  transition: color 0.3s var(--ease);
}

.footerlink:hover {
  color: var(--indigo);
}

.footerbase {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(40px, 5vw, 70px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------------------------------------------------------------- study page */

.studymain {
  padding-top: clamp(50px, 8vw, 110px);
}

.studyhero {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 0 var(--gutter) clamp(40px, 5vw, 70px);
  max-width: 1100px;
}

.studyhead {
  font-size: clamp(2.4rem, 7vw, 6rem);
  line-height: 0.88;
  max-width: 16ch;
}

.studyindustry {
  margin-top: 6px;
}

.studycover {
  margin: 0 0 clamp(40px, 5vw, 70px);
  padding: 0 var(--gutter);
}

.studycover img {
  width: 100%;
  max-height: 62vh;
  object-fit: cover;
  filter: grayscale(0.7) contrast(1.05);
}

.studynumbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(26px, 3vw, 54px);
  padding: clamp(40px, 5vw, 66px) var(--gutter);
  border-block: 1px solid var(--line);
  background: var(--ink2);
}

.studynumbers > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.studynumbers dd {
  color: rgb(239 233 220 / 70%);
}

.story {
  display: grid;
  gap: clamp(34px, 4vw, 60px);
  padding: var(--rhythm) var(--gutter);
}

.storypart {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 1.55fr);
  gap: clamp(18px, 3vw, 60px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.prose {
  display: grid;
  gap: 18px;
  max-width: var(--measure);
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  color: rgb(239 233 220 / 78%);
}

.studyquote {
  margin: 0;
  padding: clamp(40px, 6vw, 90px) var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--ink2);
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: "opsz" 120, "SOFT" 40, "WONK" 1;
  font-size: clamp(1.5rem, 3.4vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.032em;
  text-wrap: pretty;
}

.studyquote footer {
  margin-top: 26px;
}

.more {
  padding: var(--rhythm) var(--gutter) 0;
}

.studycta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  padding: var(--rhythm) var(--gutter);
}

/* ---------------------------------------------------------------- narrow */

@media (width <= 900px) {
  .service,
  .process,
  .about,
  .start,
  .quote,
  .storypart {
    grid-template-columns: minmax(0, 1fr);
  }

  .processhead,
  .startcopy,
  .aboutportrait {
    position: static;
  }

  .aboutportrait {
    aspect-ratio: 16 / 10;
  }

  .study > a {
    grid-template-columns: clamp(110px, 26vw, 170px) minmax(0, 1fr);
    grid-template-areas:
      "face body"
      "metric metric";
    align-items: start;
  }

  .studyface {
    grid-area: face;
  }

  .studybody {
    grid-area: body;
  }

  .studymetric {
    grid-area: metric;
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
    text-align: left;
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .metriclabel {
    margin-left: 0;
  }

  .quote blockquote {
    font-size: clamp(1.3rem, 4.4vw, 1.7rem);
  }
}

@media (width <= 640px) {
  .nav {
    display: none;
  }

  .form {
    grid-template-columns: minmax(0, 1fr);
  }

  .header {
    padding-block: 14px;
  }

  .announce a {
    display: block;
    margin: 4px 0 0;
  }
}

/* ---------------------------------------------------------------- motion */

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

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

  /* The sticky hero is motion in itself, so it stops being sticky too. */
  .hero {
    position: relative;
  }

  .heroinner {
    opacity: 1;
    transform: none;
  }

  .herohead i,
  .herohead em {
    letter-spacing: 0;
    opacity: 1;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
