/* ============================================================
   Alliance Resources — plain CSS (no build step required)
   Edit colors, spacing, and text freely. No Node.js needed.
   ============================================================ */

:root {
  --background: #08080a;
  --foreground: #f2ede8;
  --accent: #e85d26;
  --accent-light: #ff7940;
  --muted: #111116;
  --muted-foreground: #8a8a96;
  --border: #1e1e26;
  --card: #0e0e13;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

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

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

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

::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--background);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

/* ---------- Shared layout helpers ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  width: 100%;
}

.section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.eyebrow .line {
  display: none; /* removed the decorative dashes for a less templated look */
}
.eyebrow span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.section-title .dim {
  color: var(--muted-foreground);
}

.section-lead {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--accent-light);
}
.btn-primary svg {
  transition: transform 0.2s;
}
.btn-primary:hover svg {
  transform: translateX(2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  color: var(--foreground);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover {
  border-color: rgba(232, 93, 38, 0.4);
  background: rgba(232, 93, 38, 0.05);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(8, 8, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover {
  color: var(--foreground);
}
.nav-cta {
  display: none;
}
.nav-cta .btn-primary {
  padding: 0.625rem 1.25rem;
}
.menu-toggle {
  display: inline-flex;
  background: none;
  border: none;
  color: var(--foreground);
  padding: 0.5rem;
  cursor: pointer;
}
.menu-toggle .icon-close {
  display: none;
}
.menu-toggle.open .icon-menu {
  display: none;
}
.menu-toggle.open .icon-close {
  display: inline-flex;
}

.mobile-menu {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}
.mobile-menu.open {
  max-height: 28rem;
  opacity: 1;
}
.mobile-menu-inner {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-menu-inner a.nav-link {
  font-size: 1rem;
}
.mobile-menu-inner .btn-primary {
  margin-top: 0.5rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--background);
}
.hero-bg .gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, var(--card), var(--background) 50%, var(--background));
}
.hero-bg .glow-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: rgba(232, 93, 38, 0.08);
  border-radius: 9999px;
  filter: blur(64px);
}
.hero-bg .glow-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: rgba(232, 93, 38, 0.05);
  border-radius: 9999px;
  filter: blur(64px);
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(#f2ede8 1px, transparent 1px),
    linear-gradient(90deg, #f2ede8 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8rem 1.5rem 5rem;
  width: 100%;
}
.hero-inner {
  max-width: 64rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232, 93, 38, 0.1);
  border: 1px solid rgba(232, 93, 38, 0.2);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  margin-bottom: 2rem;
}
.hero-badge .dot {
  width: 0.375rem;
  height: 0.375rem;
  background: var(--accent);
  border-radius: 9999px;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.hero-badge span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero h1 .accent {
  color: var(--accent);
}
.hero h1 .underline-wrap {
  position: relative;
  display: inline-block;
}
.hero h1 .underline-wrap .underline {
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  right: 0;
  height: 0.25rem;
  background: var(--accent);
  border-radius: 9999px;
  transform: scaleX(0);
  transform-origin: left;
  animation: growLine 0.8s ease 0.7s forwards;
}
.hero-lead {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 5rem;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
}
.hero-stats .value {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hero-stats .label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--background);
}
.services .header {
  max-width: 42rem;
  margin-bottom: 4rem;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: 1rem;
  overflow: hidden;
}
.service-card {
  background: var(--background);
  transition: background 0.3s;
  overflow: hidden;
}
.service-card:hover {
  background: var(--card);
}
.service-card .media {
  position: relative;
  height: 12rem;
  width: 100%;
  overflow: hidden;
}
.service-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.service-card:hover .media img {
  transform: scale(1.05);
}
.service-card .media .veil {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 10, 0.4);
}
.service-card .body {
  padding: 2rem;
}
.service-card .icon-box {
  width: 3rem;
  height: 3rem;
  background: rgba(232, 93, 38, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background 0.3s;
  color: var(--accent);
}
.service-card:hover .icon-box {
  background: rgba(232, 93, 38, 0.2);
}
.service-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
.service-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tags .tag {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.25rem 0.625rem;
}

/* ============================================================
   DTP / GRAPHICAL ADAPTATION (outsourcing offering)
   ============================================================ */
.dtp {
  background: var(--background);
}
.dtp-panel {
  display: grid;
  grid-template-columns: 1fr;
  background: linear-gradient(135deg, rgba(232, 93, 38, 0.1), rgba(232, 93, 38, 0.03));
  border: 1px solid rgba(232, 93, 38, 0.2);
  border-radius: 1.5rem;
  overflow: hidden;
}
.dtp-copy {
  padding: 2.5rem;
}
.dtp-copy .section-title {
  margin-top: 1rem;
}
.dtp-tags {
  margin-top: 1.5rem;
}
.dtp-cta {
  margin-top: 2rem;
}
.dtp-media {
  position: relative;
  background: var(--muted);
  order: -1; /* image above copy on mobile */
  align-self: start; /* hug the image, don't stretch to copy height */
}
.dtp-media:not(.has-image) {
  min-height: 16rem; /* give the placeholder height when no image is present */
}
.dtp-media img {
  display: block;
  width: 100%;
  height: auto; /* area fits the image's width and natural aspect — no crop, no letterbox */
}
.dtp-media img.img-missing {
  display: none;
}
.dtp-media.has-image .dtp-placeholder {
  display: none;
}
.dtp-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(232, 93, 38, 0.4);
  background:
    radial-gradient(circle at 50% 40%, rgba(232, 93, 38, 0.08), transparent 70%),
    var(--muted);
}

/* ============================================================
   WORKFLOW
   ============================================================ */
