/* ============================================
   GLENSIUS STUDIO — Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Montserrat:wght@200;300;400;500&display=swap');

/* ADMIN:fonts */
@font-face {
  font-family: 'Neovix';
  src: url('../fonts/Neovix-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neovix';
  src: url('../fonts/Neovix-Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'BDO Grotesk';
  src: url('../fonts/BDOGrotesk-VF.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}
/* /ADMIN:fonts */

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

/* ADMIN:colors */
:root {
  --bg: #0d0d0d;
  --text: #ffffff;
  --muted: rgba(255,255,255,0.5);
  --border: rgba(255,255,255,0.1);
  --font-serif: 'Neovix', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'BDO Grotesk', 'Montserrat', sans-serif;
}
/* /ADMIN:colors */

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}
a { color: inherit; text-decoration: none; }

/* ============================================
   PERSISTENT STUDIO NAME (Fixed Left Side)
   ============================================ */
.studio-persistent {
  position: fixed;
  left: 24px;
  bottom: 28px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  z-index: 200;
  font-family: var(--font-sans);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.48em;
  color: #ffffff;
  text-transform: uppercase;
  padding: 0;
  pointer-events: none;
  white-space: nowrap;
}

/* ============================================
   HERO — SPLIT 50/50
   ============================================ */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  overflow: hidden;
}

/* Top nav inside hero */
.hero-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 500;
  padding: 32px 44px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.hero-nav a,
.hero-nav button {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
  transition: opacity 0.3s;
}

.hero-nav a:hover,
.hero-nav button:hover { opacity: 0.6; }

/* Each panel */
.hero-panel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Static hero background image */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.82);
}

/* Studio name overlaid on left panel */
.hero-studio-name {
  position: absolute;
  top: 50%;
  left: 36px;
  transform: translateY(-50%);
  z-index: 10;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  pointer-events: none;
  white-space: nowrap;
}


/* ============================================
   SECTION SHARED STYLES
   ============================================ */
.section-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--muted);
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ============================================
   INTRO SECTION
   ============================================ */
.intro-section {
  padding: 200px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.intro-image {
  width: 100%;
  aspect-ratio: 2 / 3;
  height: auto;
  object-fit: cover;
}

.intro-right { padding-left: 40px; }

.intro-headline {
  font-family: var(--font-serif);
  font-size: clamp(34px, 3.5vw, 52px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.18;
  color: #fff;
  margin-bottom: 32px;
}

.intro-body {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255,255,255,0.6);
  margin-bottom: 48px;
  text-align: justify;
}

.pub-logos {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.pub-logo {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.pub-separator {
  width: 1px;
  height: 14px;
  background: var(--border);
}

/* ============================================
   FULL-WIDTH IMAGE BREAK
   ============================================ */
.full-image-section {
  position: relative;
  width: 100%;
  height: 91vh;
  height: 91dvh;
  min-height: 624px;
  overflow: hidden;
}

.full-image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.full-image-section .img-caption {
  position: absolute;
  bottom: 36px;
  right: 60px;
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
.portfolio-section {
  padding: 200px 0;
  position: relative;
}

.portfolio-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 60px;
  margin-bottom: 60px;
}

.portfolio-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  align-self: center;
}

.portfolio-title {
  font-family: var(--font-serif);
  font-size: clamp(50px, 7vw, 110px);
  font-weight: 300;
  font-style: italic;
  color: #fff;
  line-height: 0.9;
}

.portfolio-caption {
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  color: var(--muted);
  max-width: 260px;
  line-height: 1.7;
  align-self: flex-end;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.portfolio-grid-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
  aspect-ratio: 2 / 3;
}

.portfolio-grid-item:hover .img-slide.active {
  transform: scale(1.04);
  filter: brightness(0.7);
}


/* ============================================
   MID TAGLINE
   ============================================ */
.tagline-section {
  padding: 240px 60px;
  text-align: center;
}

.tagline-text {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.8vw, 54px);
  font-style: italic;
  font-weight: 300;
  color: #fff;
  line-height: 1.3;
  max-width: 900px;
  margin: 0 auto;
}

.tagline-text em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.25);
  text-underline-offset: 6px;
}

.tagline-line {
  width: 1px;
  height: 60px;
  background: var(--border);
  margin: 48px auto 0;
}

/* ============================================
   FEATURED SECTION
   ============================================ */
.featured-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.featured-image-col { position: relative; overflow: hidden; }

