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

:root {
  --red:        #B22234;
  --blue:       #3C3B6E;
  --brown:      #644117;
  --brown-light: #9a6b42;
  --tan:        #e6e6e5;
  --white:      #ffffff;
  --text-dark:  #1a1a1a;
  --h-pad: 5rem;
  --section-v-pad: 5rem;
  --max-width: 1200px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
}

/* ===== NAV ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--h-pad);
  border-bottom: 3px solid var(--brown);
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo {
  height: 48px;
  width: auto;
  display: block;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--brown);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

.nav-cta {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  background: var(--red);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--brown); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--brown);
  font-size: 1.5rem;
  line-height: 1;
}

/* ===== SHARED SECTION UTILS ===== */
.section { padding: var(--section-v-pad) var(--h-pad); }
.container { max-width: var(--max-width); margin: 0 auto; }

.section-tan        { background: var(--white); }
.section-brown      { background: var(--brown); }
.section-red        { background: var(--tan); }
.section-blue       { background: var(--tan); }

h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 2rem;
  line-height: 1.2;
}

.section-tan   h2 { color: var(--brown); }
.section-brown h2 { color: var(--tan); }
.section-red   h2 { color: var(--brown); }
.section-blue  h2 { color: var(--brown); }

/* ===== HERO ===== */
.hero {
  background: var(--brown);
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: var(--section-v-pad) var(--h-pad);
}

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

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 1.75rem;
  opacity: 0.65;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--tan);
  margin-top: 1.5rem;
  max-width: 680px;
}

.hero-actions { margin-top: 2.25rem; }

.hero .btn-outline { color: var(--white); }
.hero .btn-outline:hover { background: var(--white); color: var(--brown); }

/* ===== MISSION SECTION ===== */
.mission-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 5rem;
  align-items: center;
}

.mission-statement {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.6;
  color: var(--brown);
}

.mission-cta-label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

/* ===== WHY RWB SECTION ===== */
.why-intro {
  color: var(--brown);
  opacity: 0.8;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  font-style: italic;
}

.why-list {
  list-style: none;
  counter-reset: why-counter;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.why-list li {
  counter-increment: why-counter;
  padding-top: 1.25rem;
  border-top: 2px solid rgba(100,65,23,0.2);
}

.why-list li::before {
  content: counter(why-counter);
  display: block;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.why-list li p {
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.7;
}

/* ===== WHAT MAKES US DIFFERENT ===== */
.different-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
}

.different-col p {
  color: var(--tan);
  line-height: 1.75;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.different-col p:last-child { margin-bottom: 0; }

/* ===== BUTTONS ===== */
.btn-outline {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border: 2px solid currentColor;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.section-tan .btn-outline,
.section-red .btn-outline,
.section-blue .btn-outline          { color: var(--brown); }
.section-tan .btn-outline:hover,
.section-red .btn-outline:hover,
.section-blue .btn-outline:hover    { background: var(--brown); color: var(--white); }

/* ===== PAGE HERO (shorter than homepage hero) ===== */
.page-hero { min-height: 36vh; }

/* ===== WORK SECTIONS ===== */
.work-intro {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.65;
  color: var(--brown);
  max-width: 780px;
}

.work-description {
  max-width: 720px;
  margin-bottom: 3rem;
}

.work-description p {
  font-size: 1rem;
  line-height: 1.75;
}

.section-blue .work-description p { color: var(--text-dark); }
.section-red  .work-description p { color: var(--text-dark); }

/* ===== WORK IMAGE GRID ===== */
.work-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.work-image-grid--below { margin-bottom: 3rem; }

.work-image {
  width: 100%;
  display: block;
  object-fit: cover;
}

.work-image--placeholder {
  min-height: 260px;
  background: rgba(100,65,23,0.06);
  border: 2px dashed rgba(100,65,23,0.25);
}

/* ===== PROJECT GRID (What We Do) ===== */
.projects-wrap { background: var(--tan); }

.projects-group + .projects-group { margin-top: 4.5rem; }

.group-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  padding-bottom: 1rem;
  margin-bottom: 2.25rem;
  border-bottom: 2px solid rgba(100,65,23,0.18);
}

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

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(100,65,23,0.14);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.project-card { text-decoration: none; color: inherit; }

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(100,65,23,0.16);
}

.project-card-media {
  aspect-ratio: 3 / 2;
  width: 100%;
  object-fit: cover;
  display: block;
  background: rgba(100,65,23,0.06);
}

.project-card-media--placeholder {
  border-bottom: 2px dashed rgba(100,65,23,0.22);
}

.project-card-media--brand {
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-brandmark {
  width: 50%;
  max-width: 180px;
  opacity: 0.21;
  /* the mark ships in brand brown — render it white on the gradient */
  filter: brightness(0) invert(1);
}

.project-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.6rem 1.6rem 1.8rem;
}

.project-card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  line-height: 1.25;
  color: var(--brown);
  margin-bottom: 0.75rem;
}

.project-card-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-dark);
  flex: 1;
}

.project-card-desc a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 0.2s;
}

.project-card-desc a:hover { color: var(--brown); }

.project-card-cta {
  margin-top: 1.4rem;
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--red);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 0.15rem;
  transition: color 0.2s, border-color 0.2s;
}

