/* ============================================================
   PRO-MIND — Design System v2 (Elite Client Tier)

   Direction: quiet luxury. Boutique advisory-to-the-boardroom —
   closer to a private bank or family office than a SaaS startup.
   Generous negative space, restrained motion, one metallic accent
   used sparingly, editorial typography with real optical weight.

   Palette:
     --ink        #0A1013  near-black graphite-navy (primary dark)
     --ink-soft   #15222A  secondary dark surface
     --paper      #F2EFE8  warm ivory (background)
     --paper-deep #E7E2D6  recessed panels
     --brass      #9C7F4C  brushed brass (signature accent — used sparingly)
     --brass-dim  #C9B98C  low-emphasis brass (hairlines, ghost text)
     --slate      #52626A  muted secondary text
     --line       #DDD7C8  hairline on paper
     --line-dark  #24333B  hairline on ink
     --white      #FCFBF8
   Type:
     Display: 'Fraunces' — optical-size display serif, light weights, tight tracking
     Body:    'IBM Plex Sans' — quiet, precise
     Mono:    'IBM Plex Mono' — kickers, labels, data only, used with restraint
   ============================================================ */

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

:root {
  --ink: #0A1013;
  --ink-soft: #15222A;
  --paper: #F2EFE8;
  --paper-deep: #E7E2D6;
  --brass: #9C7F4C;
  --brass-dim: #C9B98C;
  --slate: #52626A;
  --line: #DDD7C8;
  --line-dark: #24333B;
  --white: #FCFBF8;

  --display: 'Fraunces', Georgia, serif;
  --body: 'IBM Plex Sans', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', monospace;

  --max: 1220px;
  --gutter: clamp(1.5rem, 5vw, 5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  background-image:
    radial-gradient(ellipse at top, rgba(156,127,76,0.05), transparent 55%);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  animation: pageIn 0.6s ease;
}
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--brass-dim);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.8rem); font-weight: 350; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 400; }
h3 { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.005em; }

p { color: var(--slate); max-width: 62ch; font-weight: 300; }
p.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 48ch; font-weight: 300; line-height: 1.6; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1.05rem 1.9rem;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(.25,.8,.25,1);
}
.btn-primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-primary:hover { background: transparent; border-color: var(--ink); color: var(--ink); letter-spacing: 0.16em; }
.btn-outline { border-color: var(--slate); color: var(--ink); }
.btn-outline:hover { border-color: var(--brass); color: var(--brass); letter-spacing: 0.16em; }
.btn-row { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: 2.6rem; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(242,239,232,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem var(--gutter);
  max-width: var(--max); margin: 0 auto;
}
.logo {
  font-family: var(--display); font-weight: 400; font-size: 1.35rem;
  letter-spacing: 0.01em;
}
.logo span { color: var(--brass); }
.nav-links { display: flex; gap: 2.6rem; align-items: center; }
.nav-links a {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; font-weight: 400;
  text-transform: uppercase; color: var(--ink-soft);
  position: relative; padding-bottom: 5px;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--brass); transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--brass); }
.nav-cta {
  font-family: var(--mono); font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 0; border: none !important; padding-bottom: 5px !important;
}
.nav-cta::after { background: var(--brass) !important; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 72px 0 0 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; padding: 3rem var(--gutter); gap: 2rem;
    transform: translateY(-110%); transition: transform 0.35s ease; border-bottom: 1px solid var(--line); }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 0.85rem; }
  .nav-toggle { display: block; background: none; border: none; font-family: var(--mono);
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; color: var(--ink); }
}

/* ===== Hero ===== */
.hero { position: relative; padding: 7rem 0 4.5rem; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; }
.hero-tag { max-width: 44ch; }
.hero p.lede { margin-top: 1.8rem; }

.trajectory { margin-top: 4.5rem; width: 100%; max-width: 640px; height: auto; opacity: 0.9; }
.trajectory path.line {
  fill: none; stroke: var(--brass-dim); stroke-width: 1;
  stroke-dasharray: 900; stroke-dashoffset: 900;
  animation: draw 2.6s cubic-bezier(.25,.8,.25,1) forwards 0.4s;
}
.trajectory circle { fill: var(--brass); opacity: 0; animation: fadeIn 0.6s ease forwards; r: 2.5; }
.trajectory circle:nth-of-type(1) { animation-delay: 0.8s; }
.trajectory circle:nth-of-type(2) { animation-delay: 1.4s; }
.trajectory circle:nth-of-type(3) { animation-delay: 2.0s; }
.trajectory circle:nth-of-type(4) { animation-delay: 2.5s; }
.trajectory text { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; fill: var(--slate);
  opacity: 0; animation: fadeIn 0.6s ease forwards; }
.trajectory text:nth-of-type(1) { animation-delay: 0.9s; }
.trajectory text:nth-of-type(2) { animation-delay: 1.5s; }
.trajectory text:nth-of-type(3) { animation-delay: 2.1s; }
.trajectory text:nth-of-type(4) { animation-delay: 2.6s; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ===== Trust bar ===== */
.trust-bar { padding: 2.8rem 0; }
.trust-label { font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--slate); margin-bottom: 1.4rem; text-align: center; }
.trust-row { display: flex; justify-content: center; align-items: center; gap: 2.8rem; flex-wrap: wrap; }
.trust-row span { font-family: var(--display); font-style: italic; font-size: 1rem; color: var(--ink-soft);
  opacity: 0.55; font-weight: 400; }

/* ===== Stats ===== */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 3.4rem 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
.stat-num { font-family: var(--display); font-size: 2.8rem; font-weight: 350; color: var(--ink); }
.stat-label { font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--slate); margin-top: 0.5rem; }
@media (max-width: 700px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } }

