/* Font Loading Animation */
@keyframes fonts-loading {
  0%, 99% { color: transparent; }
}

html.wf-loading * {
  animation: 3s ease 0s 1 normal none running fonts-loading;
}

/* Font Faces - Original Squarespace Fonts */
@font-face {
  font-family: swear-display;
  src: url("https://use.typekit.net/af/b5be3b/00000000000000007735e251/31/l?subset_id=2&fvd=n5&v=3") format("woff2"),
       url("https://use.typekit.net/af/b5be3b/00000000000000007735e251/31/d?subset_id=2&fvd=n5&v=3") format("woff"),
       url("https://use.typekit.net/af/b5be3b/00000000000000007735e251/31/a?subset_id=2&fvd=n5&v=3") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: auto;
}

@font-face {
  font-family: swear-display;
  src: url("https://use.typekit.net/af/098777/00000000000000007735e25b/31/l?subset_id=2&fvd=n7&v=3") format("woff2"),
       url("https://use.typekit.net/af/098777/00000000000000007735e25b/31/d?subset_id=2&fvd=n7&v=3") format("woff"),
       url("https://use.typekit.net/af/098777/00000000000000007735e25b/31/a?subset_id=2&fvd=n7&v=3") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: auto;
}

@font-face {
  font-family: neue-haas-grotesk-text;
  src: url("https://use.typekit.net/af/912d1e/00000000000000007735bb33/31/l?subset_id=2&fvd=n4&v=3") format("woff2"),
       url("https://use.typekit.net/af/912d1e/00000000000000007735bb33/31/d?subset_id=2&fvd=n4&v=3") format("woff"),
       url("https://use.typekit.net/af/912d1e/00000000000000007735bb33/31/a?subset_id=2&fvd=n4&v=3") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: auto;
}

@font-face {
  font-family: neue-haas-grotesk-text;
  src: url("https://use.typekit.net/af/c002e2/00000000000000007735bb32/31/l?subset_id=2&fvd=n5&v=3") format("woff2"),
       url("https://use.typekit.net/af/c002e2/00000000000000007735bb32/31/d?subset_id=2&fvd=n5&v=3") format("woff"),
       url("https://use.typekit.net/af/c002e2/00000000000000007735bb32/31/a?subset_id=2&fvd=n5&v=3") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: auto;
}

@font-face {
  font-family: neue-haas-grotesk-text;
  src: url("https://use.typekit.net/af/2288cb/00000000000000007735bb39/31/l?subset_id=2&fvd=n7&v=3") format("woff2"),
       url("https://use.typekit.net/af/2288cb/00000000000000007735bb39/31/d?subset_id=2&fvd=n7&v=3") format("woff"),
       url("https://use.typekit.net/af/2288cb/00000000000000007735bb39/31/a?subset_id=2&fvd=n7&v=3") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: auto;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'neue-haas-grotesk-text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #000;
  background-color: #fff;
  overflow-x: hidden;
  --sqs-site-max-width: 1500px;
  --sqs-site-gutter: 4vw;
  --sqs-mobile-site-gutter: 6vw;
}

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

/* Typography */
h1, h2, h3 {
  font-family: 'swear-display', 'neue-haas-grotesk-text', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 1);
  border-bottom-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
  max-width: var(--sqs-site-max-width);
  margin: 0 auto;
  padding: 1.5rem var(--sqs-site-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-title-nav-wrapper {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex: 1;
  justify-content: center;
}

.header-title {
  margin: 0;
}

.site-title {
  font-family: 'swear-display', sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  transition: opacity 0.3s ease;
  letter-spacing: -0.01em;
}

.site-title:hover {
  opacity: 0.7;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: 'neue-haas-grotesk-text', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #000;
  text-decoration: none;
  transition: opacity 0.3s ease;
  letter-spacing: 0.01em;
}

.nav-link:hover {
  opacity: 0.6;
}

.header-actions {
  position: absolute;
  right: var(--sqs-site-gutter);
  display: flex;
  gap: 1rem;
}

.header-cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: 'neue-haas-grotesk-text', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #000;
  background-color: transparent;
  border: 1px solid #000;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.header-cta-button:hover {
  background-color: #000;
  color: #fff;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  position: absolute;
  right: var(--sqs-site-gutter);
}

.burger-line {
  display: block;
  width: 24px;
  height: 1px;
  background-color: #000;
  margin: 6px 0;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .burger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding-top: 100px;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
}

.mobile-nav-link {
  font-family: 'swear-display', sans-serif;
  font-size: 2rem;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-link:hover {
  opacity: 0.6;
}

.mobile-cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: 'neue-haas-grotesk-text', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #000;
  background-color: transparent;
  border: 1px solid #000;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 2rem;
}

