:root {
  --bg: #edf4f8;
  --bg-deep: #e3eef6;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --surface-soft: #f5faff;
  --ink: #0f2239;
  --ink-soft: #4e6178;
  --line: rgba(133, 161, 189, 0.32);
  --line-strong: rgba(101, 140, 179, 0.44);
  --primary: #0d7a80;
  --primary-ink: #0c4c57;
  --primary-deep: #102c45;
  --accent: #1d4ed8;
  --accent-soft: #dae8ff;
  --focus: #0ea5e9;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --radius-sm: 11px;
  --shadow-hero: 0 30px 60px rgba(12, 28, 47, 0.16);
  --shadow-soft: 0 16px 34px rgba(12, 31, 52, 0.1);
  --shadow-card: 0 10px 24px rgba(10, 31, 53, 0.07);
  --motion-fast: 170ms;
  --motion-base: 260ms;
  --motion-slow: 520ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--ink);
  background: var(--bg);
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  padding-top: 0;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  animation: ambientDrift 22s ease-in-out infinite alternate;
  background:
    radial-gradient(1150px 600px at 92% -8%, rgba(187, 223, 255, 0.64) 0%, rgba(187, 223, 255, 0) 68%),
    radial-gradient(900px 500px at 0% 100%, rgba(182, 245, 227, 0.62) 0%, rgba(182, 245, 227, 0) 67%),
    radial-gradient(620px 330px at 50% 18%, rgba(198, 218, 255, 0.48) 0%, rgba(198, 218, 255, 0) 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.page-bg::before,
.page-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(34px);
  opacity: 0.34;
  pointer-events: none;
}

.page-bg::before {
  width: 390px;
  height: 390px;
  top: 8%;
  left: 6%;
  background: radial-gradient(circle, rgba(95, 196, 201, 0.7) 0%, rgba(95, 196, 201, 0) 70%);
  animation: ambientBlobA 19s ease-in-out infinite;
}

.page-bg::after {
  width: 430px;
  height: 430px;
  right: 5%;
  bottom: 6%;
  background: radial-gradient(circle, rgba(98, 143, 235, 0.62) 0%, rgba(98, 143, 235, 0) 70%);
  animation: ambientBlobB 22s ease-in-out infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.17;
  pointer-events: none;
  background-image:
    linear-gradient(transparent 97%, rgba(17, 43, 69, 0.1) 98%),
    linear-gradient(90deg, transparent 97%, rgba(17, 43, 69, 0.08) 98%);
  background-size: 28px 28px;
}

.container {
  width: min(1220px, calc(100% - 52px));
  margin: 0 auto;
}

.site-header {
  position: static;
  padding: 14px 0 0;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}

.site-header::after {
  content: none;
}

.nav-shell {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: var(--shadow-card);
  backdrop-filter: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: var(--ink);
  font-family: "Manrope", "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.brand-text {
  position: relative;
  padding-left: 0;
  transform: translateY(-0.2px);
}

.brand-text::before {
  content: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  transition:
    color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    background var(--motion-fast) ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 1.5px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(13, 122, 128, 0.85) 0%, rgba(29, 78, 216, 0.85) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--motion-base) ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.site-nav a.is-active {
  color: inherit;
  border-color: transparent;
  background: transparent;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Manrope", "Source Sans 3", "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.018em;
}

h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.55rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.12;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.3;
}

p {
  margin: 0;
}

.hero {
  padding: 34px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.07fr 0.93fr;
  gap: 16px;
}

.hero-copy,
.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
}

.hero-copy {
  padding: 46px 44px 36px;
  color: #ffffff;
  background-size: 150% 150%, 150% 150%, 180% 180%;
  animation: heroGradientDrift 18s ease-in-out infinite alternate;
  background:
    radial-gradient(300px 180px at 14% 10%, rgba(255, 255, 255, 0.21) 0%, rgba(255, 255, 255, 0) 75%),
    radial-gradient(500px 200px at 92% 92%, rgba(156, 217, 255, 0.26) 0%, rgba(156, 217, 255, 0) 72%),
    linear-gradient(123deg, #112d46 0%, #0d7a80 54%, #1c4fd8 100%);
  box-shadow: var(--shadow-hero);
}

.hero-copy::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  top: -180px;
  right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(6px);
  opacity: 0.7;
  animation: heroOrbFloat 15s ease-in-out infinite;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  background-image:
    linear-gradient(transparent 94%, rgba(255, 255, 255, 0.12) 95%),
    linear-gradient(90deg, transparent 94%, rgba(255, 255, 255, 0.12) 95%);
  background-size: 26px 26px;
}

