/* ════════════════════════════════════
   PRESTIGE MOTION — styles.css
   ════════════════════════════════════ */

/* ── Variables ── */
:root {
  --black:      #0D0D0D;
  --cream:      #F2E8D5;
  --parchment:  #EEE0B8;
  --cream-gold: #F0DFA0;
  --gold:       #9B7B3F;
  --gold-light: #C7AD77;
  --charcoal:   #2B2A28;
  --font-title: 'EB Garamond', 'Garamond', Georgia, serif;
  --font-body:  'EB Garamond', 'Garamond', Georgia, serif;
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition: 0.45s var(--ease);
  --max-w:      1200px;
  --pad:        clamp(1.5rem, 5vw, 3rem);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { display: none; }
body::-webkit-scrollbar { display: none; }
body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.35vw, 1.22rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
  font-kerning: normal;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font: inherit; }

/* ── Utilities ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── Button ── */
.btn {
  display: inline-block;
  padding: 1.15rem 3.2rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.94rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: var(--transition);
}
.btn:hover {
  background: var(--gold);
  color: var(--black);
}
.btn--dark {
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.btn--dark:hover {
  background: var(--charcoal);
  color: var(--cream);
}
.btn--gold {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  box-shadow: 0 0 16px rgba(155, 123, 63, 0.5), 0 8px 20px rgba(40, 28, 10, 0.32);
  transition: transform 0.25s var(--ease);
}
.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--black);
  box-shadow: 0 0 22px rgba(155, 123, 63, 0.75), 0 10px 26px rgba(40, 28, 10, 0.4);
  transform: scale(1.045);
}
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ── Section headers ── */
.section-header { margin-bottom: 4rem; }
.section-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.section-label--light { color: var(--cream-gold); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85); }
.section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 3.9vw, 3.1rem);
  font-weight: 400;
  letter-spacing: 0.09em;
  color: var(--gold);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.section-title--light { color: var(--cream); text-shadow: 0 4px 20px rgba(0, 0, 0, 0.65), 0 2px 6px rgba(0, 0, 0, 0.95); }
.divider {
  width: 50px;
  height: 1px;
  background: var(--charcoal);
  opacity: 0.4;
}
.divider--gold {
  background: var(--gold);
  opacity: 0.6;
}

