.hero {
  padding-top: clamp(5rem, 9vw, 8rem);
  overflow: hidden;
  background: radial-gradient(circle at 82% 12%, rgba(168, 126, 20, 0.09), rgba(247, 246, 244, 0) 42%), var(--bg);
}

.hero-copy {
  min-width: 0;
  max-width: 660px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5.5rem);
}

.hero-lede {
  max-width: 64ch;
  margin-bottom: 2.25rem;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

/* What we build: the intro line sits under the H2 in a single column. */
.work-section .section-intro {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  row-gap: clamp(0.75rem, 1.6vw, 1.15rem);
}

.work-section .section-intro h2 {
  max-width: 20ch;
}

.work-section .section-intro p {
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
}

.section-intro {
  display: grid;
  margin-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.section-intro h2,
.section-intro p {
  margin-bottom: 0;
}

.section-intro p {
  max-width: 38ch;
}

.who-section {
  border-block: 1px solid var(--hairline);
  background: var(--surface-tint);
}

.who-section .split-layout > div:first-child {
  padding-top: 0.25rem;
}

.who-section .split-layout h2 {
  max-width: 16ch;
  margin-bottom: 0;
  font-size: clamp(2.1rem, 3.9vw, 3.1rem);
  line-height: 1.05;
}

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

.who-disclosures .disclosure-trigger {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-block: 1.35rem;
}

.who-disclosures .disclosure-label {
  grid-template-columns: minmax(0, 1fr);
}

.who-disclosures .disclosure-name {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
}

.who-disclosures .disclosure-content {
  padding-right: 1.5rem;
  padding-left: 0;
}

.who-link {
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
}

.rpa-section {
  border-top: 1px solid var(--hairline);
}

.rpa-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(420px, 1.24fr);
  align-items: start;
  gap: clamp(2.75rem, 6vw, 6rem);
}

.rpa-copy {
  grid-column: 1 / -1;
}

.rpa-copy h2 {
  max-width: 18ch;
}

.mapping-framing {
  margin-top: 1.35rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
}

.mapping-disclosures {
  min-width: 0;
  grid-column: 1;
}

/* Two-child trigger: question and marker, so the marker takes its own column
   and the label keeps its wrap protection. */
.mapping-disclosures .disclosure-trigger {
  grid-template-columns: minmax(0, 1fr) auto;
}

.mapping-disclosures .disclosure-label {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
}

.mapping-disclosures .disclosure-content {
  padding-right: 2rem;
  padding-left: 0;
}

.mapping-cta {
  grid-column: 1;
}

.rpa-layout .estate-map {
  grid-row: 2 / span 2;
  grid-column: 2;
}

.estate-map {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: #0f0f0f;
  box-shadow: 0 36px 90px rgba(15, 15, 15, 0.28), 0 12px 28px rgba(15, 15, 15, 0.2);
  color: #f5f4f1;
  font-family: var(--mono);
}

.estate-map-head {
  display: flex;
  min-height: 3.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #f5f4f1;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.estate-map-status {
  display: inline-flex;
  min-width: 12.75rem;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  color: #d9ae3d;
  text-align: right;
}

.estate-map-status::after {
  width: 0.5em;
  height: 1.05em;
  background: currentColor;
  content: "";
  animation: estate-cursor 1.05s steps(1, end) infinite;
}

.estate-map-status i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #d9ae3d;
  box-shadow: 0 0 0 4px rgba(217, 174, 61, 0.1);
}

.estate-map-canvas {
  position: relative;
  padding: clamp(0.5rem, 2vw, 1.1rem);
  background-color: #0f0f0f;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px), radial-gradient(circle at 72% 45%, rgba(217, 174, 61, 0.045), transparent 35%);
  background-size: 24px 24px, 24px 24px, 100% 100%;
}

@keyframes estate-cursor {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}
/* Fifth section in the alternating run: tint, hairline at both boundaries. */
.how-section {
  border-block: 1px solid var(--hairline);
  background: var(--surface-tint);
}

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

