/* ==========================================================================
   SolveStone front end
   Plain CSS, no build step. Sections: tokens, base, type, buttons, dark
   surfaces, header, hero, line art, sections, practices, projects, components,
   forms, call to action, footer, motion, small screens.
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --bg-soft: #F2F4F8;
  --night: #0A0A0A;
  --night-2: #161616;
  --ink: #111111;
  --ink-soft: #555555;
  --ink-faint: #808080;
  --line: rgba(17, 17, 17, 0.1);
  --line-strong: rgba(17, 17, 17, 0.2);
  --red: #EB1B23;
  --red-ink: #C4151C;
  --red-bright: #FF4D55;
  --red-soft: #FF7077;
  --grad: linear-gradient(100deg, #FF4D55 0%, #EB1B23 100%);
  --accent-rgb: 235, 27, 35;
  --accent2-rgb: 255, 77, 85;
  --accent-pale: #FF8A90;
  --on-accent: #FFFFFF;
  --on-dark: #FFFFFF;
  --on-dark-soft: rgba(255, 255, 255, 0.68);
  --line-dark: rgba(255, 255, 255, 0.14);

  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Bengali", sans-serif;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --radius: 10px;
  --radius-lg: 22px;
  --shadow: 0 30px 60px -32px rgba(17, 17, 17, 0.28);
  --header-height: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  -webkit-text-size-adjust: 100%;
  background: var(--night);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

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

::selection {
  background: var(--red);
  color: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

/* Type
   ========================================================================== */

.display,
.section-title,
.division-title,
.aside-title,
.form-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
}

.display-xl {
  font-size: clamp(2.875rem, 6.8vw, 5.75rem);
  line-height: 0.98;
}

.display-sm {
  font-size: clamp(2.125rem, 4.4vw, 3.5rem);
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
}

/* Highlighted words: wrap them in *stars* in the admin panel */
.display em,
.section-title em,
.aside-title em,
.clients-label em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--red);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
  color: var(--red-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  max-width: 38rem;
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
}

/* Buttons and links
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3.375rem;
  padding: 0.75rem 1.625rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn .icon {
  transition: transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover .icon {
  transform: translateX(4px);
}

.btn-grad {
  background: var(--grad);
  color: var(--on-accent);
  box-shadow: 0 14px 30px -12px rgba(var(--accent-rgb), 0.7);
}

.btn-grad:hover {
  box-shadow: 0 20px 40px -12px rgba(var(--accent2-rgb), 0.75);
}

.btn-ink {
  background: var(--ink);
  color: var(--on-dark);
}

.btn-ink:hover {
  background: var(--red);
}

.btn-ghost {
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-dark);
}

.btn-ghost-light {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.05);
  color: var(--on-dark);
}

.btn-ghost-light:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.link-arrow .icon {
  padding: 0.3em;
  width: 1.9em;
  height: 1.9em;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform 0.3s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}

.link-arrow:hover {
  color: var(--red);
}

.link-arrow:hover .icon {
  transform: translateX(4px);
  background: var(--red);
  border-color: var(--red);
  color: var(--on-accent);
}

/* Dark surfaces: hero areas share this backdrop
   ========================================================================== */

.dark-surface {
  position: relative;
  isolation: isolate;
  background: var(--night);
  color: var(--on-dark);
  overflow: hidden;
}

/* Fine grid that fades out towards the edges */
.dark-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 60% 30%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 75% at 60% 30%, #000 20%, transparent 78%);
}

.dark-surface .eyebrow {
  color: var(--red-soft);
}

.dark-surface .lead {
  color: var(--on-dark-soft);
}

/* Soft colour that drifts slowly behind the content */
.glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  will-change: transform;
}

.glow--a {
  top: -18rem;
  right: -10rem;
  width: 44rem;
  height: 44rem;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.5), transparent 65%);
  animation: drift-a 18s ease-in-out infinite alternate;
}

.glow--b {
  bottom: -22rem;
  left: -14rem;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle, rgba(var(--accent2-rgb), 0.3), transparent 65%);
  animation: drift-b 22s ease-in-out infinite alternate;
}

@keyframes drift-a {
  to { transform: translate(-9rem, 7rem) scale(1.15); }
}

@keyframes drift-b {
  to { transform: translate(10rem, -6rem) scale(1.2); }
}

/* Header
   ========================================================================== */

/* The header lies over the top of each page's dark hero (every page opens with one),
   so the hero's backdrop runs behind it. The negative margin takes the header out of
   the page's height; the heroes add the same space back as padding. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  margin-bottom: calc(-1 * var(--header-height) - 1px);
  background: transparent;
  border-bottom: 1px solid transparent;
  color: var(--on-dark);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

/* Once the page scrolls it gets its own surface, with content showing through slightly */
.site-header.is-stuck {
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.brand img {
  width: auto;
  height: 52px;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: none;
}

.nav-toggle-close {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link {
  position: relative;
  padding: 0.625rem 0.875rem;
  color: var(--on-dark-soft);
  font-size: 0.9688rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.875rem;
  right: 0.875rem;
  bottom: 0.25rem;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: -0.625rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--on-dark-soft);
}

.menu-toggle .icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.25s var(--ease);
}

.nav-menu {
  position: absolute;
  top: 100%;
  left: -1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(15rem, 1fr));
  gap: 2rem;
  padding: 1.75rem;
  background: var(--night-2);
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.has-menu:hover .nav-menu,
.has-menu:focus-within .nav-menu,
.has-menu.is-open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.has-menu:hover .menu-toggle .icon,
.has-menu.is-open .menu-toggle .icon {
  transform: rotate(180deg);
}

.nav-menu-label {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-weight: 700;
}

