:root,
html[data-theme="light"] {
  --paper: #efeae2;
  --paper-2: #e6dfd4;
  --ink: #1c1915;
  --muted: #6a6258;
  --line: rgba(28, 25, 21, 0.12);
  --navy: #16324f;
  --cyan: #0096e0;
  --cyan-deep: #0078b8;
  --logo-navy: #16324f;
  --logo-cyan: #00a8f0;
  --card: #faf7f2;
  --header-bg: rgba(239, 234, 226, 0.88);
  --input: #faf7f2;
  --on-btn: #fff;
  --dash-bg: #16324f;
  --dash-ink: #f4f1ea;
  --dash-muted: #9eb0c2;
  --shadow: 0 24px 50px rgba(28, 25, 21, 0.08);
  --header: 72px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --paper: #0e1218;
  --paper-2: #161c24;
  --ink: #eee8df;
  --muted: #9aa3ad;
  --line: rgba(238, 232, 223, 0.12);
  --navy: #c5d4e3;
  --cyan: #3dc4ff;
  --cyan-deep: #5ecfff;
  --logo-navy: #d7e2ec;
  --logo-cyan: #3dc4ff;
  --card: #141a22;
  --header-bg: rgba(14, 18, 24, 0.88);
  --input: #141a22;
  --on-btn: #061018;
  --dash-bg: #1a2430;
  --dash-ink: #f4f1ea;
  --dash-muted: #9eb0c2;
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 10px);
}

body {
  margin: 0;
  font-family: Outfit, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 40;
  background: var(--navy);
  color: var(--paper);
  padding: 8px 12px;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin-bottom: 12px;
}

.lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 36ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--on-btn);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--cyan-deep);
}

.text-link {
  font-weight: 600;
  color: var(--cyan-deep);
  text-underline-offset: 4px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.mark {
  width: 34px;
  height: 30px;
  flex: none;
  isolation: isolate;
}

.mark-navy {
  stroke: var(--logo-navy);
}

.mark-cyan {
  stroke: var(--logo-cyan);
}

html[data-theme="light"] .mark-cyan {
  mix-blend-mode: multiply;
}

.word {
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.word .web {
  color: var(--logo-navy);
}

.word .vance {
  color: var(--logo-cyan);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  background: transparent;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.header-inner {
  position: relative;
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--cyan-deep);
}

.nav-cta {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions .btn {
  min-height: 42px;
  padding: 0 16px;
}

.theme-toggle,
.menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.theme-toggle svg,
.menu-toggle svg,
.assistant-toggle svg {
  width: 18px;
  height: 18px;
}

html[data-theme="light"] .icon-sun,
html[data-theme="dark"] .icon-moon {
  display: none;
}

.menu-toggle {
  display: none;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
}

.hero {
  padding: 48px 0 32px;
}

.hero-copy {
  max-width: 38rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  margin-bottom: 18px;
}

.hero .lead {
  max-width: 40ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
  margin-top: 28px;
}

.services {
  padding: 24px 0 72px;
}

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

.service-grid li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 24px 28px;
  min-height: 260px;
}

.service-grid span {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.35rem;
  color: var(--cyan-deep);
}

.service-grid h2 {
  font-family: Outfit, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 18px 0 10px;
}

.service-grid p {
  color: var(--muted);
  margin: 0;
}

.steps {
  padding: 0 0 88px;
}

.steps ol {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.steps li {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
}

.steps strong {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.work {
  background: var(--navy);
  color: var(--paper);
  padding: 72px 0;
}

html[data-theme="dark"] .work {
  background: #15202c;
}

.work h2,
.contact h2 {
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  margin-bottom: 8px;
}

.work .kicker {
  color: var(--logo-cyan);
}

.work-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: end;
}

.work p:not(.kicker) {
  margin-top: 16px;
  max-width: 42ch;
  color: rgba(239, 234, 226, 0.78);
  font-size: 1.08rem;
}

.work-stats {
  display: grid;
  gap: 18px;
}

.work-stats li {
  border-top: 1px solid rgba(239, 234, 226, 0.18);
  padding-top: 12px;
  color: rgba(239, 234, 226, 0.72);
}

.work-stats strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.contact {
  padding: 96px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-mail {
  margin: 28px 0 10px;
}

.contact-mail a {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.contact-mail a:hover {
  color: var(--cyan-deep);
}

.contact-meta {
  color: var(--muted);
}

.contact-meta a {
  color: inherit;
}

.contact-form {
  display: grid;
  gap: 8px;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--input);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

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

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.split p {
  margin: 0;
  display: grid;
  gap: 8px;
}

.form-note,
.form-status {
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner p {
  color: var(--muted);
  font-size: 0.9rem;
}

.assistant {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.assistant-toggle {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--on-btn);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.assistant-toggle .icon-close,
.assistant.is-open .icon-chat {
  display: none;
}

.assistant.is-open .icon-close {
  display: block;
}

.assistant-panel {
  width: min(340px, calc(100vw - 32px));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.assistant-panel header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line);
}

.assistant-panel header p {
  font-weight: 600;
}

.assistant-panel header small {
  color: var(--muted);
}

.assistant-log {
  height: 220px;
  overflow: auto;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.assistant-log p {
  max-width: 90%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 0.92rem;
}

.assistant-log .bot {
  background: var(--paper-2);
}

.assistant-log .user {
  justify-self: end;
  background: var(--cyan);
  color: var(--on-btn);
}

.assistant-log .typing {
  display: flex;
  gap: 4px;
  width: fit-content;
}

.assistant-log .typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: blink 1s infinite;
}

.assistant-log .typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.assistant-log .typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.25;
  }
  40% {
    opacity: 1;
  }
}

.assistant-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 10px;
}

.assistant-prompts button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  cursor: pointer;
}

.assistant-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
}

.assistant-form input {
  flex: 1;
  border: 0;
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
}

.assistant-form button {
  border: 0;
  background: var(--cyan);
  color: var(--on-btn);
  border-radius: 999px;
  padding: 0 14px;
  font-weight: 600;
  cursor: pointer;
}

.js .hero-copy,
.js .service-grid li,
.js .steps ol,
.js .work-row,
.js .contact-grid > * {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .hero-copy,
  .js .service-grid li,
  .js .steps ol,
  .js .work-row,
  .js .contact-grid > *,
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .assistant-log .typing span {
    animation: none;
  }
}

@media (max-width: 860px) {
  .wrap {
    width: min(1120px, calc(100% - 28px));
  }

  .nav {
    display: none;
    position: absolute;
    inset: var(--header) 14px auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .nav.open {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
    width: 100%;
  }

  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .service-grid,
  .steps ol,
  .work-row,
  .contact-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 20px;
  }

  .service-grid li {
    min-height: 0;
  }

  .contact-mail a {
    font-size: 1.6rem;
    word-break: break-all;
  }
}
