@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --slate: #3B4A5A;
  --sienna: #C4724A;
  --plum: #4A2040;
  --warm-white: #FAF8F5;
  --sand: #EDE6DC;
  --mid-gray: #8A8A8A;
  --light-rule: #E8E4DF;
  --body-muted: #718090;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ───────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--warm-white);
  border-bottom: 1px solid var(--light-rule);
}

.nav__inner {
  padding: 0 72px;
  height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--slate);
  text-decoration: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 44px;
  list-style: none;
}

.nav__links a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
  text-decoration: none;
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--slate);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--slate);
  transition: all 0.3s;
}

/* ─── HERO ──────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1fr 400px;
  min-height: calc(100vh - 77px);
  overflow: hidden;
}

.hero--no-photo {
  grid-template-columns: 1fr;
}

.hero-text {
  padding: 100px 72px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sienna);
  font-weight: 500;
  margin-bottom: 24px;
}

.hero__headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 80px;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--slate);
  margin-bottom: 36px;
}

.hero__headline em {
  font-style: italic;
  color: var(--sienna);
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: inline-block;
}

.hero__rotate--out {
  opacity: 0;
  transform: translateY(8px);
}

.hero__sub {
  font-size: 17px;
  line-height: 1.75;
  color: var(--body-muted);
  max-width: 460px;
  margin-bottom: 48px;
  font-weight: 300;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1.5px solid var(--sienna);
  padding-bottom: 4px;
  font-weight: 500;
  width: fit-content;
}

.hero-photo {
  position: relative;
  background: #D4CAB8;
  overflow: hidden;
}

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

.hero-photo-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #C8BEB0 0%, #A09080 50%, #806050 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── ABOUT ─────────────────────────────────────────── */

.about {
  padding: 100px 72px;
  border-top: 1px solid var(--light-rule);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  align-items: start;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid-gray);
  padding-top: 10px;
}

.about-intro {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 300;
  line-height: 1.25;
  color: var(--slate);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.about-intro em {
  font-style: italic;
  color: var(--sienna);
}

.about__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--slate);
  margin-bottom: 24px;
}

.about-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--body-muted);
  font-weight: 300;
  max-width: 640px;
}

.about-body p {
  margin-bottom: 1.25rem;
}

.about-body p:last-child {
  margin-bottom: 0;
}

/* ─── WORK ──────────────────────────────────────────── */

.work {
  padding: 0 72px 100px;
}

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--light-rule);
  padding-top: 48px;
  margin-bottom: 40px;
}

.work-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

.view-all {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sienna);
  text-decoration: none;
  font-weight: 500;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.project-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 56px rgba(0,0,0,0.09);
}

.project-card.wide {
  grid-column: 1 / -1;
  flex-direction: row;
  min-height: 300px;
}

.card-img-wrap {
  overflow: hidden;
  flex-shrink: 0;
}

.project-card.wide .card-img-wrap {
  width: 48%;
  aspect-ratio: 4 / 3;
}

.project-card:not(.wide) .card-img-wrap {
  width: 100%;
  height: 200px;
}

.card-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: top center;
  background-color: #D4CAB8;
  transition: transform 0.5s ease;
}

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

.project-content {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.project-card.wide .project-content {
  padding: 44px 48px;
  justify-content: center;
  gap: 0;
}

.proj-category {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 12px;
  display: block;
}

.proj-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--slate);
  line-height: 1.2;
  margin-bottom: 12px;
}

.project-card.wide .proj-title {
  font-size: 30px;
  margin-bottom: 16px;
}

.proj-result {
  font-size: 13px;
  color: var(--mid-gray);
  font-weight: 300;
  line-height: 1.65;
  max-width: 340px;
}

.proj-arrow {
  font-size: 11px;
  color: var(--sienna);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 22px;
  display: inline-block;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s, transform 0.25s;
}

.project-card:hover .proj-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ─── PRESS TICKER ──────────────────────────────────── */

.press {
  background: var(--slate);
  overflow: hidden;
}

.ticker-label {
  padding: 48px 72px 28px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.ticker-wrap {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.ticker-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--slate), transparent);
}

.ticker-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--slate), transparent);
}

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

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  padding: 0 3rem;
  white-space: nowrap;
}

.ticker-pub {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-right: 0.75rem;
}

