/*
Theme Name: Oo Studios Production
Theme URI: https://oostudiosproduction.com
Author: Oo Studios Production
Description: Animated single-page WordPress theme for a mobile gaming studio.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: oo-studios-production
*/

:root {
  --bg: #06080c;
  --panel: #10151d;
  --text: #f7f8fb;
  --muted: #aab2c0;
  --line: rgba(255, 255, 255, 0.14);
  --yellow: #ffe100;
  --cyan: #00e6ff;
  --red: #ff2a2a;
  --green: #9dff3b;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", Inter, system-ui, sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(135deg, rgba(0, 230, 255, 0.12), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(255, 225, 0, 0.12), transparent 24%),
    linear-gradient(#06080c, #111723 52%, #06080c);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: fixed;
  inset: 18px clamp(16px, 4vw, 56px) auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(6, 8, 12, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-logo {
  width: 104px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(32, 210, 100, 0.32));
}

.nav-links {
  display: flex;
  gap: 22px;
  color: rgba(255, 255, 255, 0.74);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
}

.nav-action,
.primary-btn,
.secondary-btn,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  font: inherit;
  font-weight: 950;
  text-transform: uppercase;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transition: transform 180ms ease, filter 180ms ease;
}

.nav-action,
.primary-btn,
.contact-form button {
  background: var(--yellow);
  color: #090b0f;
}

.secondary-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.nav-action:hover,
.primary-btn:hover,
.secondary-btn:hover,
.contact-form button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: 138px clamp(18px, 5vw, 72px) 54px;
  overflow: hidden;
}

.hero-bg,
.hero-bg::after,
.hero-poster {
  position: absolute;
  inset: 0;
}

.hero-bg::after {
  content: "";
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(6, 8, 12, 0.92), rgba(6, 8, 12, 0.48) 52%, rgba(6, 8, 12, 0.14)),
    linear-gradient(0deg, var(--bg), transparent 48%);
}

.hero-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 800ms ease, transform 3800ms ease;
}

.hero-poster.active {
  opacity: 1;
  transform: scale(1.1);
}

.hero-grid {
  position: relative;
  z-index: 3;
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--cyan);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 3px;
  background: var(--yellow);
}

.hero h1 {
  max-width: 830px;
  margin: 0 0 18px;
  font-size: 7.2rem;
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
}

.hero-copy p:not(.eyebrow),
.studio-copy p,
.contact-copy p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.78);
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

section {
  padding: clamp(74px, 9vw, 126px) clamp(18px, 5vw, 72px);
}

.section-head {
  width: min(980px, 100%);
  margin-bottom: 34px;
}

.section-head h2,
.studio-copy h2,
.contact-copy h2,
.content-card h1 {
  margin: 0;
  font-size: 4.7rem;
  line-height: 0.9;
  text-transform: uppercase;
}

.showcase {
  background: linear-gradient(180deg, #06080c, #10151d);
}

.slate-grid {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.slate-card {
  position: relative;
  min-height: 320px;
  grid-column: span 2;
  display: grid;
  align-content: end;
  border: 1px solid var(--line);
  background: #0d1118;
  box-shadow: var(--shadow);
  overflow: hidden;
  clip-path: polygon(22px 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
}

.slate-card.large {
  grid-column: span 4;
  min-height: 470px;
}

.slate-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.slate-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 8, 12, 0.88), transparent 54%);
}

.slate-card:hover img {
  transform: scale(1.05);
}

.slate-card div {
  position: relative;
  z-index: 1;
  padding: 24px;
}

.slate-card span {
  color: var(--yellow);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.slate-card h3 {
  margin: 8px 0 0;
  font-size: 2rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.studio-panel {
  background:
    linear-gradient(120deg, rgba(255, 42, 42, 0.14), transparent 36%),
    #0b0f16;
}

.studio-grid,
.contact-grid {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0.82fr;
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
}

.studio-metrics {
  display: grid;
  gap: 14px;
}

.studio-metrics div {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
}

.studio-metrics strong {
  display: block;
  color: var(--cyan);
  font-size: 3rem;
}

.studio-metrics span {
  color: var(--muted);
  font-family: Inter, system-ui, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.pipeline {
  background:
    linear-gradient(90deg, rgba(0, 230, 255, 0.1), transparent),
    #111723;
  overflow: hidden;
}

.pipeline-board {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0.86fr;
  gap: 18px;
  align-items: stretch;
}

.pipeline-screen {
  position: relative;
  min-height: 560px;
  border: 1px solid var(--line);
  background: #06080c;
  box-shadow: var(--shadow);
  overflow: hidden;
  clip-path: polygon(24px 0, 100% 0, calc(100% - 24px) 100%, 0 100%);
}

.pipeline-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.08);
}

.pipeline-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(6, 8, 12, 0.86), transparent 50%),
    linear-gradient(110deg, rgba(0, 230, 255, 0.34), transparent 42%);
}

