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

/* Smooth scrolling - no snap for fluid editorial feel */
html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

/* Scroll-linked color transition container */
body {
  --scroll-bg: #6cd986;
  --scroll-fg: #1f1f1f;
  transition: none;
}

/* Brand color system */
:root {
  --ink: #1f1f1f;
  --paper: #f6f5f3;
  --paper-soft: #f1f2ef;
  --accent: #6cd986;
  --soft-ink: #555;
  --font-serif: 'Libre Baskerville', Georgia, serif;
}

/* Base */
body {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

/* Header - transparent with dynamic transitions */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  background: transparent;
  transition: color 0.4s ease, filter 0.4s ease;
}

.main-header .nav-links a {
  color: inherit;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.main-header .logo-text {
  color: inherit;
  font-weight: 400;
  font-size: 1.2rem;
  text-transform: lowercase;
}

/* Light background state (on Copper/Paper) */
.header-light {
  color: var(--ink);
}
.header-light .hero-wordmark-nav {
  filter: brightness(0);
}

/* Dark background state (on Ink) */
.header-dark {
  color: #fff;
}
.header-dark .hero-wordmark-nav {
  filter: brightness(0) invert(1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo img {
  height: 22px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  color: #1f1f1f;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

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

.nav-full {
  display: inline;
}

.nav-short {
  display: none;
}

/* Hero - side by side layout */
.hero {
  min-height: 100vh;
  background: transparent;
  color: #1f1f1f;
  display: flex;
  align-items: center;
  padding: 6rem 3rem;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-left {
  display: block;
}

.hero-wordmark {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 0 1.5rem 0;
  padding: 0;
  display: block;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  opacity: 0.8;
  line-height: 1.6;
  text-align: left;
  margin: 0;
  padding: 0;
}

.hero-right h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.8vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* Keyframe animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* Scroll-triggered animations */
.animate {
  opacity: 0;
}

.animate.visible {
  animation: fadeUp 0.8s ease-out forwards;
}

.animate-left.visible {
  animation: fadeLeft 0.8s ease-out forwards;
}

.animate-right.visible {
  animation: fadeRight 0.8s ease-out forwards;
}

/* Staggered delays */
.delay-1 { animation-delay: 0.1s !important; }
.delay-2 { animation-delay: 0.2s !important; }
.delay-3 { animation-delay: 0.3s !important; }

/* Sections - Full viewport height, no snap for fluid scrolling */
section {
  min-height: 100vh;
  padding: 6rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: transparent;
}

section > * {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* About / What we do */
.about {
  background: transparent;
  color: #000;
}

.about h2 {
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 3rem;
  color: #000;
  opacity: 0.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}

.service h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #000;
}

.service-text-morph {
  position: relative;
  min-height: 80px;
}

.service-question {
  font-size: 1rem;
  color: #000;
  line-height: 1.7;
  font-weight: 400;
  font-style: italic;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.service-answer {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.7;
  font-weight: 400;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s ease-out;
}

.service-text-morph.morphed .service-question {
  opacity: 0;
}

.service-text-morph.morphed .service-answer {
  opacity: 1;
}

/* Questions section */
.questions {
  background: transparent;
  overflow: hidden;
}

.questions h2 {
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 3rem;
  color: var(--accent);
}

.question-carousel {
  min-height: 120px;
  position: relative;
}

.question {
  position: absolute;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  max-width: 800px;
}

.questions-col {
  min-width: 0;
}

.who-we-help-col {
  min-width: 0;
}

.question.active {
  opacity: 1;
  transform: translateY(0);
}

.questions-grid {
  display: grid !important;
  grid-template-columns: 1.5fr 1fr !important;
  gap: 6rem;
  align-items: start;
}

.logo-carousel-wrapper {
  overflow: hidden;
  width: 100%;
  margin-left: 0;
  padding-left: 0;
}

.logo-carousel-track {
  display: flex;
  gap: 3rem;
  animation: scrollLogos 20s linear infinite;
  width: max-content;
}

@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.client-logo {
  height: 50px;
  width: auto;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.client-logo.logo-white {
  filter: none;
}

@media (max-width: 900px) {
  .questions-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 4rem;
  }

  .question-carousel {
    min-height: 180px;
  }

  .question {
    font-size: 1.25rem;
    max-width: 100%;
    width: 100%;
  }

  .questions-col,
  .who-we-help-col {
    overflow: hidden;
    min-width: 0;
    width: 100%;
  }
}

/* Who we are */
.who-we-are {
  background: transparent;
  color: var(--ink);
}

.who-we-are h2 {
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
  color: var(--ink);
  opacity: 0.7;
}

.who-we-are-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.who-we-are-left p {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.who-we-are-right h3 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--ink);
  opacity: 0.7;
}

.team-carousel {
  min-height: 80px;
  position: relative;
}

.team-item {
  position: absolute;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

.team-item.active {
  opacity: 1;
  transform: translateY(0);
}

.team-item.exit {
  opacity: 0;
  transform: translateY(-20px);
}

/* Who we're for */
.who-were-for {
  background: transparent;
}

.who-were-for h2 {
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 3rem;
  color: var(--accent);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}

.audience h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.audience p {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
}

/* Contact */
.contact {
  background: transparent;
  color: var(--ink);
}

.contact h2 {
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
  color: var(--ink);
  opacity: 0.7;
}

.contact p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  max-width: 500px;
  color: var(--ink);
}

.contact a {
  color: var(--ink); 
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 400;
  border-bottom: 2px solid rgba(31,31,31,0.4);
  transition: border-color 0.2s;
}

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

/* Footer */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  text-align: left;
  padding: 2rem 3rem;
  font-size: 0.85rem;
}

footer p {
  max-width: 1400px;
  margin: 0 auto;
}

footer a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  margin-left: 1.5rem;
  transition: color 0.2s;
}

footer a:hover {
  color: rgba(255,255,255,0.8);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .animate {
    opacity: 1;
    animation: none !important;
  }
  
  .logo-carousel-track {
    animation: none;
  }
  
  .question,
  .team-item {
    transition: none;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .services-grid,
  .audience-grid,
  .who-we-are-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .main-header {
    padding: 1rem 1.5rem;
  }

  .hero {
    padding: 6rem 1.5rem 4rem;
  }

  .hero-split {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .hero-right {
    order: 1;
  }

  .hero-left {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-wordmark {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .hero-tagline {
    text-align: center;
  }

  .hero-right h1 {
    text-align: center;
  }

  section {
    padding: 4rem 1.5rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.7rem;
    letter-spacing: 0.02em;
  }

  .nav-full {
    display: none;
  }

  .nav-short {
    display: inline;
  }
}
