/* ==========================================================================
   Luna Salahie — lunasalahie.com
   ========================================================================== */

:root{
  color-scheme: light;
  --paper:#F3EDE7;
  --ink:#120D08;
  --rose:#A85C74;
  --stone:#5B5045;
  --plum:#4A2C39;
  --rule:rgba(28,23,16,.15);
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
html,body{color-scheme:light;}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  overflow-x:hidden;
  forced-color-adjust:none;
  -webkit-font-smoothing:antialiased;
}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:.01ms !important;transition-duration:.01ms !important;}
  html{scroll-behavior:auto;}
}
a{color:inherit;text-decoration:none;}
img{display:block;width:100%;height:100%;object-fit:cover;}
.display{font-family:'Fraunces',serif;}

.skip-link{
  position:absolute;left:-9999px;top:0;z-index:200;
  background:var(--ink);color:var(--paper);
  padding:12px 20px;font-size:13px;letter-spacing:.08em;text-transform:uppercase;
}
.skip-link:focus{left:0;}

/* ---------- NAV ---------- */
header{
  position:fixed;top:0;left:0;right:0;z-index:100;
  display:flex;justify-content:space-between;align-items:center;
  padding:26px 40px;mix-blend-mode:difference;
}
header .brand{font-family:'Fraunces',serif;font-size:15px;letter-spacing:.08em;color:#fff;}
.menu-btn{background:none;border:none;cursor:pointer;display:flex;flex-direction:column;gap:6px;padding:8px;}
.menu-btn span{width:26px;height:1px;background:#fff;display:block;transition:transform .35s ease,opacity .35s ease;}
.menu-btn.open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.menu-btn.open span:nth-child(2){opacity:0;}
.menu-btn.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

.overlay{
  position:fixed;inset:0;z-index:90;
  background:var(--ink);color:var(--paper);
  display:flex;flex-direction:column;justify-content:center;padding:0 60px;
  clip-path:circle(0% at calc(100% - 60px) 44px);
  transition:clip-path .6s cubic-bezier(.77,0,.18,1);
  pointer-events:none;
}
.overlay.open{clip-path:circle(150% at calc(100% - 60px) 44px);pointer-events:auto;}
.overlay nav{display:flex;flex-direction:column;gap:6px;}
.overlay nav a{
  font-family:'Fraunces',serif;font-size:clamp(38px,7vw,72px);font-weight:400;line-height:1.15;
  opacity:.35;transition:opacity .3s ease,padding-left .3s ease;width:fit-content;
}
.overlay nav a:hover,.overlay nav a:focus-visible{opacity:1;padding-left:14px;color:var(--rose);}
.overlay .sub{margin-top:60px;display:flex;gap:28px;font-size:11px;letter-spacing:.12em;text-transform:uppercase;flex-wrap:wrap;}
.overlay .sub a{opacity:.6;transition:opacity .2s;}
.overlay .sub a:hover,.overlay .sub a:focus-visible{opacity:1;}
@media (max-width:700px){.overlay{padding:0 40px;}}

/* ---------- HERO ---------- */
.hero{
  height:100svh;min-height:640px;position:relative;
  display:flex;flex-direction:column;justify-content:flex-end;
  padding:0 40px 64px;overflow:hidden;
}
.hero .hero-img{position:absolute;inset:0;z-index:0;}
.hero .hero-img img{filter:saturate(0.9);}
.hero .hero-scrim{
  position:absolute;inset:0;z-index:1;
  background:linear-gradient(0deg, rgba(15,11,8,0.85) 0%, rgba(15,11,8,0.25) 45%, rgba(15,11,8,0.55) 100%);
}
.hero-content{position:relative;z-index:2;}
.hero-eyebrow{
  color:var(--rose);font-size:11px;letter-spacing:.2em;text-transform:uppercase;
  margin-bottom:18px;opacity:0;animation:rise .9s .2s ease forwards;
}
.hero h1{color:var(--paper);font-size:clamp(48px,10vw,128px);font-weight:400;line-height:.94;letter-spacing:-.01em;font-family:'Fraunces',serif;}
.hero h1 span{display:block;overflow:hidden;}
.hero h1 span em{display:block;font-style:italic;font-weight:300;transform:translateY(110%);animation:rise .9s cubic-bezier(.2,.8,.2,1) forwards;}
.hero h1 span:nth-child(1) em{animation-delay:.15s;}
.hero h1 span:nth-child(2) em{animation-delay:.28s;color:var(--rose);}
@keyframes rise{to{transform:translateY(0);opacity:1;}}
.hero-foot{
  display:flex;justify-content:space-between;align-items:flex-end;margin-top:30px;
  opacity:0;animation:fadein 1s 1s ease forwards;flex-wrap:wrap;gap:16px;
}
@keyframes fadein{to{opacity:1;}}
.hero-foot p{color:var(--paper);opacity:.75;font-size:13px;letter-spacing:.06em;text-transform:uppercase;display:flex;gap:16px;flex-wrap:wrap;}
.scroll-cue{color:var(--paper);font-size:11px;letter-spacing:.15em;text-transform:uppercase;writing-mode:vertical-rl;opacity:.5;}
@media (max-width:700px){
  .hero{padding:0 24px 48px;}
  .hero-foot p{font-size:11px;gap:10px;}
  .scroll-cue{display:none;}
}

/* ---------- SECTIONS ---------- */
.section{padding:130px 40px;position:relative;}
.section-head{
  display:flex;justify-content:space-between;align-items:flex-end;
  margin-bottom:60px;border-bottom:1px solid var(--rule);padding-bottom:24px;
  flex-wrap:wrap;gap:12px;
}
.section-head .num{color:var(--rose);font-size:12px;letter-spacing:.12em;}
.section-head h2{font-size:clamp(30px,4vw,48px);font-weight:400;color:var(--ink);font-family:'Fraunces',serif;}
.prose{max-width:760px;}
.prose p{font-size:16px;line-height:1.85;color:#241a10;margin-bottom:20px;}
.prose p:last-child{margin-bottom:0;}
@media (max-width:700px){.section{padding:90px 24px;}}

/* ---------- SWIPEABLE CAROUSEL ---------- */
.carousel{position:relative;margin:56px 0;}
.carousel-track{
  display:flex;gap:8px;overflow-x:auto;
  scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
  cursor:grab;padding-bottom:4px;
  scrollbar-width:none;-ms-overflow-style:none;
}
.carousel-track:active{cursor:grabbing;}
.carousel-track::-webkit-scrollbar{display:none;}
.carousel-track .cell{flex:0 0 78%;aspect-ratio:3/4;overflow:hidden;scroll-snap-align:start;}
@media (min-width:700px){.carousel-track .cell{flex:0 0 calc(33.333% - 6px);}}
.carousel-arrows{display:flex;gap:10px;justify-content:flex-end;margin-top:14px;}
.carousel-arrow{
  width:38px;height:38px;border-radius:50%;
  border:1px solid rgba(20,16,11,.25);background:transparent;color:var(--ink);
  cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center;
  transition:background .2s,color .2s;
}
.carousel-arrow:hover{background:var(--ink);color:var(--paper);}
.carousel-dots{display:flex;gap:6px;margin-top:14px;}
.carousel-dots span{width:6px;height:6px;border-radius:50%;background:rgba(20,16,11,.22);transition:background .25s,transform .25s;}
.carousel-dots span.active{background:var(--rose);transform:scale(1.3);}
.carousel-foot{display:flex;justify-content:space-between;align-items:center;}
@media (max-width:700px){.carousel-arrows{display:none;}}

.full-bleed{width:100%;aspect-ratio:16/8;overflow:hidden;margin:56px 0;}
.full-bleed img{object-position:center 30%;}
@media (max-width:700px){.full-bleed{aspect-ratio:4/5;}}

/* ---------- WORK INDEX ---------- */
.work-list{border-top:1px solid var(--rule);}
.work-row{
  border-bottom:1px solid var(--rule);
  display:flex;align-items:center;gap:24px;padding:28px 4px;cursor:pointer;
}
.work-row .index{color:var(--stone);font-size:13px;width:34px;flex-shrink:0;}
.work-row h3{font-family:'Fraunces',serif;font-weight:400;font-size:clamp(20px,3vw,36px);flex:1;color:var(--ink);transition:color .3s;}
.work-row .category{color:var(--stone);font-size:11px;letter-spacing:.1em;text-transform:uppercase;flex-shrink:0;}
.work-row .arrow{font-size:18px;color:var(--rose);flex-shrink:0;}
.work-row:hover h3,.work-row:focus-visible h3{color:var(--rose);}
@media (max-width:700px){.work-row{gap:14px;padding:22px 2px;}.work-row .category{display:none;}}

.cursor-preview{
  position:fixed;top:0;left:0;z-index:60;width:210px;height:280px;
  pointer-events:none;opacity:0;transition:opacity .25s ease;overflow:hidden;
}
.cursor-preview.show{opacity:1;}
@media (max-width:900px){.cursor-preview{display:none;}}

/* ---------- PROJECTS ---------- */
.project{padding:100px 40px;border-top:1px solid rgba(28,23,16,.12);}
.project-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:44px;flex-wrap:wrap;gap:10px;}
.project-head .cat{color:var(--rose);font-size:11px;letter-spacing:.12em;text-transform:uppercase;}
.project h3{font-family:'Fraunces',serif;font-weight:400;font-size:clamp(28px,4.2vw,54px);max-width:760px;color:var(--ink);}
.project-body{display:grid;grid-template-columns:1.1fr 0.9fr;gap:60px;align-items:start;margin-top:20px;}
.project-body p{font-size:16px;line-height:1.85;color:#241a10;}
@media (max-width:860px){.project-body{grid-template-columns:1fr;gap:32px;}}
@media (max-width:700px){.project{padding:70px 24px;}}

.single-shot{width:100%;aspect-ratio:4/5;overflow:hidden;}
.single-shot video{width:100%;height:100%;object-fit:cover;display:block;background:var(--ink);}

/* video that behaves like a moving photograph */
.reel{cursor:default;}
@media (prefers-reduced-motion: reduce){
  /* honour the preference: the poster frame stands in for the loop */
  .reel{pointer-events:none;}
}

/* ---------- SOCIETY TWENTY TWO ---------- */
.club{background:var(--ink);color:var(--paper);padding:120px 40px;}
.club-inner{max-width:820px;}
.club .num{color:var(--rose);font-size:12px;letter-spacing:.12em;}
.club h2{font-family:'Fraunces',serif;font-weight:400;font-size:clamp(34px,5.5vw,64px);margin:20px 0 30px;color:var(--paper);}
.club p{font-size:17px;line-height:1.85;color:rgba(243,237,231,.85);max-width:640px;margin-bottom:20px;}
.club-link{
  display:inline-flex;align-items:center;gap:10px;margin-top:24px;
  font-size:13px;letter-spacing:.1em;text-transform:uppercase;
  border-bottom:1px solid var(--rose);padding-bottom:5px;color:var(--rose);
  transition:color .2s,border-color .2s;
}
.club-link:hover,.club-link:focus-visible{color:var(--paper);border-color:var(--paper);}
.club-role{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--rose);margin-bottom:8px;display:block;}
@media (max-width:700px){.club{padding:90px 24px;}}

/* ---------- CONTACT / FOOTER ---------- */
footer{background:var(--ink);color:var(--paper);padding:0;position:relative;overflow:hidden;}
.footer-inner{padding:130px 40px 50px;position:relative;z-index:2;}
.footer-inner .num{color:var(--rose);font-size:12px;letter-spacing:.12em;}
footer h2{
  font-family:'Fraunces',serif;font-weight:400;font-style:italic;
  font-size:clamp(34px,6vw,84px);max-width:820px;line-height:1.1;margin-top:20px;
}
footer .email{
  display:inline-block;margin-top:38px;font-size:14px;letter-spacing:.08em;text-transform:uppercase;
  border-bottom:1px solid var(--rose);padding-bottom:4px;color:var(--rose);
  transition:color .2s,border-color .2s;
}
footer .email:hover,footer .email:focus-visible{color:var(--paper);border-color:var(--paper);}
.contact-grid{display:grid;grid-template-columns:repeat(4,auto);gap:40px;margin-top:80px;}
.contact-grid div span{display:block;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--stone);margin-bottom:8px;}
.contact-grid div a,.contact-grid div p{font-size:14px;}
.contact-grid div a{transition:color .2s;}
.contact-grid div a:hover,.contact-grid div a:focus-visible{color:var(--rose);}
.foot-row{
  display:flex;justify-content:space-between;align-items:flex-end;
  margin-top:90px;padding-top:24px;border-top:1px solid rgba(243,237,231,.15);
  flex-wrap:wrap;gap:20px;
}
.foot-row span{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--stone);}
.footer-portrait{
  position:absolute;top:0;right:0;bottom:0;width:38%;opacity:.5;z-index:1;
  mask-image:linear-gradient(90deg, transparent, black 35%);
  -webkit-mask-image:linear-gradient(90deg, transparent, black 35%);
}
@media (max-width:860px){.footer-portrait{display:none;}}
@media (max-width:700px){
  .footer-inner{padding:90px 24px 40px;}
  .contact-grid{grid-template-columns:repeat(2,auto);gap:28px;margin-top:56px;}
  .foot-row{margin-top:60px;}
}

/* ---------- 404 ---------- */
.notfound{
  min-height:100svh;display:flex;flex-direction:column;
  align-items:center;justify-content:center;text-align:center;padding:40px;gap:18px;
}
.notfound h1{font-family:'Fraunces',serif;font-weight:400;font-style:italic;font-size:clamp(44px,9vw,96px);}
.notfound p{color:var(--stone);font-size:14px;letter-spacing:.06em;}
.notfound a{
  margin-top:14px;font-size:13px;letter-spacing:.1em;text-transform:uppercase;
  border-bottom:1px solid var(--rose);padding-bottom:4px;color:var(--rose);
}

/* ---------- FOCUS ---------- */
::-moz-focus-inner{border:0;}
a:focus-visible, button:focus-visible, .work-row:focus-visible, .carousel-track:focus-visible{
  outline:2px solid var(--rose);outline-offset:3px;
}