.mobile-cta-button:hover {
  background-color: #000;
  color: #fff;
}

body.menu-open {
  overflow: hidden;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 11px;
  padding: calc(var(--sqs-site-gutter) * 2);
  padding-top: calc(var(--sqs-site-gutter) * 2 + 80px);
  align-items: center;
  background-color: #fff;
  animation: fadeIn 0.8s ease-in-out;
  position: relative;
}

.hero-content {
  grid-column: 3 / 13;
  z-index: 2;
  animation: slideInLeft 0.8s ease-out;
}

.hero-title {
  font-family: 'swear-display', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-family: 'neue-haas-grotesk-text', sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  color: #333;
  line-height: 1.6;
  font-weight: 400;
  max-width: 600px;
}

.hero-image {
  grid-column: 14 / 27;
  z-index: 1;
  animation: slideInRight 0.8s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.02);
}

/* Portfolio Intro Section */
.portfolio-intro {
  padding: calc(var(--sqs-site-gutter) * 3) var(--sqs-site-gutter);
  text-align: center;
  background-color: #fff;
  animation: fadeIn 0.8s ease-in-out;
}

.portfolio-intro h2 {
  font-family: 'swear-display', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  color: #000;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Portfolio Grid Section */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: var(--sqs-site-gutter);
  max-width: var(--sqs-site-max-width);
  margin: 0 auto;
  animation: fadeIn 0.8s ease-in-out;
}

.project-card {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.3s ease;
  animation: fadeInUp 0.6s ease-out backwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  width: 100%;
  height: 350px;
  overflow: hidden;
  background-color: #f2f4f5;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: 2rem 0;
}

.project-content h3 {
  font-family: 'swear-display', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #000;
  line-height: 1.2;
}

.project-content p {
  font-family: 'neue-haas-grotesk-text', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  font-weight: 400;
}

/* Media Intro Section */
.media-intro {
  padding: calc(var(--sqs-site-gutter) * 2) var(--sqs-site-gutter) calc(var(--sqs-site-gutter) * 0.5) var(--sqs-site-gutter);
  text-align: center;
  background-color: #fff;
  animation: fadeIn 0.8s ease-in-out;
}

.media-intro h2 {
  font-family: 'swear-display', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  color: #000;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.media-description {
  font-family: 'neue-haas-grotesk-text', sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: #555;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Portfolio intro on media page - reduce spacing */
.media-intro + .portfolio-intro {
  padding: calc(var(--sqs-site-gutter) * 0.5) var(--sqs-site-gutter) calc(var(--sqs-site-gutter) * 0.25) var(--sqs-site-gutter);
}

.media-grid + .portfolio-intro {
  padding: calc(var(--sqs-site-gutter) * 1.5) var(--sqs-site-gutter) calc(var(--sqs-site-gutter) * 0.25) var(--sqs-site-gutter);
}

/* Media Grid Section */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 0 var(--sqs-site-gutter);
  padding-bottom: calc(var(--sqs-site-gutter) * 2);
  max-width: var(--sqs-site-max-width);
  margin: 0 auto;
  animation: fadeIn 0.8s ease-in-out;
}

