/* ============================================================
   SANDEEP — Male Model Portfolio
   Palette pulled from the photoshoot: swamp moss, crimson blazer,
   bone white, warm ink black.
   ============================================================ */

:root {
  --ink: #0c0b09;
  --ink-2: #14120e;
  --bone: #eae3d4;
  --bone-dim: #b3ac9c;
  --crimson: #b23a2b;
  --moss: #69774f;
  --smoke: #75716a;
  --line: rgba(234, 227, 212, 0.14);

  --font-display: 'Anton', Impact, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Space Grotesk', Helvetica, Arial, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

img, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--crimson); color: var(--bone); }

/* ---------- film grain over everything ---------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ---------- custom cursor (desktop only) ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9500;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot { width: 6px; height: 6px; background: var(--crimson); }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(234, 227, 212, 0.5);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
              border-color 0.25s, background 0.25s;
}
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  border-color: var(--crimson);
  background: rgba(178, 58, 43, 0.12);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.9s var(--ease-out);
}
.preloader.is-done { transform: translateY(-100%); }
.preloader__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  color: var(--bone);
}
.preloader__bar {
  width: min(260px, 60vw);
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.preloader__bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--crimson);
  transform-origin: left;
  animation: load-bar 0.55s var(--ease-out) forwards;
}
@keyframes load-bar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 8000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px clamp(20px, 4vw, 56px);
  mix-blend-mode: difference;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.28em;
  color: #fff;
}
.nav__links { display: flex; gap: clamp(16px, 3vw, 36px); }
.nav__links a {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  padding-bottom: 3px;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- 3D filmstrip intro (plays ~2.5s, then reveals hero) ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9800;
  background: var(--ink);
  overflow: hidden;
  display: flex;
  align-items: center;
  perspective: 1100px;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
.intro.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.intro__track {
  display: flex;
  gap: clamp(14px, 2.4vw, 34px);
  padding-left: 8vw;
  transform-style: preserve-3d;
  animation: strip-sweep 2.5s cubic-bezier(0.3, 0, 0.2, 1) forwards;
  will-change: transform;
}
@keyframes strip-sweep {
  from { transform: translateX(20vw) rotateY(-24deg); }
  to   { transform: translateX(-118vw) rotateY(-24deg); }
}
.intro__frame {
  flex: 0 0 auto;
  width: clamp(150px, 21vw, 320px);
  height: clamp(230px, 56vh, 480px);
  object-fit: cover;
  filter: grayscale(0.5) contrast(1.05);
  border: 1px solid var(--line);
  opacity: 0;
  animation: frame-pop 0.32s var(--ease-out) forwards;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}
/* frame-by-frame pop, one after another */
.intro__frame:nth-child(1) { animation-delay: 0.05s; }
.intro__frame:nth-child(2) { animation-delay: 0.22s; }
.intro__frame:nth-child(3) { animation-delay: 0.39s; }
.intro__frame:nth-child(4) { animation-delay: 0.56s; }
.intro__frame:nth-child(5) { animation-delay: 0.73s; }
.intro__frame:nth-child(6) { animation-delay: 0.90s; }
.intro__frame:nth-child(7) { animation-delay: 1.07s; }
.intro__frame:nth-child(8) { animation-delay: 1.24s; }
.intro__frame:nth-child(9) { animation-delay: 1.41s; }
@keyframes frame-pop {
  from { opacity: 0; transform: scale(0.88) translateZ(-80px); }
  to   { opacity: 1; transform: scale(1) translateZ(0); }
}
.intro__counter {
  position: absolute;
  bottom: 28px;
  right: 36px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: var(--smoke);
}

