/* Global Styles & Design System */

:root {
  --bg-color: #f4f4f4;
  --text-main: #111111;
  --text-secondary: #666666;
  --accent-color: #000000;
  --white: #ffffff;

  --font-main: "PP Neue Montreal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Apercu Mono Pro", "Courier New", monospace;

  --gap-sm: 1rem;
  --gap-md: 2rem;
  --gap-lg: 4rem;
  --gap-xl: 8rem;

  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html,
body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p {
  line-height: 1.6;
  color: var(--text-secondary);
}

.text-lg {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.text-md {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.text-sm {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
}

.font-mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Layout Utilities */
section {
  width: 100%;
  padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 4vw, 2rem);
}

.wrapper {
  max-width: 1600px;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: var(--gap-md);
}

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.5rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid var(--text-main);
}

.btn-primary {
  background-color: var(--text-main);
  color: var(--white);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--text-main);
  transform: scale(1.05);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: var(--text-main);
  color: var(--white);
}

/* Featured Section (Press) */
/* Intro Section */
.intro-section {
  padding: 8rem 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.intro-text {
  max-width: 800px;
  margin: 0 auto 6rem auto;
  text-align: center;
}

.intro-text p {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.2;
  color: var(--text-main);
  font-weight: 300;
}

/* Marquee (Press) */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  padding: 2rem 0;
  opacity: 0.6;
}

.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
}

.marquee-item {
  display: inline-block;
  padding: 0 4rem;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .marquee-item {
    padding: 0 2rem;
    font-size: 1rem;
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .intro-section {
    padding: 4rem 1.5rem;
  }
}

/* Services List Section (Redesigned) */
.services-list-container {
  padding: 6rem 0;
  background: var(--bg-color);
}

.services-list-container .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-list-container .section-header h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.services-list-container .section-header p {
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-decoration: none;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card-img {
  transform: scale(1.08);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  transition: background 0.4s ease;
}

.service-card:hover .service-card-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.2) 100%);
}

.service-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: #fff;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-content {
  transform: translateY(0);
}

.service-card-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 0.5rem;
  display: block;
}

.service-card-title {
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.service-card-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease;
  color: rgba(255, 255, 255, 0.85);
}

.service-card:hover .service-card-desc {
  opacity: 1;
  max-height: 100px;
}

.service-card-arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  opacity: 0;
  transform: rotate(-45deg);
  transition: all 0.4s ease;
}

.service-card:hover .service-card-arrow {
  opacity: 1;
  transform: rotate(0deg);
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-card {
    aspect-ratio: 16/10;
  }

  .service-card-desc {
    opacity: 1;
    max-height: 100px;
  }

  .service-card-content {
    transform: translateY(0);
  }
}

/* Bento Gallery Section */
.gallery-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg-color);
  /* Match site bg */
}

.gallery {
  position: relative;
  width: 100%;
  height: 100%;
  flex: none;
}

.gallery__item {
  background-position: 50% 50%;
  background-size: cover;
  flex: none;
  position: relative;
}

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

.gallery--bento {
  display: grid;
  gap: 1vh;
  grid-template-columns: repeat(3, 32.5vw);
  grid-template-rows: repeat(4, 23vh);
  justify-content: center;
  align-content: center;
}

.gallery--final.gallery--bento {
  grid-template-columns: repeat(3, 100vw);
  grid-template-rows: repeat(4, 49.5vh);
  gap: 1vh;
}

.gallery--bento .gallery__item:nth-child(1) {
  grid-area: 1 / 1 / 3 / 2;
}

.gallery--bento .gallery__item:nth-child(2) {
  grid-area: 1 / 2 / 2 / 3;
}

.gallery--bento .gallery__item:nth-child(3) {
  grid-area: 2 / 2 / 4 / 3;
}

.gallery--bento .gallery__item:nth-child(4) {
  grid-area: 1 / 3 / 3 / 3;
}

.gallery--bento .gallery__item:nth-child(5) {
  grid-area: 3 / 1 / 3 / 2;
}

.gallery--bento .gallery__item:nth-child(6) {
  grid-area: 3 / 3 / 5 / 4;
}

.gallery--bento .gallery__item:nth-child(7) {
  grid-area: 4 / 1 / 5 / 2;
}

.gallery--bento .gallery__item:nth-child(8) {
  grid-area: 4 / 2 / 5 / 3;
}

/* Testimonials - Horizontal Scroll */
.testimonials-section {
  background: #111;
  color: #fff;
  overflow: hidden;
  padding: 0;
  height: 200vh;
  /* Full viewport height for pinning */
  display: flex;
  align-items: center;
}

.testimonial-wrapper {
  width: 100%;
  overflow: hidden;
  padding-left: 2rem;
}

.testimonial-slider {
  display: flex;
  /* Horizontal */
  gap: 8rem;
  width: max-content;
  /* Allow it to grow horizontally */
  padding-right: 10rem;
}

.testimonial {
  max-width: 60vw;
  width: 800px;
  flex: none;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.testimonial.active {
  opacity: 1;
}

.testimonial p {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 2rem;
  font-weight: 300;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.testimonial-divider {
  width: 150px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  align-self: center;
}

/* CTA Section */
.cta-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-color);
}

