/*
 * ArrowSpade 2026 experience layer
 * Loaded only by the redesigned public-facing pages. Privacy and Terms keep
 * the original stylesheet and markup exactly as shipped.
 */

.as-experience {
  --x-ink: #211a3d;
  --x-ink-2: #372d68;
  --x-violet: #6552df;
  --x-lilac: #b8acf6;
  --x-orchid: #e4ddff;
  --x-paper: #f8f7fc;
  --x-white: #ffffff;
  --x-line: rgba(33, 26, 61, 0.14);
  --x-muted: #625d78;
  --x-coral: #ff8e78;
  --x-lime: #d9f46d;
  --x-radius: 2rem;
  --x-shadow: 0 24px 80px rgba(55, 45, 104, 0.12);
  background: var(--x-paper);
  color: var(--x-ink);
}

.as-experience,
.as-experience button,
.as-experience input,
.as-experience select,
.as-experience textarea {
  font-family: var(--font-body);
}

.as-experience h1,
.as-experience h2,
.as-experience h3,
.as-experience h4 {
  color: var(--x-ink);
}

/* This layer loads after main.css, so the blanket ink colour above was
   beating main.css's on-ink remap and painting headings dark-on-dark —
   the footer's Company/Connect/Legal headings rendered invisible on every
   page. Restore the light treatment wherever a heading sits on ink. */
.as-experience :is(.as-footer, .as-on-ink, .as-ink-band, .as-band)
  :is(h1, h2, h3, h4) {
  color: #f2f0fa;
}

.as-experience h1,
.as-experience h2 {
  letter-spacing: -0.055em;
}

.as-experience h3 {
  letter-spacing: -0.035em;
}

/* Inherit the surrounding text colour for prose links only. This reset used to
   apply to every <a>, and because it outranks the component rules it silently
   repainted anything that sets its own colour: the skip link went dark-on-dark
   (1.13:1) on most pages, and .as-btn--light inside an ink band rendered white
   text on a white pill. Components must keep their own colour. */
.as-experience a:not([class]),
.as-experience :is(p, li, dd, dt, blockquote, .as-prose, .x-prose)
  a:not([class*="btn"]):not([class*="button"]):not([class*="badge"]) {
  color: inherit;
}

.as-experience :focus-visible {
  outline: 3px solid var(--x-coral);
  outline-offset: 4px;
}

.as-experience ::selection {
  background: var(--x-lilac);
  color: var(--x-ink);
}

.x-container {
  width: min(calc(100% - clamp(2rem, 7vw, 7.5rem)), 88rem);
  margin-inline: auto;
}

.x-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.x-kicker::before {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--x-violet);
  border-radius: 50%;
  content: "";
}

.x-button {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--x-ink);
  border-radius: 999px;
  background: var(--x-ink);
  color: var(--x-white) !important;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 220ms ease,
    background-color 220ms ease;
}

.x-button::after {
  content: "\2197";
  font-size: 1.05rem;
  line-height: 1;
}

.x-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(33, 26, 61, 0.18);
}

.x-button:active {
  transform: translateY(-1px) scale(0.98);
}

.x-button--ghost {
  background: transparent;
  color: var(--x-ink) !important;
  border-color: var(--x-line);
}

.x-button--ghost:hover {
  background: rgba(255, 255, 255, 0.7);
}

.x-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}

.x-text-link::after {
  content: "\2192";
  transition: transform 180ms ease;
}

.x-text-link:hover::after {
  transform: translateX(0.3rem);
}

.x-more-link {
  margin-top: 2rem;
}

/* Shared floating header -------------------------------------------------- */

.as-experience .as-header {
  position: fixed;
  top: 1rem;
  right: 0;
  left: 0;
  z-index: 100;
  height: auto;
  border: 0;
  background: transparent;
  pointer-events: none;
}

