/* Gud v2 — production styles. */

/* ---------- Subtle animations ---------- */

/* Hero "get gud" orange underline paints in on load */
.hero h1 .underline-orange {
  background-size: 0% 14px;
  animation: paint-underline 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 600ms forwards;
}
@keyframes paint-underline {
  to { background-size: 100% 14px; }
}

/* Ghost numeral parallax — driven by --scroll-y from JS */
.hero .ghost-num,
.chapter .chapter-num {
  will-change: transform;
}
.hero .ghost-num {
  transform: translate3d(0, calc(var(--scroll-y, 0) * 0.15), 0);
}

/* Reveal-on-scroll for chapters and feature blocks */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 .underline-orange { background-size: 100% 14px; animation: none; }
  .hero .ghost-num { transform: none !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Cookie / analytics consent banner ---------- */
.consent {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid #2a2a2a;
  padding: 24px 28px;
  display: none;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  max-width: 720px;
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.consent.is-open {
  display: grid;
  opacity: 1;
  transform: translateY(0);
}
.consent .label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
  display: block;
}
.consent p { margin: 0; }
.consent a {
  color: var(--gud-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.consent .actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.consent button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: background 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease);
}
.consent button:hover { border-color: var(--paper); }
.consent button.is-primary {
  background: var(--gud-orange);
  border-color: var(--gud-orange);
  color: var(--ink);
}
.consent button.is-primary:hover { background: #ff7e1f; border-color: #ff7e1f; }

@media (max-width: 600px) {
  .consent {
    grid-template-columns: 1fr;
    left: 12px; right: 12px; bottom: 12px;
    padding: 20px;
    font-size: 14px;
  }
  .consent .actions { justify-content: flex-end; }
}


*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--fg);
  color: var(--bg);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ---------- Top stripe ---------- */
.stripe {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fg-50);
  border-bottom: 1px solid var(--fg-20);
  flex-wrap: wrap;
  gap: 12px;
}
.stripe .lang { display: inline-flex; gap: 12px; }
.stripe .lang a { transition: color 200ms var(--ease); }
.stripe .lang a:hover { color: var(--fg); }
.stripe .lang a.on { color: var(--fg); }
.stripe .theme-toggle {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-transform: inherit;
}
.stripe .theme-toggle:hover { color: var(--fg); }

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px 0;
  max-width: 1440px;
  margin: 0 auto;
  gap: 24px;
}
.topbar .nav { display: flex; gap: 32px; align-items: center; }
.topbar .nav a {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  position: relative;
}
.topbar .nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  height: 1px;
  width: 0;
  background: currentColor;
  transition: width 200ms var(--ease);
}
.topbar .nav a:hover::after,
.topbar .nav a:focus-visible::after { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 160px;
  overflow: hidden;
}
.hero .ghost-num {
  position: absolute;
  top: 40px;
  right: -2vw;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 44vw;
  line-height: 0.78;
  letter-spacing: -0.05em;
  color: var(--fg-05);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.hero .content {
  position: relative;
  z-index: 1;
  padding: 0 48px;
  max-width: 1440px;
  margin: 0 auto;
}
.hero h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(64px, 12vw, 200px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 14ch;
}
.hero h1 .underline-orange {
  background-image: linear-gradient(var(--gud-orange), var(--gud-orange));
  background-repeat: no-repeat;
  background-position: 0 92%;
  padding: 0 0.05em;
  /* background-size starts at 0% and animates to 100% — see top of file */
}
.hero .standfirst {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.55;
  max-width: 520px;
  margin-top: 56px;
}
.hero .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 96px;
  padding-top: 32px;
  border-top: 1px solid var(--fg-20);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fg-50);
  gap: 64px;
  flex-wrap: wrap;
}

/* ---------- Chapter ---------- */
.chapter {
  position: relative;
  padding: 96px 48px 128px;
  max-width: 1440px;
  margin: 0 auto;
}
.chapter .chapter-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--fg-20);
}
.chapter .chapter-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 200px;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--fg);
}
.chapter .chapter-num .accent { color: var(--gud-orange); }
.chapter .chapter-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0;
}
.chapter .chapter-kicker {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fg-50);
  margin-bottom: 8px;
}