.media-item {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.3s ease;
  animation: fadeInUp 0.6s ease-out backwards;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-item:nth-child(1) { animation-delay: 0.1s; }
.media-item:nth-child(2) { animation-delay: 0.2s; }
.media-item:nth-child(3) { animation-delay: 0.3s; }
.media-item:nth-child(4) { animation-delay: 0.4s; }
.media-item:nth-child(5) { animation-delay: 0.5s; }
.media-item:nth-child(6) { animation-delay: 0.6s; }

.media-item:hover {
  transform: translateY(-5px);
}

.media-embed-placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: linear-gradient(135deg, #f7f8f9 0%, #e9ecef 100%);
  border: 2px dashed #ccc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.media-embed-placeholder p {
  font-family: 'swear-display', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 0.5rem;
}

.media-embed-placeholder span {
  font-family: 'neue-haas-grotesk-text', sans-serif;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

/* Image styling in media items */
.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Video styling in media items */
.media-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background-color: #000;
}

.video-item {
  height: auto;
  min-height: 400px;
  width: 100%;
  max-width: 500px;
  justify-self: start;
}

/* Video.js player styling - Modern look */
.video-item .video-js {
  width: 100%;
  height: auto;
  min-height: 400px;
  border-radius: 8px;
}

.video-js {
  background-color: #000;
  font-family: 'neue-haas-grotesk-text', Arial, sans-serif;
}

/* Big play button - modern centered style */
.video-js .vjs-big-play-button {
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  line-height: 80px;
  font-size: 3em;
  background-color: rgba(43, 51, 63, 0.7);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.video-js:hover .vjs-big-play-button,
.video-js .vjs-big-play-button:focus {
  background-color: rgba(43, 51, 63, 0.9);
  transform: scale(1.1);
}

/* Control bar styling */
.video-js .vjs-control-bar {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-js:hover .vjs-control-bar,
.video-js.vjs-paused .vjs-control-bar,
.video-js.vjs-user-active .vjs-control-bar {
  opacity: 1;
}

/* Progress bar */
.video-js .vjs-play-progress {
  background-color: #fff;
}

.video-js .vjs-load-progress {
  background: rgba(255, 255, 255, 0.3);
}

/* Buttons */
.video-js .vjs-button > .vjs-icon-placeholder:before {
  line-height: 1.8;
}

/* Volume slider */
.video-js .vjs-volume-level {
  background-color: #fff;
}

/* Time display */
.video-js .vjs-time-control {
  font-size: 1em;
  line-height: 3em;
}

/* Embedded content styling */
.media-item iframe,
.media-item blockquote {
  max-width: 100%;
  border: none;
  margin: 0 auto;
  padding: 0;
  display: block;
  border-radius: 8px;
}

/* Specific styling for Facebook embeds */
.media-item iframe[src*="facebook.com"] {
  margin: 0 auto;
  height: auto;
  min-height: 400px;
}

/* TikTok embed styling */
.media-item .tiktok-embed {
  margin: 0 !important;
  width: 500px !important;
  max-width: 500px !important;
  min-width: 500px !important;
}

.video-item .tiktok-embed {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
}

/* Instagram embed styling */
.media-item .instagram-media {
  margin: 0 auto !important;
  max-width: 100% !important;
  min-width: auto !important;
}

/* Video with link wrapper */
.video-with-link {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* TikTok link below video */
.video-tiktok-link {
  font-family: 'neue-haas-grotesk-text', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 1px solid #000;
  text-align: center;
  transition: all 0.3s ease;
  background-color: transparent;
  letter-spacing: 0.02em;
}

.video-tiktok-link:hover {
  background-color: #000;
  color: #fff;
}

/* CTA Section */
.cta-section {
  padding: calc(var(--sqs-site-gutter) * 4) var(--sqs-site-gutter);
  text-align: center;
  background-color: #000;
  color: #fff;
  animation: fadeIn 0.8s ease-in-out;
}

.cta-section h2 {
  font-family: 'swear-display', sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cta-button {
  display: inline-block;
  padding: 1.5rem 4rem;
  font-family: 'neue-haas-grotesk-text', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #000;
  background-color: #fff;
  border: none;
  border-radius: 0;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cta-button:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.cta-button:active {
  transform: translateY(0);
}

/* Footer */
.site-footer {
  padding: 3rem var(--sqs-site-gutter);
  background-color: #000;
  text-align: center;
  color: #fff;
  animation: fadeIn 0.8s ease-in-out;
}

.site-footer p {
  margin-bottom: 1rem;
  font-family: 'neue-haas-grotesk-text', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
}

.social-links {
  margin: 1.5rem 0;
}

.social-links a {
  display: inline-block;
  margin: 0 1rem;
  color: #fff;
  text-decoration: none;
  font-family: 'neue-haas-grotesk-text', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: opacity 0.3s ease;
}

.social-links a:hover {
  opacity: 0.7;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    --sqs-site-gutter: var(--sqs-mobile-site-gutter);
  }

  /* Header Mobile */
  .header-title-nav-wrapper {
    justify-content: flex-start;
    gap: 0;
  }

  .header-nav {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-section {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: calc(var(--sqs-mobile-site-gutter) * 2);
    padding-top: calc(var(--sqs-mobile-site-gutter) * 2 + 80px);
    gap: 3rem;
  }

  .hero-content,
  .hero-image {
    grid-column: auto;
    max-width: 100%;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .project-image {
    height: 250px;
  }

  .project-content h3 {
    font-size: 1.5rem;
  }

  .cta-section h2 {
    font-size: 2.5rem;
  }

  .cta-button {
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .portfolio-intro h2 {
    font-size: 1.8rem;
  }

  .cta-section h2 {
    font-size: 2rem;
  }

  .project-content {
    padding: 1.5rem 0;
  }
}

/* Selection */
::selection {
  background-color: #000;
  color: #fff;
}

::-moz-selection {
  background-color: #000;
  color: #fff;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* User Interactions */
a, button {
  -webkit-tap-highlight-color: transparent;
}
