/*
============================================
Gen AI Solutions - shared site styles
============================================
*/

:root {
  color-scheme: light;
  --page-bg: #f8f7f4;
  --page-bg-soft: #eeece7;
  --surface: #ffffff;
  --surface-alt: #f0edf7;
  --surface-strong: #e9e5dd;
  --ink: #252431;
  --muted: #63616d;
  --accent: #6941c6;
  --accent-dark: #50309c;
  --action: #6941c6;
  --action-hover: #50309c;
  --accent-soft: #f0e9ff;
  --hero-bg: #1b1938;
  --hero-bg-2: #35275f;
  --hero-accent: #cbb7fb;
  --cream: #e9e5dd;
  --border: #dcd7d3;
  --header-bg: rgba(248, 247, 244, 0.94);
  --input-bg: #ffffff;
  --warning-bg: #fff8e8;
  --warning-border: #e5d3aa;
  --warning-ink: #5f451b;
  --shadow: 0 20px 48px rgba(41, 40, 39, 0.08);
  --glow: 0 0 56px rgba(203, 183, 251, 0.26);
  --font-family: system-ui, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Helvetica Neue", Arial, sans-serif;
  --header-height: 80px;
  --layout-max: 1240px;
  --layout-gutter: 1.5rem;
  --section-space: 5rem;
  --prose-measure: 68ch;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #121219;
  --page-bg-soft: #191922;
  --surface: #1d1d28;
  --surface-alt: #252331;
  --surface-strong: #292827;
  --ink: rgba(255, 255, 255, 0.95);
  --muted: rgba(255, 255, 255, 0.72);
  --accent: #cbb7fb;
  --accent-dark: #e2d7ff;
  --accent-soft: rgba(203, 183, 251, 0.14);
  --hero-bg: #17141f;
  --hero-bg-2: #2b2158;
  --hero-accent: #cbb7fb;
  --cream: #e9e5dd;
  --border: rgba(255, 255, 255, 0.16);
  --header-bg: rgba(18, 18, 25, 0.94);
  --input-bg: #141225;
  --warning-bg: rgba(203, 183, 251, 0.12);
  --warning-border: rgba(203, 183, 251, 0.28);
  --warning-ink: rgba(255, 255, 255, 0.9);
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
  --glow: 0 0 56px rgba(203, 183, 251, 0.2);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;
    --page-bg: #121219;
    --page-bg-soft: #191922;
    --surface: #1d1d28;
    --surface-alt: #252331;
    --surface-strong: #292827;
    --ink: rgba(255, 255, 255, 0.95);
    --muted: rgba(255, 255, 255, 0.72);
    --accent: #cbb7fb;
    --accent-dark: #e2d7ff;
    --accent-soft: rgba(203, 183, 251, 0.14);
    --hero-bg: #17141f;
    --hero-bg-2: #2b2158;
    --hero-accent: #cbb7fb;
    --cream: #e9e5dd;
    --border: rgba(255, 255, 255, 0.16);
    --header-bg: rgba(18, 18, 25, 0.94);
    --input-bg: #141225;
    --warning-bg: rgba(203, 183, 251, 0.12);
    --warning-border: rgba(203, 183, 251, 0.28);
    --warning-ink: rgba(255, 255, 255, 0.9);
    --shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
    --glow: 0 0 56px rgba(203, 183, 251, 0.2);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-family);
  line-height: 1.65;
  margin: 0;
}

main {
  padding-top: 0;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

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

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease,
    opacity 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

p {
  color: var(--muted);
  margin-bottom: 1rem;
}

ul,
ol {
  color: var(--muted);
  margin: 0 0 1rem 1.25rem;
}

li {
  margin-bottom: 0.45rem;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.04;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.4rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.9rem, 3.7vw, 3rem);
  font-weight: 550;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
}

h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

strong {
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(203, 183, 251, 0.55);
  outline-offset: 3px;
}

.container {
  margin: 0 auto;
  max-width: var(--layout-max);
  padding: var(--section-space) var(--layout-gutter);
  width: 100%;
}

/* Keep page sections on the shared grid, with readable text inside it. */
main > .container > section + section {
  margin-top: var(--section-space);
}

main > .container > section > p,
main > .container > section > ul,
main > .container > section > ol:not(.process-list),
.section-intro > p,
.service-content > p,
.offline-highlight > p,
.hardware-highlight > p,
.privacy-note > p,
.booking-box > p,
.service-note > p,
.callout > div > p {
  max-width: var(--prose-measure);
}

.skip-link {
  background: var(--cream);
  color: #292827;
  left: 0;
  padding: 0.55rem 1rem;
  position: absolute;
  top: -50px;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
}

.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
}

.btn,
.btn-secondary {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: .94rem;
  font-weight: 650;
  justify-content: center;
  line-height: 1;
  min-height: 48px;
  padding: 0.9rem 1.4rem;
  text-align: center;
}

.btn {
  background: var(--action);
  border: 1px solid var(--action);
  color: #fff;
}