/* ---------- hero: full-bleed video stage ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: end start;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 6s var(--ease-out);
}
.hero.is-live .hero__bg { transform: scale(1); }
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 11, 9, 0.55) 0%, rgba(12, 11, 9, 0.1) 40%, rgba(12, 11, 9, 0.78) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(20px, 4vw, 56px) clamp(90px, 12vh, 130px);
  width: 100%;
}
.hero__name {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 12.5vw, 11.5rem);
  line-height: 0.9;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--bone);
}
.hero__name span { display: block; overflow: hidden; }
.hero__name span i {
  font-style: normal;
  display: inline-block;
  transform: translateY(112%);
  transition: transform 1s var(--ease-out);
}
.hero__surname i { color: transparent; -webkit-text-stroke: 1.5px var(--bone); }
.hero.is-live .hero__name span:nth-child(1) i { transform: translateY(0); transition-delay: 0.1s; }
.hero.is-live .hero__name span:nth-child(2) i { transform: translateY(0); transition-delay: 0.24s; }
.hero__meta {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
  opacity: 0;
  transition: opacity 1s var(--ease-out) 0.6s;
}
.hero.is-live .hero__meta { opacity: 1; }
.hero__meta em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--bone);
}
.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 1px;
  height: 48px;
  background: var(--line);
  overflow: hidden;
}
.hero__scroll::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--crimson);
  animation: scroll-hint 1.8s var(--ease-out) infinite;
}
@keyframes scroll-hint {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ---------- marquee strip ---------- */
.marquee {
  position: relative;
  z-index: 4;
  background: var(--moss);
  color: var(--ink);
  overflow: hidden;
  padding: 12px 0;
  transform: rotate(-1.2deg) scale(1.02);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: 48px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- shared section bits ---------- */
.section { padding: clamp(80px, 12vw, 160px) clamp(20px, 4vw, 56px); }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.section__eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--bone-dim);
  white-space: nowrap;
}

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(46px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- looks grid ---------- */
.looks__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 2vw, 28px);
}
.look {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
}
.look img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.85) contrast(1.02);
  transform: scale(1.001);
  transition: filter 0.7s var(--ease-out), transform 1.1s var(--ease-out);
}
.look:hover img { filter: grayscale(0) contrast(1); transform: scale(1.05); }
.look__tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone);
  background: rgba(12, 11, 9, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 6px 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.look:hover .look__tag { opacity: 1; transform: translateY(0); }

/* magazine-spread placement */
.look--1 { grid-column: 1 / 6;  grid-row: span 2; aspect-ratio: 3/4.4; }
.look--2 { grid-column: 6 / 10; aspect-ratio: 3/4; margin-top: clamp(30px, 6vw, 90px); }
.look--3 { grid-column: 10 / 13; aspect-ratio: 3/4.6; }
.look--4 { grid-column: 6 / 9; aspect-ratio: 3/4; }
.look--5 { grid-column: 9 / 13; aspect-ratio: 4/4.4; margin-top: clamp(-40px, -3vw, -20px); }
.look--6 { grid-column: 1 / 5; aspect-ratio: 3/4.4; }
.look--7 { grid-column: 5 / 9; aspect-ratio: 3/4.8; margin-top: clamp(30px, 5vw, 70px); }
.look--8 { grid-column: 9 / 13; grid-row: span 2; aspect-ratio: 3/4.9; }
.look--9 { grid-column: 1 / 5; aspect-ratio: 3/5; margin-top: clamp(-60px, -4vw, -30px); }

@media (max-width: 760px) {
  .look--1, .look--2, .look--3, .look--4, .look--5, .look--6, .look--7, .look--8, .look--9 {
    grid-column: span 12;
    margin-top: 0;
  }
}
@media (min-width: 761px) and (max-width: 1024px) {
  .look--1 { grid-column: 1 / 7; }
  .look--2 { grid-column: 7 / 13; }
  .look--3 { grid-column: 1 / 7; }
  .look--4 { grid-column: 7 / 13; }
  .look--5 { grid-column: 1 / 7; margin-top: 0; }
  .look--6 { grid-column: 7 / 13; }
  .look--7 { grid-column: 1 / 7; margin-top: 0; }
  .look--8 { grid-column: 7 / 13; grid-row: auto; }
  .look--9 { grid-column: 1 / 7; margin-top: 0; }
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9700;
  background: rgba(12, 11, 9, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox__close {
  position: absolute;
  top: 22px;
  right: 28px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone);
  background: none;
  border: 1px solid var(--line);
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.lightbox__close:hover { background: var(--crimson); border-color: var(--crimson); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--bone);
  font-size: 2rem;
  cursor: pointer;
  padding: 20px;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }

/* ---------- motion / video ---------- */
.motion { background: var(--ink-2); }
.motion__stage {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px) 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 60px);
}
.motion__video {
  grid-column: 2;
  position: relative;
  border: 1px solid var(--line);
  padding: 10px;
  background: var(--ink);
}
.motion__video video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
.motion__side {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  color: var(--bone-dim);
  line-height: 1.5;
}
.motion__side--left { text-align: right; }
.motion__side strong {
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  letter-spacing: 0.06em;
  color: var(--bone);
  margin-bottom: 8px;
}
@media (max-width: 860px) {
  .motion__stage { grid-template-columns: 1fr; }
  .motion__video { grid-column: 1; max-width: 380px; margin: 0 auto; }
  .motion__side { text-align: center !important; }
}

/* ---------- about / comp card ---------- */
.about__layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}
.about__bio {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.65;
  color: var(--bone);
  max-width: 56ch;
}
.about__bio em {
  font-family: var(--font-serif);
  color: var(--crimson);
  font-size: 1.1em;
}
.stats { border-top: 1px solid var(--line); }
.stats__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s var(--ease-out);
}
.stats__row:hover { padding-left: 16px; }
.stats__label {
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--smoke);
}
.stats__value { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.06em; }
@media (max-width: 820px) {
  .about__layout { grid-template-columns: 1fr; }
}

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact__lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  color: var(--bone-dim);
  margin-bottom: 18px;
}
.contact__insta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 7.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--bone);
  transition: color 0.45s var(--ease-out), -webkit-text-stroke-color 0.45s;
}
.contact__insta:hover { color: var(--crimson); -webkit-text-stroke-color: var(--crimson); }
.contact__links {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.contact__pill {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 13px 26px;
  border-radius: 999px;
  transition: background 0.35s, border-color 0.35s, color 0.35s;
}
.contact__pill:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

/* ---------- footer ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 26px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smoke);
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .intro { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* keyboard focus */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 3px;
}
