:root {
  --ink: #071019;
  --ink-2: #111b27;
  --paper: #f5f7f8;
  --white: #ffffff;
  --muted: #66727f;
  --text: #111820;
  --line: #d6dee6;
  --line-dark: rgba(235, 241, 246, 0.13);
  --blue: #2f5f8f;
  --violet: #6f648f;
  --cyan: #6aa7b8;
  --mint: #5e9b83;
  --shadow: 0 20px 60px rgba(17, 24, 32, 0.12);
  --radius: 8px;
  --container: 1220px;
  --font-display: "Space Grotesk", "IBM Plex Sans", Arial, sans-serif;
  --font-body: "IBM Plex Sans", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "IBM Plex Sans", monospace;
  --blueprint-line: rgba(47, 95, 143, 0.075);
  --blueprint-strong: rgba(47, 95, 143, 0.16);
  --blueprint-cyan: rgba(106, 167, 184, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--paper);
  letter-spacing: 0;
}

body::selection {
  background: rgba(47, 95, 143, 0.2);
}

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

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.section-dark {
  color: var(--white);
  background:
    radial-gradient(circle at 78% 28%, rgba(47, 95, 143, 0.3), transparent 34%),
    radial-gradient(circle at 88% 88%, rgba(106, 167, 184, 0.13), transparent 28%),
    linear-gradient(135deg, #071019 0%, #071019 48%, #101822 100%);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--container), calc(100% - 48px));
  padding: 10px 0;
  transform: translateX(-50%);
  color: var(--white);
  transition:
    width 180ms ease,
    padding 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  width: min(var(--container), calc(100% - 32px));
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(5, 8, 22, 0.78);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 92px;
}

.brand-logo {
  display: block;
  width: 92px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  opacity: 0.88;
  transition: color 160ms ease, opacity 160ms ease;
}

.nav-links a:hover {
  color: #cfd8ff;
  opacity: 1;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.header-cta {
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  font-size: 14px;
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.header-cta svg,
.button svg,
.round-link svg,
.work-card-body svg,
.case-close svg,
.case-nav-button svg,
.mobile-nav-cta svg {
  width: 18px;
  height: 18px;
}

.mobile-menu-toggle,
.mobile-nav {
  display: none;
}

.mobile-menu-toggle {
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.mobile-menu-toggle:hover {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle i {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.mobile-menu-toggle i::before,
.mobile-menu-toggle i::after {
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  content: "";
  background: currentColor;
  transition:
    top 160ms ease,
    transform 160ms ease;
}

.mobile-menu-toggle i::before {
  top: 0;
}

.mobile-menu-toggle i::after {
  top: 8px;
}

.site-header.is-menu-open .mobile-menu-toggle {
  border-color: rgba(106, 167, 184, 0.68);
  background: rgba(47, 95, 143, 0.16);
}

.site-header.is-menu-open .mobile-menu-toggle i::before {
  top: 4px;
  transform: rotate(45deg);
}

.site-header.is-menu-open .mobile-menu-toggle i::after {
  top: 4px;
  transform: rotate(-45deg);
}

.mobile-menu-toggle:focus-visible,
.mobile-nav a:focus-visible,
.header-cta:focus-visible,
.button:focus-visible {
  outline: 2px solid rgba(106, 167, 184, 0.95);
  outline-offset: 3px;
}

.button {
  min-width: 210px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-size: 15px;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 18px 42px rgba(47, 95, 143, 0.28);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.04);
}

.button-secondary:hover,
.header-cta:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: 118px 0 52px;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(460px, 0.78fr) minmax(660px, 1.22fr);
  gap: 22px;
  align-items: center;
  min-height: calc(100svh - 164px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero .eyebrow {
  max-width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(130, 148, 255, 0.35);
  border-radius: 999px;
  color: #d7e1ea;
  background: rgba(255, 255, 255, 0.035);
}

.hero .eyebrow::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  background: linear-gradient(135deg, var(--cyan), var(--violet));
}

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

h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: clamp(46px, 4.7vw, 62px);
  line-height: 0.97;
  font-weight: 700;
  letter-spacing: 0;
}

h1 span,
.services h2 span,
.final-cta h2 span {
  background: linear-gradient(135deg, #7f98ad 0%, #85789a 52%, #6aa7b8 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  max-width: 540px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.64;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hero-meta span + span::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: rgba(255, 255, 255, 0.5);
}

.hero-meta svg {
  width: 18px;
  height: 18px;
}

.hero-visual {
  position: relative;
  min-height: clamp(620px, 73svh, 760px);
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero-visual::before {
  right: -19%;
  top: 50%;
  z-index: 1;
  width: clamp(1060px, 66vw, 1260px);
  height: clamp(1060px, 66vw, 1260px);
  border-radius: 50%;
  transform: translateY(-47%) scaleX(1.05);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12), transparent 10%),
    radial-gradient(circle at 50% 50%, rgba(106, 167, 184, 0.38), transparent 26%),
    radial-gradient(circle at 52% 54%, rgba(111, 100, 143, 0.34), transparent 46%),
    radial-gradient(circle at 50% 50%, rgba(47, 95, 143, 0.2), transparent 66%);
  filter: blur(34px);
  opacity: 0.78;
}

.hero-visual::after {
  right: 3%;
  top: 50%;
  z-index: 1;
  width: clamp(620px, 40vw, 780px);
  height: clamp(620px, 40vw, 780px);
  border-radius: 50%;
  transform: translateY(-42%);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.16), transparent 11%),
    radial-gradient(circle at 50% 50%, rgba(106, 167, 184, 0.34), transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(111, 100, 143, 0.26), transparent 62%);
  filter: blur(18px);
  box-shadow:
    0 0 44px rgba(106, 167, 184, 0.3),
    0 0 90px rgba(111, 100, 143, 0.22);
  opacity: 0.58;
}

.grid-plane {
  position: absolute;
  inset: 20% -24% -10% -18%;
  opacity: 0.32;
  transform: rotateX(62deg) rotateZ(-12deg);
  background-image:
    linear-gradient(rgba(111, 129, 148, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 129, 148, 0.2) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}

.hero-asset {
  position: absolute;
  right: -17%;
  top: 50%;
  z-index: 2;
  width: clamp(980px, 58vw, 1120px);
  max-height: min(780px, calc(100svh - 140px));
  height: auto;
  object-fit: contain;
  transform: translateY(-50%);
  filter: drop-shadow(0 34px 68px rgba(0, 0, 0, 0.32));
  user-select: none;
}

html.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
  will-change: opacity, transform;
}

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

html.reveal-ready .reveal-delay-1 {
  transition-delay: 70ms;
}

html.reveal-ready .reveal-delay-2 {
  transition-delay: 130ms;
}

html.reveal-ready .reveal-delay-3 {
  transition-delay: 190ms;
}

.challenge,
.services,
.approach,
.work,
.future {
  position: relative;
  padding: 72px 0;
}

.challenge,
.services,
.approach,
.work,
.future {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-position: center top;
  background-size: 72px 72px;
}

.challenge::before,
.services::before,
.approach::before,
.work::before,
.future::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(247, 248, 251, 0.96), rgba(247, 248, 251, 0.6) 38%, rgba(247, 248, 251, 0.96)),
    linear-gradient(180deg, rgba(247, 248, 251, 0.5), rgba(247, 248, 251, 0.96));
}

.challenge > .container,
.services > .container,
.approach > .container,
.work > .container,
.future > .container {
  position: relative;
  z-index: 1;
}

.challenge {
  background-color: var(--white);
}

.challenge-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr;
  gap: 56px;
  align-items: center;
}

h2 {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.14;
  font-weight: 700;
}

.challenge p,
.section-intro-row > p,
.service-card p,
.process-list p,
.work-card p,
.future p,
.growth-banner p,
.form-note,
.site-footer p {
  color: var(--muted);
  line-height: 1.62;
}

.challenge-grid > div:first-child p:not(.section-label) {
  max-width: 360px;
  font-size: 18px;
}

.challenge-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.challenge-items article {
  position: relative;
  display: flex;
  min-height: 218px;
  flex-direction: column;
  justify-content: flex-start;
  padding: 46px 28px 22px;
  border-left: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.68)),
    linear-gradient(90deg, rgba(47, 95, 143, 0.035) 1px, transparent 1px);
  background-size: auto, 24px 24px;
}

