/* Menlo Park Services LLC — brand styles */
:root {
  --paper: #FFFFFF;
  --paper-2: #FAF9F6;
  --paper-3: #F3F2EC;
  --ink: #0C0C0C;
  --ink-soft: #3D3D3E;
  --slate: #74746F;
  --line: #E7E5DC;
  --gold: #C9A227;             /* metallic gold (decorative) */
  --gold-deep: #8A6A15;        /* readable gold text */
  --gold-soft: #F1DE9E;        /* light gold on dark */
  --gold-grad: linear-gradient(120deg,#9E7C1C 0%,#C9A227 22%,#F4E4A6 48%,#C9A227 74%,#8A6A15 100%);
  --green: #1C7A55;            /* emerald (interactive/readable) */
  --green-soft: #2FA372;
  --green-deep: #115C3F;
  --radius: 14px;
  --maxw: 1140px;
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', 'Space Grotesk', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .74rem;
  font-weight: 500;
  color: var(--gold-deep);
}
.eyebrow.gold { color: var(--gold-soft); }
.eyebrow.green { color: var(--green); }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.green-text { background: linear-gradient(120deg,#115C3F,#1C7A55,#2FA372,#1C7A55); -webkit-background-clip: text; background-clip: text; color: transparent; }
::selection { background: var(--green-soft); color: #fff; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.7rem, 6.2vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
p { color: var(--ink-soft); }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; }
section { padding: 96px 0; position: relative; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-weight: 500; font-size: .9rem;
  padding: 14px 26px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; transition: all .2s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--green); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--green); color: var(--green-deep); }

/* Header */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; letter-spacing: -0.04em; }
.logo .mark { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a { font-family: var(--font-mono); font-size: .88rem; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--green); }
.nav-links a.btn-primary, .nav-links a.btn-primary.active, .nav-links a.btn-primary:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; }

/* Golden thread (scroll) — winds across the full page, behind content */
#goldThread { position: absolute; top: 0; left: 0; z-index: 0; pointer-events: none; }
#goldThread .thread-base { stroke: rgba(201,162,39,.14); }
#goldThread #threadProgress { filter: drop-shadow(0 0 3px rgba(201,162,39,.5)); }
#goldThread #threadComet { filter: drop-shadow(0 0 6px rgba(241,222,158,.95)); }
/* On the dark section the thread should glow brighter when it rides over it */
.gc-section { position: relative; }

/* Hero */
.hero { padding: 110px 0 80px; position: relative; }
.hero .tag-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.tag { font-family: var(--font-mono); font-size: .78rem; padding: 7px 15px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink-soft); background: var(--paper-2); font-weight: 500; transition: border-color .2s, color .2s; }
.tag:hover { border-color: var(--green); color: var(--green-deep); }
.hero h1 { margin: 18px 0 22px; max-width: 16ch; }
.hero h1 em { font-style: normal; }
.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

/* Grid sections */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(12,12,12,.2); border-color: var(--gold); }
.card .num { font-family: var(--font-mono); color: var(--gold-deep); font-size: .8rem; font-weight: 500; }
.card h3 { margin: 14px 0 10px; }
.card p { font-size: .98rem; }

.section-head { max-width: 56ch; margin-bottom: 52px; }
.section-head h2 { margin: 14px 0; }

/* Two-prong / value */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.prong { border-left: 2px solid var(--gold); padding-left: 22px; margin-bottom: 30px; }
.prong.gold-edge { border-color: var(--green); }
.prong h3 { margin-bottom: 8px; }

/* Golden Circle */
.gc-section { background: var(--ink); color: #fff; }
.gc-section .eyebrow { color: var(--gold-soft); }
.gc-section h2 { color: #fff; }
.gc-section p { color: #C7C7C2; }
.gc-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; margin-top: 40px; }
.gc-steps .gc-step { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.1); cursor: pointer; transition: opacity .2s; }
.gc-steps .gc-step:last-child { border-bottom: 0; }
.gc-steps .gc-step .idx { font-family: var(--font-mono); color: var(--gold-soft); font-weight: 600; }
.gc-steps .gc-step h3 { color: #fff; font-size: 1.15rem; }
.gc-steps .gc-step p { font-size: .95rem; margin-top: 4px; }
.gc-steps .gc-step.dim { opacity: .42; }
.gc-visual { display: flex; flex-direction: column; align-items: center; }
.gc-visual .gc-label { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; color: var(--gold-soft); margin-bottom: 22px; }

/* CTA band */
.cta-band { background: var(--paper-2); border: 1px solid var(--line); border-radius: 20px; padding: 64px; text-align: center; }
.cta-band h2 { margin-bottom: 18px; }

/* Work page */
.work-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; }
.work-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.work-thumb { aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); color: #fff; position: relative; font-size: .82rem; letter-spacing: .06em; }
.work-body { padding: 26px; }
.work-body .meta { font-family: var(--font-mono); font-size: .76rem; color: var(--slate); text-transform: uppercase; letter-spacing: .12em; }
.work-body h3 { margin: 10px 0 8px; }
.placeholder-note { font-family: var(--font-mono); font-size: .82rem; color: var(--ink-soft); background: var(--paper-2); border: 1px dashed var(--gold); border-radius: 10px; padding: 14px 18px; display: inline-block; }
.metric-row { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 30px; }
.metric .n { font-family: var(--font-display); font-weight: 800; font-size: 2.8rem; letter-spacing: -0.04em; }
.metric .l { font-family: var(--font-mono); font-size: .8rem; color: var(--slate); text-transform: uppercase; letter-spacing: .08em; max-width: 18ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-mono); font-size: .8rem; font-weight: 500; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: .98rem; background: var(--paper-2); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--green); border-color: var(--green); }
.contact-info .info-item { margin-bottom: 22px; }
.contact-info .info-item .k { font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--slate); }
.contact-info .info-item .v { font-size: 1.05rem; margin-top: 3px; }
.contact-info .info-item .v a { color: var(--green); }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 60px 0 40px; background: var(--paper-2); }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-col h4 { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--slate); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--ink-soft); font-size: .95rem; margin-bottom: 8px; }
.foot-col a:hover { color: var(--green); }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: var(--slate); font-family: var(--font-mono); }

