/* ============================================
   KERRY PASTINE ART — MAIN STYLESHEET
   Retromodern Constructivist Aesthetic · Light Edition
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Space+Grotesk:wght@300;400;500;600;700&family=Bebas+Neue&display=swap');

/* ─── RESET & BASE ─────────────────────────── */

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

:root {
  /* Light theme — variable names preserved for backward compat */
  --black:     #ffffff;       /* page background */
  --black-mid: #f8f5f0;       /* section / footer background */
  --black-soft:#f0ebe3;       /* card / input backgrounds */
  --white:     #1c1814;       /* primary text */
  --red:       #DF2A12;       /* #D76235 orange accent */
  --red-dark:  #b84f28;       /* darker orange */
  --gray-dark: #ece8e1;       /* decorative / placeholder fills */
  --gray-mid:  #ddd8d0;       /* borders & dividers */
  --gray:      #4a4540;       /* body text */
  --gray-light:#6b6258;       /* subdued / meta text */
  --font-display: 'Anton', 'Bebas Neue', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --nav-h: 64px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ─── TYPOGRAPHY ────────────────────────────── */

.display {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  line-height: 0.92;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-light);
}

.red { color: var(--red); }
.text-red { color: var(--red); }

/* ─── NAV ───────────────────────────────────── */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--black);
  border-bottom: 1px solid var(--gray-mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--white);
  text-transform: uppercase;
}

.nav-logo span {
  color: var(--red);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--red); }

.nav-acquire-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--red);
  color: #ffffff;
  padding: 10px 22px;
  transition: background 0.2s;
}

.nav-acquire-btn:hover {
  background: var(--red-dark);
  color: #ffffff;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ─── MOBILE NAV OPEN ────────────────────────── */

.site-nav.nav-open .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--black);
  border-bottom: 1px solid var(--gray-mid);
  padding: 24px 20px;
  gap: 20px;
}

/* ─── PAGE OFFSET ───────────────────────────── */

.page-content {
  padding-top: var(--nav-h);
}

/* ─── CONSTRUCTIVIST ACCENT ELEMENTS ─────────── */

.red-bar {
  display: block;
  height: 5px;
  background: var(--red);
  width: 100%;
}

.slash-decor {
  position: absolute;
  background: var(--red);
  width: 120%;
  height: 6px;
  transform-origin: left center;
  transform: rotate(-8deg);
  left: -10%;
  pointer-events: none;
}

/* ─── HERO ──────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  overflow: hidden;
  background: var(--black);
  padding-top: var(--nav-h);
}

.hero-name-vert {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  border-right: 1px solid var(--gray-mid);
}

.hero-name-vert span {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-light);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero-left {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 80px 100px 60px;
  position: relative;
}

.hero-overline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 28px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 150px);
  line-height: 0.85;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 40px;
}

.hero-headline .hl-red {
  color: var(--red);
  display: block;
}

.hero-sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--gray-light);
  max-width: 420px;
  margin-bottom: 52px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-right {
  grid-column: 3;
  position: relative;
  overflow: hidden;
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.hero-right:hover img {
  transform: scale(1.03);
}

.hero-right:hover .card-img-main { opacity: 0; }
.hero-right:hover .card-img-room  { opacity: 1; }

/* Hero room image fills the full panel — override contain */
.hero-right .card-img-room {
  object-fit: cover;
  background: transparent;
}

.hero-right-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--black) 0%, transparent 30%);
  pointer-events: none;
}

.hero-right-label {
  position: absolute;
  bottom: 32px;
  right: 32px;
  text-align: right;
}

.hero-right-label .eyebrow {
  margin-bottom: 6px;
  color: rgba(255,255,255,0.7);
}

.hero-right-label h3 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ─── BUTTONS ───────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--red);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--red-dark);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
}

.btn-outline-red {
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
}

.btn-outline-red:hover {
  background: var(--red);
  color: #ffffff;
}

/* ─── STATEMENT STRIP ───────────────────────── */

