/*
Theme Name: Miguel Angel PS
Theme URI: https://miguelangelps.com
Author: Miguel Angel Paredes
Description: Portfolio editorial y motion con direccion visual streaming, manga/editorial minimalista y foco en reel + trabajos curados.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: miguelangelps
*/

:root {
  --bg: #020203;
  --black: #050506;
  --panel: #101014;
  --line: #2d2e36;
  --line-bright: #d9d9df;
  --text: #f4f2f4;
  --muted: #b8b5bd;
  --magenta: #ff087a;
  --magenta-soft: #ff4ca2;
  --blue-video: #094da8;
  --blue-video-dark: #063674;
  --max: 1370px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.13;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.65) 0 1px, transparent 1.6px);
  background-size: 8px 8px;
  mix-blend-mode: screen;
}

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

button {
  font: inherit;
}

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

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(2, 2, 3, 0.68), transparent);
}

.header-inner {
  width: min(100% - 72px, var(--max));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  transform: skewX(-10deg);
  text-transform: lowercase;
  line-height: 0.9;
  text-shadow: 3px 3px 0 rgba(255, 8, 122, 0.5);
}

.brand__name {
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 1000;
  letter-spacing: -0.03em;
}

.brand__name::after {
  content: "ps";
  color: var(--magenta);
}

.brand__role {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
}

.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 950;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--magenta-soft);
  outline: none;
}

.section {
  width: min(100% - 72px, var(--max));
  margin: 0 auto;
}

.hero-poster {
  position: relative;
  min-height: 74vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18) 42%, rgba(0, 0, 0, 0.78) 100%),
    radial-gradient(circle at 78% 22%, rgba(255, 8, 122, 0.76), transparent 18rem),
    linear-gradient(135deg, #111828 0%, #230d2b 46%, #0a0a12 100%);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, black, transparent 86%);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(180deg, transparent, #020203);
}

.hero-art,
.moon,
.skyline,
.hero-character {
  position: absolute;
  pointer-events: none;
}

.hero-art {
  inset: 0;
}

.moon {
  top: 14%;
  right: 16%;
  width: clamp(120px, 17vw, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 34%, rgba(255, 255, 255, 0.35), transparent 0 16%, transparent 34%),
    radial-gradient(circle at 66% 62%, rgba(80, 0, 45, 0.22), transparent 0 22%, transparent 42%),
    var(--magenta);
  box-shadow: 0 0 80px rgba(255, 8, 122, 0.7);
  opacity: 0.86;
}

.skyline {
  left: -4%;
  right: -4%;
  bottom: 0;
  background-repeat: repeat-x;
  background-position: bottom;
}

.skyline--back {
  height: 58%;
  opacity: 0.42;
  background-image:
    linear-gradient(90deg, transparent 0 3%, #131722 3% 7%, transparent 7% 9%, #171b28 9% 14%, transparent 14% 18%, #151925 18% 22%, transparent 22% 27%, #111620 27% 35%, transparent 35% 39%, #181b28 39% 45%, transparent 45% 51%, #11151f 51% 54%, transparent 54% 60%, #151824 60% 66%, transparent 66% 72%, #151923 72% 78%, transparent 78% 84%, #10141d 84% 90%, transparent 90% 100%);
}

.skyline--front {
  height: 48%;
  opacity: 0.82;
  background-image:
    linear-gradient(90deg, #07090f 0 5%, transparent 5% 7%, #080b12 7% 12%, transparent 12% 15%, #070910 15% 21%, transparent 21% 26%, #090b12 26% 34%, transparent 34% 39%, #06080d 39% 47%, transparent 47% 52%, #090b12 52% 58%, transparent 58% 62%, #05070d 62% 70%, transparent 70% 75%, #090b11 75% 83%, transparent 83% 88%, #06080f 88% 96%, transparent 96% 100%);
}

.hero-character {
  right: 9%;
  bottom: 5%;
  width: clamp(170px, 23vw, 340px);
  height: clamp(240px, 32vw, 470px);
  border-radius: 46% 48% 0 0;
  background:
    radial-gradient(ellipse at 48% 12%, #0b0b0e 0 16%, transparent 17%),
    linear-gradient(130deg, transparent 0 35%, #060609 36% 62%, transparent 63%),
    radial-gradient(ellipse at 48% 68%, #060609 0 44%, transparent 45%);
  filter: drop-shadow(-20px 15px 0 rgba(255, 8, 122, 0.16));
  opacity: 0.94;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.48fr);
  gap: 44px;
  align-items: end;
  padding: 180px 0 104px;
}

.hero-copy {
  max-width: 820px;
}

.hero-poster h1 {
  margin: 0;
  color: #f2f1f5;
  font-size: clamp(52px, 7.5vw, 118px);
  font-style: italic;
  font-weight: 1000;
  line-height: 0.86;
  text-transform: uppercase;
  text-shadow:
    4px 4px 0 rgba(255, 255, 255, 0.16),
    10px 10px 0 rgba(0, 0, 0, 0.48);
  transform: skewX(-8deg);
}

.hero-rule {
  display: block;
  width: 62px;
  height: 7px;
  margin: 42px 0 34px;
  background: var(--magenta);
  box-shadow: 0 0 26px rgba(255, 8, 122, 0.72);
}

.hero-tags {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(14px, 1.55vw, 22px);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  word-spacing: 0.8em;
}

.hero-cta {
  max-width: 360px;
  padding-bottom: 16px;
}

.hero-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 1.35vw, 21px);
  font-weight: 800;
  line-height: 1.42;
  text-shadow: 0 2px 14px #000;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 174px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 14px 24px;
  background: #111117;
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  font-style: italic;
  font-weight: 1000;
  transform: skewX(-5deg);
}

.button::after {
  content: " ->";
  margin-left: 8px;
  font-style: normal;
}

.button--primary {
  border-color: var(--magenta);
  background: var(--magenta);
  color: #040405;
  box-shadow: 0 0 28px rgba(255, 8, 122, 0.32);
}

.statement {
  position: relative;
  z-index: 3;
  margin-top: 32px;
  margin-bottom: 28px;
  display: grid;
  place-items: center;
}

.statement p {
  width: min(880px, 100%);
  margin: 0;
  padding: 18px 26px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04) 12%, rgba(255, 255, 255, 0.04) 88%, transparent),
    #050506;
  color: var(--text);
  font-size: clamp(22px, 2.3vw, 34px);
  font-style: italic;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0 18px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 48px);
  font-style: italic;
  font-weight: 1000;
  line-height: 0.95;
  text-transform: uppercase;
  transform: skewX(-6deg);
}

