/* ---------- Reset & base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f7f6f4;
  --ink: #16161a;
  --ink-soft: #55555c;
  --border: #e6e4df;
  --accent: #d4552b;
  --accent-ink: #ffffff;
  --radius: 10px;
  --max: 1120px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

section {
  padding: 96px 24px;
}

.section-head {
  max-width: var(--max);
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--ink);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px 40px;
  display: grid;
  gap: 48px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin-bottom: 20px;
}

.hero-pitch {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-reel {
  width: 100%;
}

.reel-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.reel-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.reel-caption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Work / Projects ---------- */
.work {
  background: var(--bg-soft);
}

.project-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.project-thumb {
  position: relative;
  aspect-ratio: 4/3;
  background: #eae8e3;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-play {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.project-meta {
  padding: 18px 20px 22px;
}

.project-meta h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.project-tags {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.55);
}

.modal-panel {
  position: relative;
  max-width: 760px;
  margin: 5vh auto;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  padding: 40px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}

.modal-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.modal-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.modal-brief {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.modal-brief span {
  display: block;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.modal-brief p {
  font-size: 0.92rem;
}

.modal-media {
  display: grid;
  gap: 16px;
}

.modal-media img,
.modal-media iframe {
  width: 100%;
  border-radius: 8px;
}

/* ---------- About ---------- */
.about-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.about-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 20px;
  max-width: 640px;
}

.about-bio {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 36px;
}

.about-block {
  margin-bottom: 28px;
}

.about-block h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-soft);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
}

.tag-row span img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.tag-row-tools span {
  background: #fff;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--ink);
  color: #fff;
  text-align: center;
}

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

.contact .section-eyebrow {
  color: #f0a888;
}

.contact h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.contact-sub {
  color: #b8b8bd;
  margin-bottom: 36px;
  font-size: 1.05rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.contact-links a {
  padding: 13px 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.92rem;
  transition: border-color 0.15s, background 0.15s;
}

.contact-links a:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- Footer ---------- */
.footer {
  padding: 28px 24px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */
@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-top: 100px;
  }
}

@media (max-width: 859px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  section {
    padding: 64px 20px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    position: fixed;
    top: 63px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    transition: transform 0.25s ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .modal-brief {
    grid-template-columns: 1fr;
  }

  .modal-panel {
    margin: 0;
    max-height: 100vh;
    border-radius: 0;
  }
}

/* ---------- Project Detail Page ---------- */
.project-detail {
  padding: 48px 24px 96px;
}

.project-detail-inner {
  max-width: 860px;
  margin: 0 auto;
}

.breadcrumb {
  margin-bottom: 32px;
}

.breadcrumb a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s;
}

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

.project-header {
  margin-bottom: 48px;
}

.project-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.project-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 32px;
  line-height: 1.1;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.project-meta-grid span {
  display: block;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.project-meta-grid p {
  font-size: 0.95rem;
  color: var(--ink);
}

.project-section {
  margin-bottom: 48px;
}

.project-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.project-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.project-gallery {
  display: grid;
  gap: 32px;
  margin: 64px 0;
}

.project-gallery img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.carousel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 12px;
}

.carousel-grid img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ---------- Carousel Card ---------- */
.carousel-card {
  position: relative;
  cursor: pointer;
}

.carousel-card img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carousel-card:hover img {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.slide-info {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-top: 8px;
  padding: 0 2px;
}

/* ---------- Carousel Lightbox ---------- */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.lightbox-container {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.lightbox-caption {
  margin-top: 14px;
  color: #d1d1d6;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
  z-index: 10000;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  font-size: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
  z-index: 10000;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.05);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

@media (max-width: 640px) {
  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}

/* ---------- Instagram Post Mockup ---------- */
.mockup-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.insta-mockup {
  position: relative;
  width: 380px;
  margin: 0 auto 40px;
}

.insta-mockup .insta-frame {
  width: 100%;
  display: block;
  border: none;
}

.insta-mockup .insta-slide {
  position: absolute;
  top: 10%;
  left: 4%;
  width: 92%;
  height: 78%;
  object-fit: cover;
  border: none;
  border-radius: 0;
}

.insta-dots-cover {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 6px 24px;
  z-index: 2;
  display: flex;
  gap: 5px;
  align-items: center;
}

.insta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4d4d4;
}

.insta-dot.active {
  background: #3897f0;
}

@media (max-width: 720px) {
  .carousel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .carousel-grid {
    grid-template-columns: 1fr;
  }

  .insta-mockup {
    width: 280px;
  }
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ffffff;
}

.video-embed video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-caption {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 12px;
  font-style: italic;
}

.project-tools {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.project-tools h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-tags span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
}

.tool-tags span img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.project-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.project-nav-link {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s;
  display: block;
}

.project-nav-link:hover {
  border-color: var(--ink);
  background: var(--bg-soft);
}

.project-nav-link span {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.project-nav-link small {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.project-nav-link:last-child {
  text-align: right;
}

@media (max-width: 640px) {
  .project-nav {
    grid-template-columns: 1fr;
  }

  .project-nav-link:last-child {
    text-align: left;
  }
}