/* ============================================================
   AKEEM JACKSON — PORTFOLIO
   Design tokens
   ============================================================ */

:root {
  --bg: #0D0D0C;
  --panel: #161614;
  --off-white: #F2EFE9;
  --neutral: #8C8880;
  --neutral-dim: #55534E;
  --accent: #C9A567; /* use sparingly: hairlines, hovers, timecode */
  --line: rgba(242, 239, 233, 0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --nav-h: 76px;
  --edge: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.19,1,.22,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

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

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neutral);
}

.timecode {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--accent);
  opacity: 0.85;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--edge);
  background: linear-gradient(to bottom, rgba(13,13,12,0.85), rgba(13,13,12,0));
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(13,13,12,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__mark {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
}

.nav__links a {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neutral);
  position: relative;
  padding: 4px 0;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--off-white);
}

.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
}

.nav__links a.nav__contact-btn {
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 100px;
  color: var(--off-white);
}
.nav__links a.nav__contact-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav__clock {
  display: none;
}
@media (min-width: 900px) {
  .nav__clock { display: block; }
}

.nav__burger {
  display: none;
  width: 28px; height: 20px;
  position: relative;
  background: none; border: none; cursor: pointer;
}
.nav__burger span {
  position: absolute; left: 0; right: 0; height: 1px; background: var(--off-white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__burger span:nth-child(1) { top: 2px; }
.nav__burger span:nth-child(2) { top: 10px; }
.nav__burger span:nth-child(3) { top: 18px; }

@media (max-width: 820px) {
  .nav__links {
    position: fixed;
    inset: 0;
    top: var(--nav-h);
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  }
  .nav__links a { font-size: 20px; }
  body.nav-open .nav__links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav__burger { display: block; }
  body.nav-open .nav__burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav__burger span:nth-child(2) { opacity: 0; }
  body.nav-open .nav__burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,13,12,0.35) 0%, rgba(13,13,12,0.15) 40%, rgba(13,13,12,0.9) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--edge) clamp(48px, 8vh, 96px);
}

.hero__name {
  font-size: clamp(48px, 10vw, 128px);
  line-height: 0.96;
  color: var(--off-white);
}

.hero__roles {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neutral);
}

.hero__roles span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 22px;
}

.hero__tagline {
  margin-top: 24px;
  max-width: 46ch;
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--off-white);
  opacity: 0.85;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: var(--edge);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neutral);
}

.hero__scroll-line {
  width: 1px;
  height: 34px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -100%; left: 0; right: 0; height: 100%;
  background: var(--accent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 100%; }
  50.01% { top: -100%; }
  100% { top: 100%; }
}

/* ============================================================
   SECTIONS / EDITORIAL LAYOUT
   ============================================================ */

.section {
  padding: clamp(80px, 14vh, 160px) var(--edge);
}

.section--tight { padding-top: clamp(40px, 6vh, 80px); padding-bottom: clamp(40px, 6vh, 80px); }

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(36px, 6vh, 64px);
  flex-wrap: wrap;
}

.section__title {
  font-size: clamp(30px, 5vw, 56px);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* split screen: sticky text beside scrolling visual */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
  .split__text { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
}

.split__text p {
  color: var(--neutral);
  font-size: 17px;
  max-width: 42ch;
  margin-top: 16px;
}

.split__visuals figure {
  margin: 0 0 28px;
  overflow: hidden;
}
.split__visuals figure:last-child { margin-bottom: 0; }

.media-frame {
  overflow: hidden;
  position: relative;
  background: var(--panel);
}
.media-frame img,
.media-frame video {
  transition: transform 1.2s var(--ease);
}
.media-frame:hover img,
.media-frame:hover video {
  transform: scale(1.035);
}

.figcaption {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--neutral);
}
.figcaption .role { color: var(--neutral-dim); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; }

/* full width image/video band */
.full-bleed {
  width: 100%;
  overflow: hidden;
}
.full-bleed .media-frame { }

/* parallax layers */
.parallax {
  will-change: transform;
}

/* photo grid — home teaser */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}
@media (min-width: 700px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .grid-3 .span-2 { grid-column: span 2; }
}

.intro-block {
  max-width: 62ch;
}
.intro-block p {
  font-size: clamp(20px, 2.4vw, 30px);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.35;
  color: var(--off-white);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--off-white);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), gap 0.3s var(--ease);
}
.text-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  gap: 14px;
}

/* ============================================================
   HORIZONTAL SCROLL REEL (home)
   ============================================================ */

.hreel {
  position: relative;
  height: 340vh; /* scroll distance drives horizontal translate */
}
.hreel__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hreel__track {
  display: flex;
  gap: 24px;
  padding: 0 var(--edge);
  will-change: transform;
}
.hreel__item {
  flex: 0 0 clamp(260px, 42vw, 560px);
}
.hreel__item .media-frame { aspect-ratio: 16/10; }
.hreel__label {
  margin-top: 14px;
}

