/*
Theme Name: Avenue V Studios
Theme URI: https://avenuevstudios.com/
Author: Avenue V Studios LLC
Description: Custom block theme for Avenue V Studios. Built for a dark, product-led software studio website using native WordPress blocks.
Version: 1.2.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: avenue-v-studios
*/

:root {
  --av-lime: #D7DF23;
  --av-charcoal: #231F20;
  --av-dark-gray: #424143;
  --av-mid-gray: #58595B;
  --av-white: #FFFFFF;
  --av-black: #111111;
  --av-panel: #191919;
  --av-border: rgba(255,255,255,.12);
  --av-muted: rgba(255,255,255,.68);
  --av-radius: 18px;
  --av-shadow: 0 20px 70px rgba(0,0,0,.24);
}

html { scroll-behavior: smooth; }

body {
  background: var(--av-black);
  color: var(--av-white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { text-underline-offset: .18em; }

.av-shell { overflow: clip; }

.av-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17,17,17,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--av-border);
}

.av-header-inner {
  min-height: 76px;
}

.av-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--av-white);
  text-decoration: none;
}

.av-brand-mark {
  width: 40px;
  height: 28px;
  position: relative;
  flex: 0 0 auto;
}

.av-brand-mark::before,
.av-brand-mark::after,
.av-brand-mark span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  transform: skewX(-23deg);
}

.av-brand-mark::before { top: 1px; background: var(--av-mid-gray); }
.av-brand-mark span { top: 12px; background: var(--av-lime); }
.av-brand-mark::after { top: 23px; background: var(--av-dark-gray); }

