:root {
  --ink: #0b1728;
  --navy: #07111f;
  --navy-soft: #0d1d33;
  --paper: #f6f7fb;
  --white: #ffffff;
  --slate: #617085;
  --line: #dfe4ec;
  --violet: #7047eb;
  --violet-dark: #5832ce;
  --mint: #16e4ad;
  --amber: #ffb45c;
  --shadow: 0 24px 70px rgba(7, 17, 31, .11);
  --radius: 22px;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 999; padding: 10px 16px; color: white; background: var(--violet); border-radius: 8px; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.header-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: 13px; color: white; text-decoration: none; font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.brand img {
  width: 70px;
  height: 48px;
  padding: 5px 7px;
  object-fit: contain;
  background: linear-gradient(135deg, rgba(255,255,255,.99), rgba(239,235,255,.96));
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 12px;
  box-shadow: 0 7px 22px rgba(0,0,0,.22), 0 0 0 1px rgba(112,71,235,.12) inset;
}
.brand strong { color: var(--mint); font-weight: 700; }

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a { color: rgba(255,255,255,.76); text-decoration: none; font-size: 14px; font-weight: 600; transition: color .2s, background .2s; }
.site-nav a:hover { color: white; }
.site-nav .nav-cta { padding: 11px 18px; color: white; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; }
.site-nav .nav-cta:hover { background: rgba(255,255,255,.08); }
.menu-button { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; }
.menu-button span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px auto; background: white; transition: transform .2s, opacity .2s; }

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  padding: 176px 0 112px;
  color: white;
  background:
    radial-gradient(circle at 76% 36%, rgba(112, 71, 235, .23), transparent 32%),
    radial-gradient(circle at 18% 86%, rgba(22, 228, 173, .08), transparent 28%),
    var(--navy);
}

.hero::before { content: ""; position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to right, black, transparent 85%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 80px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--violet); font-size: 12px; line-height: 1.2; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 2px; background: currentColor; }
.hero .eyebrow { color: var(--mint); }

h1, h2, h3, p { margin-top: 0; }
h1, h2 { margin-bottom: 24px; font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.04; letter-spacing: -.045em; }
h1 { max-width: 670px; font-size: clamp(58px, 6vw, 88px); }
h2 { font-size: clamp(42px, 4.4vw, 63px); }
h1 em, h2 em { color: var(--mint); font-weight: 400; }
.expertise h2 em { color: var(--violet); }
.hero-lede { max-width: 650px; margin-bottom: 36px; color: rgba(255,255,255,.69); font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; }

.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 14px 23px; border: 0; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 750; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--violet); box-shadow: 0 12px 26px rgba(112,71,235,.26); }
.button-primary:hover { background: var(--violet-dark); box-shadow: 0 16px 30px rgba(112,71,235,.33); }
.text-link { color: rgba(255,255,255,.78); font-size: 14px; font-weight: 700; text-decoration: none; }
.text-link span { display: inline-block; margin-left: 8px; color: var(--mint); transition: transform .2s; }
.text-link:hover span { transform: translateY(3px); }