.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 24px;
}

.filter-button {
  min-height: 32px;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 900;
}

.filter-button.is-active,
.filter-button:hover,
.filter-button:focus-visible {
  color: var(--magenta-soft);
  outline: none;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
}

.work-card {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--line-bright);
  background: var(--blue-video);
  isolation: isolate;
  min-height: 0;
}

.work-card:nth-child(4n + 2) {
  --blue-video: #0c5dc6;
  --blue-video-dark: #073d84;
}

.work-card:nth-child(4n + 3) {
  --blue-video: #0754b8;
  --blue-video-dark: #042d67;
}

.work-card[hidden] {
  display: none;
}

.work-card__media {
  position: relative;
  z-index: 0;
  width: 100%;
  min-height: 100%;
  border: 0;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(0deg, rgba(1, 7, 20, 0.9), rgba(1, 7, 20, 0.05) 58%, rgba(255, 255, 255, 0.12)),
    var(--blue-video);
  cursor: pointer;
}

.work-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.18), transparent 18%),
    repeating-linear-gradient(-8deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 9px);
  opacity: 0.45;
}

.work-card__media span {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 5px 7px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 11px;
  font-weight: 1000;
}

.work-card--tall {
  grid-row: span 2;
}

.work-card--tall .work-card__media {
  aspect-ratio: 9 / 16;
}

.work-card__body {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 18px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.92) 72%);
}

.work-card h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 1.8vw, 32px);
  font-style: italic;
  font-weight: 1000;
  line-height: 0.88;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
  transform: skewX(-8deg);
}

.work-card__meta {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
}

.info-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  padding: 86px 0;
}

.info-band h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 72px);
  font-style: italic;
  font-weight: 1000;
  line-height: 0.92;
  text-transform: uppercase;
  transform: skewX(-6deg);
}

.info-band p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.55fr);
  gap: 42px;
  align-items: center;
  margin-bottom: 86px;
  border: 1px solid #1b1c21;
  padding: clamp(34px, 5vw, 64px);
  background:
    radial-gradient(circle at 0 0, rgba(255, 8, 122, 0.34), transparent 18rem),
    linear-gradient(90deg, #09090c, #050506);
}

.contact-panel h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 78px);
  font-style: italic;
  font-weight: 1000;
  line-height: 0.92;
  text-transform: uppercase;
  transform: skewX(-7deg);
}

.contact-panel p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 800;
  line-height: 1.35;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer {
  border-top: 1px solid #18191f;
  color: var(--muted);
  font-size: 12px;
}

.footer-inner {
  width: min(100% - 72px, var(--max));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.quick-view {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
}

.quick-view.is-open {
  display: flex;
}

.quick-view__panel {
  width: min(920px, 100%);
  border: 1px solid var(--line);
  background: #08080b;
}

.quick-view__media {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 38%),
    var(--blue-video);
}

.quick-view__body {
  padding: 24px;
}

.quick-view__top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.quick-view h3 {
  margin: 0 0 10px;
  font-size: 34px;
  font-style: italic;
  font-weight: 1000;
  text-transform: uppercase;
  transform: skewX(-6deg);
}

.quick-view p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--magenta);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quick-view__close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
}

@media (max-width: 1080px) {
  .work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    max-width: 560px;
  }
}

@media (max-width: 760px) {
  .section,
  .header-inner,
  .footer-inner {
    width: min(100% - 32px, var(--max));
  }

  .site-header {
    position: relative;
    background: #050506;
    border-bottom: 1px solid #191a20;
  }

  .header-inner {
    min-height: auto;
    padding: 18px 0 14px;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .site-nav {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .hero-poster {
    min-height: auto;
  }

  .hero-grid {
    padding: 72px 0 64px;
  }

  .hero-poster h1 {
    font-size: 52px;
  }

  .hero-tags {
    word-spacing: 0.2em;
  }

  .moon {
    right: -20px;
  }

  .hero-character {
    opacity: 0.45;
    right: -70px;
  }

  .statement {
    margin-top: 22px;
  }

  .section-head {
    display: grid;
  }

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

  .info-band {
    grid-template-columns: 1fr;
    padding: 64px 0;
  }

  .contact-panel {
    padding: 28px 20px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

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

  .work-card--tall {
    grid-row: auto;
  }
}
