/* AI Architecture and 3D service page (22 Oct rebuild) */
:root { --pk: #FF0A7A; --vi: #8B5CF6; }
html, body { overflow-x: clip; }

/* ---------- hero: blueprint to building ---------- */
.ax-hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; background: var(--ink-0); isolation: isolate; }
.ax-hero > .wrap { width: 100%; }
.ax-hero-still { position: absolute; inset: 0; z-index: -3; }
.ax-hero-still picture, .ax-hero-still img { display: block; width: 100%; height: 100%; }
.ax-hero-still img { object-fit: cover; object-position: 70% 50%; }
.ax-bp { position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity 1.4s var(--ease);
  background: radial-gradient(48% 46% at 68% 40%, oklch(0.3 0.09 255 / .55), transparent 72%), radial-gradient(36% 30% at 86% 14%, oklch(0.36 0.16 330 / .28), transparent 70%), radial-gradient(60% 50% at 70% 100%, oklch(0.22 0.06 260 / .5), transparent 70%), var(--ink-0); }
.ax-bp canvas { display: block; width: 100% !important; height: 100% !important; }
.ax-hero.is-live .ax-bp { opacity: 1; }
.ax-hero.is-live .ax-hero-still { opacity: 0; transition: opacity 1.4s var(--ease); }
.ax-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--ink-0) 0%, rgb(13 11 12 / .86) 24%, rgb(13 11 12 / .4) 44%, transparent 62%), linear-gradient(0deg, var(--ink-0) 0%, transparent 24%), linear-gradient(180deg, rgb(13 11 12 / .65) 0%, transparent 18%); }
.ax-hero-in { position: relative; padding-top: calc(var(--hd, 72px) + 40px); padding-bottom: 140px; pointer-events: none; }
.ax-hero-in > * { max-width: 640px; pointer-events: auto; }
.ax-h1 { font: 900 var(--t-3xl)/.95 var(--f-display); letter-spacing: -0.035em; text-wrap: balance; }
.ax-h1 em { font-style: normal; color: var(--pk); }
.ax-lede { margin-top: 26px; font-size: var(--t-m); line-height: 1.45; color: var(--fg-2); max-width: 440px; }
.ax-hero .actions { margin-top: 34px; }
.ax-modes { position: absolute; right: var(--pad); bottom: clamp(28px, 6vh, 60px); display: flex; align-items: center; gap: 6px; padding: 6px; border: 1px solid rgb(190 215 255 / .18); border-radius: 999px; background: rgb(10 14 24 / .62); backdrop-filter: blur(14px); }
.ax-modes-k { display: grid; gap: 5px; padding: 0 12px 0 14px; font: 400 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.ax-modes-k b { font-weight: 400; letter-spacing: .06em; text-transform: none; color: rgb(200 222 255 / .85); font-size: 11px; }
.ax-modes button { padding: 10px 16px; border: 0; border-radius: 999px; background: none; color: var(--fg-2); font: 600 13px/1 var(--f-body); cursor: pointer; transition: background-color .3s, color .3s; }
.ax-modes button:hover { color: #fff; }
.ax-modes button[aria-pressed="true"] { background: var(--pk); color: #fff; }
.ax-hero[data-mode="0"] .ax-modes button[aria-pressed="true"] { background: rgb(200 222 255); color: #0a0e18; }
.ax-modes button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.no-gl .ax-modes, .no-gl .ax-hint { display: none; }
.ax-hint { display: none; }
.ax-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font: 400 10px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); }

/* ---------- the line ---------- */
.ax-line { padding-block: clamp(90px, 14vh, 170px); border-top: 1px solid var(--rule-soft); }
.ax-line-h { max-width: 20ch; font-size: clamp(36px, 5.4vw, 84px); line-height: 1; }
.ax-line-s { margin-top: 28px; max-width: 46ch; font-size: var(--t-m); line-height: 1.5; color: var(--fg-2); }

/* ---------- shared row head ---------- */
.ax-row-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 5vh, 52px); }
.ax-tag { display: inline-flex; align-items: center; gap: 10px; font: 400 var(--t-xs)/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.ax-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--pk); }
.ax-note { margin-top: 18px; font: 400 10px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }

