/* ==========================================================================
   General Specific Media — Legacy Site
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colors extracted from logo */
  --color-bg: #F5F2EB;
  --color-text: #1A1A1A;
  --color-blue: #7BB8D4;
  --color-green: #8CB891;
  --color-red: #A67272;

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 60px;
  --container-max: 1200px;
  --container-padding: 24px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

body::before {
  content: '';
  display: block;
  height: 8px;
  background-image: url('assets/stripe-horizontal.jpg');
  background-size: auto 100%;
  background-position: center top;
  background-repeat: repeat-x;
}

body::after {
  content: '';
  display: block;
  height: 12px;
  background-image: url('assets/stripe-horizontal.jpg');
  background-size: auto 100%;
  background-position: center bottom;
  background-repeat: repeat-x;
}

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

ul {
  list-style: none;
}

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

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding) 0;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 12vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.scramble-word {
  cursor: pointer;
  transition: color 0.2s ease;
  display: inline-block;
}

.scramble-word:hover {
  color: var(--color-blue);
}

.closing-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 12vw, 9rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 40px;
  cursor: pointer;
}

.ellipsis {
  display: inline;
  transition: color 0.2s ease;
}

.closing-headline:hover .ellipsis {
  color: var(--color-red);
}

.accent {
  color: var(--color-blue);
}

.accent--green {
  color: var(--color-green);
}

.accent--red {
  color: var(--color-red);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  padding: 40px 0 24px;
}

