﻿/* ═══════════════════════════════════════════════════
   PAGES SYSTEM — Deconstructivism & Neo-Futurism
═══════════════════════════════════════════════════ */

:root {
  --neon-cyan: #bceff;
  --neon-gold: #d9c89c;
  --deep-bg: #050507;
  --card-glass: rgba(10, 10, 15, 0.6);
}

/* Background Architecture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 10% 10%, rgba(188, 239, 255, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(217, 200, 156, 0.03) 0%, transparent 40%),
    linear-gradient(rgba(188, 239, 255, 0.02) 1px, transparent 1px) 0 0 / 50px 50px,
    linear-gradient(90deg, rgba(188, 239, 255, 0.02) 1px, transparent 1px) 0 0 / 50px 50px;
  pointer-events: none;
  z-index: -1;
}

body.modal-open {
  overflow: hidden;
}

.api-verification-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.api-verification-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.api-verification-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.api-verification-card {
  position: relative;
  width: min(680px, 100%);
  padding: clamp(28px, 5vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(188, 239, 255, 0.28);
  border-radius: 30px;
  background:
    radial-gradient(circle at 84% 12%, rgba(188, 239, 255, 0.18), transparent 30%),
    radial-gradient(circle at 16% 88%, rgba(217, 200, 156, 0.14), transparent 34%),
    rgba(7, 8, 12, 0.94);
  box-shadow: 0 40px 140px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #fff;
}

.api-verification-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 10px, rgba(255, 255, 255, 0.045) 11px, transparent 13px);
  mix-blend-mode: screen;
}

.api-verification-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.api-verification-card h2 {
  position: relative;
  margin: 10px 0 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.api-verification-card p:not(.eyebrow) {
  position: relative;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.8;
}

.api-verification-links {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.api-verification-links a,
.api-verification-links span {
  padding: 11px 13px;
  border: 1px solid rgba(188, 239, 255, 0.22);
  border-radius: 999px;
  background: rgba(188, 239, 255, 0.08);
  color: #bcefff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* Common Hero Styles */
.pg-hero {
  padding-top: 180px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.pg-hero-content {
  position: relative;
  z-index: 2;
}

.pg-hero-title {
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 20px 0;
  text-transform: uppercase;
}

.pg-hero-title em {
  font-style: italic;
  font-family: "Playfair Display", serif;
  color: var(--neon-gold);
  position: relative;
}

.pg-hero-title em::after {
  content: "";
  position: absolute;
  bottom: 0.1em;
  left: -5%;
  width: 110%;
  height: 0.05em;
  background: currentColor;
  transform: skewX(-30deg);
  opacity: 0.3;
}

/* Deconstructivist Grid Elements */
.section-shell {
  position: relative;
}

.studio-manifesto-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 100px 0;
}

.studio-quote {
  position: relative;
  padding-left: 40px;
}

.studio-quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--neon-gold), transparent);
}

.studio-quote p {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
  font-family: "Inter", sans-serif;
}

.studio-quote .sq-lead {
  font-size: 28px;
  color: #fff;
  font-family: "Playfair Display", serif;
  font-style: italic;
}

/* Studio liquid logo system */
.studio-overview {
  padding: clamp(64px, 9vw, 128px) 0;
}

.studio-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  gap: clamp(42px, 7vw, 108px);
  align-items: center;
}

.studio-thesis {
  display: grid;
  gap: 22px;
}

.studio-thesis h2 {
  max-width: 820px;
}

.studio-thesis p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(247, 243, 234, 0.68);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.7;
}

.studio-liquid-mark {
  --liquid-cyan: rgba(188, 239, 255, 0.88);
  --liquid-gold: rgba(217, 200, 156, 0.88);
  --liquid-violet: rgba(157, 124, 255, 0.72);
  position: relative;
  min-height: clamp(480px, 48vw, 720px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: clamp(30px, 4vw, 58px);
  background:
    radial-gradient(circle at 24% 18%, rgba(188, 239, 255, 0.2), transparent 28%),
    radial-gradient(circle at 78% 80%, rgba(217, 200, 156, 0.17), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.025) 42%, rgba(5, 5, 7, 0.72));
  box-shadow:
    0 46px 140px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -46px 90px rgba(0, 0, 0, 0.28);
  isolation: isolate;
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}