.challenge-items article::before {
  position: absolute;
  top: 18px;
  left: 28px;
  color: var(--blue);
  content: attr(data-node);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.challenge-items article::after {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 18px;
  height: 18px;
  border-top: 1px solid var(--blueprint-strong);
  border-right: 1px solid var(--blueprint-strong);
  content: "";
}

.challenge-items svg {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  color: var(--ink);
}

.challenge-items h3 {
  display: flex;
  min-height: 44px;
  align-items: flex-start;
  font-size: 17px;
}

.challenge-items p {
  font-size: 14px;
}

.section-intro-row {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 32px;
}

.section-intro-row h2 {
  max-width: 590px;
  margin-bottom: 0;
}

.section-intro-row > p {
  max-width: 600px;
  margin-bottom: 4px;
  font-size: 17px;
}

.services h2 {
  max-width: 560px;
}

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

.service-card,
.work-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.04);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.service-card:hover,
.work-card:hover,
.process-list article:hover,
.future-list span:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 95, 143, 0.34);
  box-shadow: 0 24px 58px rgba(17, 24, 39, 0.09);
}

.service-card {
  min-height: 230px;
  padding: 48px 24px 24px;
}

.service-card::before {
  position: absolute;
  top: 18px;
  left: 24px;
  z-index: 1;
  color: var(--blue);
  content: attr(data-layer);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.service-card::after {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 22px;
  border-top: 1px solid var(--blueprint-strong);
  border-right: 1px solid var(--blueprint-strong);
  content: "";
  opacity: 0.85;
}

.card-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  border-radius: 8px;
  color: var(--blue);
  background:
    radial-gradient(circle at 70% 18%, rgba(94, 155, 131, 0.5), transparent 30%),
    linear-gradient(135deg, rgba(47, 95, 143, 0.12), rgba(111, 100, 143, 0.18));
}

.card-icon svg {
  width: 25px;
  height: 25px;
}

.service-card p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  font-size: 15px;
}

.service-card h3 {
  position: relative;
  z-index: 1;
}

.growth-section {
  padding: 0 0 72px;
}

.growth-banner {
  position: relative;
  display: grid;
  grid-template-columns: 230px 1fr 84px;
  gap: 42px;
  align-items: center;
  min-height: 236px;
  overflow: hidden;
  padding: 36px 48px;
  border-radius: var(--radius);
  color: var(--white);
  background:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px),
    radial-gradient(circle at 85% 50%, rgba(111, 100, 143, 0.58), transparent 24%),
    radial-gradient(circle at 70% 0%, rgba(106, 167, 184, 0.12), transparent 28%),
    linear-gradient(135deg, #071019, #0e1722 58%, #171a2a);
  background-size: 40px 40px, 40px 40px, auto, auto, auto;
  box-shadow: var(--shadow);
}

.growth-banner::before {
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.58);
  content: "XAR / FOUNDATION STACK";
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.growth-banner::after {
  position: absolute;
  right: -110px;
  bottom: -150px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 52px rgba(111, 100, 143, 0.42);
}

.growth-banner .section-label {
  color: #9fb7ca;
}

.growth-banner h2 {
  max-width: 620px;
  margin-bottom: 14px;
  font-size: clamp(30px, 3vw, 42px);
}

.growth-banner p:not(.section-label) {
  max-width: 710px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.growth-asset {
  position: relative;
  height: 150px;
}

.growth-asset span {
  position: absolute;
  left: 26px;
  width: 152px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  transform: rotateX(64deg) rotateZ(-26deg);
  background: linear-gradient(135deg, rgba(106, 167, 184, 0.75), rgba(111, 100, 143, 0.36));
  box-shadow: 0 0 28px rgba(47, 95, 143, 0.3);
}

.growth-asset span:nth-child(1) {
  top: 18px;
}

.growth-asset span:nth-child(2) {
  top: 58px;
  opacity: 0.78;
}

.growth-asset span:nth-child(3) {
  top: 98px;
  opacity: 0.5;
}

.round-link {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.round-link:hover {
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.08);
}

.approach {
  padding-top: 0;
}

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

.process-list::before {
  position: absolute;
  top: 38px;
  left: 28px;
  right: 28px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--blueprint-strong), var(--blueprint-cyan));
}

.process-list article {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)) padding-box,
    linear-gradient(135deg, rgba(47, 95, 143, 0.36), rgba(106, 167, 184, 0.18), rgba(217, 222, 235, 0.8)) border-box;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.045);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.process-list article::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: linear-gradient(180deg, var(--blue), var(--cyan));
  opacity: 0.84;
}

.process-list article::after {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 18px;
  height: 18px;
  border-top: 1px solid var(--blueprint-strong);
  border-right: 1px solid var(--blueprint-strong);
  content: "";
  pointer-events: none;
}

.process-list article h3::after {
  display: block;
  width: 36px;
  height: 1px;
  margin-top: 14px;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.process-list span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(47, 95, 143, 0.16);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(47, 95, 143, 0.06);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.work {
  padding-top: 0;
}

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

.work-card {
  overflow: hidden;
}

.work-card-featured {
  grid-column: span 2;
}

.work-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 174px;
  padding: 22px;
  color: var(--white);
}

.work-preview::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent, #000 28%, #000);
}

.work-preview span {
  position: relative;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.8;
}

.work-preview em {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(5, 8, 22, 0.4);
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.preview-light em {
  color: rgba(18, 24, 38, 0.72);
  border-color: rgba(18, 24, 38, 0.12);
  background: rgba(255, 255, 255, 0.64);
}

.work-preview h3 {
  position: relative;
  max-width: 290px;
  margin-bottom: 0;
  font-size: 26px;
}

.preview-flower {
  min-height: 260px;
  isolation: isolate;
  background:
    radial-gradient(circle at 84% 16%, rgba(255, 198, 190, 0.34), transparent 24%),
    linear-gradient(135deg, #080b16, #13152a 58%, #24151c);
}

.preview-flower img {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: 82%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.66;
  filter: saturate(0.92) contrast(1.03);
}

.preview-flower::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 8, 22, 0.98) 0%, rgba(5, 8, 22, 0.74) 38%, rgba(5, 8, 22, 0.24) 72%),
    linear-gradient(180deg, rgba(5, 8, 22, 0.08), rgba(5, 8, 22, 0.78));
}

.preview-flower em {
  border-color: rgba(255, 209, 205, 0.26);
  background: rgba(80, 40, 54, 0.34);
}

.preview-flower span {
  color: #ffd7d2;
}

.preview-flower h3 {
  max-width: 360px;
}

.preview-dark {
  background:
    radial-gradient(circle at 78% 62%, rgba(94, 155, 131, 0.2), transparent 24%),
    linear-gradient(135deg, #031215, #0b141c);
}

.preview-light {
  color: #121826;
  background:
    radial-gradient(circle at 85% 32%, rgba(47, 95, 143, 0.18), transparent 24%),
    linear-gradient(135deg, #f8f6f2, #ebe8e2);
}

.preview-violet {
  background:
    radial-gradient(circle at 84% 50%, rgba(111, 100, 143, 0.7), transparent 28%),
    linear-gradient(135deg, #070716, #111034);
}

.work-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
}

.work-card-body h3 {
  margin-bottom: 4px;
  font-size: 16px;
}

.work-card-body p {
  margin-bottom: 0;
  font-size: 14px;
}

.work-card-body svg {
  flex: 0 0 auto;
  color: var(--blue);
}

.case-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(47, 95, 143, 0.18);
  border-radius: var(--radius);
  color: var(--blue);
  background: rgba(47, 95, 143, 0.06);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.case-open:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 95, 143, 0.34);
  background: rgba(47, 95, 143, 0.1);
}

.case-open:focus-visible,
.case-close:focus-visible,
.case-nav-button:focus-visible {
  outline: 3px solid rgba(106, 167, 184, 0.32);
  outline-offset: 3px;
}

.case-modal {
  width: min(1040px, calc(100% - 32px));
  max-height: min(780px, calc(100dvh - 32px));
  padding: 0;
  overflow: auto;
  border: 0;
  color: var(--white);
  background: transparent;
}

.case-modal::backdrop {
  background: rgba(3, 6, 19, 0.72);
  backdrop-filter: blur(16px);
}

