/*
Theme Name: D/fference
Theme URI: https://sa-brand.co.il
Author: Shahar Ariel
Author URI: https://sa-brand.co.il
Description: Portfolio theme for D/fference creative studio. Requires ACF Pro and Contact Form 7.
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: difference
*/

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #1a0a10;
  color: #fff;
  cursor: default;
}

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

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #1a0a10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preloader__stripes {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(100% / 12 - 1px),
    rgba(200, 140, 155, 0.1) calc(100% / 12 - 1px),
    rgba(200, 140, 155, 0.1) calc(100% / 12)
  );
  pointer-events: none;
}

.preloader__stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-height: 80vh;
  overflow: visible;
}

.preloader__preview {
  width: 260px;
  height: 180px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
}

.preloader__stack img:not(.preloader__preview) {
  width: 260px;
  height: 180px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  flex-shrink: 0;
}

.preloader__counter {
  position: absolute;
  bottom: 40px;
  left: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  opacity: 1;
  z-index: 2;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.3);
}

/* Hide main UI during preload */
body.is-preloading .header,
body.is-preloading .footer,
body.is-preloading .scroll-viewport,
body.is-preloading .bg-layer {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .preloader__preview {
    width: 70vw;
    height: auto;
    aspect-ratio: 4/3;
  }

  .preloader__stack img:not(.preloader__preview) {
    width: 70vw;
    height: auto;
    aspect-ratio: 4/3;
  }

  .preloader__counter {
    font-size: 2.5rem;
    bottom: 30px;
    left: 30px;
  }
}

@media (max-width: 600px) {
  .preloader__preview {
    width: 80vw;
    height: auto;
    aspect-ratio: 4/3;
  }

  .preloader__stack img:not(.preloader__preview) {
    width: 80vw;
    height: auto;
    aspect-ratio: 4/3;
  }

  .preloader__counter {
    font-size: 2rem;
    bottom: 24px;
    left: 24px;
  }
}

/* ============================================
   SKIP LINK — Visible on focus for keyboard
   ============================================ */
.skip-link {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 12px 24px;
  background: #fff;
  color: #1a0a10;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: none;
}

/* ============================================
   GLOBAL FOCUS STYLES
   ============================================ */
:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
}

/* ============================================
   SCREEN READER ONLY UTILITY
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   SHARED CENTER COLUMN WIDTH
   ============================================ */
:root {
  --column-width: 540px;
  --column-side-padding: 40px;
}

@media (max-width: 900px) {
  :root {
    --column-width: 90vw;
    --column-side-padding: 20px;
  }
}

/* ============================================
   BACKGROUND LAYER (decorative)
   ============================================ */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-layer__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  filter: brightness(0.35) saturate(0.8);
}

.bg-layer__img.is-active {
  opacity: 1;
}

.bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 10, 16, 0.4) 0%,
    rgba(26, 10, 16, 0.25) 50%,
    rgba(26, 10, 16, 0.5) 100%
  );
  pointer-events: none;
  transition: opacity 0.6s ease;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  width: var(--column-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(40, 20, 28, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header__logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
}

/* Hamburger / X toggle */
.header__menu-btn {
  position: relative;
  width: 30px;
  height: 22px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  color: #fff;
}

.header__menu-btn span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: #fff;
  transform-origin: center center;
}

.header__menu-btn span:nth-child(1) { top: 0; }
.header__menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.header__menu-btn span:nth-child(3) { bottom: 0; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  width: var(--column-width);
  display: flex;
  flex-direction: column;
  padding: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  background: rgba(40, 20, 28, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 24px;
}

.footer a,
.footer span {
  opacity: 0.8;
  transition: opacity 0.3s ease;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
}

.footer a:hover,
.footer a:focus-visible {
  opacity: 1;
}

.footer__logo {
  font-weight: 700;
  opacity: 1 !important;
}

.footer--inline {
  position: static;
  left: auto;
  transform: none;
  width: var(--column-width);
  margin: 0 auto;
}

.footer__recaptcha {
  width: 100%;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.02em;
  padding: 0 24px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__recaptcha a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
}

.footer__recaptcha a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   MENU PANEL
   ============================================ */
.menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  visibility: hidden;
}

.menu.is-open {
  pointer-events: all;
  visibility: visible;
}

.menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 10, 16, 0.55);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  opacity: 0;
}

.menu__inner {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--column-width);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding-bottom: 100px;
  overflow: hidden;
}

.menu__link {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: clamp(2.8rem, 5vw, 4rem);
  color: #fff;
  letter-spacing: 0.02em;
  cursor: pointer;
  overflow: hidden;
  padding: 6px 0;
  opacity: 0;
  transform: translateY(40px);
}

