/* MCM Labs — site styles. Brand system from the sell sheet: oxblood, gold, cream, charcoal;
   serif wordmark + system sans. One file, no build step. */

:root {
  --red: #9e1b1b;
  --red-deep: #7e1414;
  --gold: #e0a82e;
  --gold-deep: #b8860b;
  --gold-soft: #f6e7c4;
  --cream: #fbf7ec;
  --cream-2: #f4ecd9;
  --ink: #1d1d1f;
  --charcoal: #1c211f;
  --charcoal-2: #262c2a;
  --mute: #6c7378;
  --line: #e4dfd2;
  --white: #ffffff;

  --serif: "Libre Baskerville", "Bookman Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max: 1180px;
  --pad: clamp(20px, 4vw, 48px);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(29, 29, 31, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(38px, 6vw, 68px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: clamp(21px, 2.2vw, 25px); }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: #3a3f3d; max-width: 60ch; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 14px;
}
.on-dark .eyebrow { color: var(--gold); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section-tight { padding: clamp(40px, 5vw, 70px) 0; }
.on-dark { background: var(--charcoal); color: #f2efe6; }
.on-dark .lede { color: #cfcac0; }
.on-red { background: var(--red); color: #fff7ee; }
.on-cream-2 { background: var(--cream-2); }
.center { text-align: center; }
.mx { margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: clamp(18px, 2.5vw, 32px); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; text-decoration: none; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--charcoal); border-color: var(--gold); }
.btn-gold:hover { background: #e9b544; }
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(29,29,31,.25); }
.btn-ghost:hover { border-color: var(--ink); }
.on-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.on-dark .btn-ghost:hover { border-color: #fff; }
.btn-lg { padding: 17px 28px; font-size: 16.5px; }

/* Header — oxblood bar, cream type, gold call to action */
.header {
  position: sticky; top: 0; z-index: 40;
  background: var(--red);
  border-bottom: 1px solid rgba(0,0,0,.18);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.logo svg { height: 34px; width: auto; }
.logo .word { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: 0.02em; color: #fff7ee; white-space: nowrap; }
.logo .word b { color: var(--gold); font-weight: 700; }
.logo small { display: block; font-family: var(--sans); font-size: 9.5px; letter-spacing: 0.22em; color: rgba(255,247,238,.7); text-transform: uppercase; margin-top: 1px; white-space: nowrap; }
.header .logo svg rect[fill="#FBF7EC"] { fill: var(--red); }
/* The capsule's oxblood half vanished against the oxblood bar; it reads cream there. */
.header .logo svg rect[fill="#9E1B1B"] { fill: #fff7ee; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: #fff7ee; padding: 9px 12px; border-radius: 8px; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.nav a:hover { background: rgba(255,255,255,.1); }
.nav a[aria-current="page"] { color: var(--gold); }
.nav .sep { width: 1px; height: 22px; background: rgba(255,255,255,.22); margin: 0 8px; }
.nav .btn { margin-left: 10px; padding: 12px 20px; }
.nav .btn:hover { background: #e9b544; }
.nav-toggle { display: none; background: none; border: 1.5px solid rgba(255,255,255,.35); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff7ee; margin: 4px 0; }
@media (max-width: 1080px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 76px; flex-direction: column; align-items: stretch; gap: 0;
         background: var(--red-deep); border-bottom: 1px solid rgba(0,0,0,.25); padding: 8px var(--pad) 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.12); border-radius: 0; font-size: 17px; }
  .nav a:hover { background: transparent; color: var(--gold); }
  .nav .sep { display: none; }
  .nav .btn { margin: 16px 0 0; justify-content: center; border-bottom: 0; border-radius: 999px; }
  .nav-toggle { display: block; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--charcoal); color: #fff; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; opacity: .55; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(28,33,31,.92) 0%, rgba(28,33,31,.72) 45%, rgba(28,33,31,.35) 100%); }
.hero .wrap { position: relative; padding-top: clamp(64px, 10vw, 140px); padding-bottom: clamp(64px, 10vw, 140px); }
.hero h1 { max-width: 14ch; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { color: #e6e1d6; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 44px; color: #cfcac0; font-size: 14px; }
.hero-meta span::before { content: "•"; color: var(--gold); margin-right: 8px; }

/* Proof strip */
.proof { background: var(--red); color: #fff; }
.proof .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 26px; padding-bottom: 26px; }
.proof div { text-align: center; padding: 8px 6px; border-left: 1px solid rgba(255,255,255,.18); }
.proof div:first-child { border-left: 0; }
.proof strong { display: block; font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); color: var(--gold); line-height: 1.05; }
.proof span { font-size: 13.5px; opacity: .92; letter-spacing: .02em; }
@media (max-width: 720px) { .proof .wrap { grid-template-columns: repeat(2, 1fr); } .proof div:nth-child(3) { border-left: 0; } }

/* Cards */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 24px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 6px; }
.card p { color: #454b49; margin-bottom: 0; }
.num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--gold); color: var(--charcoal); font-family: var(--serif); font-weight: 700; font-size: 20px;
}
.card.on-dark { background: var(--charcoal-2); border-color: rgba(255,255,255,.08); }
.card.on-dark p { color: #cfcac0; }

/* Formats */
.format { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--charcoal); color: #fff; min-height: 380px; display: flex; align-items: flex-end; text-decoration: none; }
.format img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.format:hover img { transform: scale(1.04); }
.format::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,33,31,0) 30%, rgba(28,33,31,.92) 100%); }
.format .in { position: relative; padding: 26px; }
.format h3 { margin-bottom: 6px; color: #fff; }
.format p { color: #d8d3c8; margin: 0; font-size: 15px; }
.format .tag { position: absolute; top: 18px; left: 18px; z-index: 1; background: var(--gold); color: var(--charcoal); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }

/* Split */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.rev { grid-template-columns: .95fr 1.05fr; }
.split .media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split .media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (max-width: 880px) { .split, .split.rev { grid-template-columns: 1fr; } .split.rev .media { order: -1; } }

/* Photo mosaic */
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 160px; gap: 10px; }
.mosaic figure { margin: 0; border-radius: 12px; overflow: hidden; position: relative; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic figcaption { position: absolute; left: 12px; bottom: 10px; font-size: 12.5px; color: #fff; background: rgba(28,33,31,.7); padding: 4px 9px; border-radius: 6px; }
.mosaic .w3 { grid-column: span 3; } .mosaic .w2 { grid-column: span 2; } .mosaic .h2 { grid-row: span 2; }
@media (max-width: 720px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } .mosaic .w3, .mosaic .w2 { grid-column: span 2; } .mosaic .h2 { grid-row: span 1; } }

/* Lists */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 11px; width: 6px; height: 9px; border: solid var(--charcoal); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Cert badges */
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cert { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.cert .seal { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--gold); display: grid; place-items: center; color: var(--red); font-family: var(--serif); font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.cert strong { display: block; font-size: 16.5px; }
.cert span { color: var(--mute); font-size: 14.5px; }
@media (max-width: 880px) { .certs { grid-template-columns: 1fr; } }

/* Steps (how we work) */
.steps { counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 34px; color: var(--gold-deep); line-height: 1; }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: #454b49; }
@media (max-width: 560px) { .step { grid-template-columns: 1fr; gap: 6px; } }

/* Table */
.spec { width: 100%; border-collapse: collapse; font-size: 15.5px; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.spec th, .spec td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { background: var(--cream-2); font-weight: 600; font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase; color: #3a3f3d; }
.spec tr:last-child td { border-bottom: 0; }
.spec td:first-child { font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* CTA band */
.cta { position: relative; overflow: hidden; }
.cta .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; }
.cta h2 { color: #fff; }
.cta p { color: #f3e6d6; }
@media (max-width: 880px) { .cta .wrap { grid-template-columns: 1fr; } }

/* Form */
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; padding: 13px 14px; border-radius: 10px; border: 1.5px solid #d9d3c4; background: #fffdf8; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(224,168,46,.25); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .field { margin-bottom: 16px; }
.form textarea { min-height: 130px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form small { color: var(--mute); }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--charcoal); color: #cfcac0; padding: 56px 0 28px; font-size: 15px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer a { color: #e6e1d6; text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer .logo .word { color: #fff; }
.footer .logo .word b { color: var(--gold); }
.footer .logo small { color: #9aa19d; }
.footer .legal { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; color: #9aa19d; }
.footer .legal a { color: #9aa19d; }
@media (max-width: 880px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer .cols { grid-template-columns: 1fr; } }

/* Page hero (inner pages) */
.page-hero { background: var(--charcoal); color: #fff; padding: clamp(48px, 7vw, 96px) 0; position: relative; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); max-width: 18ch; }
.page-hero .lede { color: #d8d3c8; }

/* Quote */
.quote { font-family: var(--serif); font-size: clamp(24px, 3vw, 36px); line-height: 1.3; color: var(--gold); max-width: 26ch; margin: 0 auto; }
.quote + p { color: #cfcac0; max-width: 60ch; margin: 18px auto 0; }

/* Utilities */
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 22px; } .mt-3 { margin-top: 36px; } .mt-4 { margin-top: 56px; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--mute); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.notice { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: 14px 18px; border-radius: 8px; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .format img { transition: none; } }