.case-modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.15fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(106, 167, 184, 0.2), transparent 30%),
    linear-gradient(135deg, #071019, #0c1024 48%, #071019);
  background-size: 42px 42px, 42px 42px, auto, auto;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.46);
}

.case-modal-panel::before {
  position: absolute;
  inset: 18px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(106, 167, 184, 0.12);
  border-radius: 10px;
}

.case-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--white);
  background: rgba(5, 8, 22, 0.58);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.case-close:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(5, 8, 22, 0.78);
}

.case-modal-visual {
  position: relative;
  display: flex;
  min-height: 540px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 64px 34px 34px;
}

.case-modal-visual::before,
.case-modal-visual::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.case-modal-visual::before {
  right: -38px;
  bottom: 92px;
  width: 300px;
  height: 190px;
  border: 1px solid rgba(106, 167, 184, 0.24);
  border-radius: 18px;
  transform: skewY(-14deg) rotate(-4deg);
  background:
    linear-gradient(135deg, rgba(47, 95, 143, 0.28), rgba(106, 167, 184, 0.06)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    0 0 34px rgba(106, 167, 184, 0.18),
    inset 0 0 24px rgba(255, 255, 255, 0.08);
}

.case-modal-visual::after {
  right: 42px;
  bottom: 134px;
  width: 120px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 26px rgba(106, 167, 184, 0.42);
}

.case-modal-kicker,
.case-detail-grid span {
  position: relative;
  z-index: 1;
  width: fit-content;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.case-modal-visual h2 {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 14px 0 16px;
  color: var(--white);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.96;
}

.case-modal-visual p {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.case-modal[data-case-theme="flower"] {
  width: min(1120px, calc(100% - 32px));
}

.case-modal[data-case-theme="flower"] .case-modal-panel {
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.38fr);
}

.case-modal[data-case-theme="flower"] .case-modal-visual {
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 194, 186, 0.22), transparent 34%),
    radial-gradient(circle at 18% 78%, rgba(111, 100, 143, 0.18), transparent 36%),
    linear-gradient(135deg, #070916, #15162b 58%, #25151e);
}

.case-modal[data-case-theme="flower"] .case-modal-visual::before {
  top: 46px;
  right: -116px;
  bottom: auto;
  width: 560px;
  height: 330px;
  border-color: rgba(255, 209, 205, 0.3);
  border-radius: 16px;
  transform: rotate(-7deg);
  background:
    linear-gradient(90deg, rgba(5, 8, 22, 0.02), rgba(5, 8, 22, 0.36)),
    url("./assets/flower-studio-hero.png") center / cover;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.38),
    0 0 42px rgba(255, 184, 174, 0.12);
  opacity: 0.84;
}

.case-modal[data-case-theme="flower"] .case-modal-visual::after {
  right: 32px;
  bottom: 208px;
  width: 190px;
  height: 1px;
  transform: rotate(-7deg);
  background: linear-gradient(90deg, rgba(255, 209, 205, 0), #ffd1cd, rgba(106, 167, 184, 0.6));
  box-shadow: 0 0 22px rgba(255, 209, 205, 0.32);
}

.case-modal[data-case-theme="flower"] .case-modal-kicker {
  color: #ffd1cd;
}

.case-modal-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 76px 34px 34px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}

.case-modal-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.case-modal-controls > span {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.case-modal-controls > div {
  display: inline-flex;
  gap: 8px;
}

.case-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(47, 95, 143, 0.18);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(47, 95, 143, 0.06);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.case-nav-button:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 95, 143, 0.34);
  background: rgba(47, 95, 143, 0.1);
  box-shadow: 0 14px 28px rgba(47, 95, 143, 0.12);
}

.case-disclaimer {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(47, 95, 143, 0.16);
  border-radius: var(--radius);
  color: #3f4b63;
  background: rgba(47, 95, 143, 0.06);
  font-size: 14px;
}

.case-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.case-detail-grid section {
  min-height: 168px;
  padding: 18px;
  border: 1px solid rgba(47, 95, 143, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(47, 95, 143, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(47, 95, 143, 0.045) 1px, transparent 1px),
    #fff;
  background-size: 24px 24px;
}

.case-detail-grid h3 {
  margin: 10px 0 8px;
  font-size: 17px;
}

.case-detail-grid p,
.case-detail-grid li {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.case-detail-grid ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.case-modal-cta {
  align-self: flex-start;
}

body.modal-open {
  overflow: hidden;
}

.future {
  padding-top: 0;
}

.future-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
  padding-top: 64px;
  border-top: 1px solid var(--blueprint-strong);
}

.future-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  align-self: center;
}

.future-list span {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 24px 20px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: #263041;
  font-weight: 600;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.future-list span::before {
  position: absolute;
  top: 8px;
  left: 20px;
  color: var(--blue);
  content: attr(data-mode);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.future-list span::after {
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 20px;
  height: 1px;
  content: "";
  background: var(--blueprint-strong);
}

.final-cta {
  padding: 76px 0;
}

.final-grid {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 72px;
  align-items: center;
}

.final-cta .section-label {
  color: #9fb7ca;
}

.final-cta h2 {
  max-width: 700px;
  margin-bottom: 0;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--white);
  background: rgba(4, 8, 20, 0.72);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(106, 167, 184, 0.35);
  border-color: rgba(106, 167, 184, 0.72);
}

.contact-form .button {
  width: 100%;
  margin-top: 4px;
  border: 0;
  cursor: pointer;
}

.form-note {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.site-footer {
  padding: 30px 0;
  background: #071019;
  color: rgba(255, 255, 255, 0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 220px minmax(260px, 1fr) minmax(220px, auto) auto;
  gap: 28px;
  align-items: center;
}

.site-footer .brand {
  color: var(--white);
}

.site-footer p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}

.footer-links a,
.footer-mail {
  width: fit-content;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  transition: color 160ms ease;
}

.footer-links a:hover,
.footer-mail:hover {
  color: #9fb7ca;
}

.legal-page {
  min-height: 100vh;
  background:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px),
    var(--paper);
  background-size: 72px 72px;
}

.legal-main {
  padding: 132px 0 76px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 120px;
}

.legal-sidebar .section-label {
  margin-bottom: 14px;
}

.legal-sidebar h1 {
  max-width: 360px;
  margin-bottom: 18px;
  font-size: clamp(42px, 5vw, 64px);
}

.legal-sidebar p {
  color: var(--muted);
  line-height: 1.65;
}

.legal-content {
  position: relative;
  overflow: hidden;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    linear-gradient(90deg, rgba(47, 95, 143, 0.035) 1px, transparent 1px);
  background-size: auto, 28px 28px;
  box-shadow: var(--shadow);
}

.legal-content::before {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 24px;
  border-top: 1px solid var(--blueprint-strong);
  border-right: 1px solid var(--blueprint-strong);
  content: "";
}

.legal-content h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 34px);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: #394456;
  line-height: 1.72;
}

.legal-content ul {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding-left: 20px;
}

.legal-content a {
  color: var(--blue);
  font-weight: 700;
}

.legal-updated {
  margin-bottom: 28px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.reveal-ready .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 1180px) {
  :root {
    --container: 944px;
  }

  .site-header {
    width: min(var(--container), calc(100% - 40px));
  }

  .site-header.is-scrolled {
    width: min(var(--container), calc(100% - 32px));
  }

  .nav-links {
    gap: 20px;
  }

  .header-cta {
    min-height: 44px;
    padding: 0 16px;
  }

  .hero {
    min-height: auto;
    padding: 132px 0 88px;
  }

  .hero::before {
    position: absolute;
    right: -120px;
    bottom: -150px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(106, 167, 184, 0.16);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 80px rgba(47, 95, 143, 0.18);
  }

  .hero-grid,
  .challenge-grid,
  .section-intro-row,
  .future-grid,
  .final-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    gap: 0;
  }

  .hero-copy {
    max-width: 780px;
  }

  h1 {
    max-width: 760px;
    font-size: clamp(54px, 7vw, 72px);
    line-height: 0.98;
  }

  .hero-lead {
    max-width: 620px;
  }

  .hero-visual {
    display: none;
  }

  .hero-asset,
  .grid-plane {
    display: none;
  }

  .hero-visual::before,
  .hero-visual::after {
    display: none;
  }

  .challenge-grid {
    gap: 34px;
  }

  .challenge-grid > div:first-child p:not(.section-label) {
    max-width: 620px;
  }

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

  .challenge-items article {
    min-height: 198px;
  }

  .section-intro-row {
    gap: 18px;
    align-items: start;
  }

  .section-intro-row > p {
    max-width: 720px;
  }

  .growth-banner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 36px;
  }

  .growth-asset {
    display: none;
  }

  .growth-banner .round-link {
    display: none;
  }

  .future-grid,
  .final-grid {
    gap: 34px;
  }

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

  .work-card:last-child {
    grid-column: 1 / -1;
  }

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

  .contact-form {
    max-width: 620px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1.35fr;
    gap: 20px 32px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal-sidebar {
    position: static;
  }
}

