/* =========================================================
   HPDL — enterprise data consultancy design system
   Type: Instrument Sans / Instrument Serif / IBM Plex Mono
   ========================================================= */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #08090b;
  --ink-deep: #060708;
  --ink-soft: #0b0d10;
  --panel: #0e1115;
  --panel-raised: #13171d;
  --bone: #f4f2ed;
  --bone-dim: #d8d6d0;
  --muted: #9aa0a9;
  --muted-deep: #6d737c;
  --red: #e43b2e;
  --red-bright: #ff5c4c;
  --navy: #173d62;
  --line: rgba(244, 242, 237, 0.1);
  --line-strong: rgba(244, 242, 237, 0.2);
  --max: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
}

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

body.menu-open {
  overflow: hidden;
}

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

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

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

button {
  font: inherit;
  color: inherit;
}

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

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

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

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: clamp(88px, 9.5vw, 148px);
  border-top: 1px solid var(--line);
  position: relative;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow-mark {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--red);
  flex: none;
}

.display {
  font-size: clamp(2.5rem, 4.8vw, 4.5rem);
  font-weight: 500;
  line-height: 0.99;
  letter-spacing: -0.045em;
  margin-top: 22px;
  text-wrap: balance;
}

.display em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--red-bright);
}

.muted {
  color: var(--muted-deep);
}

.lede {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.7;
  color: #b8bdc5;
  max-width: 56ch;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--bone);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 6px;
  transition: color 0.25s, border-color 0.25s;
}

.text-link span {
  color: var(--red);
  transition: transform 0.3s var(--ease);
}

.text-link:hover {
  color: #fff;
  border-color: var(--red);
}

.text-link:hover span {
  transform: translateX(4px);
}

.icon-arrow {
  width: 14px;
  height: 14px;
  flex: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}

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

.btn:hover .icon-arrow {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--bone);
  color: var(--ink);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--bone);
  background: rgba(244, 242, 237, 0.02);
}

.btn-ghost:hover {
  border-color: var(--bone);
  background: rgba(244, 242, 237, 0.06);
}

.btn-small {
  height: 42px;
  padding: 0 16px;
  font-size: 12px;
}

.btn-large {
  height: 56px;
  padding: 0 28px;
  font-size: 14px;
}

/* Skip link */
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 300;
  background: var(--bone);
  color: var(--ink);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
}

.skip-link:focus {
  top: 14px;
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red);
}

/* Reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
}

.site-header.is-scrolled {
  background: rgba(8, 9, 11, 0.84);
  border-color: var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-word {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}

.brand-dot {
  color: var(--red);
}

.brand-descriptor {
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-deep);
  border-left: 1px solid var(--line);
  padding-left: 12px;
}

.primary-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-list a {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  color: #b6bbc3;
  padding: 6px 0;
  transition: color 0.25s;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.3s var(--ease);
}

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

.nav-list a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}

.header-email {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  color: var(--muted-deep);
  transition: color 0.25s;
}

.header-email:hover {
  color: var(--bone);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--bone);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  padding: 100px var(--pad) 40px;
  transform: translateY(-102%);
  visibility: hidden;
  transition: transform 0.55s var(--ease), visibility 0.55s;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu.is-open {
  transform: none;
  visibility: visible;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 640px;
  margin-inline: auto;
  width: 100%;
}

.mobile-nav-list {
  margin: 26px 0 auto;
  border-top: 1px solid var(--line);
}

.mobile-nav-list li {
  border-bottom: 1px solid var(--line);
}

.mobile-nav-list a {
  display: block;
  padding: 18px 0;
  font-size: clamp(1.7rem, 6vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  transition: color 0.25s, padding-left 0.3s var(--ease);
}

.mobile-nav-list a:hover {
  color: var(--red-bright);
  padding-left: 10px;
}

.mobile-menu-foot {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  padding-top: 32px;
}

.mobile-email {
  font-size: 15px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding-top: clamp(132px, 15vh, 180px);
  overflow: hidden;
  isolation: isolate;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(244, 242, 237, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 242, 237, 0.045) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 35%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 35%, #000 20%, transparent 78%);
}

.hero-glow {
  position: absolute;
  width: 70vw;
  height: 70vw;
  max-width: 980px;
  max-height: 980px;
  right: -18vw;
  top: -32vw;
  background: radial-gradient(circle, rgba(228, 59, 46, 0.18) 0%, rgba(228, 59, 46, 0.05) 38%, transparent 66%);
  filter: blur(20px);
}

.hero-rule {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--line) 30%, var(--line) 80%, transparent);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
  gap: clamp(40px, 6vw, 92px);
  align-items: center;
  padding-bottom: clamp(44px, 7vh, 76px);
}

.hero-copy {
  min-width: 0;
}

.hero-title {
  margin: 26px 0 42px;
  font-size: clamp(3rem, 6vw, 6.25rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.hero-line {
  display: block;
}

.hero-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--bone);
  position: relative;
  white-space: nowrap;
}

.hero-title em::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 0;
  bottom: -0.03em;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  animation: rule-in 1.2s var(--ease) 0.7s forwards;
}

@keyframes rule-in {
  to { transform: scaleX(1); }
}

.hero-line-muted {
  margin-top: 0.42em;
  font-size: 0.48em;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--muted-deep);
  max-width: 22ch;
}

.hero-intro {
  max-width: 54ch;
  font-size: clamp(0.98rem, 1.1vw, 1.05rem);
  line-height: 1.72;
  color: #b4b9c1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 34px 0 50px;
}

.hero-proof {
  display: flex;
  gap: clamp(24px, 4vw, 52px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.hero-proof div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-proof dt {
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-proof dd {
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.55;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-deep);
  max-width: 18ch;
}

/* Topology panel */
.topology {
  background: linear-gradient(165deg, rgba(19, 23, 29, 0.94), rgba(7, 8, 10, 0.97));
  border: 1px solid var(--line);
  padding: 22px;
  position: relative;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.topology::before,
.topology::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--line-strong);
}

