/* ===== BOGOMAZ PHOTO STUDIO — Global Styles ===== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #0a0a0a;
  --color-bg-2: #111111;
  --color-bg-3: #181818;
  --color-surface: #1a1a1a;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.2);

  --color-white: #ffffff;
  --color-off-white: #f5f5f5;
  --color-cream: #e8e0d5;
  --color-grey-light: #b0b0b0;
  --color-grey: #6b6b6b;
  --color-grey-dark: #3a3a3a;

  --color-accent: #c8a882;
  --color-accent-2: #d4846a;
  --color-accent-glow: rgba(200, 168, 130, 0.15);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width: 1400px;
  --section-padding: clamp(80px, 10vw, 140px);
  --container-padding: clamp(20px, 5vw, 80px);

  --shadow-sm: 0 2px 20px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 80px rgba(0, 0, 0, 0.8);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-off-white);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== SECTION FOCUS TRANSITION ===== */
.focus-section {
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
    filter 1.2s cubic-bezier(0.4, 0, 0.2, 1),
    transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.25;
  /* Increased from 0.15 for better accessibility */
  filter: grayscale(40%) brightness(0.6) blur(1px);
  /* Reduced blur and grayscale */
  transform: scale(0.99);
  /* Subtle scale */
  will-change: opacity, filter, transform;
}

@media (max-width: 768px) {
  .focus-section {
    opacity: 0.35;
    /* Even higher for mobile */
    filter: grayscale(20%) brightness(0.7) blur(0px);
    /* Minimal effects on mobile */
    transform: scale(1);
    /* No scale on mobile to avoid layout shifts */
  }
}

.focus-section.active-focus {
  opacity: 1;
  filter: grayscale(0%) brightness(1) blur(0px);
  transform: scale(1);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-grey-dark);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* ===== SELECTION ===== */
::selection {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* ===== CURSOR ===== */
.cursor {
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease, opacity 0.3s ease;
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
  opacity: 0.6;
}

.cursor-ring.expand {
  width: 60px;
  height: 60px;
  opacity: 0.3;
}

@media (max-width: 768px) {

  .cursor,
  .cursor-ring {
    display: none;
  }
}

/* ===== LOADER ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-name {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--color-white);
}

.loader-line {
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.loader-line.active {
  width: 200px;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), padding var(--transition);
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px var(--container-padding);
  border-bottom: 1px solid var(--color-border);
}

.nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: -60px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: -1;
  pointer-events: none;
  opacity: 1;
  transition: opacity var(--transition);
}

.nav.scrolled::before {
  opacity: 0;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--color-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav-logo:hover {
  color: var(--color-accent);
}

.nav-logo span {
  color: var(--color-accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-menu a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-menu a:hover {
  color: var(--color-white);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent) !important;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(4px);
  font-size: 11px !important;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--transition), color var(--transition) !important;
}

.nav-cta:hover {
  background: var(--color-accent) !important;
  color: var(--color-bg) !important;
}

.nav-cta::after {
  display: none !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--color-white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}

.nav-mobile.open {
  transform: translateX(0);
}

.nav-mobile-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.nav-mobile-menu li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav-mobile.open .nav-mobile-menu li {
  opacity: 1;
  transform: translateY(0);
}

.nav-mobile.open .nav-mobile-menu li:nth-child(1) {
  transition-delay: 0.1s;
}

.nav-mobile.open .nav-mobile-menu li:nth-child(2) {
  transition-delay: 0.2s;
}

.nav-mobile.open .nav-mobile-menu li:nth-child(3) {
  transition-delay: 0.3s;
}

.nav-mobile.open .nav-mobile-menu li:nth-child(4) {
  transition-delay: 0.4s;
}

.nav-mobile.open .nav-mobile-menu li:nth-child(5) {
  transition-delay: 0.5s;
}

.nav-mobile a {
  font-family: var(--font-serif);
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 300;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

.nav-mobile a:hover {
  color: var(--color-accent);
}

.nav-mobile-socials {
  display: flex;
  gap: 32px;
  margin-top: 48px;
}

.nav-mobile-socials a {
  font-family: var(--font-sans) !important;
  font-size: 11px !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-grey) !important;
}

@media (max-width: 860px) {
  .nav-menu {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }
}

/* ===== CONTAINERS ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--color-bg);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.05);
  transition: transform 8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active img {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(10, 10, 10, 0.45) 0%,
      rgba(10, 10, 10, 0.35) 40%,
      rgba(10, 10, 10, 0.65) 75%,
      rgba(10, 10, 10, 0.98) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--container-padding) clamp(60px, 8vh, 100px);
  width: 100%;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.3s;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--color-white);
  max-width: 900px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards 0.5s;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 0, 0, 0.3);
}

.hero-title em {
  font-style: italic;
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 300;
  color: var(--color-grey-light);
  max-width: 480px;
  margin-top: 24px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.8s;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 1s;
}

.hero-indicators {
  position: absolute;
  right: var(--container-padding);
  bottom: clamp(60px, 8vh, 100px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-grey);
  cursor: pointer;
  transition: background var(--transition), height var(--transition);
}

.hero-dot.active {
  background: var(--color-accent);
  height: 24px;
  border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 168, 130, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.btn svg {
  transition: transform var(--transition);
}

.btn:hover svg {
  transform: translateX(4px);
}

/* ===== SECTION HEADINGS ===== */
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--color-accent);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.section-title em {
  font-style: italic;
  color: var(--color-accent);
}

