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

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

:root {
  --bg:        #ffffff;
  --text:      #111111;
  --muted:     #888888;
  --rule:      #e8e8e8;
  --accent:    #cce4f8;
  --accent-dk: #3a9fda;
  --tag-bg:    #f2f2f2;
  --max:       740px;
  --serif:     'DM Serif Display', Georgia, serif;
  --sans:      'DM Sans', system-ui, sans-serif;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ─── TOP NAV ─── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  padding: 0 2rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
}
.nav-back:hover { opacity: 0.55; }
.nav-back svg { flex-shrink: 0; }
.nav-name {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ─── PAGE WRAPPER ─── */
.project-page {
  padding-top: 52px;
}

/* ─── HERO ─── */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 2rem 3.5rem;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 1.6rem;
}
.hero-tag::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}
.hero-sub {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.65;
  max-width: 580px;
}

/* ─── META STRIP ─── */
.meta-strip {
  max-width: var(--max);
  margin: 0 auto 0;
  padding: 0 2rem 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  border-bottom: 1px solid var(--rule);
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.meta-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta-value {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 400;
}

/* ─── CONTENT SECTIONS ─── */
.content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.section {
  padding-top: 4rem;
}

.section-num {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.section h2 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 1.4rem;
  letter-spacing: -0.01em;
}

.section p {
  font-size: 0.97rem;
  line-height: 1.78;
  color: #333;
  margin-bottom: 1.1rem;
}

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

/* Callout / highlight box */
.callout {
  border-left: 2px solid #d0d0d0;
  padding: 0.6rem 1.4rem;
  margin: 2rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
  font-style: italic;
}
.callout strong { font-weight: 500; font-style: normal; color: #222; }

/* Bulleted list */
.section ul {
  padding-left: 0;
  list-style: none;
  margin: 1rem 0 1.1rem;
}
.section ul li {
  font-size: 0.97rem;
  line-height: 1.7;
  color: #333;
  padding: 0.3rem 0 0.3rem 1.4rem;
  position: relative;
}
.section ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--muted);
  font-weight: 300;
}

/* Outcome stats row */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
}
.stat-card {
  flex: 1 1 160px;
  background: var(--tag-bg);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  min-width: 140px;
}
.stat-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ─── IMAGE FRAMES ─── */
.img-frame {
  margin: 2.5rem 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--tag-bg);
  box-shadow: 0 2px 24px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.05);
}
.img-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Placeholder frame — swap src to real image when ready */
.img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #d8ecf8 0%, #e8f4fd 40%, #cce4f8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #6aadce;
  user-select: none;
}
.img-placeholder svg { opacity: 0.6; }
.img-placeholder-label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.img-caption {
  padding: 0.6rem 1rem 0.8rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Full-bleed wide frame (extends slightly past column) */
.img-frame.wide {
  margin-left: -3rem;
  margin-right: -3rem;
  border-radius: 8px;
}

/* ─── PROCESS STEPS ─── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin: 1.5rem 0;
}
.step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 1rem;
  align-items: start;
}
.step-num {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--muted);
  padding-top: 2px;
  font-style: italic;
}
.step-body strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
  color: var(--text);
}
.step-body p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0 !important;
}

/* ─── SECTION RULE ─── */
.section-rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ─── NEXT PROJECT ─── */
.next-project {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.next-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.next-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  display: block;
  transition: opacity 0.15s;
}
.next-title:hover { opacity: 0.55; }
.next-arrow {
  text-decoration: none;
  color: var(--text);
  font-size: 1.4rem;
  opacity: 0.35;
  transition: opacity 0.15s, transform 0.15s;
}
.next-arrow:hover { opacity: 0.7; transform: translateX(4px); }

/* ─── COMPONENT COMPARE ─── */
.component-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 2rem 0;
  align-items: start;
}
@media (max-width: 560px) {
  .component-compare { grid-template-columns: 1fr; }
}
.compare-item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.compare-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Before — original flat style */
.alert-v1 {
  background: #fce8e8;
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  font-size: 0.875rem;
  color: #333;
  line-height: 1.55;
}

/* After — improved */
.alert-v2 {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  padding: 0.9rem 1.1rem;
}
.alert-v2-icon {
  flex-shrink: 0;
  margin-top: 1px;
}
.alert-v2-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111;
  line-height: 1.4;
  margin-bottom: 0.18rem !important;
}
.alert-v2-desc {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.55;
  margin-bottom: 0 !important;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .hero { padding: 3.5rem 1.2rem 2.5rem; }
  .meta-strip { padding: 0 1.2rem 2rem; gap: 1.2rem; }
  .content { padding: 0 1.2rem 4rem; }
  .img-frame.wide { margin-left: -1.2rem; margin-right: -1.2rem; }
  .stats-row { gap: 0.8rem; }
  .site-nav { padding: 0 1.2rem; }
  .next-project { padding: 2.5rem 1.2rem 4rem; }
}