.statement-strip {
  background: var(--red);
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.statement-strip p {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 22px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.statement-strip .btn-outline {
  color: #ffffff;
  border-color: rgba(255,255,255,0.6);
  flex-shrink: 0;
}

.statement-strip .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
}

.strip-rule {
  height: 1px;
  background: rgba(255,255,255,0.3);
  flex: 1;
  margin: 0 40px;
}

/* ─── SECTION HEADERS ───────────────────────── */

.section-header {
  padding: 100px 80px 48px;
  border-bottom: 1px solid var(--gray-mid);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 80px);
  line-height: 0.9;
  text-transform: uppercase;
}

.section-header .section-count {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gray-light);
  margin-bottom: 12px;
}

/* ─── CARD IMAGE WRAP (room hover) ──────────── */

.card-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.card-img-main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Room image: always contain so the full photo is visible;
   background fills letterbox areas when aspect ratios differ */
.card-img-room {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--black-mid);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ─── WORKS GRID ────────────────────────────── */

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2px;
  background: var(--gray-mid);
}

.work-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--black-soft);
}

.work-card .card-img-main {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.work-card:hover .card-img-main {
  transform: scale(1.05);
  opacity: 0;
}

.work-card:hover .card-img-room {
  opacity: 1;
  transform: scale(1.05);
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  z-index: 1;
}

.work-card:hover .work-card-overlay {
  opacity: 1;
}

.work-card-overlay .eyebrow {
  margin-bottom: 8px;
  color: rgba(255,255,255,0.7);
}

.work-card-overlay h3 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #ffffff;
}

.work-card-overlay .card-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}

.work-card-available {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--red);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 10px;
  z-index: 1;
}

/* ─── HOME FEATURED WORKS ─────────────────────── */

.latest-works-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2px;
  background: var(--gray-mid);
}

.latest-work-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.latest-work-item:first-child {
  grid-row: 1 / 3;
}

.latest-work-item .card-img-wrap {
  min-height: 300px;
  height: 100%;
}

.latest-work-item:first-child .card-img-wrap {
  min-height: 600px;
}

.latest-work-item .card-img-main,
.latest-work-item .card-img-room {
  min-height: 300px;
}

.latest-work-item:first-child .card-img-main,
.latest-work-item:first-child .card-img-room {
  min-height: 600px;
}

.latest-work-item:hover .card-img-main {
  transform: scale(1.04);
  opacity: 0;
}

.latest-work-item:hover .card-img-room {
  opacity: 1;
  transform: scale(1.04);
}

.latest-work-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  z-index: 1;
}

.latest-work-info .eyebrow {
  margin-bottom: 4px;
  color: rgba(255,255,255,0.7);
}

.latest-work-info h3 {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  line-height: 1;
  color: #ffffff;
}

.latest-work-item:first-child .latest-work-info h3 {
  font-size: 36px;
}

/* ─── MANIFESTO BLOCK ───────────────────────── */

.manifesto {
  padding: 120px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  border-top: 1px solid var(--gray-mid);
}

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 60px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.manifesto-quote .q-red {
  color: var(--red);
  display: block;
}

.manifesto-body p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--gray);
  margin-bottom: 24px;
}

.manifesto-body p:last-of-type {
  margin-bottom: 36px;
}

/* ─── PAGE HERO ─────────────────────────────── */

.page-hero {
  padding: 100px 80px 80px;
  border-bottom: 1px solid var(--gray-mid);
  position: relative;
  overflow: hidden;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 150px);
  line-height: 0.85;
  text-transform: uppercase;
}

.page-hero h1 .ph-red {
  color: var(--red);
}

.page-hero-sub {
  margin-top: 28px;
  font-size: 16px;
  color: var(--gray-light);
  max-width: 500px;
  line-height: 1.8;
}

.page-hero-decor {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(120px, 15vw, 220px);
  line-height: 1;
  color: var(--gray-dark);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ─── GALLERY ───────────────────────────────── */

.gallery-filters {
  display: flex;
  gap: 0;
  padding: 0 80px;
  border-bottom: 1px solid var(--gray-mid);
}

.filter-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--gray-light);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 20px 0;
  margin-right: 36px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  color: var(--white);
}

.filter-btn.active {
  color: var(--white);
  border-bottom-color: var(--red);
}

.gallery-grid {
  columns: 3;
  column-gap: 20px;
  padding: 48px 80px 100px;
  background: var(--black);
}

