/* ==========================================================================
   Emsentia — modern-advisory brand
   Warm paper + ink, single restrained indigo→teal accent.
   ========================================================================== */

:root {
  --paper:   #FAF9F6;
  --surface: #FFFFFF;
  --ink:     #15171F;
  --ink2:    #454956;
  --muted:   #7A7F8C;
  --line:    #E8E5DD;
  --accent:  #4A54C7;
  --accent2: #2AB6BE;
  --warm:    #B8863C;
  --grad: linear-gradient(90deg, var(--accent), var(--accent2));

  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 20px 50px -30px rgba(20, 22, 30, .35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

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

/* ---- shared type ---------------------------------------------------------- */
.eyebrow {
  font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
}
.section-lede { font-size: 19px; color: var(--ink); font-weight: 400; max-width: 620px; }
p { color: var(--ink2); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 246, .82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(20,22,30,.02);
}
.nav {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand .mark { width: 30px; height: 30px; }
.brand .wordmark { font-size: 22px; font-weight: 500; letter-spacing: .005em; }
.brand .wordmark b { font-weight: 700; }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: 14px; color: var(--ink2); font-weight: 500;
  position: relative; padding: 4px 0; transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--grad); border-radius: 2px; transition: width .2s ease;
}
.nav-links a:hover::after { width: 100%; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 14px;
  padding: 11px 20px; border-radius: 9px; border: 1px solid var(--ink);
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(20,22,30,.5); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); font-weight: 500; }
.btn.ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn.small { padding: 9px 16px; }

.nav .btn { margin-left: 4px; }

.nav-toggle { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { text-align: center; padding: 96px 0 72px; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); background: var(--surface);
  padding: 6px 14px 6px 10px; border-radius: 999px;
  font-size: 12.5px; color: var(--ink2); margin-bottom: 28px;
}
.hero .kicker .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad);
}
.hero h1 {
  font-size: clamp(38px, 6.4vw, 66px);
  line-height: 1.06; letter-spacing: -.02em; font-weight: 600;
  color: var(--ink); margin: 0 auto 22px; max-width: 12ch;
}
.hero h1 .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent);
}
.hero .sub {
  font-size: 19px; color: var(--ink2); max-width: 600px; margin: 0 auto 34px;
}
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .loc {
  margin-top: 34px; color: var(--muted); font-size: 13px; letter-spacing: .04em;
}

/* ==========================================================================
   Sections
   ========================================================================== */
section.block { padding: 76px 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 44px; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head h2 {
  font-size: clamp(27px, 3.6vw, 38px); line-height: 1.12;
  letter-spacing: -.015em; font-weight: 600; color: var(--ink); max-width: 16ch;
}

/* ---- Services ladder ------------------------------------------------------ */
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; position: relative;
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #dcd8cd; }
.step .num {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.step .tier {
  float: right; font-size: 11px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}
.step h3 { font-size: 19px; font-weight: 600; margin: 12px 0 8px; color: var(--ink); }
.step p { font-size: 14.5px; }

.helm {
  margin-top: 18px;
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 24px 26px;
}
.helm .hmark { flex: none; margin-top: 3px; }
.helm h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.helm p { color: #C9CBD3; font-size: 14.5px; }

/* ---- Approach ------------------------------------------------------------- */
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.principles { display: flex; flex-direction: column; gap: 20px; }
.principle { display: flex; gap: 16px; }
.principle .pn {
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
  color: var(--accent); background: rgba(74, 84, 199, .08); border: 1px solid rgba(74,84,199,.16);
}
.principle h4 { font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.principle p { font-size: 14.5px; }

/* ---- About ---------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 44px; align-items: center; }
.about-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.about-card .avatar {
  width: 56px; height: 56px; border-radius: 12px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 20px;
  letter-spacing: .02em; margin-bottom: 16px;
}
.about-card .who { font-weight: 600; font-size: 17px; }
.about-card .role { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.about-card p { font-size: 14.5px; }
.about-copy p + p { margin-top: 16px; }

/* ==========================================================================
   Contact / CTA
   ========================================================================== */
.cta {
  background: var(--ink); color: #fff; border-radius: 22px;
  padding: 60px 40px; text-align: center; position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% -20%, rgba(74,84,199,.35), transparent 70%);
  pointer-events: none;
}
.cta h2 {
  font-size: clamp(26px, 4vw, 40px); font-weight: 600; letter-spacing: -.015em;
  line-height: 1.1; margin-bottom: 16px; position: relative;
}
.cta h2 .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta p { color: #C9CBD3; max-width: 480px; margin: 0 auto 30px; position: relative; }
.cta .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
.cta .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta .btn:hover { box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); }
.cta .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.cta .btn.ghost:hover { border-color: #fff; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-row .brand .wordmark { font-size: 18px; }
.footer-row .meta { color: var(--muted); font-size: 13px; margin-left: auto; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13.5px; color: var(--ink2); }
.footer-links a:hover { color: var(--ink); }
.footer-fine { color: var(--muted); font-size: 12.5px; margin-top: 18px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .ladder { grid-template-columns: 1fr; }
  .approach-grid, .about-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--surface);
    border-bottom: 1px solid var(--line); padding: 8px 24px 16px; margin: 0;
  }
  .nav-links.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links.open a::after { display: none; }
  .nav .btn.header-cta { display: none; }
  .nav-toggle {
    display: inline-grid; place-items: center; margin-left: auto;
    width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 9px;
    background: var(--surface); cursor: pointer;
  }
  .hero { padding: 64px 0 52px; }
  section.block { padding: 56px 0; }
  .cta { padding: 44px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