.featured-image-col img {
  width: 100%;
  aspect-ratio: 2 / 3;
  height: auto;
  object-fit: cover;
  object-position: center top;
}

.featured-text-col {
  padding: 200px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-eyebrow {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.featured-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--muted);
}

.featured-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3vw, 46px);
  font-weight: 300;
  font-style: italic;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 28px;
}

.featured-body {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,0.6);
  text-align: justify;
  margin-bottom: 24px;
}

.btn-outline {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 300;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 16px 34px;
  transition: all 0.4s ease;
  align-self: flex-start;
  margin-top: 8px;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.65);
}

/* ============================================
   GALLERIES SECTION
   ============================================ */
.galleries-section {
  padding: 160px 0 180px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Left column: studio name */
.galleries-left {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  padding: 0 28px;
  flex-shrink: 0;
  user-select: none;
}

/* Center: grid */
.galleries-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 20%;
}

.galleries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  display: block;
  cursor: pointer;
  aspect-ratio: 2 / 3;
}

.gallery-item:hover .img-slide.active {
  transform: scale(1.05);
  filter: brightness(0.65);
}

/* Shared stacked slide images (portfolio + galleries) */
.img-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.9s ease-in-out,
              transform 0.9s cubic-bezier(0.25,0.46,0.45,0.94),
              filter 0.6s ease;
  filter: brightness(0.88);
}

.img-slide.active { opacity: 1; }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  padding: 22px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-label {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #fff;
}

/* Below the grid */
.galleries-below {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 52px 0 0;
  gap: 60px;
}

.galleries-description {
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255,255,255,0.55);
  max-width: 440px;
  text-align: justify;
}

.galleries-explore {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
  align-self: flex-end;
  transition: color 0.3s, letter-spacing 0.3s;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

.galleries-explore:hover {
  color: #fff;
  letter-spacing: 0.44em;
  border-bottom-color: rgba(255,255,255,0.6);
}

/* Right column: GALLERIES vertical */
.galleries-right {
  writing-mode: vertical-rl;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: clamp(50px, 7vw, 95px);
  font-weight: 200;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  padding: 0 5px;
  transform: translateX(-18vw);
  flex-shrink: 0;
  user-select: none;
  line-height: 1;
  align-self: center;
}

/* ============================================
   ABOUT TEXT SECTION
   ============================================ */
.about-text-section {
  padding: 240px 60px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.about-paragraph {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.85;
  color: rgba(255,255,255,0.65);
  text-align: justify;
  text-align-last: center;
}

/* ============================================
   FULL BLEED
   ============================================ */
.full-bleed {
  width: 100%;
  height: 98vh;
  height: 98dvh;
  min-height: 650px;
  position: relative;
  overflow: hidden;
}

.full-bleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  filter: brightness(0.72);
}

.full-bleed-text {
  position: absolute;
  bottom: 60px;
  left: 60px;
  max-width: 440px;
}

.full-bleed-headline {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 300;
  font-style: italic;
  color: #fff;
  line-height: 1.2;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  padding: 240px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

.about-left-title {
  font-family: var(--font-serif);
  font-size: clamp(60px, 7vw, 100px);
  font-weight: 300;
  font-style: italic;
  color: #fff;
  line-height: 1;
  text-align: center;
}

.about-section > div:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-right h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 300;
  font-style: italic;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 28px;
}

.about-right p {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,0.6);
  text-align: justify;
  margin-bottom: 20px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 60px 40px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.footer-logo {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #fff;
}

.footer-pub-logos {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--muted);
}

.footer-social { display: flex; gap: 20px; }