.topology::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.topology::after {
  top: -1px;
  right: -1px;
  border-left: 0;
  border-bottom: 0;
}

.topology-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(228, 59, 46, 0.14);
}

.topology-stack {
  padding-top: 4px;
}

.topology-layer {
  width: 100%;
  display: grid;
  grid-template-columns: 26px 1fr 10px;
  gap: 12px;
  align-items: center;
  padding: 14px 10px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: background 0.25s, padding-left 0.3s var(--ease);
}

.topology-layer:hover {
  background: rgba(244, 242, 237, 0.035);
  padding-left: 16px;
}

.topology-layer.is-active {
  background: rgba(228, 59, 46, 0.065);
}

.topology-layer.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--red);
}

.topology-num {
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--muted-deep);
  letter-spacing: 0.06em;
}

.topology-layer.is-active .topology-num {
  color: var(--red-bright);
}

.topology-layer-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.topology-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.topology-meta {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: var(--muted-deep);
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topology-node {
  width: 7px;
  height: 7px;
  border: 1px solid var(--line-strong);
  justify-self: end;
  transition: background 0.25s, border-color 0.25s;
}

.topology-layer.is-active .topology-node {
  background: var(--red);
  border-color: var(--red);
}

.topology-readout {
  padding-top: 18px;
}

.topology-title {
  font-size: 1.42rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 6px 0 8px;
}

.topology-desc {
  font-size: 12.5px;
  line-height: 1.65;
  color: #a9aeb7;
  min-height: 62px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.chip-row li {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 7px;
  line-height: 1.3;
}

.hero-platforms {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding-block: 24px;
  border-top: 1px solid var(--line);
}

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

.platform-list li {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b1b6be;
}

/* =========================================================
   Symptom
   ========================================================= */
.symptom-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}

.symptom-copy .display {
  margin-bottom: 26px;
}

.symptom-copy .text-link {
  margin-top: 30px;
}

.cost-figure {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel), var(--ink-soft));
  padding: clamp(18px, 2vw, 28px);
}

.cost-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cost-chart {
  width: 100%;
  height: auto;
  margin: 14px 0 4px;
  overflow: visible;
}

.chart-grid line {
  stroke: rgba(244, 242, 237, 0.07);
  stroke-width: 1;
}

.chart-spend {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: stroke-dashoffset 1.8s var(--ease) 0.2s;
}

.cost-figure.is-visible .chart-spend {
  stroke-dashoffset: 0;
}

.chart-area {
  opacity: 0;
  transition: opacity 1.2s ease 0.5s;
}

.cost-figure.is-visible .chart-area {
  opacity: 1;
}

.chart-label text,
.chart-axis text {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
}

.chart-axis text {
  fill: var(--muted-deep);
}

.cost-figure figcaption {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--muted-deep);
  max-width: 58ch;
}

/* =========================================================
   Section heads
   ========================================================= */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 70px);
}

.section-head-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 40ch;
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
}

/* =========================================================
   Failures
   ========================================================= */
.failure-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  border-top: 1px solid var(--line);
}

.failure-tabs {
  border-right: 1px solid var(--line);
}

.failure-tab {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: baseline;
  width: 100%;
  padding: 30px 28px 30px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  color: var(--muted-deep);
  transition: color 0.25s, padding-left 0.35s var(--ease);
}

.failure-tab:hover {
  color: var(--bone);
  padding-left: 8px;
}

.failure-tab.is-active {
  color: var(--bone);
}

.failure-index {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  padding-top: 3px;
}

.failure-tab.is-active .failure-index {
  color: var(--red-bright);
}