/* ---------- Customers ---------- */
.customers-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 32px;
  align-items: center;
  border-bottom: 1px solid var(--fg-20);
  padding: 0 0 24px;
}
.customers-row .customer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 28px 32px;
}
/* Divider rules live below in the grid-row section. */
.customers-row .customer img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Flatten any logo (regardless of original colors) to a single ink, preserving
     transparency. brightness(0) collapses all visible pixels to black; opacity
     softens it to a grey that matches the page's editorial restraint. */
  filter: brightness(0);
  opacity: 0.6;
  transition: opacity 200ms ease;
}
.customers-row .customer:hover img {
  opacity: 0.9;
}

/* Swiss Athletics is square-ish; let it stand a bit taller so it doesn't read as
   smaller than the wide marks. */
.customers-row .c-swissathletics img { max-height: 112px; }
/* Thömus PNG includes a "swiss made to fascinate" tagline that eats vertical
   space, so the wordmark itself reads small at the shared height. Give it a
   little more room. */
.customers-row .c-thoemus img { max-height: 114px; }
/* SayNode reads slightly large at the shared 80px ceiling — pull it back. */
.customers-row .c-saynode img { max-height: 72px; }
/* PowerBrain uses a very thin geometric typeface and has a 6.6:1 aspect ratio.
   At the default ceiling it reads visually weak next to bolder marks like
   Thömus and Swiss Athletics. Bump its physical height so the perceived
   weight matches. */
.customers-row .c-powerbrain img { max-height: 120px; }
/* chainstaff's gradient bean mark collapses to a featureless silhouette under
   brightness(0), so we ship a wordmark-only crop of the logo. */
.customers-row .c-chainstaff img { max-height: 96px; }

/* Dark mode: flip black silhouette to white. */
html[data-theme="dark"] .customers-row .customer img {
  filter: brightness(0) invert(1);
  opacity: 0.6;
}
html[data-theme="dark"] .customers-row .customer:hover img { opacity: 0.9; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .customers-row .customer img {
    filter: brightness(0) invert(1);
    opacity: 0.6;
  }
  html:not([data-theme="light"]) .customers-row .customer:hover img { opacity: 0.9; }
}

/* ---------- Project list ---------- */
.projects-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.project-row {
  display: grid;
  grid-template-columns: 80px 96px 1fr 200px 80px;
  align-items: center;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--fg-20);
  position: relative;
  transition: background 200ms var(--ease);
}
.project-row:last-child { border-bottom: 1px solid var(--fg); }
.project-row.is-link { cursor: pointer; }
.project-row.is-link:hover { background: var(--fg-05); }
.project-row .num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg-50);
}
.project-row .name {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.025em;
  display: inline-flex;
  align-items: baseline;
}
.project-row .name .thinpart { font-weight: 300; letter-spacing: -0.03em; }
.project-row .name .thickpart { font-weight: 800; letter-spacing: -0.025em; }
.project-row .name.solo { font-weight: 800; }
.project-row .name.thin { font-weight: 300; font-style: italic; color: var(--fg-50); }
.project-row .desc {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--fg-50);
  line-height: 1.5;
}
.project-row .body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.project-row .meta {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fg-50);
}
.project-row .arrow {
  font-family: var(--font-display);
  font-size: 36px;
  text-align: right;
  color: var(--fg-50);
  transition: transform 200ms var(--ease), color 200ms var(--ease);
}
.project-row.is-link:hover .arrow,
.project-row.is-link:focus-visible .arrow {
  color: var(--gud-orange);
  transform: translate(4px, -4px);
}
.project-row .icon-cell { display: flex; align-items: center; }