.hero-copy > * {
  position: relative;
  z-index: 2;
}

.hero-panel {
  padding: 30px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  transition: transform var(--motion-base) ease, box-shadow var(--motion-base) ease;
}

.hero-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(12, 31, 52, 0.12);
}

.eyebrow {
  margin: 0 0 14px;
  width: fit-content;
  border: 1px solid rgba(126, 160, 192, 0.34);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--primary-ink);
  background: rgba(232, 246, 247, 0.92);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #d9f7f7;
  border-color: rgba(219, 244, 255, 0.35);
  background: rgba(217, 247, 247, 0.1);
}

.lead {
  margin-top: 18px;
  max-width: 62ch;
  color: rgba(247, 252, 255, 0.95);
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  transition:
    transform var(--motion-fast) ease,
    box-shadow var(--motion-base) ease,
    background var(--motion-base) ease,
    border-color var(--motion-base) ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    112deg,
    rgba(255, 255, 255, 0) 32%,
    rgba(255, 255, 255, 0.44) 48%,
    rgba(255, 255, 255, 0) 66%
  );
  transform: translateX(-135%);
  transition: transform var(--motion-slow) ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn[disabled] {
  opacity: 0.74;
  cursor: not-allowed;
  transform: none;
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: translateX(135%);
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn-primary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(126deg, #0d7a80 0%, #1d4ed8 100%);
  box-shadow: 0 10px 20px rgba(13, 122, 128, 0.34);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 14px 26px rgba(13, 122, 128, 0.42);
}

.btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.scope-note {
  margin-top: 18px;
  color: rgba(237, 249, 255, 0.9);
  font-size: 0.93rem;
}

.hero-panel h2 {
  color: #0f2a45;
  font-size: 1.38rem;
}

.hero-panel > p {
  margin-top: 10px;
  color: var(--ink-soft);
}

.kpi-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kpi-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px 12px;
  background:
    radial-gradient(160px 80px at 100% 0%, rgba(29, 78, 216, 0.1) 0%, rgba(29, 78, 216, 0) 75%),
    linear-gradient(180deg, rgba(251, 254, 255, 0.98) 0%, rgba(240, 248, 255, 0.92) 100%);
  transition: transform var(--motion-fast) ease, box-shadow var(--motion-base) ease;
}

.kpi-label {
  display: block;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.65rem;
  margin-bottom: 5px;
}

.kpi-value {
  display: block;
  color: #10253f;
  font-family: "Manrope", "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: 0.95rem;
}

.section {
  position: relative;
  padding: 58px 0;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68) 0%, rgba(247, 251, 255, 0.84) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 76ch;
}

.section-head h2 {
  margin-top: 8px;
}

.section-head p {
  margin-top: 10px;
  color: var(--ink-soft);
}

.timeline,
.deliverables-grid,
.quote-grid,
.guardrails-grid,
.engagement-grid {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.timeline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.deliverables-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.deliverables-grid .deliverable-card:first-child {
  grid-column: span 2;
}

.quote-grid,
.guardrails-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.engagement-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-item,
.deliverable-card,
.quote-card,
.guardrail,
.engagement-card,
.cta-shell,
.footer-meta {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}

.timeline-item,
.deliverable-card,
.quote-card,
.guardrail,
.engagement-card {
  --mx: 50%;
  --my: 50%;
  transform-style: preserve-3d;
  padding: 19px;
  transition:
    transform var(--motion-fast) ease,
    box-shadow var(--motion-base) ease,
    border-color var(--motion-base) ease,
    filter var(--motion-base) ease;
}

.timeline-item::before,
.deliverable-card::before,
.quote-card::before,
.guardrail::before,
.engagement-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(13, 122, 128, 0.66) 0%, rgba(29, 78, 216, 0.66) 100%);
  opacity: 0.7;
}

.timeline-item:hover,
.deliverable-card:hover,
.quote-card:hover,
.guardrail:hover,
.engagement-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(11, 34, 57, 0.11);
  border-color: var(--line-strong);
}

.timeline-item::after,
.deliverable-card::after,
.quote-card::after,
.guardrail::after,
.engagement-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-lg) - 1px);
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    300px circle at var(--mx) var(--my),
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0) 68%
  );
  transition: opacity var(--motion-base) ease;
}

