/* =========================================================
   TOKENS
   --u is one pixel of the 1440px design canvas.
   It resolves against the nearest .canvas (max 1920px).
   ========================================================= */
:root {
  --pink: #f2b8c6;
  --ink: #111;
  --paper: #fff;
  --black: #000;
  --grey: #767676;
  --slot: #d9d9d9;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --u: calc(100cqw / 1440);
  --fs-display: clamp(40px, 5.2vw, 76px);
  --fs-name: clamp(48px, 7.4vw, 112px);
  --fs-tiny: clamp(9px, .7vw, 11px);
  --fs-body: clamp(10px, .78vw, 12px);
  --fs-small: 9.5px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-body)/1.5 var(--font-body);
}
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.canvas { container-type: inline-size; max-width: 1920px; margin: 0 auto; }

.display {
  color: var(--pink);
  font: 300 var(--fs-display)/1.1 var(--font-display);
  text-transform: uppercase;
}
.line { display: block; overflow: hidden; }
.line > span { display: block; white-space: nowrap; }
.statement { font-weight: 700; line-height: 1.3; text-transform: uppercase; }

/* Image slots */
.ph { position: relative; overflow: hidden; background: var(--slot); }
.ph__clip, .ph__zoom, .ph__media { position: absolute; inset: 0; }
.ph.is-wrapped { background: none; }
.ph__media {
  background: var(--slot);
  transform: translate3d(0, var(--shift, 0px), 0) scale(var(--hover, 1));
}
.ph__media::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 6px;
  color: #444;
  font-size: 9px;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}
.ph img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }

/* Scroll progress */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
}

/* =========================================================
   1. HERO
   ========================================================= */
/* photo inset on black; nav and name share its grid cell, so % margins follow the photo */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); padding: 8vh 5vw; overflow: hidden; background: var(--black); }
.hero > * { grid-area: 1 / 1; }
.hero__photo { aspect-ratio: 1.77 / 1; }
.hero__photo img { object-position: 50% 20%; }

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 18px;
  align-self: start;
  justify-self: end;
  /* 6% of photo height, 4.5% from the right */
  margin: 3.39% 4.5% 0 0;
  color: var(--ink);
  font-size: var(--fs-tiny);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nav a, .contact__links a { position: relative; }
.nav a::after, .contact__links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after,
.contact__links a:hover::after, .contact__links a:focus-visible::after { transform: scaleX(1); }

.hero__name {
  position: relative;
  z-index: 1;
  align-self: end;
  justify-self: start;
  /* 8.5% from the left, 12% of photo height from the bottom */
  margin: 0 0 6.78% 8.5%;
  color: var(--pink);
  font: 700 var(--fs-name)/1.02 var(--font-display);
  text-transform: uppercase;
}
.hero__name .line + .line { font-weight: 300; }
/* room for brackets inside the mask, without moving the lines */
.hero__name .line { margin-block: -.08em; padding-block: .08em; }

.tagline { padding: 22px 8%; font-size: var(--fs-tiny); letter-spacing: .04em; text-transform: uppercase; }

/* =========================================================
   2. ABOUT  (12-column grid, 1 column = 120 canvas px)
   ========================================================= */
.about { padding: 60px 0 120px; }
.about__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: calc(526 * var(--u)) auto;
  align-items: start;
}
.about__grid > * { min-width: 0; justify-self: start; }

