@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;1,9..144,300;1,9..144,400&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

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

:root {
  --bg: #F5F4F1;
  --ink: #1C1B19;
  --ink-muted: #6B6860;
  --border: #E0DED8;
  --gray-box: #D8D5CE;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radius: 6px;
  --nav-h: 64px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  width: 100%;
}

/* ── Nav ── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.nav-links a {
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

/* ── Page wrapper ── */

.page {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Hero ── */

.hero {
  padding: 96px 0 72px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.hero-heading {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 680px;
  margin-bottom: 28px;
}

.hero-heading em {
  font-style: italic;
  font-weight: 300;
}

.hero-sub {
  font-size: 1rem;
  color: var(--ink-muted);
  max-width: 480px;
  line-height: 1.7;
}

/* ── Section heading ── */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
}

.section-head .section-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.section-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.section-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ── Work grid ── */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-bottom: 80px;
}

.work-card {
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.work-card:hover {
  transform: translateY(-2px);
}

.work-card:hover .card-cover {
  opacity: 0.85;
}

.card-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--gray-box);
  transition: opacity 0.2s;
  overflow: hidden;
  position: relative;
}

.card-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(28,27,25,0.35);
}

.card-meta {
  padding: 16px 0 0;
}

.card-type {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.card-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.card-summary {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--ink-muted);
}

/* ── Snacks page ── */

.snacks-header {
  padding: 80px 0 48px;
}

.snacks-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.snacks-sub {
  font-size: 0.95rem;
  color: var(--ink-muted);
  max-width: 440px;
  line-height: 1.7;
}

.snacks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 80px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.snack-card {
  display: block;
}

.snack-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--gray-box);
  overflow: hidden;
  position: relative;
  transition: opacity 0.2s;
}

.snack-card:hover .snack-cover {
  opacity: 0.8;
}

.snack-meta {
  padding: 12px 0 0;
}

.snack-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.snack-desc {
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.snack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

/* ── About page ── */

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 80px 0;
}

.about-photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background: var(--gray-box);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(28,27,25,0.35);
}

.about-content {
  padding-top: 8px;
}

.about-heading {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.about-heading em {
  font-style: italic;
}

.about-body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-muted);
}

.about-body p + p {
  margin-top: 16px;
}

.about-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.about-section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-list li {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 99px;
}

.contact-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-links a {
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  display: inline-block;
  padding-bottom: 1px;
  transition: border-color 0.15s;
}

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

/* ── Footer ── */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ── Loading skeleton ── */

.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--gray-box) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Case Study ── */

.cs-hero {
  padding: 72px 0 56px;
}

.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 40px;
  transition: color 0.15s;
}

.cs-back:hover { color: var(--ink); }

.cs-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.cs-hero-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cs-hero-title em { font-style: italic; }

.cs-hero-sub {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.cs-meta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.cs-meta-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.cs-meta-value {
  font-size: 0.88rem;
  line-height: 1.6;
}

.cs-cover {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-box);
  margin-bottom: 0;
}

.cs-cover img { width: 100%; display: block; }

/* Sections */

.cs-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.cs-section:last-of-type { border-bottom: none; }

.cs-section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.cs-h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.cs-h2 em { font-style: italic; }

.cs-h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  margin-top: 40px;
}

.cs-h3:first-child { margin-top: 0; }

.cs-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink-muted);
  max-width: 680px;
}

.cs-body + .cs-body { margin-top: 16px; }

/* Images */

.cs-img {
  width: 100%;
  border-radius: var(--radius);
  margin: 40px 0;
  overflow: hidden;
  background: var(--gray-box);
}

.cs-img img { width: 100%; display: block; }

.cs-img-caption {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 10px;
  font-style: italic;
}

.cs-img-grid {
  display: grid;
  gap: 16px;
  margin: 40px 0;
}

.cs-img-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.cs-img-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cs-img-grid .cs-img { margin: 0; }

/* Callout / Quote */

.cs-callout {
  background: var(--border);
  border-radius: var(--radius);
  padding: 36px 44px;
  margin: 40px 0;
}

.cs-callout-text {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.cs-callout-text em { font-style: italic; }

.cs-quote {
  border-left: 2px solid var(--ink-muted);
  padding: 4px 28px;
  margin: 40px 0;
}

.cs-quote-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.cs-quote-attr {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-muted);
}

/* Table */

.cs-table-wrap {
  overflow-x: auto;
  margin: 32px 0;
}

.cs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.cs-table th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.cs-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
  vertical-align: top;
  color: var(--ink-muted);
}

.cs-table td strong { color: var(--ink); font-weight: 600; }
.cs-table tr:last-child td { border-bottom: none; }

/* Phase blocks (Cleverly before/after) */

.cs-phase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.cs-phase-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.cs-phase-badge.problem { background: #f0e8e8; color: #8b4444; }
.cs-phase-badge.solution { background: #e8f0e9; color: #3d6644; }

/* Feature cards */

.cs-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.cs-feature-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cs-feature-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.cs-feature-desc {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* Insight / pain point cards */

.cs-insight-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.cs-insight-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cs-insight-num {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.cs-insight-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.cs-insight-body {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* Impact */

.cs-impact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.cs-impact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

.cs-impact-icon { flex-shrink: 0; }

/* Reflection grid */

.cs-reflection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.cs-reflection-title {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.cs-reflection-body {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--ink-muted);
}

/* ── Responsive ── */

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .container { padding: 0 20px; }

  .hero { padding: 64px 0 48px; }

  .work-grid { grid-template-columns: 1fr; gap: 40px; }
  .snacks-grid { grid-template-columns: repeat(2, 1fr); }

  .cs-meta-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .cs-phase-grid { grid-template-columns: 1fr; }
  .cs-img-grid.cols-2,
  .cs-img-grid.cols-3 { grid-template-columns: 1fr; }
  .cs-reflection-grid { grid-template-columns: 1fr; }
  .cs-feature-grid { grid-template-columns: 1fr; }
  .cs-callout { padding: 24px 28px; }
  .cs-section { padding: 48px 0; }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 0;
  }
  .about-photo { aspect-ratio: 4 / 3; }

  .section-head { padding: 40px 0 24px; }
}

@media (max-width: 480px) {
  .snacks-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 20px; }
}
