:root {
  --base: #181818;
  --surface: #222222;
  --surface-2: #2a2a2a;
  --copper: #C46A2D;
  --copper-hover: #D9823B;
  --copper-active: #B05C24;
  --copper-dim: rgba(196, 106, 45, 0.15);
  --off-white: #F3EFEA;
  --muted: #BFB5AA;
  --line: #2e2e2e;
  --ease: cubic-bezier(0.2, 0.65, 0.2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--base);
  color: var(--off-white);
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  line-height: 1.75;
  font-size: 17.5px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(196, 106, 45, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(196, 106, 45, 0.06), transparent 70%);
}

/* TYPOGRAPHY */
h1, h2, h3 { font-family: 'Young Serif', serif; font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -0.02em; line-height: 1.12; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.2rem); }
h3 { font-family: 'Outfit', sans-serif; font-weight: 500; font-size: 1.05rem; letter-spacing: 0; line-height: 1.4; }
p { color: var(--muted); max-width: 70ch; }
a { color: inherit; text-decoration: none; }
.eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--copper);
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 1; }
section { position: relative; z-index: 1; }

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgba(24, 24, 24, 0.4);
  border-bottom: 1px solid transparent;
  transition: background 300ms var(--ease), border-color 300ms var(--ease);
}
.nav.scrolled {
  background: rgba(24, 24, 24, 0.85);
  border-bottom-color: var(--line);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Young Serif', serif;
  font-size: 1.35rem;
  color: var(--off-white);
}
.nav-logo img { height: 168px; width: auto; display: block; margin: -50px 0; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--off-white);
  transition: color 200ms var(--ease);
}
.nav-links a:hover { color: var(--copper); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(243, 239, 234, 0.22);
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--off-white);
  align-items: center;
  justify-content: center;
  transition: border-color 200ms var(--ease);
}
.nav-toggle:hover { border-color: var(--copper); }
.nav-toggle:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.nav-toggle svg { display: block; }
.nav-toggle .icon-close { display: none; }
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24, 24, 24, 0.98);
  backdrop-filter: blur(20px);
  z-index: 49;
  padding: 100px 32px 40px;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms var(--ease);
}
.mobile-menu a {
  font-family: 'Young Serif', serif;
  font-size: 1.8rem;
  color: var(--off-white);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: color 200ms var(--ease);
}
.mobile-menu a:hover, .mobile-menu a:active { color: var(--copper); }
.mobile-menu .btn-primary {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  margin-top: 28px;
  border-bottom: none;
  justify-content: center;
}
body.menu-open { overflow: hidden; }
body.menu-open .mobile-menu { display: flex; opacity: 1; pointer-events: auto; }
body.menu-open .nav-toggle .icon-open { display: none; }
body.menu-open .nav-toggle .icon-close { display: block; }

/* BUTTONS */
.btn { font-family: 'Outfit', sans-serif; font-size: 0.92rem; font-weight: 500; letter-spacing: 0.01em; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; border: none; background: none; color: inherit; }
.btn svg { transition: transform 220ms var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--copper); color: var(--off-white); padding: 13px 24px; transition: background-color 220ms var(--ease), transform 220ms var(--ease); }
.btn-primary:hover { background: var(--copper-hover); transform: translateY(-1px); }
.btn-primary:active { background: var(--copper-active); transform: translateY(0); }
.btn-primary:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.btn-secondary { padding: 12px 23px; border: 1px solid rgba(243, 239, 234, 0.22); color: var(--off-white); transition: border-color 220ms var(--ease), transform 220ms var(--ease); }
.btn-secondary:hover { border-color: var(--copper); transform: translateY(-1px); }

/* CASE STUDY HERO */
.cs-hero {
  padding: 160px 0 60px;
  border-bottom: 1px solid var(--line);
}
.cs-hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 36px;
  transition: color 220ms var(--ease);
}
.cs-hero .back-link:hover { color: var(--copper); }
.cs-hero .back-link svg { transition: transform 220ms var(--ease); }
.cs-hero .back-link:hover svg { transform: translateX(-3px); }
.cs-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.cs-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--copper);
}
.cs-logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  border-radius: 8px;
  padding: 12px 20px;
  height: 64px;
  max-width: 240px;
  margin-bottom: 28px;
  overflow: hidden;
}
.cs-logo-chip img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.cs-hero h1 { margin-bottom: 22px; max-width: 28ch; }
.cs-subtitle {
  font-size: 1.1rem;
  color: var(--off-white);
  max-width: 70ch;
  line-height: 1.6;
}

