/* Gabriel Clauteaux — Static Portfolio */
/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ===================== HEADER ===================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
}

.header-logo {
  transition: opacity 0.4s ease;
}
.header-logo img {
  height: 147px;
  width: auto;
}

/* Burger icon */
.header-burger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}
.header-burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: #fff;
  transition: transform 0.35s ease, background 0.3s ease;
  transform-origin: center;
}

/* Burger → X animation */
.header-burger.open span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.header-burger.open span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Dark header variant (interior page — transparent bg, black elements) */
.header-dark .header-logo img {
  filter: invert(1);
}
.header-dark .header-burger span {
  background: #000;
}
/* When menu overlay is open on dark header, switch burger to white */
.header-dark .header-burger.open span {
  background: #fff;
}

/* Navigation overlay */
.nav-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.95);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.nav-overlay nav {
  text-align: center;
}
.nav-overlay nav a {
  display: block;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(24px, 4vw, 36px);
  padding: 16px 0;
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.nav-overlay nav a:hover { opacity: 1; }

/* ===================== SECTIONS ===================== */
.section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.section-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section-bg-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0.15;
  z-index: 1;
}

.section-content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  padding: 340px 4vw 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ===================== HERO TEXT (page intro) ===================== */
.hero-text {
  max-width: 720px;
  z-index: 10;
  position: relative;
  align-self: flex-start;
  margin-left: 16%;
  margin-bottom: 120px;
}

.hero-title {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  margin: 0 0 10px 0;
}

.hero-subtitle {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(14px, 1.8vw, 18px);
  margin: 0 0 24px 0;
}

.hero-text-body {
  font-family: Helvetica, Arial, sans-serif;
  font-size: clamp(15px, 1.9vw, 18px);
  line-height: 1.6;
  margin: 0;
}
.hero-text-body strong {
  font-weight: 700;
}

/* Dark text variant (interior page) */
.text-dark { color: #000; }

/* ===================== GALLERY ROW (label + masonry side by side) ===================== */
.gallery-row {
  display: flex;
  align-items: flex-end;
  width: 68%;
  max-width: 920px;
}

/* ===================== MASONRY GALLERY GRID ===================== */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, auto);
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.gallery-masonry img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Layout A — Top half: narrow left (2/5), wide right (3/5) */
.gallery-masonry img:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1;
  aspect-ratio: 1 / 1;
}
.gallery-masonry img:nth-child(2) {
  grid-column: 3 / 6;
  grid-row: 1 / 3;
}
.gallery-masonry img:nth-child(3) {
  grid-column: 1 / 3;
  grid-row: 2;
  aspect-ratio: 1 / 1;
}

/* Layout A — Bottom half: wide left (3/5), narrow right (2/5) */
.gallery-masonry img:nth-child(4) {
  grid-column: 1 / 4;
  grid-row: 3 / 5;
}
.gallery-masonry img:nth-child(5) {
  grid-column: 4 / 6;
  grid-row: 3;
  aspect-ratio: 1 / 1;
}
.gallery-masonry img:nth-child(6) {
  grid-column: 4 / 6;
  grid-row: 4;
  aspect-ratio: 1 / 1;
}

/* Layout B: inverted masonry */
.gallery-masonry-b img:nth-child(1) {
  grid-column: 1 / 4;
  grid-row: 1 / 3;
  aspect-ratio: auto;
}
.gallery-masonry-b img:nth-child(2) {
  grid-column: 4 / 6;
  grid-row: 1;
  aspect-ratio: 1 / 1;
}
.gallery-masonry-b img:nth-child(3) {
  grid-column: 4 / 6;
  grid-row: 2;
  aspect-ratio: 1 / 1;
}
.gallery-masonry-b img:nth-child(4) {
  grid-column: 1 / 3;
  grid-row: 3;
  aspect-ratio: 1 / 1;
}
.gallery-masonry-b img:nth-child(5) {
  grid-column: 3 / 6;
  grid-row: 3 / 5;
  aspect-ratio: auto;
}
.gallery-masonry-b img:nth-child(6) {
  grid-column: 1 / 3;
  grid-row: 4;
  aspect-ratio: 1 / 1;
}

/* ===================== INTERIOR PAGE OVERRIDES ===================== */
/* Light section backgrounds — overlay at 0 to let bg show through fully */
.section-light .section-bg-overlay {
  background: #fff;
  opacity: 0;
}
.section-light .gallery-label {
  color: #333;
}
.section-light .section-content {
  padding-top: 300px;
}


/* ===================== ROTATED LABEL ===================== */
.gallery-label {
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 20px;
}
.label-light {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(13px, 1.4vw, 16px);
  margin-right: 4px;
}
.label-italic {
  font-family: Helvetica, Arial, sans-serif;
  font-style: italic;
  font-size: clamp(13px, 1.4vw, 16px);
}

/* ===================== HOMEPAGE ===================== */
.home-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.home-hero .section-bg img {
  object-position: 50% 50%;
}

.home-links {
  position: relative;
  z-index: 2;
  padding: 60px 4vw;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: #000;
}
.home-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 300;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.home-links a:hover { opacity: 1; }
.home-links svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

/* ===================== ABOUT SECTION (homepage) ===================== */
.about {
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 8vw;
  gap: 60px;
}
.about-text {
  flex: 1;
  max-width: 520px;
}
.about-text p {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7;
  text-align: center;
}
.about-img {
  flex: 0 0 auto;
  width: 320px;
}
.about-img img {
  width: 100%;
  height: auto;
}