/* ===== Section ===== */
.section { padding: 7rem 0; }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark p { color: #A9B4B9; }
.section-dark .eyebrow { color: var(--brass-dim); }
.section-dark .eyebrow::before { background: var(--brass); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 58ch; margin-bottom: 4rem; }

/* Pillars / grid — editorial list, not boxed table */
.grid-4, .grid-3, .grid-2 {
  display: grid; gap: 3rem 2.5rem;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 3.5rem; }

.card { padding-top: 1.6rem; border-top: 1px solid var(--line); transition: border-color 0.3s ease; }
.section-dark .card { border-top: 1px solid var(--line-dark); }
.card:hover { border-top-color: var(--brass); }
.card .num { font-family: var(--mono); font-size: 0.68rem; color: var(--brass); margin-bottom: 1.1rem; display: block; letter-spacing: 0.05em; }
.card h3 { margin-bottom: 0.8rem; }
.card p { font-size: 0.96rem; }
.card a.card-link { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink); margin-top: 1.4rem; display: inline-block; border-bottom: 1px solid var(--brass-dim);
  padding-bottom: 2px; transition: opacity 0.25s ease; }
.card a.card-link:hover { opacity: 0.6; }
.section-dark .card a.card-link { color: var(--white); }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(1, 1fr); }
}
@media (max-width: 600px) { .grid-4 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* Testimonials */
.testimonial { border-left: 1px solid var(--brass); padding-left: 1.9rem; margin-bottom: 2.8rem; }
.testimonial p { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 1.25rem; color: var(--ink); line-height: 1.45; }
.testimonial cite { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--slate); font-style: normal; display: block; margin-top: 1rem; }

/* Values / list rows */
.row-list { border-top: 1px solid var(--line); }
.row-item { display: grid; grid-template-columns: 180px 1fr; gap: 2.5rem; padding: 2.2rem 0; border-bottom: 1px solid var(--line); }
.row-item .row-label { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brass); padding-top: 0.2rem; }
@media (max-width: 640px) { .row-item { grid-template-columns: 1fr; gap: 0.6rem; } }

/* Process steps */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem; margin-top: 3rem; }
.process-step { border-top: 1px solid var(--brass-dim); padding-top: 1.2rem; }
.process-step .step-num { font-family: var(--mono); font-size: 0.68rem; color: var(--slate); letter-spacing: 0.05em; }
.process-step h4 { font-size: 1rem; margin-top: 0.5rem; font-weight: 500; }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* Service detail page */
.service-hero { padding: 5rem 0 3.5rem; border-bottom: 1px solid var(--line); }
.service-hero .eyebrow { margin-bottom: 1.4rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; gap: 3rem; } }
.check-list li { padding-left: 1.5rem; position: relative; margin-bottom: 1rem; color: var(--slate); font-weight: 300; }
.section-dark .check-list li { color: #A9B4B9; }
.check-list li::before { content: '—'; position: absolute; left: 0; color: var(--brass); }

/* Industries */
.industry-row { display: grid; grid-template-columns: 260px 1fr; gap: 3rem; padding: 2.8rem 0; border-bottom: 1px solid var(--line); }
.industry-row h3 { font-size: 1.7rem; font-weight: 400; }
@media (max-width: 760px) { .industry-row { grid-template-columns: 1fr; gap: 1rem; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 5rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 3.5rem; } }
.contact-detail { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.contact-detail .row-label { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); }
.contact-detail a { font-family: var(--display); font-size: 1.4rem; font-weight: 400; }

.field { margin-bottom: 1.6rem; }
.field label { display: block; font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--slate); margin-bottom: 0.6rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.9rem 0; border: none; border-bottom: 1px solid var(--line); background: transparent;
  font-family: var(--body); font-weight: 300; font-size: 0.98rem; color: var(--ink); border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--brass);
}
.field textarea { min-height: 120px; resize: vertical; }

/* CTA band */
.cta-band { text-align: center; padding: 6.5rem 0; }
.cta-band h2 { max-width: 22ch; margin: 0 auto; }
.cta-band .btn-row { justify-content: center; }

/* Footer */
.site-footer { background: var(--ink); color: #91A0A6; padding: 4.5rem 0 2.5rem; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-dark); }
.footer-logo { font-family: var(--display); color: var(--white); font-size: 1.4rem; font-weight: 400; }
.footer-logo span { color: var(--brass); }
.footer-cols { display: flex; gap: 4.5rem; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brass-dim); margin-bottom: 1.1rem; font-weight: 400; }
.footer-col a, .footer-col span { display: block; font-size: 0.88rem; margin-bottom: 0.7rem; color: #91A0A6; font-weight: 300; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 1.8rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.04em; color: #5C6B70; flex-wrap: wrap; gap: 0.8rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s cubic-bezier(.25,.8,.25,1), transform 0.9s cubic-bezier(.25,.8,.25,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 1px solid var(--brass); outline-offset: 3px;
}

/* ===== Case File (representative engagement) ===== */
.case-file { border: 1px solid var(--line); padding: 3.5rem; margin-top: 2rem; }
.section-dark .case-file { border-color: var(--line-dark); }
.case-file-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap;
  gap: 1rem; padding-bottom: 2rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.case-file-head .eyebrow { margin-bottom: 0.4rem; }
.case-tag { font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--slate); border: 1px solid var(--line); padding: 0.4rem 0.8rem; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.case-col .case-label { font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--brass); margin-bottom: 0.9rem; display: block; }
.case-col p { font-size: 0.95rem; }
.case-result { font-family: var(--display); font-size: 1.8rem; font-weight: 400; color: var(--ink); line-height: 1.25; }
@media (max-width: 800px) { .case-grid { grid-template-columns: 1fr; gap: 2rem; } .case-file { padding: 2.2rem; } }