.gallery-item {
  display: block;           /* required for CSS columns */
  break-inside: avoid;      /* never split a card across columns */
  position: relative;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 20px;
  background: var(--black);
}

/* Main image in normal flow — sets the card's natural height */
.gallery-item .card-img-main {
  position: relative;
  width: 100%;
  height: auto;
  inset: auto;
  object-fit: unset;
  display: block;
  transition: opacity 0.5s ease, transform 0.6s ease;
}

/* Room image overlays absolutely — contain so full photo is always visible */
.gallery-item .card-img-room {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--black-mid);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.6s ease;
}

/* card-img-wrap height follows the main image */
.gallery-item .card-img-wrap {
  height: auto;
}

.gallery-item:hover .card-img-main {
  opacity: 0;
  transform: scale(1.04);
}

.gallery-item:hover .card-img-room {
  opacity: 1;
  transform: scale(1.04);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: background 0.35s;
  z-index: 1;
}

.gallery-item:hover .gallery-item-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.08) 65%);
}

.gallery-item-info {
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-item-info {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item-info .eyebrow {
  margin-bottom: 5px;
  color: rgba(255,255,255,0.65);
}

.gallery-item-info h3 {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 6px;
  color: #ffffff;
}

.gallery-item-info .item-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

.gallery-item-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--gray-mid);
  color: var(--gray-light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 9px;
  z-index: 2;
}

.gallery-item[data-available="true"] .gallery-item-tag {
  background: #619D56;
  border-color: #619D56;
  color: #ffffff;
}

.gallery-item[data-sold="true"] .gallery-item-tag {
  background: #c47a00;
  border-color: #c47a00;
  color: #ffffff;
}

/* ─── GALLERY EDITORIAL (gallery.html) ──────── */

.gallery-editorial {
  padding: 0 80px 120px;
}

.gallery-editorial-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 80px;
  padding: 100px 0;
  border-top: 1px solid var(--gray-mid);
  align-items: start;
}

.gallery-editorial-item:last-child {
  border-bottom: 1px solid var(--gray-mid);
}

.gallery-editorial-info {
  position: sticky;
  top: calc(var(--nav-h) + 48px);
}

.gallery-editorial-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gray-mid);
  margin-bottom: 28px;
}

.gallery-editorial-collection {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.gallery-editorial-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 32px;
}

.gallery-editorial-meta {
  border-top: 1px solid var(--gray-mid);
  padding-top: 20px;
  margin-bottom: 32px;
}

.gallery-editorial-meta p {
  font-size: 13px;
  color: var(--gray-light);
  line-height: 1.7;
  margin-bottom: 4px;
}

.gallery-editorial-price {
  font-size: 18px !important;
  font-weight: 600;
  color: var(--white) !important;
  margin-top: 10px !important;
}

.gallery-editorial-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 28px;
}

.gallery-editorial-status .avail-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

/* Image area — natural aspect ratio */

.gallery-editorial-img-link {
  display: block;
  cursor: pointer;
}

.gallery-editorial-img-wrap {
  position: relative;
  overflow: hidden;
}

/* Main image in normal flow — sets natural height */
.gallery-editorial-img-wrap .card-img-main {
  position: relative;
  width: 100%;
  height: auto;
  inset: auto;
  object-fit: unset;
  display: block;
  transition: opacity 0.5s ease, transform 0.6s ease;
}

/* Room image overlays it absolutely */
.gallery-editorial-img-wrap .card-img-room {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.6s ease;
}

.gallery-editorial-img-link:hover .card-img-main {
  opacity: 0;
  transform: scale(1.03);
}

.gallery-editorial-img-link:hover .card-img-room {
  opacity: 1;
  transform: scale(1.03);
}

/* Hidden items (filter) */
.work-item-hidden {
  display: none;
}

@media (max-width: 1100px) {
  .gallery-editorial {
    padding: 0 40px 100px;
  }

  .gallery-editorial-item {
    grid-template-columns: 200px 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .gallery-editorial {
    padding: 0 24px 80px;
  }

  .gallery-editorial-item {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 60px 0;
  }

  .gallery-editorial-info {
    position: static;
  }

  .gallery-editorial-title {
    font-size: clamp(28px, 8vw, 42px);
    margin-bottom: 20px;
  }
}

/* ─── DETAIL PAGE ───────────────────────────── */

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  min-height: calc(100vh - var(--nav-h));
}