.cta-content h2 {
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.9;
  margin-bottom: 3rem;
}

/* Footer (New Universal Footer) */
.site-footer {
  background: var(--text-main);
  color: var(--white);
  padding: 4rem 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-big-text {
  font-size: 18vw;
  line-height: 0.8;
  ;
  text-align: center;
  color: var(--white);
  opacity: 0.1;
  user-select: none;
  pointer-events: none;
  overflow: hidden;
}

/* Mobile & Responsive Adjustments */
@media (max-width: 768px) {
  .services-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-preview {
    padding: 2rem;
    min-height: auto;
  }

  .site-nav {
    padding: 1rem !important;
  }
}

/* Site Navigation (Non-Hero Pages) */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(244, 244, 244, 0.9);
  backdrop-filter: blur(10px);
}

.site-nav a {
  color: var(--text-main);
}

.site-nav .logo h1 {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1;
}

.site-nav .nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.site-nav .nav-list a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
}

/* Inner Page Hero */
.page-hero {
  padding-top: 25vh;
  padding-bottom: 5vh;
  min-height: 40vh;
}

.page-hero h1 {
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 0.9;
  max-width: 15ch;
  margin-bottom: 2rem;
}

.page-hero p {
  font-size: 1.25rem;
  max-width: 600px;
}

/* Work / Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 4rem 2rem;
  margin-bottom: 4rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-card img {
  border-radius: 4px;
  /* Slight rounding */
  aspect-ratio: 4/3;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

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

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.project-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  padding: 1rem 0;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  background: transparent;
  font-family: var(--font-main);
  font-size: 1rem;
  outline: none;
  transition: border 0.3s;
}

input:focus,
textarea:focus {
  border-bottom-color: var(--text-main);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-details p {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* Footer (New Universal Footer) */
.site-footer {
  background: var(--text-main);
  color: var(--white);
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {

  /* Hide Desktop Nav elements on mobile but keep mobile nav toggle visible */
  .nav-item {
    display: none !important;
    /* Hide hero nav items on mobile */
  }

  .site-nav {
    display: none !important;
    /* Hide other pages top nav */
  }

  /* Fix Hero Logo if Nav is hidden */
  .site-logo {
    display: block;
    /* Ensure logo is still visible */
    margin-bottom: 2rem;
  }

  /* Bento Gallery Mobile */
  .gallery-wrap {
    height: auto;
    min-height: 100vh;
    padding: 4rem 1rem;
  }

  .gallery--bento {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: auto;
  }

  .gallery__item {
    width: 100%;
    height: 300px;
    /* Fixed height for mobile squares */
  }

  /* Testimonials Mobile */
  .testimonials-section {
    height: auto;
    min-height: 100vh;
    display: block;
    padding: 3rem 1rem;
    overflow-y: hidden;
    /* Let body scroll handle it */
  }

  .testimonial-slider {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 4rem;
    transform: none !important;
    /* Disable GSAP horizontal movement override if needed via JS check, but safely just stacking */
    padding-right: 0;
    transform: none !important;
    /* Ensure GSAP doesn't shift it off screen */
  }

  .testimonial {
    width: 100%;
    max-width: 100%;
    opacity: 1;
    /* Always visible on mobile */
  }

  .testimonial p {
    font-size: 2rem;
  }

  .testimonial-divider {
    width: 100%;
    height: 1px;
    margin: 2rem 0;
  }

  /* General Grids */
  .projects-grid,
  .contact-grid,
  .footer-content,
  .news-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  /* Newspaper Specifics */
  .main-col {
    border-right: none;
    padding-right: 0;
  }

  .article-text {
    column-count: 1;
    /* Single column reading */
  }
}

/* Services Manifesto - Redesign */
.manifesto-section {
  position: relative;
  min-height: 100vh;
  padding: 8rem 2rem;
  background-color: var(--bg-color);
  z-index: 10;
}

.manifesto-list {
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
}

.manifesto-item {
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 3rem 0;
  transition: opacity 0.4s ease;
}

.manifesto-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text-main);
  position: relative;
  z-index: 20;
}

.service-number {
  font-family: var(--font-mono);
  font-size: 1rem;
  width: 50px;
}

.service-name {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-family: "PP Neue Montreal", serif;
  font-weight: 300;
  letter-spacing: -0.02em;
  flex: 1;
  margin-left: 2rem;
  transition: transform 0.4s ease;
}

.service-arrow {
  font-size: 2rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.4s ease;
}

.manifesto-link:hover .service-name {
  transform: translateX(10px);
}

.manifesto-link:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
}

.mobile-image {
  display: none;
  margin-top: 2rem;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 4px;
}

.mobile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hover Reveal Container */
.manifesto-image-reveal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.6s ease;
  /* filter removed to keep color images */
}

.manifesto-image-reveal.active {
  opacity: 1;
  z-index: 5;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .manifesto-section {
    padding: 6rem 1.5rem;
  }

  .manifesto-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .service-name {
    margin-left: 0;
    font-size: 2.5rem;
  }

  .service-arrow {
    display: none;
  }

  .mobile-image {
    display: block;
  }

  .manifesto-image-reveal {
    display: none;
  }

  .manifesto-item {
    padding: 2rem 0;
    opacity: 1 !important;
  }
}