/* ============================================================
   ÉLOÏSE MARCHAND — Portfolio
   Palette: ink black, warm white, beige/sable
   Type: Cormorant Garamond (display) · Jost (sans)
   ============================================================ */

:root {
  --ink: #1a1714;
  --ink-soft: #3d3833;
  --white: #faf8f5;
  --white-pure: #ffffff;
  --beige: #e8e0d5;
  --beige-deep: #d4c9b8;
  --sable: #c4b8a4;
  --stone: #8a8278;
  --line: rgba(26, 23, 20, 0.12);
  --glass: rgba(250, 248, 245, 0.72);
  --glass-border: rgba(255, 255, 255, 0.5);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1400px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--ink); color: var(--white); }

/* ===== Typography helpers ===== */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1.5rem;
}

em { font-style: italic; font-weight: 400; }

/* ===== Reveal animation base ===== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 0.12s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Navigation — glassmorphism
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2.5rem;
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease),
              border-color 0.5s var(--ease), padding 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 2.5rem;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--white);
  transition: color 0.5s var(--ease);
}
.nav.scrolled .nav__logo { color: var(--ink); }
.nav__links {
  display: flex;
  gap: 2.5rem;
}
.nav__link {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.4s var(--ease);
}
.nav.scrolled .nav__link { color: var(--ink-soft); }
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease);
}
.nav__link:hover::after { width: 100%; }
.nav__cta {
    display: none;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.65rem 1.6rem;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 2rem;
  color: var(--white);
  transition: all 0.4s var(--ease);
}
.nav.scrolled .nav__cta {
  border-color: var(--ink);
  color: var(--ink);
}
.nav__cta:hover {
  background: var(--white);
  color: var(--ink);
}
.nav.scrolled .nav__cta:hover { background: var(--ink); color: var(--white); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero__image {
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/2065200/pexels-photo-2065200.jpeg?auto=compress&cs=tinysrgb&w=1920') center/cover no-repeat;
  transform: scale(1.12);
  animation: heroZoom 2.4s var(--ease-soft) forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,23,20,0.35) 0%, rgba(26,23,20,0.15) 40%, rgba(26,23,20,0.55) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 0 2rem;
}
.hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
}
.hero__title {
    
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.5rem, 11vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
.hero__title-line {
  display: block;
}
.hero__title-line:nth-child(2) {
  font-style: italic;
  font-weight: 400;
}
.hero__subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  margin-bottom: 4rem;
}
.hero__scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -50px; left: 0;
  width: 100%; height: 50px;
  background: var(--white);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { top: -50px; }
  60%, 100% { top: 50px; }
}

/* ============================================================
   About
   ============================================================ */
.about {
  padding: 10rem 2rem;
  background: var(--white);
}
.about__inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.about__heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.2;
  margin-bottom: 3.5rem;
  letter-spacing: -0.01em;
}
.about__body {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  max-width: 640px;
  margin: 0 auto 5rem;
  text-align: left;
}
.about__text {
    direction: rtl;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--ink-soft);
  font-weight: 300;
}
.about__stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}
.about__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.about__stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
}
.about__stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ============================================================
   Collection / Masonry
   ============================================================ */
.collection {
  padding: 8rem 2rem 10rem;
  background: var(--beige);
}
.collection__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 5rem;
}
.collection__heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.collection__intro {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.7;
  font-weight: 300;
}

.masonry {
  max-width: var(--maxw);
  margin: 0 auto;
  columns: 3;
  column-gap: 1.5rem;
}
.masonry__item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  background: var(--beige-deep);
}
.masonry__item[data-tall="true"] img { aspect-ratio: 3 / 4.4; object-fit: cover; }
.masonry__item:not([data-tall="true"]) img { aspect-ratio: 3 / 3.6; object-fit: cover; }
.masonry__item img {
  width: 100%;
  transition: transform 1.2s var(--ease), filter 0.8s var(--ease);
  filter: grayscale(15%) brightness(0.97);
}
.masonry__item:hover img {
  transform: scale(1.06);
  filter: grayscale(0%) brightness(1);
}
.masonry__item figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem;
  background: linear-gradient(180deg, transparent 50%, rgba(26,23,20,0.7) 100%);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.masonry__item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}
.masonry__num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.masonry__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.02em;
}

/* ============================================================
   Footer / Contact
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--white);
  padding: 8rem 2rem 3rem;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer__top {
  text-align: center;
  margin-bottom: 6rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer__heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.1;
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}
.footer__email {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.footer__email:hover {
  color: var(--white);
  border-color: var(--white);
}
.footer__mid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 5rem;
}
.footer__col {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
}
.footer__label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}
.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: color 0.4s var(--ease);
}
.footer__social:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .masonry { columns: 2; }
}
@media (max-width: 768px) {
  .nav { padding: 1.2rem 1.5rem; }
  .nav.scrolled { padding: 0.9rem 1.5rem; }
  .nav__links { display: none; }
  .about { padding: 6rem 1.5rem; }
  .about__stats { gap: 2.5rem; }
  .collection { padding: 6rem 1.5rem; }
  .masonry { columns: 1; column-gap: 0; }
  .masonry__item { margin-bottom: 1rem; }
  .footer { padding: 6rem 1.5rem 2.5rem; }
  .footer__mid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
