/* Chilview LLC — studio design system (dark crystalline) */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Syne:wght@600;700;800&display=swap");

:root {
  --ink: #07090f;
  --ink-elevated: #0e121c;
  --panel: rgba(16, 22, 36, 0.72);
  --panel-solid: #121824;
  --text: #eef1f7;
  --muted: #9aa3b8;
  --line: rgba(255, 255, 255, 0.08);
  --gold: #e8c547;
  --gold-soft: #f5d76e;
  --cyan: #5ec8d8;
  --cyan-dim: rgba(94, 200, 216, 0.35);
  --radius: 18px;
  --max: 1120px;
  --font-display: "Syne", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.studio {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.studio a {
  color: inherit;
  text-decoration: none;
}

.studio-shell {
  position: relative;
  z-index: 1;
}

.studio-hero__copy,
.studio-section .studio-wrap > .studio-kicker,
.studio-section .studio-wrap > .studio-display,
.studio-section .studio-wrap > .studio-lead {
  text-shadow: 0 1px 18px rgba(7, 9, 15, 0.75);
}

.studio-hero__headline,
.studio-hero__sub {
  text-shadow: 0 2px 22px rgba(7, 9, 15, 0.85);
}

/* —— Atmosphere —— */
.studio-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 12% -10%, rgba(232, 197, 71, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 92% 8%, rgba(94, 200, 216, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(94, 200, 216, 0.06), transparent 55%),
    var(--ink);
}

.studio-atmosphere__grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(600px) rotateX(58deg) translateY(-12%);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 78%);
  animation: studioGridDrift 28s linear infinite;
}

.studio-atmosphere__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  animation: studioOrbFloat 18s var(--ease) infinite alternate;
}

.studio-atmosphere__orb--gold {
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  top: -8%;
  left: -6%;
  background: rgba(232, 197, 71, 0.22);
}

.studio-atmosphere__orb--cyan {
  width: min(36vw, 360px);
  height: min(36vw, 360px);
  top: 18%;
  right: -8%;
  background: rgba(94, 200, 216, 0.18);
  animation-delay: -6s;
}

.studio-atmosphere__rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.28;
  mix-blend-mode: screen;
}

.studio-atmosphere__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 30% 25%, rgba(7, 9, 15, 0.2), transparent 60%),
    linear-gradient(180deg, rgba(7, 9, 15, 0.35) 0%, rgba(7, 9, 15, 0.15) 40%, rgba(7, 9, 15, 0.45) 100%);
  pointer-events: none;
}

.studio-atmosphere__code {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.8;
  color: var(--cyan);
  white-space: pre;
  padding: 12vh 6vw;
  animation: studioCodeScroll 40s linear infinite;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

/* Home: mouse spotlight + cursor */
.studio-atmosphere__spot {
  display: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      520px circle at var(--spot-x, 50%) var(--spot-y, 30%),
      rgba(94, 200, 216, 0.16),
      rgba(232, 197, 71, 0.07) 28%,
      transparent 58%
    );
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

body[data-studio-home] .studio-atmosphere__spot {
  display: block;
}

body[data-studio-home].is-pointer-fine .studio-atmosphere__spot.is-on {
  opacity: 1;
}

.studio-cursor {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  width: 1px;
  height: 1px;
  pointer-events: none;
  mix-blend-mode: screen;
}

body[data-studio-home].is-pointer-fine .studio-cursor {
  display: block;
}

.studio-cursor__ring,
.studio-cursor__dot {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.studio-cursor__ring {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(94, 200, 216, 0.55);
  box-shadow: 0 0 18px rgba(94, 200, 216, 0.2);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.studio-cursor__dot {
  width: 5px;
  height: 5px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(232, 197, 71, 0.7);
}

body[data-studio-home].is-pointer-fine.cursor-hover .studio-cursor__ring {
  width: 64px;
  height: 64px;
  border-color: rgba(232, 197, 71, 0.7);
  background: rgba(232, 197, 71, 0.06);
}

body[data-studio-home].is-pointer-fine {
  cursor: none;
}

body[data-studio-home].is-pointer-fine a,
body[data-studio-home].is-pointer-fine button {
  cursor: none;
}

.studio-enter {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease), filter 0.85s var(--ease);
}

.studio-enter.is-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.studio-enter[data-enter="1"] {
  transition-delay: 0.05s;
}
.studio-enter[data-enter="2"] {
  transition-delay: 0.18s;
}
.studio-enter[data-enter="3"] {
  transition-delay: 0.3s;
}
.studio-enter[data-enter="4"] {
  transition-delay: 0.42s;
}

.studio-tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

.studio-magnetic {
  will-change: transform;
}

.studio-spark {
  position: fixed;
  z-index: 70;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, #fff 0%, var(--cyan) 45%, transparent 70%);
  opacity: 0.9;
  animation: studioSpark 0.7s var(--ease) forwards;
}

@keyframes studioSpark {
  to {
    opacity: 0;
    transform: translate(var(--sx), var(--sy)) scale(0.2);
  }
}

/* —— FAQ chatbot (home) —— */
.studio-chat {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  font-family: var(--font-body);
  cursor: auto;
  pointer-events: auto;
}

.studio-chat * {
  cursor: auto;
}

.studio-chat button,
.studio-chat a {
  cursor: pointer;
}

.studio-chat__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.65rem 1.05rem 0.65rem 0.9rem;
  border: 1px solid rgba(232, 197, 71, 0.35);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(232, 197, 71, 0.95), #c9a227);
  color: #14110a;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 12px 36px rgba(232, 197, 71, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  position: relative;
  z-index: 2;
}

.studio-chat__toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(232, 197, 71, 0.38);
}