.footer-social a {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.footer-social a:hover { color: #fff; }

/* ============================================
   CONTACT PANEL
   ============================================ */
.contact-panel {
  position: fixed;
  top: 0;
  right: -520px;
  width: 480px;
  height: 100vh;
  background: #111;
  border-left: 1px solid var(--border);
  z-index: 1000;
  padding: 80px 56px;
  transition: right 0.6s cubic-bezier(0.77,0,0.175,1);
  overflow-y: auto;
  color: #c8a96e;
}

.contact-panel.open { right: 0; }

.contact-panel-close {
  position: absolute;
  top: 28px;
  right: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #c8a96e;
  font-size: 24px;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.contact-panel-close:hover { opacity: 1; }

.contact-panel h3 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-style: italic;
  font-weight: 300;
  color: #c8a96e;
  margin-bottom: 8px;
}

.contact-sub {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(200,169,110,0.6);
  margin-bottom: 48px;
}

.contact-form { display: flex; flex-direction: column; gap: 24px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(200,169,110,0.6);
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(200,169,110,0.25);
  color: #c8a96e;
  font-family: var(--font-serif);
  font-size: 16px;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: rgba(200,169,110,0.7);
}

.form-group textarea { resize: none; height: 80px; }

.form-submit {
  margin-top: 16px;
  background: none;
  border: 1px solid rgba(200,169,110,0.4);
  color: #c8a96e;
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  padding: 16px 32px;
  cursor: pointer;
  transition: all 0.4s;
  align-self: flex-start;
}

.form-submit:hover {
  background: rgba(200,169,110,0.08);
  border-color: rgba(200,169,110,0.8);
}

.contact-urgent {
  margin-top: 40px;
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(200,169,110,0.5);
  text-transform: uppercase;
}

.contact-urgent a {
  color: #c8a96e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

.panel-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   MENU OVERLAY (full-screen)
   ============================================ */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: #0d0d0d;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.menu-overlay-close {
  position: absolute;
  top: 32px;
  right: 44px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #c8a96e;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.menu-overlay-close:hover { opacity: 1; }

.menu-overlay nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.menu-overlay nav a {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-style: italic;
  font-weight: 300;
  color: #c8a96e;
  letter-spacing: 0.02em;
  transition: opacity 0.3s;
}

.menu-overlay nav a:hover { opacity: 0.5; }

.menu-overlay-footer {
  position: absolute;
  bottom: 40px;
  display: flex;
  gap: 28px;
}

.menu-overlay-footer a {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(200,169,110,0.5);
  transition: color 0.3s;
}

.menu-overlay-footer a:hover { color: #c8a96e; }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-fade {
  opacity: 0;
  transition: opacity 0.85s ease;
}
.reveal-fade.visible { opacity: 1; }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Instant exit — no stagger delay when leaving viewport */
.delay-1:not(.visible),
.delay-2:not(.visible),
.delay-3:not(.visible),
.delay-4:not(.visible) { transition-delay: 0s; }

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  /* Use translate3d in JS so we don't trigger layout. mix-blend-mode removed —
     it forced full-page re-composite on every mouse move. Difference effect
     was causing the portfolio masonry to flicker constantly during hover. */
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.25s, height 0.25s, background 0.25s, border 0.25s;
  will-change: transform;
}

.custom-cursor.expanded {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.5);
}

/* ============================================
   GALLERY PAGE STYLES
   ============================================ */
.gallery-page-hero {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 500px;
  overflow: hidden;
}

.gallery-page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.72);
}

.gallery-page-hero-text {
  position: absolute;
  bottom: 60px;
  left: 60px;
}

.gallery-page-back {
  position: absolute;
  top: 36px;
  left: 60px;
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s;
}

.gallery-page-back::before {
  content: '←';
  font-size: 14px;
}

.gallery-page-back:hover { color: #fff; }

.gallery-page-subtitle {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}

.gallery-page-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 64px);
  font-style: italic;
  font-weight: 300;
  color: #fff;
  line-height: 1.1;
}

.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 60px 4px 4px;
}

.gallery-photo-grid .gp-item {
  overflow: hidden;
  position: relative;
  aspect-ratio: 2 / 3;
}

.gallery-photo-grid .gp-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}

.gallery-photo-grid .gp-item:hover img {
  transform: scale(1.04);
}

.gallery-page-footer {
  padding: 80px 60px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.gallery-page-footer-logo {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #fff;
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .intro-section {
    grid-template-columns: 1fr;
    padding: 160px 40px;
    gap: 48px;
  }
  .intro-right { padding-left: 0; }
  .intro-image { height: 420px; }

  .portfolio-section { padding: 120px 0; }
  .portfolio-header { padding: 0 40px; }

  .tagline-section { padding: 160px 40px; }

  .galleries-section { padding: 120px 0; }
  .galleries-center { padding: 0; }
  .galleries-grid { grid-template-columns: repeat(2, 1fr); }
  .galleries-right { font-size: 48px; }

  .featured-section { grid-template-columns: 1fr; }
  .featured-text-col { padding: 120px 40px; }

  .about-text-section { padding: 160px 40px; }
  .about-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 160px 40px;
  }
  .about-left-title { display: none; }

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

  .studio-persistent { font-size: 22px; letter-spacing: 0.36em; }
}

