/*
Theme Name: ORO Creations — Pixel Preloader
Theme URI: https://orocreations.com/
Author: ORO Creations
Description: ORO Creations agency website with animated pixel preloader.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: oro-creations-pixel
*/

:root {
  --bg: #100507;
  --bg2: #19080b;
  --panel: #210b0e;
  --text: #f6eee9;
  --muted: #b9a5a1;
  --red: #ff3b20;
  --orange: #ff642d;
  --lime: #dfff00;
  --line: rgba(255,255,255,.13);
  --font: 'Manrope', sans-serif;
  --mono: 'DM Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
}

::selection {
  background: var(--lime);
  color: #160608;
}

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

button, a {
  -webkit-tap-highlight-color: transparent;
}

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

.wrap {
  width: min(1240px, 90%);
  margin: auto;
}

.mono {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .7rem;
}

.accent {
  color: var(--lime);
}

/* ORO PIXEL PRELOADER */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background:
    radial-gradient(80% 60% at 0% 0%, rgba(255,58,0,.22), transparent 60%),
    radial-gradient(60% 50% at 90% 90%, rgba(139,92,246,.15), transparent 60%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
  transition: transform 1s cubic-bezier(.76,0,.24,1);
}

#preloader.done {
  transform: translateY(-100%);
}

.pixel-logo {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--px,20px) * .6);
}

.pixel-logo .g {
  display: grid;
  gap: 2px;
}

.pixel-logo .g-o {
  grid-template-columns: repeat(3,var(--px,20px));
}

.pixel-logo .g-r {
  grid-template-columns: repeat(2,var(--px,20px));
}

.pixel-logo .g i,
.pixel-logo .g b {
  width: var(--px,20px);
  height: var(--px,20px);
  display: block;
}

.pixel-logo .g i {
  background: var(--lime);
  box-shadow: 0 0 14px rgba(223,255,0,.35);
}

.pixel-logo .g b {
  visibility: hidden;
}

@keyframes blockPop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.loader-term {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .18em;
  color: var(--muted);
  text-align: center;
  text-transform: uppercase;
}

.caret {
  display: inline-block;
  width: 8px;
  height: 13px;
  background: var(--lime);
  margin-left: 6px;
  vertical-align: middle;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.loader-bar {
  width: 220px;
  height: 2px;
  background: rgba(223,255,0,.12);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar div {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg,var(--lime),var(--red));
  animation: load 2s ease forwards;
}

@keyframes load {
  to { width: 100%; }
}

@media(max-width:480px) {
  .pixel-logo { --px: 15px; }
  .loader-term {
    font-size: .65rem;
    letter-spacing: .12em;
  }
  .loader-bar { width: 180px; }
}

/* NAVIGATION */

nav {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: .35s;
  background: linear-gradient(180deg,rgba(13,4,6,.78),transparent);
}

nav.scrolled {
  background: rgba(16,5,7,.92);
  backdrop-filter: blur(18px);
  border-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 1rem;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand span {
  display: block;
  font-size: .58rem;
  font-family: var(--mono);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .18em;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.nav-links a {
  font-size: .78rem;
  color: #d8c9c5;
  transition: color .25s;
}

.nav-links a:hover {
  color: var(--lime);
}

.nav-cta {
  padding: 12px 18px;
  border: 1px solid rgba(223,255,0,.55);
  color: var(--lime);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: white;
  font-size: 1.5rem;
}

/* HERO SECTION */

.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
  padding: 150px 0 82px;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url('assets/oro-hero-wide.png') center 48%/cover no-repeat;
  transform: scale(1.06);
  animation: heroZoom 16s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  to {
    transform: scale(1.14) translateY(-1.5%);
  }
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg,rgba(12,3,5,.88),rgba(12,3,5,.55) 47%,rgba(12,3,5,.12)),
    linear-gradient(0deg,#100507 0%,transparent 45%,rgba(12,3,5,.16));
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 17% 15%,rgba(255,67,28,.23),transparent 35%);
  mix-blend-mode: screen;
}

.hero-content {
  max-width: 850px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--lime);
  margin-bottom: 28px;
  animation: rise .9s .3s both;
}

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

h1 {
  font-size: clamp(3.5rem,10vw,9.2rem);
  line-height: .88;
  letter-spacing: -.085em;
  font-weight: 800;
  text-transform: uppercase;
  max-width: 950px;
}

