/* ============================================================
   AGENTPASS — one-page product site
   Visual language: dark canvas, bone type, honey/trust gradients
   Motif: gradient orbs & rings (identity / trust orbits)
   ============================================================ */

:root {
  --bg: #0e0c08;
  --ink: #f4f1e8;
  --muted: #8a8475;
  --line: rgba(244, 241, 232, 0.14);
  --accent-honey: #ffb300;
  --grad-honey: linear-gradient(156.75deg, #ffd24d 1.34%, #ff7a00 120.85%);
  --grad-trust: linear-gradient(156.75deg, #37c8ff 1.44%, #5b2ced 94.35%);
  --grad-ember: linear-gradient(90deg, #ff9d39, #fa5c5c 42%, #eb7d2e);
  --grad-aurora: linear-gradient(-40deg, #27249c -9.14%, #177aee 46.7%, #4a19d2 86.65%);
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-reveal: cubic-bezier(1, 0, 0.25, 0.995);
  --pad-x: 2rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Switzer", "Helvetica Neue", sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.4;
  overflow-x: hidden;
}

::selection { background-color: var(--accent-honey); color: #0e0c08; text-shadow: none; }

a { color: currentColor; text-decoration: none; }
.ttu { text-transform: uppercase; }

/* ============ Custom cursor ============ */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 3.6rem;
  height: 3.6rem;
  border: 1px solid rgba(255, 179, 0, 0.75);
  border-radius: 50%;
  pointer-events: none;
  z-index: 200;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              background-color 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
  opacity: 0;
}

.cursor.is-active { opacity: 1; }

.cursor.is-hover {
  width: 6rem;
  height: 6rem;
  background-color: rgba(255, 179, 0, 0.08);
}

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* ============ Header ============ */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 0 var(--pad-x);
  height: 7.2rem;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s var(--ease-out), border-color 0.5s var(--ease-out),
              backdrop-filter 0.5s var(--ease-out);
}

.header.is-scrolled {
  background: rgba(14, 12, 8, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.header__logo-mark {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 0.45rem solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    var(--grad-honey) border-box;
  display: inline-block;
  box-shadow: 0 0 14px rgba(255, 179, 0, 0.45);
  transition: transform 0.5s var(--ease-out);
}

.header__logo:hover .header__logo-mark { transform: rotate(180deg) scale(1.15); }

.header__nav {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  gap: 3.6rem;
}

.header__nav a {
  position: relative;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.8rem 0;
  letter-spacing: 0.01em;
}

.header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-honey);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s var(--ease-out);
}

.header__nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.header__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--grad-honey);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.btn-pill {
  position: relative;
  display: inline-block;
  overflow: hidden;
  background: var(--grad-honey);
  color: #14100a;
  border-radius: 10rem;
  padding: 1.2rem 2.4rem;
  font-size: 1.5rem;
  font-weight: 600;
  will-change: transform;
}

.btn-pill__label {
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.btn-pill__label--hover {
  position: absolute;
  inset: 1.2rem 2.4rem;
  transform: translateY(160%);
}

.btn-pill:hover .btn-pill__label { transform: translateY(-160%); }
.btn-pill:hover .btn-pill__label--hover { transform: translateY(0); }

/* ============ Layout wrapper ============ */

.content-wrapper { position: relative; }

@media (min-width: 1024px) {
  :root { --pad-x: 4.8rem; }
  .header__nav { display: flex; }
}

/* ============ Hero ============ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12rem var(--pad-x) 4rem;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__content {
  position: relative;
  max-width: 86rem;
  margin-bottom: auto;
  padding-top: 4rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.4rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(244, 241, 232, 0.75);
  border: 1px solid var(--line);
  border-radius: 10rem;
  padding: 0.9rem 1.8rem;
  margin-bottom: 4rem;
  background: rgba(14, 12, 8, 0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero__eyebrow-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent-honey);
  box-shadow: 0 0 10px rgba(255, 179, 0, 0.8);
}

.hero__title {
  position: relative;
  font-size: clamp(4rem, 5.8vw, 7.4rem);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 3.2rem;
}

.hero__title-line { display: block; overflow: visible; padding-block: 0.08em 0.5em; }

.hero__title-inner {
  display: inline-block;
  will-change: transform;
}

.hero__title-line:last-child .hero__title-inner {
  background: linear-gradient(110deg, #ffd24d 10%, #ff9a3d 55%, #f4f1e8 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__tagline {
  font-size: 1.9rem;
  line-height: 1.6;
  max-width: 58rem;
  color: rgba(244, 241, 232, 0.82);
  margin-bottom: 4.4rem;
}

.hero__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3.2rem;
}

.hero__secondary {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(244, 241, 232, 0.85);
  transition: color 0.3s var(--ease-out);
}

.hero__secondary:hover { color: var(--accent-honey); }

.hero__secondary span {
  display: inline-block;
  animation: bob 1.8s var(--ease-out) infinite;
}

.hero__bottom {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.4rem 4rem;
  border-top: 1px solid var(--line);
  padding-top: 2.8rem;
}

.hero__meta-item {
  font-size: 1.3rem;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(244, 241, 232, 0.6);
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(0.4rem); }
}

@media (min-width: 1024px) {
  .hero { padding: 14rem var(--pad-x) 5rem; }
  .hero__bottom { grid-template-columns: repeat(4, 1fr); }
}

/* ============ Shared section rhythm ============ */

.manifesto, .services, .process, .studio, .ladder {
  padding: 12rem var(--pad-x);
}

@media (min-width: 1024px) {
  .manifesto, .services, .process, .studio, .ladder {
    padding: 15rem var(--pad-x);
  }
}

.manifesto__kicker, .services__kicker, .process__kicker, .studio__kicker, .footer__kicker, .ladder__kicker {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 3.6rem;
}

/* ============ Manifesto ============ */

.manifesto__title {
  font-size: clamp(3rem, 4.8vw, 5.8rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 22ch;
  margin-bottom: 6.5rem;
}

.manifesto__body {
  display: grid;
  gap: 6rem;
  align-items: start;
}

.manifesto__body > p {
  font-size: 1.9rem;
  line-height: 1.6;
  max-width: 56rem;
  color: rgba(244, 241, 232, 0.86);
}

.manifesto__words {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: clamp(3.4rem, 4.8vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.manifesto__word { overflow: hidden; display: block; }
.manifesto__word .anim-line { display: block; padding-bottom: 0.6rem; }

.manifesto__word:nth-child(1) .anim-line {
  background: var(--grad-honey);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.manifesto__word:nth-child(2) .anim-line {
  background: var(--grad-trust);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.manifesto__word:nth-child(3) .anim-line {
  background: var(--grad-ember);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 1024px) {
  .manifesto__body { grid-template-columns: 1.2fr 1fr; gap: 8rem; }
}

/* ============ Statement ============ */

.statement {
  padding: 11rem var(--pad-x);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.statement__title {
  font-size: clamp(3rem, 5.4vw, 6.4rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-transform: none;
  max-width: 26ch;
}

@media (min-width: 1024px) {
  .statement { padding: 13rem var(--pad-x); }
}

/* ============ Services / platform ============ */

.services__header { margin-bottom: 9rem; }

.services__title, .process__title, .studio__title, .ladder__title {
  font-size: clamp(2.8rem, 4.4vw, 5.4rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 24ch;
}

.services__list {
  display: flex;
  flex-direction: column;
  gap: 9rem;
}

.service {
  display: grid;
  gap: 3.6rem;
  border-top: 1px solid var(--line);
  padding-top: 4.5rem;
}

.service__media {
  position: relative;
  aspect-ratio: 16 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  border-radius: 1.6rem;
  background:
    radial-gradient(120% 140% at 15% 0%, var(--accent-soft, rgba(255, 179, 0, 0.12)) 0%, transparent 55%),
    #14110b;
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  will-change: transform;
}

.service__media::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.6rem;
  right: 1.6rem;
  height: 2px;
  background: var(--accent-grad, var(--grad-honey));
  border-radius: 2px;
  opacity: 0.9;
}

.service__index {
  position: absolute;
  top: 2rem;
  right: 2.4rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1;
}

/* ---- mock product visuals inside panels ---- */

.mock {
  position: relative;
  width: 100%;
  max-width: 46rem;
  background: rgba(10, 9, 6, 0.72);
  border: 1px solid rgba(244, 241, 232, 0.1);
  border-radius: 1.2rem;
  padding: 2.2rem 2.4rem;
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 1.3rem;
  line-height: 1.7;
  color: rgba(244, 241, 232, 0.85);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  transform: translateZ(2rem);
}

.mock__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1.6rem;
  font-family: "Switzer", sans-serif;
  font-weight: 600;
}

.mock__chip {
  font-size: 1rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 1rem;
  border-radius: 10rem;
  border: 1px solid rgba(244, 241, 232, 0.2);
  color: rgba(244, 241, 232, 0.7);
  white-space: nowrap;
}

.mock__chip--ok {
  border-color: rgba(80, 200, 120, 0.5);
  color: #6fdc96;
  background: rgba(80, 200, 120, 0.08);
}

.mock__chip--live {
  border-color: rgba(255, 179, 0, 0.5);
  color: var(--accent-honey);
  background: rgba(255, 179, 0, 0.08);
}

.mock-cert__id {
  font-size: 1.45rem;
  color: #ffd24d;
  margin-bottom: 1.6rem;
  word-break: break-all;
}

.mock-cert__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.6rem;
  font-size: 1.25rem;
}

.mock-cert__grid em {
  display: block;
  font-style: normal;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-family: "Switzer", sans-serif;
}

.mock-cert__fp {
  font-size: 1.15rem;
  color: var(--muted);
  border-top: 1px solid rgba(244, 241, 232, 0.1);
  padding-top: 1.3rem;
}

.mock-code pre {
  font-family: inherit;
  font-size: 1.3rem;
  white-space: pre;
  overflow: hidden;
  color: rgba(244, 241, 232, 0.85);
}

.mock-code pre i {
  font-style: normal;
  color: #8ecbff;
}

.mock-ladder__row {
  display: grid;
  grid-template-columns: 2.6rem 1fr 6.4rem;
  gap: 1.4rem;
  align-items: center;
  padding: 0.55rem 0;
  color: rgba(244, 241, 232, 0.65);
}

.mock-ladder__row:last-child { padding-bottom: 0; }

.mock-ladder__row > span:last-child { text-align: right; }

.mock-ladder__bar {
  height: 0.5rem;
  background: rgba(244, 241, 232, 0.08);
  border-radius: 0.5rem;
  overflow: hidden;
}

.mock-ladder__bar i {
  display: block;
  height: 100%;
  background: rgba(244, 241, 232, 0.25);
  border-radius: 0.5rem;
}

.mock-ladder__row.is-current { color: var(--ink); }

.mock-ladder__row.is-current .mock-ladder__bar i {
  background: var(--grad-honey);
  box-shadow: 0 0 12px rgba(255, 179, 0, 0.5);
}

.mock-ladder__row.is-dim { opacity: 0.45; }

.mock-log p { padding: 0.35rem 0; }

.mock-log p::before {
  content: "›";
  color: var(--muted);
  margin-right: 1rem;
}

.mock-log .is-warn { color: #ffc14d; }
.mock-log .is-alert { color: #ff7a66; }

.service__name {
  font-size: clamp(2.6rem, 3.4vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 2.2rem;
}

.service__desc {
  font-size: 1.7rem;
  line-height: 1.6;
  max-width: 50rem;
  margin-bottom: 2.6rem;
  color: rgba(244, 241, 232, 0.86);
}

.service__tags {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

@media (min-width: 1024px) {
  .service {
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
  }
  .service:nth-child(even) .service__media { order: 2; }
}

/* ============ Gradient overlay reveal ============ */

.gradient-overlay { overflow: hidden; position: relative; }

.gradient-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: transform 1s var(--ease-reveal);
  z-index: 2;
  background: var(--bg);
}

.gradient-overlay.is-visible::after {
  transform: translateY(calc(100% + 0.1rem));
}

.gradient-overlay--honey { --accent-grad: var(--grad-honey); --accent-soft: rgba(255, 179, 0, 0.12); }
.gradient-overlay--trust { --accent-grad: var(--grad-trust); --accent-soft: rgba(85, 120, 255, 0.13); }
.gradient-overlay--ember { --accent-grad: var(--grad-ember); --accent-soft: rgba(255, 110, 70, 0.12); }
.gradient-overlay--aurora { --accent-grad: var(--grad-aurora); --accent-soft: rgba(70, 95, 235, 0.14); }

/* ============ Trust ladder ============ */

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

.ladder__header { margin-bottom: 8rem; }

.ladder__intro {
  font-size: 1.9rem;
  line-height: 1.6;
  max-width: 56rem;
  margin-top: 4rem;
  color: rgba(244, 241, 232, 0.86);
}

.ladder__table { display: flex; flex-direction: column; }

.ladder__row {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1fr 1fr;
  gap: 2rem;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 3rem 1.6rem;
  font-size: 1.7rem;
  border-radius: 0.4rem;
  transition: background-color 0.4s var(--ease-out);
}

.ladder__row:not(.ladder__row--head):hover {
  background: rgba(255, 196, 0, 0.05);
}

.ladder__level {
  font-size: clamp(2rem, 2.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: transform 0.4s var(--ease-out);
}

.ladder__row:not(.ladder__row--head):hover .ladder__level {
  transform: translateX(0.8rem);
}

.ladder__row--head {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-top: none;
  padding-bottom: 1.8rem;
}

.ladder__level em {
  font-style: normal;
  font-size: 0.55em;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 0.6em;
}

.ladder__score {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-variant-numeric: tabular-nums;
}

.ladder__bar {
  display: block;
  height: 0.5rem;
  background: rgba(244, 241, 232, 0.10);
  border-radius: 0.5rem;
  overflow: hidden;
}

.ladder__bar-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--grad-honey);
  border-radius: 0.5rem;
  transform: scaleX(0);
  transform-origin: left center;
}

.ladder__row:nth-child(6) .ladder__bar-fill { background: var(--grad-trust); }

@media (max-width: 700px) {
  .ladder__row { grid-template-columns: 1.4fr 1fr 1fr; }
  .ladder__row > :nth-child(2) { display: none; }
  .ladder__row--head > :nth-child(2) { display: none; }
}

/* ============ Stats ============ */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.stats__item {
  padding: 5.5rem var(--pad-x);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  transition: background-color 0.4s var(--ease-out);
}

.stats__item:hover { background: rgba(255, 196, 0, 0.04); }

.stats__item:nth-child(odd) { border-right: 1px solid var(--line); }

.stats__value {
  font-size: clamp(5rem, 8vw, 10rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stats__label {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.45;
  color: var(--muted);
}

@media (min-width: 1024px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats__item { border-right: 1px solid var(--line); padding: 6.5rem 3.4rem; }
  .stats__item:last-child { border-right: none; }
}

/* ============ Process ============ */

.process__header { margin-bottom: 9rem; }

.process__intro {
  font-size: 1.9rem;
  line-height: 1.6;
  max-width: 56rem;
  margin-top: 4rem;
  color: rgba(244, 241, 232, 0.86);
}

.process__steps {
  list-style: none;
  display: grid;
  gap: 0;
  counter-reset: step;
}

.process__step {
  border-top: 1px solid var(--line);
  padding: 4.5rem 1.2rem;
  display: grid;
  gap: 1.8rem;
  transition: background-color 0.4s var(--ease-out);
}

.process__step:hover { background: rgba(244, 241, 232, 0.025); }

.process__step-num {
  font-size: 1.4rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.process__step-title {
  font-size: clamp(2.8rem, 4vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.process__step-desc {
  font-size: 1.7rem;
  line-height: 1.6;
  max-width: 52rem;
  color: rgba(244, 241, 232, 0.86);
}

@media (min-width: 1024px) {
  .process__step { grid-template-columns: 10rem 1fr 1.4fr; align-items: baseline; gap: 4rem; }
}

/* ============ Marquee ============ */

.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.2rem 0;
  white-space: nowrap;
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12rem;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}

.marquee__track {
  display: inline-flex;
  will-change: transform;
}

.marquee__text {
  font-size: 1.35rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(244, 241, 232, 0.55);
}

.marquee__text i {
  font-style: normal;
  color: var(--accent-honey);
  padding: 0 2.4rem;
}

/* ============ Standards cards ============ */

.studio__grid {
  display: grid;
  gap: 2.4rem;
  margin-top: 7.5rem;
}

.studio__card {
  position: relative;
  padding: 3.4rem 3rem 3.8rem;
  color: var(--ink);
  min-height: 28rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.6rem;
  border-radius: 1.6rem;
  background:
    radial-gradient(130% 120% at 20% 0%, var(--accent-soft, rgba(255, 179, 0, 0.1)) 0%, transparent 55%),
    #14110b;
  border: 1px solid var(--line);
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out), border-color 0.55s var(--ease-out);
}

.studio__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.6rem;
  right: 1.6rem;
  height: 2px;
  background: var(--accent-grad, var(--grad-honey));
  border-radius: 2px;
  opacity: 0.9;
}

.studio__card:hover {
  transform: translateY(-0.8rem);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5);
  border-color: rgba(244, 241, 232, 0.25);
}

.studio__card-title {
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.studio__card-desc {
  font-size: 1.55rem;
  line-height: 1.6;
  color: rgba(244, 241, 232, 0.78);
}

@media (min-width: 1024px) {
  .studio__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============ Integrate ============ */

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

.integrate__intro {
  font-size: 1.9rem;
  line-height: 1.6;
  max-width: 58rem;
  margin-top: 4rem;
  color: rgba(244, 241, 232, 0.86);
}

.integrate__code {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 5.5rem;
}

.integrate__code .mock { max-width: 46rem; }

.integrate__code-note {
  font-size: 1.6rem;
  line-height: 1.6;
  max-width: 48rem;
  color: rgba(244, 241, 232, 0.7);
}

.integrate__grid { margin-top: 6rem; }

.integrate__sdks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 6rem;
  border-top: 1px solid var(--line);
  padding-top: 3.6rem;
}

.integrate__sdk {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.2rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(244, 241, 232, 0.03);
}

.integrate__sdk span {
  font-size: 1.4rem;
  font-weight: 600;
}

.integrate__sdk code {
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 1.3rem;
  color: var(--accent-honey);
}

.integrate__close {
  margin-top: 6rem;
  font-size: 1.8rem;
  line-height: 1.7;
  max-width: 62rem;
  color: rgba(244, 241, 232, 0.78);
}

.integrate__close strong {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: var(--grad-honey);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 900px) {
  .integrate__sdks { grid-template-columns: repeat(2, 1fr); }
}

/* ============ Footer (inverted: light on dark site) ============ */

.footer {
  background: var(--ink);
  color: #14110a;
  padding: 13rem var(--pad-x) 4.5rem;
  margin-top: 5rem;
}

.footer__kicker { color: rgba(20, 17, 10, 0.5); }

.footer__title {
  font-size: clamp(4rem, 6.6vw, 8.4rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: none;
  margin-bottom: 5rem;
  max-width: 18ch;
}

.footer__email {
  display: inline-block;
  font-size: clamp(2.2rem, 3.4vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  background: var(--grad-ember);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.3s var(--ease-out);
  will-change: transform;
}

.footer__email:hover { opacity: 0.7; }

.footer__links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem 3rem;
  margin-top: 9rem;
  padding-top: 4.5rem;
  border-top: 1px solid rgba(20, 17, 10, 0.14);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.footer__col h3 {
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(20, 17, 10, 0.45);
  margin-bottom: 0.8rem;
}

.footer__col a {
  font-size: 1.5rem;
  font-weight: 500;
  color: rgba(20, 17, 10, 0.82);
  width: fit-content;
  transition: color 0.3s var(--ease-out);
}

.footer__col a:hover { color: #b45a00; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin-top: 7rem;
  padding-top: 3.2rem;
  border-top: 1px solid rgba(20, 17, 10, 0.18);
}

.footer__nav, .footer__socials {
  display: flex;
  gap: 3rem;
  font-size: 1.5rem;
}

.footer__nav a, .footer__socials a {
  transition: opacity 0.3s var(--ease-out);
}

.footer__nav a:hover, .footer__socials a:hover { opacity: 0.5; }

@media (min-width: 1024px) {
  .footer__links { grid-template-columns: repeat(4, 1fr); }
}

.footer__legal {
  font-size: 1.3rem;
  color: rgba(20, 17, 10, 0.45);
}

@media (min-width: 1024px) {
  .footer { padding: 15rem var(--pad-x) 4.5rem; }
}

/* ============ Animation primitives ============ */

.anim-line-wrap { overflow: hidden; display: block; }

.split-line { display: block; overflow: hidden; padding-bottom: 0.2rem; }
.split-line__inner { display: block; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cursor { display: none; }
}

/* ============ Training callout (hero, top right) ============ */

.training-card {
  position: absolute;
  top: 11rem;
  right: var(--pad-x);
  z-index: 3;
  width: 30rem;
  padding: 2.4rem 2.4rem 2.2rem;
  border-radius: 1.6rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(130% 120% at 20% 0%, rgba(255, 179, 0, 0.12) 0%, transparent 55%),
    rgba(14, 12, 8, 0.66);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s var(--ease-out), border-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  display: none;
}

.training-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.6rem;
  right: 1.6rem;
  height: 2px;
  background: var(--grad-honey);
  border-radius: 2px;
  opacity: 0.9;
}

.training-card:hover {
  transform: translateY(-0.5rem);
  border-color: rgba(255, 179, 0, 0.45);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
}

.training-card__kicker {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.training-card__title {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.training-card__desc {
  font-size: 1.4rem;
  line-height: 1.55;
  color: rgba(244, 241, 232, 0.72);
  margin-bottom: 1.6rem;
}

.training-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.4rem;
  font-weight: 600;
  background: var(--grad-honey);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.3s var(--ease-out);
}

.training-card__link:hover { opacity: 0.75; }

@media (min-width: 1180px) {
  .training-card { display: block; }
}