.studio-liquid-mark::before,
.studio-liquid-mark::after {
  content: "";
  position: absolute;
  inset: -36%;
  z-index: -1;
  background:
    conic-gradient(from 120deg, transparent, rgba(188, 239, 255, 0.3), transparent, rgba(217, 200, 156, 0.24), transparent, rgba(157, 124, 255, 0.24), transparent);
  filter: blur(28px);
  opacity: 0.54;
  animation: liquidAurora 18s linear infinite;
}

.studio-liquid-mark::after {
  inset: 12%;
  border-radius: 42% 58% 46% 54% / 56% 44% 58% 42%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.13), rgba(188, 239, 255, 0.08) 34%, transparent 66%);
  filter: blur(16px);
  opacity: 0.78;
  animation: liquidMorph 9s ease-in-out infinite alternate;
}

.liquid-field,
.liquid-logo-wrap,
.liquid-system-tags {
  position: absolute;
  inset: 0;
}

.liquid-blob {
  position: absolute;
  display: block;
  width: clamp(150px, 22vw, 300px);
  aspect-ratio: 1;
  border-radius: 45% 55% 62% 38% / 52% 34% 66% 48%;
  filter: blur(2px);
  mix-blend-mode: screen;
  animation: liquidDrift 12s ease-in-out infinite alternate;
}

.liquid-blob-a {
  left: 8%;
  top: 12%;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,0.72), var(--liquid-cyan) 28%, rgba(188,239,255,0.05) 70%);
}

.liquid-blob-b {
  right: 4%;
  bottom: 14%;
  background: radial-gradient(circle at 38% 34%, rgba(255,255,255,0.6), var(--liquid-gold) 30%, rgba(217,200,156,0.04) 72%);
  animation-delay: -4s;
}

.liquid-blob-c {
  left: 42%;
  bottom: 4%;
  width: clamp(100px, 15vw, 210px);
  background: radial-gradient(circle at 36% 32%, rgba(255,255,255,0.5), var(--liquid-violet) 32%, rgba(157,124,255,0.04) 72%);
  animation-delay: -7s;
}

.liquid-orbit {
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 45% 55% 52% 48% / 48% 44% 56% 52%;
  box-shadow: 0 0 70px rgba(188, 239, 255, 0.1), inset 0 0 46px rgba(217, 200, 156, 0.06);
  animation: liquidSpin 22s linear infinite;
}

.liquid-orbit-b {
  inset: 23%;
  border-color: rgba(217, 200, 156, 0.15);
  animation-duration: 16s;
  animation-direction: reverse;
}

.liquid-logo-wrap {
  display: grid;
  place-items: center;
  z-index: 2;
}

.liquid-logo {
  width: min(66%, 420px);
  overflow: visible;
  filter: drop-shadow(0 28px 54px rgba(0, 0, 0, 0.42));
  animation: logoFloat 6s ease-in-out infinite;
}

.liquid-logo-shape {
  transform-origin: 50% 50%;
  animation: logoBlob 7s ease-in-out infinite alternate;
}

.liquid-logo-cut {
  fill: rgba(5, 5, 7, 0.86);
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.18));
}

.liquid-system-tags span {
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(5, 5, 7, 0.46);
  color: rgba(247, 243, 234, 0.78);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: rotate(calc(var(--i) * 90deg)) translateX(clamp(150px, 20vw, 246px)) rotate(calc(var(--i) * -90deg));
  animation: tagPulse 4.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.8s);
}

@keyframes liquidAurora {
  to { transform: rotate(360deg); }
}

@keyframes liquidMorph {
  0% { transform: scale(0.9) rotate(-8deg); border-radius: 42% 58% 46% 54% / 56% 44% 58% 42%; }
  100% { transform: scale(1.08) rotate(10deg); border-radius: 58% 42% 55% 45% / 42% 58% 44% 56%; }
}