.av-wordmark {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.av-nav .wp-block-navigation-item__content {
  color: var(--av-white);
  font-size: .94rem;
  text-decoration: none;
}

.av-nav .wp-block-navigation-item__content:hover,
.av-nav .current-menu-item > .wp-block-navigation-item__content {
  color: var(--av-lime);
}

.av-eyebrow {
  color: var(--av-lime);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.av-hero {
  position: relative;
  min-height: min(860px, calc(100vh - 76px));
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--av-border);
}

.av-hero > .wp-block-group {
  position: relative;
  z-index: 2;
}

/* Oversized Avenue V-derived geometry. Intentionally low-contrast so the
   product message remains the hero, not the decoration. */
.av-hero-symbol {
  position: absolute;
  z-index: 1;
  right: clamp(-210px, -10vw, -90px);
  top: 50%;
  width: clamp(470px, 51vw, 760px);
  aspect-ratio: 1 / 1;
  transform: translateY(-48%);
  pointer-events: none;
  opacity: .88;
}

.av-hero-symbol .av-symbol-a,
.av-hero-symbol .av-symbol-v {
  position: absolute;
  inset: 7%;
}

.av-hero-symbol .av-symbol-a {
  clip-path: polygon(8% 86%, 35% 16%, 51% 16%, 74% 86%, 57% 86%, 47% 58%, 28% 58%, 18% 86%);
  background: rgba(88,89,91,.08);
}

.av-hero-symbol .av-symbol-v {
  clip-path: polygon(47% 13%, 65% 13%, 78% 52%, 91% 13%, 100% 13%, 79% 86%, 66% 86%);
  background: rgba(255,255,255,.035);
}

.av-hero-symbol .av-symbol-stripes {
  position: absolute;
  left: 8%;
  right: 1%;
  top: 50%;
  transform: translateY(-50%);
}

.av-hero-symbol .av-symbol-stripes span {
  display: block;
  height: 5px;
  margin: 10px 0;
  transform: skewX(-24deg);
}

.av-hero-symbol .av-symbol-stripes span:nth-child(1) { background: rgba(88,89,91,.18); width: 92%; }
.av-hero-symbol .av-symbol-stripes span:nth-child(2) { background: rgba(215,223,35,.16); width: 100%; }
.av-hero-symbol .av-symbol-stripes span:nth-child(3) { background: rgba(66,65,67,.20); width: 84%; }

.av-hero h1 {
  max-width: 900px;
  font-size: clamp(3.1rem, 7.4vw, 6.55rem) !important;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.av-hero-copy {
  max-width: 690px;
  color: var(--av-muted);
}

.av-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.av-button .wp-element-button,
.wp-block-button.av-button .wp-block-button__link {
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 750;
  letter-spacing: .01em;
}

.av-button-primary .wp-element-button,
.wp-block-button.av-button-primary .wp-block-button__link {
  background: var(--av-lime);
  color: var(--av-charcoal);
}

.av-button-secondary .wp-element-button,
.wp-block-button.av-button-secondary .wp-block-button__link {
  background: transparent;
  color: var(--av-white);
  border: 1px solid rgba(255,255,255,.24);
}

.av-button-secondary .wp-element-button:hover,
.wp-block-button.av-button-secondary .wp-block-button__link:hover {
  border-color: var(--av-lime);
  color: var(--av-lime);
}

.av-stripes {
  width: 128px;
  margin-top: 36px;
}

.av-stripes span {
  display: block;
  height: 5px;
  margin: 8px 0;
  transform-origin: left center;
  transform: skewX(-24deg);
}
.av-stripes span:nth-child(1) { background: var(--av-mid-gray); width: 78%; }
.av-stripes span:nth-child(2) { background: var(--av-lime); width: 100%; }
.av-stripes span:nth-child(3) { background: var(--av-dark-gray); width: 67%; }

.av-section {
  padding-top: clamp(64px, 9vw, 132px);
  padding-bottom: clamp(64px, 9vw, 132px);
}

.av-section + .av-section { border-top: 1px solid var(--av-border); }

.av-section-heading {
  max-width: 820px;
  margin-bottom: 40px;
}

.av-section-heading h2 {
  letter-spacing: -.035em;
  text-wrap: balance;
}

.av-products {
  display: grid;
  gap: 20px;
}

.av-product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius);
  background: linear-gradient(180deg, #1d1d1d 0%, #161616 100%);
  box-shadow: var(--av-shadow);
}

.av-product-card-grid {
  display: grid;
  grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
  align-items: stretch;
}

.av-product-copy {
  padding: clamp(28px, 4.2vw, 58px);
}

.av-product-copy p { color: var(--av-muted); }

.av-product-visual {
  min-height: 360px;
  background:
    linear-gradient(135deg, rgba(215,223,35,.06), transparent 44%),
    #0e0e0e;
  border-left: 1px solid var(--av-border);
  display: grid;
  place-items: center;
  padding: clamp(24px, 4.2vw, 60px);
}

.av-product-screen {
  display: block;
  width: min(100%, 860px);
  height: auto;
  max-height: 540px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 28px 60px rgba(0,0,0,.42);
}

.av-product-screen--transparent {
  border: 0;
  box-shadow: none;
}

.av-placeholder-ui {
  width: min(100%, 760px);
  aspect-ratio: 16/10;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background:
    linear-gradient(#262626 0 0) 0 0/100% 38px no-repeat,
    linear-gradient(90deg,#171717 0 24%,#101010 24% 100%);
  box-shadow: 0 28px 60px rgba(0,0,0,.42);
  position: relative;
}

.av-placeholder-ui::before {
  content: attr(data-label);
  position: absolute;
  left: 32%;
  top: 52%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.34);
  font-size: .84rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.av-link {
  color: var(--av-white);
  text-decoration: none;
  font-weight: 750;
}
.av-link:hover { color: var(--av-lime); }

.av-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
  margin-top: 44px;
}

.av-principle {
  border-top: 2px solid var(--av-lime);
  padding-top: 22px;
}
.av-principle p { color: var(--av-muted); }

.av-metric {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(14px, 3vw, 42px);
  padding: clamp(32px, 5.5vw, 72px);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius);
  background: var(--av-panel);
}

.av-metric-number {
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: .9;
  font-weight: 800;
  letter-spacing: -.065em;
  white-space: nowrap;
}

.av-metric-arrow {
  color: var(--av-lime);
  font-size: clamp(2rem, 4vw, 4rem);
}

.av-muted { color: var(--av-muted); }

.av-cta {
  text-align: center;
  padding: clamp(56px, 8vw, 110px) clamp(24px, 5vw, 60px);
  border-radius: var(--av-radius);
  border: 1px solid rgba(215,223,35,.28);
  background: linear-gradient(135deg, rgba(215,223,35,.09), rgba(255,255,255,.02));
}

.av-footer {
  border-top: 1px solid var(--av-border);
}

.av-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .6fr .6fr;
  gap: 48px;
}

.av-footer a { color: var(--av-muted); }
.av-footer a:hover { color: var(--av-lime); }

.av-page-hero {
  padding-top: clamp(90px, 12vw, 170px);
  padding-bottom: clamp(54px, 8vw, 100px);
}