.how-section .section-intro h2 {
  max-width: 900px;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps-spine {
  position: absolute;
  z-index: 0;
  display: block;
  overflow: visible;
  pointer-events: none;
}

.steps-spine line {
  stroke: var(--hairline);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.steps-spine-horizontal {
  top: -7px;
  left: 0;
  width: 100%;
  height: 14px;
}

.steps-spine-vertical {
  display: none;
}

/* Each step carries a marker, a number and a heading only, so the row sits tight. */
.steps article {
  position: relative;
  min-height: 0;
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.6vw, 2.5rem) clamp(1.5rem, 2.6vw, 2.25rem);
  border-right: 1px solid var(--hairline);
}

.steps article h3 {
  margin-bottom: 0;
}

.steps article:nth-of-type(1) {
  padding-left: 0;
}

.steps article:last-child {
  padding-right: 0;
  border-right: 0;
}

.step-marker {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 7px;
  display: block;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  overflow: visible;
}

/* The ring punches the spine out behind the dot, so it takes the section surface. */
.step-marker circle {
  fill: var(--accent);
  stroke: var(--surface-tint);
  stroke-width: 3;
}

@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    max-width: 760px;
  }

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

  .mapping-disclosures,
  .mapping-cta,
  .rpa-layout .estate-map {
    grid-row: auto;
    grid-column: 1;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 4.5rem;
  }

  .hero-layout {
    gap: 2.25rem;
  }
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.4rem;
  }
  .steps {
    display: block;
    padding-left: 7px;
  }

  .steps-spine-horizontal {
    display: none;
  }

  .steps-spine-vertical {
    top: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 14px;
    height: 100%;
  }
  .steps article,
  .steps article:nth-of-type(1),
  .steps article:last-child {
    min-height: 0;
    padding: 0 0 3.25rem 2.5rem;
    border: 0;
  }

  .steps article:last-child {
    padding-bottom: 0;
  }

  .step-marker {
    top: 0;
    left: 7px;
    transform: translate(-50%, 0);
  }

  }

