:root {
  --bg: #f2f5fd;
  --bg-deep: #e6ebf9;
  --surface: #ffffff;
  --panel: #e9edfa;
  --text: #202d51;
  --muted: #4c5675;
  --accent: #5856b8;
  --accent-dark: #48459e;
  --accent-soft: #dcdaf5;
  --line: #d5dcef;
  --pink: #f2a7a0;
  --peach: #f5c7a9;
  --yellow: #f4dc85;
  --sky: #9fcbe8;
  --lilac: #b7aee6;
  --mint: #bfe3d2;
  --radius: 16px;
  --radius-lg: 24px;
  --space: clamp(1.5rem, 3vw, 3rem);
  --wrap: 1180px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: linear-gradient(180deg, #f6f8fe 0%, var(--bg) 40%, #eef1fc 100%);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.35rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--surface); padding: .5rem 1rem; z-index: 50; border-radius: 8px; }
.skip:focus { left: 1rem; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font-size: .95rem; color: var(--accent); font-weight: 500; margin-bottom: .75rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 248, 254, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand-mark { position: relative; width: 26px; height: 26px; flex: none; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; }
.brand-mark::before { inset: 0 8px 8px 0; border-radius: 50%; background: var(--lilac); }
.brand-mark::after { inset: 9px 0 0 9px; border-radius: 4px 14px 4px 4px; background: var(--accent); opacity: .9; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-nav a { display: block; padding: .55rem .8rem; border-radius: 999px; color: var(--text); text-decoration: none; font-size: .95rem; }
.site-nav a:hover { background: var(--panel); }
.site-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-dark); font-weight: 500; }
.site-nav .nav-cta a { background: var(--accent); color: #fff; padding-inline: 1.1rem; border-radius: 10px; margin-left: .5rem; }
.site-nav .nav-cta a:hover { background: var(--accent-dark); }
.site-nav .nav-cta a[aria-current="page"] { background: var(--accent-dark); color: #fff; }
.menu-toggle {
  display: none; align-items: center; gap: .5rem;
  font: inherit; font-size: .95rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .85rem; cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; } .menu-icon::after { top: 5px; }
.nav-open .menu-icon { background: transparent; }
.nav-open .menu-icon::before { transform: translateY(5px) rotate(45deg); }
.nav-open .menu-icon::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 899px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(32,45,81,.25); }
  .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; gap: .15rem; }
  .site-nav a { padding: .8rem 1rem; border-radius: 12px; font-size: 1.05rem; }
  .site-nav .nav-cta a { margin: .5rem 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 12px; font: inherit; font-weight: 500; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: #c4cbe6; }
.btn-ghost:hover { background: var(--surface); color: var(--text); border-color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.text-link { font-weight: 500; text-decoration: none; display: inline-flex; gap: .35rem; align-items: center; }
.text-link:hover { text-decoration: underline; }

/* Hero */
.hero { text-align: center; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero h1 { max-width: 17em; margin-inline: auto; font-weight: 400; }
.hero .lede { max-width: 40em; margin: 0 auto 1.75rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }
.hero .btn-row { justify-content: center; }
.page-hero { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); text-align: center; }
.page-hero h1 { max-width: 18em; margin-inline: auto; font-weight: 400; }
.page-hero .lede { max-width: 40em; margin-inline: auto; color: var(--muted); font-size: 1.15rem; }

/* Breadcrumb */
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; font-size: .92rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .35rem; color: #9aa3c0; }
.breadcrumb a { color: var(--muted); }

/* Geometric band */
.geo-band { position: relative; width: 100%; height: clamp(240px, 30vw, 400px); overflow: hidden; background: linear-gradient(160deg, #dfe6f8 0%, #eceaf8 55%, #f6e9e6 100%); }
.geo-band.compact { height: clamp(160px, 18vw, 230px); }
.geo-band > span { position: absolute; display: block; }
.g-plane { border-radius: 6px; transform: skewX(-28deg) rotate(-8deg); box-shadow: 0 18px 30px -18px rgba(32,45,81,.35); }
.g-sphere { border-radius: 50%; box-shadow: 0 22px 30px -14px rgba(32,45,81,.3); }
.g-arch { border-radius: 999px 999px 8px 8px; box-shadow: 0 20px 30px -16px rgba(32,45,81,.3); }
.g-block { border-radius: 10px; box-shadow: 0 22px 30px -16px rgba(32,45,81,.3); }
.g1 { left: -4%; top: 52%; width: 34%; height: 30%; background: linear-gradient(135deg, #f4b0a8, var(--pink)); }
.g2 { left: 18%; top: 20%; width: 24%; height: 34%; background: linear-gradient(135deg, #c9c1ef, var(--lilac)); }
.g3 { left: 30%; top: 62%; width: 28%; height: 26%; background: linear-gradient(135deg, #b6dbf1, var(--sky)); }
.g4 { left: 52%; top: 30%; width: 22%; height: 30%; background: linear-gradient(135deg, #f8e6a3, var(--yellow)); }
.g5 { left: 70%; top: 58%; width: 36%; height: 32%; background: linear-gradient(135deg, #a6a2e2, var(--accent)); opacity: .85; }
.g6 { left: 80%; top: 8%; width: 26%; height: 30%; background: linear-gradient(135deg, #d4eee2, var(--mint)); }
.s1 { left: 11%; top: 16%; width: clamp(60px, 9vw, 120px); aspect-ratio: 1; background: radial-gradient(circle at 32% 30%, #fff 0%, #dfe5f7 45%, #aeb8dc 100%); }
.s2 { left: 47%; top: 52%; width: clamp(44px, 6vw, 84px); aspect-ratio: 1; background: radial-gradient(circle at 32% 30%, #fff 0%, #f0eef6 50%, #c5c3d9 100%); }
.s3 { left: 66%; top: 10%; width: clamp(30px, 3.5vw, 48px); aspect-ratio: 1; background: radial-gradient(circle at 32% 30%, #fff6d8 0%, #f2d777 60%, #d8b54c 100%); }
.a1 { left: 38%; top: 8%; width: clamp(70px, 9vw, 120px); height: 58%; background: linear-gradient(90deg, #f6cdb4, var(--peach) 60%, #e8b090); }
.a2 { left: 86%; top: 40%; width: clamp(50px, 6vw, 80px); height: 46%; background: linear-gradient(90deg, #ffe5e1, #f6c4bd); }
.b1 { left: 58%; top: 64%; width: clamp(70px, 10vw, 140px); height: 22%; background: linear-gradient(180deg, #fbfbfe, #e1e4f1); }

/* Visual story */
.visual-story { padding-bottom: clamp(3rem, 6vw, 5rem); }
.story-intro { text-align: center; padding-top: clamp(2.5rem, 5vw, 4rem); }
.story-intro p { max-width: 42em; margin-inline: auto; color: var(--muted); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem); margin-top: 2.5rem; }
.principle { background: var(--surface); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: 0 10px 30px -22px rgba(32,45,81,.35); }
.principle:nth-child(2) { transform: translateY(1.75rem); }
.principle:nth-child(3) { transform: translateY(.75rem); }
.shape { width: 54px; height: 54px; margin-bottom: 1.1rem; }
.shape-circle { border-radius: 50%; background: radial-gradient(circle at 32% 30%, #fff 0%, var(--lilac) 70%); }
.shape-square { border-radius: 10px; background: linear-gradient(135deg, var(--yellow), var(--peach)); transform: rotate(12deg); }
.shape-arch { border-radius: 999px 999px 6px 6px; background: linear-gradient(90deg, var(--sky), #c9e2f2); }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: linear-gradient(180deg, rgba(220,226,246,.55), rgba(233,237,250,.25)); }
.section-head { text-align: center; max-width: 44em; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); }

/* Scenario stories */
.stories { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.story { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); background: var(--panel); border-radius: var(--radius); overflow: hidden; width: 86%; }
.story:nth-child(even) { margin-left: auto; }
.story .art { min-height: 240px; display: flex; align-items: flex-end; justify-content: center; padding: 1.5rem 1rem 0; }
.story .art svg { width: 100%; max-width: 300px; height: auto; }
.story .copy { padding: clamp(1.5rem, 3vw, 2.5rem); align-self: center; }
.story .copy h3 { margin-bottom: .5rem; }
.story .copy p { color: var(--muted); margin-bottom: .75rem; }
.story .copy p:last-child { margin-bottom: 0; }
.art-cool { background: linear-gradient(160deg, #c9cfe6, #b6bedd); }
.art-lilac { background: linear-gradient(160deg, #d9d5f2, #c8c2ec); }
.art-peach { background: linear-gradient(160deg, #f4e1d4, #edd2c2); }
.art-sky { background: linear-gradient(160deg, #d3e6f3, #bcd6ea); }

/* Service entries */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.service-item { display: flex; flex-direction: column; gap: .4rem; }
.service-item h3 { font-size: 1.3rem; margin: .4rem 0 .25rem; }
.service-item p { color: var(--muted); margin: 0; }
.service-item .benefit { color: var(--text); }
.service-item .text-link { margin-top: .6rem; }
.icon { width: 30px; height: 30px; color: var(--text); }
.icon svg { width: 100%; height: 100%; }

/* About summary strip */
.about-strip { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.about-strip .tile { position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius-lg); background: linear-gradient(150deg, #e2e7f8, #efe7f2); overflow: hidden; }
.tile span { position: absolute; display: block; }

/* Contact block */
.contact-block { background: linear-gradient(160deg, #e3e8f9, #ebe8f8); border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 3.5rem); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); }
.contact-facts { display: grid; gap: 1.25rem; align-content: start; margin: 0; }
.contact-facts dt { font-weight: 600; font-size: .95rem; }
.contact-facts dd { margin: .15rem 0 0; overflow-wrap: anywhere; }
.contact-facts a { font-weight: 500; }
.copy-status { min-height: 1.5em; font-size: .92rem; color: var(--muted); margin-top: .5rem; }

/* Generic content */
.prose h2 { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2rem; margin: 0 0 1em; }
.prose li { margin-bottom: .45rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.card { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: 0 10px 30px -24px rgba(32,45,81,.4); }
.card h3 { margin-bottom: .5rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.75rem); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 1.75rem); counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border-radius: var(--radius); padding: 1.5rem; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; margin-bottom: .9rem; }
.steps h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.steps p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Services overview rows */
.service-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 10px 30px -24px rgba(32,45,81,.4); }
.service-row + .service-row { margin-top: clamp(1.25rem, 3vw, 2rem); }
.service-row:nth-child(even) .art { order: 2; }
.service-row .art { min-height: 260px; display: flex; align-items: flex-end; justify-content: center; padding: 1.5rem 1rem 0; }
.service-row .art svg { width: 100%; max-width: 300px; }
.service-row .copy { padding: clamp(1.5rem, 3.5vw, 2.75rem); }
.service-row .copy p { color: var(--muted); }
.service-row .copy .benefit { color: var(--text); font-weight: 500; }

.detail-hero-art { border-radius: var(--radius-lg); overflow: hidden; display: flex; justify-content: center; align-items: flex-end; padding: 2rem 1rem 0; min-height: 280px; }
.detail-hero-art svg { width: 100%; max-width: 340px; }
.summary-box { border-left: 3px solid var(--accent); padding: .25rem 0 .25rem 1.25rem; margin: 0 0 1.5rem; }
.summary-box p { color: var(--text); font-size: 1.15rem; margin: 0 0 .5rem; }
.summary-box p.benefit { color: var(--muted); font-size: 1.02rem; }

.related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.related a { display: block; text-decoration: none; color: var(--text); background: var(--surface); border-radius: var(--radius); padding: 1.4rem 1.5rem; border: 1px solid transparent; }
.related a:hover { border-color: var(--accent); color: var(--text); }
.related strong { display: block; font-weight: 500; font-size: 1.1rem; margin-bottom: .25rem; }
.related span { color: var(--muted); font-size: .98rem; }

/* Footer */
.site-footer { margin-top: clamp(2rem, 5vw, 4rem); background: #e4e9f8; padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer h2 { font-size: 1rem; font-weight: 600; margin-bottom: .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer p { color: var(--muted); }
.site-footer address { font-style: normal; color: var(--muted); display: grid; gap: .4rem; overflow-wrap: anywhere; }
.footer-base { border-top: 1px solid #cfd6ec; margin-top: 2.5rem; padding-top: 1.25rem; color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }

/* Responsive */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .principles, .service-grid, .card-grid, .card-grid.two, .two-col, .about-strip, .contact-block, .related { grid-template-columns: 1fr; }
  .principle:nth-child(n) { transform: none; }
  .story, .service-row { grid-template-columns: 1fr; width: 100%; }
  .service-row:nth-child(even) .art { order: 0; }
  .story .art, .service-row .art { min-height: 200px; }
  .story .art svg, .service-row .art svg { max-width: 240px; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .steps, .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .hero h1 { font-size: 1.95rem; }
  .g-plane { transform: skewX(-20deg) rotate(-8deg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
