*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #F7F6F3;
  --bg-alt: #EEECEA;
  --ink: #0F0F0F;
  --ink-mid: #555;
  --ink-light: #999;
  --accent: #0F0F0F;
  --radius: 6px;
  --gap: 12px;
  --section-pad: 100px 40px;
  --font: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(247, 246, 243, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav-logo {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.hero-squiggle {
  width: 200px;
  display: block;
  margin-top: -20px;
  margin-left: -45px;
  pointer-events: none;
  transform: scaleX(1.3);
  transform-origin: left center;
}

.hero-title-group {
  position: relative;
  display: inline-block;
}

.hero-light-sticker {
  width: 210px;
  position: absolute;
  left: 100%;
  margin-left: -58px;
  bottom: 10px;
  pointer-events: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-mid);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--ink);
}

/* ── HERO ── */
.hero {
  min-height: 60vh;
  padding: 160px 40px 80px;
  display: flex;
  align-items: center;
}

.hero.hero-text-only {
  min-height: 60vh;
}

.hero-text h1 {
  font-size: clamp(56px, 8vw, 100px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 400;
  color: var(--ink-mid);
  line-height: 1.4;
  margin-bottom: 12px;
}

.hero-location {
  font-size: 13px;
  color: var(--ink-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-reel {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 9/16;
  max-height: 70vh;
  justify-self: end;
}

.hero-reel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── STATS BAR ── */
.stats-bar {
  display: flex;
  justify-content: space-around;
  padding: 40px;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-num {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 12px;
  color: var(--ink-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── WORK SECTIONS ── */
.work-section {
  padding: var(--section-pad);
}

.work-section.alt-bg {
  background: var(--bg-alt);
}

.section-intro {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.section-tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.section-stat {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  background: rgba(0,0,0,0.06);
  padding: 3px 10px;
  border-radius: 20px;
}

.section-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.7;
  max-width: 580px;
}

/* ── MEDIA GRID ── */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: 32px;
}

.grid-hub {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}


.media-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #e0dedd;
}

.grid-hub .media-item:not(:has(video)),
.grid-jake .media-item:not(:has(video)),
.grid-ambassador .media-item:not(:has(video)) {
  border-radius: 40px;
}


.media-item img,
.media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-item img.fit-contain {
  object-fit: contain;
  background: #f5f5f0;
}

.media-item.media-contain {
  aspect-ratio: 1206 / 1187;
  overflow: hidden;
}

.media-item.media-contain img {
  object-fit: contain;
  object-position: left center;
  width: 100%;
  height: 100%;
  display: block;
}

.media-item:has(video) {
  aspect-ratio: 9 / 16;
}

.media-caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 12px;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.media-item {
  position: relative;
}

/* ── SECTION HANDLES ── */
.section-handles {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.section-handles a {
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.section-handles a:hover { opacity: 0.4; }

/* ── BRAND CHIPS ── */
.brand-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.brand-chips span {
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 20px;
  color: var(--ink-mid);
}

/* ── HUB MEDIA ROW ── */
.hub-media-row {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  margin-bottom: 48px;
}

/* ── CAROUSEL ── */
.carousel {
  position: relative;
  margin-bottom: 32px;
  max-width: 380px;
  overflow: hidden;
}

#ambassador-carousel {
  width: 160px;
}

.carousel-track {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.carousel-btn {
  background: none;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.carousel-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  transition: background 0.2s, transform 0.2s;
}

.dot.active {
  background: var(--ink);
  transform: scale(1.3);
}

/* ── FRAME MOCKUP ── */
.frame-item {
  border-radius: 0 !important;
  border: 28px solid transparent;
  border-image-source: url('../Portfolio Content/sticker-frame.png');
  border-image-slice: 28;
  border-image-repeat: stretch;
}

.frame-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── PHONE MOCKUP ── */
.phones-grid {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.ambassador-phone .phone-bg {
  width: 100%;
  height: auto;
  display: block;
}

.amb-screen-overlay {
  position: absolute;
  left: 21%;
  top: 14%;
  width: 58%;
  height: 78%;
  overflow: hidden;
  border-radius: 6px 6px 4px 4px;
}

.amb-screen-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.three-phones-png {
  width: 100%;
  max-width: 600px;
  display: block;
  margin-bottom: 32px;
}

/* ── TILT STACK ── */
.tilt-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
  margin-bottom: 32px;
}

.tilt-item {
  width: 260px;
  flex-shrink: 0;
  margin-left: -50px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tilt-item:first-child { margin-left: 0; }

.tilt-item:nth-child(1) { transform: rotate(-5deg); z-index: 1; }
.tilt-item:nth-child(2) { transform: rotate(3deg);  z-index: 2; }
.tilt-item:nth-child(3) { transform: rotate(-4deg); z-index: 3; }
.tilt-item:nth-child(4) { transform: rotate(5deg);  z-index: 4; }

.tilt-item:hover {
  transform: rotate(0deg) scale(1.06) !important;
  z-index: 10;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.tilt-item img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.media-item-full {
  aspect-ratio: unset !important;
  max-width: 300px;
}

.media-item-full img {
  width: 100%;
  height: auto;
  object-fit: unset !important;
}

.hub-photo {
  flex-shrink: 0;
  width: 380px;
  border-radius: 20px;
  overflow: hidden;
}

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

.phone-png-mockup {
  width: 550px;
  flex-shrink: 0;
  position: relative;
}

.phone-png-mockup .phone-bg {
  width: 100%;
  height: auto;
  display: block;
}

.phone-screen-overlay {
  position: absolute;
  left: 39.5%;
  top: 13%;
  width: 38%;
  height: 77%;
  overflow: hidden;
  border-radius: 6% 6% 5% 5%;
}

.phone-screen-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone-mockup {
  width: 160px;
  background: #1a1a1a;
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 0 0 2px #333, 0 16px 40px rgba(0,0,0,0.25);
  position: relative;
  flex-shrink: 0;
}

.phone-notch {
  width: 60px;
  height: 14px;
  background: #1a1a1a;
  border-radius: 0 0 10px 10px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-screen {
  border-radius: 20px;
  overflow: hidden;
  height: 320px;
}

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

.phone-screen.phone-zoom-out img {
  transform: scale(0.88);
}

/* ── ABOUT ── */
.about-section {
  padding: var(--section-pad);
  background: var(--ink);
  color: #fff;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1100px;
}

.about-text h2 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.about-text p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 16px;
}

.skills-block h3,
.tools-block h3 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}

.skills-block ul,
.tools-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skills-block li,
.tools-block li {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 8px;
}

/* ── CONTACT ── */
.contact-section {
  padding: 120px 40px;
  text-align: center;
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact-section h2 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.contact-email {
  display: inline-block;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  margin-bottom: 48px;
  transition: opacity 0.2s;
}

.contact-email:hover { opacity: 0.5; }

.social-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.social-links a {
  font-size: 13px;
  color: var(--ink-light);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.social-links a:hover { color: var(--ink); }

/* ── FOOTER ── */
footer {
  padding: 20px 40px;
  border-top: 1px solid rgba(0,0,0,0.08);
  text-align: center;
  font-size: 12px;
  color: var(--ink-light);
}

/* ── QUOTE CARD ── */
.quote-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  grid-column: 1 / -1;
}

.quote-card.span-2 {
  grid-column: 1 / -1;
}

.quote-card blockquote {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 580px;
}

.quote-card cite {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-light);
  font-style: normal;
  letter-spacing: 0.02em;
  padding-left: 2px;
}

/* ── DECORATIVE ELEMENTS ── */
.work-section, .hero, .contact-section, .about-section {
  position: relative;
}

.deco {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.2s ease;
}

.deco.visible {
  opacity: 1 !important;
  animation: deco-float 6s ease-in-out infinite;
}

.deco:nth-child(odd).visible {
  animation-duration: 7s;
  animation-delay: -2s;
}

@keyframes deco-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 900px) {
  .deco { display: none; }
}

/* ── SCROLL FADE ── */
.media-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.media-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-reel {
    justify-self: center;
    width: 260px;
    max-height: 460px;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .media-item.span-wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    background: var(--bg);
    padding: 24px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    gap: 20px;
  }
  .nav-toggle { display: block; }

  .hero { padding: 100px 20px 60px; }
  .stats-bar { flex-wrap: wrap; gap: 28px; padding: 32px 20px; }
  .work-section, .contact-section { padding: 60px 20px; }
  .about-section { padding: 60px 20px; }

  .media-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .media-item.span-wide {
    grid-column: span 2;
    aspect-ratio: 16/9;
  }
}

/* ── Jake Bento Grid ── */
/* ── Jake Film Strip ── */
.jake-filmstrip {
  background: #1a1a1a;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 32px;
}

.filmstrip-holes {
  height: 22px;
  background-color: #1a1a1a;
  background-image: repeating-linear-gradient(
    to right,
    #1a1a1a 0px,
    #1a1a1a 10px,
    var(--bg-alt) 10px,
    var(--bg-alt) 24px,
    #1a1a1a 24px,
    #1a1a1a 34px
  );
}

.filmstrip-frames {
  display: flex;
  gap: 6px;
  padding: 8px 14px;
}

.filmstrip-frame {
  flex: 1;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 2px;
}

.filmstrip-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.filmstrip-frame img:hover {
  transform: scale(1.04);
}