.btn:hover,
.btn:focus-visible {
  background: var(--action-hover);
  border-color: var(--action-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

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

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--surface-alt);
  border-color: var(--ink);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-1px);
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.section-intro {
  margin-bottom: 2.2rem;
  max-width: 780px;
}

.section-intro p:last-child {
  margin-bottom: 0;
}
.process-list + .section-intro { margin-top: 2.5rem; }

.section-intro:has(.section-intro-copy) { align-items: start; display: grid; gap: 3.5rem; grid-template-columns: 1fr 1.3fr; max-width: none; }
.section-intro-copy p { font-size: 1.06rem; line-height: 1.8; max-width: 76ch; }
.section-intro-heading h2 { max-width: 23ch; }

/* Header */
.main-header {
  align-items: center;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  height: var(--header-height);
  justify-content: space-between;
  padding: 0 max(var(--layout-gutter), calc((100% - var(--layout-max)) / 2 + var(--layout-gutter)));
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(14px);
}

.logo {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 800;
  gap: 0.65rem;
}

.logo:hover {
  color: var(--accent);
  text-decoration: none;
}

.logo img {
  display: block;
  height: auto;
  max-width: none;
  width: 224px;
}

.logo .brand-for-dark { display: none; }
html[data-theme="dark"] .logo .brand-for-light { display: none; }
html[data-theme="dark"] .logo .brand-for-dark { display: block; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .logo .brand-for-light { display: none; }
  html:not([data-theme="light"]) .logo .brand-for-dark { display: block; }
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
  min-width: 0;
}

.main-nav ul {
  align-items: center;
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  align-items: center;
  border-bottom: 0;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  min-height: 44px;
  padding: 0.55rem 0;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
  text-decoration: none;
}

.main-nav a.nav-cta {
  align-items: center;
  background: var(--action);
  border: 1px solid var(--action);
  border-radius: 999px;
  color: #fff;
  gap: .7rem;
  line-height: 1.2;
  padding: .5rem .6rem .5rem 1.2rem;
}

.main-nav a.nav-cta::after {
  align-items: center;
  background: rgba(255,255,255,.16);
  border-radius: 50%;
  content: "↗";
  display: inline-flex;
  font-size: 1rem;
  height: 27px;
  justify-content: center;
  width: 27px;
}

.main-nav a.nav-cta:hover,
.main-nav a.nav-cta.active {
  background: var(--action-hover);
  border-color: var(--action-hover);
  color: #fff;
}

.theme-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0;
  font-weight: 700;
  gap: 0.45rem;
  height: 40px;
  justify-content: center;
  min-height: 40px;
  padding: 0;
  width: 40px;
}

.theme-toggle::before { content: "◐"; font-size: 1.3rem; line-height: 1; }

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--surface-alt);
  border-color: var(--accent);
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  padding: 0.5rem;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  background: var(--ink);
  display: block;
  height: 2px;
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
  width: 26px;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  left: 0;
  position: absolute;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* Hero and layout */
.hero {
  background:
    radial-gradient(circle at 18% 12%, rgba(203, 183, 251, 0.36), transparent 28%),
    linear-gradient(135deg, var(--hero-bg) 0%, var(--hero-bg-2) 54%, #1b1938 100%);
  color: rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

.hero-content {
  max-width: 980px;
  padding-bottom: 5.2rem;
  padding-top: 5.2rem;
  position: relative;
}

.hero-content::after {
  background: var(--hero-accent);
  border-radius: 999px;
  box-shadow: var(--glow);
  content: "";
  height: 9px;
  opacity: 0.9;
  position: absolute;
  right: 1.5rem;
  top: 4.7rem;
  width: 9px;
}

.hero-title {
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(3rem, 7vw, 4.6rem);
  font-weight: 540;
  line-height: 0.96;
  max-width: 960px;
}

.hero-tagline {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.08rem, 2.2vw, 1.32rem);
  max-width: 880px;
}

.hero p {
  color: rgba(255, 255, 255, 0.76);
}

.hero .eyebrow {
  color: var(--hero-accent);
}

.hero .btn-secondary {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.95);
}

.hero .btn-secondary:hover,
.hero .btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.7rem 0;
}

.benefit-list {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
}

.benefit-list li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  padding: 0.9rem 1rem 0.9rem 2.35rem;
  position: relative;
}

.benefit-list li::before {
  background: var(--hero-accent);
  border-radius: 999px;
  content: "";
  height: 0.55rem;
  left: 1rem;
  position: absolute;
  top: 1.2rem;
  width: 0.55rem;
}

.section-split {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.services-grid,
.package-grid,
.demo-grid,
.sector-grid {
  display: grid;
  gap: 1rem;
}

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

.package-grid,
.demo-grid {
  grid-template-columns: repeat(var(--card-columns, 4), minmax(0, 1fr));
}

/* Let a three-card group fill its row without changing its HTML wrapper. */
.package-grid:has(> :last-child:nth-child(3)) {
  --card-columns: 3;
}

.sector-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
:is(.services-grid, .package-grid, .demo-grid, .sector-grid) + p { margin-top: 1.25rem; }

.sector-grid:has(> :last-child:nth-child(4)) { grid-template-columns: repeat(2,minmax(0,1fr)); }

.service-card,
.package-card,
.demo-card,
.sector-card,
.service-detail,
.callout,
#contact-info,
#contact-form-section,
.result,
.portfolio-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: none;
}

