/* RHK Solutions — SaaS-style corporate site */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Sora:wght@500;600;700&display=swap");

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #5b6577;
  --border: #e2e8f0;
  --accent: #3d4fd8;
  --accent-hover: #3141b8;
  --accent-soft: #eef1ff;
  --ink: #0b1220;
  --radius: 12px;
  --shadow: 0 1px 3px rgb(15 23 42 / 6%), 0 8px 24px rgb(15 23 42 / 6%);
  --shadow-lg: 0 4px 6px rgb(15 23 42 / 5%), 0 20px 48px rgb(61 79 216 / 12%);
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Sora", "DM Sans", system-ui, sans-serif;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgb(61 79 216 / 8%), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 20%, rgb(15 23 42 / 4%), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
  padding-inline: clamp(0.25rem, 1.5vw, 0.75rem);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.site-header--transparent {
  position: absolute;
  inset: 0 0 auto 0;
  background: transparent;
  border-bottom-color: rgb(255 255 255 / 12%);
}

.site-header--transparent.is-solid {
  position: fixed;
  background: rgb(255 255 255 / 94%);
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px);
  animation: header-in 0.28s ease;
}

.site-header--transparent.is-solid .logo {
  color: var(--text);
}

.site-header--transparent.is-solid .logo span {
  color: var(--accent);
}

.site-header--transparent.is-solid .nav-desktop a:not(.nav-cta) {
  color: var(--muted);
}

.site-header--transparent.is-solid .nav-desktop a:not(.nav-cta):hover,
.site-header--transparent.is-solid .nav-desktop a:not(.nav-cta).active {
  color: var(--text);
}

.site-header--transparent.is-solid .menu-toggle {
  border-color: var(--border);
  color: var(--text);
}