.timeline-item:hover::after,
.deliverable-card:hover::after,
.quote-card:hover::after,
.guardrail:hover::after,
.engagement-card:hover::after {
  opacity: 1;
}

.timeline-item p,
.deliverable-card p,
.quote-card p,
.guardrail p,
.engagement-card p {
  margin-top: 8px;
  color: var(--ink-soft);
}

code {
  background: #e9f2ff;
  border: 1px solid #cddff2;
  border-radius: 7px;
  padding: 1px 6px;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.92em;
}

.heatmap-showcase {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 14px;
  align-items: center;
}

.heatmap-copy p {
  margin-top: 8px;
  color: var(--ink-soft);
}

.heatmap-frame {
  margin: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 10px;
  overflow: hidden;
  transition: transform var(--motion-fast) ease, box-shadow var(--motion-base) ease;
}

.heatmap-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 420ms ease, filter 420ms ease;
}

.heatmap-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(11, 34, 57, 0.14);
}

.heatmap-frame:hover img {
  transform: scale(1.018);
  filter: saturate(1.06) contrast(1.02);
}

blockquote {
  margin: 0;
  color: #143154;
  font-weight: 620;
}

.cta {
  padding-top: 62px;
}

.cta-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 24px;
  background:
    radial-gradient(250px 130px at 90% 0%, rgba(151, 205, 255, 0.25) 0%, rgba(151, 205, 255, 0) 80%),
    var(--surface);
  transition: transform var(--motion-fast) ease, box-shadow var(--motion-base) ease;
}

.cta-copy p {
  margin-top: 10px;
  color: var(--ink-soft);
}