.ticker-logo {
  display: block;
  height: 22px;
  width: auto;
  max-width: 130px;
  min-width: 40px;
  object-fit: contain;
  opacity: 0.75;
  filter: brightness(0) invert(1);
}

.ticker-sep {
  color: rgba(255,255,255,0.2);
  font-size: 1rem;
  margin: 0 1rem;
}

/* ─── EXPERTISE ─────────────────────────────────────── */

.expertise {
  background: var(--sand);
  padding: 56px 72px 80px;
}

.expertise-header {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 28px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.expertise-card {
  background: var(--warm-white);
  border-radius: 10px;
  padding: 32px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.expertise-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
}

.expertise-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 400;
  color: var(--slate);
  line-height: 1.2;
}

.expertise-title::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sienna);
  margin-top: 10px;
  margin-bottom: 14px;
  opacity: 0.7;
}

.expertise-body {
  font-size: 13px;
  color: #7A8A96;
  font-weight: 300;
  line-height: 1.75;
}

/* ─── CONTACT ───────────────────────────────────────── */

.contact {
  background: var(--plum);
  padding: 88px 72px;
}

.contact-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 58px;
  font-weight: 300;
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.contact-headline em {
  font-style: italic;
  opacity: 0.6;
}

.contact-body {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  max-width: 340px;
  font-weight: 300;
  margin-bottom: 40px;
}

.contact-btn {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.25);
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 34px;
  font-weight: 400;
  transition: background 0.2s;
}

.contact-btn:hover {
  background: rgba(255,255,255,0.1);
}

/* ─── FOOTER ────────────────────────────────────────── */

.footer {
  background: #2A1025;
  padding: 20px 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__name,
.footer__copy {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.06em;
}

/* ─── CASE STUDIES PAGE HEADER ──────────────────────── */

.page-header {
  padding: 80px 72px 64px;
  border-bottom: 1px solid var(--light-rule);
}

.page-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sienna);
  font-weight: 500;
  margin-bottom: 20px;
}

.page-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 80px;
  font-weight: 300;
  line-height: 1.02;
  color: var(--slate);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.page-headline em {
  font-style: italic;
  color: var(--sienna);
}

.page-sub {
  font-size: 16px;
  line-height: 1.8;
  color: var(--body-muted);
  font-weight: 300;
  max-width: 560px;
  margin-top: 24px;
}

.filter-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid-gray);
  border: 1px solid var(--light-rule);
  padding: 6px 14px;
  border-radius: 100px;
  cursor: pointer;
  background: transparent;
  transition: all 0.2s;
}

.chip:hover,
.chip.active {
  background: var(--slate);
  color: #fff;
  border-color: var(--slate);
}

/* ─── CASE STUDY ITEMS ──────────────────────────────── */

.cs-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0 40px;
  padding: 64px 72px;
  border-bottom: 1px solid var(--light-rule);
}

.cs-item:nth-child(odd) {
  background: var(--warm-white);
}

.cs-item:nth-child(even) {
  background: var(--sand);
}

.cs-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  color: var(--light-rule);
  letter-spacing: 0.1em;
  padding-top: 4px;
  font-weight: 600;
}

.cs-item:nth-child(even) .cs-num {
  color: #D8CEC2;
}

.cs-top {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  align-items: start;
  margin-bottom: 20px;
}

.cs-client {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sienna);
  display: block;
  margin-bottom: 10px;
}

.cs-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--slate);
  margin-bottom: 8px;
}

.cs-kicker {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-style: italic;
  color: var(--mid-gray);
  line-height: 1.4;
}

.skill-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.skill-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sienna);
  border: 1px solid rgba(196,114,74,0.25);
  padding: 4px 10px;
  border-radius: 100px;
}

.cs-thumb {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  flex-shrink: 0;
}

.cs-thumb-inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: top center;
  transition: transform 0.5s ease;
}

.cs-thumb:hover .cs-thumb-inner {
  transform: scale(1.04);
}

.cs-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--light-rule);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--mid-gray);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cs-item:nth-child(even) .cs-thumb-placeholder {
  background: #DDD5C8;
}

/* ─── ACCORDION ─────────────────────────────────────── */

.cs-accordion {
  border-top: 1px solid var(--light-rule);
  margin-top: 4px;
}

