@font-face {
  font-family: "Octava";
  src: url('/fonts/OCT55.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Octava";
  src: url('/fonts/OCT56.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

.body-ai {
  background: #f1f1f1;
  color: var(--dark-text);
  font-family: "Geist", sans-serif;
}

.ai-page { --ai-line: #d9d9d9; --ai-content-width: 960px; --ai-heading-muted: #929795; }
.ai-page h1, .ai-page h2, .ai-page h3, .ai-page p { margin: 0; }
.ai-page h1 { font-family: "Octava", serif; font-weight: 400; font-style: italic; }
.ai-page h2, .ai-page h3 { font-family: "Geist", sans-serif; font-weight: 400; font-style: normal; }
.ai-page .ai-heading-strong { color: #111; }
.ai-page .ai-heading-muted { color: var(--ai-heading-muted); }
.ai-page p, .ai-page li, .ai-page dd { font-size: 18px; line-height: 1.5; }
.ai-page a:focus-visible { outline: 2px solid var(--dark-text); outline-offset: 5px; }
.ai-page a { color: inherit; }
.ai-hero { padding: 64px 0 56px; }
.ai-page .ai-eyebrow { font-size: 14px; line-height: 1.5; color: #656d78; }
.ai-page h1 { margin-top: 20px; font-size: clamp(32px, 4.3vw, 52px); line-height: 1.12; letter-spacing: -0.035em; text-wrap: balance; }
.ai-page .ai-lead { max-width: 840px; margin-top: 28px; font-size: 26px; line-height: 1.4; letter-spacing: -0.02em; }
.ai-checklist { max-width: 840px; display: grid; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.ai-checklist li { position: relative; padding-left: 18px; }
.ai-checklist li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 4px; height: 4px; border-radius: 50%; background: #929b9f; }
.ai-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 28px; }
.ai-page .w-button { min-height: 44px; font-weight: 400; }
.ai-text-link { font-size: 16px; text-decoration: none; border-bottom: 1px solid var(--ai-line); }
.ai-text-link:hover { border-color: currentColor; }
.ai-author-quote { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px 18px; max-width: 840px; margin: 32px 0 0; padding: 26px; border: 0; border-radius: 20px; corner-shape: round; background: #fdfdfd; box-shadow: 0 2px 8px rgb(0 0 0 / 2%); }
.ai-author-photo { grid-column: 1; grid-row: 1 / span 2; display: block; width: 56px; height: 56px; border-radius: 50%; corner-shape: round; object-fit: cover; object-position: center 30%; }
.ai-author-quote blockquote { grid-column: 2; }
.ai-author-quote blockquote, .ai-belief { margin: 0; padding: 0; border: 0; font-style: normal; }
.ai-page .ai-author-quote p { font-size: 18px; line-height: 1.5; }
.ai-author-quote figcaption { grid-column: 2; font-size: 14px; line-height: 1.5; color: #656d78; text-align: left; }
.ai-author-quote a, .ai-steps a { text-underline-offset: 3px; }
.ai-section { padding: 40px 0; border-top: 0; scroll-margin-top: 80px; }
.ai-row { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 2.28fr); gap: 32px; }
.ai-page .ai-label { font-size: 14px; line-height: 1.5; color: #656d78; padding-top: 6px; }
.ai-content { min-width: 0; }
.ai-page h3 { font-size: 26px; line-height: 1.3; letter-spacing: -0.02em; }
.ai-content > p { margin-top: 16px; }
.ai-deliverables { margin: 24px 0 0; }
.ai-deliverables > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-top: 0; }
.ai-deliverables dt { font-size: 16px; line-height: 1.5; }
.ai-deliverables dd { margin: 0; font-size: 16px; }
.ai-plans { display: grid; gap: 20px; }
.ai-plan { padding: 28px; border-radius: 6px; background: #fff; }
.ai-plan-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.ai-plan h3 { margin-top: 8px; font-size: 24px; }
.ai-page .ai-price { font-size: 26px; letter-spacing: -0.025em; white-space: nowrap; text-align: right; }
.ai-price span { display: block; font-size: 14px; letter-spacing: 0; color: #656d78; }
.ai-list { padding-left: 20px; margin: 20px 0; display: grid; gap: 8px; }
.ai-page .ai-list li { font-size: 16px; }
.ai-page .ai-note { font-size: 14px; color: #656d78; margin-top: 20px; }
.ai-steps { list-style: none; counter-reset: ai-step; margin: 0; padding: 0; display: grid; gap: 28px; }
.ai-steps li { counter-increment: ai-step; padding-left: 40px; position: relative; }
.ai-steps li::before { content: "0" counter(ai-step); position: absolute; left: 0; top: 3px; font-size: 14px; color: #656d78; }
.ai-steps h3 { font-size: 20px; letter-spacing: -0.01em; color: #111; }
.ai-steps p { margin-top: 8px; }
.ai-process-diagram { grid-column: 1 / -1; min-width: 0; margin: 12px 0 0; }
.ai-diagram-scroll { overflow-x: auto; }
.ai-diagram-scroll:focus-visible { outline: 2px solid var(--dark-text); outline-offset: 5px; }
.ai-process-diagram img { display: block; width: 100%; min-width: 800px; max-width: none; height: auto; }
.ai-closing { border-top: 0; padding: 48px 0 20px; }
.ai-closing-content { grid-column: -2 / -1; }
.ai-belief { max-width: 920px; }
.ai-page .ai-belief p { font-size: 28px; line-height: 1.4; letter-spacing: -0.02em; }
.ai-closing .w-button { margin-top: 24px; }

/* Match the homepage's gentle entrance and 50ms sequence. */
@media screen and (prefers-reduced-motion: no-preference) {
  .ai-hero > *,
  .ai-body-content > .ai-section,
  .ai-body-content > .ai-closing {
    animation: home-entrance 500ms ease var(--entrance-delay, 0ms) backwards;
  }

  .ai-hero > :nth-child(2) { --entrance-delay: 50ms; }
  .ai-hero > :nth-child(3) { --entrance-delay: 100ms; }
  .ai-hero > :nth-child(4) { --entrance-delay: 150ms; }
  .ai-hero > :nth-child(5) { --entrance-delay: 200ms; }
  .ai-body-content > :nth-child(2) { --entrance-delay: 250ms; }
  .ai-body-content > :nth-child(3) { --entrance-delay: 300ms; }
  .ai-body-content > :nth-child(4) { --entrance-delay: 350ms; }
  .ai-body-content > :nth-child(5) { --entrance-delay: 400ms; }
  .ai-body-content > :nth-child(6) { --entrance-delay: 450ms; }

  .ai-body-content > :focus-within,
  .ai-hero > :focus-within { animation: none; }
}

@media (max-width: 767px) {
  .ai-hero { padding: 36px 0; }
  .ai-page .ai-lead { font-size: 22px; margin-top: 24px; }
  .ai-page p, .ai-page li, .ai-page dd { font-size: 16px; }
  .ai-page .ai-eyebrow, .ai-author-quote figcaption { font-size: 13px; }
  .ai-page .ai-author-quote p { font-size: 16px; }
  .ai-author-quote { grid-template-columns: 56px minmax(0, 1fr); gap: 16px 12px; padding: 20px; border-radius: 17px; }
  .ai-author-photo { grid-row: 1; width: 56px; height: 56px; }
  .ai-author-quote figcaption { grid-row: 1; align-self: center; }
  .ai-author-quote blockquote { grid-column: 1 / -1; grid-row: 2; }
  .ai-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ai-section { padding: 28px 0; }
  .ai-page .ai-label { padding: 0; }
  .ai-page h3 { font-size: 24px; }
  .ai-deliverables > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ai-plan { padding: 20px; }
  .ai-plan-heading { flex-direction: column; gap: 16px; }
  .ai-page .ai-price { text-align: left; font-size: 28px; }
  .ai-price span { display: inline; margin-left: 8px; }
  .ai-steps h3 { font-size: 20px; }
  .ai-closing { padding-top: 32px; }
  .ai-page .ai-belief p { font-size: 22px; }
}

/* Soft, inset navigation and a quiet reading surface. */
.ai-explorer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgb(0 0 0 / 5%);
  border-radius: 20px;
  corner-shape: round;
  background: #fdfdfd;
  box-shadow: 0 2px 8px rgb(0 0 0 / 2%), 0 16px 40px -24px rgb(0 0 0 / 10%);
}
.ai-explorer-nav { padding: 10px; border-radius: 13px; corner-shape: round; background: #f4f4f3; }
.ai-explorer-root { padding: 14px 12px 22px; color: #868686; font-size: 13px; line-height: 20px; letter-spacing: -.01em; }
.ai-explorer-tabs { display: grid; gap: 5px; }
.ai-explorer-tab {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 46px; padding: 12px;
  border: 0; border-radius: 9px; corner-shape: round;
  background: transparent; color: #737373;
  font: inherit; font-size: 14px; line-height: 20px; letter-spacing: -.01em;
  text-align: left; cursor: pointer;
}
.ai-explorer-tab small { color: #919191; font-size: 10px; line-height: 16px; letter-spacing: 0; white-space: nowrap; }
.ai-explorer-tab:hover { background: rgb(255 255 255 / 55%); color: #343434; }
.ai-explorer-tab[aria-selected="true"] { background: #fff; color: #252525; box-shadow: 0 1px 3px rgb(0 0 0 / 6%), 0 0 0 .5px rgb(0 0 0 / 4%); }
.ai-explorer-tab:focus-visible, .ai-explorer-panel:focus-visible { outline: 2px solid var(--light-slate-grey); outline-offset: 2px; }
.ai-explorer-panels { min-width: 0; }
.ai-explorer-panel { min-height: 365px; padding: 28px 36px; border-radius: 12px; }
.ai-explorer-panel[hidden] { display: none; }
.ai-explorer-panel h4 { margin: 0; color: #303030; font-family: "Geist", sans-serif; font-size: 18px; line-height: 27px; font-weight: 400; font-style: normal; letter-spacing: 0; }
.ai-page .ai-explorer-description { max-width: 680px; margin-top: 10px; color: #7c7c7c; font-size: 15px; line-height: 1.65; }
.ai-explorer-files { display: grid; gap: 18px; margin: 30px 0 0; padding: 0; list-style: none; }
.ai-page .ai-explorer-files li { display: flex; align-items: center; gap: 12px; color: #535353; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.ai-explorer-files svg { flex: 0 0 17px; width: 17px; height: 17px; color: #a0a0a0; }

@keyframes ontology-reveal {
  from { opacity: 0; filter: blur(8px); transform: translateY(16px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}
@keyframes ontology-content-reveal {
  from { opacity: 0; filter: blur(3px); transform: translateY(3px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .ai-explorer.is-reveal-pending { opacity: 0; filter: blur(8px); transform: translateY(16px); }
  .ai-explorer.is-revealed { animation: ontology-reveal 800ms cubic-bezier(.22, 1, .36, 1) both; }
  .ai-explorer-panel:not([hidden]) { animation: ontology-content-reveal 280ms ease-out; }
  .ai-explorer-tab { transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease; }
  .ai-explorer:focus-within { opacity: 1; filter: none; transform: none; animation: none; }
}
@media (max-width: 767px) {
  .ai-explorer { grid-template-columns: minmax(0, 1fr); padding: 6px; border-radius: 17px; }
  .ai-explorer-nav { padding: 8px; border-radius: 11px; }
  .ai-explorer-root { padding: 8px 10px 14px; }
  .ai-explorer-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .ai-explorer-tab { flex-direction: column; align-items: flex-start; gap: 2px; font-size: 13px; padding: 9px 10px; }
  .ai-explorer-panel { min-height: 340px; padding: 24px 18px; }
  .ai-explorer-panel h4 { font-size: 17px; }
  .ai-page .ai-explorer-description { font-size: 14px; }
  .ai-explorer-files { margin-top: 24px; gap: 16px; }
  .ai-page .ai-explorer-files li { font-size: 12px; }
}

/* A painting frames the offer and the working ontology. */
.ai-hero {
  position: relative;
  isolation: isolate;
  margin: 0 0 56px;
  padding: 104px max(32px, calc((100% - 1170px) / 2)) 0;
  border-radius: 0;
  overflow: hidden;
  background: #d9ddd2 url('/images/ai-vereshyagin.jpeg') center center / cover no-repeat;
}
.ai-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgb(240 241 226 / 55%) 0%, rgb(240 241 226 / 30%) 40%, transparent 70%);
  pointer-events: none;
}
.ai-hero-copy { max-width: var(--ai-content-width); margin-inline: auto; }
.ai-page .ai-hero h1 { margin: 0; text-align: left; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.1; letter-spacing: -.025em; }
.ai-hero .ai-heading-strong { color: #252a25; }
.ai-hero .ai-heading-muted { color: var(--ai-heading-muted); }
.ai-page .ai-hero .ai-lead { max-width: 740px; margin: 22px 0 0; text-align: left; font-size: 20px; line-height: 1.5; color: #343b33; letter-spacing: -.015em; text-wrap: pretty; }
.ai-hero .ai-actions { justify-content: center; margin-top: 24px; }
.ai-hero .w-button { background: #f6f7ef; border: 1px solid rgb(44 52 39 / 12%); border-radius: 8px; corner-shape: round; color: #30372c; box-shadow: 0 2px 8px rgb(30 35 25 / 8%); }
.ai-hero .w-button:hover { background: #fff; }
.ai-hero .ai-explorer { max-width: var(--ai-content-width); margin: 38px auto 0; text-align: left; background: #fdfdfb; box-shadow: 0 8px 24px rgb(24 32 25 / 10%), 0 32px 72px -24px rgb(24 32 25 / 28%); }
.ai-hero .ai-explorer-panel { min-height: 365px; }
.ai-content > .ai-author-quote { margin-top: 32px; }
@media (max-width: 767px) {
  .ai-hero { margin: 0 0 32px; padding: 84px 16px 0; background-position: 52% center; }
  .ai-hero::before { background: linear-gradient(180deg, rgb(240 241 226 / 78%), rgb(240 241 226 / 36%) 40%, transparent 75%); }
  .ai-page .ai-hero h1 { font-size: clamp(28px, 7.5vw, 36px); }
  .ai-page .ai-hero .ai-lead { margin-top: 20px; font-size: 17px; line-height: 1.5; }
  .ai-hero .ai-actions { margin-top: 20px; }
  .ai-hero .ai-explorer { margin-top: 28px; }
  .ai-hero .ai-explorer-panel { min-height: 340px; padding: 22px 14px; }
}

/* The painting begins behind the header; the ontology meets its bottom edge. */
.body-ai .new-nav-wrapper { position: fixed; top: 0; left: 0; background: transparent; backdrop-filter: none; }
.body-ai .new-nav-wrapper.is-scrolled { background: var(--nav-surface, #f1f1f1); }
.body-ai .new-nav-wrapper > .container { position: relative; z-index: 1; }
.body-ai .new-nav-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: transparent;
  -webkit-backdrop-filter: blur(var(--nav-blur));
  backdrop-filter: blur(var(--nav-blur));
  opacity: 0;
  transition: opacity 180ms ease;
}
.body-ai .new-nav-wrapper.is-scrolled::before { opacity: 1; }
.body-ai .new-nav-wrapper:not(.is-scrolled) .nav-dropdown {
  background: linear-gradient(180deg, rgb(255 255 255 / 0%) 0%, rgb(255 255 255 / 24%) 45%, rgb(255 255 255 / 64%) 100%);
}
.ai-hero .ai-explorer { border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 0; }
.ai-hero .ai-explorer-panel { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
@media (min-width: 768px) {
  .ai-hero .ai-explorer-nav { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
}

.ai-body-content.container, .ai-footer.container {
  width: calc(100% - 64px);
  max-width: 960px;
  margin-inline: auto;
}
@media (max-width: 767px) {
  .ai-body-content.container, .ai-footer.container { width: calc(100% - 32px); }
}

/* Quiet plan cards, with editorial typography for prices and the closing quote. */
.ai-plan {
  padding: 30px;
  border: 1px solid rgb(0 0 0 / 5%);
  border-radius: 20px;
  corner-shape: round;
  background: #fdfdfd;
  box-shadow: 0 2px 8px rgb(0 0 0 / 2%), 0 16px 40px -24px rgb(0 0 0 / 10%);
}
.ai-plan-heading { margin-bottom: 24px; gap: 24px; }
.ai-page .ai-price { font-family: "Octava", serif; font-weight: 400; font-style: italic; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; color: var(--light-slate-grey); }
.ai-price span { margin-top: 6px; font-family: "Geist", sans-serif; font-style: normal; font-size: 13px; color: #808080; }
.ai-plan .ai-eyebrow { font-size: 13px; color: #808080; }
.ai-plan > p:not(.ai-price):not(.ai-note) { font-size: 16px; line-height: 1.65; color: #606060; }
.ai-plan .ai-list { gap: 12px; margin-block: 24px; }
.ai-plan .ai-list li { font-size: 15px; line-height: 1.6; color: #606060; }
.ai-plan .ai-list li::marker { color: #a0a0a0; font-size: 10px; }
.ai-plan > p.ai-note { font-size: 13px; color: #808080; }
.ai-page .ai-belief p { font-family: "Octava", serif; font-weight: 400; font-style: italic; letter-spacing: -.015em; }
.ai-process-diagram { position: relative; left: 50%; width: min(1200px, calc(100vw - 64px)); max-width: none; transform: translateX(-50%); margin-top: 28px; }
@media (max-width: 767px) {
  .ai-plan { padding: 22px; border-radius: 17px; }
  .ai-plan-heading { gap: 16px; margin-bottom: 20px; }
  .ai-page .ai-price { font-size: 26px; }
  .ai-process-diagram { width: 100%; left: 0; transform: none; margin-top: 16px; }
}

/* An opaque mobile header stays readable without scroll events or backdrop filters. */
@media (max-width: 767px) {
  .body-ai .new-nav-wrapper,
  .body-ai .new-nav-wrapper.is-scrolled { background: #f1f1f1; }
  .body-ai .new-nav-wrapper::before { display: none; }
}