.detail-image-area {
  padding: 60px;
  border-right: 1px solid var(--gray-mid);
  background: var(--black-soft);
}

.detail-main-image-wrap {
  overflow: hidden;
  position: relative;
}

/* Main image stays in normal flow so container gets its natural height */
.detail-main-image.card-img-main {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  inset: auto;
  object-fit: unset;
  transition: opacity 0.5s ease;
}

/* Room image overlays the main image absolutely */
.detail-main-image.card-img-room {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--black-mid);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.detail-main-image-wrap:hover .detail-main-image.card-img-main {
  opacity: 0;
}

.detail-main-image-wrap:hover .detail-main-image.card-img-room {
  opacity: 1;
}

.detail-sub-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 2px;
}

.detail-sub-photo {
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--black-soft);
}

.detail-sub-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.detail-sub-photo:hover img {
  transform: scale(1.05);
}

.detail-sub-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-light);
  padding: 8px 0;
}

.detail-info {
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
}

.detail-series {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.detail-title {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.detail-meta-table {
  margin-bottom: 40px;
  border-top: 1px solid var(--gray-mid);
}

.detail-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-mid);
  gap: 16px;
}

.detail-meta-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-light);
  flex-shrink: 0;
}

.detail-meta-value {
  font-size: 14px;
  font-weight: 500;
  text-align: right;
}

.detail-description {
  font-size: 16px;
  line-height: 1.85;
  color: var(--gray);
  flex: 1;
  margin-bottom: 40px;
}

.detail-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-availability {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gray-light);
  padding: 12px 0;
}

.detail-availability .avail-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 8px;
  vertical-align: middle;
}

/* ─── BIO PAGE ──────────────────────────────── */

.bio-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--gray-mid);
}

.bio-image-col {
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.bio-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 600px;
  background: var(--gray-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bio-image-placeholder-text {
  font-family: var(--font-display);
  font-size: 120px;
  color: var(--gray-mid);
  letter-spacing: -0.02em;
}

.bio-text-col {
  padding: 100px 80px;
  border-left: 1px solid var(--gray-mid);
}

.bio-intro {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.bio-intro .bi-red {
  color: var(--red);
}

.bio-body p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--gray);
  margin-bottom: 22px;
}

.bio-body strong {
  color: var(--white);
  font-weight: 600;
}

.bio-facts {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-mid);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.bio-fact-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 6px;
}

.bio-fact-value {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
}

.bio-extended {
  padding: 100px 80px;
  border-top: 1px solid var(--gray-mid);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  background: var(--black-mid);
}

.bio-section h3 {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--white);
}

.bio-section p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--gray);
}

/* ─── LISBON STUDIO ─────────────────────────── */

.studio-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--gray-mid);
}

.studio-intro-text {
  padding: 100px 80px;
}

.studio-intro-text p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--gray);
  margin-bottom: 22px;
}

.studio-intro-text p strong {
  color: var(--white);
}

.studio-intro-image {
  background: var(--gray-dark);
  min-height: 500px;
  border-left: 1px solid var(--gray-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.studio-painting-display {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.studio-quote {
  padding: 100px 80px;
  text-align: center;
  border-top: 1px solid var(--gray-mid);
  position: relative;
  overflow: hidden;
}

.studio-quote-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.studio-quote-video {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Cover the container regardless of its aspect ratio */
  width: 100vw;
  height: 56.25vw;     /* 16:9 of viewport width */
  min-height: 100%;
  min-width: 177.78vh; /* 16:9 of viewport height */
  transform: translate(-50%, -50%);
  border: none;
}

.studio-quote-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
  z-index: 1;
}

/* Home page full-width video strip */
.home-vid-strip {
  position: relative;
  width: 100%;
  min-height: 420px;
  overflow: hidden;
  pointer-events: none;
  border-top: 1px solid var(--gray-mid);
}

.home-vid-strip iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  border: none;
}

.studio-quote blockquote,
.studio-quote cite {
  position: relative;
  z-index: 2;
}

.studio-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 52px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  max-width: 900px;
  margin: 0 auto 24px;
  color: var(--white);
}