.workflow {
  background: var(--card);
  position: relative;
  overflow: hidden;
}
.workflow .edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
}
.workflow .edge.left { left: 0; }
.workflow .edge.right { right: 0; }
.workflow .header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 5rem;
}
.workflow .header .eyebrow {
  justify-content: center;
}
.steps {
  position: relative;
}
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.step .circle {
  position: relative;
  z-index: 10;
  width: 4rem;
  height: 4rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}
.step .circle .num {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--accent);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5625rem;
  font-weight: 700;
  color: #fff;
}
.step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.step p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.7;
}
.workflow-callout {
  margin-top: 5rem;
  background: linear-gradient(to right, rgba(232, 93, 38, 0.1), rgba(232, 93, 38, 0.05));
  border: 1px solid rgba(232, 93, 38, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: center;
}
.workflow-callout h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.workflow-callout p {
  color: var(--muted-foreground);
}
.workflow-callout .btn-primary {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ============================================================
   STATS / ABOUT
   ============================================================ */
.stats {
  background: var(--background);
}
.stats .eyebrow {
  margin-bottom: 4rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 5rem;
}
.stat-cell {
  background: var(--background);
  transition: background 0.2s;
  padding: 2rem;
}
.stat-cell:hover {
  background: var(--card);
}
.stat-cell .num {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}
.stat-cell .label {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.stat-cell .desc {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.about-copy h2 {
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.about-copy h2 .dim {
  color: var(--muted-foreground);
}
.about-copy p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.about-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about-item {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: border-color 0.3s;
}
.about-item:hover {
  border-color: rgba(232, 93, 38, 0.3);
}
.about-item .row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.about-item .bullet {
  width: 0.375rem;
  height: 0.375rem;
  margin-top: 0.5rem;
  background: var(--accent);
  border-radius: 9999px;
  flex-shrink: 0;
}
.about-item .title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}
.about-item .body {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ============================================================
   CLIENTS
   ============================================================ */
.clients {
  background: var(--card);
}
.clients .header {
  text-align: center;
  margin-bottom: 4rem;
}
.clients .header .eyebrow {
  justify-content: center;
}
.clients .section-lead {
  max-width: 36rem;
  margin: 0 auto;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.client-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}
.client-cell img {
  width: 100%;
  height: 6rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.client-cell img:hover {
  opacity: 1;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--background);
}
.contact .header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 4rem;
}
.contact .header .eyebrow {
  justify-content: center;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.form-field label {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.375rem;
  display: block;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--foreground);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #3a3a46;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(232, 93, 38, 0.5);
}
.contact-form textarea {
  resize: none;
}
.contact-form .form-field.full {
  margin-bottom: 1rem;
}
.contact-form .btn-primary {
  width: 100%;
  padding: 0.875rem;
  border-radius: 0.75rem;
}
.form-error {
  color: #f87171;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 20rem;
  border: 1px solid rgba(232, 93, 38, 0.3);
  border-radius: 1rem;
  background: rgba(232, 93, 38, 0.05);
}
.form-success .circle {
  width: 4rem;
  height: 4rem;
  background: rgba(232, 93, 38, 0.1);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
}
.form-success h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.form-success p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  max-width: 20rem;
}
.hidden {
  display: none !important;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-info .brand h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.contact-info .brand p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.7;
}
.info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.info-item .icon-box {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(232, 93, 38, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--accent);
}
.info-item .label {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.125rem;
}
.info-item .value {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.whatsapp {
  color: #25d366;
  transition: color 0.2s;
}
.whatsapp:hover {
  color: #20b857;
}
.quote-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}
.quote-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.7;
  font-style: italic;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0a0a0c;
  border-top: 1px solid var(--border);
}
.footer-inner {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand img {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}
.footer-brand p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 20rem;
}
.footer-col .heading {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col ul a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-col ul a:hover {
  color: var(--foreground);
}
.footer-contact .row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.footer-contact .row svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.footer-contact .row span {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
}
.footer-bottom p {
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

/* ============================================================
   SCROLL-REVEAL animation (replaces framer-motion)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal.from-left {
  transform: translateX(-20px);
}
.reveal.from-left.in-view {
  transform: translateX(0);
}
.reveal.from-right {
  transform: translateX(20px);
}
.reveal.from-right.in-view {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
  * {
    scroll-behavior: auto !important;
  }
}

/* ---------- Keyframes ---------- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes growLine {
  to { transform: scaleX(1); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(-15%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

/* ============================================================
   RESPONSIVE — breakpoints mirror the original (sm 640, lg 1024)
   ============================================================ */
@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
  }
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
  .workflow-callout {
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .section {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
  .nav-inner {
    height: 5rem;
    padding: 0 2rem;
  }
  .nav-links {
    display: flex;
  }
  .nav-cta {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none;
  }
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .step {
    align-items: flex-start;
    text-align: left;
  }
  /* connecting line behind workflow steps */
  .steps::before {
    content: "";
    position: absolute;
    top: 2rem;
    left: calc(8.33% + 32px);
    right: calc(8.33% + 32px);
    height: 1px;
    background: var(--border);
  }
  .workflow-callout {
    flex-direction: row;
  }
  .dtp-panel {
    /* description takes all remaining width; image gets a snug column it fills edge-to-edge */
    grid-template-columns: 1fr 19rem;
  }
  .dtp-copy {
    padding: 3.5rem;
  }
  .dtp-media {
    order: 0; /* image to the right on desktop */
    align-self: stretch;
  }
  .dtp-media img {
    /* fills its column width exactly — no panel showing beside it */
    width: 100%;
    height: auto;
  }
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .stat-cell {
    padding: 2.5rem;
  }
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
  .clients-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .contact-grid {
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-content {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