/* ---------- what we make: carousel ---------- */
.ax-make { padding-block: clamp(80px, 12vh, 140px); border-top: 1px solid var(--rule-soft); overflow: hidden; }
.ax-nav { display: flex; gap: 10px; }
.ax-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--rule); background: none; color: var(--fg); font-size: 20px; cursor: pointer; transition: background-color .3s, border-color .3s; }
.ax-btn:hover { background: var(--pk); border-color: var(--pk); }
.ax-track { display: flex; gap: clamp(14px, 1.6vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--pad) 8px; scroll-padding-inline: var(--pad); cursor: grab; }
.ax-track::-webkit-scrollbar { display: none; }
.ax-track.drag { cursor: grabbing; scroll-snap-type: none; }
.ax-track.drag .ax-card { pointer-events: none; }
.ax-card { position: relative; flex: 0 0 clamp(270px, 31vw, 480px); aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; scroll-snap-align: start; border: 1px solid var(--rule-soft); background: var(--ink-1); }
.ax-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); -webkit-user-drag: none; user-select: none; }
.ax-card:hover img { transform: scale(1.06); }
.ax-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .9), rgb(0 0 0 / .12) 48%, transparent 66%); }
.ax-card > div { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(20px, 2vw, 30px); }
.ax-card span { font: 400 var(--t-xs)/1 var(--f-mono); letter-spacing: .14em; color: var(--pk); }
.ax-card h3 { font: 700 var(--t-l)/1.08 var(--f-display); margin: 12px 0 8px; }
.ax-card p { color: var(--fg-2); line-height: 1.45; max-width: 30ch; }

/* ---------- try it: wipe ---------- */
.ax-try { padding-block: clamp(80px, 12vh, 140px); border-top: 1px solid var(--rule-soft); background: radial-gradient(50% 60% at 50% 60%, oklch(0.2 0.07 330 / .45), transparent 70%), var(--ink-0); }
.ax-wipe-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ax-seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--rule); border-radius: 999px; }
.ax-seg button { padding: 10px 18px; border: 0; border-radius: 999px; background: none; color: var(--fg-2); font: 600 13px/1 var(--f-body); cursor: pointer; transition: background-color .3s, color .3s; }
.ax-seg button[aria-pressed="true"] { background: #fff; color: var(--ink-0); }
.ax-seg button:focus-visible { outline: 2px solid var(--pk); outline-offset: 2px; }
.ax-wipe-k { font: 400 var(--t-xs)/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.ax-wipe { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid var(--rule-soft); background: var(--ink-1); box-shadow: 0 60px 120px -50px rgb(255 10 122 / .35); user-select: none; touch-action: pan-y; }
.ax-wipe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.ax-wipe-base { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.ax-wipe-base img { transition: opacity .6s var(--ease); }
.ax-wipe-base img[data-layer="clay"] { opacity: 0; }
.ax-wipe.is-clay .ax-wipe-base img[data-layer="clay"] { opacity: 1; }
.ax-wipe.is-clay .ax-wipe-base img[data-layer="line"] { opacity: 0; }
.ax-wipe-h { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 24px var(--pk); pointer-events: none; }
.ax-wipe-h i { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--pk); box-shadow: 0 0 0 6px rgb(255 10 122 / .25); }
.ax-wipe-h i::before, .ax-wipe-h i::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent; }
.ax-wipe-h i::before { left: 9px; border-right-color: #fff; }
.ax-wipe-h i::after { right: 9px; border-left-color: #fff; }
.ax-wipe-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ax-wipe-range:focus-visible + .ax-wipe-h i { outline: 2px solid #fff; outline-offset: 4px; }
.ax-wipe-l, .ax-wipe-r { position: absolute; top: 16px; padding: 7px 10px; border-radius: 6px; background: rgb(13 11 12 / .7); backdrop-filter: blur(8px); font: 400 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #fff; pointer-events: none; }
.ax-wipe-l { left: 16px; } .ax-wipe-r { right: 16px; }
.ax-cap { margin-top: 16px; color: var(--fg-3); font-size: var(--t-s); }

/* ---------- who it's for: opening panels ---------- */
.ax-for { padding-block: clamp(80px, 12vh, 140px); border-top: 1px solid var(--rule-soft); }
.ax-panels { list-style: none; margin: clamp(32px, 5vh, 52px) 0 0; padding: 0; display: flex; gap: 12px; height: clamp(420px, 62vh, 620px); }
.ax-panels li { position: relative; flex: 1 1 0; min-width: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--rule-soft); cursor: pointer; transition: flex-grow .8s var(--ease); }
.ax-panels li.on { flex-grow: 3.2; }
.ax-panels img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .8s; filter: saturate(.6) brightness(.7); }
.ax-panels li.on img { filter: none; transform: scale(1.03); }
.ax-panels li::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .85), transparent 55%); }
.ax-panels li > div { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(18px, 2vw, 28px); }
.ax-panels h3 { font: 700 var(--t-l)/1.1 var(--f-display); white-space: nowrap; }
.ax-panels p { margin-top: 0; max-width: 32ch; max-height: 0; overflow: hidden; color: var(--fg-2); line-height: 1.45; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .6s var(--ease), max-height .6s var(--ease), margin-top .6s var(--ease); }
.ax-panels li.on p { max-height: 5em; margin-top: 8px; }
.ax-panels li.on p { opacity: 1; transform: none; transition-delay: .25s; }