.nav-menu-label span {
  display: block;
  color: var(--red-soft);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-menu a {
  display: block;
  padding: 0.375rem 0;
  color: var(--on-dark-soft);
  transition: color 0.2s, transform 0.2s var(--ease);
}

.nav-menu a:hover {
  color: #fff;
  transform: translateX(4px);
}

.nav-cta {
  min-height: 2.75rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
    padding: 1.5rem var(--gutter) 2.5rem;
    background: var(--night);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* The page behind the open menu is held still: js/site.js pins the body at the
     current scroll position and puts it back when the menu closes */
  .nav-open {
    overflow: hidden;
  }

  .nav-open body {
    position: fixed;
    left: 0;
    right: 0;
  }

  /* While the menu is open the header is pinned to the screen and loses its blur.
     A blurred (backdrop-filter) header becomes the box its fixed menu is measured against,
     and a held page has nothing for "sticky" to stick to: opened after scrolling, the menu
     collapsed to nothing above the screen and left the page locked. */
  .nav-open .site-header,
  .nav-open .site-header.is-stuck {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--night);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-open .nav-toggle-open {
    display: none;
  }

  .nav-open .nav-toggle-close {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item {
    flex-wrap: wrap;
    justify-content: space-between;
    border-bottom: 1px solid var(--line-dark);
  }

  .nav-link {
    padding: 1.125rem 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  .nav-link::after {
    display: none;
  }

  .menu-toggle {
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
  }

  .menu-toggle .icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .nav-menu {
    position: static;
    display: none;
    flex-basis: 100%;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0 1.5rem;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .has-menu.is-open .nav-menu {
    display: grid;
  }

  .nav-cta {
    min-height: 3.375rem;
  }
}

/* Hero (home)
   ========================================================================== */

.hero {
  padding-block: calc(var(--header-height) + clamp(2.5rem, 6vw, 5rem)) clamp(3.5rem, 8vw, 6.5rem);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
}

/* The artwork with service labels floating around it */
.hero-scene {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 34rem;
  width: 100%;
  margin-inline: auto;
}

.hero-scene-art {
  position: absolute;
  inset: 9%;
  display: grid;
  place-items: center;
  animation: float 9s ease-in-out infinite;
}

.hero-scene-art::before {
  content: "";
  position: absolute;
  inset: 12%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.34), transparent 68%);
  filter: blur(30px);
}

.hero-scene [data-depth] {
  transition: transform 0.5s var(--ease), border-color 0.25s, background-color 0.25s;
}

.hero-photo {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem 0.625rem 0.75rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  animation: float 7s ease-in-out infinite;
  transition: border-color 0.25s, background-color 0.25s;
}

.hero-chip .icon {
  padding: 0.3em;
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  background: var(--grad);
}

.hero-chip:hover {
  border-color: var(--red-bright);
  background: rgba(22, 22, 22, 0.95);
}

.hero-chip--1 { top: 5%; left: -2%; animation-delay: -1s; }
.hero-chip--2 { top: 16%; right: -4%; animation-delay: -3s; animation-duration: 8s; }
.hero-chip--3 { top: 50%; right: -8%; animation-delay: -5s; animation-duration: 9s; }
.hero-chip--4 { bottom: 12%; left: -6%; animation-delay: -2s; animation-duration: 8.5s; }
.hero-chip--5 { bottom: 1%; right: 8%; animation-delay: -4s; animation-duration: 7.5s; }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

/* About (home): the key figures beside the introduction */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.about-text .section-head {
  margin-bottom: 1.75rem;
}

.about-text .link-arrow {
  margin-top: 1.75rem;
}

/* Key figures as one set of dark tiles. The first and, when it would sit alone, the
   last run the full width and carry a pattern: rings on one, dots on the other. */
.figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.figure {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  gap: 0.625rem;
  min-height: 9.75rem;
  padding: 1.5rem 1.625rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #1D1D1D 0%, var(--night-2) 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}

.figure:first-child,
.figure:last-child:nth-child(even) {
  grid-column: span 2;
  min-height: 11.25rem;
  background: var(--night);
}

/* A tile lifts a little under the pointer and its edge and pattern warm up */
.figure:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 112, 119, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 22px 40px -24px rgba(var(--accent-rgb), 0.55);
}

.figure .count-sign {
  margin-left: 0.04em;
  color: var(--red-bright);
}

.figure dd {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 4.6vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.figure dt {
  color: var(--on-dark-soft);
  font-size: 0.9375rem;
  font-weight: 500;
}

.figure:first-child::after,
.figure:last-child:nth-child(even)::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 35%;
  opacity: 0.85;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.figure:hover::after {
  opacity: 1;
}

/* Rings spreading in from the right edge */
.figure:first-child::after {
  background:
    radial-gradient(circle at 100% 50%, rgba(var(--accent-rgb), 0.4), transparent 62%),
    repeating-radial-gradient(circle at 100% 50%, transparent 0 25px, rgba(255, 112, 119, 0.6) 25px 26px);
  -webkit-mask-image: linear-gradient(to left, #000 10%, transparent 92%);
  mask-image: linear-gradient(to left, #000 10%, transparent 92%);
}

/* A field of dots thinning out towards the figure */
.figure:last-child:nth-child(even)::after {
  background-image: radial-gradient(rgba(255, 255, 255, 0.34) 1.25px, transparent 1.75px);
  background-size: 15px 15px;
  -webkit-mask-image: radial-gradient(ellipse 80% 120% at 100% 50%, #000 15%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 120% at 100% 50%, #000 15%, transparent 78%);
}

/* An image uploaded in the admin panel takes the place of the tiles */
.about-image {
  aspect-ratio: 10 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  border-top: 1px solid var(--line-strong);
}

.about-grid + .stats {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.375rem;
  padding: 1.75rem 1.5rem 0 0;
}

.stat + .stat {
  padding-left: 1.75rem;
  border-left: 1px solid var(--line);
}

.stat dd {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stat dt {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Line art (front/partials/motif.blade.php), always shown on a dark surface
   ========================================================================== */

.motif {
  width: 100%;
  height: auto;
  overflow: visible;
}

.motif-grid {
  stroke: #fff;
  opacity: 0.16;
}

.motif-face--screen {
  fill: #fff;
  opacity: 0.08;
}

.motif-face--stage {
  fill: var(--red);
  opacity: 0.3;
}

.motif-face--top {
  fill: var(--red-bright);
  opacity: 0.32;
}

.motif-glow {
  stroke: var(--red);
  opacity: 0.35;
  filter: blur(6px);
}

.motif-route {
  stroke: #FF3B30;
}

.motif-nodes circle {
  fill: #fff;
  stroke: var(--red);
  stroke-width: 2.5;
  transform-box: fill-box;
  transform-origin: center;
}

.motif-pulse {
  fill: #fff;
  filter: drop-shadow(0 0 8px var(--red-soft)) drop-shadow(0 0 16px var(--red-bright));
}

.motif--animated .motif-face {
  animation: face 6s ease-in-out infinite alternate;
}

.motif--animated .motif-face--top { animation-delay: -2s; }
.motif--animated .motif-face--screen { animation-delay: -4s; }

.js .motif--animated .motif-route {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: motif-draw 2.8s var(--ease) 0.4s forwards;
}

.js .motif--animated .motif-glow {
  opacity: 0;
  animation: motif-glow 1.2s ease-out 2.6s forwards;
}

.js .motif--animated .motif-nodes circle {
  opacity: 0;
  animation: motif-node 0.5s var(--ease) calc(0.4s + var(--n) * 0.19s) forwards, node-beat 3.2s ease-in-out calc(3.4s + var(--n) * 0.22s) infinite;
}

.js .motif--animated .motif-pulse {
  opacity: 0;
  animation: motif-fade 0.6s ease-out 3.2s forwards;
}

@keyframes motif-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes motif-glow {
  to { opacity: 0.35; }
}

@keyframes motif-fade {
  to { opacity: 1; }
}

@keyframes motif-node {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes node-beat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.5); }
}

@keyframes face {
  from { opacity: 0.1; }
}

/* Sections
   ========================================================================== */

.section {
  position: relative;
  padding-block: var(--section);
}

.section-tint {
  background: var(--bg-soft);
}

.section-dark {
  background: var(--night);
  color: var(--on-dark);
}

.section-dark .eyebrow {
  color: var(--red-soft);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-lead {
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head-row .section-head {
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.split-main {
  grid-column: span 7;
}

.split-side {
  grid-column: span 5;
  margin-bottom: 0;
}

/* Inner page hero
   ========================================================================== */

.page-hero {
  padding-block: calc(var(--header-height) + clamp(2rem, 5vw, 3.5rem)) clamp(3.5rem, 7vw, 5.5rem);
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.page-hero-art {
  max-width: 22rem;
  width: 100%;
  justify-self: end;
  animation: float 9s ease-in-out infinite;
}

.page-hero-art:has(img) {
  max-width: none;
  animation: none;
}

.page-hero-art img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.page-hero--compact .page-hero-art {
  max-width: 16rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--on-dark-soft);
  font-size: 0.875rem;
}

.crumbs a:hover {
  color: #fff;
}

.crumbs [aria-current] {
  color: #fff;
}

/* Practices (division cards)
   ========================================================================== */

.division-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.division {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), opacity 0.8s var(--ease);
}

.division:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.division .btn {
  align-self: flex-start;
  margin-top: auto;
}

.division--digital {
  background: var(--night);
  color: var(--on-dark);
}

.division--digital::before {
  content: "";
  position: absolute;
  top: -12rem;
  right: -10rem;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.45), transparent 65%);
  filter: blur(50px);
  pointer-events: none;
}

.division--digital > * {
  position: relative;
}

.division--digital .eyebrow {
  color: var(--red-soft);
}

.division--experiential {
  background: linear-gradient(160deg, #FFECEC 0%, #FFFFFF 55%);
  border: 1px solid rgba(var(--accent-rgb), 0.16);
}

.division-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
}

.division-lead {
  margin-top: 0.875rem;
  color: var(--ink-soft);
}

.division--digital .division-lead {
  color: var(--on-dark-soft);
}

.division-services li {
  border-top: 1px solid var(--line);
}

.division-services li:last-child {
  border-bottom: 1px solid var(--line);
}

.division--digital .division-services li {
  border-color: var(--line-dark);
}

.division-services a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 0;
  transition: padding 0.3s var(--ease), color 0.2s;
}

.division-services a:hover {
  padding-left: 0.5rem;
  color: var(--red);
}

.division--digital .division-services a:hover {
  color: var(--red-soft);
}

.division-services strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
}

.division-services strong + span {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.division--digital .division-services strong + span {
  color: var(--on-dark-soft);
}

.division-service-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.875rem;
  height: 2.875rem;
  border-radius: 14px;
  background: var(--grad);
  color: var(--on-accent);
  box-shadow: 0 10px 20px -10px rgba(var(--accent-rgb), 0.8);
}

.division-service-arrow {
  margin-left: auto;
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.3s var(--ease);
}

.division-services a:hover .division-service-arrow {
  opacity: 1;
  transform: translate(3px, -3px);
}

.tick-list {
  display: grid;
  gap: 0.625rem;
}

.tick-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9688rem;
}

.tick-list .icon {
  margin-top: 0.15em;
  color: var(--red);
}

.division--digital .tick-list .icon {
  color: var(--red-soft);
}

.tick-list--rows li {
  padding-block: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}

.tick-list--rows {
  gap: 0;
}

/* Projects: images sit inside a designed frame at their own size
   ========================================================================== */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1.25rem, 2.4vw, 2rem);
}

.stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
}

