:root {
  color-scheme: dark;
  --bg: #09090d;
  --surface: #111117;
  --surface-strong: #171720;
  --panel: #0d0d13;
  --text: #f5f2f7;
  --muted: #aaa5b2;
  --subtle: #77727d;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.24);
  --accent: #b86cff;
  --accent-soft: #7a4cff;
  --accent-text: #d7a9ff;
  --mark-bg: #f5f2f7;
  --mark-text: #09090d;
  --button-bg: #f5f2f7;
  --button-text: #09090d;
  --card-wash: rgba(255, 255, 255, 0.015);
  --accent-wash: rgba(184, 108, 255, 0.13);
  --shadow: rgba(0, 0, 0, 0.28);
  --max: 1240px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f3ef;
  --surface: #ffffff;
  --surface-strong: #ebe7ee;
  --panel: #ffffff;
  --text: #18151c;
  --muted: #625d68;
  --subtle: #7b7481;
  --line: rgba(24, 21, 28, 0.14);
  --line-strong: rgba(24, 21, 28, 0.26);
  --accent: #8738cb;
  --accent-soft: #a64ce6;
  --accent-text: #6d24ab;
  --mark-bg: #18151c;
  --mark-text: #ffffff;
  --button-bg: #18151c;
  --button-text: #ffffff;
  --card-wash: rgba(24, 21, 28, 0.018);
  --accent-wash: rgba(135, 56, 203, 0.10);
  --shadow: rgba(36, 24, 42, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--button-bg);
  color: var(--button-text);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(calc(100% - 48px), var(--max));
  height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .8rem; flex: 0 0 auto; text-decoration: none; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mark-bg);
  color: var(--mark-text);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: -.02em;
}
.brand-name { font-weight: 700; letter-spacing: -.03em; }
.header-tools { display: flex; align-items: center; gap: 1rem; }
.desktop-nav { display: flex; align-items: center; gap: 1.55rem; font-size: .86rem; font-weight: 650; }
.desktop-nav a { color: var(--muted); text-decoration: none; transition: color .2s ease; }
.desktop-nav a:hover, .desktop-nav a:focus-visible, .desktop-nav a[aria-current="page"] { color: var(--text); }
.theme-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.theme-toggle:hover { background: var(--surface); transform: translateY(-1px); }
.theme-icon { font-size: 1.05rem; line-height: 1; }
.theme-icon-moon { display: none; font-size: 1.25rem; }
html[data-theme="light"] .theme-icon-sun { display: none; }
html[data-theme="light"] .theme-icon-moon { display: block; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  list-style: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { display: block; width: 16px; height: 1px; background: var(--text); }
.mobile-nav nav {
  position: absolute;
  z-index: 20;
  top: 54px;
  right: 0;
  min-width: 220px;
  padding: .65rem;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 20px 60px var(--shadow);
}
.mobile-nav nav a { display: block; padding: .78rem 1rem; text-decoration: none; font-weight: 650; }

.eyebrow {
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow span { width: 28px; height: 2px; background: var(--accent); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 65%, transparent); }
.hero {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 7rem 0 7.5rem;
}
.hero-compact { min-height: min(680px, calc(100vh - 92px)); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
h1 {
  max-width: 900px;
  margin-bottom: 1.7rem;
  font-size: clamp(3.8rem, 7.2vw, 7.25rem);
  line-height: .94;
  letter-spacing: -.067em;
  font-weight: 560;
}
h1 em { color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.hero-intro { max-width: 680px; margin-bottom: 2rem; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.28rem); }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 1rem; padding: .75rem 1.3rem; border-radius: 100px; text-decoration: none; font-size: .9rem; font-weight: 700; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--button-bg); color: var(--button-text); }
.button-secondary { border: 1px solid var(--line-strong); }

