:root {
  --bg: #f3efe7;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #fffaf2;
  --text: #171717;
  --muted: #5f5a52;
  --line: rgba(23, 23, 23, 0.12);
  --accent: #b94f2d;
  --accent-deep: #8e381d;
  --accent-soft: #f0c6ad;
  --signal-red: #c83a2f;
  --shadow: 0 24px 60px rgba(54, 39, 24, 0.12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(240, 198, 173, 0.75), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(185, 79, 45, 0.16), transparent 24%),
    linear-gradient(180deg, #f7f2ea 0%, #efe7db 100%);
}

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 64px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 148px;
  height: auto;
}

.site-nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.hero,
.proof,
.services,
.industries,
.contact,
.site-footer {
  margin-top: 28px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-visual,
.proof,
.services,
.industries,
.contact-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-visual,
.proof,
.services,
.industries {
  background: var(--surface);
  backdrop-filter: blur(14px);
}

.hero-copy {
  padding: 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-deep);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.98;
}

h1,
h2 {
  font-family: "Fraunces", serif;
}

h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.8rem);
  max-width: 14ch;
}

.hero-headline {
  display: grid;
  min-height: 3.15em;
}

.hero-headline::before,
.hero-headline-live {
  grid-area: 1 / 1;
}

.hero-headline::before {
  content: attr(data-full-text);
  visibility: hidden;
  pointer-events: none;
  white-space: pre-wrap;
}

.strike {
  display: inline;
  padding: 0 0.04em;
  background-image:
    linear-gradient(var(--signal-red), var(--signal-red)),
    linear-gradient(color-mix(in srgb, var(--signal-red) 70%, white 30%), color-mix(in srgb, var(--signal-red) 70%, white 30%));
  background-repeat: no-repeat;
  background-position: 0 56%, 0 56%;
  background-size: 0% 0.12em, 0% 0.12em;
}

.strike.is-struck {
  animation: strike-draw 1.2s 0.12s ease forwards, strike-draw-soft 1.2s 0.56s ease forwards;
}

.headline-rest {
  white-space: pre-wrap;
}

.headline-emphasis {
  position: relative;
  display: inline-block;
  white-space: pre-wrap;
  padding-bottom: 0.08em;
}

.headline-emphasis::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 0.11em;
  background: var(--signal-red);
  transform: scaleX(0);
  transform-origin: left center;
}

.headline-emphasis.is-underlined::before {
  animation: emphasis-underline 0.9s ease forwards;
}

.headline-build,
.strike {
  white-space: pre-wrap;
}

.headline-rest.is-typing::after,
.headline-emphasis.is-typing::after,
.headline-build.is-typing::after,
.strike.is-typing::after,
.headline-rest.is-complete::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.9em;
  margin-left: 0.08em;
  vertical-align: -0.08em;
  background: var(--accent-deep);
}

.headline-rest.is-typing::after {
  animation: caret-blink 0.9s step-end infinite;
}

.headline-build.is-typing::after,
.strike.is-typing::after,
.headline-emphasis.is-typing::after {
  animation: caret-blink 0.9s step-end infinite;
}

.headline-rest.is-complete::after {
  opacity: 0;
  width: 0;
  margin-left: 0;
}

@keyframes strike-draw {
  from {
    background-size: 0% 0.12em, 0% 0.12em;
  }
  to {
    background-size: 100% 0.12em, 0% 0.12em;
  }
}

@keyframes strike-draw-soft {
  from {
    background-size: 100% 0.12em, 0% 0.12em;
  }
  to {
    background-size: 100% 0.12em, 100% 0.12em;
  }
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

@keyframes emphasis-underline {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  max-width: 13ch;
}

h3 {
  font-size: 1.35rem;
}

.hero-text,
.section-heading p,
.service-card p,
.industry-card p,
.contact-copy p,
.signal-card p,
.stat-card p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.02rem;
}

.hero-text {
  max-width: 34rem;
  margin: 22px 0 0;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #fff9f4;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-deep);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.hero-visual {
  min-height: 420px;
  padding: 26px;
  background: var(--surface);
  display: grid;
  place-items: center;
}

.mist {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.42;
  pointer-events: none;
  animation: mist-drift 9s ease-in-out infinite;
}