.stage--digital {
  background:
    radial-gradient(circle at 85% 0%, rgba(var(--accent-rgb), 0.55), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(var(--accent2-rgb), 0.3), transparent 50%),
    var(--night);
}

.stage--experiential {
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.45), transparent 50%),
    linear-gradient(135deg, var(--red-bright) 0%, var(--red) 100%);
}

/* Dotted texture */
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1.5px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(160deg, #000, transparent 70%);
  mask-image: linear-gradient(160deg, #000, transparent 70%);
}

.stage-tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* A mockup cover is a finished picture: it fills the frame, with a slow zoom on hover */
.stage--mockup .stage-mockup {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.project-card:hover .stage-mockup,
.project-card.is-playing .stage-mockup {
  transform: scale(1.05);
}

.stage-empty {
  color: rgba(255, 255, 255, 0.8);
  font-size: 3rem;
}

/* Browser window for digital work */
.browser {
  display: block;
  width: 74%;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transform: perspective(1200px) rotateX(4deg) rotateY(-6deg);
  transition: transform 0.6s var(--ease);
}

/* .is-playing is set by js/site.js: on hover, and on touch screens while the card is mid-screen */
.project-card:hover .browser,
.project-card.is-playing .browser {
  transform: perspective(1200px) rotateX(0) rotateY(0) scale(1.05);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.625rem;
  background: #E9ECF2;
}

.browser-bar i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #C9CFDA;
}

.browser-bar i:first-child { background: #FF5F57; }
.browser-bar i:nth-child(2) { background: #FEBC2E; }
.browser-bar i:nth-child(3) { background: #28C840; }

.browser-url {
  flex: 1;
  margin-left: 0.5rem;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-faint);
  font-size: 0.625rem;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-view {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fff;
}

.browser-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Long page screenshots scroll through on hover */
.browser-view.is-tall img {
  position: absolute;
  top: 0;
  left: 0;
  height: auto;
  transition: top 2.5s linear, transform 2.5s linear;
}

.project-card:hover .browser-view.is-tall img,
.project-card.is-playing .browser-view.is-tall img {
  top: 100%;
  transform: translateY(-100%);
}

/* Full-page screenshot laid over the cover: fades in and scrolls down the page and back */
.browser-view .browser-tour {
  position: absolute;
  top: 0;
  left: 0;
  height: auto;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.project-card.is-playing .browser-tour.is-loaded {
  opacity: 1;
  animation: page-tour var(--tour-time, 6s) cubic-bezier(0.45, 0, 0.55, 1) 0.2s infinite alternate;
}

@keyframes page-tour {
  to { transform: translateY(var(--tour-shift, 0)); }
}

/* Stack of prints for events, activations and print work */
.stack {
  position: absolute;
  inset: 0;
  display: block;
}

.stack-item {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  margin: auto;
  max-width: 60%;
  max-height: 68%;
  border: 5px solid #fff;
  border-radius: 6px;
  box-shadow: 0 22px 40px -18px rgba(0, 0, 0, 0.65);
  transition: transform 0.6s var(--ease);
}

.stack-item--1 {
  transform: rotate(-3deg);
}

.stack--1 .stack-item--1 {
  max-width: 72%;
  max-height: 76%;
}

.stack-item--2 {
  inset: 7% 5% auto auto;
  max-width: 42%;
  max-height: 46%;
  transform: rotate(7deg);
}

.stack-item--3 {
  inset: auto auto 16% 5%;
  max-width: 40%;
  max-height: 42%;
  transform: rotate(-9deg);
}

.project-card:hover .stack-item--1,
.project-card.is-playing .stack-item--1 { transform: rotate(0) scale(1.05); }
.project-card:hover .stack-item--2,
.project-card.is-playing .stack-item--2 { transform: rotate(11deg) translate(8%, -6%); }
.project-card:hover .stack-item--3,
.project-card.is-playing .stack-item--3 { transform: rotate(-13deg) translate(-8%, 6%); }

.project-card-body {
  padding-top: 1.375rem;
}

.project-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.project-card-title a:hover {
  color: var(--red);
}

.project-card-meta {
  margin-top: 0.375rem;
  color: var(--ink-faint);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card-text {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.9688rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card .link-arrow {
  margin-top: 1.125rem;
  font-size: 0.9375rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.filter {
  padding: 0.5rem 1.125rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.filter:hover {
  border-color: var(--ink);
}

.filter.is-active {
  border-color: transparent;
  background: var(--grad);
  color: var(--on-accent);
}

.empty {
  padding: 3rem 0;
  color: var(--ink-soft);
}

.empty a {
  color: var(--red-ink);
  text-decoration: underline;
}

/* Case study
   ========================================================================== */

.case-hero {
  padding-block: calc(var(--header-height) + clamp(2rem, 5vw, 3.5rem)) clamp(3rem, 6vw, 5rem);
}

.case-hero .display {
  max-width: 56rem;
}

.case-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-dark);
}

.case-facts dt {
  margin-bottom: 0.25rem;
  color: var(--on-dark-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-facts dd {
  font-weight: 600;
}

.case-facts a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-bottom: 1px solid var(--line-dark);
}

.case-facts a:hover {
  color: var(--red-soft);
  border-color: var(--red-soft);
}

.case-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(20rem, 46vw, 36rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
}

.case-stage--mockup {
  min-height: 0;
  padding: 0;
}

.case-mockup {
  display: block;
  width: 100%;
  height: auto;
}

.case-stage.stage--digital {
  background:
    radial-gradient(circle at 90% 0%, rgba(var(--accent-rgb), 0.5), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(var(--accent2-rgb), 0.25), transparent 45%),
    var(--night-2);
}

.case-stage.stage--experiential {
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.45), transparent 50%),
    linear-gradient(135deg, var(--red-bright) 0%, var(--red) 100%);
}

.case-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1.5px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(160deg, #000, transparent 70%);
  mask-image: linear-gradient(160deg, #000, transparent 70%);
}

/* --w is the image's real pixel width, so the window never grows past it */
.case-stage .browser {
  width: 100%;
  max-width: min(100%, var(--w, 60rem), 60rem);
  transform: none;
  border-radius: 12px;
}

.case-stage .browser-bar {
  padding: 0.625rem 0.875rem;
  gap: 0.4rem;
}

.case-stage .browser-bar i {
  width: 0.6875rem;
  height: 0.6875rem;
}

.case-stage .browser-url {
  font-size: 0.75rem;
  padding: 0.2rem 0.875rem;
}

.case-stage .browser-view {
  aspect-ratio: auto;
}

.case-stage .browser-view img {
  height: auto;
  object-fit: initial;
}

.case-stage .browser-view.is-scrollable {
  max-height: 34rem;
  overflow-y: auto;
}

.case-stage .stack-item {
  border-width: 8px;
  max-width: 54%;
  max-height: 76%;
}

.case-stage .stack--1 .stack-item--1 {
  max-width: 80%;
  max-height: 84%;
}

.case-stage .stack-item--2 {
  inset: 8% 6% auto auto;
  max-width: 34%;
  max-height: 50%;
}

.case-stage .stack-item--3 {
  inset: auto auto 8% 6%;
  max-width: 32%;
  max-height: 48%;
}

/* Gallery: columns of images at their natural proportions */
.gallery {
  columns: 3 18rem;
  column-gap: 1.25rem;
}

.gallery-item {
  display: block;
  width: 100%;
  margin-bottom: 1.25rem;
  padding: 0.625rem;
  break-inside: avoid;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  cursor: zoom-in;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), opacity 0.8s var(--ease);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  max-width: var(--w);
  max-height: 34rem;
  margin-inline: auto;
  border-radius: 8px;
  object-fit: cover;
  object-position: top;
}

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(6, 6, 6, 0.96);
}

.lightbox[open] {
  display: grid;
  place-items: center;
  overflow: auto;
}

.lightbox::backdrop {
  background: rgba(6, 6, 6, 0.96);
}

.lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 86dvh;
  border-radius: 8px;
}

.lightbox img.is-tall {
  align-self: start;
  width: min(92vw, 56rem);
  max-height: none;
  margin-block: 5rem 2rem;
}

.lightbox button {
  position: fixed;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.7);
  color: #fff;
}

.lightbox button:hover {
  background: var(--red);
  border-color: var(--red);
}

.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
}

.lightbox-prev {
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Steps, features, beliefs
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 1.25rem;
}

.step,
.feature {
  position: relative;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s, opacity 0.8s var(--ease);
}

.step::after,
.feature::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.step:hover,
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.step:hover::after,
.feature:hover::after {
  transform: scaleX(1);
}

.step-number,
.feature-number {
  display: block;
  width: fit-content;
  margin-bottom: 1.75rem;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--red);
}

.step h3,
.feature h3 {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.step p,
.feature p {
  color: var(--ink-soft);
  font-size: 0.9688rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.feature-grid--four {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.beliefs li {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-dark);
}

.beliefs li:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.beliefs span {
  color: var(--red-soft);
  font-family: var(--font-display);
  font-weight: 700;
}

.beliefs p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* Testimonials
   ========================================================================== */

.testimonials {
  background: var(--night);
  color: var(--on-dark);
  overflow: hidden;
}

.testimonials .eyebrow {
  color: var(--red-soft);
}

.slider-controls {
  display: flex;
  gap: 0.5rem;
}

.slider-controls button {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.slider-controls button:hover {
  border-color: transparent;
  background: var(--red);
}

.quote-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(32rem, 86%);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.quote-track::-webkit-scrollbar {
  display: none;
}

.quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--night-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  scroll-snap-align: start;
}

.quote-card::before {
  content: "\201C";
  display: block;
  width: fit-content;
  height: 2.25rem;
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--red);
}

.quote-card blockquote {
  flex: 1;
  font-size: 1.0938rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.quote-card blockquote p + p {
  margin-top: 0.75rem;
}

.quote-body {
  flex: 1;
}

.quote-translation {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-dark);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--on-dark-soft);
}

.quote-translation span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

.quote-card figcaption {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
}

.quote-card figcaption strong,
.quote-card figcaption strong + span {
  display: block;
}

.quote-card figcaption strong + span {
  color: var(--on-dark-soft);
  font-size: 0.9375rem;
}

.quote-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--grad);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