.av-content { color: rgba(255,255,255,.82); }
.av-content > * + * { margin-top: 1.3em; }

/* Product single */
.av-product-hero {
  padding-top: clamp(96px, 12vw, 170px);
  padding-bottom: clamp(60px, 8vw, 110px);
}
.av-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.av-chip {
  border: 1px solid var(--av-border);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: .82rem;
  color: var(--av-muted);
}

@media (max-width: 900px) {
  .av-hero-symbol {
    right: -240px;
    width: 620px;
    opacity: .66;
  }
  .av-product-card-grid { grid-template-columns: 1fr; }
  .av-product-visual { border-left: 0; border-top: 1px solid var(--av-border); }
  .av-principles { grid-template-columns: 1fr; }
  .av-footer-grid { grid-template-columns: 1fr 1fr; }
  .av-footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .av-header-inner { min-height: 66px; }
  .av-wordmark { font-size: .7rem; letter-spacing: .1em; }
  .av-brand-mark { width: 34px; }
  .av-hero { min-height: auto; padding-top: 86px; padding-bottom: 82px; }
  .av-hero-symbol {
    right: -310px;
    width: 610px;
    opacity: .45;
  }
  .av-hero h1 { font-size: clamp(3rem, 15vw, 4.65rem) !important; }
  .av-product-visual { min-height: 270px; }
  .av-metric { grid-template-columns: 1fr; text-align: center; }
  .av-metric-arrow { transform: rotate(90deg); }
  .av-footer-grid { grid-template-columns: 1fr; }
  .av-footer-grid > :first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .av-stripes span {
    animation: av-line-in .55s ease-out both;
  }
  .av-stripes span:nth-child(2) { animation-delay: .08s; }
  .av-stripes span:nth-child(3) { animation-delay: .16s; }
  @keyframes av-line-in {
    from { transform: scaleX(0) skewX(-24deg); opacity: 0; }
    to { transform: scaleX(1) skewX(-24deg); opacity: 1; }
  }
}

/* --------------------------------------------------------------------------
   v1.2 — product imagery and dedicated product pages
   -------------------------------------------------------------------------- */

.av-product-home-screen,
.av-product-hero-media,
.av-feature-media,
.av-alpha-image,
.av-index-media {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.av-screen--helios-home {
  background-image: url("assets/products/helios/helios-home-composite.png");
}

.av-screen--helios-version {
  background-image: url("assets/products/helios/helios-version-builder.png");
}

.av-screen--helios-composition {
  background-image: url("assets/products/helios/helios-composition-naming.png");
}

.av-screen--helios-render {
  background-image: url("assets/products/helios/helios-render-queue.png");
}

.av-screen--argus-home {
  background-image: url("assets/products/argus/argus-home-hd.png");
}

.av-screen--argus-properties {
  background-image: url("assets/products/argus/argus-render-properties.png");
}

.av-screen--argus-4x5 {
  background-image: url("assets/products/argus/argus-4x5-review.png");
}

.av-screen--argus-matte {
  background-image: url("assets/products/argus/argus-vertical-matte.png");
}

.av-screen--argus-composite {
  background-image: url("assets/products/argus/argus-vertical-composite.png");
}

/* Homepage product cards */
.av-product-visual--helios,
.av-product-visual--argus {
  overflow: hidden;
}

.av-product-home-screen {
  width: 100%;
  max-width: 920px;
}

.av-product-visual--helios .av-product-home-screen {
  aspect-ratio: 1920 / 844;
}

.av-product-visual--argus .av-product-home-screen {
  aspect-ratio: 1200 / 850;
  max-width: 760px;
  filter: drop-shadow(0 28px 52px rgba(0,0,0,.38));
}

/* Dedicated product page */
.av-product-page {
  overflow: clip;
}

.av-product-detail-hero {
  padding-top: clamp(92px, 11vw, 150px);
  padding-bottom: clamp(58px, 8vw, 104px);
  border-bottom: 1px solid var(--av-border);
}

.av-product-detail-hero h1 {
  max-width: 920px;
  letter-spacing: -.05em;
  margin-bottom: 12px;
}

.av-product-kicker {
  max-width: 780px;
  margin-top: 8px;
  margin-bottom: 8px;
  color: var(--av-white);
}

.av-product-intro {
  max-width: 820px;
  color: var(--av-muted);
  font-size: clamp(1.04rem, 1.6vw, 1.28rem);
}

.av-product-hero-media {
  width: 100%;
  aspect-ratio: 1920 / 844;
  margin-top: clamp(38px, 5vw, 64px);
  min-height: 280px;
}

.av-product-hero-media--argus {
  aspect-ratio: 1200 / 850;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 34px 70px rgba(0,0,0,.38));
}