/* ---------- Thoughts feature ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--fg-20);
  text-decoration: none;
  color: inherit;
}
.feature h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 64px;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 16px 0 24px;
}
.feature .lede {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.6;
}
.feature .feature-aside {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--fg-50);
  border-left: 2px solid var(--gud-orange);
  padding-left: 24px;
  align-self: end;
}
.feature .kw-meta {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fg-50);
}

.thought-list {
  margin-top: 48px;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.thought-row {
  display: grid;
  grid-template-columns: 80px 1fr 200px;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--fg-20);
  align-items: baseline;
  text-decoration: none;
  color: inherit;
}
.thought-row .num,
.thought-row .meta {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fg-50);
}
.thought-row .meta { text-align: right; }
.thought-row .title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.thought-row.empty .title {
  font-weight: 400;
  font-style: italic;
  color: var(--fg-50);
}

/* ---------- Work-with-us ---------- */
.work {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 160px 48px 128px;
  overflow: hidden;
}
html[data-theme="dark"] .work {
  background: var(--paper);
  color: var(--ink);
}
.work .diag {
  position: absolute;
  top: -10%;
  left: -50%;
  width: 200%;
  height: 220px;
  background: var(--gud-orange);
  transform: translateY(-100%) skewY(-12deg);
}
.work-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.work .kicker {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
}
html[data-theme="dark"] .work .kicker { color: rgba(0,0,0,0.55); }
.work .work-h {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(40px, 7vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 48px;
  max-width: 14ch;
}
.work .work-h .swap { font-style: normal; font-weight: 300; }

.work-lead {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: rgba(255,255,255,0.7);
  max-width: 56ch;
  margin: -16px 0 40px;
}
html[data-theme="dark"] .work-lead { color: rgba(0,0,0,0.65); }

.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 96px;
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
html[data-theme="dark"] .services {
  border-top-color: rgba(0,0,0,0.18);
  border-bottom-color: rgba(0,0,0,0.18);
}
.service-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.slash-bullet {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
}
.slash-bullet i {
  display: inline-block;
  width: 12px;
  height: 28px;
  background: var(--gud-orange);
  transform: skewX(-24deg);
  border-radius: 1px;
}
.slash-bullet.double i { width: 6px; }
.service-body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  max-width: 460px;
}

/* form */
.form-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 48px);
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.form-sub {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 64px;
}
html[data-theme="dark"] .form-sub { color: rgba(0,0,0,0.6); }

.fieldgroup {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.25);
}
.fieldgroup:last-of-type { border-bottom: 1px solid rgba(255,255,255,0.25); }
html[data-theme="dark"] .fieldgroup { border-top-color: rgba(0,0,0,0.25); }
html[data-theme="dark"] .fieldgroup:last-of-type { border-bottom-color: rgba(0,0,0,0.25); }
.fieldgroup .num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.015em;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: baseline;
  gap: 16px;
}
html[data-theme="dark"] .fieldgroup .num { color: rgba(0,0,0,0.45); }
.fieldgroup .num .label {
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.field-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding: 16px 0;
  font-family: var(--font-body);
  font-size: 28px;
  color: var(--paper);
  outline: none;
  resize: none;
  transition: border-color 200ms var(--ease);
}
html[data-theme="dark"] .field-input {
  border-bottom-color: rgba(0,0,0,0.4);
  color: var(--ink);
}
.field-input:focus {
  border-bottom-color: var(--gud-orange);
  border-bottom-width: 2px;
  padding-bottom: 15px;
}
.field-input::placeholder {
  color: rgba(255,255,255,0.25);
  font-style: italic;
}
html[data-theme="dark"] .field-input::placeholder { color: rgba(0,0,0,0.3); }
.field-input:user-invalid,
.field-input.is-error {
  border-bottom-color: var(--move-red);
  border-bottom-width: 2px;
}
.field-error {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--move-red);
  margin-top: 8px;
  display: none;
}
.field-input.is-error + .field-error { display: block; }

