:root {
  color-scheme: light;
  --bg: #F4F2F7;
  --surface: #f7f7fa;
  --ink: #1f2937;
  --muted: #606875;
  --accent: #6f339c;
  --line: #e1e2e8;
  --max-width: 1280px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
:root[data-theme="dark"] { color-scheme: dark; --bg: #111827; --surface: #1b2333; --ink: #f9fafb; --muted: #c0c6d2; --accent: #bc7bec; --line: #364052; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { color-scheme: dark; --bg: #111827; --surface: #1b2333; --ink: #f9fafb; --muted: #c0c6d2; --accent: #bc7bec; --line: #364052; }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input { font: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; letter-spacing: 0; }
h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 20px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.container { width: min(var(--max-width), 100% - 64px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 16px; transform: translateY(-200%); padding: 8px 16px; background: var(--bg); }
.skip-link:focus { transform: none; }
.site-header { background: var(--bg); position: sticky; top: 0; z-index: 20; }
.header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; min-height: 96px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 26px; font-weight: 500; text-decoration: none; flex-shrink: 0; }
.brand img { width: 100px; height: auto; object-fit: contain; }
.desktop-nav { display: flex; justify-self: center; gap: 24px; }
.desktop-nav a, .mobile-menu nav > a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 16px; }
.desktop-nav a:hover, .desktop-nav a[aria-current], .mobile-menu a[aria-current] { color: var(--accent); }
.header-actions { display: flex; justify-self: end; align-items: center; gap: 20px; }
.header-preferences { display: flex; align-items: center; gap: 10px; }
.language-nav { display: flex; gap: 10px; }
.language-nav a { font-size: 13px; text-decoration: none; color: var(--muted); padding-block: 8px; }
.language-nav a[aria-current] { color: var(--accent); font-weight: 700; border-bottom: 2px solid var(--accent); }
.theme-toggle { display: grid; place-items: center; width: 38px; height: 38px; padding: 8px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: none; }
}
.btn, #contact > p > a { display: inline-flex; justify-content: center; align-items: center; padding: 14px 28px; color: #fff; background: #6f339c; border: 1px solid transparent; border-radius: 6px; text-decoration: none; font-weight: 500; line-height: 1.4; text-align: center; }
.btn:hover, #contact > p > a:hover { background: #59267e; }
.btn-secondary { color: var(--accent); background: transparent; border-color: var(--accent); }
.btn-secondary:hover { color: var(--accent); background: var(--surface); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.mobile-menu { display: none; }
.landing-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 36px; padding-block: 52px 60px; }
.landing-hero h1 { font-size: 60px; max-width: 600px; }
.landing-hero > img { width: 100%; aspect-ratio: 1460 / 1233; object-fit: contain; }
.lead { color: var(--muted); font-size: 24px; line-height: 1.5; max-width: 800px; margin-bottom: 28px; }
.section { padding-block: 52px; }
.eyebrow { font-size: 14px; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.ai-accent { color: var(--accent); }
.benefit { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; margin-block: 80px; }
.site-footer { border-top: 1px solid var(--line); padding-block: 44px 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 40px; }
.footer-intro p { color: var(--muted); max-width: 430px; margin: 18px 0 0; }
.footer-badges { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-badges a { display: flex; width: 100%; justify-content: center; }
.footer-badges img { object-fit: contain; width: min(100%, 160px); height: auto; }
.site-footer address { justify-self: end; text-align: right; font-size: 14px; font-style: normal; color: var(--muted); }
.footer-credits { text-align: center; font-size: 13px; color: var(--muted); margin: 32px 0 0; }
.footer-credits a { color: inherit; }
.page-heading { padding-block: 52px 60px; }
.page-heading h1 { max-width: 900px; }
.page-heading-copy { min-width: 0; }
.page-hero-art img { width: 100%; aspect-ratio: 1460 / 1233; object-fit: contain; }
.hint { color: var(--muted); font-size: 14px; max-width: 440px; margin: 0; }
.prose { max-width: 850px; font-size: 18px; }
.page-content.prose, .prose.stack-page, .prose.about-page { max-width: var(--max-width); }
.team-profile { display: grid; grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr); align-items: start; gap: 56px; padding-block: 32px 56px; }
.team-profile + .team-profile { border-top: 1px solid var(--line); }
.team-profile:nth-of-type(odd) { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); }
.team-profile:nth-of-type(odd) > .profile-media { order: 2; }
.profile-media { min-width: 0; }
.profile-media > p { margin: 0; }
.profile-media > p img { width: 100%; margin: 0; }
.team-profile .markdown-copy { min-width: 0; }
.team-profile .markdown-copy > h2 { margin-top: 0; }
.team-profile .markdown-copy > p { color: var(--muted); }
.team-profile .markdown-copy > p:last-child { margin-bottom: 0; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.profile-actions .btn { gap: 10px; }
.profile-actions svg { width: 20px; height: 20px; flex-shrink: 0; }
.page-content { padding-block: 24px 90px; }
.prose h2 { font-size: 30px; margin: 48px 0 20px; }
.stack-page > h2 { margin-top: 96px; padding-top: 48px; border-top: 1px solid var(--line); }
.prose h3 { font-size: 24px; margin-top: 32px; }
.prose p, .prose ul, .prose ol { margin-bottom: 24px; }
.prose li { padding-left: 6px; margin-bottom: 12px; }
.prose li::marker { color: var(--accent); }
.prose blockquote { border-left: 3px solid var(--accent); padding: 12px 24px; margin: 32px 0; color: var(--muted); background: var(--surface); }
.prose blockquote p:last-child { margin: 0; }
.prose img { margin: 32px auto; border-radius: 6px; }
.prose pre { padding: 20px; overflow: auto; background: var(--surface); border-radius: 6px; font-size: 15px; }
.prose code { overflow-wrap: anywhere; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--line); padding: 10px; }
.prose .stack-architecture { margin: 64px 0 80px; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.stack-option-label, .stack-eyebrow, .stack-layer-label { color: var(--accent); font-size: 13px; font-weight: 700; }
.stack-diagram { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .32fr); grid-template-rows: repeat(3, auto); gap: 12px 20px; }
.stack-layer { display: grid; grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr); align-items: center; gap: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.stack-layer--clients { grid-column: 1; grid-row: 1; }
.stack-layer--core { grid-column: 1; grid-row: 2; }
.stack-layer--infrastructure { grid-column: 1; grid-row: 3; background: var(--surface); }
.stack-layer--core { border-left: 4px solid var(--accent); }
.stack-layer h3 { margin: 6px 0 0; font-size: 21px; }
.stack-layer > p { margin: 0; color: var(--muted); }
.stack-layer-items { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.stack-layer-items li { padding: 7px 12px; border: 1px solid var(--accent); border-radius: 4px; background: var(--surface); }
.stack-monitoring { grid-column: 2; grid-row: 1 / 4; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.stack-monitoring strong { font-size: 18px; }
.stack-architecture figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; }
.stack-challenge { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; margin-block: 40px 0; }
.stack-challenge-intro { align-self: start; }
.stack-challenge-intro > p:not(.stack-challenge-statement) { margin: 20px 0 0; color: var(--muted); }
.stack-eyebrow { margin-bottom: 18px; }
.stack-challenge-statement { max-width: 420px; margin: 0; font-size: 32px; font-weight: 700; line-height: 1.25; }
.stack-challenge-list { display: grid; gap: 28px; }
.stack-challenge-list article { display: grid; grid-template-columns: 38px 1fr; gap: 18px; align-items: start; }
.stack-challenge-list article > span { color: var(--accent); font-size: 14px; font-weight: 700; }
.stack-challenge-list h3 { margin: 0 0 6px; font-size: 22px; }
.stack-challenge-list p { margin: 0; color: var(--muted); }
.stack-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-block: 40px 32px; }
.stack-option { display: flex; min-width: 0; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: 6px; background: var(--surface); }
.stack-option--guided { border-top-color: var(--accent); }
.stack-option-label { margin-bottom: 12px; }
.stack-option h3 { margin-bottom: 12px; }
.stack-option > p:not(.stack-option-label) { color: var(--muted); }
.stack-option ul { padding-left: 22px; }
.stack-cta { align-self: flex-start; gap: 10px; margin-top: auto; }
.stack-cta svg { width: 20px; height: 20px; flex: 0 0 auto; }
.stack-cta:hover { background: #59267e; }
.stack-process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 32px 0 40px; padding: 0; list-style: none; counter-reset: stack-step; }
.stack-process li { min-width: 0; padding-top: 20px; border-top: 1px solid var(--line); counter-increment: stack-step; }
.stack-process li::before { content: counter(stack-step, decimal-leading-zero); display: grid; width: 38px; height: 38px; place-items: center; margin-top: -40px; margin-bottom: 16px; border-radius: 50%; color: #fff; background: var(--accent); font-size: 14px; font-weight: 700; }
.stack-process h3 { margin: 0 0 10px; }
.stack-process p { margin: 0; color: var(--muted); }
.blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; padding-bottom: 100px; }
.blog-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.blog-card > a { display: block; color: inherit; text-decoration: none; height: 100%; }
.blog-card > a:hover h2 { color: var(--accent); }
.blog-card img { width: 100%; height: 280px; object-fit: contain; padding: 20px; }
.blog-card-copy { padding: 28px; }
.blog-card h2 { font-size: 28px; }
.blog-card p { color: var(--muted); }
.blog-meta { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.read-link { color: var(--accent); font-weight: 600; }
.article { padding-block: 48px 90px; }
.article-heading { max-width: var(--max-width); margin: 32px 0 48px; }
.article-heading h1 { margin-bottom: 24px; }
.article .prose { max-width: var(--max-width); margin-inline: 0; }
.back-link { display: inline-block; font-size: 15px; }
.landing-hero > p { margin: 0; }
.landing-hero > p img { width: 100%; aspect-ratio: 1460 / 1233; object-fit: contain; }
.landing-hero .markdown-copy > p:not(:last-child) { color: var(--muted); font-size: 24px; line-height: 1.5; margin-block: 24px 28px; }
.markdown-section > h2 { text-align: center; }
#vision, #contact, #about-intro { text-align: center; }
#about-intro { width: 100%; }
#vision > p, #about-intro > p { max-width: 900px; margin: 24px auto 0; color: var(--muted); font-size: 20px; }
#project-intro { display: flex; align-items: center; gap: 40px; text-align: left; }
#project-intro > p:first-of-type { flex: 1; max-width: 900px; margin: 0; color: var(--muted); font-size: 20px; }
#project-intro > p:last-child { order: -1; flex: 0 0 177px; margin: 0; }
#project-intro > p:last-child a { display: block; width: fit-content; }
#project-intro > p:last-child img { width: 177px; }
#vision .vision-cards { margin-top: 40px; }
#vision .vision-cards ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0; margin: 0; list-style: none; text-align: center; }
#vision .vision-cards li { min-height: 170px; padding: 24px 20px; color: #fff; background: #242334; border: 1px solid rgb(111 51 156 / 28%); border-radius: 8px; }
#vision .vision-cards svg { display: block; width: 32px; height: 32px; margin: 0 auto 14px; color: var(--accent); }
#vision .vision-cards h3 { margin: 0 0 8px; color: #fff; font-size: 20px; }
#vision .vision-cards p { margin: 0; color: #e2dfea; font-size: 16px; }
#motivation > p { max-width: 900px; margin-inline: auto; color: var(--muted); font-size: 18px; }
#motivation > p:last-child { margin-top: 28px; text-align: center; }
.benefit > p { margin: 0; }
.benefit > p img { width: 100%; aspect-ratio: 1; max-height: 520px; object-fit: contain; }
.benefit--reverse > p { order: 2; }
.benefit .markdown-copy > p { color: var(--muted); font-size: 18px; }
.benefit ul { padding-left: 24px; margin-top: 30px; }
.benefit li { padding-left: 8px; margin-top: 24px; }
.benefit li::marker { color: var(--accent); }
.benefit li strong { display: block; color: var(--ink); font-size: 20px; line-height: 1.3; }
.benefit li p { margin: 0 0 8px; color: var(--muted); }
#company { max-width: 1100px; font-size: 18px; }
.company-preview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; margin-top: 32px; }
.company-preview > p { margin: 0; }
.company-preview img { width: 100%; border-radius: 6px; }
.company-preview h3 { font-size: 26px; margin-bottom: 18px; }
.company-preview .markdown-copy > p { color: var(--muted); }
.company-preview .markdown-copy > p:last-child { margin-bottom: 0; }
.company-preview a { font-weight: 600; }
#contact { padding-bottom: 90px; }
.projects-page { padding-bottom: 70px; }
.project-showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: 72px; padding-block: 60px; }
.project-showcase + .project-showcase { border-top: 1px solid var(--line); }
.project-showcase:nth-child(even) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.project-showcase:nth-child(even) > p { order: 2; }
.project-showcase > p { margin: 0; }
.project-showcase img { width: 100%; height: 320px; object-fit: contain; }
.project-showcase h2 { font-size: 32px; }
.project-showcase .markdown-copy > p { color: var(--muted); font-size: 20px; margin: 0; }
#project-notes { width: 100%; max-width: var(--max-width); font-size: 18px; }
#project-notes.container { margin-inline: 0; }
#project-notes h2 { text-align: left; font-size: 28px; margin-top: 44px; }
#project-notes li { margin-block: 16px; }
#project-notes li::marker { color: var(--accent); }
@media (max-width: 1200px) {
  .desktop-nav { gap: 16px; }
  .header-inner { gap: 18px; }
  .header-actions { gap: 14px; }
  .landing-hero h1 { font-size: 48px; }
  .benefit { gap: 40px; }
}
@media (max-width: 1050px) {
  .header-inner { display: flex; }
  .desktop-nav { display: none; }
  .header-actions { margin-left: auto; }
  .mobile-menu { display: block; }
  .mobile-menu summary { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .menu-lines { width: 22px; height: 16px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); position: relative; }
  .menu-lines::after { content: ''; position: absolute; top: 5px; width: 22px; border-top: 2px solid var(--ink); }
  .mobile-menu nav { position: absolute; inset: 85px 0 auto; display: flex; flex-direction: column; gap: 8px; background: var(--bg); border: 1px solid var(--line); padding: 20px; box-shadow: 0 12px 24px #0002; }
  .mobile-menu nav a { padding: 8px; }
  .mobile-menu nav .btn { margin-top: 12px; padding: 14px; }
}
@media (max-width: 850px) {
  #vision .vision-cards ul { gap: 14px; }
  #vision .vision-cards li { padding-inline: 16px; }
  .team-profile, .team-profile:nth-of-type(odd) { grid-template-columns: 1fr; gap: 28px; }
  .team-profile:nth-of-type(odd) > .profile-media { order: 0; }
  .profile-media { max-width: 360px; }
  .company-preview { grid-template-columns: 1fr; gap: 28px; }
  .company-preview > p { max-width: 500px; }
  .landing-hero { grid-template-columns: 1fr; padding-top: 28px; }
  .landing-hero > div { max-width: 650px; }
  .page-heading > .page-hero-art { display: none; }
  .landing-hero > img { max-width: 500px; margin-inline: auto; }
  .landing-hero > p { max-width: 500px; margin-inline: auto; }
  .stack-diagram { grid-template-columns: 1fr; grid-template-rows: auto; }
  .stack-layer--clients, .stack-layer--core, .stack-layer--infrastructure, .stack-monitoring { grid-column: 1; grid-row: auto; }
  .benefit { grid-template-columns: 1fr; gap: 30px; margin-block: 56px; }
  .benefit--reverse > p { order: 0; }
  .benefit > p img { max-height: 380px; }
  .project-showcase, .project-showcase:nth-child(even) { grid-template-columns: 1fr; gap: 28px; padding-block: 40px; }
  .project-showcase:nth-child(even) > p { order: 0; }
  .project-showcase img { height: 280px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .footer-grid address { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 40px); }
  #vision .vision-cards { margin-top: 32px; }
  #vision .vision-cards ul { grid-template-columns: 1fr; }
  .header-inner { min-height: 80px; gap: 12px; }
  .mobile-menu nav { top: 74px; }
  h1, .landing-hero h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  h3 { font-size: 25px; }
  .lead { font-size: 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .landing-hero .markdown-copy > p:not(:last-child), .project-showcase .markdown-copy > p { font-size: 20px; }
  .project-showcase h2 { font-size: 27px; }
  #vision > p, #project-intro > p:first-of-type, #about-intro > p { font-size: 18px; }
  #project-intro { gap: 20px; }
  #project-intro > p:last-child { flex-basis: 120px; }
  #project-intro > p:last-child img { width: 120px; }
  .section { padding-block: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-badges { flex-direction: row; flex-wrap: wrap; }
  .brand img { width: 88px; }
  .footer-badges a { width: 100%; }
  .footer-badges img { width: min(100%, 130px); }
  .page-heading { padding-block: 32px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 26px; }
  .stack-page > h2 { margin-top: 64px; padding-top: 32px; }
  .prose .stack-architecture { margin-block: 48px 60px; padding: 14px; }
  .stack-options, .stack-process { grid-template-columns: 1fr; }
  .stack-layer { grid-template-columns: 1fr; gap: 16px; }
  .stack-monitoring { align-items: flex-start; flex-direction: column; gap: 8px; }
  .stack-challenge { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
  .stack-challenge-statement { font-size: 27px; }
  .stack-options { gap: 20px; margin-top: 32px; }
  .stack-process { gap: 28px; }
  .stack-process li { margin-left: 4px; }
  .blog-grid { grid-template-columns: 1fr; gap: 28px; }
  .blog-card h2 { font-size: 25px; }
  .blog-card img { height: 220px; }
  .blog-card-copy { padding: 22px; }
  .article { padding-top: 28px; }
  .article-heading { margin-top: 28px; }
}