/* ---------- how we work ---------- */
.ax-how { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(100px, 16vh, 180px); border-top: 1px solid var(--rule-soft); }
.ax-how-bg { position: absolute; inset: 0; z-index: -1; }
.ax-how-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.ax-how-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink-0), rgb(13 11 12 / .35) 40%, rgb(13 11 12 / .85) 85%, var(--ink-0)); }
.ax-steps { list-style: none; margin: clamp(40px, 7vh, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ax-steps li { padding: 24px 22px 26px; border-radius: 16px; border: 1px solid rgb(255 255 255 / .12); background: rgb(13 11 12 / .55); backdrop-filter: blur(12px); }
.ax-steps span { font: 400 var(--t-xs)/1 var(--f-mono); letter-spacing: .14em; color: var(--pk); }
.ax-steps h3 { font: 700 var(--t-m)/1.2 var(--f-display); margin: 16px 0 8px; }
.ax-steps p { color: var(--fg-2); line-height: 1.5; font-size: var(--t-s); }

/* ---------- before we model (pale plate) ---------- */
.ax-acc { position: relative; isolation: isolate; overflow: hidden; color: var(--paper-ink, #141113); background: var(--paper, #efece8); padding-block: clamp(100px, 16vh, 180px); }
.ax-acc-bg { position: absolute; inset: 0; z-index: -1; }
.ax-acc-bg img { width: 100%; height: 100%; object-fit: cover; }
.ax-acc-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(239 236 232 / .94) 0%, rgb(239 236 232 / .75) 45%, rgb(239 236 232 / .1) 80%); }
.ax-acc .eyebrow { color: var(--accent-deep, #c4005e); }
.ax-acc .cs-h2 { color: var(--paper-ink, #141113); max-width: 16ch; }
.ax-acc-cards { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 12px; }
.ax-acc-cards div { padding: 22px; border-radius: 14px; background: rgb(255 255 255 / .7); border: 1px solid rgb(0 0 0 / .08); backdrop-filter: blur(8px); }
.ax-acc-cards div:last-child { background: var(--ink-0); color: #fff; border-color: transparent; }
.ax-acc-cards b { display: block; font: 700 var(--t-m)/1.2 var(--f-display); }
.ax-acc-cards div:last-child b { color: var(--pk); }
.ax-acc-cards p { margin-top: 8px; line-height: 1.45; font-size: var(--t-s); opacity: .8; }
.ax-acc-s { margin-top: 24px; font: 400 var(--t-xs)/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--paper-ink-2, #514a4f); max-width: 52ch; }

/* ---------- what you get ---------- */
.ax-get { padding-block: clamp(80px, 12vh, 140px); }
.ax-get-grid { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule-soft); border: 1px solid var(--rule-soft); }
.ax-get-grid li { position: relative; padding: clamp(22px, 2.4vw, 36px); background: var(--ink-0); overflow: hidden; transition: background-color .4s var(--ease); }
.ax-get-grid li::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--pk); transition: width .6s var(--ease); }
.ax-get-grid li:hover { background: var(--ink-1); }
.ax-get-grid li:hover::after { width: 100%; }
.ax-get-grid h3 { font: 700 var(--t-m)/1.15 var(--f-display); margin: 22px 0 8px; }
.ax-get-grid p { color: var(--fg-2); line-height: 1.5; font-size: var(--t-s); }
.ax-ic { display: block; width: 44px; height: 44px; position: relative; }
.ax-ic::before, .ax-ic::after { content: ""; position: absolute; }
.ax-ic[data-ic="brief"]::before { inset: 6px 10px; border: 1.5px solid var(--pk); border-radius: 4px; } .ax-ic[data-ic="brief"]::after { left: 16px; right: 16px; top: 15px; height: 2px; background: var(--pk); box-shadow: 0 6px 0 var(--pk), 0 12px 0 var(--pk); }
.ax-ic[data-ic="assets"]::before { left: 8px; top: 8px; width: 28px; height: 28px; border: 1.5px solid var(--pk); transform: rotate(45deg) scale(.8); } .ax-ic[data-ic="assets"]::after { left: 18px; top: 18px; width: 8px; height: 8px; background: var(--pk); }
.ax-ic[data-ic="guided"]::before { left: 6px; top: 20px; width: 32px; height: 2px; background: var(--pk); } .ax-ic[data-ic="guided"]::after { right: 4px; top: 15px; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--pk); background: var(--ink-0); }
.ax-ic[data-ic="outputs"]::before { inset: 8px; border: 1.5px solid var(--pk); border-radius: 6px; } .ax-ic[data-ic="outputs"]::after { left: 14px; bottom: 14px; width: 16px; height: 8px; background: var(--pk); clip-path: polygon(0 100%, 35% 0, 60% 60%, 75% 30%, 100% 100%); }

/* ---------- faq ---------- */
.sv-faq { padding-block: clamp(80px, 12vh, 140px); border-top: 1px solid var(--rule-soft); }
.sv-faq .faq { margin-top: 32px; }
.sv-faq details { border-top: 1px solid var(--rule-soft); padding: 18px 0; }
.sv-faq summary { cursor: pointer; font: 700 var(--t-m)/1.3 var(--f-display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.sv-faq summary::-webkit-details-marker { display: none; }
.sv-faq summary::after { content: "+"; color: var(--pk); font-size: 1.4em; line-height: 1; transition: transform .3s; }
.sv-faq details[open] summary::after { transform: rotate(45deg); }
.sv-faq details p { margin-top: 12px; max-width: 70ch; color: var(--fg-2); line-height: 1.65; }

/* ---------- related ---------- */
.ax-rel { padding-block: 56px; border-top: 1px solid var(--rule-soft); }
.ax-rel ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ax-rel a { display: flex; justify-content: space-between; align-items: center; padding: 22px; border: 1px solid var(--rule); border-radius: 14px; color: var(--fg); text-decoration: none; font: 700 var(--t-m)/1.2 var(--f-display); transition: border-color .3s, background-color .3s; }
.ax-rel a i { font-style: normal; color: var(--pk); transition: transform .3s var(--ease); }
.ax-rel a:hover { border-color: var(--pk); background: var(--ink-1); }
.ax-rel a:hover i { transform: translateX(4px); }
.close-alt { display: flex; flex-wrap: wrap; gap: 0 32px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .ax-steps, .ax-get-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .ax-hero { align-items: end; }
  .ax-hero-still { bottom: 44%; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
  .ax-hero-still img { object-position: 50% 50%; }
  .ax-hero::after { background: linear-gradient(0deg, var(--ink-0) 0%, var(--ink-0) 38%, transparent 62%), linear-gradient(180deg, rgb(13 11 12 / .6) 0%, transparent 20%); }
  .ax-hero-in { padding-top: 52svh; padding-bottom: 72px; }
  .ax-modes { left: var(--pad); right: auto; bottom: 18px; }
  .ax-modes-k, .ax-hint { display: none; }
  .ax-card { flex-basis: 78vw; }
  .ax-panels { flex-direction: column; height: auto; }
  .ax-panels li, .ax-panels li.on { flex: none; height: 260px; }
  .ax-panels img { filter: none; }
  .ax-panels p { opacity: 1; transform: none; max-height: none; margin-top: 8px; }
  .ax-rel ul { grid-template-columns: 100%; }
  .ax-acc-cards { grid-template-columns: 100%; }
  .ax-acc-bg::after { background: rgb(239 236 232 / .86); }
  .ax-wipe { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) { .ax-steps, .ax-get-grid { grid-template-columns: 100%; } .ax-wipe-l, .ax-wipe-r { top: 10px; } }
.gl.motion .ax-hero.is-live .ax-hero-in { padding-bottom: 150px; }

/* ---------- polish 24 Oct: tap targets, numbering-free step marker ---------- */
.ax-steps span { display: block; width: 6px; height: 6px; background: var(--pk); }
.sv-faq summary { min-height: 44px; align-items: center; }
.crumb a { position: relative; }
.crumb a::before { content: ""; position: absolute; inset: -10px -4px; }
.cs-h2, .ax-card h3 { text-wrap: balance; }
.ax-line-s, .ax-cap { max-width: 65ch; }
@media (max-width: 767px) {
  .ax-seg button, .ax-modes button { min-height: 44px; }
}
