/* ==========================================================================
   Alt Production Studios — styles.css
   Purpose: Premium, restrained, high-authority styling for the Studio arm.
   Notes:
   - No external dependencies.
   - Designed to sit on top of the cosmic canvas background.
   - Typography assumes a system font stack for now (we can add Dosis / custom later).
   - Keep motion subtle. Keep contrast high. Keep layout disciplined.
   ========================================================================== */

/* ---------- CSS Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html:focus-within {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;

  /* Type + base rendering */
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Base colours */
  color: #EAF0FF;
  background: #020610; /* True fallback if canvas fails */

  /* Prevent layout jumps */
  overflow-x: hidden;
}

/* Improve default form elements */
button, input, select, textarea {
  font: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Accessibility: visible focus */
:focus-visible {
  outline: 2px solid rgba(140, 180, 255, 0.85);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- CSS Variables (Design Tokens) ---------- */
:root {
  /* Neutrals */
  --bg-0: #020610; /* page fallback */
  --bg-1: rgba(7, 12, 24, 0.68); /* glass surface */
  --bg-2: rgba(10, 16, 34, 0.84); /* deeper panel */
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #EAF0FF;
  --text-2: rgba(234, 240, 255, 0.78);
  --text-3: rgba(234, 240, 255, 0.60);

  /* Accents (cosmic / premium) */
  --accent: rgba(74, 132, 255, 0.95);
  --accent-2: rgba(255, 56, 201, 0.88);
  --accent-3: rgba(42, 236, 225, 0.82);

  /* Shadows */
  --shadow-1: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-2: 0 18px 60px rgba(0, 0, 0, 0.55);

  /* Radii */
  --r-1: 12px;
  --r-2: 16px;
  --r-3: 22px;

  /* Spacing scale */
  --s-1: 8px;
  --s-2: 12px;
  --s-3: 16px;
  --s-4: 22px;
  --s-5: 28px;
  --s-6: 40px;
  --s-7: 56px;
  --s-8: 76px;

  /* Max widths */
  --max: 1180px;
  --max-wide: 1320px;

  /* Transitions */
  --t-fast: 140ms ease;
  --t-med: 240ms ease;
}

/* ---------- Background Canvas Support ---------- */
#cosmic-bg {
  /* Canvas is positioned by CSS in your HTML (we reinforce here) */
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;

  /* If JS doesn’t run, the background is still premium */
  background: radial-gradient(1200px 800px at 20% 10%, rgba(90,120,255,0.10), rgba(0,0,0,0) 55%),
              radial-gradient(900px 600px at 80% 30%, rgba(255,80,210,0.08), rgba(0,0,0,0) 60%),
              radial-gradient(1200px 900px at 50% 100%, rgba(60,200,255,0.07), rgba(0,0,0,0) 55%),
              linear-gradient(180deg, rgba(6,10,22,1), rgba(2,6,16,1));
}

/* Subtle readability overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.22);
}

/* Optional faint grid (OFF by default). If you want it, uncomment.
body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events:none;
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(255,255,255,0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.22) 1px, transparent 1px);
  background-size: 64px 64px;
}
*/

/* ---------- Layout Helpers ---------- */
.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.section-head {
  margin-bottom: var(--s-5);
}

.section-head h2 {
  margin: 0 0 var(--s-2) 0;
}

.section-head p {
  margin: 0;
  color: var(--text-2);
  max-width: 72ch;
}

.note {
  margin-top: var(--s-4);
  color: var(--text-3);
  max-width: 85ch;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.05rem, 3.2vw, 3.3rem);
  line-height: 1.08;
  margin: 0 0 var(--s-3) 0;
}

h2 {
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
  line-height: 1.16;
  margin: 0 0 var(--s-3) 0;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0 0 var(--s-2) 0;
}

p {
  margin: 0 0 var(--s-3) 0;
}

.lead {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 70ch;
}

.micro {
  font-size: 0.92rem;
  color: var(--text-3);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(234, 240, 255, 0.70);

  margin: 0 0 var(--s-3) 0;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: rgba(140, 180, 255, 0.55);
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  left: 10px;
  top: 10px;
  transform: translateY(-150%);
  background: rgba(12, 18, 40, 0.94);
  border: 1px solid var(--line-2);
  padding: 10px 14px;
  border-radius: 12px;
  z-index: 9999;
  box-shadow: var(--shadow-1);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  background: rgba(3, 6, 14, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  width: 100%;
  padding: 14px 20px;
}

.brand img {
  display: block;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  animation: none;
}

@keyframes logoPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.14),
      0 0 18px rgba(255, 56, 201, 0.16),
      0 0 26px rgba(42, 236, 225, 0.12);
  }

  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.18),
      0 0 26px rgba(255, 56, 201, 0.26),
      0 0 34px rgba(42, 236, 225, 0.2);
  }
}

/* Nav list */
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  margin: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(234, 240, 255, 0.82);
  border: 1px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.nav-list a:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(234, 240, 255, 0.92);
}

.nav-list a.nav-cta {
  padding: 10px 14px;
  border: 1px solid rgba(140, 180, 255, 0.40);
  background: rgba(90, 120, 255, 0.12);
  color: rgba(234, 240, 255, 0.95);
}

.nav-list a.nav-cta:hover {
  border-color: rgba(140, 180, 255, 0.70);
  background: rgba(90, 120, 255, 0.18);
}