@keyframes liquidDrift {
  0% { transform: translate3d(-10px, 8px, 0) scale(0.94) rotate(0deg); border-radius: 45% 55% 62% 38% / 52% 34% 66% 48%; }
  100% { transform: translate3d(28px, -24px, 0) scale(1.08) rotate(22deg); border-radius: 58% 42% 40% 60% / 38% 62% 44% 56%; }
}

@keyframes liquidSpin {
  to { transform: rotate(360deg); }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.015); }
}

@keyframes logoBlob {
  0% { transform: scale(0.985) rotate(-2deg); }
  100% { transform: scale(1.025) rotate(2deg); }
}

@keyframes tagPulse {
  0%, 100% { opacity: 0.58; filter: blur(0); }
  50% { opacity: 1; filter: blur(0.2px); }
}

@media (max-width: 980px) {
  .studio-overview-grid {
    grid-template-columns: 1fr;
  }

  .studio-liquid-mark {
    min-height: 540px;
  }
}

@media (max-width: 620px) {
  .studio-liquid-mark {
    min-height: 430px;
    border-radius: 30px;
  }

  .liquid-logo {
    width: 74%;
  }

  .liquid-system-tags span {
    transform: rotate(calc(var(--i) * 90deg)) translateX(clamp(112px, 34vw, 152px)) rotate(calc(var(--i) * -90deg));
    font-size: 10px;
    padding: 8px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio-liquid-mark::before,
  .studio-liquid-mark::after,
  .liquid-blob,
  .liquid-orbit,
  .liquid-logo,
  .liquid-logo-shape,
  .liquid-system-tags span {
    animation: none;
  }
}

/* Neo-Futuristic Cards */
.identity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.identity-card {
  background: var(--card-glass);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(10px);
}

.identity-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--accent), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.identity-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-10px) skewX(-1deg);
}

.identity-card:hover::before {
  opacity: 0.1;
}

.id-glyph {
  font-size: 40px;
  margin-bottom: 20px;
  filter: grayscale(1) brightness(2);
}

/* API Page Specifics */
.api-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.api-gradient-text {
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.api-blueprint {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.8;
  pointer-events: none;
}

.api-code-block {
  transform: rotate(-1.5deg) translateX(20px);
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 5;
}

.api-value-text {
  position: relative;
  z-index: 6;
  transform: translateY(-20px);
}

.api-service-redesign {
  padding: clamp(58px, 8vw, 110px) 0 clamp(34px, 5vw, 72px);
}

.api-service-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(22px, 4vw, 64px);
  align-items: stretch;
  padding: clamp(24px, 4vw, 52px);
  overflow: hidden;
  border: 1px solid rgba(188, 239, 255, 0.16);
  border-radius: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(circle at 12% 0%, rgba(188, 239, 255, 0.16), transparent 30rem),
    radial-gradient(circle at 92% 100%, rgba(217, 200, 156, 0.12), transparent 34rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(6, 8, 13, 0.74);
  box-shadow: 0 34px 130px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
}

.api-service-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.api-service-copy h2 {
  max-width: 820px;
  margin: 12px 0 18px;
  font-size: clamp(34px, 4.8vw, 74px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.api-service-lede {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.62;
}

.api-flow-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: clamp(24px, 3vw, 42px);
}

.api-flow-line span {
  padding: 10px 13px;
  border: 1px solid rgba(188, 239, 255, 0.18);
  border-radius: 999px;
  background: rgba(188, 239, 255, 0.07);
  color: rgba(247, 243, 234, 0.82);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.api-flow-line i {
  width: clamp(18px, 3vw, 44px);
  height: 1px;
  background: linear-gradient(90deg, rgba(188, 239, 255, 0.16), rgba(217, 200, 156, 0.58));
}

.api-command-card {
  display: flex;
  align-items: center;
  min-width: 0;
  transform: none;
  box-shadow: none;
}

.api-command-card .terminal-window {
  width: 100%;
  margin: 0;
  border-radius: 26px;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.34);
}

.api-benefits-redesign {
  padding: clamp(34px, 6vw, 86px) 0 clamp(56px, 8vw, 120px);
}

.api-benefit-head {
  max-width: 920px;
  margin-bottom: clamp(24px, 3vw, 42px);
}

.api-benefit-grid {
  gap: 14px;
  border: 0;
  background: transparent;
}

.api-benefit-grid .api-feat {
  min-height: 250px;
  padding: clamp(24px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% 0%, rgba(188, 239, 255, 0.13), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.074), rgba(255, 255, 255, 0.022)),
    rgba(5, 7, 12, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 22px 70px rgba(0, 0, 0, 0.22);
}

.api-benefit-grid .api-feat:hover {
  background:
    radial-gradient(circle at 18% 0%, rgba(217, 200, 156, 0.16), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.086), rgba(255, 255, 255, 0.026)),
    rgba(8, 8, 13, 0.84);
}

.api-feat-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid rgba(188, 239, 255, 0.24);
  border-radius: 16px;
  background: rgba(188, 239, 255, 0.08);
  color: var(--neon-gold);
}

