/* ═══════════════════════════════════════
   Kai Thorpe — Artist Portfolio
   ═══════════════════════════════════════ */

:root {
  --black: #0a0a0a;
  --white: #f0ece4;
  --grey: #7a756d;
  --grey-light: #c4bfb6;
  --cream: #f7f4ef;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }
body {
  font-family: var(--body);
  font-weight: 300;
  color: #000;
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block }
a { color: inherit; text-decoration: none }
button { font-family: var(--body); cursor: pointer }

.container { max-width: 1340px; margin: 0 auto; padding: 0 32px }

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  background: var(--black);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  mix-blend-mode: difference;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 18vh 48px 48px;
  align-items: flex-start;
  padding-left: calc(50% - 750px);
}
.hero-pre {
  font-family: var(--body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 1s var(--ease) 0.3s forwards;
}
.hero-title {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 8vw, 100px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 16px 0 0;
}
.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.2s var(--ease) forwards;
}
.hero-line:nth-child(1) { animation-delay: 0.5s }
.hero-line:nth-child(2) { animation-delay: 0.7s }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0) }
}

/* ═══════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════ */
.back-to-top {
  position: fixed;
  top: 24px;
  right: 32px;
  z-index: 100;
  width: 40px;
  height: 40px;
  border: none;
  background: #fff;
  mix-blend-mode: difference;
  isolation: isolate;
  font-family: var(--body);
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ═══════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════ */
.section { padding: 140px 0 }

.section-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 56px;
}
.section-label--light { color: var(--grey-light) }

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Divider */
.divider { padding: 0 32px }
.divider-line {
  max-width: 1340px;
  margin: 0 auto;
  height: 1px;
  background: var(--grey-light);
  opacity: 0.4;
}

/* ═══════════════════════════════════════
   GALLERY — full-width infinite scroll
   ═══════════════════════════════════════ */
.gallery {
  padding-top: 80px;
}
.gallery-track {
  display: flex;
  flex-direction: column;
}
.gallery-item {
  width: 100%;
}
.gallery-item img {
  width: 100%;
  display: block;
  object-fit: contain;
}
.gallery-item figcaption {
  font-size: 12px;
  color: #000 !important;
  letter-spacing: 0.5px;
  font-weight: 400;
  padding: 12px 32px 48px;
}

/* 1x2 row */
.gallery-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.gallery-row .gallery-item img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ═══════════════════════════════════════
   VIDEO
   ═══════════════════════════════════════ */
.section--video {
  background: var(--black);
  color: var(--white);
}
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.video-wrap {
  overflow: hidden;
  background: #1a1a1a;
}
.video-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.video-item figcaption {
  font-size: 12px;
  color: var(--grey);
  margin-top: 10px;
  letter-spacing: 0.5px;
  font-weight: 300;
}

/* ═══════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}
.about-portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #d9d4cc;
}
.about-body {
  padding-top: 20px;
}
.about-bio p {
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--black);
  letter-spacing: 0.01em;
}
.about-bio p + p {
  margin-top: 24px;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 48px 0;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  display: flex;
  gap: 24px;
  align-items: baseline;
}
.footer-name {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.footer-copyright {
  font-size: 11px;
  color: var(--grey);
  letter-spacing: 1px;
}
.footer-links {
  display: flex;
  gap: 28px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 400;
}
.footer-links a {
  transition: opacity 0.3s;
}
.footer-links a:hover { opacity: 0.5 }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  .container { padding: 0 20px }

  .hero-content { padding-left: 32px }

  .gallery-item figcaption { padding: 10px 20px 36px }
  .gallery-row { grid-template-columns: 1fr }

  .back-to-top { top: 16px; right: 16px }

  .footer-grid { flex-direction: column; gap: 20px; text-align: center }
  .footer-brand { flex-direction: column; gap: 8px; align-items: center }
}