.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  gap: 32px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 28px 40px;
  background: var(--paper);
  color: var(--ink);
  border: none;
  border-radius: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 32px;
  letter-spacing: -0.015em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 200ms var(--ease);
}
html[data-theme="dark"] .btn { background: var(--ink); color: var(--paper); }
.btn .lbl { position: relative; z-index: 2; }
.btn .arrow { position: relative; z-index: 2; font-size: 24px; transition: transform 200ms var(--ease); }
.btn .swipe {
  position: absolute;
  inset: -10% -10%;
  background: var(--gud-orange);
  transform: translateX(-110%) skewX(-24deg);
  transition: transform 350ms var(--ease);
  z-index: 1;
}
.btn:hover .swipe,
.btn:focus-visible .swipe { transform: translateX(0) skewX(-24deg); }
.btn:hover .arrow,
.btn:focus-visible .arrow { transform: translate(8px, -8px); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.submit-row .promise {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  text-align: right;
  max-width: 440px;
  text-wrap: balance;
}
html[data-theme="dark"] .submit-row .promise { color: rgba(0,0,0,0.6); }

.form-status {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 24px;
  display: none;
  align-items: center;
  gap: 8px;
}
.form-status.is-visible { display: inline-flex; }
.form-status::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--work-green);
  display: inline-block;
}
.form-status.is-error { color: var(--move-red); }
.form-status.is-error::before { background: var(--move-red); }
html[data-theme="dark"] .form-status { color: rgba(0,0,0,0.7); }