.section { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 6.5rem 0; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.5rem; align-items: start; margin-bottom: 3.5rem; }
.section-heading .eyebrow { grid-column: 1; }
.section-heading h2 { grid-column: 2; margin-bottom: 0; font-size: clamp(2.5rem, 4.7vw, 4.8rem); line-height: 1; letter-spacing: -.055em; font-weight: 560; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card {
  min-height: 330px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, transparent, var(--card-wash));
  transition: background .25s ease, transform .25s ease;
}
.service-card:hover { background: var(--surface); transform: translateY(-4px); }
.service-icon {
  position: relative;
  width: 56px;
  height: 56px;
  margin-bottom: auto;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}
.service-icon span { position: absolute; display: block; }
.service-icon-ai::before,
.service-icon-ai::after { content: ''; position: absolute; background: currentColor; opacity: .62; }
.service-icon-ai::before { left: 17px; top: 27px; width: 22px; height: 1px; transform: rotate(28deg); }
.service-icon-ai::after { left: 17px; top: 27px; width: 22px; height: 1px; transform: rotate(-28deg); }
.service-icon-ai span { width: 7px; height: 7px; border: 1.5px solid currentColor; border-radius: 50%; background: var(--surface); }
.service-icon-ai span:nth-child(1) { left: 13px; top: 14px; }
.service-icon-ai span:nth-child(2) { right: 13px; top: 14px; }
.service-icon-ai span:nth-child(3) { left: 13px; bottom: 14px; }
.service-icon-ai span:nth-child(4) { right: 13px; bottom: 14px; }
.service-icon-software span { left: 14px; width: 28px; height: 8px; border: 1.5px solid currentColor; border-radius: 2px; }
.service-icon-software span:nth-child(1) { top: 14px; }
.service-icon-software span:nth-child(2) { top: 24px; left: 18px; width: 24px; opacity: .72; }
.service-icon-software span:nth-child(3) { top: 34px; left: 22px; width: 20px; opacity: .44; }
.service-icon-projects::before { content: ''; position: absolute; left: 15px; top: 13px; width: 20px; height: 28px; border: 1.5px solid currentColor; border-radius: 2px; }
.service-icon-projects span:nth-child(1) { left: 20px; top: 21px; width: 10px; height: 1.5px; background: currentColor; opacity: .55; }
.service-icon-projects span:nth-child(2) { left: 20px; top: 27px; width: 7px; height: 1.5px; background: currentColor; opacity: .55; }
.service-icon-projects::after { content: ''; position: absolute; right: 12px; bottom: 13px; width: 13px; height: 13px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(-45deg); }
.service-card h3 { margin-bottom: 1.1rem; font-size: 1.65rem; line-height: 1.1; letter-spacing: -.035em; }
.service-card p { color: var(--muted); }
.service-card a { margin-top: 1rem; text-decoration: none; font-size: .88rem; font-weight: 700; }
.service-card a span { margin-left: .4rem; color: var(--accent); }

.contact h2 { font-size: clamp(2.75rem, 5vw, 5.4rem); line-height: .98; letter-spacing: -.058em; font-weight: 560; }
.contact { padding-bottom: 7rem; }
.contact-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 6rem; align-items: end; }
.contact-inner h2 { margin-bottom: 0; }
.contact-inner > div { color: var(--muted); }
.contact-link { margin-top: 1.6rem; padding: 1rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 700; }
.contact-link b { color: var(--accent); font-size: 1.4rem; }

.placeholder-shell {
  width: min(calc(100% - 48px), var(--max));
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  padding: 6rem 0;
  display: grid;
  place-items: center;
}
.placeholder-card { width: min(100%, 760px); padding: clamp(2rem, 6vw, 5rem); border: 1px solid var(--line); background: linear-gradient(145deg, var(--accent-wash), transparent 58%); }
.placeholder-card h1 { margin-bottom: 1.5rem; font-size: clamp(3.5rem, 9vw, 7rem); }
.placeholder-card p:not(.eyebrow) { max-width: 520px; margin-bottom: 2rem; color: var(--muted); font-size: 1.08rem; }