@media (max-width: 900px) {
  :root {
    --container: 720px;
  }

  .site-header {
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 24px;
    transform: none;
    background: rgba(5, 8, 22, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
  }

  .site-header.is-scrolled {
    width: 100%;
    padding: 12px 24px;
    border-width: 0 0 1px;
    border-radius: 0;
    background: rgba(5, 8, 22, 0.96);
  }

  .nav-links,
  .header-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .mobile-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 24px;
    left: 24px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-10px);
    background:
      radial-gradient(circle at 85% 0%, rgba(125, 92, 255, 0.16), transparent 34%),
      rgba(6, 10, 26, 0.94);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(20px);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  .site-header.is-menu-open .mobile-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.035);
    font-size: 13px;
    font-weight: 700;
    transition:
      border-color 160ms ease,
      color 160ms ease,
      background 160ms ease;
  }

  .mobile-nav a:hover {
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--white);
    background: rgba(255, 255, 255, 0.07);
  }

  .mobile-nav .mobile-nav-cta {
    grid-column: 1 / -1;
    gap: 10px;
    min-height: 48px;
    color: var(--white);
    border-color: transparent;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    box-shadow: 0 18px 36px rgba(47, 95, 143, 0.24);
  }

  .brand {
    min-width: 88px;
  }

  .brand-logo {
    width: 88px;
  }

  .container {
    width: min(100% - 40px, var(--container));
  }

  .hero {
    padding: 118px 0 72px;
  }

  .hero::before {
    right: -210px;
    bottom: -230px;
  }

  h1 {
    font-size: clamp(46px, 8.5vw, 64px);
  }

  h2 {
    font-size: clamp(34px, 6vw, 46px);
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions {
    gap: 12px;
  }

  .challenge,
  .services,
  .approach,
  .work,
  .future,
  .final-cta {
    padding: 60px 0;
  }

  .growth-section {
    padding-bottom: 60px;
  }

  .service-card {
    min-height: 210px;
  }

  .process-list::before {
    display: none;
  }

  .process-list article {
    min-height: 196px;
  }

  .case-modal {
    width: min(620px, calc(100% - 28px));
    max-height: calc(100dvh - 28px);
  }

  .case-modal-panel {
    grid-template-columns: 1fr;
  }

  .case-modal[data-case-theme="flower"] .case-modal-panel {
    grid-template-columns: 1fr;
  }

  .case-modal-panel::before {
    inset: 12px;
  }

  .case-close {
    top: 14px;
    right: 14px;
  }

  .case-modal-visual {
    min-height: 292px;
    padding: 74px 26px 28px;
  }

  .case-modal[data-case-theme="flower"] .case-modal-visual::before {
    top: 34px;
    right: -142px;
    width: 430px;
    height: 250px;
  }

  .case-modal[data-case-theme="flower"] .case-modal-visual::after {
    right: 24px;
    bottom: 148px;
  }

  .case-modal-visual::before {
    right: -76px;
    bottom: 44px;
    width: 260px;
    height: 142px;
  }

  .case-modal-visual::after {
    right: 20px;
    bottom: 90px;
  }

  .case-modal-content {
    padding: 24px;
  }

  .case-detail-grid {
    grid-template-columns: 1fr;
  }

  .legal-main {
    padding: 104px 0 56px;
  }

  .legal-content {
    padding: 30px 24px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .site-header {
    padding: 16px;
  }

  .site-header.is-scrolled {
    padding: 12px 16px;
  }

  .mobile-menu-toggle {
    min-height: 40px;
    padding: 0 12px;
  }

  .mobile-nav {
    right: 16px;
    left: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
    border-radius: 16px;
  }

  .mobile-nav a {
    min-height: 42px;
  }

  .brand {
    min-width: 80px;
  }

  .brand-logo {
    width: 80px;
  }

  .hero {
    padding: 96px 0 52px;
  }

  .hero .eyebrow {
    max-width: 100%;
    margin-bottom: 16px;
    padding: 7px 10px;
    font-size: 10px;
  }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(36px, 10.5vw, 46px);
    line-height: 1;
  }

  h2 {
    font-size: clamp(30px, 9vw, 38px);
  }

  h3 {
    font-size: 18px;
  }

  .hero-lead {
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.56;
  }

  .hero-actions {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
  }

  .button {
    width: 100%;
    min-width: 0;
  }

  .hero-meta {
    display: grid;
    gap: 10px;
    font-size: 10px;
  }

  .hero-meta span + span::before {
    display: none;
  }

  .challenge,
  .services,
  .approach,
  .work,
  .future,
  .final-cta {
    padding: 48px 0;
  }

  .growth-section {
    padding-bottom: 48px;
  }

  .challenge-items,
  .service-grid,
  .process-list,
  .work-grid,
  .future-list {
    grid-template-columns: 1fr;
  }

  .challenge-items {
    border-bottom: 0;
  }

  .challenge-items article {
    min-height: auto;
    padding: 46px 18px 22px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .challenge-items article::before {
    left: 18px;
  }

  .challenge-items article::after {
    right: 18px;
  }

  .challenge-items svg {
    margin-bottom: 14px;
  }

  .challenge-items h3 {
    min-height: auto;
  }

  .section-intro-row {
    gap: 16px;
    margin-bottom: 24px;
  }

  .section-intro-row > p,
  .challenge-grid > div:first-child p:not(.section-label) {
    font-size: 16px;
  }

  .service-card {
    min-height: auto;
    padding: 46px 20px 20px;
  }

  .card-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
  }

  .growth-banner {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 18px;
    padding: 48px 22px 26px;
  }

  .growth-banner::before {
    top: 16px;
    right: auto;
    left: 22px;
    content: "XAR / GROWTH LAYERS";
  }

  .growth-asset {
    display: none;
  }

  .process-list article,
  .contact-form {
    padding: 20px;
  }

  .process-list span {
    margin-bottom: 24px;
  }

  .work-card:last-child {
    grid-column: auto;
  }

  .work-preview {
    min-height: 160px;
    padding: 20px;
  }

  .work-card-featured {
    grid-column: auto;
  }

  .preview-flower img {
    width: 100%;
    opacity: 0.42;
  }

  .preview-flower::after {
    background:
      linear-gradient(90deg, rgba(5, 8, 22, 0.98), rgba(5, 8, 22, 0.66)),
      linear-gradient(180deg, rgba(5, 8, 22, 0.08), rgba(5, 8, 22, 0.86));
  }

  .work-preview h3 {
    font-size: 23px;
  }

  .work-card-body {
    gap: 12px;
    padding: 16px;
  }

  .case-open {
    min-width: 76px;
  }

  .future-grid {
    gap: 24px;
    padding-top: 40px;
  }

  .future-list span {
    min-height: 58px;
  }

  .final-grid {
    gap: 24px;
  }

  .case-modal {
    width: calc(100% - 18px);
  }

  .case-modal-visual {
    min-height: 248px;
    padding: 68px 20px 22px;
  }

  .case-modal-visual h2 {
    font-size: 32px;
    line-height: 1;
  }

  .case-modal-visual p {
    font-size: 14px;
  }

  .case-modal-content {
    gap: 16px;
    padding: 20px 16px 16px;
  }

  .case-modal-controls {
    align-items: center;
  }

  .case-detail-grid section {
    min-height: auto;
    padding: 16px;
  }

  .case-modal-cta {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-links {
    display: grid;
    gap: 10px;
  }

  .legal-main {
    padding: 96px 0 48px;
  }

  .legal-sidebar h1 {
    font-size: 38px;
  }

  .legal-content {
    padding: 24px 18px;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .hero {
    padding-top: 92px;
    padding-bottom: 46px;
  }

  .hero-actions .button-secondary {
    display: none;
  }

  h1 {
    font-size: clamp(33px, 11vw, 40px);
  }

  .hero-lead {
    font-size: 15.5px;
  }

  .growth-banner,
  .contact-form {
    border-radius: 10px;
  }

  .work-card-body {
    align-items: flex-start;
  }

  .case-open {
    min-width: 76px;
    padding: 0 10px;
  }

  .case-modal-controls {
    gap: 10px;
  }

  .case-nav-button {
    width: 38px;
    height: 38px;
  }
}

/* Expanded service offer */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.text-link::after {
  content: "\2197";
  font-size: 16px;
  transition: transform 160ms ease;
}

.text-link:hover::after {
  transform: translate(2px, -2px);
}

.button-dark {
  color: var(--white);
  background: var(--ink);
  padding: 0 22px;
}

.service-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.service-pillar {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 24px;
  min-height: 286px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.service-pillar::after {
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(47, 95, 143, 0.15);
  border-radius: 50%;
  content: "";
}

.service-pillar-automation::after {
  border-color: rgba(94, 155, 131, 0.22);
  box-shadow: 0 0 70px rgba(94, 155, 131, 0.1);
}

.pillar-number {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.service-pillar h3 {
  max-width: 460px;
  margin: 4px 0 14px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.08;
}

.service-pillar p:not(.section-label) {
  max-width: 480px;
  margin: 0 0 22px;
  color: var(--muted);
}

.service-grid-delivery {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.automation-preview,
.packages-section,
.support-section,
.automation-terms {
  position: relative;
  padding: 108px 0;
  background: var(--paper);
}

.automation-preview {
  border-top: 1px solid var(--line);
  background: #eef2f8;
}

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

.automation-card,
.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.automation-card {
  min-height: 370px;
}

.automation-card-featured,
.package-card-featured {
  border-color: rgba(47, 95, 143, 0.58);
  box-shadow: inset 0 3px 0 var(--blue);
}

.automation-card-head,
.package-top,
.package-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.automation-card-head p,
.package-top p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}

.automation-card-head strong,
.package-top strong {
  color: var(--text);
  font-size: 15px;
}

.package-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(47, 95, 143, 0.24);
  border-radius: 999px;
  color: #2f5f8f;
  background: rgba(47, 95, 143, 0.07);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.automation-card h3 {
  margin: 38px 0 12px;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.08;
}

.automation-card > p {
  margin: 0;
  color: var(--muted);
}

.workflow-strip {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 28px 0;
}

.workflow-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(47, 95, 143, 0.24);
  border-radius: 4px;
  color: #26345e;
  background: #eef2f4;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.workflow-strip i {
  position: relative;
  height: 1px;
  background: rgba(47, 95, 143, 0.42);
}

.workflow-strip i::after {
  position: absolute;
  top: -3px;
  right: 0;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--blue);
  border-right: 1px solid var(--blue);
  content: "";
  transform: rotate(45deg);
}

.automation-card .text-link {
  margin-top: auto;
}

.automation-preview-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.contact-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 44px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.05);
  font: inherit;
}

