/* =============================================
   CSS Custom Properties — Branding System
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&family=Lexend:wght@500&display=swap');

:root {
  --color-bg: #02050B;
  --color-bg-secondary: #0D1420;
  --color-bg-dark: #000000;
  --color-text: #FFFFFF;
  --color-text-secondary: rgb(255, 255, 255);
  --color-primary: #00B9FF;
  --color-accent: #FF583D;
  --color-link: #FF583D;

  --font-display: "Lexend", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Nunito", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --radius-card: 2px;
  --radius-btn: 2px;

  --nav-height: 48px;
  --section-pad: 120px;
  --section-pad-sm: 60px;
}

/* =============================================
   Display font — global uppercase + weight
   ============================================= */
.nav-logo,
.hero-name,
.hero-title,
.about-col-label,
.card-job,
.contact-heading,
.cs-hero-job,
.cs-meta-label,
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
}

/* =============================================
   Reset & Base
   ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img,
video {
  display: block;
}


/* =============================================
   Navigation
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(2, 5, 11, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--color-text);
}

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

.nav-links a {
  font-size: 16px;
  color: var(--color-text);
  transition: color 0.2s;
  letter-spacing: 0.1px;
}

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


/* =============================================
   Hero Section
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.hero-video {
  position: absolute;
  top: -15%;
  left: 0;
  right: 0;
  width: 100%;
  height: 130%; /* Extra height gives room for parallax movement */
  overflow: hidden;
  opacity: 0.75;
  will-change: transform;
}

.hero-embed {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;  /* 16:9 */
  min-height: 100%;
  min-width: 177.78vh; /* 16:9 inverted */
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.0) 40%,
      rgba(0, 0, 0, 0.55) 100%);
}


/* Hero title */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  animation: heroFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.0;
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Mute toggle */
.hero-breakdown-btn {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-btn);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.hero-breakdown-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
}

/* =============================================
   Breakdown Reel Modal
   ============================================= */
.reel-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reel-modal[hidden] { display: none; }

.reel-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.reel-modal-box {
  position: relative;
  z-index: 1;
  width: min(90vw, 1100px);
}

.reel-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 8px;
  display: flex;
  transition: color 0.2s;
}

.reel-modal-close:hover { color: #fff; }

.reel-modal-player {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #000;
}

.reel-modal-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* =============================================
   Buttons
   ============================================= */
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.1px;
}

.btn-primary:hover {
  background: #00a0e0;
  transform: scale(1.02);
}

.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-bg-secondary);
  color: var(--color-link);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-btn);
  border: 1px solid var(--color-link);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-secondary:hover {
  background: rgba(0, 185, 255, 0.12);
  transform: scale(1.02);
}


/* =============================================
   Section Shared
   ============================================= */
.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
}


/* =============================================
   About Section
   ============================================= */
.about {
  background: var(--color-bg-secondary);
  padding: var(--section-pad) 24px;
}

.about-inner {
  max-width: 760px;
  margin: 0 auto;
}

.about-body {
  font-size: 19px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.about-section-block {
  margin-top: 48px;
}

.about-col-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 20px;
}

/* Skills list */
.about-skill-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
}

.about-skill-list li {
  font-size: 16px;
  color: var(--color-text);
  padding-left: 16px;
  position: relative;
}

.about-skill-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* Software list */
.about-sw-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
}

.about-sw-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--color-text);
}

/* Software icon images */
.sw-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
  overflow: hidden;
  background: transparent;
}

.sw-icon-dark {
  background: #1a1a1a;
  padding: 3px;
}

.sw-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Keep skill-tag for any other uses */
.skill-tag {
  padding: 6px 14px;
  background: rgba(0, 185, 255, 0.1);
  color: var(--color-primary);
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
}


/* =============================================
   Portfolio Grid
   ============================================= */
.work {
  padding: var(--section-pad) 24px;
  background: var(--color-bg);
}

.work-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.work-header {
  margin-bottom: 32px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Portfolio Card */
.portfolio-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-bg-dark);
  aspect-ratio: 16 / 9;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease;
}