.mist-one {
  width: 180px;
  height: 180px;
  top: 42px;
  left: 38px;
  background: radial-gradient(circle, rgba(145, 178, 255, 0.38), rgba(145, 178, 255, 0.02));
}

.mist-two {
  width: 150px;
  height: 150px;
  right: 46px;
  bottom: 60px;
  background: radial-gradient(circle, rgba(124, 214, 220, 0.3), rgba(124, 214, 220, 0.02));
  animation-duration: 11s;
  animation-delay: -2s;
}

.mist-three {
  width: 120px;
  height: 120px;
  top: 132px;
  right: 120px;
  background: radial-gradient(circle, rgba(169, 187, 255, 0.24), rgba(169, 187, 255, 0.02));
  animation-duration: 8s;
  animation-delay: -4s;
}

.mist-four {
  width: 210px;
  height: 210px;
  top: 96px;
  left: 138px;
  background: radial-gradient(circle, rgba(166, 211, 255, 0.28), rgba(166, 211, 255, 0.03));
  animation-duration: 12s;
  animation-delay: -5s;
}

.mist-five {
  width: 140px;
  height: 140px;
  bottom: 34px;
  left: 78px;
  background: radial-gradient(circle, rgba(184, 222, 255, 0.24), rgba(184, 222, 255, 0.02));
  animation-duration: 10s;
  animation-delay: -1.5s;
}

.mist-six {
  width: 170px;
  height: 170px;
  top: 28px;
  right: 42px;
  background: radial-gradient(circle, rgba(193, 201, 255, 0.25), rgba(193, 201, 255, 0.02));
  animation-duration: 13s;
  animation-delay: -6s;
}

.flywheel-scene {
  position: relative;
  width: min(100%, 410px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.flywheel-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(185, 79, 45, 0.28);
  animation: flywheel-spin 48s linear infinite;
  z-index: 1;
}

.flywheel-orbit::before,
.flywheel-orbit::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.flywheel-orbit::after {
  inset: 52px;
  border-color: rgba(185, 79, 45, 0.12);
}

.flywheel-core {
  position: relative;
  width: 34%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  z-index: 2;
}

.flywheel-engine {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.flywheel-engine img {
  width: 64%;
  height: 64%;
  filter: brightness(0) saturate(100%) invert(20%) sepia(34%) saturate(1766%) hue-rotate(345deg) brightness(90%) contrast(92%);
  animation: flywheel-spin 48s linear infinite;
}

.flywheel-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translateY(-170px);
  z-index: 3;
}

.flywheel-badge {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%) rotate(calc(var(--angle) * -1));
}

.flywheel-upright {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: flywheel-spin 48s linear infinite reverse;
}

.flywheel-circle {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  text-decoration: none;
  border-radius: 50%;
  background: rgba(255, 252, 249, 0.96);
  border: 1px solid rgba(142, 56, 29, 0.16);
  box-shadow:
    0 18px 34px rgba(43, 25, 13, 0.12),
    0 8px 18px rgba(64, 87, 140, 0.08);
  flex: 0 0 auto;
}

.flywheel-circle:hover,
.flywheel-circle:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 22px 38px rgba(43, 25, 13, 0.16),
    0 10px 22px rgba(64, 87, 140, 0.1);
}

.flywheel-badge img {
  width: 36px;
  height: 36px;
  filter: brightness(0) saturate(100%) invert(20%) sepia(34%) saturate(1766%) hue-rotate(345deg) brightness(90%) contrast(92%);
}

.flywheel-label {
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
  text-transform: none;
  text-align: center;
  line-height: 1.15;
}

@keyframes flywheel-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes mist-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.34;
  }
  25% {
    transform: translate3d(4px, -6px, 0) scale(1.04);
    opacity: 0.42;
  }
  50% {
    transform: translate3d(-3px, 5px, 0) scale(0.98);
    opacity: 0.3;
  }
  75% {
    transform: translate3d(5px, 3px, 0) scale(1.03);
    opacity: 0.4;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.34;
  }
}

.proof,
.services,
.industries,
.contact-panel {
  padding: 42px;
}

.section-heading {
  display: grid;
  gap: 14px;
}