.as-experience .as-header__inner {
  position: relative;
  width: min(calc(100% - 2rem), 88rem);
  height: auto;
  min-height: 4.25rem;
  padding: 0.55rem 0.65rem 0.55rem 1rem;
  border: 1px solid rgba(33, 26, 61, 0.11);
  border-radius: 999px;
  background: rgba(248, 247, 252, 0.79);
  box-shadow: 0 10px 40px rgba(33, 26, 61, 0.08);
  backdrop-filter: blur(18px) saturate(140%);
  pointer-events: auto;
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.as-experience .as-header.is-scrolled .as-header__inner {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 42px rgba(33, 26, 61, 0.13);
}

.as-experience .as-header__brand {
  gap: 0.7rem;
  color: var(--x-ink);
  text-decoration: none;
}

.as-experience .as-header__mark {
  width: 2rem;
  height: 2rem;
}

.as-experience .as-wordmark {
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 780;
  letter-spacing: -0.025em;
}

.as-experience .as-wordmark__cap {
  font-size: inherit;
  letter-spacing: inherit;
}

.as-experience .as-nav__list {
  gap: 0.15rem;
}

.as-experience .as-nav__link {
  padding: 0.65rem 0.78rem;
  border-radius: 999px;
  color: var(--x-muted);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.as-experience .as-nav__link:hover,
.as-experience .as-nav__link[aria-current="page"] {
  background: var(--x-orchid);
  color: var(--x-ink);
}

.as-experience .as-nav__cta,
.as-experience .as-btn--primary {
  border: 1px solid var(--x-ink);
  background: var(--x-ink);
  color: var(--x-white);
  box-shadow: none;
}

.as-experience .as-nav__cta {
  min-height: 3rem;
  padding-inline: 1.1rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.as-experience .as-nav__cta::after {
  content: "\2197";
}

.as-experience .as-header__toggle-line {
  background: var(--x-ink);
}

/* Home: immersive hero --------------------------------------------------- */

.x-hero {
  position: relative;
  min-height: max(46rem, 100svh);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(7.5rem, 13vh, 10rem) 0 clamp(3rem, 8vh, 6rem);
  isolation: isolate;
}

.x-hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(
      circle at 72% 44%,
      rgba(184, 172, 246, 0.58),
      transparent 33%
    ),
    radial-gradient(
      circle at 84% 14%,
      rgba(217, 244, 109, 0.25),
      transparent 20%
    ),
    var(--x-paper);
  content: "";
}

.x-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(33, 26, 61, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 26, 61, 0.055) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 82%);
  content: "";
  pointer-events: none;
}

.x-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  gap: 2rem;
}

.x-hero__copy {
  max-width: 48rem;
  pointer-events: none;
}

.x-hero__copy :is(a, button) {
  pointer-events: auto;
}

.x-hero__title {
  max-width: 8.5ch;
  margin-top: clamp(1.2rem, 3vw, 2.2rem);
  font-family: var(--font-display);
  font-size: clamp(4.4rem, 10.7vw, 10rem);
  font-variation-settings:
    "opsz" 110,
    "SOFT" 50,
    "WONK" 1;
  font-weight: 560;
  line-height: 0.82;
}

.x-hero__title span {
  color: var(--x-violet);
}

.x-hero__lede {
  max-width: 35rem;
  margin-top: clamp(1.5rem, 3vw, 2.3rem);
  color: var(--x-muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.55;
}

.x-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.x-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.35rem;
  margin-top: clamp(2.7rem, 6vw, 5rem);
  color: var(--x-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.x-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.x-hero__meta span::before {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--x-coral);
  content: "";
}

.x-hero__scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}

.x-hero__scene:active {
  cursor: grabbing;
}

.x-hero__scene canvas {
  width: 100%;
  height: 100%;
}