.contact-form select option {
  color: var(--text);
  background: var(--white);
}

.contact-form select:focus {
  border-color: rgba(106, 167, 184, 0.9);
  outline: 2px solid rgba(47, 95, 143, 0.25);
}

/* Automation page */
.automation-hero {
  min-height: min(900px, 100svh);
  padding: 126px 0 64px;
}

.automation-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 0.96fr);
  align-items: start;
  min-height: min(620px, calc(100svh - 190px));
  gap: 56px;
  padding-top: 64px;
}

.automation-hero-copy {
  position: relative;
  z-index: 2;
}

.automation-hero .eyebrow {
  color: #d7e1ea;
}

.automation-hero h1 {
  max-width: 610px;
  margin: 28px 0 24px;
  font-family: var(--font-display);
  font-size: 58px;
  line-height: 1.02;
}

.automation-hero-copy > p:not(.eyebrow) {
  max-width: 580px;
  margin: 0;
  color: #b8c1d8;
  font-size: 17px;
  line-height: 1.58;
}

.automation-hero .hero-actions {
  margin-top: 30px;
}

.automation-hero-meta {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  color: #aeb8d0;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.automation-hero-meta span + span::before {
  margin-right: 24px;
  color: var(--cyan);
  content: "/";
}

.automation-hero-scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  overflow: visible;
}

.automation-hero-scene::before {
  position: absolute;
  right: 7%;
  bottom: 4%;
  left: 7%;
  height: 22%;
  border-radius: 50%;
  background: rgba(47, 95, 143, 0.2);
  filter: blur(48px);
  content: "";
  transform: scaleY(0.55);
}

.automation-hero-asset {
  position: relative;
  z-index: 1;
  display: block;
  width: min(165%, 900px);
  height: auto;
  max-height: 650px;
  object-fit: contain;
  filter: drop-shadow(0 30px 42px rgba(0, 0, 0, 0.3));
  transform: translateY(-38px);
}