/* ---------- Colophon ---------- */
.colophon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 48px 48px 32px;
  max-width: 1440px;
  margin: 0 auto;
  border-top: 1px solid var(--fg-20);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--fg-50);
}
.colophon .mark { display: inline-flex; align-items: center; color: var(--fg); }
.colophon .links { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.colophon a { color: var(--fg-50); }
.colophon a:hover { color: var(--gud-orange); }

/* ---------- Essay reader ---------- */
.essay {
  padding: 96px 48px 128px;
  max-width: 1440px;
  margin: 0 auto;
}
.essay .e-head {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 48px;
  align-items: end;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--fg-20);
  margin-bottom: 64px;
}
.essay .e-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 200px;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--fg);
}
.essay .e-num .accent { color: var(--gud-orange); }
.essay h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0;
}
.essay .e-meta {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fg-50);
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.essay .e-body-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 680px) 1fr;
  gap: 48px;
  align-items: start;
}
.essay .e-marginalia {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fg-50);
  position: sticky;
  top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.essay .e-marginalia .rotated {
  margin-top: 16px;
  font-size: 13px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  letter-spacing: 2px;
}
.essay .e-body {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.7;
}
.essay .e-body .standfirst {
  font-style: italic;
  font-size: 26px;
  line-height: 1.4;
  color: var(--fg-50);
  margin-bottom: 48px;
}
.essay .e-body p + p { margin-top: 24px; }
.essay .e-body p.dropcap::first-letter {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 6em;
  line-height: 0.85;
  float: left;
  margin: 0.04em 0.10em 0 -0.04em;
  color: var(--gud-orange);
}
.essay .e-body h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 36px;
  letter-spacing: -0.015em;
  margin: 56px 0 16px;
  line-height: 1.1;
}
.essay .e-body strong { font-weight: 600; }
.essay .e-body blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  border-left: 3px solid var(--gud-orange);
  padding-left: 24px;
  margin: 48px 0;
  color: var(--fg);
}
.essay .e-body code {
  font-family: var(--font-mono);
  font-size: 16px;
  background: var(--fg-05);
  padding: 2px 6px;
}
.essay .e-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.essay .e-side {
  position: sticky;
  top: 48px;
  display: flex; flex-direction: column; gap: 24px;
}
.essay .e-side .pull-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fg-50);
}
.essay .e-side .pull {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--gud-orange);
}
.essay .contact-card {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.essay .contact-card .email {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gud-orange);
  display: inline-block;
  margin-top: 16px;
}
.essay .contact-card .uid {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fg-50);
  display: block;
  margin-top: 12px;
}
.essay .e-foot {
  display: grid;
  grid-template-columns: 200px minmax(0, 680px) 1fr;
  gap: 48px;
  margin-top: 96px;
  padding-top: 32px;
  border-top: 1px solid var(--fg-20);
}
.essay .e-foot a, .essay .e-foot span {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fg-50);
}
.essay .e-foot a:hover { color: var(--gud-orange); }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .stripe { padding: 14px 24px; font-size: 10px; }
  .topbar { padding: 16px 24px 0; }
  .topbar .nav { gap: 16px; }
  .container { padding: 0 24px; }

  .hero { padding: 48px 24px 96px; }
  .hero .content { padding: 0; }
  .hero h1 { font-size: clamp(48px, 14vw, 72px); }
  .hero .ghost-num { font-size: 92vw; right: -10vw; top: 16px; }
  .hero .standfirst { font-size: 17px; margin-top: 32px; }
  .hero .meta-row {
    margin-top: 48px;
    padding-top: 16px;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .chapter { padding: 64px 24px 80px; }
  .chapter .chapter-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
  }
  .chapter .chapter-num { font-size: 96px; }
  .chapter .chapter-title { font-size: 24px; }

  .customers-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
  }
  .customers-row .customer { min-height: 90px; padding: 16px 8px; }
  /* Base logo height for mobile. Per-brand overrides below keep the same
     proportions as desktop (everything ~55% of desktop max-heights), so they
     all scale together instead of some logos snapping. */
  .customers-row .customer img { max-height: 44px; }
  .customers-row .c-thoemus img { max-height: 62px; }
  .customers-row .c-swissathletics img { max-height: 62px; }
  .customers-row .c-chainstaff img { max-height: 52px; }
  .customers-row .c-powerbrain img { max-height: 66px; }
  .customers-row .c-saynode img { max-height: 40px; }

  .project-row {
    grid-template-columns: 48px 1fr 32px;
    gap: 16px;
    padding: 24px 0;
  }
  .project-row .num { font-size: 28px; }
  .project-row .name { font-size: 26px; }
  .project-row .icon-cell { display: none; }
  .project-row .desc-cell { display: none; }
  .project-row .body { gap: 8px; }
  .project-row .body .desc { font-size: 14px; }
  .project-row .arrow { font-size: 22px; }
  .project-row .meta-cell { display: none; }

  .feature {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 32px;
  }
  .feature h2 { font-size: 32px; }
  .feature .lede { font-size: 16px; }
  .feature .feature-aside { font-size: 16px; padding-left: 16px; }

  .thought-row {
    grid-template-columns: 60px 1fr;
    gap: 16px;
    padding: 16px 0;
  }
  .thought-row .meta { display: none; }
  .thought-row .title { font-size: 18px; }

  .work { padding: 80px 24px 64px; }
  .work .work-h { max-width: none; margin-bottom: 32px; }
  .services {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0;
    margin-bottom: 48px;
  }
  .service-name { font-size: 24px; }
  .service-body { font-size: 16px; }
  .form-h { font-size: 28px; }
  .fieldgroup {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }
  .fieldgroup .num { font-size: 20px; }
  .field-input { font-size: 18px; padding: 12px 0; }
  .submit-row { flex-direction: column; align-items: stretch; gap: 16px; }
  .btn { font-size: 22px; padding: 20px 24px; justify-content: space-between; }
  .submit-row .promise { font-size: 14px; max-width: none; text-align: left; }

  .colophon {
    gap: 16px;
    padding: 32px 24px 24px;
  }

  .essay { padding: 48px 24px 80px; }
  .essay .e-head {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 32px;
    margin-bottom: 32px;
  }
  .essay .e-num { font-size: 96px; }
  .essay .e-meta { text-align: left; }
  .essay .e-body-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .essay .e-marginalia { position: static; }
  .essay .e-marginalia .rotated { display: none; }
  .essay .e-side { position: static; }
  .essay .e-body { font-size: 17px; }
  .essay .e-body .standfirst { font-size: 20px; margin-bottom: 32px; }
  .essay .e-body h2 { font-size: 26px; }
  .essay .e-body blockquote { font-size: 22px; margin: 32px 0; }
  .essay .e-foot {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: left;
  }
  .essay .e-foot * { text-align: left !important; }
}