.api-benefit-grid .api-feat h3 {
  margin-bottom: 10px;
  font-size: clamp(21px, 2vw, 31px);
  letter-spacing: -0.035em;
}

.api-benefit-grid .api-feat p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.58;
}

@media (max-width: 980px) {
  .api-service-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .api-service-panel {
    padding: 22px;
  }

  .api-flow-line {
    align-items: stretch;
    flex-direction: column;
  }

  .api-flow-line i {
    width: 1px;
    height: 20px;
    margin-left: 18px;
  }
}

.api-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.api-feat {
  background: var(--deep-bg);
  padding: 60px 40px;
  transition: background 0.3s;
}

.api-feat:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Product Page Aesthetic */
.product-showcase {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(64px, 8vw, 110px);
}

.product-item {
  grid-column: span 6;
  position: relative;
  min-height: clamp(360px, 38vw, 620px);
  background: #111;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.product-item:nth-child(even) {
  margin-top: 40px;
}

.product-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: transform 0.8s;
}

.product-item:hover img {
  transform: scale(1.1);
  opacity: 0.8;
}

.product-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: grid;
  gap: 14px;
  padding: clamp(28px, 4vw, 54px);
  background: linear-gradient(to top, rgba(0,0,0,0.88), rgba(0,0,0,0.18), transparent);
}

.product-info h3 {
  max-width: 900px;
  font-size: clamp(30px, 4vw, 64px);
}

.product-info p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.62;
}

.token-redacted {
  display: inline-block;
  position: relative;
  color: rgba(255, 255, 255, 0.34);
  letter-spacing: 0.04em;
  text-shadow: 0 0 9px rgba(255, 255, 255, 0.38), 9px 0 12px rgba(217, 200, 156, 0.2), -7px 0 12px rgba(188, 239, 255, 0.18);
  filter: blur(0.35px);
}

.token-redacted::after {
  position: absolute;
  inset: 0.12em -0.08em;
  content: "";
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 6px, rgba(0, 0, 0, 0.44) 6px 13px),
    linear-gradient(90deg, rgba(217, 200, 156, 0.18), rgba(188, 239, 255, 0.12));
  mix-blend-mode: screen;
  opacity: 0.8;
  pointer-events: none;
}

.product-note {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(217, 200, 156, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(247, 243, 234, 0.7);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Contact Page Aesthetic */
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.contact-email {
  font-size: clamp(32px, 6vw, 80px);
  font-family: "Playfair Display", serif;
  color: var(--neon-gold);
  text-decoration: none;
  margin: 40px 0;
  position: relative;
}

.contact-email::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.contact-email:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Responsive Overrides */
@media (max-width: 968px) {
  .studio-manifesto-grid {
    grid-template-columns: 1fr;
  }
  .api-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-item {
    grid-column: span 12;
    min-height: 440px;
  }
}

@media (max-width: 640px) {
  .api-feature-grid {
    grid-template-columns: 1fr;
  }
  .product-info {
    padding: 26px;
  }
}


/* Studio migration + art direction */
.studio-home {
  padding: 76px 0;
}

.studio-home-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr) auto;
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
  padding: clamp(26px, 4vw, 44px);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)),
    radial-gradient(circle at 12% 0%, rgba(217,200,156,0.14), transparent 30rem),
    rgba(10,10,15,0.58);
}

