:root {
  --black: #000;
  --white: #fff;
  --accent: #dd3966;
  --dim: #8d8d8d;
  --line: #1c1c1c;
  --line-soft: #3a3a3a;
  --sans: "Montserrat", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad-x: clamp(44px, 8vw, 140px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
}

body {
  color: var(--white);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--white);
  text-decoration: none;
  transition: color .25s ease;
}
a:hover { color: var(--accent); }

::selection { background: var(--accent); color: var(--white); }

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

/* ---------- background cursor animation ---------- */
.fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ---------- scroller ---------- */
.snap {
  position: relative;
  z-index: 2;
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.snap::-webkit-scrollbar { display: none; }

.screen {
  scroll-snap-align: start;
  position: relative;
  min-height: 100vh;
}

/* ---------- shared type ---------- */
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.label--dim { color: var(--dim); }

.cta {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 6px;
  transition: color .25s ease, border-color .25s ease;
}
.cta:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 22px 44px;
  background: linear-gradient(to bottom, rgba(0,0,0,.85), rgba(0,0,0,0));
}
.nav__side {
  display: flex;
  gap: 38px;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.nav__side--end { justify-content: flex-end; }

.nav__logo {
  display: block;
  width: 52px;
  height: 46px;
  background: var(--white);
  -webkit-mask: url(../img/logo.png) center / contain no-repeat;
  mask: url(../img/logo.png) center / contain no-repeat;
  transition: background .3s ease, transform .5s var(--ease);
}
.nav__logo:hover {
  background: var(--accent);
  transform: scale(1.14);
}

/* ---------- hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 34px;
  padding: 120px 44px 80px;
  text-align: center;
}
.hero__logo { width: min(300px, 46vw); height: auto; }
.hero__name {
  margin: 0;
  font-size: clamp(28px, 4.4vw, 58px);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.hero__role {
  margin: 0;
  font-size: 12px;
  letter-spacing: .28em;
}
.hero__scroll {
  margin-top: 26px;
  letter-spacing: .24em;
  color: var(--dim);
}
.hero__scroll:hover { color: var(--accent); }

/* ---------- category screens ---------- */
.cat { overflow: hidden; }
.cat__img {
  position: absolute;
  inset: 0;
  transform: scale(1.16) translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}
.cat__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1) translateZ(0);
  transition: transform 1.1s cubic-bezier(.33, .1, .27, 1);
  will-change: transform;
  backface-visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .cat__img { transform: scale(1.06); }
  .cat__img img { transition: none; }
}
.cat__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,.2) 100%);
  pointer-events: none;
}
.cat__body {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  padding: 0 var(--pad-x);
  pointer-events: none;
}
.cat__body .cta { pointer-events: auto; }
.cat__title {
  margin: 0;
  font-size: clamp(46px, 9vw, 132px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .92;
}

/* ---------- portfolio ---------- */
.work {
  display: flex;
  flex-direction: column;
  gap: 44px;
  padding: clamp(96px, 12vh, 150px) var(--pad-x) 90px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.section-head__title {
  margin: 0;
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 400;
  letter-spacing: -.02em;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 26px);
}
.card { display: flex; flex-direction: column; gap: 12px; }
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0b0b0b;
  overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.card__cat { color: var(--dim); }

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 110px);
  padding: clamp(96px, 12vh, 150px) var(--pad-x) 90px;
}
.about__text { display: flex; flex-direction: column; gap: 30px; }
.about__body {
  margin: 0;
  font-size: clamp(17px, 1.55vw, 25px);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: -.005em;
  text-wrap: pretty;
  max-width: 46ch;
}
.about__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 70vh;
  width: 100%;
  justify-self: end;
  background: #0b0b0b;
  overflow: hidden;
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- contact ---------- */
.contact {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(96px, 12vh, 150px) var(--pad-x) 44px;
}
.contact__top { display: flex; flex-direction: column; gap: 26px; }
.contact__mail {
  font-size: clamp(20px, 4.2vw, 56px);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.contact__social {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.contact__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
}
.contact__credit {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.credit__label {
  color: #555;
  transition: color .3s ease;
}
.credit__name {
  color: #d0d0d0;
  transition: color .3s ease;
}
.credit__name:hover {
  color: var(--accent);
}
.credit__sep {
  color: #333;
  margin: 0 2px;
}
.heart-icon {
  width: 11px;
  height: 11px;
  fill: var(--accent);
  transition: transform .3s var(--ease), filter .3s ease;
  flex-shrink: 0;
}
.contact__credit:hover .heart-icon {
  transform: scale(1.25);
  filter: drop-shadow(0 0 6px rgba(221, 57, 102, 0.7));
}

/* ---------- hover push-back groups (JS sets transforms) ---------- */
[data-hgroup] > * {
  transition: transform .5s var(--ease), opacity .4s ease, color .3s ease;
  will-change: transform;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav { padding: 16px 22px; gap: 16px; }
  .nav__side { gap: 20px; font-size: 10px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about__portrait { justify-self: stretch; max-height: 50vh; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .work, .about, .contact { padding-left: 22px; padding-right: 22px; }
  .cat__body { padding: 0 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .fx { display: none; }
}