.failure-name {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.failure-line {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 0;
  background: var(--red);
  transition: width 0.45s var(--ease);
}

.failure-tab.is-active .failure-line {
  width: 100%;
}

.failure-panels {
  padding: 34px 0 0 clamp(28px, 5vw, 72px);
}

.failure-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.failure-signal {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.failure-signal span {
  display: block;
  width: 2px;
  background: var(--red);
  opacity: 0.75;
}

.failure-signal span:nth-child(1) { height: 6px; }
.failure-signal span:nth-child(2) { height: 14px; }
.failure-signal span:nth-child(3) { height: 9px; }

.failure-panel h3 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 14px 0 20px;
}

.failure-body {
  font-size: clamp(0.98rem, 1.15vw, 1.06rem);
  line-height: 1.75;
  color: #b6bbc3;
  max-width: 60ch;
}

.failure-fix {
  margin-top: 30px;
  border-left: 1px solid var(--red);
  background: rgba(228, 59, 46, 0.055);
  padding: 18px 20px;
}

.failure-fix p:last-child {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--bone-dim);
  max-width: 56ch;
}

.failure-fix .mono-label {
  color: var(--red-bright);
}

.failure-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-deep);
}

/* =========================================================
   Services
   ========================================================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--ink);
  min-width: 0;
}

.service-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 292px;
  padding: clamp(22px, 2.2vw, 30px);
  transition: background 0.35s var(--ease);
}

.service-card:hover .service-card-link {
  background: var(--panel);
}

.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 38px;
}

.service-card-top .mono-label {
  color: var(--muted-deep);
}

.service-card-top .icon-arrow {
  color: var(--muted-deep);
  transition: color 0.3s, transform 0.35s var(--ease);
}

.service-card:hover .service-card-top .icon-arrow {
  color: var(--red-bright);
  transform: translate(2px, -2px);
}

.service-card h3,
.service-card-title {
  font-size: clamp(1.25rem, 1.55vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 16ch;
}

.service-card p {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  flex-grow: 1;
  max-width: 34ch;
}

.service-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-deep);
}

.service-card-line {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--line-strong);
  transition: width 0.4s var(--ease), background 0.3s;
}

.service-card:hover .service-card-line {
  width: 62px;
  background: var(--red);
}

.services-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* =========================================================
   Work
   ========================================================= */
.work-feature {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(36px, 5vw, 70px);
  padding-top: 40px;
  border-top: 1px solid var(--line);
  align-items: stretch;
}

.work-feature-copy {
  padding: 8px 0 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.work-feature-copy .mono-label {
  color: var(--red-bright);
}

.work-feature h3 {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 18px 0 14px;
  max-width: 20ch;
}

.work-feature h3 a {
  transition: color 0.25s;
}

.work-feature h3 a:hover {
  color: var(--red-bright);
}

.work-client {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.work-summary {
  margin-top: 18px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 58ch;
}

.metric-row {
  display: flex;
  gap: clamp(30px, 5vw, 60px);
  margin: 30px 0;
  flex-wrap: wrap;
}

.metric-row dt {
  font-size: clamp(1.8rem, 2.4vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric-row dd {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-deep);
  max-width: 20ch;
}

.work-figure {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, var(--panel-raised), var(--ink-soft));
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 32px;
}

.work-figure-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(244, 242, 237, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 242, 237, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%);
}

.work-figure svg {
  width: 88%;
  max-width: 400px;
  height: auto;
  position: relative;
}

.work-figure-caption {
  position: absolute;
  left: 22px;
  bottom: 18px;
  color: var(--muted-deep);
}

.work-list {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.work-row {
  display: grid;
  grid-template-columns: 42px 200px minmax(0, 1fr) 140px 18px;
  gap: 20px;
  align-items: center;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, padding-left 0.35s var(--ease);
}

.work-row:hover {
  background: var(--panel);
  padding-left: 16px;
}

.work-row-index {
  color: var(--muted-deep);
}

.work-row-client {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-row-title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.work-row-metric {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--red-bright);
  text-align: right;
}

.work-row .icon-arrow {
  color: var(--muted-deep);
  transition: color 0.3s, transform 0.3s var(--ease);
}

.work-row:hover .icon-arrow {
  color: var(--bone);
  transform: translate(2px, -2px);
}

.work-foot {
  margin-top: 38px;
}

/* =========================================================
   Approach
   ========================================================= */
.approach {
  background: var(--ink-soft);
}

.approach-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: start;
}

.approach-intro {
  position: sticky;
  top: 124px;
  align-self: start;
}

.approach-intro .display {
  margin-bottom: 24px;
}

.approach-intro .display em {
  color: var(--bone);
}

.approach-note {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  max-width: 200px;
}

.approach-list {
  border-top: 1px solid var(--line);
}

.approach-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.approach-num {
  color: var(--red-bright);
  padding-top: 6px;
}

.approach-item h3 {
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.approach-item p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 54ch;
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-top: clamp(56px, 7vw, 88px);
}

.principles-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 24px 20px 0 0;
  border-right: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.principles-item + .principles-item {
  padding-left: 20px;
}

.principles-item:last-child {
  border-right: 0;
}

/* =========================================================
   About
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(44px, 6vw, 88px);
  align-items: center;
}

.about-figure {
  position: relative;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 40% 45%, rgba(228, 59, 46, 0.09), transparent 55%),
    linear-gradient(160deg, var(--panel), var(--ink-soft));
  padding: 18px;
  min-height: 460px;
  display: flex;
  align-items: center;
}

.about-figure svg {
  width: 100%;
  height: auto;
}

.about-figure-label {
  position: absolute;
  left: 22px;
  bottom: 16px;
  color: var(--muted-deep);
}

.about-copy .display {
  margin-bottom: 24px;
}

.about-copy > p + p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 60ch;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 34px 0 12px;
}

.about-stats > div {
  background: var(--ink);
  padding: 22px;
}

.about-stats dt {
  font-size: clamp(1.7rem, 2.2vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.about-stats dd {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-deep);
  max-width: 24ch;
}

.about-caption {
  margin-bottom: 24px;
}

/* =========================================================
   CTA
   ========================================================= */
.cta-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding-block: clamp(96px, 12vw, 160px);
  background: var(--ink-deep);
}

