/* ============================================================
   AWWWARDS LAYER — Oscilia Glé
   Phases 1-6 : animations, cursor, loader, parallax, masonry
   ============================================================ */

/* ── PHASE 4 : LOADING SCREEN ───────────────────────────────────────────── */
#aw-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #1C1917;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  pointer-events: all;
}
#aw-loader.aw-hiding {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}
.aw-loader__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.aw-loader__stroke {
  stroke-dasharray: 2200;
  stroke-dashoffset: 2200;
  animation: aw-brush-draw 1.6s cubic-bezier(0.76, 0, 0.24, 1) 0.2s forwards;
}
.aw-loader__text {
  position: relative;
  z-index: 1;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 300;
  color: #F5EFE6;
  letter-spacing: 0.12em;
  opacity: 0;
  animation: aw-fade-up 0.8s cubic-bezier(0.76, 0, 0.24, 1) 1.0s forwards;
}
.aw-loader__sub {
  position: relative;
  z-index: 1;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: #B5956A;
  opacity: 0;
  animation: aw-fade-up 0.6s cubic-bezier(0.76, 0, 0.24, 1) 1.35s forwards;
}

@keyframes aw-brush-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes aw-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── PHASE 2 : CUSTOM CURSOR ────────────────────────────────────────────── */
#aw-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 9px; height: 9px;
  background: #B5956A;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  will-change: transform;
}
#aw-cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1px solid rgba(181, 149, 106, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.3s;
  will-change: transform;
}
/* Link hover */
body.cur-link #aw-cursor  { width: 6px; height: 6px; }
body.cur-link #aw-cursor-ring { width: 58px; height: 58px; border-color: rgba(181,149,106,0.9); }
/* Image hover — big translucent dot */
body.cur-img  #aw-cursor  { width: 64px; height: 64px; background: rgba(181,149,106,0.12); border: 1px solid rgba(181,149,106,0.35); }
body.cur-img  #aw-cursor-ring { width: 0; height: 0; border: none; }

@media (hover: none) {
  #aw-cursor, #aw-cursor-ring { display: none; }
}