.studio-quote blockquote .q-red {
  color: var(--red);
}

.studio-quote cite {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
}

.studio-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--gray-mid);
}

.studio-detail-item {
  padding: 80px 60px;
  border-right: 1px solid var(--gray-mid);
}

.studio-detail-item:last-child {
  border-right: none;
}

.studio-detail-item .eyebrow {
  margin-bottom: 16px;
}

.studio-detail-item h3 {
  font-family: var(--font-display);
  font-size: 32px;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--white);
}

.studio-detail-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray);
}

.studio-vid-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--gray-mid);
  border-top: 2px solid var(--gray-mid);
}

.studio-vid-slot {
  aspect-ratio: 9/16;
  overflow: hidden;
  position: relative;
  background: #000;
}

.studio-vid {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.studio-vid-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.3s;
}

.studio-vid-btn svg {
  transition: transform 0.2s;
  filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.5));
}

.studio-vid-btn:hover svg {
  transform: scale(1.1);
}

.studio-vid-slot.is-playing .studio-vid-btn {
  opacity: 0;
}

.studio-vid-slot.is-playing:hover .studio-vid-btn,
.studio-vid-slot.is-playing:focus-within .studio-vid-btn {
  opacity: 1;
}

/* ─── ACQUIRE PAGE ──────────────────────────── */

.acquire-intro {
  padding: 100px 80px;
  border-top: 1px solid var(--gray-mid);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.acquire-intro-left p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--gray);
  margin-bottom: 22px;
}

.acquire-intro-left p strong {
  color: var(--white);
}

.acquire-intro-right {
  padding-top: 8px;
}

.acquire-tiers {
  padding: 0 80px 100px;
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--gray-mid);
  margin-top: 40px;
}

.tier-card {
  background: var(--black-mid);
  padding: 56px 44px;
}

.tier-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.tier-title {
  font-family: var(--font-display);
  font-size: 36px;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 24px;
}

.tier-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
}

.tier-price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-light);
  margin-left: 6px;
}

.tier-features {
  list-style: none;
  margin-bottom: 40px;
}

.tier-features li {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-dark);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tier-features li::before {
  content: '—';
  color: var(--red);
  flex-shrink: 0;
}

.tier-featured {
  border-top: 3px solid var(--red);
}

.acquire-process {
  padding: 100px 80px;
  border-top: 1px solid var(--gray-mid);
  background: var(--black-mid);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 56px;
}

.process-step {
  position: relative;
}

.step-num {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 1;
  color: var(--gray-dark);
  margin-bottom: 16px;
}

.process-step h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.process-step p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray);
}

/* ─── INQUIRY / CONTACT ─────────────────────── */

.inquiry-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--gray-mid);
  min-height: calc(100vh - var(--nav-h) - 200px);
}

.inquiry-info {
  padding: 100px 80px;
  border-right: 1px solid var(--gray-mid);
  background: var(--black-mid);
}

.inquiry-info h2 {
  font-family: var(--font-display);
  font-size: 52px;
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 36px;
}

.inquiry-info h2 .ih-red {
  color: var(--red);
}

.inquiry-info p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--gray);
  margin-bottom: 22px;
  max-width: 420px;
}

.inquiry-contact-block {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-mid);
}

.contact-line {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}

.contact-line .eyebrow {
  margin-bottom: 6px;
}

.contact-line a {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  transition: color 0.2s;
}

.contact-line a:hover {
  color: var(--red);
}

.inquiry-form-area {
  padding: 100px 80px;
}

.inquiry-form-area h3 {
  font-family: var(--font-display);
  font-size: 28px;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--black-mid);
  border: 1px solid var(--gray-mid);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group select option {
  background: var(--black-mid);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-note {
  font-size: 12px;
  color: var(--gray-light);
  margin-top: 16px;
  line-height: 1.6;
}

/* ─── FOOTER ────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--gray-mid);
  padding: 80px 80px 48px;
  background: var(--black-mid);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-brand-name span {
  color: var(--red);
}

.footer-brand-tagline {
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray-light);
  max-width: 280px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--gray);
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--red);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--gray-mid);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--gray-light);
}

/* ─── LOADING STATE ─────────────────────────── */

.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-light);
}