.cta-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(244, 242, 237, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 242, 237, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000, transparent 75%);
}

.cta-section::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -45%;
  width: 70vw;
  height: 60vw;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(228, 59, 46, 0.12), transparent 62%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  text-align: center;
  max-width: 940px;
}

.cta-inner .display {
  font-size: clamp(2.7rem, 5.6vw, 5.4rem);
  margin-top: 20px;
}

.cta-inner .display em {
  color: var(--bone);
}

.cta-lede {
  max-width: 58ch;
  margin: 24px auto 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.cta-email {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 5px;
  transition: color 0.25s, border-color 0.25s;
}

.cta-email:hover {
  color: var(--bone);
  border-color: var(--red);
}

.cta-response {
  margin-top: 24px;
}

.cta-section-inner {
  text-align: left;
}

.cta-section-inner .cta-inner {
  text-align: left;
}

.cta-section-inner .cta-actions {
  justify-content: flex-start;
}

/* =========================================================
   Field notes rail
   ========================================================= */
.field-rail {
  position: fixed;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 6px;
  background: rgba(8, 9, 11, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.3s, border-color 0.3s;
}

.field-rail:hover,
.field-rail:focus-within {
  background: rgba(11, 13, 16, 0.94);
  border-color: var(--line-strong);
}

.field-rail-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 6.5px;
  letter-spacing: 0.18em;
  color: var(--muted-deep);
  padding-block: 4px;
}

.field-rail-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
}

.field-rail-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 6px 0;
  color: var(--muted-deep);
  transition: color 0.25s;
}

.field-rail-num {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.field-rail-text {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.45s var(--ease), opacity 0.3s;
}

.field-rail-item:hover,
.field-rail-item:focus-visible,
.field-rail-item.is-current {
  color: var(--bone);
}

.field-rail-item:hover .field-rail-text,
.field-rail-item:focus-visible .field-rail-text {
  max-width: 220px;
  opacity: 1;
}

.field-rail-item.is-current .field-rail-text {
  max-width: 0;
  opacity: 0;
}

.field-rail-item.is-current .field-rail-num {
  color: var(--red-bright);
}

.field-rail-item.is-current::after {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--red);
  margin-left: 2px;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink-deep);
  border-top: 1px solid var(--line);
  padding-top: clamp(60px, 7vw, 88px);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.7fr 0.8fr 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: clamp(48px, 6vw, 72px);
}

.brand-footer {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-statement {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 34ch;
}

.footer-email {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--bone-dim);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 5px;
  transition: color 0.25s, border-color 0.25s;
}

.footer-email:hover {
  color: var(--red-bright);
  border-color: var(--red);
}

.footer-heading {
  color: var(--muted-deep);
  margin-bottom: 18px;
}

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

.footer-links a {
  font-size: 13px;
  color: #b4b9c1;
  transition: color 0.25s;
}

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

.footer-meta li {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--muted-deep);
  line-height: 1.6;
}

.footer-availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.footer-base {
  border-top: 1px solid var(--line);
  padding-block: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  color: var(--muted-deep);
}

.footer-top {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  transition: color 0.25s;
}

.footer-top:hover {
  color: var(--bone);
}

/* =========================================================
   Interior pages
   ========================================================= */
.page-hero,
.archive-hero {
  padding-top: clamp(140px, 17vh, 190px);
  padding-bottom: clamp(52px, 7vw, 80px);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.page-hero::after,
.archive-hero::after {
  content: "";
  position: absolute;
  right: var(--pad);
  top: 26%;
  width: 180px;
  height: 180px;
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
}

.page-title {
  font-size: clamp(2.7rem, 5.6vw, 5.1rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin-top: 22px;
  text-wrap: balance;
}

.page-lede {
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 62ch;
  margin-top: 24px;
}

.page-body {
  padding-block: clamp(56px, 8vw, 100px);
}

.prose {
  max-width: 760px;
  color: #c2c6cc;
}

.prose > * + * {
  margin-top: 22px;
}

.prose h2,
.prose h3 {
  color: var(--bone);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.prose h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  margin-top: 48px;
}

.prose h3 {
  font-size: 1.3rem;
  margin-top: 34px;
}

.prose p,
.prose li {
  font-size: 15.5px;
  line-height: 1.8;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 8px;
}

.prose a {
  color: var(--bone);
  border-bottom: 1px solid var(--red);
}

.prose blockquote {
  border-left: 2px solid var(--red);
  padding-left: 22px;
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.4;
  color: var(--bone);
}

.prose .alignwide {
  max-width: 1100px;
}

.archive-body {
  padding-block: clamp(44px, 6vw, 72px) clamp(72px, 9vw, 120px);
}

/* Case archive */
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

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

.case-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 360px;
  padding: clamp(24px, 3vw, 36px);
  transition: background 0.35s var(--ease);
}

.case-card:hover .case-card-link {
  background: var(--panel);
}

.case-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 46px;
}

