/* ============================================================
   phoebe boateng — portfolio
   Palette:  accent #D15C1E   ·   text on accent #ffffff
   Type:     Libre Caslon Display (serif), all lowercase
   ============================================================ */

:root {
  --accent: #D15C1E;
  --on-accent: #ffffff;
  --hairline: rgba(255, 255, 255, 0.35);
  --nav-hairline: rgba(209, 92, 30, 0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--accent);
  color: var(--on-accent);
  font-family: 'Libre Caslon Display', ui-serif, Georgia, serif;
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(255, 255, 255, 0.85); color: var(--accent); }

a { color: var(--on-accent); text-decoration: none; }
a:hover { opacity: 0.62; }

.muted { opacity: 0.8; }

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ============================================================
   NAV  (white bar, orange text — at all sizes)
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 62px;
  padding: 0 clamp(16px, 4vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  color: var(--accent);
  border-bottom: 0.5px solid var(--nav-hairline);
}
.nav a { color: var(--accent); }
.nav-brand { font-size: 22px; letter-spacing: 0.01em; }
.nav-links { display: flex; font-size: 20px; }
.nav-links a {
  width: 106px;
  line-height: 62px;
  text-align: center;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 540px;
  padding: clamp(76px, 9vh, 112px) clamp(20px, 4vw, 60px) clamp(12px, 2.5vh, 26px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(8px, 2vh, 26px);
  font-size: clamp(14px, 1.5vw, 21px);
  letter-spacing: 0.14em;
  flex-shrink: 0;
}
.hero-center {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-photos {
  display: flex;
  gap: clamp(10px, 2vw, 34px);
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  max-width: 1180px;
}
.hero-photo {
  height: min(40vh, 23vw);
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-photo.lift-up   { transform: translateY(-3vh); }
.hero-photo.lift-down { transform: translateY(3vh); }
.hero-title {
  position: relative;
  z-index: 2;
  margin: clamp(-64px, -5vh, -22px) 0 0;
  text-align: center;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.01em;
  font-size: clamp(44px, 13vw, 230px);
  pointer-events: none;
}
.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: clamp(4px, 1.4vh, 14px);
  flex-shrink: 0;
  font-size: clamp(12px, 1vw, 14px);
  letter-spacing: 0.2em;
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-cue:hover { opacity: 1; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ============================================================
   SECTION TITLES  (shared: work / about / contact)
   ============================================================ */
.section-title {
  text-align: center;
  font-weight: 400;
  line-height: 0.9;
  font-size: clamp(56px, 11vw, 168px);
  margin: 0 0 clamp(24px, 4.5vh, 64px);
}

/* ============================================================
   WORK  (coverflow carousel)
   ============================================================ */
.work {
  min-height: 100svh;
  padding: clamp(84px, 11vh, 130px) clamp(14px, 4vw, 60px) clamp(40px, 7vh, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.work .section-title { margin-bottom: clamp(16px, 3vh, 50px); }

.carousel {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
.stage {
  position: relative;
  height: min(60vh, 72vw);
  min-height: 240px;
  max-height: 600px;
  touch-action: pan-y;
}
.slide {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
              opacity 0.6s ease, filter 0.6s ease;
}

/* ---------- Round buttons (carousel + lightbox share this) ---------- */
.round-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 0.5px solid rgba(255, 255, 255, 0.65);
  background: rgba(209, 92, 30, 0.35);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.round-btn:hover { background: rgba(255, 255, 255, 0.2); }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  width: clamp(46px, 4vw, 58px);
  height: clamp(46px, 4vw, 58px);
}
.carousel-arrow.prev { left: clamp(-2px, 0.5vw, 20px); }
.carousel-arrow.next { right: clamp(-2px, 0.5vw, 20px); }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  min-height: 100svh;
  padding: clamp(84px, 11vh, 130px) clamp(20px, 4vw, 60px) clamp(40px, 7vh, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
}
.about-photo {
  justify-self: center;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  max-height: 56vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.about-text { font-size: clamp(22px, 2.4vw, 33px); line-height: 1.45; }
.about-text p { margin: 0 0 1em; }
.about-text p:last-child { margin-bottom: 0; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  min-height: 100svh;
  padding: clamp(84px, 11vh, 130px) clamp(20px, 4vw, 60px) clamp(40px, 7vh, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact .section-title { margin-bottom: clamp(24px, 5vh, 60px); }
.contact-lead {
  text-align: center;
  font-size: clamp(20px, 2.2vw, 32px);
  margin: 0 0 clamp(40px, 6vh, 74px);
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 5vw, 72px);
  flex-wrap: wrap;
}
.contact-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: clamp(16px, 1.5vw, 20px);
}
.contact-links a:hover { opacity: 1; }
.contact-links img {
  width: 54px;
  height: 54px;
  transition: transform 0.4s ease;
}
.contact-links a:hover img { transform: scale(1.14); }

/* ============================================================
   FOOTER  (white, orange text)
   ============================================================ */
.footer {
  background: #ffffff;
  color: var(--accent);
  border-top: 0.5px solid var(--nav-hairline);
  padding: 26px clamp(20px, 4vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 15px;
  letter-spacing: 0.06em;
}
.footer a { color: var(--accent); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 8, 3, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; animation: fade 0.3s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img {
  position: absolute;
  inset: clamp(20px, 4.5vh, 64px);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.lightbox-btn { position: absolute; z-index: 3; }
.lightbox-btn.close { top: clamp(16px, 3vh, 34px); right: clamp(16px, 3vw, 34px); width: 52px; height: 52px; }
.lightbox-btn.prev  { top: 50%; left: clamp(10px, 2vw, 30px);  transform: translateY(-50%); width: 54px; height: 54px; }
.lightbox-btn.next  { top: 50%; right: clamp(10px, 2vw, 30px); transform: translateY(-50%); width: 54px; height: 54px; }

/* ============================================================
   MOBILE  (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  html { scroll-padding-top: 60px; }   /* keep anchor jumps clear of the fixed nav */

  .nav { height: 52px; }
  .nav-brand { font-size: 16px; }
  .nav-links { font-size: 14px; gap: 16px; }
  .nav-links a { width: auto; line-height: 52px; }

  .hero-photo { height: min(30vh, 34vw); }
  .hero-title { font-size: clamp(52px, 17vw, 96px); }

  /* Sections hug their content instead of each filling a full screen,
     so there's no big empty band between them. */
  .work, .about, .contact {
    min-height: 0;
    padding-top: 64px;
    padding-bottom: 48px;
  }

  /* About: shrink the photo + text so it all sits comfortably together */
  .about .section-title { margin-bottom: 20px; }
  .about-grid { gap: 22px; }
  .about-photo { max-width: 200px; }
  .about-text { font-size: 17px; line-height: 1.4; }
  .about-text p { margin-bottom: 0.7em; }
}

/* ============================================================
   REDUCED MOTION  (respect the OS "reduce motion" preference)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