.scene-grid {
  position: absolute;
  inset: 34% -8% -22%;
  opacity: 0.26;
  background-image: linear-gradient(rgba(106, 167, 184, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(106, 167, 184, 0.16) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: bottom;
}

.scene-core,
.scene-node {
  position: absolute;
  border: 1px solid rgba(145, 163, 181, 0.42);
  border-radius: var(--radius);
  background: rgba(13, 20, 49, 0.88);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

.scene-core {
  top: 32%;
  left: 22%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 56%;
  min-height: 184px;
  padding: 32px;
}

.scene-core::before,
.scene-core::after {
  position: absolute;
  right: 12px;
  bottom: -14px;
  left: 12px;
  height: 100%;
  border: 1px solid rgba(47, 95, 143, 0.42);
  border-radius: var(--radius);
  background: rgba(20, 29, 67, 0.5);
  content: "";
  z-index: -1;
}

.scene-core::after {
  right: 24px;
  bottom: -28px;
  left: 24px;
  border-color: rgba(111, 100, 143, 0.48);
  background: rgba(52, 32, 112, 0.48);
}

.scene-core span,
.scene-node small {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.scene-core strong {
  max-width: 300px;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
}

.scene-core i {
  width: 100%;
  height: 3px;
  margin-top: 26px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--mint));
  box-shadow: 0 0 24px rgba(106, 167, 184, 0.6);
}

.scene-node {
  z-index: 2;
  width: 158px;
  min-height: 88px;
  padding: 18px;
}

.scene-node strong {
  display: block;
  margin-top: 5px;
  font-size: 14px;
}

.scene-node-source { top: 6%; left: 2%; }
.scene-node-crm { top: 6%; right: 2%; }
.scene-node-email { right: 2%; bottom: 5%; }
.scene-node-team { bottom: 5%; left: 2%; }

.scene-links {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.scene-links span {
  position: absolute;
  width: 31%;
  height: 25%;
  border-color: rgba(106, 167, 184, 0.42);
}

.scene-links span:nth-child(1) {
  top: 21%;
  left: 15%;
  border-top: 1px solid;
  border-right: 1px solid;
}

.scene-links span:nth-child(2) {
  top: 21%;
  right: 15%;
  border-top: 1px solid;
  border-left: 1px solid;
}

.scene-links span:nth-child(3) {
  right: 15%;
  bottom: 19%;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.scene-links span:nth-child(4) {
  bottom: 19%;
  left: 15%;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.packages-section {
  background: #eef2f4;
}

.packages-grid {
  align-items: stretch;
}

.package-card {
  min-height: 430px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.package-card:hover {
  transform: translateY(-5px);
  border-color: rgba(47, 95, 143, 0.5);
  box-shadow: 0 22px 48px rgba(22, 35, 74, 0.12);
}

.package-card h2 {
  margin: 38px 0 12px;
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.08;
}

.package-intro,
.package-result {
  margin: 0;
  color: var(--muted);
}

.package-result {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.package-result strong {
  color: var(--text);
}

.package-card details {
  margin: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.package-card summary {
  position: relative;
  padding: 15px 28px 15px 0;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.package-card summary::-webkit-details-marker { display: none; }
.package-card summary::after { position: absolute; right: 2px; content: "+"; color: var(--blue); font-size: 20px; }
.package-card details[open] summary::after { content: "-"; }

.package-card ul {
  margin: 0;
  padding: 0 0 16px 18px;
  color: var(--muted);
  font-size: 14px;
}

.package-card li + li { margin-top: 8px; }

.package-footer {
  margin-top: auto;
  align-items: flex-end;
  padding-top: 24px;
}

.package-footer > span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.package-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.package-open::after {
  content: "\2197";
  font-size: 16px;
  transition: transform 160ms ease;
}

.package-card:hover .package-open::after {
  transform: translate(2px, -2px);
}

.package-open:focus-visible {
  border-radius: 3px;
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}

.package-card-accent {
  border-color: rgba(94, 155, 131, 0.55);
  box-shadow: inset 0 3px 0 var(--mint);
}

.package-card-custom {
  grid-column: 1 / -1;
  min-height: 430px;
}

.package-modal-visual {
  background:
    linear-gradient(115deg, rgba(47, 95, 143, 0.2), transparent 48%),
    linear-gradient(135deg, #071019, #171a2a 62%, #12242c);
}

.package-modal-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.package-modal-grid section {
  min-height: 230px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.package-modal-grid section > span {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.package-modal-grid ul {
  margin: 22px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.package-modal-grid li + li {
  margin-top: 8px;
}

.package-modal-grid p {
  margin: 22px 0 0;
  color: var(--muted);
}

.package-modal-grid p + p {
  margin-top: 10px;
}

.automation-form-modal {
  width: min(940px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(145, 163, 181, 0.3);
  border-radius: var(--radius);
  color: var(--white);
  background: #0e1722;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.55);
}

.automation-form-modal::backdrop {
  background: rgba(2, 5, 14, 0.76);
  backdrop-filter: blur(10px);
}

.automation-form-panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 570px;
}

.automation-form-panel > * {
  min-width: 0;
}

.automation-form-intro {
  padding: 56px 44px;
  border-right: 1px solid var(--line-dark);
  background:
    radial-gradient(circle at 20% 10%, rgba(47, 95, 143, 0.25), transparent 40%),
    #071019;
}

.automation-form-intro h2 {
  margin: 16px 0 20px;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.04;
}

.automation-form-intro > p:last-child {
  color: #aeb8d0;
}

.automation-form-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--white);
  background: rgba(5, 8, 22, 0.72);
  cursor: pointer;
}

.automation-form-close svg {
  width: 18px;
}

.automation-popup-form {
  display: grid;
  gap: 18px;
  padding: 56px 44px 40px;
}

.automation-popup-form label {
  display: grid;
  gap: 8px;
}

.automation-popup-form label > span {
  color: #c9d1e5;
  font-size: 13px;
  font-weight: 600;
}

.automation-popup-form input,
.automation-popup-form select,
.automation-popup-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  font: inherit;
}

.automation-popup-form textarea {
  min-height: 112px;
  resize: vertical;
}

.automation-popup-form select option {
  color: var(--text);
  background: var(--white);
}

.automation-popup-form input:focus,
.automation-popup-form select:focus,
.automation-popup-form textarea:focus {
  border-color: rgba(106, 167, 184, 0.9);
  outline: 2px solid rgba(47, 95, 143, 0.24);
}

.automation-popup-form .button {
  width: 100%;
  margin-top: 2px;
}

.package-custom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 48px;
}

.support-section {
  background: var(--white);
}

.support-grid,
.terms-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

.support-grid h2,
.terms-grid h2 {
  margin: 8px 0 18px;
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1.05;
}

.support-grid > div:first-child > p:not(.section-label) { color: var(--muted); }

.support-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.support-options article {
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.support-options article:first-child { border-left: 1px solid var(--line); }
.support-options span { font-family: var(--font-mono); color: var(--blue); font-size: 12px; }
.support-options h3 { margin: 28px 0 10px; font-family: var(--font-display); font-size: 22px; }
.support-options p { margin: 0; color: var(--muted); font-size: 14px; }

.automation-terms {
  border-top: 1px solid var(--line);
  background: #eef2f8;
}

.terms-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #cfd7e7;
}

.terms-grid li {
  position: relative;
  padding: 20px 0 20px 32px;
  border-bottom: 1px solid #cfd7e7;
  color: #4b5873;
}

.terms-grid li::before { position: absolute; left: 0; content: "\2713"; color: var(--blue); font-weight: 700; }

.package-cta { padding: 88px 0; }
.package-cta-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 60px; }
.package-cta h2 { max-width: 820px; margin: 8px 0 0; font-family: var(--font-display); font-size: 46px; line-height: 1.04; }

@media (max-width: 1180px) {
  .automation-hero { min-height: auto; }
  .automation-hero-grid { grid-template-columns: 1fr; }
  .automation-hero-copy { max-width: 820px; }
  .automation-hero-scene { display: none; }
  .automation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .automation-card:last-child { grid-column: 1 / -1; }
  .packages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .service-pillars,
  .automation-grid,
  .packages-grid,
  .support-grid,
  .terms-grid,
  .package-custom-grid,
  .package-cta-grid { grid-template-columns: 1fr; }

  .service-pillar { min-height: auto; }
  .automation-card:last-child,
  .package-card-custom { grid-column: auto; }
  .automation-preview,
  .packages-section,
  .support-section,
  .automation-terms { padding: 76px 0; }
  .automation-hero { padding: 112px 0 56px; }
  .automation-hero-grid { min-height: auto; padding-top: 0; }
  .automation-hero h1 { max-width: 720px; font-size: 54px; }
  .package-card { min-height: auto; }
  .package-modal-grid { grid-template-columns: 1fr; }
  .package-modal-grid section { min-height: auto; }
  .automation-form-panel { grid-template-columns: 1fr; }
  .automation-form-intro { padding: 44px 28px 28px; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .automation-popup-form { padding: 28px; }
  .support-grid,
  .terms-grid { gap: 36px; }
  .package-cta-grid { align-items: start; }
  .package-cta-grid .button { width: fit-content; }
}

@media (max-width: 640px) {
  .service-pillar { grid-template-columns: 1fr; gap: 12px; padding: 24px 20px; }
  .service-pillar h3 { font-size: 25px; }
  .pillar-number { display: none; }
  .automation-card,
  .package-card { padding: 22px 18px; }
  .automation-card-head,
  .package-top,
  .package-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
  .package-footer { padding-top: 20px; }
  .automation-card h3,
  .package-card h2 { margin-top: 28px; }
  .workflow-strip { gap: 5px; overflow: hidden; }
  .workflow-strip span { min-width: 0; padding: 0 6px; font-size: 9px; }
  .automation-preview-action { justify-content: stretch; }
  .automation-preview-action .button { width: 100%; }
  .automation-hero h1 { font-size: 40px; }
  .automation-hero .hero-actions { margin-top: 28px; }
  .automation-hero-meta { margin-top: 30px; }
  .automation-hero-copy > p:not(.eyebrow) { font-size: 16px; }
  .automation-hero-meta { flex-direction: column; gap: 10px; }
  .automation-hero-meta span + span::before { display: none; }
  .support-options { grid-template-columns: 1fr; }
  .support-options article { border-left: 1px solid var(--line); }
  .support-grid h2,
  .terms-grid h2 { font-size: 33px; }
  .package-cta h2 { font-size: 34px; }
  .package-cta-grid .button { width: 100%; }
  .automation-form-modal { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .automation-form-intro { padding: 54px 20px 22px; }
  .automation-form-intro h2 { font-size: 30px; }
  .automation-popup-form { gap: 15px; padding: 22px 20px 20px; }
}

/* Refined work cases: keep examples balanced and the flower case inside XAR's dark system. */
#work .work-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

#work .work-card-featured {
  grid-column: auto;
}

#work .work-card:last-child {
  grid-column: auto;
}

#work .work-card {
  min-height: 100%;
}

#work .work-preview {
  min-height: 218px;
}

#work .preview-flower {
  min-height: 218px;
  overflow: hidden;
  background: #060916;
}

#work .preview-flower img {
  inset: 0;
  width: 100%;
  opacity: 0.5;
  filter: saturate(0.9) contrast(1.05);
}

#work .preview-flower::after {
  background:
    linear-gradient(90deg, rgba(5, 8, 22, 0.98) 0%, rgba(5, 8, 22, 0.82) 42%, rgba(5, 8, 22, 0.34) 100%),
    linear-gradient(180deg, rgba(5, 8, 22, 0.02), rgba(5, 8, 22, 0.78));
}

#work .preview-flower em {
  color: #ffe3df;
  border-color: rgba(255, 211, 205, 0.2);
  background: rgba(5, 8, 22, 0.48);
}

#work .preview-flower h3 {
  max-width: 340px;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.36);
}