.case-card-top .icon-arrow {
  color: var(--muted-deep);
  transition: color 0.3s, transform 0.3s var(--ease);
}

.case-card:hover .case-card-top .icon-arrow {
  color: var(--red-bright);
  transform: translate(2px, -2px);
}

.case-card-client {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.case-card h2 {
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 12px 0;
  max-width: 22ch;
}

.case-card p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 46ch;
}

.case-card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 28px;
}

.case-card-metrics span {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 5px 8px;
  color: var(--bone-dim);
}

/* Case single */
.case-hero {
  padding-top: clamp(130px, 16vh, 170px);
  padding-bottom: clamp(52px, 7vw, 80px);
  border-bottom: 1px solid var(--line);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-deep);
  margin-bottom: 38px;
  transition: color 0.25s;
}

.back-link:hover {
  color: var(--bone);
}

.case-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: end;
}

.case-title {
  font-size: clamp(2.4rem, 4.6vw, 4.5rem);
  font-weight: 500;
  line-height: 0.99;
  letter-spacing: -0.05em;
  margin: 18px 0 22px;
  max-width: 18ch;
}

.case-tagline {
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 58ch;
}

.case-metrics {
  display: flex;
  gap: clamp(28px, 5vw, 60px);
  border-top: 1px solid var(--line);
  margin-top: 38px;
  padding-top: 24px;
  flex-wrap: wrap;
}

.case-metrics dt {
  font-size: clamp(1.8rem, 2.4vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.case-metrics dd {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-deep);
  max-width: 22ch;
}

.case-figure {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel-raised), var(--ink-soft));
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  overflow: hidden;
}

.case-figure-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(244, 242, 237, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 242, 237, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 76%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 76%);
}

.case-figure svg {
  width: 88%;
  max-width: 340px;
  height: auto;
  position: relative;
}

.case-tags {
  position: absolute;
  left: 20px;
  bottom: 16px;
  right: 20px;
  margin: 0;
}

.case-body {
  padding-block: clamp(56px, 8vw, 100px);
}

.case-body-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.case-aside {
  position: sticky;
  top: 120px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.case-aside-list {
  margin: 18px 0 26px;
}

.case-aside-list li {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--bone-dim);
}

.case-aside-list li span {
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-deep);
  margin-bottom: 5px;
}

.case-content {
  max-width: 780px;
}

.case-block {
  padding-bottom: clamp(32px, 4vw, 46px);
  margin-bottom: clamp(32px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
}

.case-block h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 12px 0 16px;
}

.case-block p {
  font-size: 15.5px;
  line-height: 1.8;
  color: #b9bec6;
}

.case-block-outcome {
  border-bottom: 0;
  border-left: 1px solid var(--red);
  padding: 2px 0 2px 24px;
}

.case-next {
  border-top: 1px solid var(--line);
  padding-block: clamp(44px, 6vw, 64px);
}

.case-next-link {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 40px;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  margin-top: 18px;
  transition: background 0.3s, padding-left 0.3s var(--ease);
}

.case-next-link:hover {
  background: var(--panel);
  padding-left: 14px;
}

.case-next-client {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.case-next-title {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.case-next-arrow {
  color: var(--red-bright);
  font-size: 22px;
  justify-self: end;
  transition: transform 0.3s var(--ease);
}

.case-next-link:hover .case-next-arrow {
  transform: translateX(6px);
}

/* Service single */
.service-hero {
  padding-top: clamp(130px, 16vh, 170px);
  padding-bottom: clamp(52px, 7vw, 80px);
  border-bottom: 1px solid var(--line);
}

.service-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: end;
}

.service-hero .page-title {
  max-width: 16ch;
}

.service-hero .back-link {
  display: flex;
  margin-bottom: 28px;
}

.service-hero .eyebrow {
  margin-top: 0;
}

.service-hero-aside {
  border-left: 1px solid var(--line);
  padding-left: clamp(20px, 3vw, 36px);
}

.service-shape {
  margin-top: 18px;
}

.service-shape li {
  display: flex;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 13px;
  color: var(--bone-dim);
}

.service-shape li span {
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--red-bright);
  padding-top: 2px;
}

