/* Homepage. Black ground, white words, teal where Axis acts, gold where something is for you.
   Words and films sit directly on the page; only real app UI has an edge, and each film glows in its own colour. */

.home {
  --h-max: 1400px;
  --h-gap: clamp(96px, 13vw, 184px);
  --h-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
.home .btn-ghost { border-color: rgba(255, 255, 255, 0.36); }

.h-wrap { width: 100%; max-width: var(--h-max); margin-inline: auto; padding-inline: var(--gutter); }
.home main > section { position: relative; padding-top: var(--h-gap); }
.home h1, .home h2 { font-weight: 600; letter-spacing: -0.04em; line-height: 0.98; text-wrap: balance; }
.home h1 { font-size: clamp(2.9rem, 7.6vw, 7.2rem); }
.home h2 { font-size: clamp(2.3rem, 5.2vw, 4.9rem); }
.h-lede { margin-top: 22px; max-width: 34em; font-size: clamp(1.15rem, 1.55vw, 1.5rem); line-height: 1.35; letter-spacing: -0.012em; }
.teal { color: var(--teal); }
.gold { color: var(--gold); }

/* A film or screen of the real app. The glow takes the film's own colours. */
.shot { position: relative; margin: 0; border-radius: clamp(10px, 1.1vw, 16px); isolation: isolate; }
.shot video, .shot > img { position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: inherit; background: #050606; }
.shot::before {
  content: ""; position: absolute; z-index: 0; inset: 6% 3% -4%; border-radius: 40%;
  background: rgb(var(--amb, 31 199 168) / 0.5); filter: blur(clamp(48px, 7vw, 110px)); opacity: 0.72;
  transition: opacity 1.2s var(--h-ease);
}
.shot .amb { position: absolute; z-index: 0; inset: -3% -2% -7%; width: 104%; height: 110%; filter: blur(clamp(40px, 5vw, 80px)) saturate(2.2) brightness(1.5); opacity: 0.62; border-radius: 30%; pointer-events: none; }
.has-js .shot:not(.is-live)::before { opacity: 0.3; }
.shot video { transition: opacity 0.5s var(--h-ease); }
.shot.is-turning video { opacity: 0; }

/* Words rise once, when they first come into view. */
.has-js .h-rise { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--h-ease), transform 0.9s var(--h-ease); transition-delay: var(--d, 0s); }
.has-js .h-rise.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------- hero */
.home main > .h-hero { padding-top: clamp(48px, 7vw, 104px); }
.h-hero h1 .h-line { display: block; }
.has-js .h-hero h1 .h-line { opacity: 0; transform: translateY(0.35em); animation: h-in 1s var(--h-ease) forwards; }
.has-js .h-hero h1 .h-line + .h-line { animation-delay: 0.14s; }
.h-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3vw, 40px); }
.has-js .h-actions, .has-js .h-stage, .has-js .h-plans { opacity: 0; animation: h-in 1s var(--h-ease) 0.3s forwards; }
.has-js .h-stage { animation-delay: 0.42s; }
.has-js .h-plans { animation-delay: 0.6s; }
.h-stage { margin-top: clamp(44px, 6vw, 84px); }
.h-plans { display: flex; flex-wrap: wrap; align-items: center; gap: 16px clamp(24px, 3vw, 44px); margin-top: clamp(40px, 5vw, 72px); font-size: clamp(1.02rem, 1.3vw, 1.2rem); font-weight: 600; letter-spacing: -0.01em; }
.h-marks, .h-providers { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; }
.h-marks { gap: 12px clamp(18px, 2.2vw, 32px); font-weight: 500; }
.h-marks li, .h-providers li { display: inline-flex; align-items: center; gap: 0.5em; }
.h-marks svg, .h-providers svg { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }
@keyframes h-in { to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ claim */
.h-claim-text { max-width: 19em; font-size: clamp(1.9rem, 4.4vw, 4.1rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.06; text-wrap: balance; }
.h-claim-text .w { opacity: 0.16; transition: opacity 0.5s var(--h-ease); }
.h-claim-text .w.is-lit { opacity: 1; }

/* ----------------------------------------------------------------- sphere */
.h-sphere { text-align: center; }
.h-sphere .h-lede { margin-inline: auto; }
.h-presence { position: relative; height: clamp(340px, 46vw, 600px); margin-top: clamp(8px, 2vw, 28px); }
.h-presence canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.h-orbit { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.h-orbit li { position: absolute; left: 50%; top: 46%; padding: 7px 14px; border: 1px solid rgb(var(--c) / 0.7); border-radius: 999px; background: #000; color: rgb(var(--c)); font-size: 14px; font-weight: 600; opacity: 0; transform: translate(-50%, -50%) scale(0.86); transition: opacity 0.5s var(--h-ease), transform 0.9s var(--h-ease); }
.h-orbit li[data-app="clio"] { --c: 145 173 134; --x: -27vw; --y: -5vw; }
.h-orbit li[data-app="hermes"] { --c: 214 120 110; --x: 27vw; --y: -8vw; }
.h-orbit li[data-app="pheme"] { --c: 215 101 176; --x: -22vw; --y: 9vw; }
.h-orbit li[data-app="horae"] { --c: 237 140 125; --x: 23vw; --y: 8vw; }
.h-orbit li.is-open { opacity: 1; transform: translate(calc(-50% + clamp(-330px, var(--x), 330px)), calc(-50% + clamp(-120px, var(--y), 120px))) scale(1); }
.h-say { position: absolute; left: 0; right: 0; bottom: clamp(18px, 3vw, 44px); min-height: 1.4em; font-size: clamp(1.1rem, 1.7vw, 1.55rem); font-weight: 500; letter-spacing: -0.015em; transition: opacity 0.35s var(--h-ease), color 0.35s var(--h-ease); }
.h-say.is-out { opacity: 0; }
.h-presence[data-state="waiting"] .h-say { color: var(--gold); }
.h-presence[data-state="done"] .h-say, .h-presence[data-state="thinking"] .h-say { color: var(--ink); }
.h-ask { position: absolute; left: 0; right: 0; bottom: clamp(-34px, -2vw, -14px); display: flex; justify-content: center; gap: 10px; }
.h-ask[hidden] { display: none; }
.h-ask span { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold); font-size: 15px; font-weight: 600; transition: background-color 0.3s, color 0.3s; }
.h-ask span.is-picked { background: var(--gold); color: #000; }
.h-composer { display: flex; align-items: center; gap: 14px; max-width: 640px; height: 62px; margin: clamp(46px, 5vw, 64px) auto 0; padding: 0 10px 0 10px; border: 1px solid var(--teal); border-radius: 999px; text-align: left; font-size: clamp(0.98rem, 1.3vw, 1.08rem); }
.h-model { flex: none; display: grid; padding: 6px 16px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.15; }
.h-model small { font-size: 11px; font-weight: 500; }
.h-heard { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-heard.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 3px; vertical-align: -0.18em; background: var(--teal); animation: h-caret 0.9s steps(1) infinite; }
@keyframes h-caret { 50% { opacity: 0; } }
.h-wave { flex: none; display: flex; align-items: center; justify-content: center; gap: 3px; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); }
.h-wave i { width: 3px; height: 6px; border-radius: 2px; background: #000; transition: height 0.09s linear; }
.h-states { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px clamp(8px, 1.4vw, 16px); margin: clamp(26px, 3vw, 40px) 0 0; padding: 0; list-style: none; }
.h-states button { position: relative; padding: 10px 18px; border: 0; border-radius: 999px; background: none; color: var(--ink); font-size: clamp(0.98rem, 1.25vw, 1.1rem); font-weight: 600; letter-spacing: -0.01em; cursor: pointer; transition: color 0.3s var(--h-ease); }
.h-states button[aria-pressed="true"] { color: var(--teal); }
.h-states button[data-state="waiting"][aria-pressed="true"] { color: var(--gold); }

/* ------------------------------------------------------- split and notice */
.h-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }

/* A scene is drawn on the page in place of a film: the same frame and glow, with no video to load.
   Without .is-playing it rests on its last frame, which is also what reduced motion shows. */
.h-scene-in { position: relative; z-index: 1; display: grid; align-content: center; gap: clamp(12px, 1.5vw, 20px); aspect-ratio: 16 / 10; padding: clamp(20px, 3.4vw, 52px); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: inherit; background: #050606; font-size: clamp(1rem, 1.42vw, 1.3rem); line-height: 1.3; text-align: left; }
.h-scene-in ul, .h-scene-in ol { margin: 0; padding: 0; list-style: none; }
.h-scene-in i { font-style: normal; }

.h-learn-said { font-size: 1.16em; font-weight: 600; letter-spacing: -0.015em; }
.h-learn-said b { display: inline-block; min-width: 8.6em; margin-right: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0; }
.h-learn-said.s1, .h-learn-said.s2 { opacity: 0.45; }
.h-learn-notice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; justify-self: start; padding: 11px 16px; border: 1px solid var(--gold); border-radius: 12px; color: var(--gold); font-size: 0.94em; }
.h-learn-notice b { color: var(--ink); font-weight: 600; }
.h-learn-notice i { text-decoration: underline; text-underline-offset: 3px; }
.h-learn-note { padding: clamp(14px, 1.8vw, 22px); border: 1px solid rgb(145 173 134 / 0.55); border-radius: 12px; background: rgb(145 173 134 / 0.08); }
.h-learn-note small { display: flex; align-items: center; gap: 8px; color: rgb(145 173 134); font-size: 13px; font-weight: 600; }
.h-learn-note small i { color: var(--ink); font-style: normal; }
.h-learn-note > b { display: block; margin-top: 8px; font-size: 1.3em; font-weight: 600; letter-spacing: -0.02em; }
.h-learn-note p { margin-top: 6px; }
.h-learn-note ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.h-learn-note li { padding: 4px 12px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); font-size: 13px; font-weight: 600; }
.has-js .h-learn.is-playing .s1 { animation: l-first 11s infinite; }
.has-js .h-learn.is-playing .s2 { animation: l-second 11s infinite; }
.has-js .h-learn.is-playing .s3 { animation: l-third 11s infinite; }
.has-js .h-learn.is-playing .h-learn-notice { animation: l-notice 11s infinite; }
.has-js .h-learn.is-playing .h-learn-note { animation: l-note 11s infinite; }
.has-js .h-learn.is-playing .h-learn-note li { animation: l-knows 11s infinite; }
.has-js .h-learn.is-playing .h-learn-note li:nth-child(2) { animation-name: l-knows2; }
.has-js .h-learn.is-playing .h-learn-note li:nth-child(3) { animation-name: l-knows3; }
@keyframes l-first { 0%, 2% { opacity: 0; transform: translateY(12px); } 7%, 14% { opacity: 1; transform: none; } 19%, 95% { opacity: 0.45; transform: none; } 100% { opacity: 0; } }
@keyframes l-second { 0%, 14% { opacity: 0; transform: translateY(12px); } 19%, 26% { opacity: 1; transform: none; } 31%, 95% { opacity: 0.45; transform: none; } 100% { opacity: 0; } }
@keyframes l-third { 0%, 26% { opacity: 0; transform: translateY(12px); } 31%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes l-notice { 0%, 40% { opacity: 0; transform: translateY(12px); } 46%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes l-note { 0%, 56% { opacity: 0; transform: translateY(14px); } 63%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes l-knows { 0%, 68% { border-color: rgba(255, 255, 255, 0.24); color: var(--ink); } 71%, 100% { border-color: var(--gold); color: var(--gold); } }
@keyframes l-knows2 { 0%, 74% { border-color: rgba(255, 255, 255, 0.24); color: var(--ink); } 77%, 100% { border-color: var(--gold); color: var(--gold); } }
@keyframes l-knows3 { 0%, 80% { border-color: rgba(255, 255, 255, 0.24); color: var(--ink); } 83%, 100% { border-color: var(--gold); color: var(--gold); } }

.h-switch-task { font-size: 1.3em; font-weight: 600; letter-spacing: -0.02em; }
.h-switch-models { display: flex; flex-wrap: wrap; gap: 8px; }
.h-switch-models li { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 999px; font-size: 14px; font-weight: 600; }
.h-switch-models li:nth-child(2) { --k: 1; } .h-switch-models li:nth-child(3) { --k: 2; } .h-switch-models li:nth-child(4) { --k: 3; }
.h-switch-steps { display: grid; }
.h-switch-steps li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: clamp(7px, 0.9vw, 11px) 0; border-top: 1px solid rgba(255, 255, 255, 0.14); font-weight: 600; }
.h-switch-steps i { color: var(--teal); font-size: 14px; font-style: normal; font-weight: 600; }
.h-switch-memory { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--gold); font-size: 13px; font-weight: 600; }
.h-switch-memory b { margin-right: 4px; font-size: 14px; font-weight: 600; }
.h-switch-memory span { padding: 4px 12px; border: 1px solid var(--gold); border-radius: 999px; }
.has-js .h-switch.is-playing .h-switch-models li { animation: m-lit 12s infinite; animation-delay: calc(var(--k, 0) * 2.64s); }
.has-js .h-switch.is-playing .h-switch-steps li { animation: m-step1 12s infinite; }
.has-js .h-switch.is-playing .h-switch-steps li:nth-child(2) { animation-name: m-step2; }
.has-js .h-switch.is-playing .h-switch-steps li:nth-child(3) { animation-name: m-step3; }
.has-js .h-switch.is-playing .h-switch-steps li:nth-child(4) { animation-name: m-step4; }
.has-js .h-switch.is-playing .h-switch-steps i { animation: m-tag1 12s infinite; }
.has-js .h-switch.is-playing .h-switch-steps li:nth-child(2) i { animation-name: m-tag2; }
.has-js .h-switch.is-playing .h-switch-steps li:nth-child(3) i { animation-name: m-tag3; }
.has-js .h-switch.is-playing .h-switch-steps li:nth-child(4) i { animation-name: m-tag4; }
@keyframes m-lit { 0%, 21% { border-color: var(--teal); background: var(--teal-deep); color: var(--teal); } 23%, 100% { border-color: rgba(255, 255, 255, 0.24); background: none; color: var(--ink); } }
@keyframes m-step1 { 0% { opacity: 0.3; } 3%, 96% { opacity: 1; } 100% { opacity: 0.3; } }
@keyframes m-step2 { 0%, 22% { opacity: 0.3; } 25%, 96% { opacity: 1; } 100% { opacity: 0.3; } }
@keyframes m-step3 { 0%, 44% { opacity: 0.3; } 47%, 96% { opacity: 1; } 100% { opacity: 0.3; } }
@keyframes m-step4 { 0%, 66% { opacity: 0.3; } 69%, 96% { opacity: 1; } 100% { opacity: 0.3; } }
@keyframes m-tag1 { 0% { opacity: 0; transform: scale(0.8); } 4%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes m-tag2 { 0%, 22% { opacity: 0; transform: scale(0.8); } 26%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes m-tag3 { 0%, 44% { opacity: 0; transform: scale(0.8); } 48%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes m-tag4 { 0%, 66% { opacity: 0; transform: scale(0.8); } 70%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ------------------------------------------------------------------- team */
.h-team-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(36px, 5vw, 72px); }
.h-forms { display: grid; justify-items: center; }
.h-forms canvas { width: min(100%, 360px); height: clamp(200px, 22vw, 290px); }
.h-job { max-width: 17em; margin-top: 6px; font-size: clamp(1rem, 1.3vw, 1.16rem); line-height: 1.3; text-align: center; }
.h-job b { display: block; margin-bottom: 4px; color: var(--teal); font-size: clamp(1.2rem, 1.7vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; }
.h-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px clamp(20px, 3vw, 48px); margin: clamp(36px, 4.4vw, 64px) 0 0; padding: 0; list-style: none; font-size: clamp(1.1rem, 1.6vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.h-facts li { padding-top: 16px; border-top: 1px solid var(--teal); }

/* ---------------------------------------------------------------- project */
/* One picker for the site: a single outlined track, and a white thumb that slides to the choice. */
.h-seg { position: relative; isolation: isolate; display: inline-flex; max-width: 100%; padding: 4px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; }
.h-seg::before { content: ""; position: absolute; z-index: -1; left: 0; top: 4px; bottom: 4px; width: var(--seg-w, 0px); border-radius: 999px; background: var(--ink); opacity: 0; transform: translateX(var(--seg-x, 0px)); transition: transform 0.4s var(--h-ease), width 0.4s var(--h-ease); }
.h-seg.is-ready::before { opacity: 1; }
.h-seg button { padding: 9px clamp(14px, 1.8vw, 22px); border: 0; border-radius: 999px; background: none; color: rgba(255, 255, 255, 0.72); font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: color 0.25s; }
.h-seg button:hover { color: var(--ink); }
.h-seg button[aria-selected="true"] { color: #000; }
.h-seg:not(.is-ready) button[aria-selected="true"] { background: var(--ink); }
.h-tabs { margin-top: clamp(28px, 3.4vw, 44px); }
.h-run[hidden] { display: none; }
.h-request b, .h-result b { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; letter-spacing: 0; line-height: 1; }
.h-result b { color: var(--teal); }
.h-request { max-width: 20em; margin-top: clamp(32px, 4vw, 52px); font-size: clamp(1.7rem, 3.5vw, 3.3rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.06; text-wrap: balance; }
.h-flow { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); margin: clamp(46px, 5.4vw, 74px) 0 0; padding: 30px 0 0; list-style: none; }
.h-flow::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--teal); transform-origin: left; }
.h-flow li { position: relative; }
/* The work is a route, and each stop is named for the app Axis was in. The name sits on the line and breaks it. */
.h-flow li::before { content: attr(data-app); position: absolute; left: 0; top: -40px; padding-right: 14px; background: var(--bg); color: rgb(var(--c, 255 255 255)); font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 22px; white-space: nowrap; }
.h-flow li.decided::before { color: var(--gold); }
.h-flow li:not(:first-child)::before { left: -14px; padding-left: 14px; }
.h-flow img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: 10px; background: #050606; }
.h-flow p { margin-top: 14px; font-size: clamp(0.98rem, 1.2vw, 1.1rem); line-height: 1.3; }
.h-flow p { font-weight: 600; letter-spacing: -0.012em; }
.h-flow .decided p { color: var(--gold); }
.h-result { margin-top: clamp(34px, 4vw, 56px); font-size: clamp(1.7rem, 3.5vw, 3.3rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.06; text-wrap: balance; }
.has-js .h-run.is-playing .h-flow::before { animation: h-draw 2.6s var(--h-ease) both; }
.has-js .h-run.is-playing .h-flow li { animation: h-arrive 0.8s var(--h-ease) both; animation-delay: calc(0.25s + var(--i) * 0.55s); }
.has-js .h-run.is-playing .h-result { animation: h-arrive 0.8s var(--h-ease) 2.6s both; }
.has-js .h-run.is-playing .h-request { animation: h-arrive 0.7s var(--h-ease) both; }
.has-js .h-run:not(.is-playing):not([hidden]) .h-flow li, .has-js .h-run:not(.is-playing):not([hidden]) .h-result { opacity: 0; }
@keyframes h-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes h-arrive { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------- apps */
.h-applist { display: flex; flex-wrap: wrap; gap: 18px clamp(26px, 4vw, 64px); margin: clamp(32px, 4vw, 52px) 0 0; padding: 0; list-style: none; }
.h-applist a { display: grid; gap: 6px; color: rgb(var(--c)); font-size: clamp(1.7rem, 3.4vw, 3rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; transition: color 0.3s var(--h-ease); }
.h-applist small { color: var(--ink); font-size: 14px; font-weight: 500; letter-spacing: 0; line-height: 1.2; }
.h-applist a:hover { color: var(--ink); }
.h-app { margin: 0; }
.h-app figcaption { margin-top: 18px; font-size: clamp(1rem, 1.3vw, 1.16rem); line-height: 1.3; }
.h-app figcaption b { margin-right: 8px; font-weight: 600; }
.h-more { display: inline-flex; align-items: center; gap: 8px; margin-top: clamp(36px, 4vw, 56px); color: var(--teal); font-weight: 600; font-size: clamp(1rem, 1.3vw, 1.16rem); }
.h-more::after { content: "→"; transition: transform 0.2s var(--h-ease); }
.h-more:hover::after { transform: translateX(4px); }

/* The Apps page: one app, one film, at a size where its words can be read. */
.home main > .h-pagehead { padding-top: clamp(48px, 7vw, 104px); }
.h-entry { scroll-margin-top: 96px; }
.h-entry .h-wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 3.4vw, 56px); align-items: start; }
.h-entry-text { position: sticky; top: 104px; }
.h-entry.is-flip .h-wrap { grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); }
.h-entry.is-flip .h-entry-text { order: 2; }
.home .h-entry h2 { color: rgb(var(--c)); font-size: clamp(2.1rem, 4vw, 3.6rem); }
.h-entry-text p { margin-top: 14px; font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.35; letter-spacing: -0.012em; }
.h-entry-text .h-role { margin-top: 10px; font-size: 14px; font-weight: 600; letter-spacing: 0; }
.h-moreapps .h-wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px 48px; }
.home main > .h-moreapps { padding-bottom: clamp(110px, 13vw, 170px); }

/* ----------------------------------------------------------------- memory */
.h-providers { gap: 14px clamp(22px, 3.4vw, 54px); margin-top: clamp(32px, 4vw, 52px); font-size: clamp(1.5rem, 3vw, 2.6rem); font-weight: 600; letter-spacing: -0.03em; }
.h-providers li { transition: color 0.5s var(--h-ease); }
.h-providers li.is-on { color: var(--teal); }
.h-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(18px, 2.2vw, 32px); margin-top: clamp(44px, 6vw, 84px); }

/* ------------------------------------------------------------------ cases */
/* The wall rests as a wrapped list. With script it drifts, each row the other way, and stops under the pointer. */
.h-wall { --gap: clamp(30px, 3.6vw, 60px); display: grid; margin-top: clamp(36px, 5vw, 64px); overflow: hidden; }
.h-wall-row { display: flex; flex-wrap: wrap; gap: 0 var(--gap); margin: 0; padding: 0 var(--gutter); border-top: 1px solid rgba(255, 255, 255, 0.14); list-style: none; }
.h-wall-row:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.h-wall a { display: block; padding: clamp(13px, 1.5vw, 20px) 0; font-size: clamp(1.1rem, 1.75vw, 1.6rem); font-weight: 600; letter-spacing: -0.022em; line-height: 1.2; transition: color 0.25s; }
.h-wall a::before { content: "\201C"; }
.h-wall a::after { content: "\201D"; }
.h-wall a:hover, .h-wall a:focus-visible { color: var(--teal); }
.h-wall.is-moving { -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.h-wall.is-moving .h-wall-row { flex-wrap: nowrap; width: max-content; min-width: 100%; padding: 0 var(--gap) 0 0; animation: h-drift var(--t, 120s) linear infinite; }
.h-wall.is-moving .h-wall-row:nth-child(even) { animation-direction: reverse; }
.h-wall.is-moving a { white-space: nowrap; }
.h-wall.is-moving .h-wall-row:hover, .h-wall.is-moving .h-wall-row:focus-within, .h-wall.is-paused .h-wall-row { animation-play-state: paused; }
@keyframes h-drift { to { transform: translateX(-50%); } }
.h-cases .h-more { margin-top: clamp(28px, 3.4vw, 44px); }
.h-in { font-size: 14px; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.h-in b { color: rgb(var(--c, 31 199 168)); font-weight: 600; }

/* The Use cases page: every request, grouped by the kind of work, with how Axis does it. */
.h-jump { display: flex; flex-wrap: wrap; gap: 12px clamp(20px, 2.6vw, 36px); margin: clamp(28px, 3.4vw, 44px) 0 0; padding: 0; list-style: none; }
.h-jump a { display: block; padding-bottom: 5px; border-bottom: 1px solid rgba(255, 255, 255, 0.34); font-size: clamp(1rem, 1.25vw, 1.12rem); font-weight: 600; letter-spacing: -0.012em; transition: color 0.25s, border-color 0.25s; }
.h-jump a:hover { border-color: var(--teal); color: var(--teal); }
.h-group { scroll-margin-top: 80px; }
.h-group .h-wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 3.4vw, 56px); align-items: start; }
.h-group-head { position: sticky; top: 104px; }
.home .h-group h2 { font-size: clamp(1.9rem, 3.3vw, 3rem); }
.h-group-head p { margin-top: 14px; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.35; letter-spacing: -0.012em; }
.h-uses { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr)); gap: 0 clamp(20px, 2.6vw, 40px); margin: 0; padding: 0; list-style: none; }
.h-uses li { padding: 20px 0 28px; border-top: 1px solid rgba(255, 255, 255, 0.18); scroll-margin-top: 110px; }
.h-uses li:target { border-top-color: var(--teal); }
.h-uses li:target h3 { color: var(--teal); }
.h-uses h3, .h-qa h3 { font-size: clamp(1.15rem, 1.45vw, 1.34rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.h-uses p, .h-qa p { margin-top: 10px; font-size: 1rem; line-height: 1.42; }
.h-uses .h-in { margin-top: 14px; }
.h-qas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 0 clamp(24px, 4vw, 64px); margin-top: clamp(32px, 4vw, 52px); }
.h-qa { padding: 20px 0 28px; border-top: 1px solid var(--teal); }

/* ------------------------------------------------------------------ close */
.home main > .h-close { padding-bottom: clamp(90px, 11vw, 150px); }
.h-close-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.h-close .h-actions { opacity: 1; animation: none; }
.h-close-orb { display: grid; justify-items: center; }
.h-close-orb canvas { width: 100%; height: clamp(260px, 32vw, 460px); }
.h-close-orb img { width: min(230px, 60%); height: auto; margin-top: clamp(-28px, -2vw, -8px); }

/* ------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .h-split, .h-team-head, .h-pair, .h-close-in, .h-group .h-wrap { grid-template-columns: minmax(0, 1fr); }
  .h-group-head { position: static; }
  .h-team-head { align-items: start; }
  .h-forms { justify-items: start; }
  .h-job { text-align: left; }
  .h-entry .h-wrap, .h-entry.is-flip .h-wrap { grid-template-columns: minmax(0, 1fr); }
  .h-entry.is-flip .h-entry-text { order: 0; }
  .h-entry-text { position: static; }
  .h-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .h-flow { padding-top: 0; }
  .h-flow::before { display: none; }
  .h-flow li::before, .h-flow li:not(:first-child)::before { position: static; display: block; margin-bottom: 10px; padding: 0; }
}
@media (max-width: 640px) {

  .h-orbit li { font-size: 12.5px; padding: 5px 11px; }
  .h-orbit li.is-open { transform: translate(calc(-50% + var(--x) * 1.25), calc(-50% + var(--y) * 2.6)) scale(1); }
  .h-composer { height: 54px; gap: 10px; }
  .h-model small { display: none; }
  .h-plans { flex-direction: column; align-items: flex-start; }
  /* A drawn scene grows with its words on a phone; a fixed shape would cut the last row off. */
  .h-scene-in { aspect-ratio: auto; min-height: 240px; padding: 22px 18px; }
  .h-states { flex-wrap: nowrap; gap: 0; }
  .h-states button { padding: 10px 11px; font-size: 0.95rem; }
}
@media (max-width: 420px) {
  .h-flow { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .has-js .h-rise, .has-js .h-hero h1 .h-line, .has-js .h-actions, .has-js .h-stage, .has-js .h-plans { opacity: 1; transform: none; animation: none; transition: none; }
  .h-claim-text .w { opacity: 1; }
  .has-js .h-run .h-flow li, .has-js .h-run .h-result { opacity: 1 !important; animation: none !important; }
  .has-js .h-run .h-flow::before { animation: none !important; }
  .has-js .h-scene * { animation: none !important; }
}