.studio-chat__toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  color: #14110a;
}

.studio-chat__toggle-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.studio-chat__panel {
  width: min(360px, calc(100vw - 2rem));
  max-height: min(520px, calc(100vh - 6.5rem));
  display: none;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(12, 16, 26, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.studio-chat.is-open .studio-chat__panel {
  display: flex;
}

.studio-chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 0.95rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(232, 197, 71, 0.08), transparent);
}

.studio-chat__title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.studio-chat__mark {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  flex-shrink: 0;
}

.studio-chat__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
}

.studio-chat__sub {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.studio-chat__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  position: relative;
  z-index: 3;
  cursor: pointer;
  flex-shrink: 0;
}

.studio-chat__icon-btn svg {
  pointer-events: none;
}

.studio-chat__icon-btn:hover {
  color: var(--text);
  border-color: var(--cyan-dim);
}

.studio-chat__log {
  flex: 1;
  overflow: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.studio-chat__row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 92%;
}

.studio-chat__row--bot {
  align-self: flex-start;
}

.studio-chat__row--user {
  align-self: flex-end;
}

.studio-chat__bubble {
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.studio-chat__row--bot .studio-chat__bubble {
  background: rgba(94, 200, 216, 0.1);
  border: 1px solid rgba(94, 200, 216, 0.22);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.studio-chat__row--user .studio-chat__bubble {
  background: rgba(232, 197, 71, 0.14);
  border: 1px solid rgba(232, 197, 71, 0.3);
  color: var(--text);
  border-bottom-right-radius: 4px;
}

.studio-chat__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.studio-chat__link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
}

.studio-chat__link:hover {
  border-color: var(--cyan-dim);
  color: var(--text);
}

.studio-chat__chips {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.75rem;
  border-top: 1px solid var(--line);
  max-height: 180px;
  overflow: auto;
}

.studio-chat__chip {
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.35;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.studio-chat__chip:hover {
  border-color: rgba(232, 197, 71, 0.4);
  background: rgba(232, 197, 71, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .studio-chat__toggle:hover {
    transform: none;
  }
}

@keyframes studioGridDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 56px 56px;
  }
}

@keyframes studioOrbFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(24px, 36px, 0) scale(1.08);
  }
}

@keyframes studioCodeScroll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-18%);
  }
}

/* —— Layout —— */
.studio-wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.studio-section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.studio-section--tight {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.studio-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.studio-display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.studio-lead {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}

/* —— Nav —— */
.studio-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(7, 9, 15, 0.72);
  border-bottom: 1px solid var(--line);
}

.studio-nav__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 0.95rem 0;
}