.site-footer { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 4rem 0 2rem; border-top: 1px solid var(--line); }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.footer-top p { color: var(--muted); text-align: right; font-size: .82rem; }
.footer-links { display: grid; grid-template-columns: 1.2fr .8fr 1.2fr; gap: 2rem; margin: 4rem 0; }
.footer-links div { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.footer-links p { margin-bottom: .5rem; color: var(--subtle); font-size: .68rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--subtle); font-size: .72rem; }
.footer-bottom a { text-decoration: none; }

.legal-shell { width: min(calc(100% - 48px), 1080px); margin: 0 auto; padding: 6.5rem 0 8rem; }
.legal-intro { padding-bottom: 4rem; border-bottom: 1px solid var(--line); }
.legal-intro h1 { max-width: 850px; margin: 0; font-size: clamp(3.2rem, 8vw, 7.5rem); overflow-wrap: anywhere; }
.privacy-page .legal-intro h1 { max-width: 100%; font-size: clamp(3.2rem, 7vw, 6.5rem); overflow-wrap: normal; hyphens: auto; }
.legal-document { max-width: 820px; margin: 5rem auto 0; color: var(--muted); }
.legal-document h2 { margin: 4.2rem 0 1.3rem; color: var(--text); font-size: clamp(1.45rem, 3vw, 2.05rem); line-height: 1.2; letter-spacing: -.035em; }
.legal-document h2:first-child { margin-top: 0; }
.legal-document h3 { margin: 2.5rem 0 1rem; color: var(--text); font-size: 1.15rem; letter-spacing: -.02em; }
.legal-document p { margin-bottom: 1.25rem; }
.legal-document ul { margin: 0 0 1.6rem; padding: 0; list-style: none; }
.legal-document li { position: relative; padding: .35rem 0 .35rem 1.4rem; }
.legal-document li::before { content: ''; position: absolute; left: 0; top: 1.02rem; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.legal-document a { color: var(--accent-text); text-underline-offset: .2em; overflow-wrap: anywhere; }
.legal-updated { display: inline-block; margin-bottom: 1rem; padding: .45rem .75rem; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); font-size: .75rem; }
.legal-footer { width: min(calc(100% - 48px), 1080px); }
.error-page main { width: min(calc(100% - 48px), 980px); min-height: 100vh; margin: 0 auto; padding: 2.5rem 0 6rem; display: flex; flex-direction: column; justify-content: space-between; }
.error-page main > div { padding-top: 6rem; }
.error-page .error-code { margin-bottom: 1rem; color: var(--accent); font: 650 .8rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.error-page h1 { max-width: 850px; font-size: clamp(3.2rem, 8vw, 7rem); }
.error-page main > div > p:not(.error-code) { max-width: 520px; margin-bottom: 2rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 1020px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 280px; }
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 760px) {
  .site-header, .hero, .section, .placeholder-shell { width: min(calc(100% - 32px), var(--max)); }
  .site-header { height: 76px; }
  .brand-name { display: none; }
  .hero { padding: 5rem 0 5.5rem; }
  .hero-compact { min-height: auto; }
  h1 { font-size: clamp(3.2rem, 15.7vw, 5rem); }
  .section { padding: 5rem 0; }
  .section-heading { grid-template-columns: 1fr; gap: 1rem; }
  .section-heading .eyebrow, .section-heading h2 { grid-column: 1; }
  .footer-top { flex-direction: column; }
  .footer-top p { text-align: left; }
  .footer-links { grid-template-columns: 1fr 1fr; margin: 4rem 0; }
  .footer-links div:last-child { grid-column: 1 / -1; }
  .site-footer { width: min(calc(100% - 32px), var(--max)); }
  .legal-shell, .legal-footer, .error-page main { width: min(calc(100% - 32px), 1080px); }
  .legal-shell { padding: 4.5rem 0 6rem; }
  .legal-intro { padding-bottom: 3rem; }
  .legal-document { margin-top: 3.5rem; }
  .legal-document h2 { margin-top: 3.2rem; }
}
@media (max-width: 460px) {
  .footer-links { grid-template-columns: 1fr; }
  .footer-links div:last-child { grid-column: auto; }
}
