/* ==========================================================================
   Auro Studio — Homepage (dark editorial)
   ========================================================================== */

:root {
  --bg: #0E0D0C;
  --bg-2: #161412;
  --bg-3: #1D1A17;
  --text: #F1ECE7;
  --text-2: rgba(241, 236, 231, .72);
  --muted: rgba(241, 236, 231, .5);
  --line: rgba(241, 236, 231, .16);
  --line-2: rgba(241, 236, 231, .32);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Cabinet Grotesk", "Helvetica Neue", Arial, sans-serif;

  --pad: 40px;
  --ease: cubic-bezier(.76, 0, .24, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Fine film grain over everything */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--text); color: var(--bg); }

/* ==========================================================================
   Loader
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  transition: opacity .9s var(--ease) .2s, visibility 0s linear 1.1s;
}
.loader img { width: min(220px, 50vw); opacity: 0; animation: fadeUp 1s var(--ease-out) .1s forwards; }
.loader-bar { width: 110px; height: 1px; background: var(--line); overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: var(--text); transform: scaleX(0); transform-origin: left; animation: grow 1.1s var(--ease) .25s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes grow { to { transform: scaleX(1); } }
body.is-ready .loader { opacity: 0; visibility: hidden; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 40px;
  padding: 30px var(--pad);
  transition: transform .9s var(--ease) .3s;
}
body:not(.is-ready) .header { transform: translateY(-110%); }

.brand { display: flex; align-items: center; gap: 22px; margin-right: auto; }
.brand-logo { width: 116px; height: auto; }
.brand-rule { width: 1px; height: 56px; background: var(--line-2); }
.brand-tag { font-size: 12px; line-height: 1.45; letter-spacing: .06em; text-transform: uppercase; }

.nav { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 46px; }
.nav a {
  font-family: var(--serif); font-weight: 400; font-size: 17px; letter-spacing: .22em; text-transform: uppercase;
  position: relative; padding: 4px 0; margin-right: -.22em;
}
.nav a::after { content: ""; position: absolute; left: 0; right: .22em; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: none; align-items: center; margin-left: auto; }
.menu-pill {
  width: 104px; height: 46px; border-radius: 40px; background: var(--bg-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transition: background .4s, border-color .4s;
}
.menu-pill i { display: block; width: 46px; height: 1px; background: var(--text); transition: transform .6s var(--ease); }
.menu-pill:hover { border-color: var(--line-2); background: var(--bg-3); }
.menu-pill[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(14deg); }
.menu-pill[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-14deg); }

/* ==========================================================================
   Mobile menu
   ========================================================================== */
.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg);
  padding: 150px var(--pad) 40px; display: flex; flex-direction: column; justify-content: center;
  clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease);
}
.menu[hidden] { display: none; }
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu-nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.menu-nav a {
  display: flex; align-items: baseline; gap: 26px; padding: 14px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(30px); transition: opacity .7s, transform .9s var(--ease-out);
}
.menu-num { font-size: 12px; color: var(--muted); width: 22px; }
.menu-word { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5vw, 76px); line-height: 1; }
.menu.is-open .menu-nav a { opacity: 1; transform: none; }
.menu.is-open .menu-nav a:nth-child(2) { transition-delay: .06s; }
.menu.is-open .menu-nav a:nth-child(3) { transition-delay: .12s; }
.menu.is-open .menu-nav a:nth-child(4) { transition-delay: .18s; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--bg-2); }
.hero-slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; clip-path: inset(0 0 0 100%); z-index: 1; }
.slide.is-active { clip-path: inset(0 0 0 0); z-index: 2; }
.slide.is-entering { z-index: 3; animation: wipe 1.4s var(--ease) forwards; }
@keyframes wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }

.slide-img { position: absolute; inset: 0; overflow: hidden; }
.slide-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 2.6s var(--ease-out); }
.slide.is-active .slide-img img, .slide.is-entering .slide-img img { transform: scale(1.02); }
.slide.is-leaving .slide-img img { transform: translateX(-8%) scale(1.02); transition: transform 1.4s var(--ease); }
body:not(.is-ready) .slide-img img { transform: scale(1.14) !important; }
.slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,9,8,.5) 0%, rgba(10,9,8,0) 22%),
    linear-gradient(0deg, rgba(10,9,8,.72) 0%, rgba(10,9,8,.28) 30%, rgba(10,9,8,0) 55%),
    linear-gradient(90deg, rgba(10,9,8,.35) 0%, rgba(10,9,8,0) 50%);
}

.slide-copy { position: absolute; z-index: 4; left: var(--pad); bottom: 120px; max-width: 920px; }
.slide-title {
  font-family: var(--serif); font-weight: 300; font-size: clamp(52px, 6vw, 96px);
  line-height: 1; letter-spacing: -.005em; overflow: hidden; padding-bottom: .08em;
}
.slide-title span, .slide-sub span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.slide-sub { font-size: 17px; margin-top: 26px; overflow: hidden; }
.slide.is-shown .slide-title span { transform: none; }
.slide.is-shown .slide-sub span { transform: none; transition-delay: .12s; }

.hero-progress { position: absolute; z-index: 6; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 6px; }
.bar { width: 38px; padding: 14px 0; }
.bar i { display: block; height: 1.5px; background: rgba(241, 236, 231, .28); position: relative; overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset: 0; background: var(--text); transform: scaleX(0); transform-origin: left; }
.bar.is-done i::after { transform: scaleX(1); }
.bar.is-active i::after { animation: barFill var(--dur, 6.5s) linear forwards; }
@keyframes barFill { to { transform: scaleX(1); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .nav { gap: 30px; }
  .nav a { font-size: 15px; letter-spacing: .18em; }
}

@media (max-width: 1024px) {
  :root { --pad: 28px; }
  .nav { display: none; }
  .header-actions { display: flex; }
}

@media (max-width: 700px) {
  :root { --pad: 18px; }
  .header { padding-top: 18px; padding-bottom: 18px; gap: 16px; }
  .brand { gap: 14px; }
  .brand-logo { width: 84px; }
  .brand-rule { height: 38px; }
  .brand-tag { font-size: 10px; }
  .menu-pill { width: 74px; height: 40px; }
  .menu-pill i { width: 32px; }
  .menu { padding-top: 120px; }

  .slide-copy { right: var(--pad); bottom: 84px; }
  .slide-title { font-size: clamp(42px, 12vw, 64px); }
  .slide-sub { font-size: 15px; }
  .slide:nth-child(2) .slide-img img { object-position: 52% 50%; }
  .slide:nth-child(3) .slide-img img { object-position: 30% 50%; }
  .hero-progress { left: var(--pad); transform: none; bottom: 26px; }
  .bar { width: 32px; }
}

@media (max-width: 480px) {
  .brand-rule, .brand-tag { display: none; }
  .brand-logo { width: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