.studio-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.studio-brand__mark {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(94, 200, 216, 0.35));
}

.studio-brand__text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.studio-brand span {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.studio-nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.studio-nav__links a {
  position: relative;
  transition: color 0.25s var(--ease);
}

.studio-nav__links a:hover,
.studio-nav__links a[aria-current="page"] {
  color: var(--text);
}

.studio-nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  border-radius: 2px;
}

/* —— Buttons —— */
.studio-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.studio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

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

.studio-btn--primary {
  background: linear-gradient(135deg, var(--gold), #c9a227);
  color: #14110a;
  box-shadow: 0 10px 36px rgba(232, 197, 71, 0.28);
}

.studio-btn--primary:hover {
  box-shadow: 0 14px 42px rgba(232, 197, 71, 0.4);
}

.studio-btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.studio-btn--ghost:hover {
  border-color: var(--cyan-dim);
  box-shadow: 0 0 0 1px var(--cyan-dim);
}

/* —— Hero —— */
.studio-hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: flex-start;
  padding: clamp(1.75rem, 4vh, 2.75rem) 0 clamp(2.5rem, 6vh, 4rem);
}

.studio-hero__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

@media (min-width: 960px) {
  .studio-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
  }
}

.studio-hero__copy {
  min-width: 0;
}


/* Hexagonal glow (hero right) */
.studio-hex {
  display: none;
  justify-content: center;
  align-items: center;
  min-height: 320px;
  pointer-events: none;
}

@media (min-width: 960px) {
  .studio-hex {
    display: flex;
  }
}

.studio-hex__stage {
  position: relative;
  width: min(340px, 100%);
  aspect-ratio: 1;
}

.studio-hex__glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  filter: blur(28px);
}

.studio-hex__glow--a {
  background: rgba(94, 200, 216, 0.28);
  animation: studioHexGlowA 6s ease-in-out infinite alternate;
}

.studio-hex__glow--b {
  inset: 22%;
  background: rgba(232, 197, 71, 0.2);
  animation: studioHexGlowB 7.5s ease-in-out infinite alternate;
}

.studio-hex__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke-linejoin: round;
}

.studio-hex__ring--outer {
  stroke: rgba(94, 200, 216, 0.55);
  stroke-width: 1.4;
  filter: drop-shadow(0 0 10px rgba(94, 200, 216, 0.35));
  animation: studioHexSpin 28s linear infinite;
}

.studio-hex__ring--mid {
  stroke: rgba(232, 197, 71, 0.45);
  stroke-width: 1.2;
  stroke-dasharray: 8 10;
  animation: studioHexSpinRev 18s linear infinite;
}

.studio-hex__ring--inner {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1;
  animation: studioHexPulse 3.8s ease-in-out infinite;
}

.studio-hex__core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42%;
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 22px rgba(94, 200, 216, 0.45));
  animation: studioHexCore 5.5s ease-in-out infinite alternate;
}

.studio-hex__spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--cyan) 55%, transparent 70%);
  opacity: 0.7;
}

.studio-hex__spark--1 {
  left: 18%;
  top: 30%;
  animation: studioHexSpark 4.2s ease-in-out infinite;
}
.studio-hex__spark--2 {
  right: 20%;
  top: 42%;
  animation: studioHexSpark 5s ease-in-out infinite 0.8s;
}
.studio-hex__spark--3 {
  left: 46%;
  bottom: 18%;
  animation: studioHexSpark 4.6s ease-in-out infinite 1.4s;
}

@keyframes studioHexSpin {
  to { transform: rotate(360deg); }
}
@keyframes studioHexSpinRev {
  to { transform: rotate(-360deg); }
}
@keyframes studioHexPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.03); }
}
@keyframes studioHexCore {
  from {
    transform: translate(-50%, -50%) scale(1);
    filter: drop-shadow(0 0 18px rgba(94, 200, 216, 0.35));
  }
  to {
    transform: translate(-50%, -52%) scale(1.06);
    filter: drop-shadow(0 0 30px rgba(232, 197, 71, 0.45));
  }
}
@keyframes studioHexGlowA {
  from { opacity: 0.45; transform: scale(0.92); }
  to { opacity: 0.9; transform: scale(1.08); }
}
@keyframes studioHexGlowB {
  from { opacity: 0.35; transform: scale(1.05); }
  to { opacity: 0.8; transform: scale(0.9); }
}
@keyframes studioHexSpark {
  0%, 100% { opacity: 0.15; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1.3); }
}