/* Client logos
   ========================================================================== */

.clients .section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Compact strip under the home hero: a short heading, then the logos */
.clients--strip {
  padding-block: clamp(2rem, 4vw, 3rem) clamp(1rem, 2vw, 1.5rem);
}

.clients-label {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

/* The next section sits close to the strip, not a full section away */
.clients--strip + .section {
  padding-top: clamp(2rem, 4vw, 3.25rem);
}

.logo-marquee {
  padding-block: 0.5rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  padding-inline: 1rem;
}

.logo-marquee.is-running .logo-track {
  animation: marquee var(--marquee-duration, 60s) linear infinite;
}

.logo-marquee:hover .logo-track,
.logo-marquee:focus-within .logo-track {
  animation-play-state: paused;
}

.logo-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 11rem;
  height: 6rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.logo-tile img {
  max-width: 100%;
  max-height: 3.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.logo-tile span {
  color: var(--ink-soft);
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
}

/* Service page pieces
   ========================================================================== */

.prose {
  font-size: 1.125rem;
  line-height: 1.7;
}

.prose--narrow {
  max-width: 44rem;
}

.prose > * + * {
  margin-top: 1.25rem;
}

.prose h2 {
  margin-top: 2.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.prose h2:first-child,
.prose .eyebrow + h2 {
  margin-top: 0;
}

.prose h3 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose a {
  color: var(--red-ink);
  text-decoration: underline;
}

.prose .prose-lead {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.panel-title {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.panel p {
  color: var(--ink-soft);
}

.panel p a {
  color: var(--red-ink);
  text-decoration: underline;
}

.panel .link-arrow {
  margin-top: 1.25rem;
}

/* "Built with" on project pages: a dark card listing the stack with brand logos */
.tech-card {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--night);
  color: var(--on-dark);
  box-shadow: var(--shadow);
}

.tech-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -7rem;
  right: -7rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.45), transparent 65%);
  filter: blur(40px);
}

.tech-card-label {
  color: var(--red-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tech-card-title {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tech-list {
  margin-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--line-dark);
}

.tech-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.tech-icon svg {
  width: 1.375rem;
  height: 1.375rem;
  fill: currentColor;
}

.tech-item:hover .tech-icon {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--brand) 24%, transparent);
}

.tech-text {
  display: grid;
  gap: 0.1rem;
  line-height: 1.25;
}

.tech-text strong {
  font-weight: 600;
}

.tech-text small {
  color: var(--on-dark-soft);
  font-size: 0.8125rem;
}

.tech-card-cta {
  width: 100%;
  justify-content: center;
  margin-top: 1.5rem;
}

@media (max-width: 860px) {
  .tech-card {
    position: relative;
    top: auto;
  }
}

.panel--dark {
  position: relative;
  background: var(--night);
  border-color: var(--night);
  color: var(--on-dark);
  overflow: hidden;
}

.panel--dark::before {
  content: "";
  position: absolute;
  top: -8rem;
  right: -8rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.5), transparent 65%);
  filter: blur(40px);
}

.panel--dark > * {
  position: relative;
}

.panel--dark .eyebrow {
  margin-bottom: 0.75rem;
  color: var(--red-soft);
}

.panel--dark p {
  color: var(--on-dark-soft);
}

.panel--dark .link-arrow .icon {
  border-color: var(--line-dark);
}