.section-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--color-grey-light);
  line-height: 1.75;
  max-width: 560px;
  margin-top: 20px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.45s;
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: var(--section-padding) 0;
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 24px;
  font-family: var(--font-serif);
  text-align: center;
}

.about-image-badge strong {
  display: block;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}

.about-image-badge span {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
  font-family: var(--font-sans);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);

}

.about-stat-num {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 300;
  color: var(--color-accent);
  line-height: 1;
}

.about-stat-label {
  font-size: 12px;
  font-weight: 300;
  color: var(--color-grey-light);
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.about-logos {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.about-logos p {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-grey);
  margin-bottom: 20px;
}

.about-logos-list {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.about-logos-list span {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-grey-dark);
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

.about-logos-list span:hover {
  color: var(--color-grey-light);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-wrap img {
    height: 500px;
  }
}

@media (max-width: 600px) {
  .about-grid {
    padding: 0 10px;
  }

  .about-image-wrap img {
    height: 380px;
    width: calc(100% - 20px);
    margin: 0 auto;
  }

  .about-image-badge {
    padding: 14px;
    right: 0;
    bottom: -10px;
  }

  .about-image-badge strong {
    font-size: 24px;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    /* Always one row */
    gap: 16px;
    margin-top: 32px;
    padding-top: 32px;
    margin-left: 10px;
    margin-right: 10px;
  }

  .about-stat-num {
    font-size: clamp(28px, 8vw, 40px);
    /* Scaling font size */
  }

  .about-stat-label {
    font-size: 10px;
  }
}

/* ===== SERVICES SECTION ===== */
.services {
  padding: var(--section-padding) 0;
  background: var(--color-bg-2);
}

.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 64px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 520px;
  background: var(--color-bg-3);
  border: 1px solid var(--color-border);
  display: block;
  text-decoration: none;
  color: inherit;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--transition-slow), filter var(--transition);
  filter: grayscale(40%);
}

.service-card:hover img {
  transform: scale(1.06);
  filter: grayscale(0%);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.2) 45%, rgba(10, 10, 10, 0.02) 100%);
  transition: background var(--transition);
}

.service-card:hover .service-card-overlay {
  background: linear-gradient(to top, rgba(10, 10, 10, 0.97) 0%, rgba(10, 10, 10, 0.4) 55%, rgba(10, 10, 10, 0.1) 100%);
}

.service-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
}

.service-card-num {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--color-accent);
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}

.service-card-title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 300;
  color: var(--color-white);
  line-height: 1.2;
  transition: transform var(--transition);
}

.service-card-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--color-grey-light);
  line-height: 1.7;
  margin-top: 14px;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), opacity var(--transition);
  opacity: 0;
}

.service-card:hover .service-card-desc {
  max-height: 140px;
  opacity: 1;
}

.service-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 20px;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
}

.service-card:hover .service-card-cta {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-card {
    height: 420px;
  }

  .service-card-desc {
    max-height: 140px;
    opacity: 1;
  }

  .service-card-cta {
    opacity: 1;
    transform: none;
  }
}

/* ===== PORTFOLIO / GALLERY ===== */
.portfolio {
  padding: var(--section-padding) 0;
  background: var(--color-bg);
}

.portfolio-header {
  text-align: center;
  margin-bottom: 64px;
}

.portfolio-header .section-label {
  justify-content: center;
}

.portfolio-header .section-label::before {
  display: none;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 380px;
  gap: 6px;
}

.portfolio-grid--2col {
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
}