.hero-visual { position: relative; min-height: 460px; display: grid; place-items: center; }
.code-card { position: relative; z-index: 2; width: min(100%, 500px); border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); background: rgba(10, 25, 44, .88); box-shadow: 0 34px 90px rgba(0,0,0,.36); transform: rotate(2deg); backdrop-filter: blur(14px); }
.window-bar { height: 52px; display: flex; align-items: center; gap: 7px; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.09); }
.window-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.21); }
.window-bar i:first-child { background: var(--violet); }
.window-bar i:nth-child(2) { background: var(--amber); }
.window-bar i:nth-child(3) { background: var(--mint); }
.window-bar span { margin-left: auto; color: rgba(255,255,255,.38); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.code-lines { padding: 28px 20px 32px; font: 15px/1.72 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.code-lines p { display: grid; grid-template-columns: 34px 1fr; margin: 0; }
.code-lines b { color: rgba(255,255,255,.21); font-weight: 400; user-select: none; }
.violet { color: #9e7aff; }.blue { color: #71b7ff; }.mint { color: var(--mint); }.amber { color: #ffc67f; }.muted { color: rgba(255,255,255,.38); }
.experience-badge { position: absolute; right: -12px; bottom: 12px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 16px 18px; color: var(--ink); background: var(--mint); border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.28); transform: rotate(-4deg); }
.experience-badge strong { font: 50px/.8 Georgia, serif; }
.experience-badge span { font-size: 10px; line-height: 1.25; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb-one { top: 10px; right: 28px; width: 90px; height: 90px; border: 1px solid rgba(22,228,173,.4); }
.orb-two { left: 12px; bottom: 20px; width: 180px; height: 180px; background: rgba(112,71,235,.12); filter: blur(12px); }

.proof-strip { color: white; background: var(--violet); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-grid p { margin: 0; padding: 26px 24px; border-right: 1px solid rgba(255,255,255,.17); }
.proof-grid p:first-child { padding-left: 0; }
.proof-grid p:last-child { border: 0; }
.proof-grid strong, .proof-grid span { display: block; }
.proof-grid strong { font-size: 14px; }
.proof-grid span { color: rgba(255,255,255,.65); font-size: 12px; }

.section { padding: 120px 0; }
.section-heading { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 90px; margin-bottom: 62px; }
.section-heading h2 { max-width: 760px; margin-bottom: 0; }
.section-heading > p { margin-bottom: 5px; color: var(--slate); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { position: relative; overflow: hidden; min-height: 390px; padding: 35px; background: white; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s, box-shadow .25s, border-color .25s; }
.service-card::after { content: ""; position: absolute; inset: auto -60px -90px auto; width: 180px; height: 180px; border-radius: 50%; background: rgba(112,71,235,.06); transition: transform .3s; }
.service-card:hover { transform: translateY(-7px); border-color: rgba(112,71,235,.28); box-shadow: var(--shadow); }
.service-card:hover::after { transform: scale(1.25); }
.card-number { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 40px; color: var(--violet); background: #f0ecff; border-radius: 50%; font: 700 12px ui-monospace, monospace; }
.service-card h3 { margin-bottom: 14px; font-size: 21px; line-height: 1.3; letter-spacing: -.02em; }
.service-card p { margin-bottom: 24px; color: var(--slate); font-size: 14px; }
.service-card ul { position: relative; z-index: 1; margin: 0; padding: 0; list-style: none; }
.service-card li { padding: 8px 0 8px 20px; color: #324157; font-size: 13px; font-weight: 650; }
.service-card li::before { content: ""; position: absolute; width: 6px; height: 6px; margin: 8px 0 0 -19px; border-radius: 50%; background: var(--mint); }

.toolkit { margin-top: 76px; padding: 48px; color: white; background: var(--navy); border-radius: var(--radius); box-shadow: var(--shadow); }
.toolkit-heading { display: grid; grid-template-columns: .7fr 1.15fr 1.15fr; align-items: end; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.13); }
.toolkit-heading .eyebrow { margin-bottom: 7px; color: var(--mint); }
.toolkit-heading h3 { margin: 0; font: 400 31px/1.15 Georgia, serif; letter-spacing: -.025em; }
.toolkit-heading > p:last-child { margin: 0; color: rgba(255,255,255,.56); font-size: 13px; }
.skill-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; margin: 25px 0 0; padding: 0; list-style: none; }
.skill-list li { display: grid; grid-template-columns: 32px 1fr; align-items: center; min-height: 52px; padding: 10px 0; color: rgba(255,255,255,.87); border-bottom: 1px solid rgba(255,255,255,.1); font-size: 13px; font-weight: 650; }
.skill-list li span { color: var(--mint); font: 700 10px ui-monospace, monospace; }

.approach { position: relative; overflow: hidden; color: white; background: var(--navy); }
.approach::after { content: ""; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.018); }
.approach-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1.15fr; gap: 120px; align-items: center; }
.eyebrow-light { color: var(--mint); }
.approach-copy h2 { max-width: 530px; }
.approach-copy > p:not(.eyebrow) { max-width: 540px; color: rgba(255,255,255,.64); }
.approach blockquote { margin: 38px 0 0; padding: 2px 0 2px 20px; color: rgba(255,255,255,.83); border-left: 2px solid var(--violet); font: italic 17px/1.6 Georgia, serif; }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.14); }
.process-list li { display: grid; grid-template-columns: 60px 1fr; gap: 22px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.process-list > li > span { color: var(--mint); font: 700 12px ui-monospace, monospace; padding-top: 5px; }
.process-list h3 { margin: 0 0 7px; font-size: 18px; }
.process-list p { margin: 0; color: rgba(255,255,255,.58); font-size: 14px; }

.contact { background: white; }
.contact-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 110px; align-items: start; }
.contact-copy { position: sticky; top: 40px; }
.contact-copy h2 { max-width: 500px; }
.contact-copy > p:not(.eyebrow) { max-width: 450px; color: var(--slate); }
.contact-methods { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 30px; }
.contact-link { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 10px; color: var(--ink); font-weight: 750; text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-link small { flex-basis: 100%; color: var(--slate); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.contact-link span { color: var(--violet); }

.contact-form { padding: 38px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 7px; color: #27364b; font-size: 12px; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; color: var(--ink); background: white; border: 1px solid #d7dde7; border-radius: 9px; outline: none; transition: border .2s, box-shadow .2s; }
.field input, .field select { height: 52px; padding: 0 15px; }
.field textarea { min-height: 142px; padding: 13px 15px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9ba6b6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(112,71,235,.12); }
.field [aria-invalid="true"] { border-color: #d64056; }
.field-error { min-height: 18px; display: block; padding-top: 3px; color: #b72f44; font-size: 11px; }
.website-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: flex; align-items: center; gap: 18px; }
.form-footer p { max-width: 230px; margin: 0; color: var(--slate); font-size: 11px; line-height: 1.5; }
.form-status { display: none; margin-top: 20px; padding: 12px 14px; border-radius: 8px; font-size: 13px; font-weight: 650; }
.form-status.is-success { display: block; color: #08664f; background: #dcfaef; }
.form-status.is-error { display: block; color: #9e283a; background: #ffe7eb; }
.contact-form.is-loading .button { pointer-events: none; opacity: .75; }
.button-spinner { display: none; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.35); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
.contact-form.is-loading .button-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.site-footer { padding: 31px 0; color: white; background: #040a12; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-inner p { margin: 0; color: rgba(255,255,255,.48); font-size: 11px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 65px; }
  .hero-visual { min-height: 400px; }
  .section-heading, .approach-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card:last-child { grid-column: 1 / -1; min-height: 330px; }
  .toolkit-heading { grid-template-columns: 1fr 1fr; }
  .toolkit-heading > p:last-child { grid-column: 1 / -1; }
  .approach-grid { gap: 70px; }
  .contact-copy { position: static; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid p:nth-child(2) { border-right: 0; }
  .proof-grid p:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.17); }
}

@media (max-width: 700px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .header-inner { height: 76px; }
  .brand { gap: 9px; font-size: 14px; }
  .brand img { width: 58px; height: 40px; padding: 4px 6px; border-radius: 10px; }
  .menu-button { display: block; position: relative; z-index: 22; }
  .menu-button[aria-expanded="true"] span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 0; z-index: 21; display: flex; flex-direction: column; justify-content: center; gap: 30px; visibility: hidden; opacity: 0; background: rgba(7,17,31,.98); transition: opacity .2s, visibility .2s; }
  .site-nav.is-open { visibility: visible; opacity: 1; }
  .site-nav a { font-size: 20px; }
  .hero { min-height: auto; padding: 145px 0 90px; }
  h1 { font-size: clamp(51px, 15vw, 70px); }
  h2 { font-size: clamp(39px, 12vw, 54px); }
  .hero-lede { font-size: 16px; }
  .hero-visual { min-height: 340px; }
  .code-lines { font-size: 12px; }
  .experience-badge { right: 0; bottom: -2px; }
  .experience-badge strong { font-size: 42px; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid p, .proof-grid p:first-child { padding: 17px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.17); }
  .section { padding: 84px 0; }
  .section-heading { gap: 22px; margin-bottom: 40px; }
  .service-grid, .form-row { grid-template-columns: 1fr; }
  .service-card:last-child { grid-column: auto; }
  .service-card { min-height: auto; }
  .toolkit { margin-top: 50px; padding: 28px 20px; }
  .toolkit-heading, .skill-list { grid-template-columns: 1fr; }
  .toolkit-heading { gap: 16px; }
  .toolkit-heading > p:last-child { grid-column: auto; }
  .approach-grid { gap: 60px; }
  .process-list li { grid-template-columns: 42px 1fr; gap: 12px; }
  .contact-grid { gap: 45px; }
  .contact-form { padding: 25px 18px; }
  .form-footer { align-items: flex-start; flex-direction: column; }
  .form-footer .button { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Light theme */
body { background: #fbfaf7; }

.site-header {
  background: rgba(251, 250, 247, .9);
  border-bottom-color: rgba(11, 23, 40, .1);
  backdrop-filter: blur(14px);
}

.brand { color: var(--ink); }
.brand strong { color: var(--violet-dark); }
.brand img {
  background: linear-gradient(135deg, #ffffff, #eeeaff);
  border-color: #d8d1f1;
  box-shadow: 0 7px 20px rgba(48, 36, 99, .12), 0 0 0 1px rgba(112, 71, 235, .08) inset;
}

.site-nav a { color: #4e5969; }
.site-nav a:hover { color: var(--violet-dark); }
.site-nav .nav-cta { color: var(--violet-dark); border-color: rgba(88, 50, 206, .3); background: rgba(112, 71, 235, .06); }
.site-nav .nav-cta:hover { color: white; background: var(--violet); }
.menu-button span:not(.sr-only) { background: var(--ink); }

.hero {
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 32%, rgba(112, 71, 235, .15), transparent 32%),
    radial-gradient(circle at 16% 88%, rgba(22, 228, 173, .12), transparent 29%),
    #fbfaf7;
}

.hero::before {
  opacity: .48;
  background-image: linear-gradient(rgba(11, 23, 40, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 23, 40, .07) 1px, transparent 1px);
}

.hero .eyebrow { color: var(--violet-dark); }
.hero h1 em { color: var(--violet); }
.hero-lede { color: #5a687a; }
.text-link { color: #344154; }
.text-link span { color: var(--violet); }

.proof-strip { background: linear-gradient(90deg, #6840df, #7750ef); }
.expertise { background: #f7f6f2; }
.service-card { border-color: #e2dfd8; box-shadow: 0 12px 34px rgba(31, 25, 58, .045); }

.toolkit {
  color: var(--ink);
  background: linear-gradient(145deg, #ffffff, #eeecff);
  border: 1px solid #dad5ee;
  box-shadow: 0 25px 65px rgba(35, 28, 68, .09);
}
.toolkit-heading { border-bottom-color: rgba(11, 23, 40, .14); }
.toolkit-heading .eyebrow { color: var(--violet-dark); }
.toolkit-heading > p:last-child { color: var(--slate); }
.skill-list li { color: #27364b; border-bottom-color: rgba(11, 23, 40, .11); }
.skill-list li span { color: var(--violet-dark); }

.approach { color: var(--ink); background: #eef1ff; }
.approach::after {
  border-color: rgba(88, 50, 206, .12);
  box-shadow: 0 0 0 80px rgba(112, 71, 235, .035), 0 0 0 160px rgba(112, 71, 235, .02);
}
.approach .eyebrow-light { color: var(--violet-dark); }
.approach h2 em { color: var(--violet); }
.approach-copy > p:not(.eyebrow) { color: #5d687a; }
.approach blockquote { color: #344154; border-left-color: var(--violet); }
.process-list { border-top-color: rgba(11, 23, 40, .14); }
.process-list li { border-bottom-color: rgba(11, 23, 40, .14); }
.process-list > li > span { color: var(--violet-dark); }
.process-list p { color: #647083; }

.contact { background: #fffdf9; }
.site-footer { color: var(--ink); background: #e9ecf5; border-top: 1px solid #d8dce8; }
.footer-inner p { color: #6b7483; }

@media (max-width: 700px) {
  .site-nav { background: rgba(251, 250, 247, .99); }
  .site-nav a { color: var(--ink); }
}