.x-hero__fallback {
  position: absolute;
  top: 50%;
  left: 75%;
  z-index: 0;
  width: min(42vw, 35rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(8deg);
  border: 1px solid var(--x-line);
  border-radius: 44% 56% 48% 52%;
  background: var(--x-orchid);
  box-shadow:
    inset -2rem -2rem 4rem rgba(101, 82, 223, 0.16),
    2rem 2rem 6rem rgba(55, 45, 104, 0.14);
}

.x-hero__fallback img,
.x-hero__fallback .as-brand-lockup__icon--hero {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 38%;
  height: auto;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.x-hero.has-webgl .x-hero__fallback {
  opacity: 0;
}

/* Home: focused sales hero ---------------------------------------------- */

.x-hero--home {
  min-height: max(46rem, 100svh);
  padding: clamp(7.2rem, 11vh, 8.5rem) 0 clamp(3.5rem, 7vh, 5.5rem);
  background: var(--x-paper);
  color: var(--x-ink);
}

.x-hero--home::before {
  background:
    radial-gradient(
      circle at 78% 43%,
      rgba(184, 172, 246, 0.3),
      transparent 35%
    ),
    var(--x-paper);
}

.x-hero--home::after {
  display: none;
}

.x-hero--home .x-hero__inner {
  grid-template-columns: minmax(19rem, 0.94fr) minmax(27rem, 1.06fr);
  gap: clamp(3rem, 6vw, 7rem);
}

.x-hero--home .x-hero__copy {
  max-width: 38rem;
  padding-top: 0;
}

.x-hero--home .x-kicker {
  color: var(--x-violet);
}

.x-hero--home .x-kicker::before {
  background: var(--x-lime);
  box-shadow: 0 0 0 0.28rem rgba(101, 82, 223, 0.07);
}

.x-hero--home .x-hero__title {
  max-width: 9.5ch;
  margin-top: clamp(1.35rem, 3vw, 2.1rem);
  color: var(--x-ink);
  font-size: clamp(3.8rem, 6.5vw, 6.5rem);
  line-height: 0.92;
}

.x-hero--home .x-hero__title span {
  display: block;
  color: var(--x-violet);
}

.x-hero--home .x-hero__lede {
  max-width: 34rem;
  color: var(--x-muted);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
}

.x-hero--home .x-button {
  border-color: var(--x-ink);
  background: var(--x-ink);
  color: var(--x-white) !important;
}

.x-hero--home .x-button:hover {
  box-shadow: 0 12px 30px rgba(55, 45, 104, 0.18);
}

.x-hero--home .x-button--ghost {
  border-color: rgba(33, 26, 61, 0.2);
  background: transparent;
  color: var(--x-ink) !important;
}

.x-hero--home .x-button--ghost:hover {
  background: rgba(101, 82, 223, 0.06);
}

.x-hero--home .x-hero__meta {
  max-width: 34rem;
  gap: 0.7rem clamp(1rem, 2.5vw, 1.6rem);
  margin-top: clamp(2.4rem, 4vw, 3.4rem);
  padding-top: 1.3rem;
  border-top: 1px solid var(--x-line);
  color: var(--x-muted);
}

.x-hero--home .x-hero__meta span::before {
  background: var(--x-coral);
}

.x-hero__visual {
  position: relative;
  min-width: 0;
  height: clamp(31rem, 64vh, 40rem);
  isolation: isolate;
}

.x-hero__visual::after {
  position: absolute;
  right: 9%;
  bottom: 13%;
  left: 19%;
  z-index: 0;
  height: 8%;
  border-radius: 50%;
  background: rgba(55, 45, 104, 0.14);
  filter: blur(26px);
  content: "";
  pointer-events: none;
}

.x-hero--home .x-hero__scene {
  inset: -4%;
  z-index: 2;
  opacity: 1;
  border-radius: 3rem;
  touch-action: pan-y;
}

/* --------------------------------------------------------------------------
   Home hero stage — the two things we build (a site and an app) as abstract
   planes, with the brand's ascending arrow drawn behind them. Pure CSS/SVG:
   no WebGL dependency, and deliberately no invented UI content.
   -------------------------------------------------------------------------- */
.x-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.x-stage__aura {
  position: absolute;
  top: 8%;
  left: 6%;
  width: 84%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 42% 42%,
    rgba(184, 172, 246, 0.5),
    rgba(184, 172, 246, 0) 68%
  );
  filter: blur(6px);
}

.x-stage__rise {
  position: absolute;
  inset: 2% 4% 8% 0;
  z-index: 3;
  width: 96%;
  height: 90%;
  filter: drop-shadow(0 6px 14px rgba(55, 45, 104, 0.18));
  pointer-events: none;
}

.x-plane {
  position: absolute;
  border-radius: 1.5rem;
  box-shadow: 0 30px 70px -18px rgba(55, 45, 104, 0.4);
}

/* The site: a wide plane with restrained browser chrome */
.x-plane--web {
  top: 13%;
  left: 0;
  width: 68%;
  aspect-ratio: 1.52;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(150deg, #ffffff, #ece8fb 62%, #ded6fa);
  transform: rotate(-4deg);
}

.x-plane__chrome {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  height: 2.1rem;
  padding-inline: 0.95rem;
  border-bottom: 1px solid rgba(33, 26, 61, 0.09);
}

.x-plane__chrome i {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: rgba(33, 26, 61, 0.16);
}

/* The app: a portrait plane in brand violet, overlapping the site */
.x-plane--app {
  right: 4%;
  bottom: 16%;
  width: 27%;
  aspect-ratio: 0.49;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 1.9rem;
  background: linear-gradient(165deg, #7967e8, #5a46d1 58%, #4a37b8);
  transform: rotate(5deg);
}

.x-plane__pill {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  width: 26%;
  height: 0.32rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  transform: translateX(-50%);
}

@media (max-width: 900px) {
  .x-plane--web { width: 74%; }
  .x-plane--app { width: 30%; bottom: 18%; }
}

.x-hero--home .x-hero__fallback {
  inset: 12% 4%;
  z-index: 1;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  opacity: 1;
}

.x-hero--home .x-hero__fallback span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62%;
  aspect-ratio: 1.55;
  border: 1px solid rgba(55, 45, 104, 0.12);
  border-radius: 2rem;
  background: #6552df;
  box-shadow: 0 28px 70px rgba(55, 45, 104, 0.15);
}

.x-hero--home .x-hero__fallback span:nth-child(1) {
  transform: translate(-64%, -68%) rotate(-11deg);
  background: #e4ddff;
}

.x-hero--home .x-hero__fallback span:nth-child(2) {
  transform: translate(-42%, -48%) rotate(7deg);
  background: #cbbfff;
}

.x-hero--home .x-hero__fallback span:nth-child(3) {
  transform: translate(-54%, -40%) rotate(-2deg);
  background: #7967e8;
}

.x-hero__fallback-arrow,
.x-hero__fallback-lines,
.x-hero__fallback-chart {
  position: absolute;
  z-index: 2;
  display: flex;
  font-style: normal;
}

.x-hero__fallback-arrow {
  top: 19%;
  left: 12%;
  width: clamp(2.7rem, 5vw, 4.1rem);
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(33, 26, 61, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #9db427;
  box-shadow: 0 12px 24px rgba(55, 45, 104, 0.14);
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-weight: 800;
  line-height: 1;
}

.x-hero__fallback-lines {
  top: 24%;
  right: 10%;
  width: 46%;
  flex-direction: column;
  gap: clamp(0.3rem, 0.7vw, 0.55rem);
}

.x-hero__fallback-lines b {
  width: 100%;
  height: clamp(0.28rem, 0.62vw, 0.48rem);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px rgba(33, 26, 61, 0.04);
}

.x-hero__fallback-lines b:nth-child(2) {
  width: 72%;
}

.x-hero__fallback-lines b:nth-child(3) {
  width: 42%;
}

.x-hero__fallback-chart {
  right: 11%;
  bottom: 13%;
  height: 28%;
  align-items: flex-end;
  gap: clamp(0.28rem, 0.65vw, 0.5rem);
}

.x-hero__fallback-chart b {
  width: clamp(0.42rem, 0.9vw, 0.68rem);
  height: 38%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(33, 26, 61, 0.05);
}

.x-hero__fallback-chart b:nth-child(2) {
  height: 56%;
}

.x-hero__fallback-chart b:nth-child(3) {
  height: 76%;
}

.x-hero__fallback-chart b:nth-child(4) {
  height: 100%;
  background: rgba(217, 244, 109, 0.9);
}

.x-hero__visual-note {
  position: absolute;
  right: 9%;
  bottom: 5.5%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--x-muted);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.x-hero__visual-note::before {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--x-lime);
  box-shadow: 0 0 0 0.26rem rgba(101, 82, 223, 0.06);
  content: "";
}

.x-hero--home.has-home-webgl .x-hero__fallback {
  opacity: 0;
}

/* Home content ----------------------------------------------------------- */

.x-section {
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.x-section--tight {
  padding-block: clamp(4rem, 7vw, 6rem);
}

.x-section__head {
  display: grid;
  gap: 1.4rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.x-section__head h2 {
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.5vw, 7.2rem);
  font-weight: 560;
  line-height: 0.9;
}

.x-section__head p {
  max-width: 36rem;
  color: var(--x-muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.6;
}

.x-capability-grid {
  display: grid;
  gap: 1rem;
}

.x-capability {
  position: relative;
  min-height: clamp(20rem, 32vw, 29rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.6rem);
  border: 1px solid var(--x-line);
  border-radius: var(--x-radius);
  background: var(--x-white);
  transition:
    transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 300ms ease;
}

.x-capability:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--x-shadow);
}

.x-capability:nth-child(2) {
  background: var(--x-orchid);
}

.x-capability:nth-child(3) {
  background: var(--x-lime);
}

.x-capability__num {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7rem);
  font-variation-settings: "opsz" 100;
  line-height: 0.8;
  opacity: 0.24;
}

.x-capability__icon {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--x-line);
  border-radius: 50%;
  font-size: 1.8rem;
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.x-capability:hover .x-capability__icon {
  transform: rotate(45deg);
}

.x-capability h3 {
  max-width: 9ch;
  margin-top: 6rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 580;
  line-height: 0.95;
}

.x-capability p {
  max-width: 28rem;
  margin-top: 1rem;
  color: rgba(33, 26, 61, 0.74);
  line-height: 1.55;
}

.x-work {
  background: var(--x-ink);
  color: var(--x-white);
}

.x-work h2,
.x-work h3 {
  color: var(--x-white);
}

.x-work .x-kicker {
  color: var(--x-lilac);
}

.x-work .x-kicker::before {
  background: var(--x-lime);
}

.x-work__card {
  position: relative;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  overflow: hidden;
  padding: clamp(1rem, 2.4vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: clamp(2rem, 5vw, 4rem);
  background: rgba(255, 255, 255, 0.07);
}

.x-work__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.25;
  border-radius: clamp(1.3rem, 3vw, 2.8rem);
  background: var(--x-orchid);
}

.x-work__media::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.x-work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.x-work__card:hover .x-work__media img {
  transform: scale(1.045);
}

.x-work__copy {
  padding: clamp(1rem, 3vw, 3rem);
}

.x-work__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--x-lime);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.x-work__tag::before {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.x-work__copy h3 {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 560;
  line-height: 0.86;
}

.x-work__copy p {
  max-width: 34rem;
  margin-top: 1.4rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.02rem;
}

.x-work__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.x-work .x-button {
  border-color: var(--x-white);
  background: var(--x-white);
  color: var(--x-ink) !important;
}

.x-work .x-button--ghost {
  background: transparent;
  color: var(--x-white) !important;
}

.x-process__grid {
  border-top: 1px solid var(--x-line);
}

.x-process__item {
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--x-line);
}