.panel--dark .link-arrow:hover {
  color: var(--red-soft);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list li {
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.faq details {
  border-top: 1px solid var(--line-strong);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.375rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  padding: 0.3em;
  width: 2em;
  height: 2em;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform 0.3s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}

.faq details[open] summary .icon {
  transform: rotate(45deg);
  background: var(--red);
  border-color: var(--red);
  color: var(--on-accent);
}

.faq details p {
  max-width: 40rem;
  padding-bottom: 1.5rem;
  color: var(--ink-soft);
}

.service-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.service-links a {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.service-links a:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-links .icon {
  padding: 0.55rem;
  width: 2.875rem;
  height: 2.875rem;
  margin-bottom: 0.75rem;
  border-radius: 14px;
  background: var(--grad);
  color: var(--on-accent);
}

.service-links strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.service-links span {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Contact and forms
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-grid--brief {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
}

.contact-details {
  display: grid;
  gap: 2rem;
}

.contact-list li {
  display: flex;
  gap: 1.25rem;
  padding-block: 1.375rem;
  border-top: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-list .icon {
  padding: 0.6rem;
  width: 2.875rem;
  height: 2.875rem;
  border-radius: 14px;
  background: var(--grad);
  color: var(--on-accent);
}

.contact-list h2 {
  margin-bottom: 0.25rem;
  color: var(--ink-faint);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-list a,
.contact-list p {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
}

.contact-list a:hover {
  color: var(--red);
}

.aside-title {
  margin-bottom: 0.5rem;
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
}

.contact-details > .eyebrow {
  margin-bottom: -1rem;
}

.next-steps li {
  display: flex;
  gap: 1.25rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
}

.next-steps span {
  height: fit-content;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--red);
}

.next-steps h3 {
  font-size: 1.0625rem;
  font-weight: 600;
}

.next-steps p {
  color: var(--ink-soft);
  font-size: 0.9688rem;
}

.form-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-title {
  margin-bottom: 1.75rem;
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

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

.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.field label span {
  color: var(--red);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.field select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1.25rem;
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--red);
}

.field-error {
  display: block;
  margin-top: 0.375rem;
  color: var(--red-ink);
  font-size: 0.875rem;
}

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

.form-status {
  margin-top: 1.25rem;
  font-weight: 500;
}

.form-status:empty {
  display: none;
}

.form-status.is-success {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: #E8F4EC;
  color: #17603A;
}

.form-status.is-error {
  color: var(--red-ink);
}

.form-card button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.map iframe {
  display: block;
  width: 100%;
  height: clamp(18rem, 40vw, 28rem);
  border: 0;
}

.not-found {
  padding-block: calc(var(--header-height) + clamp(5rem, 14vw, 10rem)) clamp(5rem, 14vw, 10rem);
}

/* Closing call to action and footer
   ========================================================================== */

.cta-wrap {
  padding-bottom: var(--section);
}

/* After a coloured section the card needs its own space above */
.section-tint + .cta-wrap,
.section-dark + .cta-wrap,
.testimonials + .cta-wrap {
  padding-top: var(--section);
}

.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 6vw, 5rem);
  border-radius: clamp(1.5rem, 3vw, 2.25rem);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb), 0.75), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(var(--accent2-rgb), 0.45), transparent 50%),
    var(--night);
  color: var(--on-dark);
  overflow: hidden;
}

.cta-card .lead {
  color: rgba(255, 255, 255, 0.8);
}

.cta-card .display em {
  background: none;
  -webkit-text-fill-color: var(--accent-pale);
  color: var(--accent-pale);
}

.cta-motif {
  max-width: 20rem;
  justify-self: end;
  animation: float 9s ease-in-out infinite;
}

.site-footer {
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--night);
  color: var(--on-dark-soft);
  font-size: 0.9688rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
}

.footer-brand img {
  width: auto;
  height: 64px;
}

.footer-brand p {
  max-width: 22rem;
  margin-top: 1.5rem;
}

.social-list {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.social-list a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: #fff;
  transition: background-color 0.2s, border-color 0.2s, transform 0.3s var(--ease);
}

.social-list a:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-3px);
}

.footer-title {
  margin-bottom: 1.25rem;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links li + li {
  margin-top: 0.625rem;
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-bottom a:hover {
  color: #fff;
}

.footer-contact li {
  display: flex;
  gap: 0.75rem;
}

.footer-contact li + li {
  margin-top: 1rem;
}

.footer-contact .icon {
  margin-top: 0.2em;
  color: var(--red-soft);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.875rem;
}

.footer-bottom ul {
  display: flex;
  gap: 1.5rem;
}

/* Motion
   ========================================================================== */

/* Sections rise into view as the page scrolls; items in a row follow one another */
.js .reveal {
  opacity: 0;
  translate: 0 28px;
  transition-property: opacity, translate, transform, box-shadow, border-color;
  transition-duration: 0.8s, 0.8s, 0.4s, 0.4s, 0.3s;
  transition-timing-function: var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s, 0s;
}

.js .reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

/* Hero pieces arrive one after another on page load */
.js .hero-in {
  opacity: 0;
  animation: hero-in 0.9s var(--ease) calc(0.15s + var(--d, 0) * 0.11s) forwards;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* Headline words slide up from behind a mask (js/site.js splits the words) */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.word-inner {
  display: inline-block;
  transform: translateY(115%);
  animation: word-up 0.9s var(--ease) calc(0.2s + var(--w) * 0.07s) forwards;
}

/* The gradient moves from the <em> to each word, because a masked parent cannot paint it */
.display em.is-split {
  background: none;
  -webkit-text-fill-color: currentColor;
}

.word-inner.is-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--red);
}

@keyframes word-up {
  to { transform: none; }
}

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

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

  .js .reveal {
    opacity: 1;
    translate: 0 0;
  }

  .motif-pulse {
    display: none;
  }

  .browser-view .browser-tour {
    display: none;
  }

  .logo-marquee.is-running .logo-track {
    animation: none;
  }

  .logo-marquee {
    overflow-x: auto;
  }
}

/* Smaller screens
   ========================================================================== */

@media (max-width: 1080px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .hero-chip--3 { right: -2%; }
  .hero-chip--4 { left: -2%; }
}

@media (max-width: 860px) {
  :root {
    --header-height: 68px;
  }

  .brand img {
    height: 44px;
  }

  .hero-inner,
  .page-hero-inner,
  .division-grid,
  .contact-grid,
  .contact-grid--brief,
  .cta-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-scene {
    max-width: 24rem;
    margin-top: 1rem;
  }

  .hero-chip {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem 0.4rem 0.5rem;
  }

  .hero-chip--1,
  .hero-chip--4 { left: 0; }

  .hero-chip--2,
  .hero-chip--3 { right: 0; }

  .page-hero-art,
  .cta-motif {
    display: none;
  }

  .page-hero-art:has(img) {
    display: block;
  }

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

  /* Words first on a small screen, figures after */
  .figures,
  .about-image {
    order: 2;
  }

  .split-main,
  .split-side {
    grid-column: auto;
  }

  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  /* Client logos: three to a screen */
  .logo-track {
    gap: 0.625rem;
  }

  .logo-tile {
    width: calc((100vw - 2 * var(--gutter) - 1.25rem) / 3);
    height: 4.5rem;
    padding: 0.625rem 0.75rem;
    border-radius: 12px;
  }

  .logo-tile img {
    max-height: 2.75rem;
  }

  body {
    font-size: 1rem;
  }

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

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

  .stat {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    padding: 1.125rem 0;
  }

  .stat + .stat {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .btn-row .btn {
    flex: 1 1 auto;
  }

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

  .case-stage .stack-item {
    border-width: 5px;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 1.25rem;
    transform: none;
  }
}

/* ==========================================================================
   Two sites: solvestone.com (SolveStone Digital) and the events subdomain
   (SolveStone Events). Shared components first, then the events colours.
   ========================================================================== */

/* Brand: the logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

/* Small link to the other site, before the main button */
.nav-other {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--on-dark-soft);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.nav-other .icon {
  width: 0.9rem;
  height: 0.9rem;
}

.nav-other:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.site-nav {
  gap: 1.5rem;
}

.nav-menu {
  grid-template-columns: minmax(17rem, 1fr);
  gap: 1.25rem;
}

.nav-menu a .icon {
  display: inline-block;
  vertical-align: -0.2em;
  margin-right: 0.4rem;
  color: var(--red-soft);
}

.nav-menu .nav-menu-other {
  display: grid;
  gap: 0.15rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line-dark);
  font-size: 0.875rem;
}

.nav-menu .nav-menu-other strong {
  color: #fff;
  font-weight: 600;
}

.nav-menu .nav-menu-other .icon {
  margin: 0 0 0 0.25rem;
  color: inherit;
}

/* Live status */
.live-dot {
  position: relative;
  display: inline-block;
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #22C55E;
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: live-ping 2s var(--ease) infinite;
}

@keyframes live-ping {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(3); opacity: 0; }
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.65rem;
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  color: #15803D;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.dark-surface .badge-live {
  color: #4ADE80;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  color: var(--on-dark-soft);
  font-size: 0.9375rem;
}