h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.85);
}

h1 .hot {
  color: var(--lime);
  display: inline-block;
}

.hero-copy {
  max-width: 490px;
  color: #d1bfbb;
  line-height: 1.8;
  font-size: 1rem;
  margin: 30px 0 34px;
  animation: rise .9s .75s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  animation: rise .9s .9s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 16px 22px;
  background: var(--lime);
  color: #160608;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .05em;
  transition: transform .3s,box-shadow .3s;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(223,255,0,.2);
}

.btn .arrow {
  font-size: 1.15rem;
}

.btn-ghost {
  padding: 15px 20px;
  border: 1px solid rgba(255,255,255,.35);
  font-size: .78rem;
  color: white;
  transition: .3s;
}

.btn-ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.hero-index {
  position: absolute;
  right: 5%;
  bottom: 42px;
  color: rgba(255,255,255,.55);
  text-align: right;
}

.hero-index strong {
  display: block;
  color: var(--lime);
  font: .72rem var(--mono);
  margin-bottom: 8px;
}

.scroll-cue {
  position: absolute;
  left: 5%;
  bottom: 40px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #bba9a5;
}

.scroll-cue i {
  width: 42px;
  height: 1px;
  background: var(--lime);
  display: block;
  position: relative;
  overflow: hidden;
}

.scroll-cue i:after {
  content: "";
  position: absolute;
  inset: 0;
  background: white;
  transform: translateX(-100%);
  animation: scan 1.6s infinite;
}

@keyframes scan {
  to { transform: translateX(100%); }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(35px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* MOVING TICKER */

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 22px 0;
  background: #150609;
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 38px;
  animation: ticker 28s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker span {
  font-size: clamp(1rem,2vw,1.35rem);
  font-weight: 800;
  letter-spacing: -.04em;
  text-transform: uppercase;
  color: #887276;
  white-space: nowrap;
}

.ticker b {
  font: .8rem var(--mono);
  color: var(--lime);
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* GENERAL SECTIONS */

section {
  padding: 120px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 55px;
}

.kicker {
  color: var(--lime);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2.5rem,6vw,5.6rem);
  line-height: .98;
  letter-spacing: -.075em;
  text-transform: uppercase;
  max-width: 760px;
}

.section-note {
  max-width: 310px;
  color: var(--muted);
  line-height: 1.8;
  font-size: .9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity .85s,transform .85s cubic-bezier(.2,.8,.2,1);
}

.reveal.show {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] {
  transition-delay: .12s;
}

.reveal[data-delay="2"] {
  transition-delay: .24s;
}

.reveal[data-delay="3"] {
  transition-delay: .36s;
}

/* SERVICES */

.services {
  background: linear-gradient(180deg,#100507,#19080b 50%,#100507);
}

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

.service {
  padding: 34px;
  min-height: 280px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background .4s;
}

.service:after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  right: -120px;
  bottom: -150px;
  background: var(--red);
  filter: blur(70px);
  opacity: 0;
  transition: opacity .5s;
}

.service:hover {
  background: rgba(255,70,35,.055);
}

.service:hover:after {
  opacity: .35;
}

.service-no {
  font: .7rem var(--mono);
  color: var(--lime);
}

.service-icon {
  font-size: 2rem;
  margin: 35px 0 22px;
  color: var(--orange);
}

.service h3 {
  font-size: 1.35rem;
  letter-spacing: -.04em;
  margin-bottom: 12px;
}

.service p {
  color: var(--muted);
  line-height: 1.75;
  font-size: .88rem;
  max-width: 330px;
}

.service-arrow {
  position: absolute;
  right: 30px;
  top: 28px;
  color: #72565a;
  font-size: 1.2rem;
  transition: .3s;
}

.service:hover .service-arrow {
  color: var(--lime);
  transform: translate(4px,-4px);
}

/* STUDIO / ABOUT */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7%;
  align-items: center;
}

.feature-visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #260b0d;
}

.feature-visual img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  filter: saturate(.88);
  transition: transform 1s;
}

.feature-visual:hover img {
  transform: scale(1.04);
}

.feature-visual:after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.18);
  pointer-events: none;
}

.feature-tag {
  position: absolute;
  left: 22px;
  bottom: 22px;
  background: var(--lime);
  color: #160608;
  padding: 12px 16px;
  font: .68rem var(--mono);
  letter-spacing: .12em;
}