.x-process__num {
  color: var(--x-violet);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.x-process__item h3 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 4.6rem);
  font-weight: 560;
}

.x-process__item p {
  max-width: 30rem;
  color: var(--x-muted);
}

.x-manifesto {
  position: relative;
  overflow: hidden;
  background: var(--x-violet);
  color: var(--x-white);
}

.x-manifesto::before,
.x-manifesto::after {
  position: absolute;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
}

.x-manifesto::before {
  top: -8rem;
  right: 12%;
}

.x-manifesto::after {
  right: -4rem;
  bottom: -11rem;
  width: 28rem;
  height: 28rem;
}

.x-manifesto__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  padding-block: clamp(5rem, 11vw, 10rem);
}

.x-manifesto h2 {
  max-width: 13ch;
  color: var(--x-white);
  font-family: var(--font-display);
  font-size: clamp(3.3rem, 8.4vw, 8.5rem);
  font-weight: 560;
  line-height: 0.88;
}

.x-manifesto p {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.x-manifesto .x-button {
  justify-self: start;
  border-color: var(--x-lime);
  background: var(--x-lime);
  color: var(--x-ink) !important;
}

/* Redesigned existing inner pages --------------------------------------- */

.as-experience .as-page-hero {
  min-height: min(48rem, 86svh);
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(10rem, 20vh, 14rem) 0 clamp(4.5rem, 9vw, 8rem);
  background:
    radial-gradient(
      circle at 86% 30%,
      rgba(184, 172, 246, 0.55),
      transparent 28%
    ),
    radial-gradient(
      circle at 72% 4%,
      rgba(217, 244, 109, 0.26),
      transparent 18%
    ),
    var(--x-paper);
}

.as-experience .as-page-hero::after {
  position: absolute;
  right: 5vw;
  bottom: -10rem;
  width: min(45vw, 38rem);
  aspect-ratio: 1;
  border: 1px solid var(--x-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 5rem rgba(255, 255, 255, 0.08);
  content: "";
}

.as-experience .as-page-hero__geo {
  display: none;
}

.as-experience .as-page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 88rem;
}

.as-experience .as-page-hero h1 {
  max-width: 11ch;
  margin-top: 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(3.9rem, 9vw, 8.6rem);
  font-weight: 560;
  line-height: 0.86;
}

.as-experience .as-page-hero__lede {
  max-width: 42rem;
  margin-top: 1.8rem;
  color: var(--x-muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.as-experience .as-eyebrow,
.as-experience .as-feature__label,
.as-experience .as-label {
  color: var(--x-violet);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.as-experience .as-eyebrow--flag {
  width: auto;
  display: inline-flex;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--x-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.as-experience .as-section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.as-experience .as-section--tint {
  background: var(--x-white);
}

.as-experience .as-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 6vw, 6rem);
  font-weight: 560;
  line-height: 0.92;
}

.as-experience .as-section-head__lede,
.as-experience .as-prose,
.as-experience .as-card__text,
.as-experience .as-feature__text,
.as-experience .as-numitem__text {
  color: var(--x-muted);
}

.as-experience .as-card,
.as-experience .as-feature,
.as-experience .as-mini-card,
.as-experience .as-form-card,
.as-experience .as-value,
.as-experience .as-stage {
  border: 1px solid var(--x-line);
  border-radius: var(--x-radius);
  background: var(--x-white);
  box-shadow: none;
}

.as-experience .as-card {
  min-height: 15rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  transition:
    transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 250ms ease;
}

.as-experience .as-card:hover {
  transform: translateY(-0.4rem);
  box-shadow: var(--x-shadow);
}

.as-experience .as-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 580;
}

.as-experience .as-ink-band,
.as-experience .as-footer {
  background: var(--x-ink);
}

.as-experience .as-feature {
  overflow: hidden;
}

.as-experience .as-feature__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 560;
}

.as-experience .as-btn {
  min-height: 3.2rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.as-experience .as-btn:hover {
  transform: translateY(-2px);
}

.as-experience .as-btn--ghost {
  border-color: var(--x-line);
  background: transparent;
}

.as-experience .as-form-card {
  padding: clamp(1.4rem, 4vw, 3.2rem);
  box-shadow: var(--x-shadow);
}

.as-experience .as-field input,
.as-experience .as-field select,
.as-experience .as-field textarea {
  min-height: 3.6rem;
  border: 1px solid var(--x-line);
  border-radius: 1rem;
  background: var(--x-paper);
}

.as-experience .as-field textarea {
  min-height: 11rem;
}

.as-experience .as-field input:focus,
.as-experience .as-field select:focus,
.as-experience .as-field textarea:focus {
  border-color: var(--x-violet);
  box-shadow: 0 0 0 4px rgba(101, 82, 223, 0.12);
}

/* Footer ----------------------------------------------------------------- */

.as-experience .as-footer {
  position: relative;
  overflow: hidden;
  border: 0;
}

.as-experience .as-footer::after {
  position: absolute;
  right: -8rem;
  bottom: -18rem;
  width: 38rem;
  height: 38rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  content: "";
}

.as-experience .as-footer__top,
.as-experience .as-footer__bottom {
  position: relative;
  z-index: 1;
}

.as-experience .as-footer__statement {
  max-width: 8ch;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 560;
  line-height: 0.92;
}

.as-experience .as-footer__heading {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.as-experience .as-footer__list a {
  text-decoration: none;
}

.as-experience .as-footer__list a:hover {
  color: var(--x-lime);
}

/* Responsive ------------------------------------------------------------- */

@media (min-width: 760px) {
  .x-capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .x-capability:first-child {
    grid-column: 1 / -1;
  }

  .x-process__item {
    grid-template-columns: 5rem minmax(12rem, 0.8fr) minmax(16rem, 1fr);
    align-items: baseline;
  }

  .x-manifesto__inner {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.36fr);
    align-items: end;
  }

  .x-manifesto__aside {
    display: grid;
    gap: 1.5rem;
    justify-items: start;
  }
}

@media (min-width: 920px) {
  .x-hero__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(24rem, 1.1fr);
  }

  .x-capability-grid {
    grid-template-columns: 1.1fr 0.9fr 0.9fr;
  }

  .x-capability:first-child {
    grid-column: auto;
  }

  .x-work__card {
    grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
  }
}

@media (max-width: 1080px) {
  .as-experience .as-header {
    top: 0.65rem;
  }

  .as-experience .as-header__inner {
    width: min(calc(100% - 1.3rem), 88rem);
    min-height: 3.8rem;
  }

  .as-experience .as-header__toggle {
    display: flex;
  }

  .as-experience .as-nav {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 0;
    bottom: auto;
    left: 0;
    justify-content: flex-start;
    overflow: hidden;
    padding: 1rem;
    border: 1px solid var(--x-line);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--x-shadow);
    backdrop-filter: blur(18px);
    display: none;
    flex-direction: column;
  }

  .as-experience .as-nav.is-open {
    display: flex;
  }

  .as-experience .as-nav__list {
    width: 100%;
    flex-direction: column;
    gap: 0.25rem;
  }

  .as-experience .as-nav__link {
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    padding-inline: 1rem;
  }

  .as-experience .as-nav__cta {
    width: 100%;
    margin-top: 0.65rem;
  }

  .x-hero__copy {
    max-width: 35rem;
  }

  .x-hero__scene {
    left: 26%;
    opacity: 0.72;
  }

  .x-hero__fallback {
    left: 80%;
    width: min(70vw, 30rem);
    opacity: 0.65;
  }

  .x-hero__copy {
    padding-top: 3rem;
  }
}

