:root {
  --bg: #f7f6f2;
  --ink: #16161a;
  --soft: #37373e;
  --muted: #5c5c64;
  --line: #e3e1db;
  --card: #ffffff;
  --focus: #5b7cfa;
  --max: 1240px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.short { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.shell { width: min(100% - 32px, var(--max)); margin: 0 auto; }

/* Iridescent glow, parked behind the SERP */
.glow { position: absolute; top: 0; left: 0; right: 0; height: 820px; pointer-events: none; z-index: 0; overflow: hidden; }
.glow span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.glow .g1 { width: 420px; height: 420px; right: 26%; top: 90px; background: #f3a6c8; animation: wander1 26s ease-in-out infinite; }
.glow .g2 { width: 380px; height: 380px; right: 12%; top: 260px; background: #a9cdfb; animation: wander2 31s ease-in-out infinite; }
.glow .g3 { width: 320px; height: 320px; right: 20%; top: 440px; background: #f6dc98; animation: wander3 23s ease-in-out infinite; }
.glow .g4 { width: 260px; height: 260px; right: 14%; top: 60px; background: #b2ead6; animation: wander4 35s ease-in-out infinite; }
@keyframes wander1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(-110px, 70px, 0) scale(1.12); }
  66% { transform: translate3d(60px, 130px, 0) scale(.94); }
}
@keyframes wander2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  30% { transform: translate3d(-90px, -80px, 0) scale(1.08); }
  70% { transform: translate3d(-160px, 50px, 0) scale(1.15); }
}
@keyframes wander3 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  40% { transform: translate3d(120px, -90px, 0) scale(1.1); }
  75% { transform: translate3d(-70px, -40px, 0) scale(.92); }
}
@keyframes wander4 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  35% { transform: translate3d(-130px, 110px, 0) scale(1.18); }
  70% { transform: translate3d(40px, 60px, 0) scale(1); }
}

/* Header */
.site-header { position: relative; z-index: 5; }
.nav { height: 92px; display: flex; align-items: center; justify-content: space-between; }
.brand img { width: 132px; height: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { opacity: .7; }
.nav-cta { height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; font-weight: 500; }
.nav-cta:hover { background: var(--ink); color: var(--bg); }

/* Hero */
.hero { position: relative; z-index: 1; padding: 20px 0 112px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: start; }

h1, h2 { margin: 0; font-weight: 500; letter-spacing: -.055em; line-height: .94; }
h1 { margin: 0; }
.h1-kicker { display: block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.4; margin: 12px 0 22px; }
.h1-main { display: block; margin: 0; font-weight: 500; letter-spacing: -.055em; line-height: .94; font-size: clamp(56px, 7vw, 104px); color: var(--ink); }

.quote { margin: 30px 0 0; display: flex; align-items: flex-start; gap: 16px; max-width: 600px; }
.quote img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: top; background: #e9e5dc; flex-shrink: 0; }
.quote blockquote { margin: 0; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.4; letter-spacing: -.015em; color: var(--soft); }
.quote figcaption { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.lede { margin: 24px 0 0; max-width: 560px; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.38; letter-spacing: -.015em; color: var(--soft); }

/* Problem choices: horizontal on desktop, stacked rows on mobile */
.router { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 760px; }
.route { display: contents; }
.route-btn {
  grid-row: 1; min-height: 104px; padding: 16px 18px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; text-align: left;
  font-size: 17px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  opacity: 0; transform: translateY(10px); animation: rise .5s cubic-bezier(.2, .7, .2, 1) forwards;
}
.route:nth-child(2) .route-btn { animation-delay: .1s; }
.route:nth-child(3) .route-btn { animation-delay: .2s; }
.route-btn:hover { border-color: #bdb9b0; box-shadow: 0 8px 22px rgba(22, 22, 26, .06); }
.route-btn[aria-expanded="true"] { border-color: var(--ink); box-shadow: 0 8px 22px rgba(22, 22, 26, .08); }
.chev { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.route-btn .chev { align-self: flex-end; }
.route-btn[aria-expanded="true"] .chev { transform: rotate(90deg); }
.route-answer { grid-column: 1 / -1; grid-row: 2; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; animation: rise .3s cubic-bezier(.2, .7, .2, 1); }
.route-answer[hidden] { display: none; }
.route-answer p { margin: 0 0 16px; color: var(--soft); font-size: 16px; line-height: 1.5; max-width: 620px; }
.cta-note { display: inline-block; margin-left: 14px; font-size: 13px; color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.btn {
  height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15px;
}
.btn:hover { background: #33333a; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }

/* SERP illustration */
.serp-wrap { margin: 56px 0 0; justify-self: end; width: 100%; max-width: 500px; }
.serp {
  background: #fff; border-radius: 20px; padding: 26px 28px 28px; color: #1f1f1f;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 24px 60px rgba(40, 30, 80, .14);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
.serp-search { height: 50px; border-radius: 999px; border: 1px solid #dfe1e5; display: flex; align-items: center; gap: 12px; padding: 0 18px; font-size: 16px; color: #202124; box-shadow: 0 1px 4px rgba(32, 33, 36, .08); }
.serp-search svg { width: 20px; height: 20px; fill: none; stroke: #5f6368; stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.serp-query { white-space: nowrap; overflow: hidden; }
.caret { display: inline-block; width: 1.5px; height: 1.05em; background: currentColor; vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.caret.off { display: none; }
@keyframes blink { 50% { opacity: 0; } }

.serp-ai { margin-top: 22px; padding-bottom: 20px; border-bottom: 1px solid #ebebeb; }
.serp-ai-head { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #474747; }
.spark { width: 20px; height: 20px; fill: #8c7cf0; }
.serp-loading { margin-top: 14px; display: grid; gap: 9px; }
.serp-loading span { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #eef0f4 0%, #e1e6f7 40%, #eef0f4 80%); background-size: 200% 100%; animation: shimmer 1.1s linear infinite; }
.serp-loading span:nth-child(2) { width: 88%; }
.serp-loading span:nth-child(3) { width: 64%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.serp-answer { margin: 12px 0 0; font-size: 22px; line-height: 1.25; font-weight: 700; color: #1f1f1f; min-height: 1.25em; }
.serp-support { margin: 8px 0 0; font-size: 15px; line-height: 1.45; color: #4d5156; }

.serp-result { margin-top: 18px; }
.serp-site { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .04em; color: #202124; }
.fav { width: 26px; height: 26px; border-radius: 50%; background: #f1f3f4; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #3c4043; letter-spacing: 0; }
.serp-title { margin-top: 6px; font-size: 20px; line-height: 1.3; color: #1a0dab; }
.serp-url { font-size: 14px; color: #188038; margin-top: 2px; }
.serp-desc { margin-top: 4px; font-size: 14px; line-height: 1.5; color: #4d5156; }
.serp-wrap figcaption { margin-top: 14px; text-align: center; font-size: 14px; color: var(--muted); }

/* SERP entrance: drops 20px and fades in, then the answer types */
.js .serp { opacity: 0; transform: translateY(-20px); }
.js .serp.is-in { opacity: 1; transform: none; transition: opacity .5s ease, transform .55s cubic-bezier(.2, .7, .2, 1); }

/* Animation states for the SERP: typing -> is-loading -> is-answering -> is-done */
.serp-loading { display: none; }
.serp.is-loading .serp-loading { display: grid; }
.serp.is-loading .serp-answer { display: none; }
.serp-support, .serp-result { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1); }
.serp.is-done .serp-support { opacity: 1; transform: none; }
.serp.is-done .serp-result { opacity: 1; transform: none; transition-delay: .35s; }
.serp-title span { transition: background-size .6s ease .8s; background: linear-gradient(transparent 62%, rgba(246, 220, 152, .8) 62%) no-repeat 0 0 / 0% 100%; }
.serp.is-done .serp-title span { background-size: 100% 100%; }

/* Proof */
.work { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 72px 0 96px; }
.work-title { margin: 0 0 28px; font-size: 12px; letter-spacing: .12em; line-height: 1.4; }
.work-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.work-row a { text-decoration: none; display: grid; gap: 14px; }
.work-row img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 14px; border: 1px solid var(--line); display: block; transition: transform .2s, box-shadow .2s; }
.work-row a:hover img { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(22, 22, 26, .08); }
.work-row span { font-size: 15px; font-weight: 600; }

/* Services */
.kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
h2 { font-size: clamp(40px, 5vw, 72px); }
.services { position: relative; z-index: 1; background: #fff; border-top: 1px solid var(--line); padding: 96px 0 104px; }
.service-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service { display: flex; flex-direction: column; padding: 32px 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); scroll-margin-top: 24px; }
.service-icon { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin: 22px 0 0; font-size: 26px; font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.service > p { margin: 12px 0 0; font-size: 16px; line-height: 1.5; color: var(--soft); }
.service ul { list-style: none; margin: 22px 0 28px; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.service li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.45; color: var(--soft); }
.service li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.service .text-link { margin-top: auto; align-self: flex-start; }
.text-link { border: 0; background: none; padding: 0 0 4px; border-bottom: 1px solid var(--ink); cursor: pointer; font-size: 16px; font-weight: 600; display: inline-flex; gap: 8px; }
.text-link:hover { opacity: .7; }

/* About */
.about { position: relative; z-index: 1; background: #efece5; padding: 72px 0 0; overflow: hidden; }
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.about-photo { display: block; width: 100%; max-width: 440px; height: auto; justify-self: center; }
.about-copy { padding-bottom: 88px; max-width: 560px; }
.about-copy p { margin: 22px 0 0; font-size: 18px; line-height: 1.55; color: var(--soft); }

/* Closer */
.closer { padding: 104px 0; text-align: center; }
.closer-inner { display: grid; justify-items: center; gap: 18px; }
.closer p { margin: 0; font-size: 19px; color: var(--soft); }
.closer .btn { margin-top: 8px; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.site-footer a { color: var(--ink); }

/* About page */
.about-main { position: relative; z-index: 1; padding: 40px 0 104px; }
.about-wrap { max-width: 760px; }
.about-h1 { margin: 0; font-size: clamp(44px, 6vw, 80px); font-weight: 500; letter-spacing: -.055em; line-height: .96; }
.about-lede { margin: 28px 0 0; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.45; color: var(--soft); letter-spacing: -.015em; }
.about-block { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.about-block h2 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -.04em; line-height: 1.05; }
.about-block p { margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: var(--soft); }
.other-aos { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.other-aos li { padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 16px; }
.other-aos span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.facts { margin: 22px 0 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 20px; }
.facts div + div { border-top: 1px solid #efede8; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 0; font-size: 16px; }
.about-cta { display: inline-flex; align-items: center; margin-top: 48px; text-decoration: none; }
a.nav-cta { display: inline-flex; align-items: center; text-decoration: none; }

/* Drawer */
.backdrop { position: fixed; inset: 0; background: rgba(22, 22, 26, .35); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 20; }
.backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg); z-index: 21;
  padding: 24px 28px 32px; overflow-y: auto; transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .7, .2, 1);
  box-shadow: -20px 0 60px rgba(0, 0, 0, .12);
}
.drawer.open { transform: none; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; }
.drawer-top img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top; background: #e9e5dc; }
.drawer-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.drawer-title { margin-top: 22px; font-size: 38px; }
.drawer-intro { margin: 14px 0 22px; color: var(--soft); font-size: 16px; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form small { font-weight: 400; color: var(--muted); }
.form input, .form select { font-weight: 400; height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid #d6d3cc; background: #fff; font: inherit; font-size: 16px; }
.form .btn { margin-top: 6px; width: 100%; }
.hp { position: absolute; left: -9999px; }
.status { margin: 0; font-size: 14px; min-height: 1.4em; }
.status.success { color: #1e7a3a; }
.status.error { color: #b3261e; }

/* Mobile */
@media (max-width: 900px) {
  .glow { height: 1100px; top: 360px; }
  .glow span { width: 240px !important; height: 240px !important; }
  .glow .g1 { right: 30%; } .glow .g2 { right: 20%; } .glow .g3 { right: 34%; } .glow .g4 { right: 24%; }
  .route-btn .chev { align-self: center; }
  .nav { height: 76px; }
  .brand img { width: 104px; }
  .hide-sm { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  h1 { margin-top: 22px; }
  .router { display: block; max-width: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
  .route { display: block; }
  .route + .route { border-top: 1px solid #efede8; }
  .route-btn { width: 100%; min-height: 60px; padding: 14px 20px; border: 0; border-radius: 0; background: none; flex-direction: row; align-items: center; font-size: 17px; box-shadow: none !important; }
  .route-answer { padding: 0 20px 20px; border: 0; border-radius: 0; background: none; }
  .cta-note { display: block; margin: 10px 0 0; }
  .quote img { width: 52px; height: 52px; }
  .hero { padding-bottom: 72px; }
  .work { padding: 56px 0 64px; }
  .services { padding: 64px 0 72px; }
  .service-grid { grid-template-columns: 1fr; margin-top: 32px; gap: 16px; }
  .service { padding: 26px 22px; }
  .serp-wrap { justify-self: stretch; max-width: none; margin-top: 0; }
  .long { display: none; }
  .short { display: inline; }
  .serp { padding: 20px 18px 22px; }
  .serp-answer { font-size: 19px; }
  .serp-title { font-size: 18px; }
  .work-row { display: flex; overflow-x: auto; gap: 14px; margin-right: -16px; padding-right: 16px; scroll-snap-type: x mandatory; }
  .work-row a { flex: 0 0 72%; scroll-snap-align: start; }
  .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .about { padding-top: 56px; }
  .about-grid { display: flex; flex-direction: column-reverse; }
  .about-copy { padding-bottom: 0; }
  .about-photo { max-width: 300px; }
  .closer { padding: 72px 0; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .route-btn { opacity: 1; transform: none; }
}