.av-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 6vw, 88px);
}

.av-two-column section {
  min-width: 0;
}

.av-two-column h2 {
  margin-top: 12px;
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3.5vw, 3.15rem);
  letter-spacing: -.035em;
}

.av-two-column p:not(.av-eyebrow) {
  color: var(--av-muted);
  max-width: 650px;
}

.av-feature-list {
  display: grid;
  gap: clamp(56px, 8vw, 108px);
}

.av-feature-row {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(420px, 1.22fr);
  align-items: center;
  gap: clamp(36px, 6vw, 86px);
}

.av-feature-row--reverse .av-feature-copy {
  order: 2;
}

.av-feature-row--reverse .av-feature-media {
  order: 1;
}

.av-feature-copy h3 {
  margin-top: 5px;
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -.035em;
}

.av-feature-copy > p:not(.av-feature-number) {
  color: var(--av-muted);
}

.av-feature-number {
  margin: 0;
  color: var(--av-lime);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .18em;
}

.av-feature-points {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--av-border);
}

.av-feature-points li {
  position: relative;
  padding: 11px 0 11px 20px;
  border-bottom: 1px solid var(--av-border);
  color: rgba(255,255,255,.78);
}

.av-feature-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1em;
  width: 7px;
  height: 2px;
  background: var(--av-lime);
}

.av-feature-media {
  min-height: 620px;
  width: 100%;
  border-radius: var(--av-radius);
  border: 1px solid var(--av-border);
  background-color: #141414;
  box-shadow: var(--av-shadow);
}

.av-feature-media--landscape {
  min-height: 0;
  aspect-ratio: 1200 / 850;
  border: 0;
  background-color: transparent;
  box-shadow: none;
  filter: drop-shadow(0 26px 56px rgba(0,0,0,.34));
}

.av-feature-row--argus {
  grid-template-columns: minmax(310px, .72fr) minmax(520px, 1.28fr);
}

.av-alpha-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 24px;
}

.av-alpha-card {
  margin: 0;
  padding: clamp(18px, 2.8vw, 30px);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius);
  background: #171717;
}

.av-alpha-image {
  width: 100%;
  aspect-ratio: 1200 / 850;
}

.av-alpha-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 18px;
}

.av-alpha-card figcaption strong {
  font-size: 1.05rem;
}

.av-alpha-card figcaption span {
  color: var(--av-muted);
  font-size: .94rem;
}

/* Product archive */
.av-product-index {
  display: grid;
  gap: 28px;
}

.av-index-card {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(480px, 1.22fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius);
  background: linear-gradient(180deg, #1c1c1c 0%, #151515 100%);
}

.av-index-copy {
  padding: clamp(30px, 5vw, 62px);
}

.av-index-copy h2 {
  margin-top: 12px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -.035em;
}

.av-index-copy p:not(.av-eyebrow) {
  color: var(--av-muted);
}

.av-index-media {
  width: 100%;
  min-height: 390px;
  height: 100%;
  padding: 30px;
  background-color: #0e0e0e;
  background-origin: content-box;
  border-left: 1px solid var(--av-border);
}

.av-index-card:first-child .av-index-media {
  min-height: 330px;
}

@media (max-width: 980px) {
  .av-two-column,
  .av-feature-row,
  .av-feature-row--argus,
  .av-index-card {
    grid-template-columns: 1fr;
  }

  .av-feature-row--reverse .av-feature-copy,
  .av-feature-row--reverse .av-feature-media {
    order: initial;
  }

  .av-feature-media {
    min-height: 700px;
  }

  .av-feature-media--landscape {
    min-height: 0;
  }

  .av-index-media {
    min-height: 360px;
    border-left: 0;
    border-top: 1px solid var(--av-border);
  }
}

@media (max-width: 700px) {
  .av-product-detail-hero {
    padding-top: 82px;
  }

  .av-product-hero-media {
    min-height: 180px;
  }

  .av-feature-media {
    min-height: 500px;
  }

  .av-feature-media--landscape {
    min-height: 0;
  }

  .av-alpha-grid {
    grid-template-columns: 1fr;
  }

  .av-index-media {
    min-height: 260px;
  }
}