/* ════════════════════════════════════
   NAV
   ════════════════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding: 1.1rem 0 0.4rem;
  transition: background var(--transition), padding var(--transition), backdrop-filter var(--transition);
}
.nav.scrolled {
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: blur(12px);
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(155, 123, 63, 0.12);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  perspective: 900px;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.85)) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.9));
  transition: transform var(--transition);
  margin-top: 6px;
}
.nav__brand:hover {
  transform: scale(1.06);
}
.nav__logo--sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.nav__logo-spin {
  position: relative;
  display: block;
  height: 108px;
  width: 152px;
  transform-style: preserve-3d;
  animation: navLogoSpin 9s linear infinite;
}
.nav__logo-face {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background-image:
    url('assets/logo-tight.png'),
    linear-gradient(135deg, rgba(255, 241, 214, 0.14) 0%, rgba(20, 17, 12, 0.36) 30%, rgba(20, 17, 12, 0.4) 55%, rgba(255, 241, 214, 0.1) 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: 96%, 100% 100%;
  border: 1.5px solid rgba(255, 246, 216, 0.8);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.22),
    inset 0 -5px 10px rgba(0, 0, 0, 0.35),
    inset 5px 0 8px rgba(255, 241, 214, 0.04),
    0 2px 20px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(155, 123, 63, 0.85),
    0 0 14px rgba(231, 200, 138, 0.55),
    0 0 26px rgba(199, 173, 119, 0.3);
  backdrop-filter: blur(1.2px) saturate(112%) brightness(1.02);
  -webkit-backdrop-filter: blur(1.2px) saturate(112%) brightness(1.02);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.nav__logo-face::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-light);
  -webkit-mask-image: url('assets/logo-tight.png');
  mask-image: url('assets/logo-tight.png');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 96%;
  mask-size: 96%;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.nav__brand:hover .nav__logo-face::before {
  opacity: 1;
}
.nav__logo-face::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 241, 214, 0.05) 42%, rgba(255, 246, 224, 0.58) 49%, rgba(255, 241, 214, 0.05) 56%, transparent 66%);
  background-size: 260% 260%;
  mix-blend-mode: screen;
  animation: navLogoSheen 9s linear infinite;
  pointer-events: none;
}
.nav__logo-face--front {
  transform: translateZ(2.5px);
}
.nav__logo-face--back {
  transform: rotateY(180deg) translateZ(2.5px);
}
.nav__logo-face--back::after {
  animation-direction: reverse;
}
.nav__logo-edge {
  position: absolute;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.nav__logo-edge--top,
.nav__logo-edge--bottom {
  left: 0;
  top: calc(50% - 2.5px);
  width: 152px;
  height: 5px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.85) 20%, var(--gold-light) 50%, rgba(255, 255, 255, 0.85) 80%, rgba(255, 255, 255, 0.06) 100%);
}
.nav__logo-edge--top { transform: rotateX(90deg) translateZ(54px); }
.nav__logo-edge--bottom { transform: rotateX(-90deg) translateZ(54px); }
.nav__logo-edge--left,
.nav__logo-edge--right {
  left: calc(50% - 2.5px);
  top: 0;
  width: 5px;
  height: 108px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.85) 20%, var(--gold-light) 50%, rgba(255, 255, 255, 0.85) 80%, rgba(255, 255, 255, 0.06) 100%);
}
.nav__logo-edge--left { transform: rotateY(-90deg) translateZ(76px); }
.nav__logo-edge--right { transform: rotateY(90deg) translateZ(76px); }
@keyframes navLogoSpin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}
@keyframes navLogoSheen {
  0% { background-position: -40% -40%; }
  100% { background-position: 140% 140%; }
}
@media (prefers-reduced-motion: reduce) {
  .nav__logo-spin, .nav__logo-face, .nav__logo-face::after { animation: none; }
}
.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  transform: translateY(-10px);
}
.nav__links a {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 2px 10px rgba(0, 0, 0, 0.6);
  transition: color var(--transition), transform var(--transition);
}
.nav__links a:hover { color: var(--cream-gold); transform: scale(1.08); }
.nav__cta {
  padding: 0.55rem 1.4rem;
  border: 1px solid var(--gold) !important;
  background: var(--gold);
  color: var(--black) !important;
  text-shadow: none !important;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(155, 123, 63, 0.5);
}
.nav__cta:hover { background: var(--gold-light); border-color: var(--gold-light) !important; box-shadow: 0 0 22px rgba(155, 123, 63, 0.75); }
.nav__lang {
  position: fixed;
  top: 1.1rem;
  right: 1.2rem;
  z-index: 250;
  padding: 0.32rem 0.6rem;
  border: 1px solid var(--gold);
  border-radius: 3px;
  background: rgba(13, 13, 13, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(155, 123, 63, 0.4);
  transition: var(--transition);
}
.nav__lang:hover {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 0 16px rgba(155, 123, 63, 0.6);
}
@media (max-width: 860px) {
  .nav__lang { top: 0.8rem; right: 0.9rem; padding: 0.28rem 0.5rem; font-size: 0.62rem; }
}
.nav__lang span { opacity: 0.4; }
.nav__lang[data-lang="fr"] .nav__lang-fr { opacity: 1; }
.nav__lang[data-lang="fr"] .nav__lang-en { opacity: 0.4; }
.nav__lang[data-lang="en"] .nav__lang-en { opacity: 1; }
.nav__lang[data-lang="en"] .nav__lang-fr { opacity: 0.4; }
.nav__toggle {
  display: none;
  position: relative;
  z-index: 210;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  transition: margin-top var(--transition);
}
/* keep clearance from the fixed FR/EN pill once the compact scrolled nav shrinks upward */
.nav.scrolled .nav__toggle {
  margin-top: 20px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--cream);
  transition: var(--transition);
}
.nav__toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ════════════════════════════════════
   HERO
   ════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  overflow: hidden;
  background: var(--parchment) url('assets/grain-texture.jpg');
  background-repeat: repeat;
  background-size: 260px 260px;
  padding: clamp(10rem, 16vh, 13rem) 3cm clamp(2.5rem, 5vh, 4rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image: url('assets/pm-tile.png');
  background-repeat: repeat;
  background-size: 190px 190px;
  opacity: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(120deg, transparent 0%, transparent 36%, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 1) 55%, transparent 64%, transparent 100%);
  mask-image: linear-gradient(120deg, transparent 0%, transparent 36%, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 1) 55%, transparent 64%, transparent 100%);
  -webkit-mask-size: 340% 340%;
  mask-size: 340% 340%;
  -webkit-mask-position: -120% -120%;
  mask-position: -120% -120%;
  animation: creamTapestrySweep 7s ease-in-out infinite alternate;
}
@keyframes creamTapestrySweep {
  0%   { -webkit-mask-position: -120% -120%; mask-position: -120% -120%; opacity: 0.92; }
  50%  { opacity: 1; }
  100% { -webkit-mask-position: 120% 120%; mask-position: 120% 120%; opacity: 0.92; }
}
.hero__frame {
  position: relative;
  z-index: 1;
  width: min(100%, calc((100vh - 12rem) * 16 / 9));
  margin: 0 auto;
}
.hero__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-sizing: border-box;
  border: 6px solid var(--gold);
  box-shadow: 0 0 40px rgba(155, 123, 63, 0.3);
  display: block;
}
.hero__nav-shade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(110px, 14vw, 170px);
  background: linear-gradient(to bottom, rgba(13, 13, 13, 0.55), rgba(13, 13, 13, 0));
  pointer-events: none;
  z-index: 2;
}