.service-card,
.package-card,
.sector-card {
  padding: 1.8rem;
}

.service-card h3,
.package-card h3,
.sector-card h3,
.demo-card h3 {
  color: var(--ink);
}

.service-card p:last-child,
.package-card p:last-child,
.sector-card p:last-child {
  margin-bottom: 0;
}
.service-card:has(> .card-action) { display: flex; flex-direction: column; }
.service-card > .card-action { margin-top: auto; padding-top: .75rem; }

.package-card {
  display: flex;
  flex-direction: column;
}

.package-card ul {
  margin-bottom: 1rem;
}

.package-label {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.price-guide {
  background: var(--accent-soft);
  border-radius: 8px;
  color: var(--accent-dark);
  font-weight: 800;
  margin-top: auto;
  padding: 0.75rem;
}

.demo-card {
  overflow: hidden;
}

.demo-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.demo-card h3,
.demo-card p,
.demo-card a {
  margin-left: 1rem;
  margin-right: 1rem;
}

.demo-card h3 {
  margin-top: 1rem;
}

.demo-card-text {
  background: var(--surface-alt);
  padding-top: 1rem;
}

.process-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(var(--process-columns, 5), minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-list:has(> li:last-child:nth-child(3)) {
  --process-columns: 3;
}

.process-list:has(> li:last-child:nth-child(4)) {
  --process-columns: 4;
}

.process-list li {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  margin: 0;
  padding: 1.5rem .5rem 0 0;
}

.process-list span {
  align-items: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--accent);
  display: inline-flex;
  font-weight: 800;
  height: 2rem;
  justify-content: center;
  margin-bottom: 1rem;
  width: 2rem;
}

.process-list h3 {
  font-size: 1.08rem;
}

.final-cta {
  background:
    radial-gradient(ellipse at 100% 0, rgba(135, 94, 214, .24), transparent 60%),
    #241c36;
  border: 1px solid rgba(203,183,251,.12);
  border-radius: 24px;
  color: #fff;
  margin: 1rem auto 4rem;
  max-width: calc(var(--layout-max) - var(--layout-gutter) - var(--layout-gutter));
  overflow: hidden;
  width: calc(100% - var(--layout-gutter) - var(--layout-gutter));
}

.final-cta h2,
.final-cta p {
  color: #fff;
}

.final-cta .container {
  align-items: center;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.final-cta h2 { font-size: clamp(2rem, 3.4vw, 3rem); max-width: 26ch; }
.final-cta p { color: #dcd5e8; max-width: 63ch; }
.final-cta .btn { flex: 0 0 auto; background: #e6dbff; border-color: #e6dbff; color: #2d1d49; }
.final-cta .btn:hover { background: #fff; border-color: #fff; color: #2d1d49; }
.final-cta .cta-copy p:last-child { margin-bottom: 0; }

/* Page and service detail */
.breadcrumb.container {
  padding-bottom: 0;
  padding-top: 1.5rem;
  font-size: .8rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li {
  color: var(--muted);
  margin: 0;
}

.breadcrumb li + li::before {
  color: var(--muted);
  content: "/";
  margin-right: 0.45rem;
}

.page-header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
}

.page-header:has(.page-header-copy) {
  align-items: center;
  display: grid;
  gap: 3.5rem;
  grid-template-columns: minmax(0,1.45fr) minmax(260px,.75fr);
}

.page-header:has(.page-header-title) { align-items: center; display: grid; gap: 3.5rem; grid-template-columns: 1.1fr 1fr; }
.page-header-title h1 { font-size: clamp(2.5rem,4.1vw,3.8rem); }
.page-header-description p { max-width: 76ch; }
.page-header-description > :last-child { margin-bottom: 0; }
.utility-page .page-header { text-align: center; border: 0; margin-bottom: 1.5rem; padding-bottom: 0; }
.utility-page .page-header h1, .utility-page .page-header p { margin-inline: auto; }
.utility-page .hero-actions { justify-content: center; }
.utility-page .notice-card { margin-inline: auto; }
.utility-page main > p { text-align: center; }

.page-header h1 {
  max-width: 22ch;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.page-header-copy h1 { font-size: clamp(2.5rem,4.1vw,3.8rem); }
.page-header-copy > p:last-child { margin-bottom: 0; }
.page-header-aside { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 1.7rem; }
.page-header .lead-panel-label { color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.5rem; }
.lead-panel-item + .lead-panel-item { border-top: 1px solid var(--border); padding-top: 1.1rem; margin-top: 1.1rem; }
.lead-panel-item h2 { font-size: 1.08rem; letter-spacing: -.02em; margin-bottom: .4rem; }
.page-header .lead-panel-item p { font-size: .9rem; line-height: 1.65; margin: 0; }
.editorial-section { display: grid; gap: 3.5rem; grid-template-columns: 1fr 1.6fr; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.editorial-section > h2 { font-size: clamp(1.8rem,3vw,2.5rem); }
.editorial-copy { max-width: 76ch; }
.editorial-copy p { font-size: 1.08rem; line-height: 1.8; }
.page-header + .editorial-section { border-top: 0; padding-top: 0; }
.editorial-section + .editorial-section { margin-top: 3rem; }
.resource-check { border-top: 1px solid var(--border); display: grid; gap: 3rem; grid-template-columns: .7fr 1.8fr; padding: 1.6rem 0; }
.resource-check h3 { font-size: 1.25rem; margin: 0; }
.resource-check p { font-size: 1.05rem; line-height: 1.8; margin: 0; max-width: 78ch; }
#about-page .page-header { margin-bottom: 0; }
#about-page > .editorial-section { margin-top: 3.5rem; }
#about-page .page-header + .editorial-section { border-top: 0; padding-top: 0; }

.page-header p {
  font-size: 1.08rem;
  max-width: var(--prose-measure);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }

.service-detail,
.service-item {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 62px minmax(0, 1fr);
  margin-bottom: 1.25rem;
  padding: 1.5rem;
}

.service-icon {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 8px;
  color: var(--accent);
  display: flex;
  flex-shrink: 0;
  font-size: 1.7rem;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.service-icon svg {
  height: 32px;
  width: 32px;
}

.service-content ul {
  margin-bottom: 1rem;
}
.service-detail { background: transparent; border: 0; border-top: 1px solid var(--border); border-radius: 0; gap: 3.5rem; grid-template-columns: 1fr 1.6fr; margin: 0; padding: 2rem 0; }
.service-detail-title h3 { font-size: 1.65rem; max-width: 23ch; }
.service-detail-title .service-icon { border: 1px solid var(--border); border-radius: 50%; font-size: .85rem; height: 36px; width: 36px; margin-bottom: 1.1rem; }
.service-detail .service-content > p { max-width: 76ch; }
.service-detail .service-content > p:last-child { margin-bottom: 0; }

.offline-highlight,
.hardware-highlight,
.privacy-note,
.booking-box,
.service-note {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 16px;
  margin-top: 1.2rem;
  padding: 1rem;
}

.offline-highlight p:last-child,
.hardware-highlight p:last-child,
.privacy-note p:last-child,
.booking-box p:last-child,
.service-note p:last-child {
  margin-bottom: 0;
}

.notice-card {
  max-width: 820px;
}

.notice-card h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.callout {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin: 2.5rem 0;
  padding: 1.5rem;
}

.callout.soft {
  background: var(--surface-alt);
}

.callout .btn,
.callout .btn-secondary {
  flex: 0 0 auto;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0;
}

.faq-list details { background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 1.3rem 0; }
.faq-list details:first-child { border-top: 1px solid var(--border); }
.faq-list summary { align-items: center; display: flex; font-weight: 600; gap: 1.5rem; justify-content: space-between; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { color: var(--accent); content: "+"; font-size: 1.5rem; font-weight: 400; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}

summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin: 0.8rem 0 0;
}

/* Contact */
.contact-layout {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
}

#contact-form-section,
#contact-info {
  padding: clamp(1.3rem,3vw,2.5rem);
}

#contact-form-section h2,
#contact-info h2 {
  font-size: clamp(1.8rem, 4vw, 2.25rem);
  line-height: 1.06;
}

.privacy-warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: 16px;
  color: var(--warning-ink);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.9rem 1rem;
}

.delivery-note {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  margin: 1rem 0;
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.form-group label,
.form-group legend {
  color: var(--ink);
  display: block;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  appearance: none;
  background-color: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  font-size: 1rem;
  min-height: 44px;
  padding: 0.8rem;
  width: 100%;
}

.form-group select {
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  padding-right: 2.4rem;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(203, 183, 251, 0.18);
  outline: none;
}

.checkbox-group {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  display: grid;
  column-gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkbox-group label {
  align-items: flex-start;
  color: var(--muted);
  display: flex;
  font-weight: 600;
  gap: 0.65rem;
  cursor: pointer;
  margin: 0.25rem 0 0;
  min-height: 44px;
  padding: 0.55rem 0;
}

.checkbox-group input[type="checkbox"] {
  appearance: auto;
  accent-color: #5d3b91;
  align-self: flex-start;
  flex: 0 0 auto;
  height: 1.15rem;
  margin-top: 0.2rem;
  min-height: 0;
  padding: 0;
  width: 1.15rem;
}

.checkbox-group input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.call-preference { grid-template-columns: 1fr; }

.contact-list {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.contact-list div {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.8rem;
}

.contact-list dt {
  color: var(--ink);
  font-weight: 800;
}

.contact-list dd {
  color: var(--muted);
  margin: 0;
}

/* Resources, search and legacy sections */
.task-options { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; margin: 1rem 0 2rem; overflow: hidden; }
.task-options-heading, .task-option { display: grid; gap: 1.5rem; grid-template-columns: 1.2fr .85fr 1.8fr; padding: 1rem; }
.task-options-heading { background: var(--surface-alt); color: var(--ink); font-size: .85rem; font-weight: 650; }
.task-option { align-items: start; border-top: 1px solid var(--border); }
.task-option h3 { font-size: 1rem; line-height: 1.5; letter-spacing: -.015em; margin: 0; }
.task-option p { font-size: .95rem; margin: 0; }
.task-option-label { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
.table-wrap {
  border: 1px solid var(--border);
  border-radius: 16px;
  margin: 1rem 0 2rem;
  overflow-x: auto;
}

.compare-table {
  background: var(--surface);
  border-collapse: collapse;
  width: 100%;
}

.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  text-align: left;
}

.compare-table thead th {
  background: var(--surface-alt);
  color: var(--ink);
}

.chip {
  background: var(--accent-soft);
  border-radius: 8px;
  color: var(--accent-dark);
  display: inline-block;
  font-size: 0.85rem;
  margin: 0 0.25rem 0.25rem 0;
  padding: 0.15rem 0.5rem;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.search-box {
  margin-bottom: 1.5rem;
}

.search-input {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  font-size: 1.05rem;
  min-height: 44px;
  padding: 0.9rem 1rem;
  width: 100%;
}

.results {
  display: grid;
  gap: 1rem;
}
.results:not(:empty) { margin-bottom: 3rem; }

.result {
  padding: 1rem;
}

mark {
  background: var(--accent-soft);
  border-radius: 4px;
  color: var(--ink);
  padding: 0 0.15rem;
}

#portfolio {
  margin-top: 3rem;
}

.portfolio-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-item {
  overflow: hidden;
}

.portfolio-item img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.portfolio-info {
  padding: 1rem;
}

#usp ul {
  list-style: none;
  margin-left: 0;
}

#usp li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 16px;
  padding: 1rem;
}

/* Footer */
.main-footer {
  background: #17141f;
  color: #fff;
  padding: 4rem 0 2rem;
}

.footer-grid,
.footer-socials,
.copyright {
  max-width: var(--layout-max);
  padding-inline: var(--layout-gutter);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  margin: 0 auto 2rem;
}

.main-footer h2,
.main-footer h3,
.main-footer p {
  color: #fff;
}

.main-footer h2 {
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.footer-logo {
  height: auto;
  max-width: 100%;
  width: 248px;
}

.main-footer h3 {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0;
}

.main-footer p {
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 0.55rem;
}

.main-footer a {
  color: #ddd2f4;
  font-weight: 500;
}

.main-footer a:hover {
  color: #fff;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0 auto 1rem;
}

.footer-socials a {
  align-items: center;
  display: inline-flex;
  font-size: 0.85rem;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  text-decoration: underline;
}

.copyright {
  font-size: 0.92rem;
  margin: 0 auto;
}

body.no-scroll {
  overflow: hidden;
}

@media (max-width: 1120px) {
  .main-nav ul {
    gap: 0.55rem;
  }

  .main-nav a {
    font-size: 0.84rem;
  }

  .main-nav a.nav-cta {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .logo img { width: 200px; }

  .theme-toggle {
    font-size: 0;
  }
}

@media (max-width: 1020px) {
  .services-grid,
  .package-grid,
  .demo-grid,
  .sector-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .main-nav {
    background: var(--page-bg);
    border-bottom: 1px solid var(--border);
    display: none;
    height: calc(100vh - var(--header-height));
    left: 0;
    overflow-y: auto;
    padding: 1rem 5%;
    position: fixed;
    top: var(--header-height);
    width: 100%;
    z-index: 999;
  }

  .main-nav.active {
    display: block !important;
  }

  .main-nav ul {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    border-bottom: 1px solid var(--border);
    display: flex;
    font-size: 1rem;
    padding: 1rem 0;
    width: 100%;
  }

  .main-nav a.nav-cta {
    justify-content: center;
    margin-top: 1rem;
  }

  .nav-toggle {
    display: block !important;
  }

  .nav-toggle.is-active .hamburger {
    transform: rotate(45deg);
  }

  .nav-toggle.is-active .hamburger::before {
    top: 0;
    transform: rotate(90deg);
  }

  .nav-toggle.is-active .hamburger::after {
    opacity: 0;
    top: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 72px;
    --section-space: 3.25rem;
  }

  .hero-content {
    padding-bottom: 4rem;
    padding-top: 4rem;
  }

  .section-split,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .benefit-list,
  .services-grid,
  .package-grid,
  .demo-grid,
  .sector-grid,
  .process-list,
  .portfolio-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .checkbox-group { grid-template-columns: 1fr; }

  .service-detail,
  .service-item {
    grid-template-columns: 1fr;
  }
  .service-detail { gap: 1rem; }

  .service-icon {
    height: 50px;
    width: 50px;
  }

  .callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .btn,
  .btn-secondary {
    width: 100%;
  }
}

@media (min-width: 861px) {
  .main-nav {
    display: flex !important;
  }

  .nav-toggle {
    display: none !important;
  }

  .main-nav.active {
    background: transparent !important;
    display: flex !important;
    height: auto !important;
    position: static !important;
  }
}

/* IT services refresh: shared refinements retain the existing page classes. */
h1, h2, h3 { letter-spacing: -0.035em; }
h2 { line-height: 1.12; }
h3 { line-height: 1.25; }
.btn, .btn-secondary { line-height: 1.35; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline-color: var(--accent); }
.eyebrow { letter-spacing: .11em; }
.footer-grid a { overflow-wrap: anywhere; }

/* Homepage composition. These classes do not change legacy service layouts. */
.home-hero { background: var(--page-bg); }
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 4rem;
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}
.home-hero-copy h1 { font-size: clamp(2.7rem, 5.2vw, 4.8rem); font-weight: 600; line-height: 1.03; margin-bottom: 1.5rem; letter-spacing: -.055em; }
.home-hero-copy h1 span { color: var(--accent-dark); }
.home-lead { font-size: 1.13rem; line-height: 1.7; max-width: 55ch; }
.home-hero .hero-actions { align-items: center; gap: 1.2rem 1.5rem; margin: 1.75rem 0 .8rem; }
.home-reply-note { font-size: .86rem; margin-bottom: 0; }
.home-text-link { display: inline-flex; align-items: baseline; gap: .6rem; font-size: .94rem; font-weight: 700; line-height: 1.55; }
.home-text-link span { flex: 0 0 auto; }
.systems-map {
  padding: 2rem;
  background: #241c36;
  border: 1px solid rgba(203,183,251,.2);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(37, 28, 54, .12);
  color: #fff;
}
.systems-map-heading { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.3rem; }
.systems-map-heading p { color: #ede7f8; font-size: .8rem; font-weight: 550; margin: 0; letter-spacing: .02em; }
.map-symbol { display: grid; place-items: center; background: rgba(203,183,251,.12); color: #d6c4ff; width: 32px; height: 32px; border-radius: 10px; font-size: 1.25rem; }
.systems-map-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.system-node { background: var(--page-bg); border: 1px solid var(--border); border-radius: 12px; padding: 1.15rem .9rem; }
.node-mark { display: block; font-size: .7rem; color: var(--muted); font-weight: 700; margin-bottom: 1.2rem; }
.system-node h2 { font-size: 1rem; letter-spacing: -.02em; font-weight: 650; margin-bottom: .45rem; }
.system-node p { margin: 0; font-size: .76rem; }
.system-node-private { background: var(--accent-soft); border-color: var(--accent); }
.system-node-private .node-mark { color: var(--accent-dark); }
.systems-map-note { border-top: 1px solid rgba(255,255,255,.13); color: #c3b9d2; margin: 1.3rem 0 0; padding-top: 1.05rem; font-size: .75rem; line-height: 1.6; }
.business-flow { text-align: center; }
.flow-origin, .flow-outcome { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.17); border-radius: 14px; padding: 1.1rem; }
.business-flow h2, .business-flow h3 { color: #fff; font-size: 1.18rem; margin: 0 0 .4rem; }
.business-flow p { color: #d1c7df; font-size: .8rem; line-height: 1.6; margin: 0; }
.business-flow .flow-label { color: #d0b7ff; font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .5rem; }
.flow-paths { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; padding: 1.5rem 0; position: relative; }
.flow-paths::before, .flow-paths::after { background: #8f70c2; content: ""; height: 1.5rem; left: 50%; position: absolute; width: 1px; }
.flow-paths::before { top: 0; }
.flow-paths::after { bottom: 0; }
.flow-path { background: #342745; border: 1px solid #635078; border-radius: 14px; padding: 1.1rem .8rem; }
.flow-outcome { background: #d8c6f5; }
.flow-outcome h2, .flow-outcome h3 { color: #2c203f; }
.flow-outcome p, .flow-outcome .flow-label { color: #47365f; }
.home-section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.home-section > .home-section-heading:only-child { margin-bottom: 0; }
main > .home-section + .home-section { padding-top: 2rem; }
.home-section-heading { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 3.5rem; margin-bottom: 2.25rem; }
.home-section-heading h2 { font-size: clamp(1.9rem, 3.1vw, 2.65rem); margin-bottom: 0; font-weight: 550; }
.home-section-heading > p { margin-bottom: .15rem; max-width: 48ch; }
.home-services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.home-service-card { display: flex; flex-direction: column; padding: 1.6rem 1.35rem; border-radius: 12px; }
.home-card-number { color: var(--muted); font-size: .64rem; font-weight: 750; letter-spacing: .1em; margin-bottom: 2rem; }
.home-service-card h3 { font-size: 1.4rem; min-height: 3.6em; }
.home-service-card p { font-size: .93rem; line-height: 1.75; }
.home-service-card .home-text-link { margin-top: auto; padding-top: 1.1rem; font-size: .88rem; }
.home-service-private { border-top: 3px solid var(--accent); padding-top: calc(1.6rem - 2px); }
.home-soft-section { background: var(--page-bg-soft); border: 1px solid var(--border); border-radius: 24px; margin-inline: auto; max-width: calc(var(--layout-max) - var(--layout-gutter) - var(--layout-gutter)); width: calc(100% - var(--layout-gutter) - var(--layout-gutter)); }
.home-soft-section > .container { padding: clamp(1.5rem,4vw,3.5rem); }
.home-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3.5rem; }
.home-project-grid article { border-top: 2px solid var(--border); padding-top: 1.2rem; }
.home-project-grid h3 { font-size: 1.3rem; line-height: 1.3; }
.home-project-grid p { margin-bottom: 0; font-size: .94rem; }
.home-project-grid .home-text-link { margin-top: 1rem; }
.service-index { display: block; }
.service-index .home-service-card { align-items: start; background: transparent; border: 0; border-top: 1px solid var(--border); border-radius: 0; display: grid; gap: 2rem; grid-template-columns: .65fr 1.8fr 1fr; padding: 2.1rem 0; }
.service-index .home-card-number { font-size: .7rem; margin: .4rem 0 0; }
.service-index h3 { font-size: clamp(1.5rem,2.6vw,2rem); min-height: 0; margin-bottom: .7rem; }
.service-index p { margin: 0; max-width: 58ch; }
.service-index .home-text-link { align-self: center; justify-self: end; margin: 0; padding: .65rem 0; }
.service-index .home-service-private { background: var(--accent-soft); border: 1px solid var(--border); border-radius: 18px; padding-inline: 1.3rem; }
.home-privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.home-privacy h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 550; }
.privacy-principles { padding: .3rem 1.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.privacy-principles > div { display: flex; gap: 1.2rem; padding: 1.6rem 0; }
.privacy-principles > div + div { border-top: 1px solid var(--border); }
.privacy-principles > div > span { color: var(--accent); font-size: .8rem; font-weight: 750; padding-top: .2rem; }
.privacy-principles h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.privacy-principles p { font-size: .93rem; margin: 0; }
.home-examples { border-top: 1px solid var(--border); }
.home-demo-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.4rem; }
.home-demo-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.6rem; display: flex; flex-direction: column; }
.home-demo-label { color: var(--accent-dark); font-size: .72rem; font-weight: 750; letter-spacing: .04em; margin-bottom: 1.8rem; }
.home-demo-card h3 { font-size: 1.4rem; }
.home-demo-card > p:not(.home-demo-label) { font-size: .94rem; }
.home-demo-card a { margin-top: auto; padding-top: 1rem; font-size: .88rem; }
.home-demo-featured { grid-row: span 2; padding: 2rem; }
.demo-question { background: var(--surface-alt); border-radius: 12px; color: var(--ink); margin: 1rem 0; padding: 1.1rem; }
.demo-answer { border-left: 3px solid var(--accent); color: var(--ink); margin: 1rem 0; padding: .3rem 0 .3rem 1.1rem; }
.home-demo-card .demo-source { font-size: .8rem; }
.home-process { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.home-process li { background: transparent; border: 0; border-radius: 0; padding: 0; }
.home-process span { background: var(--surface); border-radius: 50%; height: 2.4rem; width: 2.4rem; }
.home-process h3 { font-size: 1.1rem; }
.home-process p { font-size: .94rem; margin: 0; }
.home-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; }
.home-faq h2 { font-size: clamp(2rem, 3vw, 2.65rem); font-weight: 550; }
.home-faq details { border-radius: 0; padding: 1.3rem 0; }
.home-faq summary { font-weight: 650; }
.home-faq details p { font-size: .94rem; }
.home-final-cta { margin-top: 0; }
.home-final-cta .eyebrow { color: #d6c8f3; font-size: .7rem; }
.home-final-cta h2 { font-size: clamp(2.1rem, 3.8vw, 3.3rem); font-weight: 500; }
.home-final-cta p { max-width: 58ch; color: #ded9e8; }
.home-final-cta .btn { background: #e9dfff; border-color: #e9dfff; color: #2b1c45; flex: 0 0 auto; }
.home-final-cta .btn:hover { background: #fff; border-color: #fff; }

@media (max-width: 1100px) {
  .home-hero-grid { gap: 2rem; }
  .home-services-grid, .home-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-service-card h3 { min-height: 0; }
  .home-card-number { margin-bottom: 1.3rem; }
  .home-privacy { gap: 2.5rem; }
}
@media (max-width: 860px) {
  .main-header { gap: .75rem; }
  .theme-toggle { width: 38px; min-height: 40px; justify-content: center; padding: 0; font-size: 0; }
  .theme-toggle::before { content: "◐"; font-size: 1.25rem; line-height: 1; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3.2rem; padding-bottom: 3.2rem; }
  .home-hero-copy h1 { max-width: 700px; font-size: clamp(2.7rem, 6.7vw, 3.8rem); }
  .systems-map { max-width: 640px; width: 100%; }
  .system-node { padding: 1rem; }
  .node-mark { margin-bottom: .65rem; }
  .home-section-heading { gap: 2rem; }
  .home-demo-grid { grid-template-columns: 1fr; }
  .page-header:has(.page-header-copy) { grid-template-columns: 1fr; gap: 2rem; }
  .page-header:has(.page-header-title), .section-intro:has(.section-intro-copy) { grid-template-columns: 1fr; gap: 1rem; }
  .editorial-section { grid-template-columns: 1fr; gap: 1rem; }
  .resource-check { grid-template-columns: 1fr; gap: .6rem; }
  .page-header-aside { max-width: 640px; }
  .service-index .home-service-card { gap: 1rem 2rem; grid-template-columns: .65fr 2fr; }
  .service-index .home-text-link { grid-column: 2; justify-self: start; }
  .final-cta .container { align-items: flex-start; flex-direction: column; gap: 1.5rem; }
  .home-demo-label { margin-bottom: 1rem; }
  .home-process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .home-faq { gap: 2rem; }
  .home-final-cta .container { flex-direction: column; align-items: flex-start; gap: 1rem; }
  html:not(.js-enabled) .main-header { height: auto; flex-wrap: wrap; position: static; padding-top: 1rem; padding-bottom: 1rem; }
  html:not(.js-enabled) .main-nav { display: block; position: static; height: auto; padding: 0; border: 0; }
  html:not(.js-enabled) .main-nav ul { flex-direction: row; flex-wrap: wrap; gap: .5rem 1rem; }
  html:not(.js-enabled) .main-nav a { padding: .65rem 0; }
  html:not(.js-enabled) .main-nav a.nav-cta { margin-top: 0; padding: .65rem 1rem; }
  html:not(.js-enabled) .nav-toggle { display: none !important; }
}
@media (max-width: 640px) {
  :root { --layout-gutter: 1.25rem; }
  .task-options { background: transparent; border: 0; border-radius: 0; overflow: visible; }
  .task-options-heading { display: none; }
  .task-option { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1rem; padding: 1.25rem; }
  .task-option h3 { font-size: 1.15rem; line-height: 1.4; }
  .task-option-label { clip: auto; color: var(--muted); height: auto; font-size: .75rem; letter-spacing: .04em; margin: 0 0 .35rem; overflow: visible; padding: 0; position: static; width: auto; }
  .home-hero-grid { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .home-hero-copy h1 { font-size: clamp(2.45rem, 9.8vw, 3.5rem); }
  .home-hero .eyebrow { font-size: .63rem; letter-spacing: .08em; }
  .home-lead { font-size: 1rem; }
  .home-hero .hero-actions { margin-top: 1.3rem; gap: .85rem; }
  .home-hero .hero-actions .home-text-link { justify-content: center; width: 100%; }
  .home-reply-note { text-align: center; font-size: .77rem; }
  .systems-map { padding: 1.1rem; }
  .system-node { padding: .9rem .75rem; }
  .system-node h2 { font-size: .94rem; }
  .system-node p { font-size: .72rem; }
  .home-section-heading, .home-privacy, .home-faq { grid-template-columns: 1fr; gap: 1.5rem; }
  .home-section-heading h2 { font-size: 2rem; }
  .home-section-heading { margin-bottom: 1.8rem; }
  .home-services-grid, .home-project-grid, .home-process { grid-template-columns: 1fr; }
  .home-service-card { padding: 1.4rem; }
  .home-service-private { padding-top: calc(1.4rem - 2px); }
  .home-service-card .home-text-link { padding-top: .5rem; }
  .home-card-number { margin-bottom: 1rem; }
  .home-project-grid { gap: 1.5rem; }
  .service-index .home-service-card { display: block; padding: 1.6rem 0; }
  .service-index .home-card-number { display: block; margin-bottom: .9rem; }
  .service-index .home-text-link { margin-top: .8rem; }
  .service-index .home-service-private { padding: 1.3rem; }
  .home-project-grid { grid-template-columns: 1fr; }
  .sector-grid:has(> :last-child:nth-child(4)) { grid-template-columns: 1fr; }
  .home-demo-featured { padding: 1.4rem; }
  .page-header { padding-bottom: 2rem; margin-bottom: 2.5rem; }
  .page-header h1 { font-size: clamp(2.25rem,9vw,3rem); }
  .page-header-aside { padding: 1.4rem; }
  .flow-path { padding: 1rem .65rem; }
  .business-flow h2, .business-flow h3 { font-size: 1rem; }
  .business-flow p { font-size: .75rem; }
  .final-cta { border-radius: 20px; margin-bottom: 3rem; }
  .privacy-principles { padding-left: 1.2rem; padding-right: 1.2rem; }
  .home-process li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0 1rem; }
  .home-process span { grid-row: span 2; margin: 0; }
  .home-process h3 { margin-bottom: .55rem; }
  .home-process p { grid-column: 2; }
  .desktop-break { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a, .hamburger, .hamburger::before, .hamburger::after { transition: none; }
}

@media (max-width: 360px) {
  .main-header { gap: .4rem; }
  .logo img { width: 172px; }
}