/* Chatbot */
#mp-chat-btn {
  position: fixed; bottom: 26px; right: 26px; z-index: 100;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; box-shadow: 0 12px 30px -8px rgba(12,12,12,.42);
  display: flex; align-items: center; justify-content: center; transition: transform .2s, background .2s;
}
#mp-chat-btn:hover { transform: scale(1.06); background: var(--green); }
#mp-chat-panel {
  position: fixed; bottom: 100px; right: 26px; z-index: 100;
  width: 380px; max-width: calc(100vw - 40px); height: 540px; max-height: calc(100vh - 140px);
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 70px -20px rgba(12,12,12,.32); display: none; flex-direction: column; overflow: hidden;
}
#mp-chat-panel.open { display: flex; animation: chatIn .22s ease; }
@keyframes chatIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.chat-head { background: var(--ink); color: #fff; padding: 18px 20px; display: flex; align-items: center; gap: 12px; }
.chat-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-soft); box-shadow: 0 0 0 3px rgba(47,163,114,.25); }
.chat-head .t { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.chat-head .s { font-family: var(--font-mono); font-size: .72rem; color: #BFBFB9; }
.chat-head .x { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; opacity: .8; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 84%; padding: 11px 15px; border-radius: 14px; font-size: .92rem; line-height: 1.5; }
.msg.bot { background: var(--paper-2); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--green); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg a { color: var(--green); text-decoration: underline; }
.msg.user a { color: #fff; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.chat-quick button { font-family: var(--font-mono); font-size: .78rem; padding: 7px 13px; border: 1px solid var(--line); border-radius: 100px; background: var(--paper-2); cursor: pointer; transition: all .15s; }
.chat-quick button:hover { border-color: var(--green); color: var(--green); }
.chat-input { display: flex; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; padding: 11px 14px; border: 1px solid var(--line); border-radius: 100px; font-family: var(--font-body); font-size: .92rem; background: var(--paper-2); }
.chat-input input:focus { outline: 2px solid var(--green); }
.chat-input button { background: var(--ink); color: #fff; border: 0; border-radius: 50%; width: 42px; height: 42px; cursor: pointer; font-size: 1.1rem; }

/* Case-study layout (big editorial images) */
.campaigns { background: var(--paper-2); }
.cases { display: flex; flex-direction: column; gap: 92px; margin-top: 56px; }
.case .case-head { max-width: 64ch; margin-bottom: 24px; }
.case .c-meta { font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .13em; color: var(--gold-deep); }
.case:nth-child(even) .c-meta { color: var(--green); }
.case h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 12px 0 12px; }
.case .case-head p { font-size: 1.05rem; max-width: 60ch; }
.case .shot { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 40px 90px -50px rgba(12,12,12,.5); }
.case .shot img { width: 100%; display: block; }
.case .shot.contain { max-width: 838px; margin: 0 auto; background: #fff; }
.attribution { font-family: var(--font-mono); font-size: .82rem; color: var(--slate); border-left: 2px solid var(--gold); padding: 4px 0 4px 16px; margin-top: 80px; max-width: 64ch; line-height: 1.7; }

/* Writing & recognition */
.refs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.ref-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); padding: 28px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.ref-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 18px 40px -26px rgba(12,12,12,.25); }
.ref-card .src { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--green); }
.ref-card h3 { margin: 12px 0 10px; font-size: 1.18rem; }
.ref-card p { font-size: .95rem; flex: 1; }
.ref-card .go { font-family: var(--font-mono); font-size: .82rem; color: var(--gold-deep); margin-top: 16px; font-weight: 500; }
.webby { display: flex; gap: 20px; align-items: center; background: var(--ink); color: #fff; border-radius: 18px; padding: 30px 34px; margin-top: 24px; flex-wrap: wrap; }
.webby img { width: 116px; border-radius: 12px; flex-shrink: 0; }
.webby .webby-video { border: none; border-radius: 12px; flex-shrink: 0; width: 280px; height: 360px; background: #000; }
@media (max-width: 520px) { .webby .webby-video { width: 100%; height: auto; aspect-ratio: 28/36; } }
.webby .badge { display: inline-block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); border: 1px solid rgba(241,222,158,.4); border-radius: 100px; padding: 8px 16px; white-space: nowrap; }
.webby p { color: #D8D8D3; margin: 0; }
.webby strong { color: #fff; }
@media (max-width: 860px) { .refs { grid-template-columns: 1fr; } }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.show { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--paper); padding: 20px 28px; border-bottom: 1px solid var(--line); gap: 18px; }
  .grid-3, .grid-2, .split, .gc-layout, .work-grid, .contact-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .cta-band { padding: 40px 24px; }
}