.menu__link:focus-visible {
  outline-offset: 6px;
}

/* ============================================
   STAGGER LETTER HOVER — Text-swap reveal
   ============================================ */
.stagger-letter {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
}

.stagger-letter__top,
.stagger-letter__bottom {
  display: block;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

.stagger-letter__bottom {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(110%);
}

[data-stagger]:hover .stagger-letter__top,
[data-stagger]:focus-visible .stagger-letter__top {
  transform: translateY(-110%);
}

[data-stagger]:hover .stagger-letter__bottom,
[data-stagger]:focus-visible .stagger-letter__bottom {
  transform: translateY(0);
}

/* Contact info row at the bottom of menu */
.menu__contact {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: var(--column-width);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
}

.menu__contact-group {
  font-family: 'Poppins', sans-serif;
}

.menu__contact-label {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 4px;
}

.menu__contact-value {
  font-size: 0.78rem;
  opacity: 0.9;
  line-height: 1.5;
}

.menu__contact-value a {
  transition: opacity 0.3s ease;
}

.menu__contact-value a:hover,
.menu__contact-value a:focus-visible {
  opacity: 0.6;
}

/* ============================================
   MENU — SUBNAV & CONTENT PANELS
   ============================================ */
/* Hide vertical links when panel is active */
.menu__inner--panel .menu__link {
  display: none;
}

.menu__inner--panel {
  justify-content: flex-start;
  align-items: stretch;
  padding: 80px 24px 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.menu__subnav {
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 30px;
  flex-shrink: 0;
}

.menu__inner--panel .menu__subnav {
  display: flex;
}

/* Hide fixed contact bar when panel is open — it overlaps content */
.menu.has-panel .menu__contact {
  display: none;
}

.menu__subnav-link {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #fff;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.menu__subnav-link:hover,
.menu__subnav-link:focus-visible {
  opacity: 1;
}

.menu__subnav-link.is-active {
  font-weight: 600;
  opacity: 1;
}

.menu__subnav-sep {
  opacity: 0.3;
  font-size: 0.85rem;
  user-select: none;
}

.menu__panel {
  flex: 1;
  min-height: 0;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.menu__panel.is-active {
  visibility: visible;
  position: relative;
}

.menu__panel-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-bottom: 120px;
}

.menu__panel-text {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: #fff;
  opacity: 0.9;
}

.menu__panel-text p {
  margin-bottom: 0.6em;
}

.menu__panel-text strong {
  font-weight: 500;
}

/* Accordion */
.accordion {
  width: 100%;
}

.accordion__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.accordion__header {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  text-align: left;
  padding: 16px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: opacity 0.3s ease;
}

.accordion__header::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.5;
  transition: transform 0.3s ease;
}

.accordion__item.is-open .accordion__header::after {
  content: '\2212';
}

.accordion__header:hover {
  opacity: 0.7;
}

.accordion__body {
  height: 0;
  overflow: hidden;
}

.accordion__list {
  list-style: none;
  padding: 0 0 16px;
}

.accordion__list li {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: #fff;
  opacity: 0.75;
  padding: 5px 0 5px 12px;
}

/* Logo grid (Clients) */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.logo-grid__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.logo-grid__item img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.logo-grid__item:hover img {
  opacity: 1;
}

.logo-grid__placeholder {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: #fff;
  opacity: 0.5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Contact form — floating labels */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-form__field {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  padding: 24px 0 10px;
  resize: none;
}

.contact-form__field label {
  position: absolute;
  left: 0;
  top: 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  color: #fff;
  opacity: 0.5;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: left top;
}

.contact-form__field input:focus ~ label,
.contact-form__field input:not(:placeholder-shown) ~ label,
.contact-form__field textarea:focus ~ label,
.contact-form__field textarea:not(:placeholder-shown) ~ label {
  top: 4px;
  font-size: 0.68rem;
  opacity: 0.35;
}

.contact-form__field input:focus ~ label,
.contact-form__field textarea:focus ~ label {
  opacity: 0.7;
}

.contact-form__field textarea {
  min-height: 60px;
}

.contact-form__submit {
  margin-top: 30px;
  width: 100%;
  padding: 16px;
  background: #fff;
  color: #1a0a10;
  border: none;
  border-radius: 30px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.contact-form__submit:hover {
  opacity: 0.85;
}

.contact-form__consent {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  color: #fff;
  opacity: 0.7;
  cursor: pointer;
}

.contact-form__consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #fff;
  flex-shrink: 0;
}

.contact-form__consent a {
  text-decoration: underline;
  opacity: 0.9;
}

/* ============================================
   SCROLL VIEWPORT
   ============================================ */
.scroll-viewport {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
}

.scroll-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ============================================
   PROJECT ROW
   ============================================ */
.project-row {
  position: absolute;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 30px 40px;
  cursor: pointer;
  will-change: transform;
}

.project-row::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 40px;
  right: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.project-row__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.5s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}

.project-row:hover .project-row__overlay,
.project-row:focus-visible .project-row__overlay {
  clip-path: inset(0 0 0 0);
}

.project-row:focus-visible {
  outline: none;
}

/* Focus ring inside the row — inset so it doesn't clip */
.project-row:focus-visible::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  pointer-events: none;
  z-index: 3;
}

.project-row__left {
  position: relative;
  z-index: 2;
  padding-right: 20px;
  min-width: 0;
}

.project-row__number {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  opacity: 0.65;
}

.project-row__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.project-row__center {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-row__thumb-wrapper {
  position: relative;
  width: 260px;
  height: 180px;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.5s ease;
}

.project-row:hover .project-row__thumb-wrapper {
  transform: scale(1.03);
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.5);
}

.project-row__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-row:hover .project-row__thumb {
  transform: scale(1.08);
}

.project-row__right {
  position: relative;
  z-index: 2;
  text-align: right;
  padding-left: 20px;
}

.project-row__category {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

/* ============================================
   FULLSCREEN TRANSITION OVERLAY
   ============================================ */
.project-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
}

.project-overlay.is-active {
  pointer-events: all;
}

.project-overlay__bg {
  position: absolute;
  inset: 0;
  background: #1a0a10;
  opacity: 0;
  z-index: 1;
}

.project-overlay__image {
  position: absolute;
  overflow: hidden;
}

.project-overlay__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-overlay__title {
  position: absolute;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 1.05;
  color: #fff;
  white-space: nowrap;
}

.project-overlay__close {
  position: absolute;
  top: 30px;
  right: 40px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  opacity: 0;
  z-index: 10;
  background: none;
  border: none;
  padding: 0;
}

.project-overlay__close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
}