.hero__scroll {
  position: absolute;
  bottom: 3.5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 1;
}
.hero__scroll span {
  display: block;
  width: 5px;
  height: 100px;
  border-radius: 3px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollLine 2s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 8.2rem 1.1rem 3.5rem;
    gap: 1.5rem;
  }
  .hero__frame {
    width: 100%;
  }
  .hero__video {
    border-width: 4px;
  }
  .hero__caption {
    font-size: 0.92rem;
    letter-spacing: 0.1em;
  }
  .hero__scroll {
    display: none;
  }
}

/* ════════════════════════════════════
   HERO CAPTION
   ════════════════════════════════════ */
.hero__sound {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(13, 13, 13, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.hero__sound:hover {
  opacity: 1;
  transform: scale(1.08);
  border-color: rgba(199, 173, 119, 0.8);
}
.hero__sound svg { width: 19px; height: 19px; }
.hero__sound-icon-off { display: none; }
.hero__sound[aria-pressed="true"] .hero__sound-icon-on { display: block; }
.hero__sound[aria-pressed="true"] .hero__sound-icon-off { display: none; }
.hero__sound:not([aria-pressed="true"]) .hero__sound-icon-on { display: none; }
.hero__sound:not([aria-pressed="true"]) .hero__sound-icon-off { display: block; }

.hero__caption {
  position: relative;
  z-index: 1;
  padding: 0 1.5rem;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(0.95rem, 1.7vw, 1.4rem);
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-shadow: 0 1px 2px rgba(58, 42, 16, 0.28), 0 4px 12px rgba(58, 42, 16, 0.18), 0 14px 32px rgba(58, 42, 16, 0.12);
  opacity: 0;
  will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero::before { animation: none; }
}

/* ════════════════════════════════════
   ABOUT
   ════════════════════════════════════ */
.about {
  position: relative;
  background: #000000;
  color: var(--cream);
  padding: clamp(5rem, 10vw, 9rem) 0;
  overflow: hidden;
}
.about__particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: min(56vw, 640px);
  max-height: 70%;
  z-index: 0;
  pointer-events: none;
}
.about .container {
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.about__service,
.about__founder-photo-frame {
  pointer-events: auto;
}
.about .section-label { color: var(--cream-gold); }
.about .section-title {
  color: var(--cream-gold);
  text-shadow: 0 4px 24px rgba(199, 173, 119, 0.35), 0 2px 8px rgba(0, 0, 0, 0.8);
}
.about__title--dynamic span {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.about__title--dynamic span:nth-child(1) { transition-delay: 0.05s; }
.about__title--dynamic span:nth-child(2) { transition-delay: 0.18s; }
.about__title--dynamic span:nth-child(3) { transition-delay: 0.31s; }
.section-header.visible .about__title--dynamic span {
  opacity: 1;
  transform: translateY(0);
}
.about .divider--gold {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease) 0.4s;
}
.section-header.visible .divider--gold {
  transform: scaleX(1);
}
.about__text {
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--cream);
  opacity: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 4px 12px rgba(0, 0, 0, 0.75), 0 16px 40px rgba(0, 0, 0, 0.5);
  max-width: 680px;
  margin-bottom: 4rem;
}
.about__services {
  margin-bottom: 4rem;
}
.about__services-title {
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--cream);
  margin-bottom: 2rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 1px 4px rgba(0, 0, 0, 1);
}
.about__services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.about__service {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-left: 1px solid rgba(199, 173, 119, 0.15);
  padding-left: 1.5rem;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.about__service:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}
.about__service::after {
  content: '';
  position: absolute;
  left: 1.5rem;
  bottom: 0.5rem;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.5s var(--ease);
}
.about__service:hover::after { width: 32px; }
.about__service-num {
  display: block;
  font-family: var(--font-title);
  font-style: italic;
  font-size: 3.5rem;
  color: var(--cream-gold);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.about__service:hover .about__service-num {
  opacity: 0.75;
  transform: translateX(4px);
}
.about__service-title {
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--cream-gold);
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 1px 4px rgba(0, 0, 0, 1);
  transition: color 0.3s var(--ease);
}
.about__service:hover .about__service-title { color: var(--cream); }
.about__service-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--cream);
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 4px 12px rgba(0, 0, 0, 0.75), 0 16px 40px rgba(0, 0, 0, 0.5);
}
.about__closing {
  font-family: var(--font-title);
  font-style: italic;
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  color: var(--cream-gold);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 4px 12px rgba(0, 0, 0, 0.75), 0 18px 44px rgba(0, 0, 0, 0.5);
  max-width: 700px;
  margin-bottom: 4rem;
  line-height: 1.45;
}

