/* Phenix Marble — Surfaces theme */

.px-hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: flex-end;
  padding: 88px 0 72px;
  overflow: hidden;
  background: #12100e;
  color: var(--paper);
}
.px-hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 16, 14, 0.35) 0%, rgba(18, 16, 14, 0.55) 40%, rgba(18, 16, 14, 0.96) 100%),
    url("../phenix/quarry.jpg") center 40% / cover no-repeat;
  transform: scale(1.04);
  animation: px-hero-in 1.4s ease-out both;
}
.px-hero .wrap {
  position: relative;
  z-index: 1;
  animation: px-rise 0.9s ease-out 0.15s both;
}
.px-brand {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  color: #e8e2d6;
}
.px-hero h1 {
  font-size: clamp(3.2rem, 8.5vw, 7.2rem);
  line-height: 0.92;
  max-width: 10em;
  margin-bottom: 20px;
}
.px-lead {
  max-width: 34em;
  color: #e4ddd0;
  font-size: 1.06rem;
  margin-bottom: 28px;
}
.px-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.px-hero .btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(243, 240, 232, 0.4);
}
.px-hero .btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.px-story {
  padding: 96px 0;
  background: var(--paper);
}
.px-story-grid {
  display: grid;
  grid-template-columns: minmax(200px, 0.72fr) 1.28fr;
  gap: 56px;
  align-items: start;
}
.px-story-visual {
  display: grid;
  gap: 28px;
}
.px-story-visual figure { margin: 0; }
.px-story-visual img {
  width: 100%;
  height: auto;
  display: block;
}
.px-story-visual figure:first-child img {
  box-shadow: 0 24px 60px rgba(28, 26, 23, 0.12);
}
.px-story-visual figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.px-story-copy h2 {
  font-size: clamp(2.6rem, 4.8vw, 4.4rem);
  margin-bottom: 22px;
}
.px-story-copy p {
  color: var(--muted);
  max-width: 38em;
  margin-bottom: 16px;
}

.px-beats {
  background: var(--paper-deep);
  padding: 72px 0;
}
.px-beats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.px-beats h3 {
  font-size: 1.9rem;
  margin-bottom: 8px;
}
.px-beats p:not(.mark) {
  color: var(--muted);
  max-width: 26em;
  font-size: 0.98rem;
}

.px-quarry {
  background: var(--black);
  line-height: 0;
}
.px-quarry img {
  width: 100%;
  height: min(42vh, 420px);
  object-fit: cover;
  object-position: center 45%;
  opacity: 0.92;
}

.px-varieties {
  padding: 96px 0 72px;
  background: var(--paper);
}
.px-varieties-head {
  margin-bottom: 48px;
}
.px-varieties-head h2 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  margin-bottom: 14px;
  max-width: 50%;
  text-wrap: unset;
}
.px-varieties-head > p:last-child {
  color: var(--muted);
  max-width: 36em;
}
.px-variety {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.px-variety-alt {
  grid-template-columns: 1.15fr 0.85fr;
}
.px-variety-alt .px-variety-copy { order: 2; }
.px-variety-alt figure { order: 1; }
.px-variety h3 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin-bottom: 12px;
}
.px-variety-copy p:not(.mark) {
  color: var(--muted);
  max-width: 28em;
  margin-bottom: 18px;
}
.px-variety figure {
  margin: 0;
  overflow: hidden;
}
.px-variety img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s ease;
}
.px-variety:hover img {
  transform: scale(1.03);
}

.px-gallery {
  padding: 72px 0 96px;
  background: var(--paper-deep);
}
.px-gallery-head {
  margin-bottom: 36px;
}
.px-gallery-head h2 {
  font-size: clamp(2.6rem, 4.8vw, 4.4rem);
}
.px-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.px-shot {
  margin: 0;
  overflow: hidden;
  background: var(--charcoal);
}
.px-shot-wide {
  grid-column: span 2;
}
.px-shot img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease, opacity 0.4s ease;
}
.px-shot:hover img {
  transform: scale(1.04);
}

.px-close {
  padding: 96px 0;
  background: var(--charcoal);
  color: var(--paper);
}
.px-close-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 48px;
  align-items: end;
}
.px-close h2 {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  margin-bottom: 16px;
}
.px-close p {
  color: #cfc8be;
  max-width: 36em;
  margin-bottom: 14px;
}
.px-close .eyebrow,
.px-close .mark { color: #a39c92; }
.px-close .btn-line {
  color: var(--paper);
  border-color: rgba(243, 240, 232, 0.45);
}
.px-close .btn-line:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.px-close .text-link { color: var(--paper); }
.px-close aside {
  border-top: 1px solid rgba(243, 240, 232, 0.2);
  padding-top: 20px;
}
.px-hours {
  margin-top: 8px;
  font-size: 0.92rem;
}

@keyframes px-hero-in {
  from { transform: scale(1.1); opacity: 0.7; }
  to { transform: scale(1.04); opacity: 1; }
}
@keyframes px-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .px-hero { min-height: 78vh; padding: 64px 0 48px; }
  .px-story-grid,
  .px-beats-grid,
  .px-variety,
  .px-variety-alt,
  .px-close-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .px-variety-alt .px-variety-copy,
  .px-variety-alt figure { order: unset; }
  .px-story-visual { max-width: 320px; }
  .px-gallery-grid { grid-template-columns: 1fr 1fr; }
  .px-shot-wide { grid-column: span 2; }
  .px-story,
  .px-varieties,
  .px-gallery,
  .px-close { padding: 64px 0; }
  .px-beats { padding: 48px 0; }
  .px-varieties-head h2 { max-width: 100%; }
}

@media (max-width: 620px) {
  .px-gallery-grid { grid-template-columns: 1fr; }
  .px-shot-wide { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .px-hero-media,
  .px-hero .wrap,
  .px-variety img,
  .px-shot img {
    animation: none;
    transition: none;
    transform: none;
  }
}