.contact-widget-shell {
  padding: 12px;
  border-radius: 13px;
  border: 1px solid #c8d8ea;
  background: linear-gradient(180deg, #fcfeff 0%, #f4fafe 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.contact-form {
  display: grid;
  gap: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.form-field {
  display: grid;
  gap: 6px;
  color: #133251;
  font-size: 0.86rem;
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #bdd1e5;
  border-radius: 10px;
  background: #ffffff;
  color: #0f2239;
  font: inherit;
  font-size: 0.95rem;
  padding: 10px 11px;
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 126px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #7287a1;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #35516f;
  font-size: 0.82rem;
}

.form-consent input {
  margin-top: 3px;
}

.contact-form .btn {
  justify-self: start;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #f5f9fd 0%, #eef5fb 100%);
  padding: 40px 0 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.site-footer h2 {
  font-size: 1.18rem;
}

.site-footer ol {
  margin: 11px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.91rem;
}

.footer-meta {
  padding: 15px;
}

.footer-meta p + p {
  margin-top: 8px;
  color: var(--ink-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  will-change: opacity, transform;
}

.is-interactive {
  will-change: transform;
}

/* Enterprise refinement system */
:root {
  --surface-a: #ffffff;
  --surface-b: rgba(255, 255, 255, 0.94);
  --surface-c: linear-gradient(180deg, rgba(245, 250, 255, 0.94) 0%, rgba(235, 245, 253, 0.92) 100%);
  --surface-c-solid: #f2f8ff;
  --border-subtle: rgba(111, 144, 178, 0.34);
  --border-strong: rgba(90, 128, 167, 0.48);
  --line: var(--border-subtle);
  --line-strong: var(--border-strong);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-section: var(--radius-xl);
  --radius-card: var(--radius-lg);
  --radius-control: var(--radius-md);
  --shadow-soft: 0 12px 24px rgba(12, 31, 52, 0.08);
  --shadow-pop: 0 20px 42px rgba(12, 31, 52, 0.14);
  --shadow-card: var(--shadow-soft);
  --space-section-y: 46px;
  --space-grid-top: 18px;
  --accent-line: linear-gradient(90deg, rgba(13, 122, 128, 0.6) 0%, rgba(29, 78, 216, 0.6) 100%);
}

.section {
  padding: var(--space-section-y) 0;
}

.hero {
  padding: 28px 0 34px;
}

.section-shell {
  border-radius: var(--radius-section);
  padding: clamp(16px, 2vw, 24px);
}

.hero-grid.section-shell {
  padding: 0;
}

.section-shell.section-shell-tinted {
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid var(--border-subtle);
  background: var(--surface-c);
  box-shadow: var(--shadow-soft);
}

.section-alt {
  border-top: 0;
  border-bottom: 0;
  background: transparent;
}

.section-head {
  max-width: 64ch;
}

.section-head h2 {
  margin-top: 5px;
  max-width: 22ch;
}

.section-head p {
  margin-top: 7px;
  max-width: 62ch;
}

.eyebrow {
  margin: 0 0 10px;
  padding: 4px 9px;
  border-color: rgba(126, 160, 192, 0.42);
  font-size: 0.66rem;
  letter-spacing: 0.095em;
}

.lead,
.scope-note,
.cta-copy p,
.section-head p {
  max-width: 62ch;
}

.lead {
  margin-top: 14px;
}

.hero-actions {
  margin-top: 20px;
  gap: 10px;
}

.btn {
  border-radius: var(--radius-control);
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 700;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.24);
}

.btn-primary {
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(128deg, #0d6f78 0%, #1c4fd0 100%);
  box-shadow: 0 12px 22px rgba(13, 104, 122, 0.34);
}

.btn-primary:hover {
  box-shadow: 0 16px 28px rgba(13, 104, 122, 0.42);
}

.btn-primary:focus-visible {
  box-shadow:
    0 0 0 3px rgba(14, 165, 233, 0.24),
    0 16px 28px rgba(13, 104, 122, 0.42);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(13, 104, 122, 0.34);
}

.btn-secondary,
.btn-ghost {
  color: rgba(245, 252, 255, 0.95);
  border-color: rgba(214, 237, 255, 0.52);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.btn-secondary:hover,
.btn-secondary:focus-visible,
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(222, 240, 255, 0.72);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none;
}

.hero-panel {
  padding: 26px;
  border-color: var(--border-strong);
  background: var(--surface-a);
  box-shadow: var(--shadow-pop);
  backdrop-filter: none;
}

.hero-panel h2 {
  font-size: 1.34rem;
}

.hero-panel > p {
  margin-top: 9px;
}

.kpi-grid {
  margin-top: 16px;
  gap: 10px;
}

.kpi-card {
  border-radius: var(--radius-control);
  padding: 11px 12px;
}

.kpi-card.card {
  border-color: var(--border-subtle);
  box-shadow: none;
}

.timeline,
.deliverables-grid,
.quote-grid,
.guardrails-grid,
.engagement-grid {
  margin-top: var(--space-grid-top);
  gap: 10px;
}

.timeline-item,
.deliverable-card,
.quote-card,
.guardrail,
.engagement-card {
  padding: 18px;
}

.timeline-item::before,
.deliverable-card::before,
.quote-card::before,
.guardrail::before,
.engagement-card::before,
.timeline-item::after,
.deliverable-card::after,
.quote-card::after,
.guardrail::after,
.engagement-card::after {
  content: none;
}

.card {
  position: relative;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: var(--surface-b);
  box-shadow: var(--shadow-soft);
  backdrop-filter: none;
}

.card-primary,
.card-surface-a {
  border-color: var(--border-strong);
  background: var(--surface-a);
  box-shadow: var(--shadow-pop);
}

.card-secondary,
.card-surface-b {
  background: var(--surface-b);
}

.card-tinted,
.card-surface-c {
  border-color: var(--border-subtle);
  background: var(--surface-c);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.68),
    var(--shadow-soft);
}

.card-accent::before {
  content: none;
}

.card-interactive {
  transition:
    transform var(--motion-fast) ease,
    box-shadow var(--motion-base) ease,
    border-color var(--motion-base) ease;
}

.card-interactive:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 30px rgba(11, 34, 57, 0.12);
}

.card-interactive:focus-within {
  border-color: var(--focus);
  box-shadow:
    0 0 0 3px rgba(14, 165, 233, 0.22),
    0 16px 30px rgba(11, 34, 57, 0.12);
}

.timeline-item p,
.deliverable-card p,
.quote-card p,
.guardrail p,
.engagement-card p {
  margin-top: 7px;
  max-width: 58ch;
  color: var(--ink-soft);
}

.heatmap-showcase {
  margin-top: 16px;
  padding: 16px;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
  gap: 14px;
  align-items: start;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    var(--shadow-soft);
}

.artifact-pill {
  margin: 0;
  width: fit-content;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 3px 8px;
  color: #274c74;
  background: rgba(255, 255, 255, 0.72);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.heatmap-copy h3 {
  margin-top: 8px;
}

.heatmap-copy p {
  margin-top: 8px;
  max-width: 42ch;
}

.heatmap-frame {
  padding: 12px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-strong);
  background: var(--surface-c-solid);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.84);
}

.heatmap-frame img {
  border-radius: 8px;
  filter: saturate(0.82) contrast(0.95);
}

.heatmap-frame figcaption {
  margin-top: 8px;
  color: #49627e;
  font-size: 0.76rem;
  line-height: 1.4;
}

.heatmap-frame:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(11, 34, 57, 0.12);
}