.hero-proof a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-proof .icon {
  color: var(--red-soft);
}

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* Digital hero: real screens from the systems we built */
.hero-screens {
  position: relative;
  width: 100%;
  max-width: 38rem;
  aspect-ratio: 1 / 0.92;
  margin-inline: auto;
}

.hero-screens::before {
  content: "";
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.4), transparent 68%);
  filter: blur(40px);
}

.screen,
.screen-phone {
  position: absolute;
  display: block;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.5s var(--ease), box-shadow 0.3s;
}

.screen {
  border-radius: 10px;
  animation: bob 9s ease-in-out infinite;
}

.screen,
.screen-phone {
  will-change: translate, transform;
}

.screen img,
.screen-phone img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.screen--1 { top: 0; left: 0; width: 76%; z-index: 1; }
.screen--2 { top: 30%; right: 0; width: 64%; z-index: 2; animation-delay: -3s; }
.screen--3 { bottom: 2%; left: 6%; width: 56%; z-index: 3; animation-delay: -6s; }

.screen-tag {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.78);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  translate: 0 6px;
  transition: opacity 0.25s, translate 0.25s var(--ease);
}

.screen:hover .screen-tag {
  opacity: 1;
  translate: 0 0;
}

.screen:hover {
  z-index: 5;
}

.screen-phone {
  right: 4%;
  bottom: -3%;
  z-index: 4;
  width: 21%;
  border: 5px solid #111;
  border-radius: 20px;
  animation: bob 7s ease-in-out infinite -2s;
}

.screen-phone img {
  aspect-ratio: 9 / 19;
}

/* What we build */
.build-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.25rem;
}

.build-card {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s, opacity 0.8s var(--ease);
}

/* Five cards: three on top, two wider below */
.build-card:nth-child(n + 4):nth-last-child(-n + 2) {
  grid-column: span 3;
}

a.build-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: var(--shadow);
}

.build-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.5rem;
  border-radius: 14px;
  background: var(--grad);
  color: var(--on-accent);
  box-shadow: 0 12px 24px -12px rgba(var(--accent-rgb), 0.8);
}

.build-icon .icon {
  width: 1.4rem;
  height: 1.4rem;
}

.build-card h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.build-card p {
  color: var(--ink-soft);
}

.build-arrow {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  color: var(--ink-faint);
  transition: color 0.2s, transform 0.3s var(--ease);
}

a.build-card:hover .build-arrow {
  color: var(--red);
  transform: translate(3px, -3px);
}

/* Featured case studies on the home page: wide tinted cards that stack as the page scrolls,
   text on the left and the work on the right */
.case-stack {
  display: grid;
  gap: 1.5rem;
}

.case-card {
  position: sticky;
  top: calc(var(--header-height) + 1.25rem + var(--n, 0) * 1rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: stretch;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: var(--tone);
  box-shadow: 0 -18px 40px -30px rgba(17, 17, 17, 0.35);
}

.case-card--1 { --tone: #ECE7F6; }
.case-card--2 { --tone: #E6ECF5; }
.case-card--3 { --tone: #F5ECDF; }
.case-card--4 { --tone: #E3F0EA; }

.case-card-text {
  display: flex;
  flex-direction: column;
  padding: clamp(0.5rem, 1.5vw, 1rem) clamp(0.25rem, 1vw, 0.75rem);
}

.case-card-industry {
  margin-bottom: 0.875rem;
  color: var(--red-ink);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
}

.case-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.case-card-title a:hover {
  color: var(--red);
}

.case-card-summary {
  margin-top: 0.875rem;
  color: var(--ink-soft);
  font-size: 0.9688rem;
}

.case-card-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-block: 1.5rem 1.75rem;
}

.case-card-facts dt {
  margin-bottom: 0.25rem;
  color: var(--ink-faint);
  font-size: 0.8125rem;
}

.case-card-facts dd {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

/* The client's words (or the live site) on a white bar that leads to the case study */
.case-card-bar {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: auto;
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow 0.25s var(--ease);
}

.case-card-bar:hover {
  box-shadow: 0 10px 24px -14px rgba(17, 17, 17, 0.35);
}

.case-card-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--grad);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 700;
}

.case-card-avatar--site {
  background: var(--ink);
}

.case-card-avatar .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.case-card-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.case-card-who strong {
  font-size: 0.9375rem;
}

.case-card-who span {
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 0.8125rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-card-go {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  margin-left: auto;
  border-radius: 50%;
  color: var(--red);
  transition: background-color 0.2s, color 0.2s;
}

.case-card-bar:hover .case-card-go {
  background: var(--red);
  color: var(--on-accent);
}

.case-card-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 22rem;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--night);
}

.case-card-visual.is-mockup img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.case-card:hover .case-card-visual.is-mockup img {
  transform: scale(1.03);
}

.case-card-visual .browser {
  width: 88%;
}

/* A "view all" link sits under its section's content, centred */
.section-foot {
  display: flex;
  justify-content: center;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* Industries */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 1rem;
}

.industry-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  height: 100%;
  padding: 1.375rem 1.375rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, transform 0.4s var(--ease), background-color 0.3s;
}

.industry-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.4);
  background: var(--bg-soft);
}

.industry-icon {
  margin-bottom: 0.375rem;
  color: var(--red);
}

.industry-icon .icon {
  width: 1.75rem;
  height: 1.75rem;
}

.industry-card strong {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* The drawing at the top of each industry card (front/partials/industry_art) */
.industry-art {
  width: 5.25rem;
  height: 4.2rem;
  margin-bottom: 0.75rem;
  overflow: visible;
}

.ia-soft {
  fill: rgba(var(--accent-rgb), 0.08);
  stroke: var(--red);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.ia-line,
.ia-bold,
.ia-route {
  fill: none;
  stroke: var(--red);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ia-bold {
  stroke-width: 2.5;
}

.ia-route {
  stroke-dasharray: 3 4;
}

.ia-solid {
  fill: var(--red);
}

.ia-dot {
  fill: #fff;
}

.ia-tick {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* On hover each drawing does the thing it shows: the parcel moves along its route,
   the seal stamps, the heart beats, the bars grow */
.ia-seal,
.ia-heart,
.ia-bar,
.ia-receipt {
  transform-box: fill-box;
  transition: transform 0.4s var(--ease);
}

.ia-seal,
.ia-heart {
  transform-origin: center;
}

.ia-bar,
.ia-receipt {
  transform-origin: bottom;
}

.industry-card:hover .ia-route {
  animation: ia-route 0.9s linear infinite;
}

.industry-card:hover .ia-seal {
  transform: scale(1.12) rotate(-8deg);
}

.industry-card:hover .ia-heart {
  animation: ia-beat 0.9s var(--ease) infinite;
}

.industry-card:hover .ia-bar {
  transform: scaleY(1.15);
}

.industry-card:hover .ia-receipt {
  transform: translateY(-3px);
}

@keyframes ia-route {
  to { stroke-dashoffset: -14; }
}

@keyframes ia-beat {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.15); }
  60% { transform: scale(0.97); }
}

.industry-card small {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.375rem;
  color: var(--red-ink);
  font-size: 0.8125rem;
  font-weight: 700;
}

.industry-card small .icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s var(--ease);
}

.industry-card:hover small .icon {
  transform: translateX(4px);
}

/* Steps on a dark section */
.section-dark .step {
  background: var(--night-2);
  border-color: var(--line-dark);
  color: var(--on-dark);
}

.section-dark .step p {
  color: var(--on-dark-soft);
}

.section-dark .section-lead {
  color: var(--on-dark-soft);
}

.section-dark .link-arrow .icon {
  border-color: var(--line-dark);
}

/* Founder note */
.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.founder-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 26rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 10%, rgba(var(--accent-rgb), 0.7), transparent 55%),
    var(--night);
}

.founder--short .founder-photo {
  max-width: 20rem;
}

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

.founder-mark {
  position: absolute;
  inset: 12%;
  display: grid;
  place-items: center;
}