.service-body {
  padding-block: clamp(56px, 8vw, 100px);
}

.service-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.service-detail-grid {
  border-top: 1px solid var(--line);
}

.service-detail {
  padding: 30px 0 36px;
  border-bottom: 1px solid var(--line);
}

.service-detail h2 {
  font-size: clamp(1.5rem, 2.3vw, 1.95rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 12px 0 14px;
}

.service-detail p {
  font-size: 14.5px;
  line-height: 1.8;
  color: #b6bbc3;
  max-width: 64ch;
}

.service-sidebar {
  position: sticky;
  top: 120px;
}

.service-deliverables {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px;
}

.service-deliverables ul {
  margin-top: 16px;
}

.service-deliverables li {
  border-top: 1px solid var(--line);
  padding: 10px 0;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--bone-dim);
}

.service-cta {
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(228, 59, 46, 0.08), var(--panel));
  padding: 24px;
  margin-top: 18px;
}

.service-cta p:nth-of-type(2) {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin: 10px 0 18px;
}

.service-editorial {
  margin-top: 60px;
}

.related-services {
  border-top: 1px solid var(--line);
  padding-block: clamp(44px, 6vw, 64px);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 18px;
}

.related-card {
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}

.related-card span:last-child {
  color: var(--red-bright);
}

.related-card:hover {
  background: var(--panel);
}

/* =========================================================
   Contact
   ========================================================= */
.contact-page {
  padding-top: clamp(132px, 16vh, 176px);
  padding-bottom: clamp(72px, 9vw, 120px);
  position: relative;
}

.contact-page::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50vw;
  height: 40vw;
  background: radial-gradient(circle at 100% 0%, rgba(228, 59, 46, 0.1), transparent 62%);
  pointer-events: none;
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: start;
}

.contact-intro .lede {
  margin-top: 22px;
}

.contact-details {
  border-top: 1px solid var(--line);
  margin-top: 34px;
}

.contact-details li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  font-size: 14px;
  color: var(--bone-dim);
}

.contact-details a {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 0.25s, color 0.25s;
}

.contact-details a:hover {
  color: var(--bone);
  border-color: var(--red);
}

.contact-next {
  margin-top: 36px;
}

.contact-next ol {
  margin-top: 14px;
}

.contact-next li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 10px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.contact-next li span {
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--red-bright);
  padding-top: 3px;
}

.contact-form-wrap {
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--panel), var(--ink-soft));
  padding: clamp(22px, 3vw, 36px);
}

.contact-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.form-notice {
  border: 1px solid var(--line);
  border-left: 2px solid var(--red);
  padding: 16px 18px;
  margin-bottom: 24px;
  background: rgba(228, 59, 46, 0.06);
}

.form-notice strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.form-notice p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.form-notice ul {
  margin: 6px 0 0 16px;
  padding: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.form-notice-success {
  border-left-color: #7fbf96;
  background: rgba(127, 191, 150, 0.06);
}

.form-notice .receipt-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7fbf96;
  margin: 0 0 8px;
}

.form-notice .receipt-title {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--bone);
}

.form-notice .receipt-lede {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--bone-dim);
}

.receipt-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
  margin: 0 0 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.receipt-meta dt {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-deep);
}

.receipt-meta dd {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--bone);
}

.receipt-meta .receipt-ref {
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

.form-notice .receipt-note {
  margin: 0 0 18px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

.receipt .btn {
  margin-top: 2px;
}

@media (max-width: 560px) {
  .receipt-meta {
    grid-template-columns: 1fr;
  }
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-deep);
  margin-bottom: 8px;
}

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

.field-error {
  display: block;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: rgba(228, 59, 46, 0.55);
  background: rgba(228, 59, 46, 0.04);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(244, 242, 237, 0.025);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 11px 13px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--bone);
  transition: border-color 0.25s, background 0.25s;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% + 1px), calc(100% - 11px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.field select option {
  background: var(--panel);
  color: var(--bone);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--bone);
  background: rgba(244, 242, 237, 0.05);
  box-shadow: 0 0 0 1px rgba(244, 242, 237, 0.25);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #5c626b;
}

.contact-form .btn {
  margin-top: 6px;
  width: 100%;
}

.field-note {
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.6;
  color: var(--muted-deep);
  margin-top: 14px;
}

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

/* =========================================================
   Calendly booking
   ========================================================= */
.booking-page {
  padding-top: clamp(132px, 16vh, 176px);
  padding-bottom: clamp(72px, 9vw, 120px);
  position: relative;
}

.booking-page::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 52vw;
  height: 42vw;
  background: radial-gradient(circle at 100% 0%, rgba(228, 59, 46, 0.11), transparent 64%);
  pointer-events: none;
}

.booking-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}

.booking-intro {
  position: sticky;
  top: 120px;
}

.booking-title {
  max-width: 12ch;
}

.booking-intro .lede {
  margin-top: 24px;
}

.booking-details {
  border-top: 1px solid var(--line);
  margin-top: 34px;
}