.about__founders {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 2.5rem 2.5rem 2.5rem 2.5rem;
  border-top: 1px solid rgba(199, 173, 119, 0.15);
  overflow: hidden;
  isolation: isolate;
}
.about__founders::before {
  content: "";
  position: absolute;
  inset: -40px;
  background-image: url("assets/pm-tile.png");
  background-repeat: repeat;
  background-size: 190px 190px;
  opacity: 0.7;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 90% at 28% 50%, #000 40%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 28% 50%, #000 40%, transparent 92%);
  animation: founderTapestryDrift 34s linear infinite;
}
@keyframes founderTapestryDrift {
  from { background-position: 0 0; }
  to { background-position: 760px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .about__founders::before { animation: none; }
}
.about__founder { display: flex; flex-direction: row; align-items: center; gap: 2.2rem; }
.about__founder-info { display: flex; flex-direction: column; gap: 0.5rem; }
.about__founder-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  font-size: 1.28rem;
  line-height: 1.75;
  max-width: 600px;
  margin: 0 0 0.4rem;
  color: var(--cream);
  opacity: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 4px 12px rgba(0, 0, 0, 0.75), 0 16px 40px rgba(0, 0, 0, 0.5);
  min-height: 3.5em;
}
.about__founder-quote-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--gold-light);
  animation: quoteCaretBlink 0.85s steps(1) infinite;
}
@keyframes quoteCaretBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.about__founder-photo-frame {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 60%, #7a5f2f 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(199, 173, 119, 0.25);
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.about__founder-photo-frame:hover,
.about__founder-photo-frame:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(199, 173, 119, 0.45);
  outline: none;
}
.about__founder-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid var(--black);
}
.about__name {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cream);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 1);
}
.about__status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(199, 173, 119, 0.6);
  animation: statusPulse 2.4s ease-out infinite;
}
@keyframes statusPulse {
  0%   { box-shadow: 0 0 0 0 rgba(199, 173, 119, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(199, 173, 119, 0); }
  100% { box-shadow: 0 0 0 0 rgba(199, 173, 119, 0); }
}
.about__role {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream-gold);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}
.about__sep { width: 1px; height: 45px; background: var(--gold); opacity: 0.4; }

/* ════════════════════════════════════
   PROCESS
   ════════════════════════════════════ */
.process {
  background: var(--black);
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.process .section-label {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}
.process .section-title {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.65), 0 2px 6px rgba(0, 0, 0, 0.95);
}
.process__tabs {
  position: relative;
  display: flex;
  gap: 2.5rem;
  margin-bottom: 3rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.process__tabs::-webkit-scrollbar { display: none; }
.process__tab {
  flex: 0 0 auto;
  padding: 0.4rem 0 0.7rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(242, 232, 213, 0.82);
  border-bottom: 2px solid transparent;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.95);
  transition: color 0.35s var(--ease);
}
.process__tab:hover { color: var(--cream); }
.process__tab.is-active {
  color: var(--cream-gold);
}
.process__tab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.process__tab-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--gold);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(199, 173, 119, 0.6);
  transform: translateX(0);
  transition: transform 0.4s var(--ease), width 0.4s var(--ease);
  pointer-events: none;
}
.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  border: 1px solid rgba(155, 123, 63, 0.12);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.process__grid.is-switching {
  opacity: 0;
  transform: translateY(6px);
}
.process__step {
  position: relative;
  padding: 3rem 2.5rem;
  min-height: 480px;
  border-right: 1px solid rgba(155, 123, 63, 0.12);
  transition: background var(--transition), transform 0.4s var(--ease);
}
.process__step:last-child { border-right: none; }
.process__step:hover {
  background: rgba(155, 123, 63, 0.06);
  transform: translateY(-6px);
}
.process__step::after {
  content: '';
  position: absolute;
  left: 2.5rem;
  bottom: 1.7rem;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.5s var(--ease);
}
.process__step:hover::after { width: 32px; }
.process__num {
  display: block;
  font-family: var(--font-title);
  font-size: 3.5rem;
  color: var(--cream-gold);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 2rem;
  font-style: italic;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.process__step:hover .process__num {
  opacity: 0.75;
  transform: translateX(4px);
}
.process__title {
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--cream-gold);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 1px 4px rgba(0, 0, 0, 1);
  transition: color 0.3s var(--ease);
}
.process__step:hover .process__title { color: var(--cream); }
.process__text {
  font-size: 1.15rem;
  color: var(--cream);
  opacity: 0.9;
  line-height: 1.8;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

/* ════════════════════════════════════
   PORTFOLIO
   ════════════════════════════════════ */
.portfolio {
  position: relative;
  overflow: hidden;
  background: var(--parchment) url('assets/grain-texture.jpg');
  background-repeat: repeat;
  background-size: 260px 260px;
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.portfolio::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image: url('assets/pm-tile.png');
  background-repeat: repeat;
  background-size: 190px 190px;
  opacity: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(120deg, transparent 0%, transparent 36%, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 1) 55%, transparent 64%, transparent 100%);
  mask-image: linear-gradient(120deg, transparent 0%, transparent 36%, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 1) 55%, transparent 64%, transparent 100%);
  -webkit-mask-size: 340% 340%;
  mask-size: 340% 340%;
  -webkit-mask-position: -120% -120%;
  mask-position: -120% -120%;
  animation: creamTapestrySweep 7s ease-in-out infinite alternate;
  animation-delay: -3.5s;
}
.portfolio .container {
  position: relative;
  z-index: 1;
}
.portfolio .section-label { color: var(--gold); text-shadow: 0 1px 2px rgba(58, 42, 16, 0.28), 0 4px 12px rgba(58, 42, 16, 0.18); }
.portfolio .section-title { color: var(--gold); text-shadow: 0 1px 2px rgba(58, 42, 16, 0.28), 0 4px 12px rgba(58, 42, 16, 0.18), 0 14px 32px rgba(58, 42, 16, 0.12); }
.portfolio__video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
.portfolio__video-card--center {
  grid-column: 1 / -1;
  width: calc(50% - 1.25rem);
  margin: 0 auto;
}
.portfolio__video-card {
  position: relative;
  aspect-ratio: 16 / 9;
  box-sizing: border-box;
  border: 6px solid var(--gold);
  box-shadow: 0 0 40px rgba(155, 123, 63, 0.3);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.portfolio__video-card:hover {
  transform: scale(1.015);
  box-shadow: 0 0 55px rgba(155, 123, 63, 0.5);
}
.portfolio__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portfolio__video-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 2.5rem 1.5rem 1.2rem;
  background: linear-gradient(to top, rgba(13, 13, 13, 0.85), rgba(13, 13, 13, 0));
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--gold-light);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}
@media (max-width: 768px) {
  .portfolio__video-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .portfolio__video-card--center { width: 100%; }
}