.founder-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.founder-text .prose {
  margin-top: 1.5rem;
  color: var(--ink-soft);
}

.founder-sign {
  display: grid;
  gap: 0.15rem;
  margin-top: 1.75rem;
  padding-left: 1rem;
  border-left: 3px solid var(--red);
}

.founder-sign span {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.founder .btn-row {
  align-items: center;
  margin-top: 1.75rem;
}

/* The quiet band that points to the other site */
.crosslink {
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
}

.testimonials + .crosslink {
  border-top: 0;
}

.crosslink-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.crosslink .eyebrow {
  margin-bottom: 0.5rem;
}

.crosslink-text {
  font-size: 1.125rem;
}

.crosslink-text strong {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.btn-outline {
  border-color: var(--line-strong);
  background: #fff;
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-dark);
}

.crosslink + .cta-wrap {
  padding-top: var(--section);
}

/* Events hero: photographs from recent work */
.hero-photos {
  position: relative;
  width: 100%;
  max-width: 36rem;
  aspect-ratio: 1 / 0.95;
  margin-inline: auto;
}

.hero-photos::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.45), transparent 68%);
  filter: blur(40px);
}

.hero-photo-card {
  position: absolute;
  display: block;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.9);
  animation: bob 9s ease-in-out infinite;
  transition: transform 0.5s var(--ease), rotate 0.4s var(--ease);
  will-change: translate, transform;
}

.hero-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.hero-photo-card span {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.6rem;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.78);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s;
}

.hero-photo-card:hover {
  z-index: 6;
  rotate: 0deg;
}

.hero-photo-card:hover span {
  opacity: 1;
}

.hero-photo-card--1 { top: 2%; left: 0; width: 58%; rotate: -4deg; z-index: 1; }
.hero-photo-card--2 { top: 0; right: 0; width: 48%; rotate: 5deg; z-index: 2; animation-delay: -2s; }
.hero-photo-card--3 { bottom: 4%; left: 8%; width: 50%; rotate: 3deg; z-index: 3; animation-delay: -4s; }
.hero-photo-card--4 { bottom: 0; right: 2%; width: 44%; rotate: -6deg; z-index: 4; animation-delay: -6s; }

.hero-photos--1 .hero-photo-card--1 { top: 10%; left: 5%; width: 90%; }
.hero-photos--2 .hero-photo-card--2 { top: auto; bottom: 6%; width: 56%; }

/* Service cards (events home, services pages) */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}

.service-cards--wide {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s, opacity 0.8s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: var(--shadow);
}

.service-card-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.5rem;
  border-radius: 16px;
  background: var(--grad);
  color: var(--on-accent);
}

.service-card-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.service-card h2,
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.service-card p {
  color: var(--ink-soft);
}

.service-card ul {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.25rem;
  font-size: 0.9375rem;
}

.service-card li {
  position: relative;
  padding-left: 1rem;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--red);
}

.service-card .link-arrow {
  margin-top: auto;
  padding-top: 1rem;
}

.other-practice-note {
  margin-top: clamp(2rem, 4vw, 3rem);
  color: var(--ink-soft);
  text-align: center;
}

.other-practice-note a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.25rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}

.other-practice-note a:hover {
  color: var(--red-ink);
}

.other-practice-note .icon {
  width: 1rem;
  height: 1rem;
}

.section + .other-practice-note {
  margin-top: 0;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

/* Key figures on a dark band */
.stats-band {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.stats-band .stats {
  border-top-color: var(--line-dark);
}

.stats-band .stat + .stat {
  border-left-color: var(--line-dark);
}

.stats-band .stat dt {
  color: var(--on-dark-soft);
}

.stats-band .stat dd {
  color: #fff;
}

.stats-band .count-sign {
  color: var(--red-soft);
}

.steps--five {
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

/* Contact and brief forms */
.contact-list-main {
  padding: 1.25rem;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: var(--radius);
  background: rgba(var(--accent-rgb), 0.04);
}

.contact-list .contact-note,
.contact-list-main p {
  color: var(--ink-faint);
  font-size: 0.875rem;
}

.field-hint {
  margin-top: 0.5rem;
  color: var(--ink-faint);
  font-size: 0.8125rem;
}

.field-hint a {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--ink);
  font-weight: 600;
}

.field-hint a:hover {
  color: var(--red-ink);
}

.field-hint .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.form-promise {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.form-promise .icon {
  color: var(--red);
}

.panel--dark .btn {
  margin-top: 1.25rem;
}

/* About: company facts, team, the two practices */
.facts-strip {
  background: var(--night-2);
  color: var(--on-dark);
  border-top: 1px solid var(--line-dark);
}

.facts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.facts-row > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.25rem;
  padding: 1.5rem 1.5rem 1.5rem 0;
}

.facts-row > div + div {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line-dark);
}

.facts-row dd {
  color: var(--red-soft);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.facts-row dt {
  color: var(--on-dark-soft);
  font-size: 0.875rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 1.25rem;
}

.team-card {
  display: grid;
  justify-items: start;
  gap: 0.25rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.team-avatar {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--grad);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.team-card span {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.practice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  isolation: isolate;
}

.practice::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -8rem;
  right: -8rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.35;
}

.practice::after { background: #EB1B23; }

.practice-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.practice-brand img {
  width: auto;
  height: 38px;
}

.practice h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.practice > p {
  color: var(--ink-soft);
}

.practice .tick-list .icon {
  color: inherit;
}

.practice .link-arrow,
.practice-here {
  margin-top: auto;
}

.practice-here {
  width: fit-content;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Work filters: by service, then by industry */
.filter-bar {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.filter-bar .filters {
  margin-bottom: 0;
}

.filters--quiet {
  align-items: center;
}

.filters--quiet .filter {
  padding-block: 0.4rem;
  font-size: 0.875rem;
}

.filter small {
  margin-left: 0.25rem;
  opacity: 0.6;
  font-size: 0.75rem;
}

.filters-label {
  margin-right: 0.25rem;
  color: var(--ink-faint);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Case study: the facts block, the client's words, the matching design or build */
.section--tight {
  padding-block: clamp(2rem, 4vw, 3rem);
}

.section--tight + .section {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.fact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

.fact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  align-content: start;
}

.fact-list dt {
  margin-bottom: 0.25rem;
  color: var(--ink-faint);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fact-list dd {
  font-weight: 600;
}

.fact-modules h2 {
  margin-bottom: 0.875rem;
  color: var(--ink-faint);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-quote {
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-soft);
}

.case-quote blockquote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.4;
}

.case-quote figcaption {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.pair-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem 2rem;
  padding: 1.5rem 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, background-color 0.3s;
}

.pair-card .eyebrow {
  margin: 0;
}

.pair-card strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.pair-card > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.pair-card:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: var(--bg-soft);
}

/* Service page: the stack */
.stack-panel {
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--night);
  color: var(--on-dark);
}

.stack-panel .section-head {
  margin-bottom: 1.5rem;
}

.stack-panel .eyebrow {
  color: var(--red-soft);
}

.tech-list--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  column-gap: 2rem;
}

.stack-note {
  margin-top: 1.75rem;
  color: var(--on-dark-soft);
}

.stack-note a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff;
  font-weight: 600;
}

.stack-note .icon {
  width: 1rem;
  height: 1rem;
}

/* How we work */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1.25rem;
}

.timeline-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.timeline-number {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--grad);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 700;
}