@media (max-width: 900px) {
  .x-hero--home {
    min-height: auto;
    padding-bottom: 2.5rem;
  }

  .x-hero--home .x-hero__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .x-hero--home .x-hero__copy {
    max-width: 44rem;
    padding-top: 2rem;
  }

  .x-hero--home .x-hero__title {
    max-width: 10.5ch;
    font-size: clamp(4rem, 11vw, 6rem);
  }

  .x-hero__visual {
    width: min(100%, 48rem);
    height: 27rem;
    justify-self: center;
  }

  .x-hero--home .x-hero__scene {
    inset: -10% -5%;
  }
}

@media (max-width: 620px) {
  .x-container {
    width: min(calc(100% - 2rem), 88rem);
  }

  .x-hero {
    min-height: max(44rem, 100svh);
  }

  .x-hero--home {
    min-height: auto;
    padding-top: 6.7rem;
  }

  .x-hero::after {
    background-size: 3.5rem 3.5rem;
  }

  .x-hero__title {
    font-size: clamp(4rem, 21vw, 6.7rem);
  }

  .x-hero--home .x-hero__title {
    max-width: 9.5ch;
    font-size: clamp(3.4rem, 15vw, 4.8rem);
    line-height: 0.92;
  }

  .x-hero__scene {
    top: 16%;
    left: 18%;
    bottom: 12%;
    opacity: 0.52;
  }

  .x-hero__lede {
    max-width: 27rem;
  }

  .x-hero__meta {
    max-width: 22rem;
  }

  .x-hero--home .x-hero__meta {
    gap: 0.65rem 1rem;
    margin-top: 2.3rem;
  }

  .x-hero__visual {
    height: 21rem;
  }

  .x-hero--home .x-hero__scene {
    inset: -12% -18%;
  }

  .x-hero__visual-note {
    right: 4%;
    bottom: 1%;
  }

  .x-section__head h2 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .x-work__copy {
    padding: 0.75rem 0.6rem 1.2rem;
  }

  .as-experience .as-page-hero {
    min-height: 42rem;
  }

  .as-experience .as-page-hero h1 {
    font-size: clamp(3.6rem, 17vw, 6.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .as-experience *,
  .as-experience *::before,
  .as-experience *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .x-hero__scene {
    display: none;
  }
}

@media (forced-colors: active) {
  .x-button,
  .as-experience .as-nav__cta {
    border: 2px solid ButtonText;
  }
}

/* The concepts hero shows the brand mark inside a lavender orb. The shared
   lockup sprite is a crop of arrowspade-logo-original.png, which has a WHITE
   background baked into the pixels (fine inside the white nav pill, but in the
   orb it rendered as a hard-edged white square that read as a broken image).
   Swap the hero instance to the transparent SVG mark. */
.x-hero__fallback .as-brand-lockup__icon,
.as-brand-lockup__icon--hero {
  background-color: transparent;
  background-image: url("../logo/arrowspade-mark.svg");
  background-position: center;
  background-size: contain;
}