.preview-barbershop {
  min-height: 218px;
  overflow: hidden;
  isolation: isolate;
  background: #050506;
}

.preview-barbershop img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.56;
  filter: saturate(0.9) contrast(1.08);
}

.preview-barbershop::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 4, 5, 0.98) 0%, rgba(4, 4, 5, 0.78) 45%, rgba(4, 4, 5, 0.3) 100%),
    linear-gradient(180deg, rgba(4, 4, 5, 0.05), rgba(4, 4, 5, 0.82));
}

.preview-barbershop em {
  color: #f4c776;
  border-color: rgba(244, 199, 118, 0.22);
  background: rgba(12, 8, 4, 0.52);
}

.preview-barbershop span {
  color: #f4c776;
}

.preview-barbershop h3 {
  max-width: 360px;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

.case-modal[data-case-theme="flower"] {
  width: min(1040px, calc(100% - 32px));
  max-height: min(840px, calc(100dvh - 32px));
}

.case-modal[data-case-theme="barbershop"] {
  width: min(1040px, calc(100% - 32px));
  max-height: min(840px, calc(100dvh - 32px));
}

.case-modal[data-case-theme="flower"] .case-modal-panel,
.case-modal[data-case-theme="barbershop"] .case-modal-panel {
  display: grid;
  grid-template-columns: 1fr;
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    #070916;
  background-size: 44px 44px;
}

.case-modal[data-case-theme="flower"] .case-modal-panel::before,
.case-modal[data-case-theme="barbershop"] .case-modal-panel::before {
  display: none;
}

.case-modal[data-case-theme="flower"] .case-modal-visual {
  min-height: 360px;
  padding: 56px 52px 44px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 8, 22, 0.95) 0%, rgba(5, 8, 22, 0.74) 42%, rgba(5, 8, 22, 0.26) 100%),
    linear-gradient(180deg, rgba(5, 8, 22, 0.08), rgba(5, 8, 22, 0.78)),
    url("./assets/flower-studio-hero.png") center / cover;
}

.case-modal[data-case-theme="barbershop"] .case-modal-visual {
  min-height: 360px;
  padding: 56px 52px 44px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(4, 4, 5, 0.96) 0%, rgba(4, 4, 5, 0.76) 43%, rgba(4, 4, 5, 0.22) 100%),
    linear-gradient(180deg, rgba(4, 4, 5, 0.1), rgba(4, 4, 5, 0.82)),
    url("./assets/barbershop-hero.png") center / cover;
}

.case-modal[data-case-theme="flower"] .case-modal-visual::before,
.case-modal[data-case-theme="flower"] .case-modal-visual::after,
.case-modal[data-case-theme="barbershop"] .case-modal-visual::before,
.case-modal[data-case-theme="barbershop"] .case-modal-visual::after {
  display: none;
}

.case-modal[data-case-theme="flower"] .case-modal-kicker {
  color: #ffe0dc;
}

.case-modal[data-case-theme="barbershop"] .case-modal-kicker {
  color: #f4c776;
}

.case-modal[data-case-theme="flower"] .case-modal-visual h2,
.case-modal[data-case-theme="barbershop"] .case-modal-visual h2 {
  max-width: 680px;
  font-size: clamp(40px, 5vw, 64px);
}

.case-modal[data-case-theme="flower"] .case-modal-visual p,
.case-modal[data-case-theme="barbershop"] .case-modal-visual p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.case-modal[data-case-theme="flower"] .case-modal-content,
.case-modal[data-case-theme="barbershop"] .case-modal-content {
  gap: 20px;
  padding: 28px 36px 36px;
  color: #f6f7fb;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 202, 195, 0.08), transparent 32%),
    #070916;
}

.case-modal[data-case-theme="flower"] .case-modal-controls > span {
  color: #8fdff0;
}

.case-modal[data-case-theme="barbershop"] .case-modal-controls > span {
  color: #f4c776;
}

.case-modal[data-case-theme="flower"] .case-nav-button,
.case-modal[data-case-theme="barbershop"] .case-nav-button {
  border-color: rgba(255, 255, 255, 0.14);
  color: #f6f7fb;
  background: rgba(255, 255, 255, 0.055);
}

.case-modal[data-case-theme="flower"] .case-disclaimer,
.case-modal[data-case-theme="barbershop"] .case-disclaimer {
  border-color: rgba(255, 224, 220, 0.16);
  color: #c9cedd;
  background: rgba(255, 224, 220, 0.055);
}

.case-modal[data-case-theme="flower"] .case-detail-grid,
.case-modal[data-case-theme="barbershop"] .case-detail-grid {
  gap: 12px;
}

.case-modal[data-case-theme="flower"] .case-detail-grid section,
.case-modal[data-case-theme="barbershop"] .case-detail-grid section {
  min-height: 0;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(255, 255, 255, 0.045);
  background-size: 28px 28px;
}

.case-modal[data-case-theme="flower"] .case-detail-grid h3,
.case-modal[data-case-theme="barbershop"] .case-detail-grid h3 {
  color: #fff;
}

.case-modal[data-case-theme="flower"] .case-detail-grid p,
.case-modal[data-case-theme="flower"] .case-detail-grid li,
.case-modal[data-case-theme="barbershop"] .case-detail-grid p,
.case-modal[data-case-theme="barbershop"] .case-detail-grid li {
  color: #bdc4d4;
}

.case-modal[data-case-theme="flower"] .case-modal-cta,
.case-modal[data-case-theme="barbershop"] .case-modal-cta {
  margin-top: 2px;
}

@media (max-width: 900px) {
  #work .work-grid {
    grid-template-columns: 1fr;
  }

  .case-modal[data-case-theme="flower"] .case-modal-visual,
  .case-modal[data-case-theme="barbershop"] .case-modal-visual {
    min-height: 310px;
    padding: 74px 28px 30px;
  }

  .case-modal[data-case-theme="flower"] .case-modal-content,
  .case-modal[data-case-theme="barbershop"] .case-modal-content {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  #work .work-preview,
  #work .preview-flower {
    min-height: 190px;
  }

  #work .preview-barbershop {
    min-height: 190px;
  }

  .case-modal[data-case-theme="flower"],
  .case-modal[data-case-theme="barbershop"] {
    width: calc(100% - 18px);
  }

  .case-modal[data-case-theme="flower"] .case-modal-visual,
  .case-modal[data-case-theme="barbershop"] .case-modal-visual {
    min-height: 280px;
    padding: 68px 20px 24px;
  }

  .case-modal[data-case-theme="flower"] .case-modal-content,
  .case-modal[data-case-theme="barbershop"] .case-modal-content {
    padding: 20px 16px 16px;
  }
}

/* XAR restrained palette pass */
body::selection {
  background: rgba(47, 95, 143, 0.18);
}

