/* RESET */
*{ margin:0; padding:0; box-sizing:border-box; }

:root{
  --pad: clamp(18px, 5vw, 110px);
}

body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:#000;
  color:#fff;
  overflow-x:hidden;
}

img{ max-width:100%; height:auto; display:block; }

/* header small logo */
.site-header{
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 50;
  opacity: .9;
}
.site-header img{
  width: 40px;
  filter: none; /* pas de glow */
}

/* sections normales */
.panel{
  min-height: 100vh;
  padding: var(--pad);
  display:flex;
  align-items:center;
  justify-content:center;
}

/* PINNED */
#story{
  position: relative;
  background:#000;
  color:#fff;
  overflow:hidden;
}

/* FLAQUE */
.wipe{
  position:absolute;
  inset:-30vh -30vw;
  z-index: 20;
  pointer-events:none;
  opacity: 0;
  transform: translateX(-160%);
  will-change: transform, opacity;
}
.wipe::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(closest-side at 20% 55%, rgba(255,255,255,0.98), rgba(255,255,255,0) 62%),
    radial-gradient(closest-side at 50% 45%, rgba(255,255,255,0.95), rgba(255,255,255,0) 58%),
    radial-gradient(closest-side at 80% 62%, rgba(255,255,255,0.98), rgba(255,255,255,0) 64%),
    linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.98), rgba(255,255,255,0));
  transform: rotate(-8deg) scaleY(1.12);
  filter: blur(6px);
}

/* INTRO centered (mobile safe) */
.intro{
  height: 100vh;
  padding: 0;
  display:flex;
  align-items:center;
  justify-content:center;
}

.hero-center{
  width: 100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap: 26px;
  padding: 20px;
}

.hero-logo{
  width: min(86vw, 520px);
  filter: none;
  margin-left:auto;
  margin-right:auto;
}

.hero-text{
  font-size: 16px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: .72;
  line-height: 1.5;
}

/* scroll hint */
.scroll-hint{
  width: 28px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  display:grid;
  place-items: start center;
  padding-top: 8px;
  opacity: .7;
}
.scroll-hint span{
  width: 4px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  animation: hint 1.2s infinite ease-in-out;
}
@keyframes hint{
  0%{ transform: translateY(0); opacity:.8; }
  70%{ transform: translateY(14px); opacity:.25; }
  100%{ transform: translateY(0); opacity:.8; }
}

/* + imposant en paysage */
@media (orientation: landscape){
  .hero-logo{ width: min(60vw, 720px); }
  .hero-text{ font-size: 15px; }
}

/* PROJECT */
.project{
  min-height: 100vh;
  padding: var(--pad);
  display:flex;
  align-items:center;
  justify-content:center;
}

.case-study{
  width: min(1120px, 100%);
  display:grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(24px, 6vw, 96px);
  align-items:center;
}

@media (max-width: 900px){
  .case-study{ grid-template-columns: 1fr; gap: 22px; }
  .case-study .text{ text-align:center; }
  .project{ padding: 24px; }
}

/* typographie */
.label{
  font-size: 13px;
  letter-spacing: .25em;
  text-transform: uppercase;
  opacity: .6;
}
h2{
  font-size: clamp(34px, 5vw, 72px);
  margin: 16px 0 12px;
}
p{
  font-size: 16px;
  line-height: 1.7;
  opacity: .75;
}

/* 3D image */
.visual{ perspective: 1200px; }

.media-3d{
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow:hidden;
  transform-style: preserve-3d;
  box-shadow: 0 60px 120px rgba(0,0,0,.7), 0 20px 40px rgba(0,0,0,.9);
  will-change: transform;
}

.media-3d a{
  display:block;
  width:100%;
  height:100%;
}

.media-3d a img{
  width:100%;
  height:100%;
  object-fit: cover;
  transform: translateZ(40px);
}

.corner{ position:absolute; width:48px; height:48px; pointer-events:none; }
.corner.tr{ top:-12px; right:-12px; border-top:2px solid #fff; border-right:2px solid #fff; }
.corner.bl{ bottom:-12px; left:-12px; border-bottom:2px solid #fff; border-left:2px solid #fff; }

/* PRICING */
.pricing{
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  background:#000;
  color:#fff;
}

.line{
  width: 120px;
  height: 2px;
  background: #fff;
  margin: 22px auto 8px;
  opacity: .5;
}

.table-wrap{
  width: min(1120px, 100%);
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
}

.pricing-table{
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td{
  padding: 18px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  text-align:center;
}
.pricing-table td:first-child{
  text-align:left;
  opacity:.7;
}

/* PORTFOLIO */
.portfolio{
  padding: calc(var(--pad) * 1.1);
  background:#000;
  color:#fff;
}

.portfolio h2{
  width: min(1120px, 100%);
  margin-left:auto;
  margin-right:auto;
}

/* Masonry container (JS) */
.grid{
  width: min(1120px, 100%);
  margin: 46px auto 0;
  position: relative; /* IMPORTANT */
}

/* Cards positioned by JS */
.p-item{
  position: absolute; /* IMPORTANT */
  display:block;
  border-radius: 18px;
  overflow:hidden;
  background:#111;
  box-shadow: inset 0 0 0 1px #222;
  transform: translateZ(0);
}

.p-item img{
  width:100%;
  height:auto;
  display:block;
  opacity: .95;
  transition: transform .35s ease, opacity .35s ease;
}

@media (hover:hover){
  .p-item:hover img{
    transform: scale(1.04);
    opacity: 1;
  }
}

/* mobile padding edges */
@media (max-width: 560px){
  .portfolio{
    padding-left: 18px;
    padding-right: 18px;
  }
}

.table-desc{
  width: min(1120px, 100%);
  margin: 10px auto 18px;
  opacity: .75;
  line-height: 1.6;
}

.table-note{
  width: min(1120px, 100%);
  margin: 14px auto 0;
  opacity: .6;
  font-size: 14px;
  line-height: 1.5;
}

.muted{
  opacity: .65;
  font-size: 0.95em;
}

.pricing-table th:first-child,
.pricing-table td:first-child{
  text-align: left;
}

.pricing-description{
  width: min(1120px, 100%);
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pack{
  background: #0b0b0b;
  border-radius: 18px;
  padding: 18px;
  box-shadow: inset 0 0 0 1px #1f1f1f;
}

.pack h3{
  font-size: 16px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: .9;
}

.pack p{
  margin-bottom: 12px;
  opacity: .75;
}

.pack ul{
  margin: 0;
  padding-left: 18px;
  opacity: .75;
  line-height: 1.7;
}

@media (max-width: 900px){
  .pricing-description{
    grid-template-columns: 1fr;
  }
}