.section-heading p {
  max-width: 42rem;
  margin: 0;
}

.stats-grid,
.services-grid,
.industry-grid {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

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

.stat-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-card,
.service-card,
.industry-card {
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.54);
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-icon {
  position: relative;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.service-icon img {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  filter: brightness(0) saturate(100%) invert(20%) sepia(34%) saturate(1766%) hue-rotate(345deg) brightness(90%) contrast(92%);
}

.service-icon-compare {
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(248, 249, 255, 0.92), rgba(229, 232, 245, 0.72));
  box-shadow:
    0 12px 24px rgba(64, 87, 140, 0.1),
    0 8px 18px rgba(43, 25, 13, 0.06);
}

.stat-line {
  display: flex;
  align-items: baseline;
  gap: 0.2em;
  flex-wrap: nowrap;
}

.stat-value {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  color: var(--accent-deep);
  white-space: nowrap;
}

.stat-prefix {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  color: var(--accent-deep);
  white-space: nowrap;
}

.stat-arrow {
  display: inline-block;
  font-size: 0.62em;
  transform: translateY(-0.08em);
  margin-left: 0.04em;
}

.proof .stat-card:nth-child(2) {
  padding-right: 38px;
}

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

.services .section-heading h2 {
  max-width: none;
}

.services .section-heading p {
  max-width: none;
}

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

.industry-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.industries .section-heading h2,
.industries .section-heading p {
  max-width: none;
}

.industry-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(248, 249, 255, 0.92), rgba(229, 232, 245, 0.72));
  border: 1px solid rgba(126, 146, 194, 0.22);
  color: var(--accent-deep);
  margin-bottom: 18px;
}

.industry-icon img {
  width: 26px;
  height: 26px;
  color: var(--accent-deep);
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  background:
    linear-gradient(180deg, rgba(27, 19, 12, 0.96), rgba(46, 31, 18, 0.98)),
    #1c140d;
  color: #fff6ee;
}

.contact-copy p {
  color: rgba(255, 246, 238, 0.75);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff6ee;
  font: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 246, 238, 0.44);
}

.contact-form button {
  margin-top: 8px;
  width: fit-content;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: rgba(255, 246, 238, 0.8);
  font-size: 0.92rem;
}

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

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

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 6px 8px;
  color: var(--muted);
}

.footer-brand img {
  display: block;
  width: 148px;
  height: auto;
}

.footer-copy {
  margin: 0;
  font-size: 0.92rem;
  text-align: right;
}

@media (max-width: 980px) {
  .hero,
  .contact-panel,
  .stats-grid,
  .services-grid,
  .industry-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-visual,
  .proof,
  .services,
  .industries,
  .contact-panel {
    padding: 28px;
  }

  .hero-visual {
    min-height: 340px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0;
    padding-right: 0;
  }

  .footer-copy {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .site-header {
    gap: 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    gap: 16px;
    flex-wrap: wrap;
  }

  .brand img {
    width: 132px;
  }

  h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .hero-headline {
    display: block;
  }

  .hero-headline::before,
  .hero-headline-live {
    grid-area: auto;
  }

  .hero-headline::before {
    content: none;
  }

  .headline-build,
  .strike,
  .headline-rest,
  .headline-emphasis {
    white-space: normal;
  }

  h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-copy,
  .hero-visual,
  .proof,
  .services,
  .industries,
  .contact-panel {
    border-radius: 24px;
  }

  .hero-visual {
    min-height: 280px;
  }

  .flywheel-scene {
    width: min(100%, 286px);
  }

  .flywheel-icon {
    transform:
      translate(-50%, -50%)
      rotate(var(--angle))
      translateY(-116px);
  }

  .flywheel-badge {
    transform: translate(-50%, -50%) rotate(calc(var(--angle) * -1));
  }

  .flywheel-upright {
    animation: flywheel-spin 48s linear infinite reverse;
  }

  .flywheel-circle {
    width: 58px;
    height: 58px;
  }

  .flywheel-badge img {
    width: 28px;
    height: 28px;
  }

  .flywheel-label {
    display: none;
  }

  .flywheel-core {
    width: 28%;
  }

  .flywheel-engine img {
    width: 78%;
    height: 78%;
  }

  .service-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}