/* ── Video lightbox ── */
.video-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.94);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.video-lightbox.open { display: flex; }
.video-lightbox__content {
  width: min(85vw, 1100px);
  aspect-ratio: 16 / 9;
  box-sizing: border-box;
  border: 6px solid var(--gold);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  background: #000;
}
.video-lightbox__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}
.video-lightbox__close {
  position: fixed;
  top: 1.4rem;
  right: 1.6rem;
  color: var(--cream);
  font-size: 1.6rem;
  line-height: 1;
  opacity: 0.78;
  transition: opacity var(--transition);
  z-index: 501;
  padding: 0.4rem;
}
.video-lightbox__close:hover { opacity: 1; }

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.portfolio__item { overflow: hidden; }
.portfolio__card {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #161616 0%, var(--charcoal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition);
  outline: 1px solid transparent;
  outline-offset: -1px;
}
.portfolio__item:hover .portfolio__card {
  transform: scale(1.02);
  outline-color: var(--gold);
}
.portfolio__mono {
  width: 48px;
  opacity: 0.1;
  filter: invert(1) brightness(10);
  transition: opacity var(--transition);
}
.portfolio__item:hover .portfolio__mono { opacity: 0.2; }

/* ════════════════════════════════════
   WHY
   ════════════════════════════════════ */
.why {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #0a0a0a 0%, #020202 75%);
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.why__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.why .container {
  position: relative;
  z-index: 1;
}
.why .section-title {
  color: var(--cream-gold);
  text-shadow: 0 4px 24px rgba(199, 173, 119, 0.35), 0 2px 8px rgba(0, 0, 0, 0.8);
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.why__item {
  padding: 3rem;
  border: 1px solid rgba(155, 123, 63, 0.1);
  margin: -1px -1px 0 0;
  transition: background var(--transition);
}
.why__item:hover { background: rgba(155, 123, 63, 0.04); }
.why__num {
  display: block;
  font-family: var(--font-title);
  font-size: 3.5rem;
  color: var(--cream-gold);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 2rem;
  font-style: italic;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.why__item:hover .why__num {
  opacity: 0.75;
  transform: translateX(4px);
}
.why__title {
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--cream-gold);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 1px 4px rgba(0, 0, 0, 1);
  transition: color 0.3s var(--ease);
}
.why__item:hover .why__title { color: var(--cream); }
.why__text {
  font-size: 1.15rem;
  color: var(--cream);
  opacity: 0.9;
  line-height: 1.8;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

/* ════════════════════════════════════
   CONTACT
   ════════════════════════════════════ */
.contact {
  background: var(--parchment) url('assets/grain-texture.jpg');
  background-repeat: repeat;
  background-size: 260px 260px;
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.contact .section-label { color: var(--gold); text-shadow: 0 1px 2px rgba(58, 42, 16, 0.28), 0 4px 12px rgba(58, 42, 16, 0.18); }
.contact .section-title { color: var(--gold); text-shadow: 0 1px 2px rgba(58, 42, 16, 0.28), 0 4px 12px rgba(58, 42, 16, 0.18), 0 14px 32px rgba(58, 42, 16, 0.12); }
.contact__intro {
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--charcoal);
  opacity: 1;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5), 0 2px 6px rgba(58, 42, 16, 0.22), 0 6px 18px rgba(58, 42, 16, 0.14);
  max-width: 680px;
  margin: -1.5rem 0 3.5rem;
}
.contact__inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 6rem;
  align-items: start;
}
.contact__form { display: flex; flex-direction: column; gap: 2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.form__group { display: flex; flex-direction: column; gap: 0.6rem; }
.form__group label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.88;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4), 0 1px 4px rgba(58, 42, 16, 0.15);
}
.form__group input,
.form__group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(43, 42, 40, 0.25);
  padding: 0.7rem 0;
  font-family: var(--font-body);
  font-size: 1.18rem;
  color: var(--charcoal);
  outline: none;
  transition: border-color var(--transition);
  resize: none;
  width: 100%;
}
.form__group input:focus,
.form__group textarea:focus { border-bottom-color: var(--gold); }
.form__group input::placeholder,
.form__group textarea::placeholder { color: var(--charcoal); opacity: 0.35; }
.form__success {
  display: none;
  font-family: var(--font-title);
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--gold);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5), 0 2px 6px rgba(58, 42, 16, 0.22);
  font-style: italic;
  padding: 1rem 0;
}
.form__success.visible { display: block; }
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 0.5rem;
}
.contact__link {
  font-family: var(--font-title);
  font-size: clamp(1.08rem, 1.45vw, 1.35rem);
  line-height: 1.3;
  color: var(--charcoal);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5), 0 2px 6px rgba(58, 42, 16, 0.22), 0 6px 18px rgba(58, 42, 16, 0.14);
  transition: color var(--transition);
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(155, 123, 63, 0.2);
  display: block;
}
.contact__link:hover { color: var(--gold); }
.contact__phone-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(155, 123, 63, 0.2);
}
.contact__link--phone {
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: -1px;
}
.contact__call-btn {
  padding: 0.8rem 2rem;
  font-size: 0.86rem;
}