.project-card:hover .project-card-cta { color: var(--brown); }

.project-card-soon {
  margin-top: 1.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(100,65,23,0.5);
}

/* trigger button styled as a link, no default button chrome */
button.project-card-cta {
  background: none;
  border: none;
  border-bottom: 2px solid currentColor;
  cursor: pointer;
  font-family: inherit;
}

/* ===== INTERVIEW MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 200;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  width: 100%;
  max-width: 860px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2.25rem 1.5rem;
  border-bottom: 3px solid var(--brown);
}

.modal-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--brown);
  line-height: 1.2;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--brown);
  flex-shrink: 0;
  padding: 0.25rem;
}

.modal-close:hover { color: var(--red); }

.modal-body {
  overflow-y: auto;
  padding: 1rem 2.25rem 2.25rem;
}

.interview-grid {
  list-style: none;
  columns: 2;
  column-gap: 2.5rem;
}

.interview-grid li {
  break-inside: avoid;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(100,65,23,0.16);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-dark);
}

/* ===== EVENTS LIST ===== */
.events-list {
  list-style: none;
  border-top: 1px solid rgba(100,65,23,0.2);
}

.event-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(100,65,23,0.2);
}

.event-title {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dark);
}

/* ===== CONTACT PAGE ===== */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 600px;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.contact-link {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.12vw, 1.75rem);
  color: var(--brown);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.contact-link:hover {
  color: var(--red);
  border-color: var(--red);
}

/* ===== SUBSCRIBE / NEWSLETTER PAGE ===== */
.subscribe-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.subscribe-description {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.65;
  color: var(--brown);
  margin-bottom: 2rem;
}

.archive-link {
  display: inline-block;
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--red);
  padding-bottom: 0.1rem;
  transition: color 0.2s, border-color 0.2s;
}

.archive-link:hover {
  color: var(--brown);
  border-color: var(--brown);
}

.subscribe-form iframe {
  display: block;
  width: 100%;
  border: 2px solid rgba(100,65,23,0.2);
}

/* ===== PEOPLE ===== */
.people-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.person-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  flex-shrink: 0;
  /* warm brown/sepia tint */
  filter: sepia(0.6) saturate(1.3) hue-rotate(-8deg) brightness(0.92);
}

.person-card--with-photo {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.person-card-text { flex: 1; }

/* "You" avatar: brand-brown circle with faint flag (matches about tiles) */
.person-photo--brand {
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: none;
}

.person-flag {
  width: 46%;
  opacity: 0.21;
  filter: brightness(0) invert(1);
}

.person-role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}

.person-name {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--brown);
  margin-bottom: 1.25rem;
}

.person-bio a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 0.2s;
}

.person-bio a:hover { color: var(--brown); }

.person-bio {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-dark);
}

.person-card--you {
  border-left: 3px solid var(--red);
  padding-left: 2rem;
}

/* ===== PUBLICATION BADGES ===== */
.pub-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.pub-badge {
  padding: 0.4rem 1rem;
  border: 1px solid rgba(230,230,229,0.3);
  color: var(--tan);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--white);
  padding: 3.5rem var(--h-pad);
  text-align: center;
}

.footer-logo {
  height: 52px;
  width: auto;
  display: block;
  margin: 0 auto 1.75rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--brown);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--red); }

.footer-copy {
  color: rgba(100,65,23,0.45);
  font-size: 0.78rem;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  :root {
    --h-pad: 1.5rem;
    --section-v-pad: 3.5rem;
  }

  .nav-toggle { display: block; }

  /* On mobile the header is just logo + hamburger; hide the top-bar CTA
     (Subscribe stays reachable via the "Newsletter" item in the menu) */
  .nav-cta { display: none; }
  .nav-logo { height: 40px; }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1.25rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem var(--h-pad) 2rem;
    border-bottom: 2px solid var(--tan);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  }

  .nav-links.open { display: flex; }

  .site-nav { position: relative; }

  .mission-grid      { grid-template-columns: 1fr; gap: 2.5rem; }
  .why-list          { grid-template-columns: 1fr; gap: 2rem; }
  .different-grid    { grid-template-columns: 1fr; gap: 2.5rem; }

  .footer-nav { gap: 1.25rem; }

  .event-item { padding: 0.85rem 0; }
  .work-image-grid { grid-template-columns: 1fr; gap: 2rem; }
  .work-image-grid--below { margin-bottom: 2rem; }
  .subscribe-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .people-grid { grid-template-columns: 1fr; gap: 3rem; }
  .person-card--you { border-left: none; border-top: 3px solid var(--red); padding-left: 0; padding-top: 1.5rem; }

  .project-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .projects-group + .projects-group { margin-top: 3rem; }
  .modal-header { padding: 1.5rem 1.25rem 1.25rem; }
  .modal-body { padding: 1rem 1.25rem 1.75rem; }
  .interview-grid { columns: 1; }
}

@media (max-width: 560px) {
  .project-grid { grid-template-columns: 1fr; }
}

/* ===== REDUCED MOTION ===== */
/* Respect the OS "reduce motion" setting: kill animations/transitions
   and the card hover-lift for users who ask for less movement. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .project-card:hover { transform: none; }
}
