/* /ai-native: the approach, the explainer film and the four-step sequence.
   Tokens come from site.css. */

/* Hero */
.an-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(56px, 10vh, 120px) clamp(48px, 8vh, 96px); }
.an-hero-copy { display: grid; gap: 20px; justify-items: start; }
.an-hero h1 { font-size: clamp(2.6rem, 6.2vw, 5.6rem); letter-spacing: -.05em; line-height: .96; }
.an-hero h1 em { font-style: normal; color: var(--green); }
.an-hero .button { margin-top: 6px; }

.an-orbit { position: relative; margin: 0; width: min(100%, 500px); aspect-ratio: 1; justify-self: center; }
.an-orbit-ring { position: absolute; inset: 11%; border-radius: 50%; border: 1px solid var(--line); }
.an-orbit-ring::before { content: ""; position: absolute; inset: 17%; border-radius: 50%; border: 1px dashed var(--line); }
.an-orbit-dot { position: absolute; inset: 0; animation: an-orbit 30s linear infinite; }
.an-orbit-dot::before { content: ""; position: absolute; left: 50%; top: -5px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--green); }
@keyframes an-orbit { to { transform: rotate(360deg); } }
.an-orbit-centre { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40%; aspect-ratio: 1; border-radius: 50%; background: var(--white); border: 1px solid var(--rule); box-shadow: 0 30px 60px -40px rgba(15, 30, 46, .45); display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 10px; }
.an-orbit-centre img { width: 38%; height: auto; }
.an-orbit-centre strong { font-size: clamp(.8rem, 1.2vw, 1rem); line-height: 1.2; letter-spacing: -.01em; }
.an-orbit-nodes { list-style: none; margin: 0; padding: 0; }
.an-orbit-nodes li { position: absolute; transform: translate(-50%, -50%); }
.an-orbit-nodes span { display: block; white-space: nowrap; font-size: clamp(12px, 1.1vw, 14px); font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--rule); box-shadow: 0 10px 24px -18px rgba(15, 30, 46, .5); }
.an-node-0 { left: 50%; top: 11%; }
.an-node-1 { left: 89%; top: 50%; }
.an-node-2 { left: 50%; top: 89%; }
.an-node-3 { left: 11%; top: 50%; }
.an-node-3 span { max-width: 9.5em; white-space: normal; text-align: center; line-height: 1.2; }
.an-node-0 span { background: var(--sage); border-color: color-mix(in srgb, var(--green) 30%, var(--rule)); color: var(--green-2); }
@media (max-width: 900px) {
  .an-hero { grid-template-columns: 1fr; }
  .an-orbit { width: min(100%, 420px); }
}
@media (max-width: 480px) {
  .an-node-1 { left: 84%; } .an-node-3 { left: 16%; }
  .an-orbit-nodes span { padding: 6px 10px; }
}

/* Statement */
.an-statement { border-block: 1px solid var(--rule); background: var(--white); padding-block: clamp(64px, 11vh, 120px); }
.an-statement .wrap { display: grid; gap: 18px; }
.an-statement-text { font-size: clamp(2rem, 4.6vw, 4.2rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.04; max-width: 22ch; color: var(--muted); text-wrap: balance; }
.an-statement-text strong { color: var(--ink); }

/* Explainer */
.an-explainer { padding-block: clamp(72px, 12vh, 140px); display: grid; gap: 24px; }
.an-explainer-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; }
.an-explainer-heading h2 { font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.045em; margin-top: 12px; }
.an-meta { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.an-video { border-radius: 18px; overflow: hidden; border: 1px solid var(--rule); background: var(--night); box-shadow: 0 50px 100px -60px rgba(15, 30, 46, .5); }
.an-video video { border-radius: 0; aspect-ratio: 16 / 9; object-fit: cover; }
.an-transcript { width: 100%; }
.an-transcript > p + p { margin-top: -6px; }

/* Four steps */
.an-theatre { background: var(--night); color: var(--night-ink); padding-block: clamp(72px, 12vh, 140px); scroll-margin-top: var(--header); }
.an-theatre .eyebrow { color: var(--mint); }
.an-theatre-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vh, 40px); }
.an-play { display: inline-flex; align-items: center; gap: 10px; font: 600 14px var(--sans); padding: 10px 16px 10px 12px; border-radius: 999px; border: 1px solid var(--night-line); background: var(--night-2); color: var(--night-ink); cursor: pointer; transition: border-color .2s, background .2s; }
.an-play:hover { border-color: var(--mint); }
.an-play[hidden] { display: none; }
.an-play-icon { width: 22px; height: 22px; border-radius: 50%; background: var(--mint); position: relative; flex: none; }
.an-play-icon::before { content: ""; position: absolute; left: 8px; top: 6px; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--night); }
.an-play[aria-pressed="true"] .an-play-icon::before { left: 7px; top: 6px; width: 8px; height: 10px; border: 0; border-left: 2.5px solid var(--night); border-right: 2.5px solid var(--night); }
.an-step-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--night-line); margin-bottom: clamp(28px, 5vh, 48px); }
.an-step-tabs[hidden] { display: none; }
.an-step-tabs button { position: relative; display: flex; gap: 12px; align-items: baseline; text-align: left; font: 600 15px var(--sans); color: var(--night-muted); background: none; border: 0; padding: 18px 12px 18px 0; cursor: pointer; transition: color .25s; }
.an-step-tabs button::before { content: ""; position: absolute; left: 0; right: 12px; top: -1px; height: 2px; background: transparent; transition: background .3s; }
.an-step-tabs button span { font: 500 12px var(--mono); color: var(--mint); opacity: .7; }
.an-step-tabs button:hover { color: var(--night-ink); }
.an-step-tabs button[aria-selected="true"] { color: var(--night-ink); }
.an-step-tabs button[aria-selected="true"]::before { background: var(--mint); }
.an-step-tabs button[aria-selected="true"] span { opacity: 1; }
.an-step-tabs button .an-timer { position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--night-ink); }