/* Mobile nav: simple wrap (no JS) */
@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-list {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px 16px;
  border-radius: 14px;

  border: 1px solid transparent;
  cursor: pointer;

  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  user-select: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(36, 74, 190, 0.48), rgba(255, 56, 201, 0.24) 58%, rgba(42, 236, 225, 0.22));
  border-color: rgba(103, 149, 255, 0.55);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(255, 56, 201, 0.16),
    0 0 20px rgba(42, 236, 225, 0.14);
}

.btn-primary:hover {
  border-color: rgba(140, 180, 255, 0.70);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Main Sections Spacing ---------- */
.site-main > section {
  padding: var(--s-8) 0;
}

.site-main > section.hero {
  padding-top: calc(var(--s-8) - 10px);
}

/* ---------- Hero ---------- */
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--s-7);
  align-items: center;
}

.hero-copy {
  position: relative;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin: var(--s-4) 0 var(--s-3);
}

.hero-trust .micro {
  margin: 0;
}

.hero-visual .visual-placeholder {
  border-radius: var(--r-3);
  border: 1px solid rgba(96, 148, 255, 0.3);
  background:
    radial-gradient(140% 90% at 8% 8%, rgba(255, 56, 201, 0.2), rgba(0, 0, 0, 0) 42%),
    radial-gradient(110% 80% at 90% 100%, rgba(42, 236, 225, 0.18), rgba(0, 0, 0, 0) 56%),
    linear-gradient(170deg, rgba(10, 22, 64, 0.72), rgba(4, 10, 28, 0.66));
  box-shadow: var(--shadow-1);
  padding: var(--s-6);
  text-align: center;
  color: rgba(234, 240, 255, 0.70);
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
}

/* ---------- Glass Panels (general utility for sections) ---------- */
.value,
.services,
.embedded,
.work,
.process,
.retainers,
.faq,
.contact {
  position: relative;
}

.value .container,
.services .container,
.embedded .container,
.work .container,
.process .container,
.retainers .container,
.faq .container,
.contact .container {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: clamp(22px, 3vw, 42px);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Keep hero unboxed for openness */
.hero .container {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
}

/* ---------- Service Cards ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}

.service-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: var(--s-5);
  box-shadow: none;
  transition: none;
}

.service-card p {
  color: var(--text-2);
}

.service-card ul {
  margin: var(--s-3) 0 0;
  padding-left: 18px;
  color: rgba(234, 240, 255, 0.74);
}

.service-card li {
  margin-bottom: 8px;
}

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

/* ---------- Work Grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}

.work-card a {
  display: block;
  height: 100%;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: var(--s-4);
  transition: none;
}

.work-card .thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  margin-bottom: var(--s-3);

  /* Placeholder look */
  background:
    linear-gradient(135deg, rgba(90,120,255,0.22), rgba(0,0,0,0) 55%),
    linear-gradient(180deg, rgba(255,120,220,0.10), rgba(0,0,0,0) 60%),
    rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.10);
  display: grid;
  place-items: center;
  color: rgba(234, 240, 255, 0.62);
  font-size: 0.92rem;
}

.work-card p {
  color: var(--text-2);
  margin: 0;
}

@media (max-width: 1100px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Process Steps ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}

.step {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: var(--s-5);
  box-shadow: none;
}

.step p {
  color: var(--text-2);
  margin: 0;
}

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

/* ---------- Retainers ---------- */
.retainer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}

.retainer-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: var(--s-5);
  box-shadow: none;
}

.retainer-card p {
  color: var(--text-2);
  margin: 0;
}

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

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: var(--s-3);
}

.faq-item {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: var(--s-4);
  box-shadow: none;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: rgba(234, 240, 255, 0.92);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: rgba(140, 180, 255, 0.85);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "–";
  color: rgba(255, 120, 220, 0.80);
}

.faq-item p {
  margin-top: var(--s-3);
  color: var(--text-2);
}

/* ---------- Contact Form ---------- */
.contact-form {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-4);
}

.form-row {
  display: grid;
  gap: 8px;
}

label {
  font-size: 0.92rem;
  color: rgba(234, 240, 255, 0.72);
}

input,
select,
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  color: rgba(234, 240, 255, 0.92);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(234, 240, 255, 0.45);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(140, 180, 255, 0.60);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(140, 180, 255, 0.14);
  outline: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-2);
}

.form-actions .micro {
  margin: 0;
}

/* Contact meta block */
.contact-meta {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(234, 240, 255, 0.70);
}

.contact-meta p {
  margin: 0 0 8px 0;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: var(--s-7) 0;
}

.site-footer .container {
  background: rgba(3, 6, 14, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-1);
  padding: clamp(18px, 2.6vw, 34px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-placeholder {
  color: rgba(234, 240, 255, 0.55);
}

/* ---------- Small Screen Spacing Adjustments ---------- */
@media (max-width: 680px) {
  .site-main > section {
    padding: var(--s-7) 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Cosmic background canvas (subtle, premium, non-distracting) */
#cosmic-bg{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2; /* behind everything */
  pointer-events: none;
  background: radial-gradient(1200px 860px at 16% 8%, rgba(74,132,255,0.22), rgba(0,0,0,0) 58%),
              radial-gradient(900px 620px at 82% 26%, rgba(255,56,201,0.16), rgba(0,0,0,0) 62%),
              radial-gradient(1200px 880px at 50% 98%, rgba(42,236,225,0.14), rgba(0,0,0,0) 60%),
              linear-gradient(180deg, rgba(5,9,24,1), rgba(2,6,16,1));
}

/* Optional: a faint overlay to keep text contrast clean on bright displays */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(0,0,0,0.20);
}