@media (prefers-reduced-motion: reduce) {
  .studio-hex__ring--outer,
  .studio-hex__ring--mid,
  .studio-hex__ring--inner,
  .studio-hex__core,
  .studio-hex__glow,
  .studio-hex__spark {
    animation: none !important;
  }
}


.studio-hero__brand {
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.02em 0.04em;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.2vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
  max-width: 100%;
}

.studio-hero__brand-c {
  width: 0.95em;
  height: 0.95em;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(94, 200, 216, 0.4));
  transform: translateY(0.01em);
}

.studio-hero__brand-text {
  background: linear-gradient(115deg, #fff 10%, var(--gold-soft) 48%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.studio-hero__headline {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.studio-hero__sub {
  margin: 1.1rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

/* —— Service / work tiles —— */
.studio-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 720px) {
  .studio-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .studio-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .studio-grid--5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 720px) and (max-width: 980px) {
  .studio-grid--5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.studio-tile {
  position: relative;
  padding: 1.35rem 1.3rem 1.45rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.studio-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(232, 197, 71, 0.08), transparent 42%, rgba(94, 200, 216, 0.06));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.studio-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 200, 216, 0.35);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.studio-tile:hover::before {
  opacity: 1;
}

.studio-tile > * {
  position: relative;
  z-index: 1;
}

.studio-tile__icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.studio-tile__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.studio-tile h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.studio-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.studio-tile--featured {
  border-color: rgba(232, 197, 71, 0.35);
  background: linear-gradient(160deg, rgba(232, 197, 71, 0.1), rgba(16, 22, 36, 0.85));
}

.studio-tile--featured .studio-tile__meta {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.studio-tile a.studio-tile-link {
  display: inline-flex;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cyan);
}

/* —— Why / split —— */
.studio-split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .studio-split {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 2.5rem;
  }
}

.studio-panel {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.studio-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.studio-panel li {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.studio-panel li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.studio-panel li strong {
  color: var(--text);
}

.studio-dot {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--cyan));
}

/* —— CTA band —— */
.studio-band {
  margin: 1rem 0 3rem;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(232, 197, 71, 0.22);
  background:
    radial-gradient(ellipse 80% 120% at 0% 50%, rgba(232, 197, 71, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 100% at 100% 50%, rgba(94, 200, 216, 0.1), transparent 50%),
    var(--panel-solid);
}

/* —— Footer —— */
.studio-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.studio-footer__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .studio-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.studio-footer h4 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text);
}

.studio-footer a {
  display: block;
  padding: 0.2rem 0;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.studio-footer a:hover {
  color: var(--text);
}

.studio-footer__legal {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
}

/* —— Extension product page extras —— */
.studio-feature-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

@media (min-width: 720px) {
  .studio-feature-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.studio-feature {
  padding: 1.15rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(16, 22, 36, 0.55);
}

.studio-feature h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.studio-feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.studio-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.studio-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.studio-chip:hover {
  border-color: var(--cyan-dim);
  color: var(--text);
}

/* —— Reveal —— */
.studio-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.studio-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.studio-reveal-delay-1 {
  transition-delay: 0.08s;
}
.studio-reveal-delay-2 {
  transition-delay: 0.16s;
}
.studio-reveal-delay-3 {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  .studio-atmosphere__grid,
  .studio-atmosphere__orb,
  .studio-atmosphere__code {
    animation: none !important;
  }

  .studio-atmosphere__rain {
    display: none !important;
  }

  .studio-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .studio-btn:hover,
  .studio-tile:hover {
    transform: none;
  }

  .studio-enter {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .studio-cursor,
  .studio-atmosphere__spot,
  .studio-spark {
    display: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

.page-fade {
  opacity: 0;
  animation: pageFadeIn 0.45s ease-out forwards;
}

@keyframes pageFadeIn {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-fade {
    opacity: 1;
    animation: none;
  }
}