.studio-home-card h2 {
  max-width: 720px;
  font-size: clamp(30px, 4vw, 56px);
}

.studio-home-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.studio-room-hero {
  min-height: 76vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 72% 22%, rgba(188,239,255,0.11), transparent 30rem),
    radial-gradient(circle at 18% 72%, rgba(217,200,156,0.10), transparent 28rem);
}

.studio-room-lede {
  max-width: 820px;
  color: rgba(255,255,255,0.68);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
}

.studio-overview,
.studio-method,
.studio-services,
.studio-identities {
  padding: 90px 0;
}

.studio-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
}

.studio-thesis {
  position: relative;
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025));
  box-shadow: 0 34px 120px rgba(0,0,0,0.34);
  overflow: hidden;
}

.studio-thesis::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(217,200,156,0.18), transparent 34%, rgba(188,239,255,0.10));
  mask-image: linear-gradient(black, transparent 72%);
}

.studio-thesis h2,
.studio-services-panel h2 {
  margin: 14px 0 22px;
  font-size: clamp(34px, 5vw, 74px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.studio-thesis p:not(.eyebrow),
.studio-services-panel span,
.studio-method-card p {
  color: rgba(255,255,255,0.66);
  line-height: 1.72;
}

.studio-orbit {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(217,200,156,0.18), transparent 17%),
    radial-gradient(circle, transparent 47%, rgba(188,239,255,0.08) 48%, transparent 49%),
    rgba(255,255,255,0.025);
}

.orbit-core {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 1px solid rgba(217,200,156,0.38);
  color: var(--champagne);
  font-family: "Playfair Display", serif;
  font-size: 46px;
  box-shadow: 0 0 70px rgba(217,200,156,0.12);
}

.studio-orbit span {
  position: absolute;
  transform: rotate(calc(var(--i) * 90deg)) translateY(-178px) rotate(calc(var(--i) * -90deg));
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 999px;
  background: rgba(5,5,7,0.72);
  color: rgba(255,255,255,0.76);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.studio-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.studio-method-card,
.studio-services-panel {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 90px rgba(0,0,0,0.28);
}

.studio-method-card {
  min-height: 300px;
  padding: clamp(26px, 4vw, 42px);
  border-radius: 28px;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.studio-method-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217,200,156,0.32);
  background: rgba(255,255,255,0.065);
}

.studio-method-card span {
  color: var(--champagne);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.studio-method-card h3 {
  margin: 42px 0 16px;
  font-size: clamp(26px, 3vw, 38px);
}

.studio-services-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(30px, 5vw, 64px);
  border-radius: 34px;
  background:
    linear-gradient(115deg, rgba(217,200,156,0.12), transparent 42%),
    rgba(255,255,255,0.04);
}

.service-list {
  display: grid;
  gap: 14px;
}

.service-list article {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  background: rgba(0,0,0,0.18);
}

.service-list strong {
  color: #fff;
  font-size: 18px;
}

@media (max-width: 940px) {
  .studio-home-card,
  .studio-overview-grid,
  .studio-services-panel,
  .studio-method-grid {
    grid-template-columns: 1fr;
  }

  .studio-orbit {
    min-height: 340px;
  }

  .studio-orbit span {
    transform: rotate(calc(var(--i) * 90deg)) translateY(-142px) rotate(calc(var(--i) * -90deg));
  }
}

@media (max-width: 560px) {
  .studio-home,
  .studio-overview,
  .studio-method,
  .studio-services,
  .studio-identities {
    padding: 64px 0;
  }

  .studio-orbit {
    border-radius: 32px;
  }

  .studio-orbit span {
    position: static;
    transform: none;
    margin: 5px;
  }
}


/* Codex API purchase page refinement */
.api-hero-offer {
  display: inline-grid;
  gap: 8px;
  margin-top: 30px;
  padding: 22px 28px;
  border: 1px solid rgba(217, 200, 156, 0.34);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(217,200,156,0.14), rgba(188,239,255,0.06));
  box-shadow: 0 24px 80px rgba(0,0,0,0.32);
  backdrop-filter: blur(18px);
}