@keyframes header-in {
  from {
    transform: translateY(-8px);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.site-header--transparent .logo {
  color: #fff;
}

.site-header--transparent .logo span {
  color: #c7d0ff;
}

.site-header--transparent .nav-desktop a:not(.nav-cta) {
  color: rgb(255 255 255 / 78%);
}

.site-header--transparent .nav-desktop a:not(.nav-cta):hover,
.site-header--transparent .nav-desktop a:not(.nav-cta).active {
  color: #fff;
}

.site-header--transparent .menu-toggle {
  border-color: rgb(255 255 255 / 28%);
  color: #fff;
}

@media (max-width: 768px) {
  .site-header--transparent .nav-desktop {
    background: var(--ink);
    border-bottom-color: rgb(255 255 255 / 12%);
  }

  .site-header--transparent .nav-desktop a:not(.nav-cta) {
    color: rgb(255 255 255 / 85%);
  }

  .site-header--transparent.is-solid .nav-desktop {
    background: var(--surface);
    border-bottom-color: var(--border);
  }

  .site-header--transparent.is-solid .nav-desktop a:not(.nav-cta) {
    color: var(--muted);
  }
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo span {
  color: var(--accent);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-desktop a:not(.nav-cta):hover,
.nav-desktop a:not(.nav-cta).active {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  padding: 0.5rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-desktop {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }

  .nav-desktop.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-desktop .nav-cta {
    width: 100%;
    text-align: center;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.25s;
}

.btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 2px 8px rgb(79 70 229 / 35%);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgb(61 79 216 / 35%);
}

.btn-secondary {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-on-dark {
  color: #fff;
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 28%);
  backdrop-filter: blur(8px);
}

.btn-on-dark:hover {
  background: rgb(255 255 255 / 18%);
  color: #fff;
  border-color: rgb(255 255 255 / 45%);
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(4rem, 10vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse, rgb(99 102 241 / 12%) 0%, transparent 65%);
  pointer-events: none;
}

.hero-home {
  min-height: min(100vh, 920px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + clamp(3.5rem, 11vw, 8rem)) 0 clamp(5rem, 10vw, 7.5rem);
  color: #fff;
}

.hero-home::before {
  display: none;
}

.hero-home-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-home-photo {
  position: absolute;
  inset: -4%;
  background:
    url("https://images.unsplash.com/photo-1514565131-fce0801e5785?auto=format&fit=crop&w=2400&q=80")
      center / cover no-repeat;
  transform: scale(1.06);
  animation: hero-kenburns 22s ease-out forwards;
}

.hero-home-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgb(8 12 24 / 88%) 0%, rgb(8 12 24 / 72%) 42%, rgb(15 23 42 / 48%) 100%),
    linear-gradient(to top, rgb(8 12 24 / 75%) 0%, transparent 45%);
}

.hero-home-grain {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-home-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin-inline: 0;
  padding: clamp(1.25rem, 3.5vw, 2.5rem) clamp(0.25rem, 2vw, 1.25rem);
  animation: content-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-home-content::before {
  content: "";
  position: absolute;
  top: -12%;
  right: 8%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(157 176 255 / 28%), transparent 70%);
  pointer-events: none;
  animation: glow-pulse 5s ease-in-out infinite;
  z-index: -1;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 1.35rem;
  color: #fff;
}

.hero-brand::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 1.1rem;
  background: linear-gradient(90deg, #9db0ff, transparent);
  border-radius: 999px;
  transform-origin: left;
  animation: line-grow 1s 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-home h1 {
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  font-weight: 600;
  margin: 0 0 1.35rem;
  max-width: 16ch;
  color: #fff;
  padding-right: 0.5rem;
}

.hero-home .lead {
  color: rgb(226 232 240 / 88%);
  max-width: 42ch;
  margin-bottom: 2.25rem;
  padding-right: 0.75rem;
  line-height: 1.7;
}

.hero-home .btn-primary {
  box-shadow: 0 8px 28px rgb(61 79 216 / 45%);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 1;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1.5px solid rgb(255 255 255 / 35%);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero-scroll span {
  width: 3px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
  animation: scroll-pulse 1.8s ease-in-out infinite;
}

@keyframes hero-kenburns {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.14) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes scroll-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(8px);
  }
}

@keyframes content-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes line-grow {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-home-photo,
  .hero-home-content,
  .hero-brand::after,
  .hero-home-content::before {
    animation: none;
  }

  .hero-scroll span {
    animation: none;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  margin: 0 0 1.25rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  background: linear-gradient(145deg, var(--surface) 0%, var(--accent-soft) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

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

.section-head {
  max-width: 640px;
  margin-bottom: 2.75rem;
  padding-inline: 0.15rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.9rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 52ch;
  padding-right: 0.5rem;
}

/* Cards grid */
.grid-3 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgb(79 70 229 / 25%);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.review-stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.review-text {
  color: var(--text);
  font-style: italic;
}

.review-meta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

/* Industries pills */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill {
  padding: 0.5rem 1rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
}

.industry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.industry-list li {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  padding: 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: color 0.25s, padding-left 0.3s ease, background 0.25s;
  border-radius: 8px;
}

.industry-list li:hover {
  color: var(--accent);
  padding-left: 1rem;
  background: rgb(61 79 216 / 5%);
}

/* Service rows (homepage) */
.service-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.service-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.65rem 1rem;
  margin-inline: -1rem;
  border-bottom: 1px solid var(--border);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.service-row:hover {
  color: inherit;
  background: var(--accent-soft);
  transform: translateX(6px);
  box-shadow: 0 10px 30px rgb(61 79 216 / 10%);
  border-color: transparent;
}

.service-row-index {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  min-width: 1.75rem;
  transition: transform 0.3s ease;
}

.service-row:hover .service-row-index {
  transform: scale(1.08);
}

.service-row-body h3 {
  font-size: 1.25rem;
  margin: 0 0 0.45rem;
}

.service-row-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.975rem;
  max-width: 48ch;
  line-height: 1.65;
  padding-right: 0.5rem;
}

.service-row-arrow {
  font-size: 1.25rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-row:hover .service-row-arrow {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 640px) {
  .service-row {
    grid-template-columns: auto 1fr;
    padding: 1.4rem 0.75rem;
    margin-inline: -0.75rem;
  }

  .service-row:hover {
    transform: none;
  }

  .service-row-arrow {
    display: none;
  }
}

/* Split why section */
.section-split {
  background:
    linear-gradient(180deg, transparent, rgb(61 79 216 / 4%)),
    var(--bg);
}

.split-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .split-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: start;
  }
}

.split-intro h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0 0 0.9rem;
  padding-right: 0.5rem;
}

.split-intro p {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 34ch;
  line-height: 1.7;
  padding-right: 0.75rem;
}

.why-list {
  display: flex;
  flex-direction: column;
}

.why-line {
  padding: 1.5rem 1rem;
  margin-inline: -1rem;
  border-bottom: 1px solid var(--border);
  border-radius: 10px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.why-line:first-child {
  border-top: 1px solid var(--border);
}

.why-line:hover {
  background: rgb(61 79 216 / 5%);
  transform: translateX(4px);
}

.why-line h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
}

.why-line p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  padding-right: 0.5rem;
}

/* Quotes */
.quote-stack {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .quote-stack {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.quote {
  margin: 0;
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.quote::before {
  content: "“";
  position: absolute;
  top: 0.35rem;
  left: 0.85rem;
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.18;
  pointer-events: none;
}

.quote:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgb(61 79 216 / 25%);
}

.quote p {
  margin: 0 0 1.35rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
  padding: 0.75rem 0.25rem 0;
}

.quote footer {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  font-style: normal;
  padding-inline: 0.25rem;
}

/* Why us */
.why-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.why-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.why-item:last-child,
.why-grid .why-item:nth-last-child(-n + 2) {
  border-bottom: none;
}

@media (min-width: 768px) {
  .why-item:nth-child(odd) {
    padding-right: 1.5rem;
  }

  .why-item:nth-child(even) {
    padding-left: 1.5rem;
    border-left: 1px solid var(--border);
  }

  .why-item {
    border-bottom: 1px solid var(--border);
  }

  .why-item:nth-last-child(-n + 2) {
    border-bottom: none;
    padding-bottom: 0;
  }
}

.why-item h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
}

.why-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #312e81 0%, var(--accent) 50%, #6366f1 100%);
  background-size: 160% 160%;
  color: #fff;
  padding: clamp(2.75rem, 6vw, 4.5rem) clamp(1.75rem, 4vw, 3rem);
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: cta-shift 10s ease-in-out infinite;
}

.cta-band h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  padding-inline: 0.5rem;
}

