/* ============================================================
   Serena Fathers — Portfolio
   Rebuilt from the Claude Design handoff (Bodoni Moda + Archivo)
   ============================================================ */

:root {
  --ink: #0f0f0f;
  --muted: #6b6b6b;
  --muted-2: #4a4a4a;
  --muted-3: #2a2a2a;
  --line: #eee;
  --accent: #c1301f;
  --serif: 'Bodoni Moda', serif;
  --sans: 'Archivo', sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: #fff;
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

@keyframes siteFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes coverFade { from { opacity: 0; } to { opacity: 1; } }

/* ======================== COVER ======================== */

.cover {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  overflow: hidden;
  cursor: none;
}

.cover__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
}
.cover__slide.is-active { opacity: 1; pointer-events: auto; }

.cover__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 100%;
  height: 100%;
}

.cover__title-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
}
.cover__title {
  font-family: var(--serif);
  font-size: min(13vw, 168px);
  line-height: .9;
  letter-spacing: -.01em;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
  mix-blend-mode: difference;
  color: #fff;
}
.cover__hint {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(20px, 4vh, 44px);
  text-align: center;
  font-size: 10.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 5;
}

#cover-cursor {
  position: fixed;
  left: 0; top: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  transform: translate(-100px, -100px) scale(0);
  transition: transform .12s ease-out;
  z-index: 60;
  will-change: transform;
}

/* ======================== SITE ======================== */

.site { animation: siteFadeIn .8s ease both; }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(8px, 1.5vw, 24px);
  padding: clamp(14px, 2vh, 26px) clamp(16px, 3vw, 48px);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: .02em;
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
  background: none; border: 0; padding: 0;
}
.nav__tabs {
  display: flex;
  gap: clamp(10px, 1.8vw, 34px);
  justify-content: center;
  min-width: 0;
  flex-wrap: wrap;
}
.nav__tab {
  font-size: clamp(9px, .95vw, 12px);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  background: none;
}
.nav__tab.is-active { border-bottom-color: var(--ink); }
.nav__social {
  display: flex;
  gap: clamp(10px, 1.4vw, 18px);
  align-items: center;
  justify-self: end;
}
.nav__social a { color: var(--ink); display: flex; }

.page { animation: coverFade .5s ease both; }

/* ---- Home ---- */
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  height: 78vh;
}
.home-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.home-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px clamp(16px, 3vw, 48px);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
}

.featured { padding: 0 0 64px; }
.featured__label {
  text-align: center;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.featured__viewport { overflow: hidden; width: 100%; }
.featured__track {
  display: flex;
  width: max-content;
  gap: 80px;
  animation: marquee 26s linear infinite;
  align-items: center;
}
.featured__item {
  flex: none;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
}
.featured__item img { width: 150px; height: 52px; object-fit: contain; display: block; }
.featured__wordmark {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: .04em;
  white-space: nowrap;
  color: #3a3a3a;
}

/* ---- Grid pages (e-commerce) ---- */
.ecom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 20px;
  padding: 56px clamp(16px, 3vw, 48px) 80px;
}
.ecom-item { cursor: pointer; }
.ecom-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.ecom-item__label {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted-2);
}

/* ---- Movement ---- */
.movement {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 56px clamp(16px, 3vw, 48px) 80px;
}
.movement__item {
  width: 100%;
  aspect-ratio: 16/9;
  background: #111;
  color: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 12px;
  position: relative;
  overflow: hidden;
}
.movement__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.04), rgba(255,255,255,.04) 1px, transparent 1px, transparent 14px);
}
.movement__play {
  width: 0; height: 0;
  border-left: 16px solid currentColor;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

/* ---- Jobs list (campaign / editorials) ---- */
.jobs { padding: 44px clamp(16px, 3vw, 48px) 24px; }
.job { margin-bottom: 64px; }
.job__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  cursor: pointer;
  margin-bottom: 16px;
}
.job__grid img {
  width: 100%;
  aspect-ratio: 5/7;
  object-fit: cover;
  display: block;
}
.job__title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.4vw, 20px);
  cursor: pointer;
  margin-bottom: 6px;
}
.job__desc { font-size: 12px; color: var(--muted-2); max-width: 680px; }

/* ---- Job detail ---- */
.detail { display: grid; grid-template-columns: 240px 1fr; gap: 0; }
.detail__side {
  padding: 44px 32px 80px clamp(16px, 3vw, 48px);
  border-right: 1px solid var(--line);
}
.detail__back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}
.detail__index { display: flex; flex-direction: column; gap: 6px; }
.detail__index a {
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.5;
  color: var(--muted);
}
.detail__index a.is-active { font-style: italic; color: var(--ink); }
.detail__main { padding: 44px clamp(16px, 3vw, 48px) 80px; min-width: 0; }
.detail__title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 2.8vw, 36px);
  margin-bottom: 8px;
}
.detail__desc { font-size: 13px; color: var(--muted-2); max-width: 680px; margin-bottom: 32px; }
.detail__gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.detail__gallery img {
  width: 100%;
  height: 88vh;
  object-fit: cover;
  display: block;
}
.detail__gallery img.is-landscape {
  grid-column: 1 / -1;
  height: auto;
  aspect-ratio: 16/9;
}

/* ---- About ---- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  padding: 56px clamp(16px, 3vw, 48px) 80px;
  align-items: stretch;
}
.about__portrait {
  width: 100%;
  height: 100%;
  min-height: 640px;
  object-fit: cover;
  display: block;
}
.about__heading {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 52px);
  letter-spacing: -.01em;
  margin: 0 0 24px;
}
.about__bio {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted-3);
  max-width: 520px;
}
.about__stats {
  margin-top: 32px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 2;
}

/* ---- Contact ---- */
.contact {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  padding: 56px clamp(16px, 3vw, 48px) 80px;
  align-items: stretch;
}
.contact__heading {
  font-family: var(--serif);
  font-size: clamp(36px, 4.6vw, 68px);
  letter-spacing: -.01em;
  margin: 0 0 36px;
}
.contact__lines {
  font-size: 17px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted-3);
  line-height: 2.3;
}
.contact__agency { margin-bottom: 24px; color: var(--muted); font-size: 15px; }
.contact__link {
  display: inline-block;
  margin-top: 24px;
  color: var(--ink);
  text-decoration: underline;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.contact__portrait {
  width: 100%;
  height: 100%;
  min-height: 640px;
  object-fit: cover;
  display: block;
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__tabs { grid-column: 1 / -1; order: 3; justify-content: flex-start; margin-top: 6px; }
  .ecom-grid { grid-template-columns: repeat(2, 1fr); }
  .about, .contact { grid-template-columns: 1fr; }
  .about__portrait, .contact__portrait { min-height: 70vh; }
  .detail { grid-template-columns: 1fr; }
  .detail__side { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 32px; }
  .detail__gallery { grid-template-columns: 1fr; }
  .detail__gallery img { height: auto; aspect-ratio: 4/5; }
  .home-hero { height: auto; grid-template-columns: 1fr; }
  .home-hero img { aspect-ratio: 4/5; height: auto; }
}
@media (max-width: 560px) {
  .job__grid { grid-template-columns: repeat(2, 1fr); }
  .ecom-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cover__title { font-size: 16vw; }
}
