/* ============================================
   CRAIG HELFER PORTFOLIO — MAIN STYLESHEET
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── VARIABLES ── */
:root {
  --black:   #0a0a0a;
  --white:   #f2ede8;
  --cream:   #e8e0d5;
  --accent:  #c8a96e;
  --mid:     #2a2520;
  --dark2:   #0d0b09;
  --muted:   #7a7268;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
  line-height: 1;
  font-weight: 400;
}

.serif { font-family: 'DM Serif Display', serif; font-style: italic; }

/* ── UTILITIES ── */
.container { max-width: 1400px; margin: 0 auto; padding: 0 48px; }
.section-pad { padding: 100px 0; }

.eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 64px;
}
.section-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--accent);
  opacity: 0.6;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 5vw, 72px);
  color: var(--white);
}
.section-rule {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-left: 16px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.btn-gold  { background: var(--accent); color: var(--black); }
.btn-gold:hover { background: var(--cream); }
.btn-ghost { border: 1px solid rgba(242,237,232,0.3); color: var(--white); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── NAV ── */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 48px;
  transition: background 0.3s, padding 0.3s;
}
#site-nav.scrolled {
  background: rgba(10,10,10,0.97);
  padding: 14px 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 5px;
  color: var(--white);
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(242,237,232,0.6);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links .nav-cta {
  border: 1px solid rgba(200,169,110,0.4);
  padding: 8px 20px;
  color: var(--accent);
  border-radius: 1px;
}
.nav-links .nav-cta:hover { background: var(--accent); color: var(--black); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: all 0.3s;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px 48px 80px;
  position: relative;
  z-index: 2;
}
.hero-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(72px, 9vw, 130px);
  line-height: 0.88;
  letter-spacing: 2px;
  margin-bottom: 28px;
}
.hero-name .last { color: var(--accent); display: block; }
.hero-roles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.role-tag {
  border: 1px solid rgba(200,169,110,0.35);
  padding: 5px 16px;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-bio {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(242,237,232,0.55);
  max-width: 400px;
  margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-right {
  position: relative;
  background: linear-gradient(135deg, #1a1510, #2a1f15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(200,169,110,0.1) 0%, transparent 60%);
}
.hero-photo-frame {
  width: 320px;
  height: 400px;
  border: 1px solid rgba(200,169,110,0.2);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(15%) contrast(1.1);
}
.hero-photo-frame .photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--mid);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero-photo-frame .photo-placeholder::before {
  content: '👤';
  font-size: 40px;
  opacity: 0.3;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 3;
}
.scroll-bar {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%,100% { opacity:0.3; transform:scaleY(1); }
  50% { opacity:1; transform:scaleY(1.1); }
}

/* ── CLIENTS STRIP ── */
#clients-strip {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 20px 48px;
  display: flex;
  align-items: center;
  gap: 48px;
  overflow: hidden;
}
.clients-label {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.clients-list { display: flex; gap: 48px; flex-wrap: wrap; }
.clients-list span {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(242,237,232,0.28);
  font-weight: 500;
  white-space: nowrap;
}

/* ── WORK SECTION ── */
#work { background: var(--black); }

.work-filter {
  display: flex;
  gap: 0;
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.filter-btn {
  padding: 12px 28px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.filter-btn.active, .filter-btn:hover { color: var(--accent); border-bottom-color: var(--accent); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.work-item {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
  background: var(--mid);
}
.work-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.work-thumb-placeholder {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}
.work-item:hover .work-thumb,
.work-item:hover .work-thumb-placeholder { transform: scale(1.06); }

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.2) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.work-item:hover .work-overlay { opacity: 1; }

.work-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(200,169,110,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.work-play::after {
  content: '';
  width: 0; height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid var(--accent);
  margin-left: 3px;
}
.work-item:hover .work-play { opacity: 1; }

.work-role-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(242,237,232,0.4);
  background: rgba(10,10,10,0.6);
  padding: 3px 8px;
}
.work-info-client { font-size: 14px; font-weight: 500; color: var(--white); }
.work-info-title  { font-size: 11px; color: var(--accent); font-family: 'DM Serif Display', serif; font-style: italic; }

/* hidden state for filter */
.work-item.hidden { display: none; }

/* ── VIDEO MODAL ── */
#video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
#video-modal.open { display: flex; }
.modal-inner {
  width: 100%;
  max-width: 960px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.modal-close:hover { opacity: 1; }
.modal-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}
.modal-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── FEATURED ── */
#featured { background: var(--mid); }
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.featured-video-block {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--black);
  cursor: pointer;
  overflow: hidden;
}
.featured-video-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.featured-video-block:hover img { transform: scale(1.04); }
.featured-video-block .feat-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f1a2e, #1a0f2e);
}
.feat-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 2;
}
.feat-play-btn::after {
  content: '';
  width: 0; height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid var(--accent);
  margin-left: 5px;
}
.featured-video-block:hover .feat-play-btn { background: rgba(200,169,110,0.15); }
.feat-tag  { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.feat-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(26px, 3vw, 40px);
  color: var(--white);
  font-style: italic;
  margin-bottom: 18px;
  line-height: 1.2;
}
.feat-desc { font-size: 14px; line-height: 1.9; color: rgba(242,237,232,0.55); margin-bottom: 28px; }
.feat-meta { display: flex; gap: 32px; margin-bottom: 32px; }
.meta-lbl { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.meta-val { font-size: 13px; color: var(--white); font-weight: 500; }

/* ── SERVICES ── */
#services { background: var(--dark2); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.service-card {
  background: var(--mid);
  padding: 44px 32px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.service-card:hover { background: #2e2518; }
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.service-card:hover::before { transform: scaleX(1); }
.svc-icon  { font-size: 26px; margin-bottom: 20px; }
.svc-name  { font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 2px; color: var(--white); margin-bottom: 12px; }
.svc-desc  { font-size: 13px; line-height: 1.8; color: rgba(242,237,232,0.42); }
.svc-arrow {
  position: absolute;
  bottom: 28px;
  right: 28px;
  font-size: 18px;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}
.service-card:hover .svc-arrow { opacity: 1; transform: translate(3px,-3px); }

/* ── VOICE OVER ── */
#voiceover { background: var(--mid); }
.vo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vo-card {
  background: var(--black);
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.06);
}
.vo-lbl   { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.vo-title { font-family: 'DM Serif Display', serif; font-size: 20px; color: var(--white); font-style: italic; margin-bottom: 20px; }
.audio-player-ui {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  padding: 12px 18px;
}
.audio-btn {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.audio-btn:hover { background: var(--cream); }
.audio-btn::after {
  content: '';
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid var(--black);
  margin-left: 2px;
}
.audio-progress { flex: 1; height: 2px; background: rgba(255,255,255,0.1); position: relative; cursor: pointer; }
.audio-fill { position: absolute; left:0; top:0; bottom:0; width: 0%; background: var(--accent); transition: width 0.1s linear; }
.audio-time { font-size: 11px; color: var(--muted); letter-spacing: 1px; }

/* ── ABOUT ── */
#about { background: var(--black); }
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: start; }
.about-photo-wrap { position: relative; }
.about-photo-frame {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(200,169,110,0.15);
}
.about-photo-frame img { width: 100%; height: 100%; object-fit: cover; filter: sepia(10%) contrast(1.05); }
.about-photo-frame .photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.about-accent { position: absolute; bottom: -14px; right: -14px; width: 70px; height: 70px; background: var(--accent); z-index: -1; }
.about-intro  { font-family: 'DM Serif Display', serif; font-size: clamp(18px,2.5vw,26px); color: var(--white); font-style: italic; line-height: 1.5; margin-bottom: 24px; }
.about-body   { font-size: 14px; line-height: 1.95; color: rgba(242,237,232,0.55); margin-bottom: 16px; }
.about-stats  { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; padding: 36px 0; border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); margin: 36px 0; }
.stat-n { font-family: 'Bebas Neue', sans-serif; font-size: 44px; color: var(--accent); line-height:1; margin-bottom:4px; }
.stat-l { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.about-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── CONTACT ── */
#contact {
  background: var(--black);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
#contact::before {
  content: 'CONTACT';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 240px;
  color: rgba(255,255,255,0.02);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 20px;
}
.contact-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 0 48px; }
.contact-tagline { font-family: 'DM Serif Display', serif; font-size: clamp(26px,4vw,48px); color: var(--white); font-style: italic; line-height: 1.3; margin-bottom: 48px; }
.contact-details { display: flex; justify-content: center; gap: 56px; margin-bottom: 52px; flex-wrap: wrap; }
.c-lbl  { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.c-val  { font-size: 15px; color: var(--white); display: block; transition: color 0.2s; }
a.c-val:hover { color: var(--accent); }

/* ── FOOTER ── */
#site-footer {
  background: var(--mid);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 16px; letter-spacing: 5px; color: rgba(242,237,232,0.4); }
.footer-copy { font-size: 11px; color: var(--muted); letter-spacing: 1px; }

/* ── FADE-IN ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-1 { transition-delay: 0.1s; }
.fade-up-2 { transition-delay: 0.2s; }
.fade-up-3 { transition-delay: 0.3s; }
.fade-up-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  #hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 120px 32px 80px; }
  .work-grid { grid-template-columns: repeat(2,1fr); }
  .featured-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { max-width: 320px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  section.section-pad { padding: 72px 0; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(10,10,10,0.98); padding: 24px; gap: 20px; border-top: 1px solid rgba(255,255,255,0.08); }
  .nav-hamburger { display: flex; }
  .work-grid { grid-template-columns: 1fr; }
  .vo-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: repeat(3,1fr); }
  .contact-details { flex-direction: column; gap: 28px; }
  #site-footer { flex-direction: column; text-align: center; }
  #clients-strip { display: none; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-name { font-size: 64px; }
}