/* ── PHASE 1 : HERO TITLE LETTER REVEAL ────────────────────────────────── */
.hero__title .aw-char {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.hero__title .aw-char-inner {
  display: inline-block;
  transform: translateY(110%);
  animation: aw-char-in 0.85s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
@keyframes aw-char-in {
  to { transform: translateY(0); }
}

/* Hero supporting elements reveal */
.hero__eyebrow,
.hero__subtitle,
.hero__cta,
.hero__scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.aw-loaded .hero__eyebrow  { opacity: 0.75; transform: none; transition-delay: 0.85s; }
.aw-loaded .hero__subtitle { opacity: 0.72; transform: none; transition-delay: 1.0s; }
.aw-loaded .hero__cta      { opacity: 1;    transform: none; transition-delay: 1.15s; }
.aw-loaded .hero__scroll   { opacity: 0.5;  transform: none; transition-delay: 1.3s; }

/* ── PHASE 1 : HERO PARALLAX ────────────────────────────────────────────── */
.hero__bg {
  transform: scale(1.18) translateY(0);
  transform-origin: center center;
  will-change: transform;
}

/* ── PHASE 1 : SCROLL REVEAL (stagger) ─────────────────────────────────── */
.aw-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.aw-reveal.in-view {
  opacity: 1;
  transform: none;
}
.aw-reveal[data-d="1"]  { transition-delay: 0.08s; }
.aw-reveal[data-d="2"]  { transition-delay: 0.16s; }
.aw-reveal[data-d="3"]  { transition-delay: 0.24s; }
.aw-reveal[data-d="4"]  { transition-delay: 0.32s; }
.aw-reveal[data-d="5"]  { transition-delay: 0.40s; }
.aw-reveal[data-d="6"]  { transition-delay: 0.48s; }

/* ── PHASE 1 : PROJECT CARDS — MAGNETIC + BRUSH REVEAL ─────────────────── */

/* Magnetic lift */
.project-card {
  transition: box-shadow 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.project-card:hover {
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 6px 16px rgba(0,0,0,0.3);
  z-index: 10;
  position: relative;
}

/* Brush stroke overlay for reveal */
.project-card__brush-wrap {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.project-card__brush-svg {
  width: 100%;
  height: 100%;
}
.project-card__brush-path {
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  transition: stroke-dashoffset 0s;
}
.project-card:hover .project-card__brush-path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

/* ── PHASE 2 : RIPPLE ───────────────────────────────────────────────────── */
.hero__cta,
.form-submit,
.filter-btn {
  position: relative;
  overflow: hidden;
}
.aw-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(181, 149, 106, 0.28);
  transform: scale(0);
  animation: aw-ripple-anim 0.65s linear forwards;
  pointer-events: none;
}
@keyframes aw-ripple-anim {
  to { transform: scale(4.5); opacity: 0; }
}

/* ── PHASE 3 : ABOUT PORTRAIT PARALLAX ─────────────────────────────────── */
.about-portrait {
  overflow: hidden;
}
.about-portrait img {
  transform: scale(1.1) translateY(0);
  will-change: transform;
  transition: filter 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── PHASE 3 : TIMELINE ANIMATED ───────────────────────────────────────── */
.timeline__entry {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.timeline__entry.in-view {
  opacity: 1;
  transform: none;
}

/* ── PHASE 5 : ARCHIVE MASONRY ──────────────────────────────────────────── */
.page-archive #projects-grid {
  display: block !important;
  columns: 3;
  column-gap: 4px;
  padding: 0 4px 4px;
}
@media (max-width: 900px) { .page-archive #projects-grid { columns: 2; } }
@media (max-width: 540px) { .page-archive #projects-grid { columns: 1; } }

.page-archive .project-card {
  break-inside: avoid;
  margin-bottom: 4px;
  display: block;
  aspect-ratio: unset;
}
.page-archive .project-card__img {
  height: auto;
  min-height: 180px;
  max-height: 500px;
}

/* ── PHASE 5 : FILTER BUTTONS PRESTIGE ─────────────────────────────────── */
.filter-btn {
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(245,239,230,0.45);
  padding: 0.55rem 1.6rem;
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  transition: color 0.35s, border-color 0.35s, background 0.35s;
}
.filter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #B5956A;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.38s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: -1;
}
.filter-btn:hover::before,
.filter-btn.active::before {
  transform: scaleX(1);
}
.filter-btn:hover,
.filter-btn.active {
  color: #1C1917;
  border-color: #B5956A;
}

/* ── PHASE 5+6 : RIDEAU DE THÉÂTRE (2 panneaux latéraux) ───────────────── */
#aw-curtain-l,
#aw-curtain-r {
  position: fixed;
  top: 0;
  width: 50%;
  height: 100%;
  background: #1C1917;
  z-index: 9996;
  pointer-events: none;
  will-change: transform;
}
#aw-curtain-l { left:  0; transform: scaleX(1); transform-origin: left;  }
#aw-curtain-r { right: 0; transform: scaleX(1); transform-origin: right; }

/* Entering: close from sides (going to new page) */
#aw-curtain-l.aw-entering { animation: aw-cl-in  .52s cubic-bezier(.76,0,.24,1) forwards; }
#aw-curtain-r.aw-entering { animation: aw-cr-in  .52s cubic-bezier(.76,0,.24,1) forwards; }

/* Exiting: open outward (new page reveals itself) */
#aw-curtain-l.aw-exiting  { animation: aw-cl-out .58s cubic-bezier(.76,0,.24,1) forwards; }
#aw-curtain-r.aw-exiting  { animation: aw-cr-out .58s cubic-bezier(.76,0,.24,1) forwards; }

@keyframes aw-cl-in  { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes aw-cr-in  { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes aw-cl-out { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes aw-cr-out { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* Compatibility: keep #aw-transition hidden (replaced by the two panels) */
#aw-transition { display: none; }

/* ── HIDE BASIC CURSOR DOTS when pinceau cursor is active ────────────────── */
#aw-cursor-ring,
#aw-cursor {
  /* cursor-pinceau.js hides these via cursor:none — keep them invisible */
  display: none;
}

/* ── PHASE 6 : LAZY IMAGE FADE-IN ───────────────────────────────────────── */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.6s ease;
}
img[loading="lazy"].aw-img-loaded {
  opacity: 1;
}

/* ── NAV LINK UNDERLINE SLIDE ───────────────────────────────────────────── */
.nav__links a {
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #B5956A;
  transition: width 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

/* ── SECTION HEADER REVEAL ──────────────────────────────────────────────── */
.section__header h2,
.section__header .label,
.section__header .section__link {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.section__header.in-view h2      { opacity: 1; transform: none; transition-delay: 0.05s; }
.section__header.in-view .label  { opacity: 1; transform: none; }
.section__header.in-view .section__link { opacity: 1; transform: none; transition-delay: 0.15s; }

/* ── CLIENTS STRIP ──────────────────────────────────────────────────────── */
.clients__list li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.clients.in-view .clients__list li {
  opacity: 0.45;
  transform: none;
}
.clients.in-view .clients__list li:hover { opacity: 1; }
.clients.in-view .clients__list li:nth-child(1) { transition-delay: 0.05s; }
.clients.in-view .clients__list li:nth-child(2) { transition-delay: 0.10s; }
.clients.in-view .clients__list li:nth-child(3) { transition-delay: 0.15s; }
.clients.in-view .clients__list li:nth-child(4) { transition-delay: 0.20s; }
.clients.in-view .clients__list li:nth-child(5) { transition-delay: 0.25s; }
.clients.in-view .clients__list li:nth-child(6) { transition-delay: 0.30s; }

/* ── QUOTE SECTION ──────────────────────────────────────────────────────── */
.quote-section blockquote {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.quote-section cite {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: 0.35s;
}
.quote-section.in-view blockquote,
.quote-section.in-view cite {
  opacity: 1;
  transform: none;
}
.quote-section.in-view cite { opacity: 1; }

/* ── ABOUT HERO ─────────────────────────────────────────────────────────── */
.about-portrait {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.about-text > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.about-hero.in-view .about-portrait          { opacity: 1; transform: none; transition-delay: 0.1s; }
.about-hero.in-view .about-text > *          { opacity: 1; transform: none; }
.about-hero.in-view .about-text > *:nth-child(1) { transition-delay: 0.25s; }
.about-hero.in-view .about-text > *:nth-child(2) { transition-delay: 0.38s; }
.about-hero.in-view .about-text > *:nth-child(3) { transition-delay: 0.50s; }
.about-hero.in-view .about-text > *:nth-child(4) { transition-delay: 0.62s; }

/* ── SINGLE PROJECT ─────────────────────────────────────────────────────── */
.single-description p {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.single-description p.in-view {
  opacity: 0.82;
  transform: none;
}
.single-description p.in-view:nth-child(2) { transition-delay: 0.1s; }
.single-description p.in-view:nth-child(3) { transition-delay: 0.2s; }

/* override html smooth-scroll — JS handles it */
html { scroll-behavior: auto; }

/* ── CONFLICT OVERRIDES (_styles.php has equal specificity) ─────────────── */

/* Kill the 8s transition on hero bg — JS sets transform directly */
.hero__bg {
  transition: none;
}
/* Kill CSS hover scale on hero bg — parallax JS owns the transform */
.hero:hover .hero__bg {
  transform: scale(1.18) translateY(0);
}

/* Clients: start at opacity 0 so the in-view animation works */
.clients__list li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.clients:not(.in-view) .clients__list li:hover {
  opacity: 0;
}

/* project-card img: JS owns transform via magnetic; override 0.72s base transition */
.project-card__img {
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* gallery-item img: start hidden for our reveal animation */
.gallery-item img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* about-portrait img: override grayscale transition delay */
.about-portrait img {
  transition: filter 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.1s linear;
}

/* ── SINGLE HERO PARALLAX ───────────────────────────────────────────────── */
.single-hero {
  overflow: hidden;
}
.single-hero__img {
  will-change: transform;
  transform: scale(1.1) translateY(0);
}

/* ── SINGLE HERO CONTENT ENTRANCE ───────────────────────────────────────── */
.single-hero__content .label {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: 0.3s;
}
.single-hero__content h1 {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s cubic-bezier(0.76, 0, 0.24, 1),
              transform 0.85s cubic-bezier(0.76, 0, 0.24, 1);
  transition-delay: 0.5s;
}
.aw-loaded .single-hero__content .label,
.aw-loaded .single-hero__content h1 {
  opacity: 1;
  transform: none;
}

/* ── GALLERY ITEMS REVEAL ───────────────────────────────────────────────── */
.gallery-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-item.in-view {
  opacity: 1;
  transform: none;
}

/* ── PROJECT NAV HOVER ──────────────────────────────────────────────────── */
.project-nav__item {
  position: relative;
  overflow: hidden;
}
.project-nav__item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(181,149,106,0.04);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
}
.project-nav__item--next::before { transform-origin: right; }
.project-nav__item:hover::before { transform: scaleX(1); }
.project-nav__dir {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.project-nav__title {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: 0.08s;
}
.project-nav__item--next .project-nav__dir  { transform: translateX(10px); }
.project-nav__item--next .project-nav__title { transform: translateY(12px); }
.project-nav.in-view .project-nav__dir,
.project-nav.in-view .project-nav__title {
  opacity: 1;
  transform: none;
}
.project-nav.in-view .project-nav__item:nth-child(2) .project-nav__dir   { transition-delay: 0.1s; }
.project-nav.in-view .project-nav__item:nth-child(2) .project-nav__title { transition-delay: 0.18s; }

/* ── CONTACT PAGE REVEALS ───────────────────────────────────────────────── */
.contact-intro > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.contact-intro.in-view > *           { opacity: 1; transform: none; }
.contact-intro.in-view > *:nth-child(1) { transition-delay: 0.0s; }
.contact-intro.in-view > *:nth-child(2) { transition-delay: 0.1s; }
.contact-intro.in-view > *:nth-child(3) { transition-delay: 0.2s; }

.contact-link {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.6s ease, transform 0.6s ease, gap 0.4s ease;
}
.contact-links.in-view .contact-link           { opacity: 1; transform: none; }
.contact-links.in-view .contact-link:nth-child(1) { transition-delay: 0.05s; }
.contact-links.in-view .contact-link:nth-child(2) { transition-delay: 0.15s; }

.contact-form .form-group {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.contact-form.in-view .form-group           { opacity: 1; transform: none; }
.contact-form.in-view .form-group:nth-child(1) { transition-delay: 0.0s; }
.contact-form.in-view .form-group:nth-child(2) { transition-delay: 0.07s; }
.contact-form.in-view .form-group:nth-child(3) { transition-delay: 0.14s; }
.contact-form.in-view .form-group:nth-child(4) { transition-delay: 0.21s; }
.contact-form.in-view .form-submit { opacity: 1; transform: none; transition-delay: 0.3s; }
.contact-form .form-submit {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/* ── FORMATION SECTION (about, section--light) ───────────────────────────── */
.section--light h2,
.section--light .label,
.section--light > div > div {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.section--light.in-view h2        { opacity: 1; transform: none; transition-delay: 0.1s; }
.section--light.in-view .label    { opacity: 1; transform: none; }
.section--light.in-view > div > div { opacity: 1; transform: none; transition-delay: 0.2s; }

/* ── META ITEMS SINGLE ───────────────────────────────────────────────────── */
.single-meta {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.single-meta.in-view { opacity: 1; transform: none; }

/* ── IMAGE PLACEHOLDER — broken/missing images ───────────────────────────── */
img:not([src]),
img[src=""],
img.aw-img-broken {
  position: relative;
  background: rgba(107,100,96,0.2);
  min-height: 120px;
}
img:not([src])::after,
img[src=""]::after {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  background: rgba(107,100,96,0.15);
}

/* ── PRINT STYLES — minimal usable output ────────────────────────────────── */
@media print {
  #aw-loader, #aw-curtain-l, #aw-curtain-r, #aw-intro,
  #aw-brush-canvas, #aw-cursor, #aw-cursor-ring,
  #aw-scroll-progress, .hero__scroll { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .hero { min-height: auto !important; height: auto !important; }
  .nav { position: static !important; }
  * { animation: none !important; transition: none !important; }
}

/* ══════════════════════════════════════════════════════════════════════════
   PHASE 9 — MOBILE OPTIMISATIONS
   Disable heavy effects on touch/low-power devices
   ══════════════════════════════════════════════════════════════════════════ */

/* Touch devices: disable custom cursor entirely */
@media (hover: none) {
  #aw-brush-canvas,
  #aw-cursor,
  #aw-cursor-ring { display: none !important; }
  * { cursor: auto !important; }
}

/* Small screens: reduce parallax & motion */
@media (max-width: 768px) {
  /* Disable hero parallax transforms applied by JS */
  .hero__content,
  .hero__eyebrow { transform: none !important; }

  /* Disable about portrait parallax */
  .about-portrait__img { transform: none !important; }

  /* Flatten magnetic cards — JS won't apply transform but be safe */
  .project-card { transform: none !important; }

  /* Scroll progress bar not useful on mobile */
  #aw-scroll-progress { display: none; }

  /* Section numbers decorative — hide on small screens */
  .section__number { display: none; }

  /* Nav hover preview thumbnail — skip on mobile */
  .project-nav__thumb { display: none; }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  /* Freeze all awwwards animations */
  .aw-letter,
  .aw-reveal,
  .single-meta,
  .gallery-item,
  .gallery-reveals .project-card,
  .contact-form .form-group,
  .contact-form .form-submit,
  .section--light h2,
  .section--light .label,
  .section--light > div > div {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  /* Disable loader animation */
  #aw-loader { display: none !important; }

  /* Disable curtain transitions */
  #aw-curtain-l,
  #aw-curtain-r { display: none !important; }

  /* Disable intro */
  #aw-intro { display: none !important; }

  /* Disable brush underlines */
  .nav__link svg.aw-brush-line { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   NOSCRIPT FALLBACK
   When JS is disabled, all animated elements must be immediately visible
   ══════════════════════════════════════════════════════════════════════════ */
.no-js .aw-letter,
.no-js [data-reveal],
.no-js .aw-reveal,
.no-js .project-card,
.no-js .gallery-item,
.no-js .single-meta,
.no-js .contact-form .form-group,
.no-js .contact-form .form-submit,
.no-js .section--light h2,
.no-js .section--light .label,
.no-js .section--light > div > div,
.no-js #aw-loader,
.no-js #aw-curtain-l,
.no-js #aw-curtain-r,
.no-js #aw-intro,
.no-js #aw-brush-canvas {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
  display: block !important;
  clip-path: none !important;
}
.no-js #aw-loader,
.no-js #aw-curtain-l,
.no-js #aw-curtain-r,
.no-js #aw-intro,
.no-js #aw-brush-canvas { display: none !important; }
.no-js * { cursor: auto !important; }

/* ══════════════════════════════════════════════════════════════════════════
   LOGO OSCILIA GLÉ — Nav + Footer
   ══════════════════════════════════════════════════════════════════════════ */

/* Logo dans la navigation (fond sombre) */
.nav__logo-img {
  height: 92px;
  width: auto;
  display: block;
  /* invert(1) : blanc → noir, noir → blanc → G blanc sur fond noir */
  /* screen blend-mode : le fond noir devient transparent sur le nav sombre */
  background: transparent;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.nav__logo:hover .nav__logo-img {
  opacity: 0.7;
  transform: scale(1.06);
}

@media (max-width: 768px) {
  .nav__logo-img { height: 68px; }
}

/* Logo dans le footer (fond sombre) — version plus petite */
.footer__logo-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.5rem;
}
.footer__logo-img {
  height: 160px;
  width: auto;
  display: block;
  background: transparent;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.footer__logo-link:hover .footer__logo-img {
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════════════════════
   IMAGES FULL HD — max-width + object-fit universel
   ══════════════════════════════════════════════════════════════════════════ */

img {
  max-width: 100%;
  height: auto;
}

.project-card img,
.arch-card__img,
.gallery-item img,
.single-gallery img,
.hero-img img,
.hero__bg-img,
.featured-img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Eager loading pour les images above-the-fold */
img[fetchpriority="high"] {
  opacity: 1 !important;
  transition: none !important;
}