.api-hero-offer span {
  color: rgba(255,255,255,0.58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.api-hero-offer strong {
  color: var(--neon-gold);
  font-size: clamp(36px, 5vw, 66px);
  line-height: 0.95;
}

.api-hero-offer p,
.codex-plan-value {
  color: rgba(255,255,255,0.72);
}

.codex-pricing-grid {
  grid-template-columns: minmax(320px, 0.95fr) minmax(300px, 1.05fr);
}

.codex-plan {
  position: relative;
  overflow: hidden;
}

.codex-plan::after {
  content: "CODEX CREDIT";
  position: absolute;
  right: -28px;
  top: 28px;
  padding: 10px 42px;
  transform: rotate(14deg);
  border: 1px solid rgba(188,239,255,0.24);
  color: rgba(188,239,255,0.8);
  background: rgba(0,0,0,0.28);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.codex-steps ol {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 24px 0 30px;
  list-style: none;
}

.codex-steps li {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
}

.codex-steps li span {
  color: rgba(255,255,255,0.62);
  line-height: 1.55;
}

@media (max-width: 968px) {
  .codex-pricing-grid {
    grid-template-columns: 1fr;
  }
}


/* Six-tier Codex plan layout */
.codex-six-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.codex-six-grid .api-plan {
  min-height: 430px;
}

.codex-flow-card {
  margin-top: 22px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(18px);
}

.codex-flow-card .secondary-button {
  margin-top: 8px;
}

@media (max-width: 1100px) {
  .codex-six-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .codex-six-grid {
    grid-template-columns: 1fr;
  }
}

/* Hero-first six tier layout: show all packages immediately on API.HTML */
.codex-transfer-hero {
  min-height: 100vh;
  padding-top: 128px;
  padding-bottom: 42px;
  align-items: flex-start;
}

.codex-transfer-hero .pg-hero-content {
  width: min(1760px, calc(100% - clamp(24px, 4vw, 80px)));
}

.codex-transfer-hero .api-title {
  max-width: 1160px;
  font-size: clamp(42px, 6vw, 104px);
}

.codex-transfer-hero .api-hero-sub {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.55;
}

.api-hero-offer.codex-hero-plans {
  display: grid;
  width: 100%;
  gap: 18px;
  margin-top: clamp(24px, 3vw, 38px);
  padding: clamp(20px, 2.6vw, 34px);
  border-color: rgba(188, 239, 255, 0.24);
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 0%, rgba(188, 239, 255, 0.2), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(217, 200, 156, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.032)),
    rgba(5, 7, 12, 0.72);
  box-shadow: 0 34px 130px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.codex-hero-plans-head {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 14px 20px;
  align-items: end;
}

.codex-hero-plans-head p {
  align-self: center;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.codex-hero-plan-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.codex-mini-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 228px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background:
    radial-gradient(circle at 25% 0%, rgba(188, 239, 255, 0.14), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.026)),
    rgba(6, 8, 13, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 18px 62px rgba(0, 0, 0, 0.28);
}

.codex-mini-plan::before {
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(188, 239, 255, 0.28);
  border-radius: 14px;
  background: rgba(188, 239, 255, 0.08);
  color: #fff;
  content: "✦";
  font-size: 16px;
}

.codex-mini-plan:nth-child(2)::before { content: "◇"; }
.codex-mini-plan:nth-child(3)::before { content: "◆"; color: var(--neon-gold); border-color: rgba(217, 200, 156, 0.45); }
.codex-mini-plan:nth-child(4)::before { content: "⬡"; }
.codex-mini-plan:nth-child(5)::before { content: "✧"; }
.codex-mini-plan:nth-child(6)::before { content: "✺"; color: var(--neon-gold); border-color: rgba(217, 200, 156, 0.45); }

.codex-mini-plan.is-featured {
  border-color: rgba(217, 200, 156, 0.48);
  background:
    radial-gradient(circle at 24% 0%, rgba(217, 200, 156, 0.22), transparent 38%),
    radial-gradient(circle at 90% 8%, rgba(188, 239, 255, 0.12), transparent 34%),
    rgba(10, 8, 13, 0.9);
}

.codex-mini-plan > span {
  color: rgba(188, 239, 255, 0.88);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.codex-mini-plan div {
  display: flex;
  gap: 7px;
  align-items: end;
  margin: 14px 0 10px;
}

.codex-mini-plan strong {
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 2.4vw, 42px);
  line-height: 0.88;
  letter-spacing: -0.05em;
}

.codex-mini-plan em {
  color: rgba(217, 200, 156, 0.86);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.codex-mini-plan p {
  min-height: 42px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.35;
}

.codex-mini-plan button {
  display: inline-flex;
  justify-content: center;
  margin-top: auto;
  padding: 10px 12px;
  border: 1px solid rgba(188, 239, 255, 0.22);
  border-radius: 999px;
  background: rgba(188, 239, 255, 0.075);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
}

.codex-mini-plan.is-featured button {
  border-color: rgba(217, 200, 156, 0.46);
  background: linear-gradient(135deg, rgba(217, 200, 156, 0.22), rgba(188, 239, 255, 0.08));
}

.api-pricing-spotlight,
.codex-art-panel {
  display: none !important;
}

@media (max-width: 1280px) {
  .codex-transfer-hero { min-height: auto; }
  .codex-hero-plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .codex-transfer-hero { padding-top: 112px; }
  .codex-hero-plans-head { grid-template-columns: 1fr; align-items: start; }
  .codex-hero-plan-grid { grid-template-columns: 1fr; }
  .codex-mini-plan { min-height: auto; }
}

/* ETH smart contract checkout page */
.eth-payment-hero {
  min-height: 100vh;
  padding-top: 150px;
  display: flex;
  align-items: center;
}

.eth-payment-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 0.8fr);
  gap: clamp(34px, 5vw, 90px);
  align-items: center;
}

.eth-payment-copy .pg-hero-title {
  max-width: 900px;
  font-size: clamp(48px, 7vw, 112px);
}

.eth-payment-lede {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.6;
}

.eth-selected-plan {
  display: grid;
  width: min(520px, 100%);
  gap: 8px;
  margin-top: 30px;
  padding: 24px;
  border: 1px solid rgba(217, 200, 156, 0.34);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(217, 200, 156, 0.14), rgba(188, 239, 255, 0.06));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.eth-selected-plan span {
  color: rgba(188, 239, 255, 0.88);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eth-selected-plan strong {
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(48px, 5vw, 78px);
  line-height: 0.9;
}

.eth-selected-plan p {
  color: rgba(255, 255, 255, 0.72);
}

.eth-contract-card {
  position: relative;
  display: grid;
  gap: 22px;
  padding: clamp(26px, 3vw, 42px);
  border: 1px solid rgba(188, 239, 255, 0.2);
  border-radius: 34px;
  background:
    radial-gradient(circle at 15% 0%, rgba(188, 239, 255, 0.18), transparent 35%),
    radial-gradient(circle at 90% 10%, rgba(217, 200, 156, 0.15), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.026)),
    rgba(5, 7, 12, 0.78);
  box-shadow: 0 42px 140px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(24px) saturate(138%);
}

.eth-contract-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.eth-contract-grid div,
.eth-address-box,
.eth-payment-steps li {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.eth-contract-grid div {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.eth-contract-grid small,
.eth-address-box small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eth-contract-grid strong {
  color: #fff;
}

.eth-address-box {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.eth-address-box code {
  overflow-wrap: anywhere;
  color: rgba(188, 239, 255, 0.94);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

.eth-copy-button {
  width: fit-content;
}

.eth-payment-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eth-payment-steps li {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.eth-payment-steps span,
.eth-note {
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.5;
}

.eth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 980px) {
  .eth-payment-shell,
  .eth-contract-grid {
    grid-template-columns: 1fr;
  }

  .eth-payment-hero {
    padding-top: 128px;
  }
}

/* Studio 420 cosmos and principles upgrade */
.studio-cosmos {
  isolation: isolate;
  min-height: 500px;
  overflow: hidden;
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 50%, rgba(217, 200, 156, 0.22), transparent 16%),
    radial-gradient(circle at 24% 18%, rgba(188, 239, 255, 0.15), transparent 24%),
    radial-gradient(circle at 82% 76%, rgba(157, 124, 255, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.018)),
    rgba(5, 7, 12, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 40px 130px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(20px) saturate(130%);
}

.studio-cosmos::before,
.studio-cosmos::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.studio-cosmos::before {
  inset: 24px;
  border: 1px solid rgba(188, 239, 255, 0.12);
  border-radius: 36px;
  background:
    linear-gradient(90deg, rgba(188, 239, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(188, 239, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 72%);
}

.studio-cosmos::after {
  width: 120%;
  height: 1px;
  left: -10%;
  top: 50%;
  background: linear-gradient(90deg, transparent, rgba(217, 200, 156, 0.64), rgba(188, 239, 255, 0.4), transparent);
  transform: rotate(-18deg);
  box-shadow: 0 0 32px rgba(188, 239, 255, 0.22);
}

.cosmos-ring {
  position: absolute;
  inset: 50%;
  width: var(--size);
  aspect-ratio: 1;
  border: 1px solid var(--ring-color);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(var(--tilt));
  box-shadow: inset 0 0 40px rgba(188, 239, 255, 0.05), 0 0 50px rgba(217, 200, 156, 0.04);
}

.cosmos-ring-1 { --size: 76%; --tilt: 0deg; --ring-color: rgba(217, 200, 156, 0.22); }
.cosmos-ring-2 { --size: 58%; --tilt: 32deg; --ring-color: rgba(188, 239, 255, 0.18); }
.cosmos-ring-3 { --size: 88%; --tilt: -28deg; --ring-color: rgba(157, 124, 255, 0.14); }

.studio-cosmos .orbit-core {
  position: relative;
  z-index: 3;
  width: 150px;
  height: 150px;
  border-color: rgba(217, 200, 156, 0.56);
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(145deg, rgba(217, 200, 156, 0.16), rgba(188, 239, 255, 0.06)),
    rgba(4, 5, 8, 0.92);
  color: #fff;
  text-shadow: 0 0 28px rgba(217, 200, 156, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 90px rgba(217, 200, 156, 0.2), 0 0 160px rgba(188, 239, 255, 0.08);
}

.studio-cosmos span {
  z-index: 4;
  border-color: rgba(188, 239, 255, 0.22);
  background: rgba(5, 7, 12, 0.76);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cosmos-star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  width: calc(7px * var(--s));
  height: calc(7px * var(--s));
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 18px rgba(188, 239, 255, 0.88), 0 0 42px rgba(217, 200, 156, 0.28);
}

.cosmos-path {
  position: absolute;
  z-index: 1;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.13);
  transform: rotate(18deg);
}

.studio-principles {
  padding: 90px 0;
}

.studio-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.studio-principle-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 0%, rgba(217, 200, 156, 0.15), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.026)),
    rgba(5, 7, 12, 0.62);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.studio-principle-card::after {
  position: absolute;
  right: -24px;
  bottom: -36px;
  color: rgba(188, 239, 255, 0.08);
  content: "420";
  font-family: "Playfair Display", Georgia, serif;
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
}

.studio-principle-card span {
  color: var(--champagne);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.studio-principle-card h3 {
  margin: 46px 0 18px;
  font-size: clamp(26px, 3vw, 40px);
}

.studio-principle-card p {
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.72;
}

@media (max-width: 940px) {
  .studio-principles-grid {
    grid-template-columns: 1fr;
  }

  .studio-cosmos {
    min-height: 380px;
  }
}

/* API internal test notice */
.api-inner-test-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 72% 28%, rgba(217, 200, 156, 0.12), transparent 32rem),
    radial-gradient(circle at 18% 72%, rgba(188, 239, 255, 0.10), transparent 30rem);
}

.api-inner-test-card {
  max-width: 980px;
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 38px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.026)),
    rgba(5, 7, 12, 0.72);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px);
}

.api-inner-test-message {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.8;
}

.api-inner-test-message a {
  color: var(--neon-gold);
  text-decoration: none;
}

.api-inner-test-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}



/* Full-screen responsive guard: inherit global full-width layout */
.section-shell,
.pg-hero-content {
  width: calc(100% - clamp(24px, 4vw, 72px));
  max-width: none !important;
  margin-left: auto;
  margin-right: auto;
}