.project-overlay__close::before,
.project-overlay__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 1.5px;
  background: #fff;
}

.project-overlay__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.project-overlay__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ============================================
   LIVE REGION for screen reader announcements
   ============================================ */
.a11y-announcer {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .stagger-letter__top,
  .stagger-letter__bottom {
    transition-duration: 0.01ms !important;
  }

  .bg-layer__img {
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .project-row {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 10px;
    text-align: center;
    padding: 20px 20px;
  }

  .project-row__left {
    padding-right: 0;
    order: 1;
  }

  .project-row__center { order: 0; }

  .project-row__right {
    text-align: center;
    padding-left: 0;
    order: 2;
  }

  .project-row__title {
    font-size: clamp(2rem, 8vw, 3rem);
    white-space: normal;
  }

  .project-row__thumb-wrapper {
    width: 70%;
    height: auto;
    aspect-ratio: 4/3;
  }

  .menu__inner {
    padding-bottom: 40px;
  }

  .menu__contact {
    display: none !important;
  }

  .menu__subnav {
    flex-wrap: wrap;
    gap: 8px;
  }

  .menu__subnav-link {
    font-size: 0.82rem;
  }

  .footer__links {
    font-size: 0.68rem;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .project-row__thumb-wrapper {
    width: 80%;
    height: auto;
  }

  .project-row__title {
    font-size: clamp(1.6rem, 9vw, 2.4rem);
  }

  .menu__link {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}

/* ============================================
   PROJECT DETAIL PAGE
   ============================================ */
.project-page {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #fff;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.project-page.is-active {
  visibility: visible;
  pointer-events: all;
}

.project-page__scroll {
  overflow-y: auto;
  height: 100%;
  -webkit-overflow-scrolling: touch;
}

/* Hero */
.pp-hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #1a0a10;
}

.pp-hero__img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.pp-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.pp-hero__gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  pointer-events: none;
  z-index: 1;
}

.pp-hero__info {
  position: absolute;
  bottom: 60px;
  left: 60px;
  z-index: 2;
  opacity: 0;
}

.pp-hero__number {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 6px;
  color: #fff;
}

.pp-hero__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  color: #fff;
  margin: 0;
}

/* Description */
.pp-desc {
  max-width: 960px;
  margin: 0;
  padding: 70px 60px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  line-height: 1.9;
  color: #444;
  letter-spacing: 0.015em;
}

/* Gallery */
.pp-gallery {
  padding: 0 40px;
}