.an-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: 28px; border-top: 1px solid var(--night-line); }
.an-step:first-of-type { border-top: 0; }
.an-steps.is-enhanced .an-step { border-top: 0; padding-block: 0; min-height: 360px; }
.an-steps.is-enhanced .an-step:not([hidden]) { animation: an-in .5s var(--ease) both; }
.an-step[hidden] { display: none; }
@keyframes an-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.an-step-copy { display: grid; gap: 16px; align-content: center; }
.an-step-number { font: 500 13px var(--mono); letter-spacing: .1em; color: var(--mint); }
.an-step-copy h2 { font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.045em; }
.an-step-copy p { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--night-muted); max-width: 44ch; line-height: 1.55; }
.an-step:focus-visible { outline-color: var(--mint); outline-offset: 8px; }

.an-step-visual { border-radius: 20px; border: 1px solid var(--night-line); background: var(--night-2); padding: clamp(22px, 3vw, 34px); display: grid; gap: 10px; min-height: 320px; align-content: start; }
.an-visual-top { display: flex; justify-content: space-between; font: 500 11px var(--mono); letter-spacing: .12em; color: var(--night-muted); margin-bottom: 18px; }
.an-step-visual h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.035em; line-height: 1.1; }
.an-step-visual p { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mint); }
.an-step-visual small { margin-top: auto; padding-top: 18px; font-size: 12.5px; color: var(--night-muted); }
.an-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 22px; }
.an-flow span { height: 4px; border-radius: 4px; background: var(--night-3); }
.an-flow span.reached { background: var(--mint); }

.an-symbol { position: relative; height: 72px; margin-bottom: 12px; }
.an-symbol i { position: absolute; top: 50%; border-radius: 50%; border: 1.5px solid var(--mint); transform: translateY(-50%); }
.an-symbol-0 i:nth-child(1) { left: 0; width: 64px; height: 64px; background: var(--mint); opacity: .9; }
.an-symbol-0 i:nth-child(2) { left: 46px; width: 36px; height: 36px; background: var(--night-2); }
.an-symbol-0 i:nth-child(3) { left: 70px; width: 20px; height: 20px; }
.an-symbol-1 i { width: 18px; height: 18px; }
.an-symbol-1 i:nth-child(1) { left: 0; background: var(--mint); }
.an-symbol-1 i:nth-child(2) { left: 34px; width: 38px; height: 38px; border-style: dashed; }
.an-symbol-1 i:nth-child(3) { left: 88px; width: 58px; height: 58px; border-radius: 12px; }
.an-symbol-2 i { border-radius: 10px; width: 46px; height: 46px; }
.an-symbol-2 i:nth-child(1) { left: 0; border-style: dashed; }
.an-symbol-2 i:nth-child(2) { left: 62px; width: 4px; height: 58px; border-radius: 2px; background: var(--mint); border: 0; }
.an-symbol-2 i:nth-child(3) { left: 82px; background: var(--mint); }
.an-symbol-3 i:nth-child(1) { left: 0; width: 58px; height: 58px; border-radius: 12px; }
.an-symbol-3 i:nth-child(2) { left: 18px; width: 22px; height: 22px; background: var(--mint); }
.an-symbol-3 i:nth-child(3) { left: 74px; width: 58px; height: 58px; }

.an-next { margin-top: clamp(24px, 4vh, 36px); font: 600 16px var(--sans); background: none; border: 0; padding: 0; cursor: pointer; color: var(--mint); }
.an-next[hidden] { display: none; }
@media (max-width: 860px) {
  .an-step { grid-template-columns: 1fr; }
  .an-steps.is-enhanced .an-step { min-height: 0; }
  .an-step-visual { min-height: 0; }
  .an-step-tabs { grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .an-step-tabs button { font-size: 0; gap: 0; padding: 14px 10px; }
  .an-step-tabs button span { font-size: 14px; }
  .an-step-tabs button::before { right: 0; }
}

/* Product */
.an-product { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(72px, 12vh, 140px); }
.an-product-copy { display: grid; gap: 16px; justify-items: start; }
.an-product-copy h2 { font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.045em; }
.an-product-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; max-width: 42ch; }
.an-product-figure { margin: 0; display: grid; gap: 12px; }
.an-product-figure figcaption { font-size: 13.5px; color: var(--muted); }
@media (max-width: 900px) { .an-product { grid-template-columns: 1fr; } }

/* Principles */
.an-principles { padding-block: 0 clamp(80px, 13vh, 150px); display: grid; gap: 28px; justify-items: start; }
.an-principles ol { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.an-principles li { border-top: 2px solid var(--ink); padding-top: 20px; display: grid; gap: 10px; align-content: start; }
.an-principles li > span { font: 500 13px var(--mono); color: var(--green); }
.an-principles h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -.03em; line-height: 1.12; }
.an-principles p { color: var(--muted); }
@media (max-width: 760px) { .an-principles ol { grid-template-columns: 1fr; } }