/* left 8% */
.about__hello { grid-area: 1 / 1 / 2 / 5; margin-left: calc(115 * var(--u)); }
/* left 28%, 20% wide */
.about__small {
  grid-area: 1 / 4 / 2 / 7;
  width: calc(288 * var(--u));
  margin: calc(163 * var(--u)) 0 0 calc(43 * var(--u));
  aspect-ratio: .87 / 1;
}
/* left 49%, 25% wide */
.about__portrait { grid-area: 1 / 6 / 2 / 10; width: calc(360 * var(--u)); margin-left: calc(106 * var(--u)); aspect-ratio: 4 / 5; }
.about__portrait img { object-position: center top; }
/* left-aligned with the small photo */
.about__quote1 {
  grid-area: 1 / 4 / 2 / 7;
  width: calc(300 * var(--u));
  margin: calc(510 * var(--u)) 0 0 calc(43 * var(--u));
  font-size: clamp(9px, .9vw, 17px);
}
/* right edge 91% */
.about__grid > .about__me {
  grid-area: 1 / 7 / 2 / 12;
  z-index: 2;
  justify-self: end;
  margin: calc(466 * var(--u)) calc(10 * var(--u)) 0 0;
  text-align: right;
}
/* left 62%, 28% wide */
.about__square { grid-area: 2 / 8 / 3 / 12; width: calc(403 * var(--u)); margin-left: calc(53 * var(--u)); aspect-ratio: 1 / 1.1; }
/* left 9% */
.about__intro { grid-area: 2 / 2 / 3 / 5; margin-left: calc(10 * var(--u)); }
.about__statement { font-size: clamp(13px, 1.39vw, 24px); line-height: 1.25; white-space: nowrap; }
.about__bio { width: min(340px, 300 * var(--u)); margin-top: 12px; }
/* 15% from the left */
.pill {
  position: relative;
  isolation: isolate;
  display: inline-block;
  overflow: hidden;
  margin: 16px 0 0 calc(86 * var(--u));
  padding: 5px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 8px;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .45s var(--ease);
}
.pill::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.pill:hover, .pill:focus-visible { color: #fff; }
.pill:focus-visible { outline-color: var(--ink); }
.pill:hover::before, .pill:focus-visible::before { transform: scaleX(1); }
/* left 33%, bottom of the square photo */
.about__quote2 {
  grid-area: 2 / 4 / 3 / 8;
  align-self: end;
  margin-left: calc(115 * var(--u));
  font-size: clamp(9px, .84vw, 16px);
}

/* =========================================================
   3. HIGHLIGHTED WORK
   ========================================================= */
.work { padding: 80px 0; }
.work__grid {
  position: relative;
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: auto auto;
  justify-items: start;
  align-items: start;
}
.work__year { position: absolute; top: 0; left: 2.5%; font: 300 clamp(18px, 1.8vw, 34px)/1 var(--font-display); }
.work__year span { display: block; writing-mode: vertical-rl; transform: rotate(180deg); }
.work__text { grid-area: 1 / 1; margin-left: 6%; }
.work__text p { width: min(330px, 330 * var(--u)); margin-top: 12px; }
.work__text .work__title + p { margin-top: 24px; }
.work__landscape { grid-area: 1 / 1; width: calc(374 * var(--u)); margin: calc(105 * var(--u)) 0 0 39%; aspect-ratio: 3 / 2; }
.work__cover { grid-area: 1 / 1 / 3 / 2; width: 23%; margin-left: 68%; aspect-ratio: 331 / 463; }
.work__banner { grid-area: 2 / 1; align-self: end; width: 59%; margin: calc(45 * var(--u)) 0 0 6%; aspect-ratio: 2.4 / 1; }
.work__poster { grid-area: 2 / 1; align-self: end; width: 23%; margin-left: 68%; aspect-ratio: 1.2 / 1; }

/* =========================================================
   4. PHOTO STRIP
   ========================================================= */
.strip { overflow: hidden; padding: 22px 0; background: var(--black); }
.strip__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.strip:hover .strip__track { animation-play-state: paused; }
.strip__set { display: flex; gap: 24px; padding-right: 24px; }
.strip__set li { flex: none; width: max(104px, 10.14vw); transition: transform .45s var(--ease); }
.strip__photo { aspect-ratio: 146 / 168; }
.strip__photo .ph__media { filter: saturate(.6); transition: transform .45s var(--ease), filter .45s var(--ease); }
.strip__set li:hover { transform: translateY(-6px); }
.strip__set li:hover .ph__media { --hover: 1.04; filter: none; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* =========================================================
   5. PROJECTS
   ========================================================= */
.projects { padding: 80px 0 120px; }
.projects__grid { display: grid; grid-template-columns: 6% 44% 3% 44% 3%; align-items: start; }
.projects__col { display: flex; flex-direction: column; }
.projects__col--left { grid-column: 2; }
.projects__col--right { grid-column: 4; }
.project { position: relative; font-size: var(--fs-small); }
.project--02 { margin-top: -10px; }
.project--03 { margin-top: calc(140 * var(--u)); }
.project--04 { margin-top: calc(130 * var(--u)); }
.project__num { position: absolute; bottom: calc(100% + 4px); left: 0; color: var(--grey); font-size: 9px; transition: color .45s var(--ease); }
.project:hover .project__num { color: var(--ink); }
.project__title {
  margin-top: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.project p { max-width: 340px; margin-top: 10px; }
.project .ph__media { transition: transform .7s var(--ease); }
.project:hover .ph__media { --hover: 1.04; }
.project:hover .project__title { letter-spacing: .08em; }

.project__composite { aspect-ratio: 1.2 / 1; }

.project__spread { display: grid; grid-template-columns: 18px minmax(0, 464fr) minmax(0, 136fr); gap: 8px; align-items: start; }
.project .project__spine { position: relative; align-self: stretch; margin: 0; }
.project__spine span {
  position: absolute;
  inset: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.project__wide { aspect-ratio: 5 / 4; }
.project__cards { display: grid; gap: 8px; }
.project__card { aspect-ratio: 3 / 4; }

.project--03 { display: grid; grid-template-columns: 56% minmax(0, 1fr); gap: 5.5%; }
.project__tall { aspect-ratio: .76 / 1; }
.project__side { display: flex; flex-direction: column; }
.project__side .project__title { margin-top: 0; }
.project__clipping { margin-top: auto; padding-top: 12px; }
.project__thumb { aspect-ratio: 1.13 / 1; }

.project__pair { display: grid; grid-template-columns: minmax(0, 53fr) minmax(0, 47fr); gap: 12px; align-items: start; }
.project__half { aspect-ratio: .81 / 1; }
.project__half + .project__half { aspect-ratio: .72 / 1; }

/* =========================================================
   6. FULL-WIDTH IMAGE
   ========================================================= */
.ph.feature__photo { height: 45vh; min-height: 260px; }
.feature__photo .ph__media { top: -10%; bottom: auto; height: 120%; }
.feature__photo img, .about__small img { filter: grayscale(1); }

/* =========================================================
   7. CONTACT FOOTER
   ========================================================= */
.contact {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-height: 300px;
  padding: 40px 6% 28px;
  background: var(--black);
  color: #fff;
}
.contact__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  font-size: 9px;
  line-height: 1.9;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.contact__links { text-align: right; }

/* =========================================================
   CURSOR
   ========================================================= */
.cursor { display: none; }
.has-cursor .cursor { display: block; }
.cursor__ring, .cursor__dot { position: fixed; top: 0; left: 0; z-index: 60; pointer-events: none; opacity: 0; }
.cursor.is-visible > * { opacity: 1; }
.cursor__circle {
  position: absolute;
  top: -18px;
  left: -18px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--pink);
  border-radius: 50%;
  transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.cursor__dot { width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--pink); }
.cursor__label {
  position: absolute;
  color: #fff;
  font-size: 9px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-shadow: 0 0 4px #000;
  opacity: 0;
  transform: translate(-50%, 9px);
  transition: opacity .45s var(--ease);
}
.cursor.is-view .cursor__circle { transform: scale(1.6667); background: rgba(17, 17, 17, .35); }
.cursor.is-view .cursor__label { opacity: 1; }

/* =========================================================
   ANIMATION STATES  (only applied when motion is allowed)
   Rest state = the layout above.
   ========================================================= */
.motion .hero__photo .ph__zoom { transform: scale(1.12); transition: transform 2s var(--ease); }
.motion .hero__name .line > span { transform: translateY(110%); transition: transform .75s var(--ease); }
.motion .hero__name .line + .line > span { transition-delay: .15s; }
.motion .nav { opacity: 0; transform: translateY(-10px); transition: opacity .25s var(--ease) .6s, transform .25s var(--ease) .6s; }
.motion .tagline { opacity: 0; transition: opacity .2s var(--ease) .7s; }
.motion.is-loaded .hero__photo .ph__zoom,
.motion.is-loaded .hero__name .line > span,
.motion.is-loaded .nav { transform: none; }
.motion.is-loaded .nav, .motion.is-loaded .tagline { opacity: 1; }

.motion [data-reveal="lines"] .line > span { transform: translateY(110%); transition: transform .9s var(--ease) var(--delay, 0s); }
.motion [data-reveal="lines"] .line + .line > span { transition-delay: calc(var(--delay, 0s) + .12s); }
.motion [data-reveal="text"] { opacity: 0; transform: translateY(24px); }
.motion [data-reveal="year"] { opacity: 0; transform: translateY(20px); }
.motion [data-reveal="text"], .motion [data-reveal="year"] {
  transition: opacity .9s var(--ease) var(--delay, 0s), transform .9s var(--ease) var(--delay, 0s), letter-spacing .45s var(--ease);
}
.motion [data-reveal="image"] .ph__clip { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease) var(--delay, 0s); }
.motion [data-reveal="image"] .ph__zoom { transform: scale(1.15); transition: transform 1.1s var(--ease) var(--delay, 0s); }

.motion [data-reveal="lines"].is-in .line > span,
.motion [data-reveal="text"].is-in,
.motion [data-reveal="year"].is-in,
.motion [data-reveal="image"].is-in .ph__zoom { transform: none; }
.motion [data-reveal="text"].is-in, .motion [data-reveal="year"].is-in { opacity: 1; }
.motion [data-reveal="image"].is-in .ph__clip { clip-path: inset(0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1023px) {
  .about { padding: 48px 0 80px; }
  .about__grid { grid-template-rows: calc(570 * var(--u)) auto; }
  .work { padding: 56px 0; }
  .projects { padding: 56px 0 80px; }
  .project__spread, .project__cards, .project__pair { gap: 6px; }
  .project--03 { gap: 10px; }
}

@media (max-width: 759px) {
  .about { padding: 40px 6% 64px; }
  .about__grid, .work__grid, .projects__grid { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  .about__grid > *, .about__grid > .about__me { align-self: stretch; width: auto; margin: 0; }
  .about__grid > .ph { aspect-ratio: 4 / 5; }
  .about__grid > .about__small { aspect-ratio: .87 / 1; width: 65%; align-self: flex-start; }
  .about__grid > .about__square { aspect-ratio: 1 / 1.1; }
  .about__grid > .about__me { text-align: right; }
  .about__statement { white-space: normal; font-size: 16px; }
  .about__quote1, .about__quote2 { font-size: 12px; }
  .about__bio { width: auto; max-width: 340px; }
  .pill { margin-left: 0; }

  .work { padding: 40px 6%; }
  .work__year { display: none; }
  .work__text { margin: 0; }
  .work__text p { width: auto; max-width: 340px; }
  .work__grid > .ph { align-self: stretch; width: auto; margin: 0; }

  .projects { padding: 56px 6% 64px; }
  .projects__grid { gap: 56px; }
  .projects__col { display: contents; }
  .project { margin: 0; }
  .project--01 { order: 1; }
  .project--02 { order: 2; }
  .project--03 { order: 3; grid-template-columns: minmax(0, 1fr); }
  .project--04 { order: 4; }

  .contact__row { flex-direction: column; align-items: flex-start; }
  .contact__links { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