.pipeline-screen::after {
  content: "";
  position: absolute;
  inset: -50% 0;
  background: linear-gradient(180deg, transparent, rgba(255, 225, 0, 0.24), transparent);
  animation: pipelineScan 4.4s linear infinite;
}

.screen-hud {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(6, 8, 12, 0.72);
  backdrop-filter: blur(14px);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

.screen-hud span {
  display: block;
  color: var(--cyan);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.screen-hud strong {
  display: block;
  margin-top: 8px;
  font-size: 1.55rem;
  line-height: 1;
  text-transform: uppercase;
}

.lane-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.lane-card {
  position: relative;
  min-height: 128px;
  padding: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(255, 225, 0, 0.1), transparent 40%),
    rgba(255, 255, 255, 0.055);
  clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
  transition: transform 180ms ease, background 180ms ease;
  overflow: hidden;
}

.lane-card::before {
  content: "";
  position: absolute;
  inset: auto 22px 18px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--yellow), var(--red));
  transform: scaleX(0.32);
  transform-origin: left;
  transition: transform 220ms ease;
}

.lane-card:hover {
  transform: translateY(-7px);
  background: rgba(255, 255, 255, 0.1);
}

.lane-card:hover::before {
  transform: scaleX(1);
}

.lane-card b {
  color: var(--yellow);
  font-size: 2rem;
}

.lane-card h3 {
  margin: 12px 0 8px;
  font-size: 1.45rem;
  text-transform: uppercase;
}

.lane-card p,
.page-content {
  color: var(--muted);
  font-family: Inter, system-ui, sans-serif;
}

.lane-card > span {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  color: var(--cyan);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact {
  background:
    linear-gradient(120deg, rgba(255, 225, 0, 0.12), transparent 36%),
    #06080c;
}

.contact-copy,
.contact-form,
.content-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.contact-copy,
.content-card {
  padding: clamp(28px, 5vw, 54px);
  clip-path: polygon(24px 0, 100% 0, calc(100% - 24px) 100%, 0 100%);
}

.contact-copy a,
.footer a,
.page-content a {
  color: var(--cyan);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 42px);
  clip-path: polygon(24px 0, 100% 0, calc(100% - 24px) 100%, 0 100%);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  font: 500 1rem Inter, system-ui, sans-serif;
}

.contact-form option {
  color: #0b0f16;
}

.contact-form textarea {
  resize: vertical;
}

.notice {
  margin: 0;
  padding: 12px 14px;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 900;
}

.notice.success {
  background: rgba(0, 230, 255, 0.16);
}

.notice.error {
  background: rgba(255, 42, 42, 0.16);
}

.content-page {
  min-height: 100vh;
  padding: 138px clamp(18px, 5vw, 72px) 84px;
}

.content-wrap {
  width: min(980px, 100%);
  margin: 0 auto;
}

.page-content h2,
.page-content h3 {
  color: var(--text);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.68);
  font-family: Inter, system-ui, sans-serif;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes pipelineScan {
  from {
    transform: translateY(-18%);
  }

  to {
    transform: translateY(18%);
  }
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .studio-grid,
  .contact-grid,
  .pipeline-board {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .section-head h2,
  .studio-copy h2,
  .contact-copy h2,
  .content-card h1 {
    font-size: 4.4rem;
  }

  .lane-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline-screen {
    min-height: 430px;
  }
}

@media (max-width: 640px) {
  .topbar {
    inset: 12px 12px auto;
  }

  .brand span:last-child {
    max-width: 150px;
    line-height: 1.05;
  }

  .nav-action {
    display: none;
  }

  .hero {
    padding-top: 118px;
  }

  .hero h1,
  .section-head h2,
  .studio-copy h2,
  .contact-copy h2,
  .content-card h1 {
    font-size: 3rem;
  }

  .lane-grid {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    width: 78px;
  }

  .pipeline-screen {
    min-height: 330px;
  }

  .slate-grid {
    grid-template-columns: 1fr;
  }

  .slate-card,
  .slate-card.large {
    grid-column: span 1;
    min-height: 300px;
  }

  .footer {
    flex-direction: column;
  }
}

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