.portfolio-grid--2col-hero {
  grid-template-columns: repeat(2, minmax(0, 420px));
  grid-template-rows: 500px;
  justify-content: center;
}

.portfolio-grid--4col {
  grid-template-columns: repeat(4, minmax(0, 280px));
  justify-content: center;
}

@media (max-width: 768px) {
  .portfolio-grid--2col-hero {
    grid-template-rows: 280px;
  }
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-bg-3);
}

.portfolio-item.tall {
  grid-row: span 2;
}

.portfolio-item.wide {
  grid-column: span 2;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow), filter var(--transition);
  filter: grayscale(15%);
}

.portfolio-item:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.portfolio-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.portfolio-item:hover .portfolio-item-overlay {
  background: rgba(10, 10, 10, 0.4);
}

.portfolio-item-overlay-icon {
  width: 60px;
  height: 60px;
  border: 1px solid var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--transition), transform var(--transition);
  color: var(--color-white);
  font-size: 20px;
}

.portfolio-item:hover .portfolio-item-overlay-icon {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox consolidated at the end of file */

@media (max-width: 860px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    /* Keep 3 columns like desktop or 2 if too tight */
    grid-auto-rows: 250px;
    gap: 4px;
  }

  .portfolio-item.wide {
    grid-column: span 2;
  }

  .portfolio-item.tall {
    grid-row: span 2;
  }
}

@media (max-width: 540px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns for very small screens to avoid extreme scaling */
    grid-auto-rows: 200px;
    gap: 4px;
  }

  .portfolio-item.wide {
    grid-column: span 2;
    /* wide is full width here */
  }

  .portfolio-item.tall {
    grid-row: span 2;
  }
}

/* ===== PROCESS SECTION ===== */
.process {
  padding: var(--section-padding) 0;
  background: var(--color-bg-2);
  overflow: hidden;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: padding var(--transition);
}

.process-step:last-child {
  border-bottom: none;
}

.process-step:hover {
  padding-left: 8px;
}

.process-step-num {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 300;
  color: var(--color-border);
  line-height: 1;
  min-width: 56px;
  transition: color var(--transition);
}

.process-step:hover .process-step-num {
  color: var(--color-accent);
}

.process-step-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: 8px;
  transition: color var(--transition);
}

.process-step:hover .process-step-title {
  color: var(--color-accent);
}

.process-step-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--color-grey);
  line-height: 1.7;
}

.process-image {
  position: relative;
}

.process-image img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  object-position: center;
}

.process-image-accent {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 160px;
  height: 160px;
  border: 1px solid var(--color-accent);
  opacity: 0.3;
  z-index: -1;
}

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .process-image {
    display: none;
  }
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: var(--section-padding) 0;
  background: var(--color-bg);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 64px;
}

.testimonials-header .section-label {
  justify-content: center;
}

.testimonials-header .section-label::before {
  display: none;
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial {
  flex: 0 0 100%;
  padding: 0 clamp(20px, 10vw, 160px);
  text-align: center;
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 300;
  font-style: italic;
  color: var(--color-off-white);
  line-height: 1.6;
  margin-bottom: 40px;
}

.testimonial-quote::before {
  content: '"';
  color: var(--color-accent);
  font-size: 1.5em;
  line-height: 0;
  vertical-align: -0.3em;
}

.testimonial-quote::after {
  content: '"';
  color: var(--color-accent);
  font-size: 1.5em;
  line-height: 0;
  vertical-align: -0.3em;
}

.testimonial-author {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-grey-light);
}

.testimonial-service {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 6px;
}

.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}

.t-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-grey-dark);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.t-dot.active {
  background: var(--color-accent);
  transform: scale(1.4);
}

/* ===== CTA BAND ===== */
.cta-band {
  padding: clamp(80px, 12vh, 140px) 0;
  background: var(--color-bg-2);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: 'BOGOMAZ';
  position: absolute;
  font-family: var(--font-serif);
  font-size: clamp(100px, 15vw, 200px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.02);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.05em;
}

.cta-band .section-label {
  justify-content: center;
}

.cta-band .section-label::before {
  display: none;
}

.cta-band-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 300;
  color: var(--color-white);
  margin: 24px 0;
  line-height: 1.15;
}

.cta-band-title em {
  font-style: italic;
  color: var(--color-accent);
}

.cta-band-sub {
  font-size: 15px;
  color: var(--color-grey-light);
  max-width: 500px;
  margin: 0 auto 48px;
  line-height: 1.75;
}

.cta-band-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--color-border);
  color: var(--color-grey-light);
  transition: var(--transition);
}