/* ─── CONSTRUCTIVIST ACCENT ─────────────────── */

.construct-bar {
  height: 3px;
  background: var(--red);
  width: 40px;
  display: block;
  margin-bottom: 24px;
}

.construct-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-top: 60px solid var(--red);
}

/* ─── SCROLL ANIMATIONS ─────────────────────── */

.animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Gallery masonry items: fade only — translateY breaks column flow */
.gallery-grid .animate {
  transform: none;
  transition: opacity 0.6s ease;
}

.gallery-grid .animate.in-view {
  opacity: 1;
  transform: none;
}

.animate[data-delay="1"] { transition-delay: 0.1s; }
.animate[data-delay="2"] { transition-delay: 0.2s; }
.animate[data-delay="3"] { transition-delay: 0.3s; }
.animate[data-delay="4"] { transition-delay: 0.4s; }
.animate[data-delay="5"] { transition-delay: 0.5s; }

/* Images animate with a slight scale-in instead */
.animate-img {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.animate-img.in-view {
  opacity: 1;
  transform: scale(1);
}

/* ─── RESPONSIVE ────────────────────────────── */

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 60px 1fr 1fr;
  }

  .hero-left {
    padding: 60px 40px;
  }

  .bio-layout,
  .studio-intro,
  .acquire-intro,
  .inquiry-layout {
    grid-template-columns: 1fr;
  }

  .bio-text-col,
  .studio-intro-text {
    border-left: none;
    border-top: 1px solid var(--gray-mid);
  }

  .studio-intro-image {
    min-height: 400px;
    border-left: none;
  }

  .bio-extended {
    grid-template-columns: 1fr 1fr;
  }

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

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    columns: 2;
    column-gap: 16px;
    padding: 40px 40px 80px;
  }

  .gallery-item {
    margin-bottom: 16px;
  }

  .inquiry-info {
    border-right: none;
    border-bottom: 1px solid var(--gray-mid);
  }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }

  .site-nav {
    padding: 0 20px;
  }

  .nav-links,
  .nav-acquire-btn {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-name-vert {
    display: none;
  }

  .hero-left {
    padding: 60px 24px;
    grid-column: 1;
  }

  .hero-right {
    grid-column: 1;
    min-height: 320px;
  }

  .section-header {
    padding: 70px 24px 32px;
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero {
    padding: 70px 24px 48px;
  }

  .page-hero-decor {
    display: none;
  }

  .manifesto {
    grid-template-columns: 1fr;
    padding: 70px 24px;
    gap: 48px;
  }

  .bio-text-col {
    padding: 60px 24px;
  }

  .bio-extended {
    grid-template-columns: 1fr;
    padding: 60px 24px;
    gap: 40px;
  }

  .bio-facts {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    columns: 2;
    column-gap: 12px;
    padding: 32px 24px 60px;
  }

  .gallery-item {
    margin-bottom: 12px;
  }

  .gallery-filters {
    padding: 0 24px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-image-area {
    padding: 24px;
  }

  .detail-info {
    padding: 40px 24px;
    border-top: 1px solid var(--gray-mid);
  }

  .studio-details {
    grid-template-columns: 1fr;
  }

  .studio-detail-item {
    border-right: none;
    border-bottom: 1px solid var(--gray-mid);
    padding: 48px 24px;
  }

  .studio-vid-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .acquire-intro,
  .acquire-tiers {
    padding: 60px 24px;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .inquiry-info,
  .inquiry-form-area {
    padding: 60px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .statement-strip {
    padding: 20px 24px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .strip-rule {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .site-footer {
    padding: 60px 24px 36px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .latest-works-grid {
    grid-template-columns: 1fr;
  }

  .latest-work-item:first-child {
    grid-row: auto;
  }

  .tiers-grid {
    margin: 20px 0 0;
  }

  .acquire-tiers h2 {
    font-size: 48px !important;
  }
}