.feature-copy p {
  color: var(--muted);
  line-height: 1.9;
  margin: 28px 0;
}

.feature-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 32px 0;
}

.feature-points div {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.feature-points strong {
  display: block;
  color: var(--lime);
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.feature-points span {
  font: .65rem var(--mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* PORTFOLIO */

.work {
  background: #18070a;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
}

.work-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  background: #2a0d11;
}

.work-card:first-child {
  grid-row: span 2;
  min-height: 742px;
}

.work-card img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform 1s,filter .6s;
  filter: saturate(.75) brightness(.72);
}

.work-card:hover img {
  transform: scale(1.06);
  filter: saturate(1) brightness(.9);
}

.work-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,rgba(10,3,5,.88),transparent 65%);
}

.work-info {
  position: absolute;
  z-index: 1;
  left: 28px;
  right: 28px;
  bottom: 26px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.work-info small {
  font: .65rem var(--mono);
  color: var(--lime);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.work-info h3 {
  font-size: clamp(1.35rem,2.8vw,2.2rem);
  margin-top: 8px;
  letter-spacing: -.05em;
}

.work-info .go {
  font-size: 1.5rem;
  color: var(--lime);
}

/* CONTACT */

.contact {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact:before {
  content: "";
  position: absolute;
  width: 550px;
  height: 550px;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle,rgba(255,61,28,.22),transparent 68%);
  pointer-events: none;
}

.contact .section-title {
  margin: 0 auto 28px;
  max-width: 900px;
}

.contact p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.contact .btn {
  position: relative;
}

/* FOOTER */

footer {
  border-top: 1px solid var(--line);
  padding: 34px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .1em;
}

.footer-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

footer p,
footer a {
  font-size: .72rem;
  color: #8e777b;
}

.socials {
  display: flex;
  gap: 22px;
}

.socials a:hover {
  color: var(--lime);
}

/* CUSTOM CURSOR */

.cursor {
  position: fixed;
  z-index: 500;
  pointer-events: none;
  left: 0;
  top: 0;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  display: none;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--lime);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(223,255,0,.7);
  transition: width .25s,height .25s,background .25s;
}

.cursor-ring.hover {
  width: 62px;
  height: 62px;
  background: rgba(223,255,0,.08);
}

@media(pointer:fine) {
  .cursor { display: block; }
  body { cursor: none; }
  a,button { cursor: none; }
}

/* TABLET */

@media(max-width:850px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: .7rem; }

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

  .feature-visual,
  .feature-visual img {
    height: 480px;
    min-height: 480px;
  }

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

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

  .work-card:first-child {
    grid-row: auto;
    min-height: 520px;
    grid-column: span 2;
  }
}

/* MOBILE */

@media(max-width:620px) {
  nav { padding: 13px 5%; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    padding: 25px 5%;
    background: rgba(16,5,7,.97);
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
  }

  nav.menu-open .nav-links {
    display: flex;
  }

  .menu-toggle { display: block; }
  .nav-cta { display: none; }

  .hero {
    min-height: 850px;
    align-items: flex-end;
    padding-bottom: 130px;
  }

  .hero-image { background-position: 58% center; }

  .hero:before {
    background: linear-gradient(0deg,rgba(12,3,5,.96),rgba(12,3,5,.5) 65%,rgba(12,3,5,.25));
  }

  h1 {
    font-size: clamp(3.4rem,16vw,6rem);
  }

  .hero-copy { font-size: .9rem; }
  .hero-index { display: none; }

  section { padding: 82px 0; }

  .section-head { display: block; }

  .section-note { margin-top: 22px; }

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

  .service { min-height: 235px; }

  .feature-visual,
  .feature-visual img {
    height: 390px;
    min-height: 390px;
  }

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

  .work-card:first-child {
    grid-column: auto;
    min-height: 420px;
  }

  .work-card { min-height: 340px; }

  .feature-points { gap: 14px; }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .socials { flex-wrap: wrap; }

  .scroll-cue { bottom: 35px; }
}

/* REDUCED MOTION */
@media(prefers-reduced-motion:reduce) {
  #preloader { transition-duration: .01ms !important; }
  #preloader *, #preloader *:before, #preloader *:after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* REDUCED MOTION */

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