.pp-gallery__block {
  margin-bottom: 24px;
  overflow: hidden;
}

.pp-gallery__block:last-child {
  margin-bottom: 0;
}

/* Single centered (logo) */
.pp-gallery__single {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 60px;
  background: #f0f0f0;
}

.pp-gallery__single img {
  max-width: 450px;
  width: 80%;
  height: auto;
  display: block;
}

/* Video (full width below logo) */
.pp-gallery__video {
  width: 100%;
}

.pp-gallery__video-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.pp-gallery__video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Two column */
.pp-gallery__two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.pp-gallery__two-col img {
  width: 100%;
  height: auto;
  display: block;
}

/* Full width with tagline */
.pp-gallery__full-text {
  position: relative;
  overflow: hidden;
}

.pp-gallery__full-text img {
  width: 100%;
  height: auto;
  display: block;
}

.pp-gallery__tagline {
  position: absolute;
  bottom: 50px;
  left: 50px;
  right: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* Full width image */
.pp-gallery__full img {
  width: 100%;
  height: auto;
  display: block;
}

/* Clip-mask reveal (initial hidden state, animated by JS) */
.pp-gallery__reveal {
  clip-path: inset(15% 0 0 0);
  opacity: 0.3;
}

/* Next / Previous navigation */
.pp-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 40px 40px 0;
  margin-top: 24px;
  border-top: 1px solid #e0e0e0;
  background: #fff;
}

.pp-nav__btn {
  position: relative;
  display: block;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.pp-nav__btn:hover .pp-nav__img,
.pp-nav__btn:focus-visible .pp-nav__img {
  transform: scale(1.05);
}

.pp-nav__img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.pp-nav__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.pp-nav__text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
  pointer-events: none;
  text-align: left;
}

.pp-nav__next .pp-nav__text {
  text-align: right;
}

.pp-nav__label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 4px;
}

.pp-nav__title {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
}

/* Explore more */
.pp-explore {
  padding: 50px 40px 30px;
  background: #fff;
}

.pp-explore__heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 24px;
}

.pp-explore__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 80px;
}

.pp-explore__card {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  transition: opacity 0.3s ease;
}

.pp-explore__card:hover,
.pp-explore__card:focus-visible {
  opacity: 0.75;
}

.pp-explore__card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  margin-bottom: 12px;
}

.pp-explore__card-number {
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: #999;
  margin-bottom: 2px;
}

.pp-explore__card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  color: #333;
}

/* Bottom padding for footer clearance */
.pp-footer-space {
  display: none;
}

/* ---- Project Page Responsive ---- */
@media (max-width: 900px) {
  .pp-hero__info {
    bottom: 80px;
    left: 30px;
  }

  .pp-desc {
    padding: 50px 30px;
  }

  .pp-gallery {
    padding: 0 24px;
  }

  .pp-gallery__block {
    margin-bottom: 16px;
  }

  .pp-gallery__two-col {
    gap: 16px;
  }

  .pp-gallery__single {
    padding: 50px 30px;
  }

  .pp-gallery__tagline {
    bottom: 20px;
    left: 20px;
    right: 20px;
  }

  .pp-nav {
    padding: 0 24px;
    gap: 16px;
  }

  .pp-nav__text {
    padding: 20px;
  }

  .pp-explore {
    padding: 40px 30px 20px;
  }

  .pp-explore__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .pp-hero__info {
    bottom: 90px;
    left: 20px;
  }

  .pp-desc {
    padding: 40px 20px;
    font-size: 0.78rem;
  }

  .pp-gallery {
    padding: 0 16px;
  }

  .pp-gallery__block {
    margin-bottom: 12px;
  }

  .pp-gallery__two-col {
    grid-template-columns: 1fr;
    gap: 12px;
  }


  .pp-gallery__single {
    padding: 40px 20px;
  }

  .pp-gallery__tagline {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
    bottom: 15px;
    left: 15px;
    right: 15px;
  }

  .pp-nav {
    padding: 0 16px;
    gap: 12px;
  }

  .pp-nav__text {
    padding: 15px;
  }

  .pp-nav__title {
    font-size: clamp(0.85rem, 4vw, 1.1rem);
  }

  .pp-nav__label {
    font-size: 0.6rem;
  }

  .pp-explore {
    padding: 30px 20px 15px;
  }
}

/* ---- Project Page: Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  .pp-gallery__reveal {
    clip-path: none !important;
    opacity: 1 !important;
  }
}

/* ---- BG Layer: Reveal state (transition to project) ---- */
.bg-layer.is-revealing::after {
  opacity: 0 !important;
}