.heatmap-frame:hover img {
  transform: none;
  filter: saturate(0.86) contrast(0.98);
}

.cta {
  padding-top: 54px;
}

.cta-shell {
  gap: 16px;
  padding: 0;
  align-items: start;
  box-shadow: none;
  border: 0;
  background: transparent;
}

.cta-copy p {
  margin-top: 8px;
}

.contact-widget-shell {
  padding: 16px;
  border-radius: var(--radius-card);
  border-color: rgba(104, 144, 181, 0.54);
  background: linear-gradient(180deg, #fdfefe 0%, #eef6ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    var(--shadow-pop);
}

.contact-form {
  gap: 14px;
}

.form-grid {
  gap: 12px;
}

.form-field {
  gap: 6px;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
}

.form-field input,
.form-field textarea {
  border-color: rgba(118, 152, 187, 0.52);
  border-radius: var(--radius-control);
  padding: 11px 12px;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  border-color: #0b7eac;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.form-consent {
  gap: 10px;
  font-size: 0.8rem;
}

.form-consent input {
  accent-color: var(--primary);
}

.contact-form .btn-submit {
  width: 100%;
  justify-self: stretch;
  justify-content: center;
  min-height: 46px;
  font-size: 0.93rem;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 30px rgba(13, 104, 122, 0.4);
}

.contact-form .btn-submit:hover {
  box-shadow: 0 20px 34px rgba(13, 104, 122, 0.46);
}

.contact-form .btn-submit:focus-visible {
  box-shadow:
    0 0 0 3px rgba(14, 165, 233, 0.26),
    0 20px 34px rgba(13, 104, 122, 0.46);
}

.card-tag {
  display: inline-flex;
  margin: 0 0 10px;
  border: 1px solid rgba(124, 163, 199, 0.44);
  border-radius: 999px;
  padding: 2px 8px;
  color: #1f4c72;
  background: rgba(238, 247, 255, 0.9);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a:focus-visible,
.brand:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

@keyframes ambientDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0, -6px, 0) scale(1.01);
  }
}

@keyframes ambientBlobA {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.28;
  }
  50% {
    transform: translate3d(26px, -14px, 0) scale(1.08);
    opacity: 0.4;
  }
}

@keyframes ambientBlobB {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.24;
  }
  50% {
    transform: translate3d(-28px, 16px, 0) scale(1.05);
    opacity: 0.38;
  }
}

@keyframes heroGradientDrift {
  from {
    background-position: 0% 0%, 100% 100%, 16% 40%;
  }
  to {
    background-position: 18% 6%, 84% 94%, 82% 56%;
  }
}

@keyframes heroOrbFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.62;
  }
  50% {
    transform: translate3d(-16px, 18px, 0) scale(1.08);
    opacity: 0.82;
  }
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1110px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .timeline,
  .deliverables-grid,
  .quote-grid,
  .guardrails-grid,
  .engagement-grid,
  .cta-shell,
  .footer-grid,
  .heatmap-showcase {
    grid-template-columns: 1fr;
  }

  .deliverables-grid .deliverable-card:first-child {
    grid-column: auto;
  }
}

@media (max-width: 890px) {
  .site-nav {
    display: none;
  }

  .section {
    padding: 40px 0;
  }

  .section-shell {
    padding: 16px;
  }

  .section-shell.section-shell-tinted {
    padding: 18px;
  }

  .container {
    width: min(1220px, calc(100% - 30px));
  }

  .hero {
    padding-top: 24px;
  }

  .hero-copy {
    padding: 34px 24px 30px;
  }

  .hero-panel {
    padding: 22px;
  }

  .section-head h2 {
    max-width: unset;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .page-bg,
  .page-bg::before,
  .page-bg::after,
  .hero-copy,
  .hero-copy::before {
    animation: none !important;
  }

  .btn::after {
    display: none;
  }

  .is-interactive {
    transform: none !important;
  }
}