.cta-social:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.cta-social svg {
  width: 18px;
  height: 18px;
}

/* ===== FAQ ===== */
.faq {
  padding: var(--section-padding) 0;
  background: var(--color-bg);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 300;
  color: var(--color-white);
  gap: 16px;
  transition: color var(--transition);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-icon {
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-grey-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  color: var(--color-grey);
  transition: transform var(--transition), border-color var(--transition), color var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-content {
  min-height: 0;
}

.faq-answer-content p {
  font-size: 14px;
  font-weight: 300;
  color: var(--color-grey-light);
  line-height: 1.8;
  padding-bottom: 24px;
}

@media (max-width: 900px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-bg-2);
  padding: 80px 0 32px;
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--color-border);
}



.footer-logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-white);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-logo span {
  color: var(--color-accent);
}

.footer-tagline {
  font-size: 13px;
  font-weight: 300;
  color: var(--color-grey);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 28px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-social {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-grey);
  text-decoration: none;
  transition: var(--transition);
  font-size: 14px;
}

.footer-social:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-grey-light);
  margin-bottom: 24px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  font-size: 13px;
  font-weight: 300;
  color: var(--color-grey);
  text-decoration: none;
  transition: color var(--transition);
  letter-spacing: 0.03em;
}

.footer-col ul a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 12px;
  color: var(--color-grey-dark);
  letter-spacing: 0.05em;
}

.footer-seo {
  font-size: 12px;
  color: var(--color-grey-dark);
  letter-spacing: 0.03em;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition), transform var(--transition);
  border: none;
  font-size: 18px;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-off-white);
}

/* Lightbox Navigation */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  backdrop-filter: blur(10px);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 32px;
  right: 32px;
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  opacity: 0.5;
  font-size: 48px;
  line-height: 1;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 2010;
}

.lightbox-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15%;
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition), background var(--transition);
  z-index: 2005;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.03);
}

.lightbox-prev {
  left: 0;
}

.lightbox-next {
  right: 0;
}

@media (max-width: 768px) {
  .lightbox-content {
    padding: 20px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 25%;
    opacity: 0.3;
    /* visible on mobile by default */
  }

  .lightbox-close {
    top: 20px;
    right: 20px;
  }
}

/* ===== MARQUEE ===== */
.marquee-section {
  padding: 40px 0;
  background: var(--color-accent);
  overflow: hidden;
}

.marquee-inner {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee 18s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 32px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-bg);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.marquee-item::after {
  content: '✦';
  font-size: 12px;
  color: rgba(10, 10, 10, 0.4);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ===== KEYFRAMES ===== */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== UTILITY ===== */
.text-accent {
  color: var(--color-accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ===== SERVICE PAGES ===== */
.hero-service {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: var(--color-white);
}

.hero-service-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-service-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-service-content {
  z-index: 10;
  width: 100%;
  padding: 0 20px;
}

.hero-service-content .section-label {
  margin-bottom: 16px;
  color: var(--color-accent);
  justify-content: center;
}

.hero-service-content .hero-title,
.hero-service-content .hero-subtitle {
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 0, 0, 0.3);
}

.hero-service .hero-overlay {
  background: linear-gradient(to bottom,
      rgba(10, 10, 10, 0.4) 0%,
      rgba(10, 10, 10, 0.5) 50%,
      rgba(10, 10, 10, 0.8) 100%);
}

.service-details {
  padding: var(--section-padding) 0;
}

@media (max-width: 768px) {
  .hero-service-content .hero-title {
    font-size: clamp(32px, 10vw, 48px);
    line-height: 1.1;
  }
}

.service-details-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
  transition: padding var(--transition);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-item:hover {
  padding-left: 8px;
}

.feature-num {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 300;
  color: var(--color-border);
  line-height: 1;
  min-width: 48px;
  transition: color var(--transition);
}

.feature-item:hover .feature-num {
  color: var(--color-accent);
}

.feature-item h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--color-white);
  transition: color var(--transition);
}

.feature-item:hover h3 {
  color: var(--color-accent);
}

.feature-item p {
  color: var(--color-grey-light);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .service-details-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .hero-service {
    height: 50vh;
  }

  .feature-item {
    gap: 16px;
    padding: 20px 0;
  }

  .feature-num {
    font-size: 28px;
    min-width: 40px;
  }

  .feature-item h3 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .feature-item {
    flex-direction: column;
    gap: 8px;
  }

  .feature-num {
    font-size: 24px;
    opacity: 0.6;
  }
}