@media (max-width: 560px) {
  .mapping-disclosures .disclosure-content {
    padding-right: 1.75rem;
    padding-left: 2.5rem;
  }

  .mapping-disclosures .disclosure-trigger {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mapping-disclosures .disclosure-content {
    padding-left: 0;
  }

  .estate-map-head {
    min-height: 4.5rem;
    padding: 0.85rem 1rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .estate-map-status {
    min-width: 0;
    justify-content: flex-start;
    text-align: left;
  }

  .estate-map-canvas {
    padding: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .estate-map-status::after {
    display: none;
  }
}

/* Hero without mockup: type owns the viewport */
.hero {
  padding-bottom: clamp(6rem, 11vw, 10rem);
}

/* Levelling section promoted: full-bleed tint statement band. No border-bottom:
   the section below rules that boundary with var(--hairline). */
.levelling-section {
  background: linear-gradient(180deg, rgba(241, 233, 217, 0.55), var(--surface-tint));
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-block: clamp(6rem, 11vw, 9.5rem);
}

.levelling-section h2 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  line-height: 1.05;
}

@media (min-width: 961px) {
  .levelling-section .champion-inner {
    grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1.15fr);
  }
}

.levelling-lead {
  align-self: center;
}

.levelling-lead h2 {
  max-width: 13ch;
  margin-bottom: 0;
}

.levelling-disclosures {
  align-self: center;
}

.levelling-disclosures .disclosure-trigger {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-block: 1.35rem;
}

.levelling-disclosures .disclosure-content {
  padding-right: 1.5rem;
  padding-left: 0;
}

.levelling-disclosures .disclosure-label {
  grid-template-columns: minmax(0, 1fr);
}

.levelling-disclosures .disclosure-name {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
}


/* Comb hero */
.hero-comb {
  min-width: 0;
  margin: 0;
}

.hero-comb-graph {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: var(--mono);
}

.comb-thread {
  fill: none;
  stroke: rgba(19, 19, 17, 0.22);
  stroke-width: 1;
  stroke-dasharray: 2.5 5.5;
  animation: comb-drift var(--comb-dur, 7s) linear infinite;
}

@keyframes comb-drift {
  to { stroke-dashoffset: -64; }
}

.comb-gate { stroke: rgba(19, 19, 17, 0.3); stroke-width: 1; }
.comb-tick { stroke: #a87e14; stroke-width: 1.4; opacity: 0.28; transition: opacity 0.4s ease; }
.comb-dot { fill: rgba(19, 19, 17, 0.18); transition: fill 0.5s ease; }
.comb-dot-ring { fill: none; stroke: #a87e14; stroke-width: 1.2; opacity: 0; }
.comb-gate-label { font-size: 8.5px; letter-spacing: 0.22em; fill: rgba(19, 19, 17, 0.45); }

.comb-heading {
  margin-bottom: clamp(1rem, 2.2vw, 1.6rem);
  color: rgba(19, 19, 17, 0.56);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.13em;
}

@media (max-width: 960px) {
  .hero-comb { max-width: 700px; margin-top: 1.5rem; }
  .hero-comb-graph { max-height: 330px; }
}

@media (max-width: 430px) {
  .comb-heading { font-size: 0.68rem; letter-spacing: 0.09em; }
}

@media (prefers-reduced-motion: reduce) {
  .comb-thread { animation: none; }
}

/* Sonar estate survey */
.estate-sonar {
  border-color: rgba(74, 56, 12, 0.18);
  background: #f9f6ef;
  color: #3b3016;
}

.estate-sonar .estate-map-head {
  border-bottom-color: rgba(74, 56, 12, 0.12);
  color: #504529;
}

.estate-sonar .estate-map-status { color: #86620d; }
.estate-sonar .estate-map-status i { background: #86620d; box-shadow: 0 0 0 4px rgba(134, 98, 13, 0.12); }

.estate-sonar .estate-map-canvas {
  background-color: #f9f6ef;
  background-image: radial-gradient(rgba(74, 56, 12, 0.045) 1px, transparent 1.5px), radial-gradient(circle at 50% 46%, rgba(134, 98, 13, 0.04), transparent 62%);
  background-size: 22px 22px, 100% 100%;
}

.sonar-graph {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--mono);
}

.sonar-mobile { display: none; }

@media (max-width: 720px) {
  .sonar-desktop { display: none; }
  .sonar-mobile { display: block; }
}

.sonar-ring { fill: none; stroke: rgba(74, 56, 12, 0.15); stroke-width: 1; }
.sonar-cross { stroke: rgba(74, 56, 12, 0.09); stroke-width: 1; }
.sonar-tickmark { stroke: rgba(74, 56, 12, 0.22); stroke-width: 1; }
.sonar-centre { fill: rgba(43, 32, 7, 0.78); }
.sonar-beamline { stroke: rgba(134, 98, 13, 0.5); stroke-width: 1.6; }
.sonar-trail { fill: #86620d; }
.sonar-blip { fill: #86620d; transition: opacity 0.6s ease, fill 0.5s ease; }
.sonar-halo { fill: rgba(134, 98, 13, 0.13); transition: opacity 0.6s ease; }
.sonar-ping { fill: none; stroke: rgba(134, 98, 13, 0.7); stroke-width: 1.2; opacity: 0; }
.sonar-label { font-size: 8px; letter-spacing: 0.12em; fill: rgba(43, 32, 7, 0.68); transition: opacity 0.6s ease; }
.sonar-tag { font-size: 7.5px; letter-spacing: 0.14em; font-weight: 700; opacity: 0; transition: opacity 0.5s ease; }



.sonar-contact { transition: opacity 0.3s linear; }
.sonar-mobile .sonar-label { font-size: 9px; }
.sonar-mobile .sonar-tag { font-size: 8.5px; }