/* ============================================================
   VIDEO PAGE GALLERY
   ============================================================ */

.video-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 8vh, 90px);
}

.video-item__frame {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--panel);
  overflow: hidden;
  cursor: pointer;
}

/* portrait variant — for vertical/social-format footage, shown true to its
   own aspect ratio rather than cropped into a 16:9 frame */
.video-item__frame--portrait {
  aspect-ratio: 9/16;
  max-width: 420px;
  margin: 0 auto;
}

/* centered portrait "featured" video, used in full-bleed slots instead of
   a horizontal crop when the source footage is vertical */
.feature-portrait {
  max-width: 460px;
  margin: 0 auto;
}
.feature-portrait .media-frame { aspect-ratio: 9/16; }
.video-item__frame img { width: 100%; height: 100%; object-fit: cover; }

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-btn__circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(242,239,233,0.5);
  display: flex; align-items: center; justify-content: center;
  background: rgba(13,13,12,0.35);
  backdrop-filter: blur(4px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.video-item__frame:hover .play-btn__circle {
  transform: scale(1.1);
  border-color: var(--accent);
  background: rgba(13,13,12,0.55);
}
.play-btn__circle svg { width: 18px; height: 18px; fill: var(--off-white); margin-left: 3px; }

.video-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 6vh, 64px);
}
@media (min-width: 800px) {
  .video-two-col { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   PHOTOS PAGE — masonry
   ============================================================ */

.masonry {
  column-count: 1;
  column-gap: 22px;
}
@media (min-width: 640px) { .masonry { column-count: 2; } }
@media (min-width: 1024px) { .masonry { column-count: 3; } }

.masonry__item {
  break-inside: avoid;
  margin-bottom: 22px;
  cursor: zoom-in;
  overflow: hidden;
  background: var(--panel);
}
.masonry__item img {
  width: 100%;
  transition: transform 0.7s var(--ease);
}
.masonry__item:hover img { transform: scale(1.04); }

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: clamp(60px, 10vh, 120px) 0;
}

/* static ads grid */
.ads-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}
@media (min-width: 640px) { .ads-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ads-grid { grid-template-columns: repeat(3, 1fr); } }

.ad-card {
  background: var(--panel);
  overflow: hidden;
  cursor: zoom-in;
}
.ad-card img { transition: transform 0.6s var(--ease); }
.ad-card:hover img { transform: scale(1.04); }

/* ============================================================
   LIGHTBOX
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(13,13,12,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__content { max-width: 1200px; max-height: 88vh; width: 100%; }
.lightbox__content img,
.lightbox__content video { width: 100%; max-height: 88vh; object-fit: contain; margin: 0 auto; }
.lightbox__close {
  position: absolute;
  top: 24px; right: var(--edge);
  background: none; border: none;
  color: var(--off-white);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
}
.lightbox__close:hover { color: var(--accent); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: end;
  padding: calc(var(--nav-h) + 40px) var(--edge) 0;
}
@media (min-width: 900px) {
  .about-hero { grid-template-columns: 1.1fr 0.9fr; padding-top: calc(var(--nav-h) + 80px); }
}

.about-portrait {
  aspect-ratio: 4/5;
  background: var(--panel);
  overflow: hidden;
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }

.about-body p {
  font-size: 18px;
  color: var(--off-white);
  opacity: 0.9;
  max-width: 62ch;
  margin: 0 0 20px;
}
.about-body p:first-child {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  opacity: 1;
}

.skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 10px;
  margin-top: 8px;
}
.skill-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--neutral);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 14px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 8px;
}
@media (min-width: 640px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-row .stat-num {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
}
.stat-row .stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neutral);
  margin-top: 6px;
}

.clients-marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
}
.clients-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.clients-track span {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--neutral);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact {
  background: var(--panel);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 1fr 1fr; }
}

.contact__links {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact__links a {
  font-size: 18px;
  display: inline-flex;
  gap: 10px;
  align-items: baseline;
}
.contact__links a:hover { color: var(--accent); }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 560px) {
  .form-row.two { grid-template-columns: 1fr 1fr; }
}

label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral);
  margin-bottom: 8px;
}

input, select, textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 10px 0;
  transition: border-color 0.3s var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
select { -webkit-appearance: none; appearance: none; }
textarea { resize: vertical; min-height: 90px; }

.submit-btn {
  margin-top: 8px;
  align-self: start;
  background: var(--off-white);
  color: var(--bg);
  border: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 28px;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}
.submit-btn:hover { background: var(--accent); }

.form-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--neutral);
  display: none;
}
.form-note.is-visible { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  padding: 40px var(--edge);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--neutral);
}
.site-footer a:hover { color: var(--accent); }

/* utility */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