.booking-details li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 13.5px;
  color: var(--bone-dim);
}

.booking-next {
  margin-top: 34px;
}

.booking-next ol {
  margin-top: 14px;
}

.booking-next li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 10px 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.booking-next li span {
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--red-bright);
  padding-top: 3px;
}

.booking-alt {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted-deep);
}

.booking-alt a {
  color: var(--bone-dim);
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.25s, border-color 0.25s;
}

.booking-alt a:hover {
  color: var(--bone);
  border-color: var(--red);
}

.booking-panel {
  min-width: 0;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--panel), var(--ink-soft));
  overflow: hidden;
}

.booking-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px clamp(20px, 2.6vw, 30px);
  border-bottom: 1px solid var(--line);
}

.booking-event-name {
  margin-top: 5px;
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.booking-widget {
  background: var(--panel);
}

.calendly-inline-widget {
  width: 100%;
  min-width: 0;
  height: 700px;
  background: var(--panel);
}

.booking-noscript {
  padding: 24px;
}

.booking-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(20px, 2.6vw, 30px);
  border-top: 1px solid var(--line);
}

.booking-panel-foot p {
  font-size: 8px;
}

.booking-external {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.25s;
}

.booking-external:hover {
  color: var(--bone);
}

/* 404 */
.not-found {
  padding-top: clamp(150px, 20vh, 210px);
  padding-bottom: clamp(90px, 12vw, 150px);
}