/* ════════════════════════════════════
   FOOTER
   ════════════════════════════════════ */
.footer {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #0a0a0a 0%, #020202 75%);
  border-top: 1px solid rgba(155, 123, 63, 0.1);
  padding: 4rem 0;
  text-align: center;
}
.footer__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.footer__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.footer__logo {
  height: 160px;
  width: auto;
  opacity: 0.85;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.7));
  transition: opacity var(--transition);
}
.footer__logo:hover { opacity: 1; }
.footer__tagline {
  font-family: var(--font-title);
  font-size: 1.28rem;
  line-height: 1.4;
  color: var(--cream);
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 4px 12px rgba(0, 0, 0, 0.75), 0 16px 40px rgba(0, 0, 0, 0.5);
}
.footer__social { display: flex; gap: 1.8rem; align-items: center; }
.footer__icon {
  color: var(--gold);
  opacity: 0.78;
  transition: opacity var(--transition), transform var(--transition);
  display: flex;
}
.footer__icon:hover { opacity: 1; transform: scale(1.1); }
.footer__copy {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--cream);
  opacity: 0.85;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.95);
}

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

/* ════════════════════════════════════
   PROCESS — fond studio
   ════════════════════════════════════ */
.process {
  position: relative;
  overflow: hidden;
}
.process__bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('assets/portfolio/studio-bg.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transform-origin: center center;
  will-change: transform;
  pointer-events: none;
}
.process::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.42) 0%, rgba(8, 8, 8, 0.54) 30%, rgba(8, 8, 8, 0.75) 65%, rgba(8, 8, 8, 0.84) 100%);
}
.process::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(160deg, rgba(199, 173, 119, 0.16) 0%, rgba(90, 60, 20, 0.1) 50%, rgba(0, 0, 0, 0.06) 100%);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.process .container { position: relative; z-index: 3; }

/* ════════════════════════════════════
   PORTFOLIO — grille réelle
   ════════════════════════════════════ */
.portfolio__group { margin-bottom: 4.5rem; }

.portfolio__group-title {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(155, 123, 63, 0.2);
}

.portfolio__real-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  grid-auto-rows: auto;
}

.portfolio__figure {
  margin: 0;
  cursor: pointer;
  min-width: 0;
}

.portfolio__img-wrap {
  padding: 18px;
  border: 3px solid rgba(155, 123, 63, 0.55);
  background: var(--parchment);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.portfolio__figure:hover .portfolio__img-wrap {
  border-color: var(--gold);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2), 0 3px 12px rgba(155, 123, 63, 0.15);
}

.portfolio__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}
.portfolio__figure:hover img { transform: scale(1.05); }

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.94);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.open { display: flex; }

.lightbox__content {
  position: relative;
  max-width: min(92vw, 1100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  padding: 6px;
  border: 1px solid rgba(155, 123, 63, 0.4);
  background: #111;
}

.lightbox__caption {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream-gold);
  opacity: 0.85;
  text-align: center;
  min-height: 1em;
}

.lightbox__close {
  position: fixed;
  top: 1.4rem;
  right: 1.6rem;
  color: var(--cream);
  font-size: 1.6rem;
  line-height: 1;
  opacity: 0.78;
  transition: opacity var(--transition);
  z-index: 501;
  padding: 0.4rem;
}
.lightbox__close:hover { opacity: 1; }