.portfolio-card:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  z-index: 2;
}

.card-video,
.card-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.75) 0%,
      rgba(0, 0, 0, 0.0) 30%);
  transition: opacity 0.3s ease;
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  color: #fff;
}

.card-content {
  padding: 24px;
}

.card-client {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.card-job {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.2;
}


/* =============================================
   Contact / Footer
   ============================================= */
.contact {
  background: var(--color-bg-dark);
  padding: var(--section-pad) 24px;
  text-align: center;
}

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

.contact-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 24px;
}

.contact-body {
  font-size: 19px;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 40px;
}

.contact-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.contact-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--color-text);
  transition: color 0.2s;
}

a.contact-detail:hover {
  color: var(--color-primary);
}

.contact-detail-sep {
  color: var(--color-text);
  font-size: 14px;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  color: var(--color-text);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--color-text);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-primary);
}


/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
  :root {
    --section-pad: var(--section-pad-sm);
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .about-skill-list,
  .about-sw-list {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* =============================================
   Case Study — Hero
   ============================================= */
.cs-hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  background: #000;
  overflow: hidden;
}

.cs-hero-media {
  position: absolute;
  inset: 0;
}

.cs-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.cs-hero-embed {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  /* 16:9 */
  min-height: 100vh;
  min-width: 177.78vh;
  /* 16:9 inverted */
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}

.cs-hero-info {
  position: relative;
  z-index: 2;
  padding: 48px;
  color: #fff;
}

.cs-hero-agency {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.cs-hero-client {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.cs-hero-job {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.0;
}


/* =============================================
   Case Study — Content (Overview + Meta)
   ============================================= */
.cs-content {
  padding: var(--section-pad) 24px;
  background: var(--color-bg);
}

.cs-content-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 80px;
  align-items: start;
}

.cs-title-block {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cs-title-block .cs-hero-agency {
  font-size: 13px;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.cs-title-block .cs-hero-client {
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 12px;
}

.cs-title-block .cs-hero-job {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1.05;
  color: var(--color-text);
}

.cs-overview .section-eyebrow {
  margin-bottom: 20px;
}

.cs-overview-text {
  font-size: 21px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.cs-meta {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 4px;
}

.cs-meta-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.cs-meta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-meta-list li {
  font-size: 15px;
  color: var(--color-text);
  padding-left: 14px;
  position: relative;
}

.cs-meta-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
}


/* =============================================
   Case Study — Gallery
   ============================================= */
.cs-gallery-section {
  padding: 0 24px var(--section-pad);
  background: var(--color-bg);
}

.cs-gallery-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.cs-gallery-inner .section-eyebrow {
  margin-bottom: 24px;
}

.cs-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.cs-gallery-cell {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-bg-dark);
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

.cs-gallery-cell video,
.cs-gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.cs-gallery-cell iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.cs-gallery-cell:hover video,
.cs-gallery-cell:hover img {
  transform: scale(1.03);
}

/* YouTube thumbnail links */
.yt-thumb-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.yt-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.2s;
}

.yt-play-btn::after {
  content: "";
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23111'%3E%3Cpolygon points='8 5 19 12 8 19 8 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 52%;
}

.yt-thumb-link:hover .yt-play-btn {
  background: rgba(0, 0, 0, 0.15);
}


/* =============================================
   Case Study — Bottom navigation
   ============================================= */
.cs-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cs-nav-back,
.cs-nav-prev,
.cs-nav-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.cs-nav-back:hover,
.cs-nav-prev:hover,
.cs-nav-next:hover {
  color: var(--color-primary);
}

.cs-nav-adjacent {
  display: flex;
  gap: 32px;
}


/* =============================================
   Case Study — Responsive
   ============================================= */
@media (max-width: 900px) {
  .cs-content-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .cs-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .cs-hero-info {
    padding: 32px 24px;
  }

  .cs-gallery {
    grid-template-columns: 1fr;
  }

  .cs-nav-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}