:root {
  --ink: #171717;
  --paper: #fbf6ed;
  --white: #ffffff;
  --lavender: #dcd0ff;
  --mint: #c8f47f;
  --peach: #ffb48f;
  --blue: #c9e7ff;
  --yellow: #fff2a6;
  --muted: #625d54;
  --dark: #111111;
  --dark-soft: #242424;
  --line: 2px solid var(--ink);
  --radius: 8px;
  --shadow: 5px 5px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image: linear-gradient(rgba(23, 23, 23, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
}

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

ul {
  margin: 0;
  padding-left: 18px;
}

li {
  margin: 7px 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  max-width: 850px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(29px, 3.7vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(21px, 2.25vw, 28px);
  line-height: 1;
  letter-spacing: 0;
}

p {
  line-height: 1.55;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 9px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: var(--line);
  border-radius: 999px;
  background: rgba(251, 246, 237, 0.9);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links,
.nav-cta,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  padding-right: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: var(--line);
  border-radius: 50%;
  background: var(--mint);
  font-size: 12px;
}

.menu-toggle {
  display: none;
}

.nav-links {
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 800;
}

.nav-links a,
.nav-cta {
  padding: 11px 13px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a.is-active {
  background: var(--lavender);
}

.nav-cta {
  justify-content: center;
  border: var(--line);
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 36px auto 0;
}

section[id] {
  scroll-margin-top: 112px;
}

.template-panel {
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pill {
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 13px;
  border: var(--line);
  border-radius: 999px;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.button {
  justify-content: center;
  gap: 12px;
  padding: 12px 15px;
  border: var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.button span:last-child {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  line-height: 1;
}

.button-dark {
  background: var(--ink);
  color: var(--white);
}

.button-light {
  background: var(--white);
  color: var(--ink);
}

.hero {
  min-height: clamp(620px, 78vh, 760px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(410px, 0.92fr);
}

.hero-copy {
  padding: clamp(28px, 4.4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-visual {
  padding: clamp(20px, 3vw, 36px);
  display: grid;
  place-items: center;
  border-left: var(--line);
  background: var(--lavender);
}

.dashboard-shell {
  width: min(100%, 470px);
  display: grid;
  gap: 14px;
  padding: 16px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--white);
  box-shadow: var(--shadow);
}

.dashboard-top {
  display: flex;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.dashboard-top span {
  width: 12px;
  height: 12px;
  border: 1px solid var(--white);
  border-radius: 50%;
}

.dashboard-score {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: var(--dark-soft);
}

.dashboard-score p,
.dashboard-score small {
  color: #d8d8d8;
}

.dashboard-score strong {
  display: block;
  margin: 5px 0;
  font-size: clamp(46px, 8vw, 72px);
  line-height: 0.9;
}

.pipeline-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pipeline-board article {
  min-height: 156px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: #181818;
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.bar.long {
  width: 92%;
}

.bar.medium {
  width: 68%;
}

.bar.short {
  width: 48%;
}

.tag {
  margin-top: auto;
  padding: 8px 9px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.signal-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: #181818;
}

.signal-grid span {
  color: #d8d8d8;
}

.marquee-band {
  margin: 26px auto 78px;
  width: 100%;
  overflow: hidden;
  border: var(--line);
  border-radius: 999px;
  background: var(--mint);
}

.marquee-track {
  width: max-content;
  display: flex;
  gap: 22px;
  padding: 10px 0;
  animation: scrollText 32s linear infinite;
  font-size: clamp(15px, 1.8vw, 24px);
  font-weight: 900;
  white-space: nowrap;
}

.services-section,
.about-section,
.metrics-section,
.case-section,
.process-section,
.philosophy-section,
.tools-section,
.cta-section {
  margin-bottom: clamp(76px, 10vw, 118px);
}

.section-heading {
  margin-bottom: 34px;
}

.center-heading {
  display: grid;
  justify-items: center;
  text-align: center;
}

.center-heading h2 {
  max-width: 940px;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
}

.split-heading h2 {
  max-width: 820px;
}

.split-heading p:last-child {
  max-width: 330px;
  margin-bottom: 0;
  color: var(--muted);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.about-system {
  min-height: 500px;
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  align-content: center;
  gap: 18px;
  border-right: var(--line);
  background: var(--blue);
}

.about-portrait {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.about-portrait img {
  width: 100%;
  height: clamp(420px, 43vw, 620px);
  display: block;
  object-fit: cover;
  object-position: center top;
}

.about-portrait figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 9px 13px;
  border: var(--line);
  border-radius: 999px;
  background: var(--mint);
  font-size: 13px;
  font-weight: 900;
}

.tools-grid span {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 11px;
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.about-copy {
  padding: clamp(28px, 4.2vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-copy p,
.service-card p,
.case-card p,
.process-grid p,
.philosophy-section p,
.cta-section p {
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.case-card,
.process-grid article {
  padding: 18px;
  display: flex;
  flex-direction: column;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--lavender);
  box-shadow: 0 0 0 var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover,
.case-card:hover,
.process-grid article:hover {
  transform: translate(-3px, -3px);
  box-shadow: 4px 4px 0 var(--ink);
}

.service-card h3 {
  margin-top: 14px;
}

.service-card p {
  min-height: 92px;
}

.card-index,
.process-grid span {
  font-size: 14px;
  font-weight: 900;
}

.mint {
  background: var(--mint);
}

.peach {
  background: var(--peach);
}

.blue {
  background: var(--blue);
}

.yellow {
  background: var(--yellow);
}

.metrics-section {
  padding: clamp(24px, 3.8vw, 42px);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.metrics-grid article {
  min-height: 150px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--white);
}

.metrics-grid strong {
  font-size: clamp(31px, 4vw, 48px);
  line-height: 0.95;
}

.metrics-grid span {
  color: #dedede;
  font-weight: 800;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.case-see-all {
  display: none;
}

.case-card {
  min-height: 365px;
}

.case-card:nth-child(2),
.case-card:nth-child(4) {
  grid-column: span 2;
}

.case-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-meta b {
  padding: 7px 9px;
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
}

.case-card a {
  width: fit-content;
  margin-top: auto;
  padding-top: 16px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.process-grid article {
  min-height: 245px;
  background: var(--white);
}

.process-grid article:nth-child(2) {
  background: var(--mint);
}

.process-grid article:nth-child(3) {
  background: var(--peach);
}

.process-grid article:nth-child(4) {
  background: var(--blue);
}

.process-grid span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: auto;
  border: var(--line);
  border-radius: 50%;
  background: var(--white);
}

.process-grid h3 {
  margin-top: 36px;
}

.philosophy-section {
  padding: clamp(28px, 4.6vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 34px;
  background: var(--dark);
  color: var(--white);
}

.philosophy-section .pill {
  color: var(--ink);
}

.philosophy-section p {
  color: #e4e4e4;
  font-size: clamp(17px, 1.55vw, 20px);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tools-grid span:nth-child(3n + 1) {
  background: var(--lavender);
}

.tools-grid span:nth-child(3n + 2) {
  background: var(--mint);
}

.tools-grid span:nth-child(3n + 3) {
  background: var(--blue);
}

.cta-section {
  min-height: auto;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: 34px;
  background: var(--yellow);
}

.cta-section h2 {
  max-width: 780px;
  font-size: clamp(42px, 5.6vw, 70px);
}

.cta-section p {
  max-width: 680px;
  margin-top: 20px;
  margin-bottom: 0;
  font-size: clamp(16px, 1.5vw, 19px);
}

.cta-side {
  display: grid;
  gap: 16px;
}

.cta-mini-panel {
  position: relative;
  padding: 18px;
  display: grid;
  gap: 10px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.cta-mini-panel span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.book-audit-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.contact-quick-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.contact-icon-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: var(--line);
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  transition: transform 180ms ease, background 180ms ease;
}

.contact-icon-btn:nth-child(2) {
  background: var(--blue);
}

.contact-icon-btn:hover {
  transform: translate(-1px, -1px);
}

.contact-icon-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.cta-mini-panel b {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: var(--line);
  border-radius: 999px;
  background: var(--lavender);
  font-size: 14px;
}

.cta-mini-panel b:nth-child(3) {
  background: var(--mint);
}

.cta-mini-panel b:nth-child(4) {
  background: var(--blue);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.cta-actions > .button,
.book-audit-row {
  width: 100%;
}

.book-audit-row .button {
  flex: 1 1 auto;
  min-width: 0;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 22px;
  padding: 22px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a:hover {
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scrollText {
  from {
    transform: translateX(0);
  }

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

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
    border-radius: 24px;
  }

  .nav-links {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .about-section,
  .philosophy-section,
  .cta-section {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .about-system {
    border-left: 0;
    border-right: 0;
    border-top: var(--line);
  }

  .about-system {
    order: 2;
    min-height: auto;
  }

  .about-portrait img {
    height: min(560px, 92vw);
  }

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

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

  .case-card:nth-child(2),
  .case-card:nth-child(4) {
    grid-column: span 1;
  }

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

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

  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    top: 10px;
    margin-top: 10px;
    grid-template-columns: 1fr auto;
    border-radius: 26px;
  }

  .brand {
    justify-content: flex-start;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    gap: 4px;
    border: var(--line);
    border-radius: 50%;
    background: var(--mint);
    cursor: pointer;
  }

  .menu-toggle span {
    width: 18px;
    height: 2px;
    display: block;
    background: var(--ink);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .site-header.is-menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header.is-menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-cta,
  .nav-links {
    grid-column: 1 / -1;
  }

  .nav-links {
    display: none;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .site-header.is-menu-open .nav-links {
    display: grid;
  }

  .nav-links a,
  .nav-cta {
    min-height: 38px;
    display: flex;
    justify-content: center;
    place-items: center;
    padding: 9px 8px;
    text-align: center;
  }

  .nav-cta {
    display: none;
  }

  .site-header.is-menu-open .nav-cta {
    display: inline-flex;
  }

  main {
    margin-top: 24px;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy,
  .about-copy {
    padding: 24px;
  }

  .pipeline-board,
  .service-grid,
  .metrics-grid,
  .case-grid,
  .process-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-shell {
    box-shadow: 3px 3px 0 var(--ink);
  }

  .split-heading {
    display: grid;
    align-items: start;
  }

  .metrics-section,
  .philosophy-section,
  .cta-section {
    padding: 24px;
  }

  .cta-section {
    gap: 24px;
  }

  .cta-side {
    width: 100%;
  }

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

  .service-card p {
    min-height: auto;
  }

  .case-card {
    min-height: auto;
  }

  .case-see-all {
    width: 100%;
    display: inline-flex;
    background: var(--yellow);
    box-shadow: 3px 3px 0 var(--ink);
  }

  .case-grid.is-collapsed .case-card:nth-of-type(n + 3) {
    display: none;
  }

  .case-grid:not(.is-collapsed) .case-see-all {
    display: none;
  }

  .site-footer {
    display: grid;
  }
}