.header-logo {
  max-width: 400px;
  mix-blend-mode: multiply;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.section--hero {
  padding-top: 24px;
  padding-bottom: 40px;
}

.hero-content {
  max-width: 800px;
}

.headline--interactive {
  transition: transform 0.15s ease-out;
}

.word {
  display: inline-block;
  transition: all 0.2s ease;
  cursor: default;
}

.word:hover {
  transform: translateY(-4px) rotate(-1deg);
}

.word[data-color="blue"]:hover {
  color: var(--color-blue);
}

.word[data-color="green"]:hover {
  color: var(--color-green);
}

.word[data-color="red"]:hover {
  color: var(--color-red);
}

.word--cycle {
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.word--cycle::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  left: 0;
  right: 0;
  height: 0.08em;
  background: var(--color-blue);
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.word--cycle:hover::after {
  opacity: 0.8;
}

.word--cycle:hover {
  color: var(--color-blue);
  transform: translateY(-4px) scale(1.02);
}

.word--flip {
  transform: scaleY(0) translateY(-20px);
  opacity: 0;
}

.intro {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  max-width: 550px;
  line-height: 1.5;
  color: rgba(26, 26, 26, 0.75);
}

/* --------------------------------------------------------------------------
   Clients Scroll Section
   -------------------------------------------------------------------------- */
.section--clients {
  background-image: url('assets/stripe-horizontal.jpg');
  background-size: auto 100%;
  background-position: center;
  background-repeat: repeat-x;
  padding: 24px 0;
  overflow: hidden;
}

.client--label {
  color: var(--color-text) !important;
  -webkit-text-stroke: 0 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.client--label::after {
  content: '→';
  padding: 0 20px;
  font-size: 0.8em;
  opacity: 0.8;
}

.clients-scroll {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-track {
  display: flex;
  gap: 0;
  animation: scroll 30s linear infinite;
  width: max-content;
}

.client {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  white-space: nowrap;
  color: var(--color-text);
  display: flex;
  align-items: center;
  transition: transform 0.2s ease, color 0.2s ease;
  cursor: default;
}

.client:hover {
  transform: scale(1.1);
  color: var(--color-blue);
}

.client::after {
  content: '✦';
  padding: 0 20px;
  font-size: 0.75em;
  color: var(--color-green);
}

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

/* --------------------------------------------------------------------------
   People Section
   -------------------------------------------------------------------------- */
.section--people {
  background: linear-gradient(180deg, var(--color-bg) 0%, rgba(139, 184, 145, 0.06) 100%);
  padding-top: 50px;
  padding-bottom: 50px;
}

.section-intro {
  font-size: 1.125rem;
  color: rgba(26, 26, 26, 0.7);
  margin-bottom: 24px;
  line-height: 1.5;
}

.people-list {
  margin-bottom: 0;
}

.person {
  padding: 20px 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
  transition: all 0.25s ease;
  cursor: default;
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 4px;
}

.person:first-child {
  border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.person:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: translateX(8px);
  border-color: transparent;
}

.person-header {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.person-name {
  min-width: 160px;
  transition: color 0.2s ease;
}

.person-name-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.person-name-link:hover {
  color: var(--color-blue);
}

.person:hover .person-name {
  color: var(--color-blue);
}

.person-arrow {
  color: var(--color-green);
  font-size: 0.85em;
  transition: transform 0.2s ease;
  display: inline-block;
}

.person:hover .person-arrow {
  transform: translateX(4px);
  color: var(--color-blue);
}

.person-place {
  color: rgba(26, 26, 26, 0.55);
  font-weight: 700;
  transition: color 0.2s ease;
}

.person:hover .person-place {
  color: var(--color-text);
}

.person-bio {
  font-size: 0.9375rem;
  color: rgba(26, 26, 26, 0.6);
  max-width: 500px;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.person:hover .person-bio {
  color: rgba(26, 26, 26, 0.8);
}

.person-link {
  color: var(--color-blue);
  position: relative;
  transition: color 0.2s ease;
}

.person-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-blue);
  transition: width 0.3s ease;
}

.person-link:hover {
  color: var(--color-text);
}

.person-link:hover::after {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Breakout Section (Stripe Background with Cards)
   -------------------------------------------------------------------------- */
.section--breakout {
  background-image: url('assets/stripe-bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 80px 0;
}

.breakout-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1000px;
}

.card-wrapper {
  display: flex;
}

.card-wrapper .card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card {
  background: var(--color-bg);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-green));
}

.card:hover {
  transform: translateY(-8px) rotate(-0.5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.card--cta:hover {
  transform: translateY(-8px) rotate(0.5deg);
}

.card--quote {
  text-align: center;
}

.card--quote::before {
  background: linear-gradient(90deg, var(--color-green), var(--color-blue));
}

.card--cta::before {
  background: linear-gradient(90deg, var(--color-blue), var(--color-red));
}

.quote {
  margin: 0;
}

.quote-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 20px;
  position: relative;
}


.quote-cite {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: rgba(26, 26, 26, 0.7);
  display: block;
}

.quote-footnote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-green);
  margin-top: 24px;
}

.card--cta {
  justify-content: center;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 4px;
}

.cta-subtitle {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: rgba(26, 26, 26, 0.6);
  margin-bottom: 20px;
}

.cta-text {
  color: rgba(26, 26, 26, 0.6);
  margin-bottom: 24px;
  font-size: 0.9375rem;
}

.cta-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-blue);
  padding: 12px 24px;
  border: 2px solid var(--color-blue);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.cta-link:hover {
  background-color: var(--color-blue);
  color: var(--color-bg);
}

/* --------------------------------------------------------------------------
   Closing Section
   -------------------------------------------------------------------------- */
.section--closing {
  text-align: center;
  padding-top: 50px;
  padding-bottom: 8px;
}

.section--closing .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closing-logo {
  max-width: 100px;
  opacity: 0.6;
  mix-blend-mode: multiply;
  transition: opacity 0.3s ease;
}

.closing-logo:hover {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  padding: 8px 0 32px;
  font-size: 0.8125rem;
  color: rgba(26, 26, 26, 0.45);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.footer-badge {
  max-width: 150px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .breakout-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 50px;
  }

  .header-logo {
    max-width: 280px;
  }

  .headline,
  .closing-headline {
    font-size: clamp(2.5rem, 14vw, 5rem);
  }

  .section-title {
    font-size: clamp(2rem, 10vw, 4rem);
  }

  .person-header {
    flex-direction: column;
    gap: 2px;
  }

  .person-name {
    min-width: auto;
  }

  .person-arrow {
    display: none;
  }

  .person-place {
    font-size: 0.85em;
  }

  .card {
    padding: 32px 24px;
  }

  .cta-links {
    flex-direction: column;
  }

  .cta-link {
    text-align: center;
  }

  .footer-row {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 40px;
    --container-padding: 20px;
  }

  .logo {
    max-width: 120px;
  }

  .client-divider {
    padding: 0 12px;
  }

  .section--breakout {
    padding: 50px 0;
  }

  .card {
    padding: 28px 20px;
  }
}

/* --------------------------------------------------------------------------
   Subtle Animations
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .section:not(.section--clients):not(.section--breakout) {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeInUp 0.6s ease forwards;
  }

  .section--hero {
    animation-delay: 0.1s;
  }

  .section--clients {
    opacity: 1;
  }

  .section--breakout {
    opacity: 1;
  }

  .section--people {
    animation-delay: 0.15s;
  }

  .person {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.4s ease forwards;
  }

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

  .section--closing {
    animation-delay: 0.2s;
  }

  .card-wrapper {
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }

  .card-wrapper--quote {
    animation-delay: 0.3s;
  }

  .card-wrapper--cta {
    animation-delay: 0.5s;
  }
}

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

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  60% {
    opacity: 1;
    transform: translateY(-8px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.5deg);
  }
}

/* Pause scroll on hover */
.clients-scroll:hover .clients-track {
  animation-play-state: paused;
}