.cs-item:nth-child(even) .cs-accordion {
  border-top-color: #D8CEC2;
}

.cs-item:nth-child(even) hr.acc-rule {
  border-top-color: #D8CEC2;
}

details summary {
  list-style: none;
  cursor: pointer;
}

details summary::-webkit-details-marker {
  display: none;
}

.acc-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  user-select: none;
}

.acc-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
}

.acc-icon {
  font-size: 18px;
  color: var(--mid-gray);
  font-weight: 300;
  line-height: 1;
  transition: transform 0.2s;
  flex-shrink: 0;
}

details[open] .acc-icon {
  transform: rotate(45deg);
}

.acc-body {
  font-size: 14px;
  line-height: 1.85;
  color: var(--body-muted);
  font-weight: 300;
  padding-bottom: 20px;
  max-width: 680px;
}

.acc-body p {
  margin-bottom: 1rem;
}

.acc-body p:last-child {
  margin-bottom: 0;
}

hr.acc-rule {
  border: none;
  border-top: 1px solid var(--light-rule);
}

.unlocked-box {
  border-left: 3px solid var(--sienna);
  padding: 18px 24px;
  margin-bottom: 20px;
  background: rgba(196,114,74,0.05);
  border-radius: 0 6px 6px 0;
}

.cs-item:nth-child(even) .unlocked-box {
  background: rgba(196,114,74,0.08);
}

.unlocked-body {
  font-size: 14px;
  line-height: 1.85;
  color: var(--slate);
  font-weight: 400;
  max-width: 680px;
}

.unlocked-body p {
  margin-bottom: 1rem;
}

.unlocked-body p:last-child {
  margin-bottom: 0;
}

/* ─── PLACEMENTS SECTION ────────────────────────────── */

.placements-section {
  background: var(--slate);
  padding: 72px 72px 80px;
}

.placements-header {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 40px;
  display: block;
}

.placements-grid {
  display: flex;
  flex-direction: column;
  max-width: 680px;
}

.placement-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
  transition: opacity 0.15s;
}

.placement-item:hover {
  opacity: 0.75;
}

.placement-item.hidden {
  display: none;
}

.placement-pub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 140px;
  letter-spacing: 0.02em;
}

.placement-title {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  font-weight: 300;
  line-height: 1.4;
  flex: 1;
}

.placement-arrow {
  margin-left: auto;
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  flex-shrink: 0;
  transition: color 0.15s;
}

.placement-item:hover .placement-arrow {
  color: var(--sienna);
}

.placements-footer {
  margin-top: 32px;
}

.view-more-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 14px 28px;
  cursor: pointer;
  transition: all 0.2s;
}

.view-more-btn:hover {
  border-color: rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.8);
}

/* ─── CS MARKDOWN ───────────────────────────────────── */

.cs-markdown strong { font-weight: 500; }
.cs-markdown em { font-style: italic; }
.cs-markdown u { text-decoration: underline; }
.cs-markdown a {
  color: var(--sienna);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}
.cs-markdown a:hover { opacity: 0.7; }

/* ─── MOBILE ─────────────────────────────────────────── */

@media (max-width: 900px) {
  .nav__inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 77px;
    left: 0;
    right: 0;
    background: var(--warm-white);
    border-bottom: 1px solid var(--light-rule);
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.5rem 1.5rem;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-rule);
  }

  .nav__links li:last-child {
    border-bottom: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    height: 300px;
  }

  .hero-text {
    padding: 3rem 1.5rem;
  }

  .hero__headline {
    font-size: 52px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.5rem;
  }

  .work {
    padding: 0 1.5rem 3rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card.wide {
    flex-direction: column;
    min-height: auto;
  }

  .project-card.wide .card-img-wrap {
    width: 100%;
    height: 200px;
  }

  .expertise {
    padding: 3rem 1.5rem;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .contact {
    padding: 3rem 1.5rem;
  }

  .footer {
    padding: 20px 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .page-header {
    padding: 3rem 1.5rem;
  }

  .page-headline {
    font-size: 52px;
  }

  .cs-item {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
  }

  .cs-num {
    display: none;
  }

  .cs-top {
    grid-template-columns: 1fr;
  }

  .placements-section {
    padding: 3rem 1.5rem;
  }

  .ticker-label {
    padding: 2rem 1.5rem 1rem;
  }
}