@media (max-width: 768px) {
  .hero-studio-name { font-size: 9px; letter-spacing: 0.3em; left: 20px; }
  .hero-nav { padding: 24px 20px; gap: 20px; }

  .intro-section { padding: 80px 24px; }
  .intro-image { height: auto; }

  .portfolio-section { padding: 80px 0; }
  .portfolio-header { padding: 0 24px; margin-bottom: 40px; }

  .tagline-section { padding: 80px 24px; }

  .featured-text-col { padding: 80px 24px; }

  .galleries-section { flex-direction: column; padding: 80px 20px; }
  .galleries-center { padding: 0; }
  .galleries-left { writing-mode: horizontal-tb; transform: none; padding: 0 0 24px; }
  .galleries-right { display: none; }
  .galleries-grid { grid-template-columns: repeat(2, 1fr); }

  .about-text-section { padding: 80px 24px; }
  .about-section { padding: 80px 24px; }

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

  .contact-panel { width: 100%; right: -100%; }
  .contact-panel.open { right: 0; }

  footer { padding: 48px 28px 32px; }
  .footer-top { flex-direction: column; gap: 28px; align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }

  .studio-persistent { font-size: 11px; letter-spacing: 0.22em; bottom: 16px; left: 10px; }

  .full-bleed-text { left: 28px; bottom: 40px; }
  .galleries-below { flex-direction: column; gap: 24px; }
  .footer-pub-logos { flex-wrap: wrap; gap: 16px; }

  .contact-panel { padding: 60px 24px; }
  .full-bleed { min-height: 416px; }
  .full-image-section { min-height: 390px; }

  .gallery-photo-grid { grid-template-columns: 1fr; }
  .gallery-page-hero-text { left: 28px; bottom: 40px; }
  .gallery-page-back { left: 28px; }
  .gallery-page-footer { flex-direction: column; gap: 24px; padding: 48px 28px; }

  .portfolio-masonry { grid-template-columns: 1fr; }
  .portfolio-hero-split { grid-template-columns: 1fr; }
  .portfolio-hero-left { padding: 40px 28px; justify-content: flex-start; }
  .portfolio-hero-caption { padding: 28px 28px 40px; }
  .portfolio-page-label { display: none; }
}

/* ============================================
   PORTFOLIO PAGE
   ============================================ */

/* Vertical "PORTFOLIO" label — fixed left side */
.portfolio-page-label {
  position: fixed;
  left: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: 50% 50%;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  pointer-events: none;
  z-index: 200;
  white-space: nowrap;
}

/* Split hero — "PORTFOLIO" label left (1/3) · image+caption right (2/3) */
.portfolio-hero-split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  border-bottom: 1px solid var(--border);
}

/* Left column: bold horizontal label, centred */
.portfolio-hero-left {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 64px 10px 0 0;
}

.portfolio-page-word {
  font-family: var(--font-sans);
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* Right column: image + caption stacked */
.portfolio-hero-right {
  display: flex;
  flex-direction: column;
}

/* Image wrapper — 2/3 aspect ratio shortened 30% → 2/2.1 ≈ 20/21 */
.portfolio-hero-img-wrap {
  position: relative;
  aspect-ratio: 20 / 21;
  overflow: hidden;
  flex-shrink: 0;
}

.portfolio-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Caption beneath the image */
.portfolio-hero-caption {
  padding: 40px 48px 52px;
  border-top: 1px solid var(--border);
}

.portfolio-hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.portfolio-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.2vw, 52px);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1.12;
}

/* Portfolio grid — same pattern as the gallery pages, which don't flicker.
   Fixed CSS Grid with locked-in 2:3 aspect ratio slots. The slot size is
   determined by CSS before any image loads, so there are no layout shifts
   when lazy images arrive — they just fade into pre-sized cells. */
.portfolio-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 288px 0 0;
  background: var(--bg);
}

.pm-item {
  overflow: hidden;
  position: relative;
  aspect-ratio: 2 / 3;               /* slot is sized BEFORE image loads */
  transform: translateZ(0);          /* GPU layer for smooth hover scale */
  -webkit-transform: translateZ(0);
}

.pm-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;                 /* crop to fit the fixed 2:3 slot */
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pm-item:hover img {
  transform: scale(1.03);
  will-change: transform;            /* only active during hover, not on all 90 images */
}

/* Portfolio page responsive */
@media (max-width: 1024px) {
  .portfolio-masonry { grid-template-columns: repeat(2, 1fr); }
}