/* META STRIP */
.cs-meta-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.cs-meta-strip .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 56px;
}
.cs-meta-strip > .container > .meta-row > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cs-meta-strip .meta-label {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.cs-meta-strip .meta-value {
  color: var(--off-white);
  font-size: 0.96rem;
  font-weight: 500;
}

/* STATS */
.cs-stats { padding: 50px 0 0; }
.metric-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.metric-tile {
  background: var(--base);
  padding: 28px 26px;
}
.metric-tile .stat {
  font-family: 'Young Serif', serif;
  color: var(--copper);
  font-size: 1.65rem;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.1;
}
.metric-tile .label {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

/* CONTENT */
.cs-content { padding: 70px 0 90px; }
.cs-block {
  max-width: 880px;
  margin-bottom: 70px;
}
.cs-block:last-of-type { margin-bottom: 0; }
.cs-block h2 { margin-bottom: 24px; max-width: 28ch; }
.cs-block p { font-size: 1.02rem; margin-bottom: 18px; max-width: none; }
.cs-block p:last-of-type { margin-bottom: 0; }

/* BULLET LIST (problem friction points) */
.bullet-list {
  margin-top: 36px;
  display: grid;
  gap: 20px;
}
.bullet {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.bullet-num {
  font-family: 'Young Serif', serif;
  color: var(--copper);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  line-height: 1.4;
}
.bullet strong {
  color: var(--off-white);
  font-weight: 500;
  font-size: 1.02rem;
  display: block;
  margin-bottom: 6px;
}
.bullet p { font-size: 0.96rem; margin: 0; max-width: none; }

/* COMPONENTS (numbered solution components) */
.components {
  margin-top: 36px;
  display: grid;
  gap: 28px;
}
.component {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 32px;
}
.component .comp-num {
  font-family: 'Young Serif', serif;
  color: var(--copper);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}
.component h3 {
  font-family: 'Young Serif', serif;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: var(--off-white);
  margin-bottom: 12px;
  font-weight: 400;
}
.component p { font-size: 0.96rem; margin: 0; max-width: none; }

/* OUTCOME LIST */
.outcome-list {
  margin-top: 36px;
  display: grid;
  gap: 0;
}
.outcome-item {
  padding: 18px 0 18px 28px;
  position: relative;
  border-top: 1px solid var(--line);
  color: var(--off-white);
  font-size: 0.98rem;
  line-height: 1.55;
}
.outcome-item:last-child { border-bottom: 1px solid var(--line); }
.outcome-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--copper);
}

/* QUOTE */
.cs-quote {
  margin: 30px 0 50px;
  padding: 32px 36px;
  border-left: 3px solid var(--copper);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
  max-width: 880px;
}
.cs-quote p {
  color: var(--off-white);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: none;
}
.cs-quote .attribution {
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-style: normal;
}

/* PATTERN */
.cs-pattern {
  margin-top: 50px;
  padding: 36px 0 0;
  border-top: 1px solid var(--line);
  max-width: 880px;
}
.cs-pattern p { font-size: 1.02rem; margin-bottom: 16px; max-width: none; }
.cs-pattern p:last-child { margin-bottom: 0; }

/* CTA */
.cs-cta {
  padding: 110px 0;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cs-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 100%, rgba(196, 106, 45, 0.15), transparent 70%);
  pointer-events: none;
}
.cs-cta .inner { max-width: 720px; margin: 0 auto; position: relative; }
.cs-cta h2 { margin-bottom: 22px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cs-cta p { color: var(--muted); margin: 0 auto 32px; font-size: 1.04rem; max-width: 56ch; }

/* FOOTER */
footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: 'Young Serif', serif; font-size: 1.1rem; color: var(--off-white); }
.footer-logo img { height: 168px; width: auto; display: block; margin: -50px 0; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { transition: color 200ms var(--ease); }
.footer-links a:hover { color: var(--copper); }

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .metric-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .nav { padding: 12px 20px; }
  .nav-logo img { height: 192px; margin: -56px 0; }
  .nav-links { display: none !important; }
  .nav-toggle { display: inline-flex; }
  .cs-hero { padding: 120px 0 50px; }
  .cs-meta-strip .meta-row { gap: 18px 28px; }
  .cs-content { padding: 50px 0 70px; }
  .cs-block { margin-bottom: 50px; }
  .cs-quote { padding: 26px 26px; }
  .cs-cta { padding: 80px 0; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .footer-logo img { height: 192px; margin: -56px 0; }
}
@media (max-width: 600px) {
  .metric-tiles { grid-template-columns: 1fr 1fr; }
  .bullet { grid-template-columns: 28px 1fr; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