.cta-band p {
  margin: 0 auto 1.75rem;
  opacity: 0.95;
  max-width: 520px;
  line-height: 1.7;
  padding-inline: 0.75rem;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--accent);
  box-shadow: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cta-band .btn-primary:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
  transform: translateY(-2px);
}

@keyframes cta-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

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

/* Page hero (inner pages) */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 1rem;
}

.page-hero .lead {
  max-width: 52ch;
}

/* Who we are — parallax-ish blocks */
.parallax-section {
  position: relative;
}

.value-cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .value-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.3s ease-out;
}

.value-card[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}

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

/* Services accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.accordion-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.accordion-item:hover {
  border-color: rgb(79 70 229 / 30%);
}

.accordion-item.is-open {
  box-shadow: var(--shadow);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s;
}

.accordion-trigger:hover {
  background: var(--accent-soft);
}

.accordion-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  transition: transform 0.3s;
}

.accordion-item.is-open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.accordion-item.is-open .accordion-panel {
  grid-template-rows: 1fr;
}

.accordion-panel-inner {
  overflow: hidden;
}

.accordion-panel-inner p {
  margin: 0;
  padding: 0 1.5rem 1.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Work grid */
.work-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
  width: 100%;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.work-card .tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.work-card h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.work-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgb(15 23 42 / 55%);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface);
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-backdrop.is-open .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 1.5rem 1.5rem 0;
  display: flex;
  justify-content: flex-end;
}

.modal-close {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--muted);
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  padding: 0 1.5rem 1.5rem;
}

.modal-body h2 {
  font-size: 1.375rem;
  margin: 0 0 0.5rem;
}

.modal-meta {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.modal-body p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.modal-outcome {
  padding: 1rem;
  background: var(--accent-soft);
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent-hover);
}

/* Contact */
.contact-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-card h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.contact-detail {
  margin-bottom: 1.25rem;
}

.contact-detail dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.contact-detail dd {
  margin: 0;
  font-weight: 500;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(79 70 229 / 20%);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  display: none;
}

.form-status.is-success {
  display: block;
  background: #ecfdf5;
  color: #047857;
}

.form-status.is-error {
  display: block;
  background: #fef2f2;
  color: #b91c1c;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.footer-brand span {
  color: var(--accent);
}

.site-footer p,
.site-footer a {
  font-size: 0.875rem;
  color: var(--muted);
}

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

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-home [data-reveal] {
  transform: translateY(32px);
}

.hero-home [data-reveal]:nth-child(1) {
  transition-delay: 80ms;
}
.hero-home [data-reveal]:nth-child(2) {
  transition-delay: 180ms;
}
.hero-home [data-reveal]:nth-child(3) {
  transition-delay: 280ms;
}
.hero-home [data-reveal]:nth-child(4) {
  transition-delay: 380ms;
}

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

[data-stagger] > *:nth-child(1) {
  transition-delay: 0ms;
}
[data-stagger] > *:nth-child(2) {
  transition-delay: 80ms;
}
[data-stagger] > *:nth-child(3) {
  transition-delay: 160ms;
}
[data-stagger] > *:nth-child(4) {
  transition-delay: 240ms;
}
[data-stagger] > *:nth-child(5) {
  transition-delay: 320ms;
}
[data-stagger] > *:nth-child(6) {
  transition-delay: 400ms;
}

/* Layout shell */
.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}