/* ── Golden galaxy overlay (easter egg) ── */
.galaxy-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: #000;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.6s var(--ease);
}
.galaxy-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
#galaxyCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.galaxy-overlay__hint {
  position: absolute;
  bottom: 3rem;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--cream-gold);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s var(--ease) 1.8s;
}
.galaxy-overlay.open .galaxy-overlay__hint {
  opacity: 0.88;
}
.portfolio__caption {
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--charcoal);
  opacity: 0.75;
  margin-top: 0.55rem;
  text-transform: uppercase;
}

/* Accent final */
.portfolio__accent { margin-top: 3rem; }

.portfolio__accent figure {
  margin: 0 auto;
  max-width: 900px;
  cursor: pointer;
}

.portfolio__accent .portfolio__img-wrap {
  padding: 18px;
  border: 3px solid rgba(155, 123, 63, 0.55);
  background: var(--parchment);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.portfolio__accent figure:hover .portfolio__img-wrap {
  border-color: var(--gold);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2), 0 3px 12px rgba(155, 123, 63, 0.15);
}

.portfolio__accent img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}
.portfolio__accent figure:hover img { transform: scale(1.03); }

/* ════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════ */
@media (max-width: 1024px) {
  .process__grid { grid-template-columns: 1fr; }
  .process__step { border-right: none; border-bottom: 1px solid rgba(155, 123, 63, 0.12); }
  .process__step:last-child { border-bottom: none; }
  .process__tabs { gap: 1.6rem; }
  .contact__inner { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .about__services-grid { grid-template-columns: 1fr; gap: 2rem; }
  .portfolio__real-grid { grid-template-columns: repeat(2, 1fr); }
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(85vw, 320px);
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2.2rem;
    padding: 3rem 2.5rem;
    transition: right var(--transition);
    border-left: 1px solid rgba(155, 123, 63, 0.15);
  }
  .nav__links.open { right: 0; }
  .nav__links a { font-size: 0.95rem; }
  .portfolio__grid { grid-template-columns: 1fr 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .about__founders { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .about__founder { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
  .about__sep { width: 40px; height: 1px; }
  .form__row { grid-template-columns: 1fr; }

  .process__tabs {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 0.6rem 0.7rem;
  }
  .process__tab {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(155, 123, 63, 0.35);
    border-radius: 3px;
  }
  .process__tab.is-active {
    border-color: var(--gold);
    background: rgba(155, 123, 63, 0.14);
  }
  .process__tab-indicator { display: none; }

  /* The photo is a 16:9 landscape shot — on a tall mobile section, "cover" over the
     full height would zoom into a tiny sliver of it. Show it as a properly-proportioned
     band at the top instead — slightly taller than its native ratio for more presence,
     flush with the section's own top so there's no dead black gap above it. */
  .process { padding-top: 3rem; }
  .process__bg-image {
    inset: auto;
    top: 0;
    left: 0;
    right: 0;
    height: calc(100vw * 3 / 4);
  }
}

@media (max-width: 480px) {
  .portfolio__real-grid { grid-template-columns: repeat(1, 1fr); }
  .portfolio__grid { grid-template-columns: 1fr; }
  .why__item { padding: 2rem 1.5rem; }
  .process__step { padding: 2rem 1.5rem; }
}

@media (max-width: 600px) {
  /* Nav medallion — smaller on phones */
  .nav__brand { margin-top: 8px; }
  .nav__logo-spin { width: 112px; height: 80px; }
  .nav__logo-edge--top,
  .nav__logo-edge--bottom { width: 112px; }
  .nav__logo-edge--top { transform: rotateX(90deg) translateZ(40px); }
  .nav__logo-edge--bottom { transform: rotateX(-90deg) translateZ(40px); }
  .nav__logo-edge--left,
  .nav__logo-edge--right { height: 80px; }
  .nav__logo-edge--left { transform: rotateY(-90deg) translateZ(56px); }
  .nav__logo-edge--right { transform: rotateY(90deg) translateZ(56px); }

  .hero__scroll span { height: 46px; }
}

/* ── Phones in landscape — short viewport height, regardless of width ── */
@media (max-height: 500px) and (orientation: landscape) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(60vw, 300px);
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 2rem;
    transition: right var(--transition);
    border-left: 1px solid rgba(155, 123, 63, 0.15);
    overflow-y: auto;
  }
  .nav__links.open { right: 0; }
  .nav__links a { font-size: 0.85rem; }

  .nav__brand { margin-top: 2px; }
  .nav__logo-spin { width: 88px; height: 63px; }
  .nav__logo-edge--top,
  .nav__logo-edge--bottom { width: 88px; }
  .nav__logo-edge--top { transform: rotateX(90deg) translateZ(33px); }
  .nav__logo-edge--bottom { transform: rotateX(-90deg) translateZ(33px); }
  .nav__logo-edge--left,
  .nav__logo-edge--right { height: 63px; }
  .nav__logo-edge--left { transform: rotateY(-90deg) translateZ(46px); }
  .nav__logo-edge--right { transform: rotateY(90deg) translateZ(46px); }

  .nav__lang { top: 0.5rem; right: 0.6rem; padding: 0.2rem 0.45rem; font-size: 0.58rem; }

  .hero {
    min-height: 100vh;
    padding: 4.4rem 1.2rem 1.2rem;
    gap: 0.6rem;
  }
  .hero__frame { width: min(100%, calc((100vh - 6rem) * 16 / 9)); }
  .hero__caption { font-size: 0.76rem; letter-spacing: 0.08em; }
  .hero__scroll { display: none; }

  .process { padding-top: 1.4rem; }
  .process__bg-image { height: min(calc(100vw * 3 / 4), 52vh); }
}

/* ════════════════════════════════════
   PRELOADER / INTRO
   ════════════════════════════════════ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--black);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.preloader.is-visible {
  opacity: 1;
}
.preloader.is-exiting {
  opacity: 0;
  transition: opacity 1s var(--ease) 0.35s;
  pointer-events: none;
}
.preloader.is-done { display: none; }

.preloader__tapestry {
  position: absolute;
  inset: -60px;
  background-repeat: repeat;
  background-size: 128px 128px;
  will-change: transform;
}
.preloader__tapestry--base {
  background-image: url('assets/preloader-tile-base.png');
  opacity: 0.62;
}
.preloader__tapestry--gold {
  background-image: url('assets/preloader-tile-gold.png');
  -webkit-mask-image: linear-gradient(115deg, transparent 0%, transparent 42%, rgba(0,0,0,0.9) 49%, rgba(0,0,0,0.9) 51%, transparent 58%, transparent 100%);
  mask-image: linear-gradient(115deg, transparent 0%, transparent 42%, rgba(0,0,0,0.9) 49%, rgba(0,0,0,0.9) 51%, transparent 58%, transparent 100%);
  -webkit-mask-size: 340% 340%;
  mask-size: 340% 340%;
  -webkit-mask-position: -120% -120%;
  mask-position: -120% -120%;
  animation: preloaderSweep 2.6s linear 0.5s infinite;
  opacity: 0.9;
}
.preloader.is-exiting .preloader__tapestry--gold { animation-play-state: paused; }

@keyframes preloaderSweep {
  0%   { -webkit-mask-position: -120% -120%; mask-position: -120% -120%; }
  100% { -webkit-mask-position: 120% 120%; mask-position: 120% 120%; }
}

.preloader__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
}
.preloader__line {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light));
  opacity: 0;
  transition: width 0.9s var(--ease) 1.4s, opacity 0.6s var(--ease) 1.4s;
}
.preloader__line--right { background: linear-gradient(90deg, var(--gold-light), transparent); }
.preloader.is-text .preloader__line {
  width: 46px;
  opacity: 0.8;
}
@media (min-width: 640px) {
  .preloader.is-text .preloader__line { width: 80px; }
}

.preloader__welcome {
  display: flex;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(2rem, 6.5vw, 3.6rem);
  letter-spacing: 0.28em;
  color: #F3E4C4;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6), 0 0 22px rgba(231, 200, 138, 0.75), 0 0 48px rgba(199, 173, 119, 0.4);
  margin: 0;
  padding-left: 0.28em;
}
.preloader__welcome span {
  opacity: 0;
  display: inline-block;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.preloader.is-text .preloader__welcome span {
  opacity: 1;
  transform: translateY(0);
}
.preloader.is-text .preloader__welcome span:nth-child(1) { transition-delay: 0.5s; }
.preloader.is-text .preloader__welcome span:nth-child(2) { transition-delay: 0.58s; }
.preloader.is-text .preloader__welcome span:nth-child(3) { transition-delay: 0.66s; }
.preloader.is-text .preloader__welcome span:nth-child(4) { transition-delay: 0.74s; }
.preloader.is-text .preloader__welcome span:nth-child(5) { transition-delay: 0.82s; }
.preloader.is-text .preloader__welcome span:nth-child(6) { transition-delay: 0.9s; }
.preloader.is-text .preloader__welcome span:nth-child(7) { transition-delay: 0.98s; }
.preloader.is-text .preloader__welcome span:nth-child(8) { transition-delay: 1.06s; }
.preloader.is-text .preloader__welcome span:nth-child(9) { transition-delay: 1.14s; }

.preloader.is-exiting .preloader__tapestry--base,
.preloader.is-exiting .preloader__tapestry--gold {
  transition: transform 1s var(--ease), opacity 1s var(--ease);
}
.preloader.is-exiting .preloader__tapestry--base { transform: scale(1.15); opacity: 0; }
.preloader.is-exiting .preloader__tapestry--gold { transform: scale(1.15); opacity: 0; }
.preloader.is-exiting .preloader__center {
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
}

body.preloader-lock { overflow: hidden; height: 100vh; }

@media (prefers-reduced-motion: reduce) {
  .preloader__tapestry--gold { animation: none; }
}
