:root {
  --accent: #8b1a1a;
  --accent-hover: #a32020;
  --text: #e8ddd8;
  --text-muted: #b0a09b;
  --section-bg: rgba(0, 0, 0, 0.28);
  --card-placeholder: #c4bab6;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(145deg, #4a3232 0%, #1a1010 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  padding: 1.1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 16, 16, 0.3);
  backdrop-filter: blur(6px);
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 0.3rem 1.1rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav-link.active {
  background: var(--accent);
  color: #fff;
}

.nav-link:hover:not(.active) {
  background: rgba(255, 255, 255, 0.09);
}

/* ── Home page container ── */
.home-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* ── Home: Hero ── */
.hero {
  padding: 3.5rem 0 0.5rem;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.03em;
  color: var(--text);
}

.hero-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 540px;
  margin-top: 0.9rem;
}

.btn-resume {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.55rem 1.6rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}

.btn-resume:hover {
  background: var(--accent-hover);
}

/* ── Home: Carousel ── */
.carousel-section {
  display: flex;
  align-items: center;
  padding: 5rem 0 3rem;
  gap: 1rem;
}

.carousel-wrapper {
  flex: 1;
  overflow: hidden;
}

.carousel-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.carousel-track {
  display: flex;
  gap: 1.2rem;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-card {
  flex: 0 0 calc(33.333% - 0.8rem);
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.card-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.card-image {
  width: 100%;
  height: 100%;
  background: #f5f1ef;
  border-radius: 10px;
  overflow: hidden;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.card-image:hover {
  opacity: 0.88;
}

.card-image--wip {
  background: #0d0d0d;
  flex-direction: column;
  gap: 0;
}

.card-wip-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.carousel-btn {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
  user-select: none;
}

.carousel-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.06);
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

/* ── Case Study: Header ── */
.case-study {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.cs-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 2rem 0 2.5rem;
}

.cs-thumbnail {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: #f5f1ef;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.cs-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cs-header-text {
  padding-top: 0.25rem;
}

.cs-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}

.cs-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 420px;
}

/* ── Case Study: Sections ── */
.cs-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cs-section {
  border-radius: 10px;
  background: var(--section-bg);
  padding: 1.75rem 2rem;
}

.cs-section--highlight {
  background: rgba(139, 26, 26, 0.28);
  border: 1px solid rgba(139, 26, 26, 0.45);
}

.cs-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  color: var(--text);
}

.cs-section-body {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.cs-section-body p + p {
  margin-top: 0.85rem;
}

.cs-section-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.25rem 0 0.4rem;
}

.cs-section-body strong {
  color: var(--text);
  font-weight: 500;
}

/* ── Case Study: Full-width image block ── */
.cs-full-image {
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.cs-full-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Case Study: Section + image side by side ── */
.cs-section-image-row {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
}

.cs-section-image-row--reverse {
  flex-direction: row-reverse;
}

.cs-section-image-row .cs-section {
  flex: 1 1 0;
  min-width: 0;
}

.cs-side-image {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.cs-side-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ── Case Study: Challenge grid ── */
.cs-challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.cs-challenge-card {
  background: rgba(0, 0, 0, 0.22);
  border-radius: 8px;
  padding: 1.2rem 1.1rem;
}

.cs-challenge-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.cs-challenge-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Case Study: Numbered list ── */
.cs-numbered-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.cs-numbered-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.cs-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
  width: 1.25rem;
  padding-top: 0.05rem;
}

/* ── Case Study: Initiatives ── */
.cs-initiatives {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cs-initiative {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.cs-initiative-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
  padding-top: 0.1rem;
  min-width: 2rem;
}

.cs-initiative h3 {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.cs-initiative p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Case Study: Persona list ── */
.cs-persona-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cs-persona-list li {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}

.cs-persona-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── Case Study: Outcome stat ── */
.cs-outcome-stat {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

/* ── About: Contact list ── */
.cs-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.cs-contact-item {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

.cs-contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 5.5rem;
}

.cs-contact-item span:last-child {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
}

.cs-contact-item a {
  font-size: 0.92rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.cs-contact-item a:hover {
  color: var(--accent-hover);
}

/* ── Work page ── */
.work-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.work-page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 2.5rem;
}

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

.work-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s;
  cursor: pointer;
}

.work-item:hover .work-item-image {
  opacity: 0.88;
}

.work-item-image {
  aspect-ratio: 4 / 3;
  background: #f5f1ef;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 10px;
  overflow: hidden;
  transition: opacity 0.2s;
}

.work-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.work-item-image--wip {
  background: #0d0d0d;
  flex-direction: column;
}

.work-item-image--wip span {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.work-item-info {
  padding: 1rem 0.25rem 0;
}

.work-item-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.work-item-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .home-main {
    padding: 0 1.25rem;
  }

  .hero {
    padding: 2.5rem 0 0.5rem;
  }

  .carousel-section {
    padding: 2rem 0 2.5rem;
    gap: 0.6rem;
  }

  .carousel-card {
    flex: 0 0 calc(80% - 0.6rem);
  }

  .case-study {
    padding: 0 1.25rem 3rem;
  }

  .cs-header {
    flex-direction: column;
    align-items: flex-start;
  }

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