.not-found-code {
  font-family: var(--mono);
  font-size: clamp(5rem, 14vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: rgba(228, 59, 46, 0.18);
  margin: 20px 0 10px;
}

.not-found .hero-actions {
  margin-bottom: 0;
}

.empty-state {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  padding: 40px 0;
}

.post-list {
  border-top: 1px solid var(--line);
  max-width: 820px;
}

.post-list-item {
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}

.post-list-item h2 {
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 10px 0;
}

.post-list-item h2 a:hover {
  color: var(--red-bright);
}

.post-list-item p {
  color: var(--muted);
  font-size: 14px;
}

/* Pagination */
.pagination {
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 11px;
}

.pagination .nav-links {
  display: flex;
  gap: 8px;
}

.pagination a,
.pagination span {
  border: 1px solid var(--line);
  padding: 8px 12px;
  color: var(--muted);
}

.pagination .current,
.pagination a:hover {
  border-color: var(--bone);
  color: var(--bone);
}

/* WordPress core helpers */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.alignleft {
  float: left;
  margin: 0 24px 16px 0;
}

.alignright {
  float: right;
  margin: 0 0 16px 24px;
}

.aligncenter {
  display: block;
  margin-inline: auto;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1200px) {
  .field-rail {
    display: none;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap: 44px;
  }

  .header-email {
    display: none;
  }

  .work-row {
    grid-template-columns: 36px 170px minmax(0, 1fr) 110px 16px;
    gap: 16px;
  }
}

@media (max-width: 1080px) {
  .primary-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-layout,
  .symptom-grid,
  .approach-grid,
  .about-grid,
  .contact-grid,
  .service-hero-grid,
  .service-body-grid {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    gap: 48px;
    padding-bottom: 52px;
  }

  .hero-title {
    max-width: 16ch;
  }

  .topology {
    max-width: 600px;
  }

  .hero-rule {
    display: none;
  }

  .approach-intro {
    position: static;
  }

  .approach-note {
    margin-top: 24px;
  }

  .failure-layout {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .failure-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .failure-tab {
    padding: 20px 18px;
    border-right: 1px solid var(--line);
  }

  .failure-tab:nth-child(even) {
    border-right: 0;
  }

  .failure-tab:hover {
    padding-left: 18px;
  }

  .failure-panels {
    padding: 36px 0 0;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .work-feature {
    grid-template-columns: 1fr;
  }

  .work-figure {
    min-height: 340px;
  }

  .case-hero-grid,
  .case-body-grid {
    grid-template-columns: 1fr;
  }

  .case-aside {
    position: static;
  }

  .case-figure {
    min-height: 320px;
  }

  .case-body-grid {
    gap: 36px;
  }

  .service-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .service-cta {
    margin-top: 0;
  }

  .service-body-grid {
    gap: 40px;
  }

  .footer-main {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

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

  .contact-form-wrap {
    max-width: 680px;
  }
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 90px;
  }

  .header-inner {
    height: 72px;
  }

  .brand-word {
    font-size: 23px;
  }

  .brand-descriptor {
    display: none;
  }

  .section {
    padding-block: clamp(64px, 10vw, 90px);
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 40px;
  }

  .section-head-note {
    max-width: 52ch;
  }

  .hero {
    padding-top: 116px;
  }

  .hero-title {
    font-size: clamp(2.7rem, 10vw, 4.4rem);
    max-width: none;
  }

  .hero-title em::after {
    display: none;
  }

  .hero-line-muted {
    font-size: 0.52em;
    max-width: 24ch;
  }

  .hero-intro {
    font-size: 15px;
  }

  .hero-proof {
    gap: 22px 36px;
  }

  .hero-proof dt {
    font-size: 1.5rem;
  }

  .hero-platforms {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .platform-list {
    gap: 14px 22px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card-link {
    min-height: 240px;
  }

  .service-card-top {
    margin-bottom: 26px;
  }

  .work-feature h3 {
    font-size: clamp(1.9rem, 6.5vw, 2.8rem);
  }

  .work-row {
    grid-template-columns: 30px minmax(0, 1fr) 16px;
    gap: 14px;
    padding: 20px 0;
  }

  .work-row-client,
  .work-row-metric {
    display: none;
  }

  .work-row-title {
    font-size: 15px;
  }

  .principles {
    grid-template-columns: 1fr 1fr;
  }

  .principles-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
  }

  .principles-item + .principles-item {
    padding-left: 0;
  }

  .about-stats {
    margin-top: 26px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

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

  .footer-base {
    flex-direction: column;
    gap: 12px;
  }

  .footer-top {
    align-self: flex-start;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-card-link {
    min-height: 300px;
  }

  .case-next-link {
    grid-template-columns: 1fr 32px;
    gap: 8px 16px;
  }

  .case-next-client {
    grid-column: 1;
  }

  .case-next-title {
    grid-column: 1;
  }

  .case-next-arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    gap: 44px;
  }

  .page-hero::after,
  .archive-hero::after {
    width: 120px;
    height: 120px;
    top: 20%;
    opacity: 0.35;
  }
}

@media (max-width: 560px) {
  :root {
    --pad: 20px;
  }

  .display {
    font-size: clamp(2.1rem, 9.4vw, 2.8rem);
  }

  .eyebrow {
    font-size: 9px;
    letter-spacing: 0.13em;
    align-items: flex-start;
    line-height: 1.5;
  }

  .hero {
    padding-top: 104px;
  }

  .hero-title {
    margin: 20px 0 24px;
    letter-spacing: -0.05em;
  }

  .hero-actions {
    margin: 28px 0 38px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-proof div:last-child {
    grid-column: 1 / -1;
  }

  .topology {
    padding: 16px;
  }

  .topology-meta {
    font-size: 7px;
  }

  .topology-title {
    font-size: 1.25rem;
  }

  .topology-desc {
    font-size: 12px;
    min-height: 0;
  }

  .failure-tabs {
    grid-template-columns: 1fr;
  }

  .failure-tab {
    border-right: 0;
    padding: 18px 0;
  }

  .failure-tab:hover {
    padding-left: 0;
  }

  .failure-name {
    font-size: 1.15rem;
  }

  .failure-panel h3 {
    font-size: 2rem;
  }

  .failure-meta {
    gap: 8px 16px;
  }

  .metric-row {
    gap: 26px;
  }

  .work-figure {
    min-height: 300px;
    padding: 18px;
  }

  .work-figure-caption {
    left: 14px;
    bottom: 12px;
  }

  .approach-item {
    grid-template-columns: 32px 1fr;
    gap: 14px;
    padding: 24px 0;
  }

  .about-figure {
    min-height: 0;
    padding: 10px;
  }

  .about-figure-label {
    position: static;
    margin-top: 8px;
  }

  .about-stats > div {
    padding: 16px;
  }

  .cta-inner .display {
    font-size: clamp(2.3rem, 10.5vw, 3rem);
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .cta-email {
    align-self: center;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-details li {
    grid-template-columns: 90px 1fr;
    gap: 12px;
  }

  .contact-form-wrap {
    padding: 20px;
  }

  .contact-form-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .service-sidebar {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .archive-hero,
  .contact-page,
  .case-hero,
  .service-hero {
    padding-top: 112px;
  }

  .brand-word {
    font-size: 22px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .case-hero-grid {
    gap: 32px;
  }

  .case-metrics {
    gap: 24px;
  }

  .case-figure {
    min-height: 280px;
  }

  .case-next-link {
    padding: 20px 0;
  }
}

@media (max-width: 1080px) {
  .booking-grid {
    grid-template-columns: 1fr;
  }

  .booking-intro {
    position: static;
  }

  .booking-panel {
    max-width: 860px;
  }
}

@media (max-width: 820px) {
  .header-actions {
    gap: 12px;
  }

  .header-cta {
    height: 38px;
    padding: 0 13px;
    font-size: 11px;
  }
}

@media (max-width: 560px) {
  .header-actions {
    gap: 10px;
  }

  .header-cta {
    height: 36px;
    padding: 0 11px;
    font-size: 11px;
  }

  .booking-page {
    padding-top: 112px;
  }

  .booking-details li {
    grid-template-columns: 90px 1fr;
    gap: 12px;
  }

  .booking-panel-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .booking-panel-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .calendly-inline-widget {
    height: 820px;
  }
}

/* =========================================================
   Motion preferences
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

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

  .chart-spend {
    stroke-dashoffset: 0;
  }

  .chart-area {
    opacity: 1;
  }
}