.section-dark {
  background:
    radial-gradient(circle at 78% 28%, rgba(47, 95, 143, 0.18), transparent 34%),
    radial-gradient(circle at 88% 88%, rgba(106, 167, 184, 0.08), transparent 28%),
    linear-gradient(135deg, #071019 0%, #0b1420 48%, #101822 100%);
}

.site-header.is-scrolled {
  border-color: rgba(222, 231, 239, 0.14);
  background: rgba(7, 16, 25, 0.82);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.nav-links a:hover,
.footer-links a:hover,
.footer-mail:hover {
  color: #d8e4ee;
}

.site-header.is-menu-open .mobile-menu-toggle {
  border-color: rgba(106, 167, 184, 0.58);
  background: rgba(47, 95, 143, 0.16);
}

.mobile-menu-toggle:focus-visible,
.mobile-nav a:focus-visible,
.header-cta:focus-visible,
.button:focus-visible,
.case-open:focus-visible,
.case-close:focus-visible,
.case-nav-button:focus-visible,
.package-open:focus-visible {
  outline-color: rgba(106, 167, 184, 0.7);
}

.button-primary {
  background: linear-gradient(135deg, #2f5f8f 0%, #6f648f 100%);
  box-shadow: 0 18px 42px rgba(47, 95, 143, 0.2);
}

.button-secondary,
.header-cta {
  border-color: rgba(222, 231, 239, 0.32);
}

.hero .eyebrow,
.automation-hero .eyebrow {
  border-color: rgba(161, 177, 193, 0.28);
  color: #d7e1ea;
  background: rgba(255, 255, 255, 0.032);
}

.hero .eyebrow::after {
  background: linear-gradient(135deg, #6aa7b8, #8a789e);
}

h1 span,
.services h2 span,
.final-cta h2 span {
  background: linear-gradient(135deg, #7f98ad 0%, #85789a 48%, #6aa7b8 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-visual::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1), transparent 10%),
    radial-gradient(circle at 50% 50%, rgba(106, 167, 184, 0.24), transparent 26%),
    radial-gradient(circle at 52% 54%, rgba(111, 100, 143, 0.22), transparent 46%),
    radial-gradient(circle at 50% 50%, rgba(47, 95, 143, 0.16), transparent 66%);
  opacity: 0.58;
}

.hero-visual::after {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.14), transparent 11%),
    radial-gradient(circle at 50% 50%, rgba(106, 167, 184, 0.22), transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(111, 100, 143, 0.16), transparent 62%);
  box-shadow:
    0 0 44px rgba(106, 167, 184, 0.18),
    0 0 90px rgba(111, 100, 143, 0.12);
  opacity: 0.44;
}

.grid-plane,
.scene-grid {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(111, 129, 148, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 129, 148, 0.14) 1px, transparent 1px);
}

.challenge-items article {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72)),
    linear-gradient(90deg, rgba(47, 95, 143, 0.028) 1px, transparent 1px);
}

.service-card,
.work-card,
.automation-card,
.package-card {
  box-shadow: 0 18px 50px rgba(17, 24, 32, 0.04);
}

.service-card:hover,
.work-card:hover,
.process-list article:hover,
.future-list span:hover,
.package-card:hover {
  border-color: rgba(47, 95, 143, 0.28);
  box-shadow: 0 24px 58px rgba(17, 24, 32, 0.08);
}

.card-icon {
  color: var(--blue);
  background:
    radial-gradient(circle at 72% 18%, rgba(94, 155, 131, 0.28), transparent 32%),
    linear-gradient(135deg, rgba(47, 95, 143, 0.11), rgba(111, 100, 143, 0.14));
}

.growth-banner {
  background:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px),
    radial-gradient(circle at 86% 50%, rgba(111, 100, 143, 0.34), transparent 25%),
    radial-gradient(circle at 70% 0%, rgba(106, 167, 184, 0.08), transparent 28%),
    linear-gradient(135deg, #071019, #0e1722 58%, #171a2a);
}

.growth-banner::after {
  border-color: rgba(235, 241, 246, 0.16);
  box-shadow: 0 0 52px rgba(111, 100, 143, 0.2);
}

.growth-banner .section-label,
.final-cta .section-label {
  color: #9fb7ca;
}

.growth-asset span {
  background: linear-gradient(135deg, rgba(106, 167, 184, 0.68), rgba(111, 100, 143, 0.28));
  box-shadow: 0 0 28px rgba(47, 95, 143, 0.18);
}

.process-list article {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.92)) padding-box,
    linear-gradient(135deg, rgba(47, 95, 143, 0.24), rgba(106, 167, 184, 0.12), rgba(214, 222, 230, 0.86)) border-box;
}

.process-list article::before,
.process-list article h3::after,
.scene-core i {
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--mint));
}

.process-list span,
.case-open,
.package-tag,
.workflow-strip span {
  border-color: rgba(47, 95, 143, 0.18);
  color: #2f5f8f;
  background: rgba(47, 95, 143, 0.055);
}

.case-open:hover {
  border-color: rgba(47, 95, 143, 0.3);
  background: rgba(47, 95, 143, 0.09);
}

.workflow-strip i {
  background: rgba(47, 95, 143, 0.34);
}

.preview-dark {
  background:
    radial-gradient(circle at 78% 62%, rgba(94, 155, 131, 0.14), transparent 24%),
    linear-gradient(135deg, #0b1618, #111b21);
}

.preview-light {
  background:
    radial-gradient(circle at 85% 32%, rgba(47, 95, 143, 0.12), transparent 24%),
    linear-gradient(135deg, #f8f6f2, #e8e7e2);
}

.preview-violet {
  background:
    radial-gradient(circle at 84% 50%, rgba(111, 100, 143, 0.38), transparent 28%),
    linear-gradient(135deg, #0d1018, #17162a);
}

.case-modal::backdrop,
.automation-form-modal::backdrop {
  background: rgba(4, 10, 16, 0.74);
}

.case-modal-panel {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(106, 167, 184, 0.12), transparent 30%),
    linear-gradient(135deg, #071019, #0e1722 48%, #0b111b);
}

.case-modal-panel::before {
  border-color: rgba(106, 167, 184, 0.08);
}

.case-modal-visual::before {
  border-color: rgba(106, 167, 184, 0.18);
  background:
    linear-gradient(135deg, rgba(47, 95, 143, 0.18), rgba(106, 167, 184, 0.045)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    0 0 34px rgba(106, 167, 184, 0.1),
    inset 0 0 24px rgba(255, 255, 255, 0.07);
}

.case-modal-visual::after {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 24px rgba(106, 167, 184, 0.22);
}

.case-detail-grid section {
  background:
    linear-gradient(90deg, rgba(47, 95, 143, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(47, 95, 143, 0.035) 1px, transparent 1px),
    #fff;
}

.future-list span {
  color: #263041;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.automation-popup-form input:focus,
.automation-popup-form select:focus,
.automation-popup-form textarea:focus {
  border-color: rgba(106, 167, 184, 0.68);
  outline: 2px solid rgba(106, 167, 184, 0.22);
}

.site-footer {
  background: #071019;
}

.service-pillar::after {
  border-color: rgba(47, 95, 143, 0.12);
}

.service-pillar-automation::after {
  border-color: rgba(94, 155, 131, 0.28);
  box-shadow: 0 0 70px rgba(94, 155, 131, 0.08);
}

.package-card-accent {
  border-color: rgba(94, 155, 131, 0.28);
  box-shadow: inset 0 3px 0 rgba(94, 155, 131, 0.86);
}

.automation-preview,
.packages-section {
  background: #eef2f4;
}

.automation-card-featured,
.package-card-featured {
  border-color: rgba(47, 95, 143, 0.36);
  box-shadow: inset 0 3px 0 var(--blue);
}

.automation-hero-scene::before {
  background: rgba(47, 95, 143, 0.16);
}

.scene-core,
.scene-node {
  border-color: rgba(145, 163, 181, 0.26);
  background: rgba(12, 22, 33, 0.88);
}

.scene-core::before {
  border-color: rgba(47, 95, 143, 0.28);
  background: rgba(18, 31, 44, 0.5);
}

.scene-core::after {
  border-color: rgba(111, 100, 143, 0.3);
  background: rgba(40, 36, 60, 0.42);
}

.scene-core i {
  box-shadow: 0 0 20px rgba(106, 167, 184, 0.28);
}

.scene-links span {
  border-color: rgba(106, 167, 184, 0.26);
}

.package-modal-visual {
  background:
    linear-gradient(115deg, rgba(47, 95, 143, 0.16), transparent 48%),
    linear-gradient(135deg, #071019, #171a2a 62%, #12242c);
}

.automation-form-modal {
  border-color: rgba(145, 163, 181, 0.22);
  background: #071019;
}

.automation-form-intro {
  background:
    radial-gradient(circle at 20% 10%, rgba(47, 95, 143, 0.18), transparent 40%),
    #071019;
}

.automation-terms {
  background: #eef2f4;
}

.terms-grid ul,
.terms-grid li {
  border-color: #cfd8df;
}

.terms-grid li {
  color: #465563;
}

.case-modal[data-case-theme="flower"] .case-modal-controls > span,
.case-modal[data-case-theme="flower"] .case-modal-kicker {
  color: #9ecbd3;
}

.case-modal[data-case-theme="flower"] .case-modal-content,
.case-modal[data-case-theme="barbershop"] .case-modal-content {
  background:
    radial-gradient(circle at 12% 0%, rgba(106, 167, 184, 0.06), transparent 32%),
    #071019;
}