.timeline-item h3,
.model-card h3,
.icon-list h3 {
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.timeline-item p,
.model-card p {
  color: var(--ink-soft);
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.model-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.model-index {
  margin-bottom: 1rem;
  color: var(--red-ink);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
}

.model-card .model-best {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.btn-row--center {
  justify-content: center;
}

.icon-list {
  display: grid;
  gap: 1.75rem;
}

.icon-list li {
  display: flex;
  gap: 1.25rem;
}

.icon-list-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--red);
}

.section-dark .icon-list-icon {
  border-color: var(--line-dark);
  color: var(--red-soft);
}

.icon-list p {
  color: var(--ink-soft);
}

.section-dark .icon-list p {
  color: var(--on-dark-soft);
}

/* ---------------------------------------------------------------- small screens */
@media (max-width: 1180px) {
  .nav-other {
    display: none;
  }
}

@media (max-width: 960px) {
  .nav-other {
    display: inline-flex;
    justify-content: center;
    min-height: 3rem;
    font-size: 0.9375rem;
  }

  .site-nav .nav-other {
    order: 3;
  }

  .nav-menu .nav-menu-other {
    padding-top: 0.75rem;
  }
}

@media (max-width: 1080px) {
  .build-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .build-card,
  .build-card:nth-child(n + 4):nth-last-child(-n + 2) {
    grid-column: auto;
  }

  .build-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .footer-other {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .hero-screens,
  .hero-photos {
    max-width: 30rem;
    margin-top: 1.5rem;
  }

  .founder-grid,
  .practice-grid,
  .fact-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .founder-photo,
  .founder--short .founder-photo {
    max-width: 14rem;
  }

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

}

@media (max-width: 640px) {
  /* Two cards to a row on phones, made compact to fit */
  .build-grid {
    gap: 0.75rem;
  }

  .build-card {
    gap: 0.4rem;
    padding: 1.125rem 1rem 1.25rem;
  }

  .build-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.25rem;
  }

  .build-icon .icon {
    width: 1.15rem;
    height: 1.15rem;
  }

  .build-card h3 {
    font-size: 1.0625rem;
    line-height: 1.2;
  }

  .build-card p {
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  .build-arrow {
    top: 1rem;
    right: 1rem;
    width: 1rem;
    height: 1rem;
  }

  .industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .industry-grid > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .industry-card {
    padding: 1rem 1rem 1.125rem;
  }

  .industry-card strong {
    font-size: 1rem;
    white-space: normal;
  }

  .industry-art {
    width: 4.25rem;
    height: 3.4rem;
    margin-bottom: 0.5rem;
  }

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

  .facts-row > div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line-dark);
  }

  .crosslink-inner .btn {
    width: 100%;
  }

  .screen-phone {
    width: 24%;
    border-width: 3px;
    border-radius: 12px;
  }

  .footer-other {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen,
  .screen-phone,
  .hero-photo-card,
  .live-dot::after {
    animation: none;
  }
}

/* Process on the home page: steps sit high and low, joined by a curved line (drawn by
   js/site.js through the centre of each icon). The line draws itself when the section
   comes into view, then a dot travels along it and each step glows as the dot arrives. */
.flow-wrap {
  --dur: 7s;
  --rise: 4.5rem;
  position: relative;
}

.flow {
  display: grid;
  grid-template-columns: repeat(var(--steps, 6), minmax(0, 1fr));
  gap: 0 1rem;
  padding-bottom: var(--rise);
}

.flow-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.flow-step:nth-of-type(even) {
  margin-top: var(--rise);
  margin-bottom: calc(-1 * var(--rise));
}

.flow-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.flow-track,
.flow-line {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.flow-track {
  stroke: rgba(255, 255, 255, 0.07);
}

.flow-line {
  stroke: rgba(var(--accent2-rgb), 0.85);
}

.flow-node {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.125rem;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  border-radius: 50%;
  background: var(--night-2);
  color: var(--red-soft);
  box-shadow: 0 0 0 6px var(--night), 0 0 28px -6px rgba(var(--accent-rgb), 0.55);
}

.flow-node .icon {
  width: 1.4rem;
  height: 1.4rem;
}

.flow-text h3 {
  margin-bottom: 0.375rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.flow-text p {
  max-width: 13rem;
  margin-inline: auto;
  color: var(--on-dark-soft);
  font-size: 0.875rem;
  line-height: 1.5;
}

.flow-dot {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 3px rgba(var(--accent2-rgb), 0.9);
  offset-rotate: 0deg;
  opacity: 0;
  pointer-events: none;
}

/* Coming into view: the line draws, the steps light up in turn */
.js .flow-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.4s var(--ease) 0.2s;
}

.js .flow-node {
  opacity: 0.25;
  transform: scale(0.8);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(0.2s + var(--i) * 0.4s);
}

.js .flow-text {
  opacity: 0;
  translate: 0 10px;
  transition: opacity 0.5s var(--ease), translate 0.5s var(--ease);
  transition-delay: calc(0.3s + var(--i) * 0.4s);
}

.js .flow-wrap.is-visible .flow-line {
  stroke-dashoffset: 0;
}

.js .flow-wrap.is-visible .flow-node {
  opacity: 1;
  transform: none;
}

.js .flow-wrap.is-visible .flow-text {
  opacity: 1;
  translate: 0 0;
}

/* Then the dot keeps travelling; --arrive (set by js/site.js) is where each step sits on the line */
.flow-wrap.is-ready.is-visible .flow-dot {
  animation: flow-travel var(--dur) linear 2.8s infinite;
}

.flow-wrap.is-ready.is-visible .flow-node {
  animation: flow-glow var(--dur) ease-out infinite;
  animation-delay: calc(2.8s + var(--arrive, 0) * 0.84 * var(--dur));
}

@keyframes flow-travel {
  0% { offset-distance: 0%; opacity: 0; }
  3% { opacity: 1; }
  84% { offset-distance: 100%; opacity: 1; }
  90%, 100% { offset-distance: 100%; opacity: 0; }
}

@keyframes flow-glow {
  0% { border-color: rgba(var(--accent-rgb), 0.55); box-shadow: 0 0 0 6px var(--night), 0 0 28px -6px rgba(var(--accent-rgb), 0.55); }
  3% { border-color: var(--red-soft); box-shadow: 0 0 0 6px var(--night), 0 0 36px 4px rgba(var(--accent2-rgb), 0.85); }
  12%, 100% { border-color: rgba(var(--accent-rgb), 0.55); box-shadow: 0 0 0 6px var(--night), 0 0 28px -6px rgba(var(--accent-rgb), 0.55); }
}

/* Phones: the steps zigzag left and right down the page, along the same kind of curve */
@media (max-width: 860px) {
  .flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 4.5rem;
    padding-bottom: 0;
  }

  .flow-step,
  .flow-step:nth-of-type(even) {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin: 0;
    text-align: left;
  }

  .flow-step:nth-of-type(even) {
    flex-direction: row-reverse;
    text-align: right;
  }

  .flow-node {
    flex: none;
    margin-bottom: 0;
  }

  .flow-text p {
    max-width: 15rem;
    margin-inline: 0;
  }

  .flow-step:nth-of-type(even) .flow-text p {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-dot {
    display: none;
  }

  .flow-wrap.is-ready.is-visible .flow-node {
    animation: none;
  }
}

/* Testimonials run to the right edge of the screen, so cards slide off it instead of being cut */
.quote-track {
  margin-right: calc(50% - 50vw);
  padding-right: var(--gutter);
}

/* Phones: the cards still stack as you scroll, so each one is kept short enough to fit the screen */
@media (max-width: 860px) {
  .case-card {
    top: calc(var(--header-height) + 0.75rem + var(--n, 0) * 0.625rem);
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding: 0.875rem;
  }

  .case-card-visual {
    order: -1;
    min-height: 0;
    height: clamp(10.5rem, 42vw, 15rem);
  }

  .case-card-text {
    padding: 0 0.25rem 0.25rem;
  }

  .case-card-industry {
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
  }

  .case-card-title {
    font-size: 1.375rem;
  }

  .case-card-summary {
    display: -webkit-box;
    margin-top: 0.5rem;
    overflow: hidden;
    font-size: 0.875rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .case-card-facts {
    gap: 0.75rem;
    margin-block: 0.875rem 1rem;
  }

  .case-card-facts dt {
    font-size: 0.75rem;
  }

  .case-card-facts dd {
    font-size: 0.875rem;
  }

  .case-card-bar {
    padding: 0.5rem 0.625rem;
  }

  .case-card-avatar {
    width: 2.125rem;
    height: 2.125rem;
  }
}