/* ===================== CONTACT FOOTER ===================== */
.footer-contact {
  background: #000;
  padding: 80px 4vw 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.footer-contact .footer-logo-img {
  height: 100px;
  width: auto;
}
.footer-contact-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.footer-contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 14px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer-contact-links a:hover { opacity: 1; }
.footer-contact-links svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}
.footer-contact-sep {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.2);
}

/* ===================== GALLERY HOVER ===================== */
.gallery-masonry img {
  transition: filter 0.4s ease, transform 0.4s ease;
}
.gallery-masonry img:hover {
  filter: brightness(1.05);
  transform: scale(1.015);
}

/* ===================== SCROLL REVEAL ===================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .gallery-row {
    width: 80%;
  }
  .hero-text {
    margin-left: 10%;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 24px 20px;
  }
  .header-logo img {
    height: 80px;
  }
  .header-burger {
    padding: 14px;
  }

  /* Full-bleed immersive sections */
  .section-content {
    padding: 140px 5vw 80px;
  }
  .section-light .section-content {
    padding-top: 140px;
  }

  /* Hero text — bold, centered on mobile */
  .hero-text {
    margin-left: 0;
    margin-bottom: 120px;
    text-align: center;
    align-self: center;
  }
  .hero-title {
    font-size: 36px;
    line-height: 1.1;
  }
  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 18px;
  }
  .hero-text-body {
    font-size: 15px;
    line-height: 1.7;
  }

  /* Gallery label — sits above the gallery on mobile, elegant & minimal */
  .gallery-row {
    width: 100%;
    flex-direction: column;
  }
  .gallery-label {
    writing-mode: horizontal-tb;
    transform: none;
    margin-right: 0;
    margin-bottom: 14px;
    order: -1;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .gallery-label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: currentColor;
    opacity: 0.4;
    flex-shrink: 0;
  }

  /* Gallery grid — clean 2-column with tight gaps */
  .gallery-masonry {
    grid-template-columns: 1fr 1fr;
    gap: 3px;
  }
  .gallery-masonry img:nth-child(1) { grid-column: 1; grid-row: 1; }
  .gallery-masonry img:nth-child(2) { grid-column: 2; grid-row: 1; }
  .gallery-masonry img:nth-child(3) { grid-column: 1; grid-row: 2; }
  .gallery-masonry img:nth-child(4) { grid-column: 2; grid-row: 2; }
  .gallery-masonry img:nth-child(5) { grid-column: 1; grid-row: 3; }
  .gallery-masonry img:nth-child(6) { grid-column: 2; grid-row: 3; }
  .gallery-masonry img:nth-child(n) {
    aspect-ratio: 2/3;
  }

  /* Gallery masonry-b resets for mobile (same 2-col grid) */
  .gallery-masonry-b img:nth-child(1) { grid-column: 1; grid-row: 1; aspect-ratio: 2/3; }
  .gallery-masonry-b img:nth-child(2) { grid-column: 2; grid-row: 1; aspect-ratio: 2/3; }
  .gallery-masonry-b img:nth-child(3) { grid-column: 1; grid-row: 2; aspect-ratio: 2/3; }
  .gallery-masonry-b img:nth-child(4) { grid-column: 2; grid-row: 2; aspect-ratio: 2/3; }
  .gallery-masonry-b img:nth-child(5) { grid-column: 1; grid-row: 3; aspect-ratio: 2/3; }
  .gallery-masonry-b img:nth-child(6) { grid-column: 2; grid-row: 3; aspect-ratio: 2/3; }

  /* Nav overlay — larger touch targets, spaced out */
  .nav-overlay nav a {
    font-size: 28px;
    padding: 20px 0;
    letter-spacing: 0.5px;
  }

  /* Home links */
  .home-links {
    flex-direction: column;
    gap: 20px;
    padding: 40px 4vw;
  }

  /* About section */
  .about {
    flex-direction: column-reverse;
    padding: 60px 6vw;
    gap: 40px;
  }
  .about-img {
    width: 220px;
  }
  .about-text {
    max-width: 100%;
  }

  /* Footer — stacked, generous spacing */
  .footer-contact {
    padding: 60px 6vw 48px;
    gap: 32px;
  }
  .footer-contact .footer-logo-img {
    height: 72px;
  }
  .footer-contact-links {
    flex-direction: column;
    gap: 18px;
  }
  .footer-contact-links a {
    font-size: 13px;
    gap: 10px;
    justify-content: center;
  }
  .footer-contact-sep {
    display: none;
  }

  /* Scroll reveal — shorter travel on mobile */
  .reveal {
    transform: translateY(24px);
  }
}

@media (max-width: 480px) {
  .section-content {
    padding: 160px 4vw 60px;
  }
  .section-light .section-content {
    padding-top: 160px;
  }

  .hero-title {
    font-size: 30px;
  }

  .gallery-label {
    margin-bottom: 10px;
  }
  .label-light, .label-italic {
    font-size: 12px;
  }

  /* Keep 2-column gallery on small phones */
  .gallery-masonry {
    gap: 2px;
  }
  .gallery-masonry img:nth-child(n),
  .gallery-masonry-b img:nth-child(n) {
    aspect-ratio: 2/3;
  }

  .footer-contact {
    padding: 48px 5vw 40px;
  }
  .footer-contact .footer-logo-img {
    height: 56px;
  }
}

/* Disable hover effects on touch devices */
@media (hover: none) {
  .gallery-masonry img:hover {
    filter: none;
    transform: none;
  }
}
