/* ============================================================
   EvolvedWork — Editorial design system
   ============================================================ */

:root {
  /* Brand */
  --indigo:   #2F2E4A;
  --teal:     #096A6A;
  --aqua:     #4DB2B2;
  --ivory:    #F4F3EC;
  --mist:     #D5E9E8;

  /* Working tokens */
  --ink:      #1B1B2B;
  --ink-soft: #5A5A6B;
  --line:     #E2E1DA;
  --line-2:   #D9E4E2;
  --paper:    #FFFFFF;
  --paper-2:  #FBFAF6;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.2,.6,.2,1);
}

/* Reset */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 132px) 0; }
.section--tight { padding: clamp(48px, 6vw, 84px) 0; }
.bg-ivory  { background: var(--ivory); }
.bg-paper2 { background: var(--paper-2); }
.bg-indigo { background: var(--indigo); color: #EDEDF2; }
.bg-teal   { background: var(--teal);   color: #EAF4F2; }

/* Typography */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-block;
  margin-bottom: 22px;
}
.bg-indigo .eyebrow, .bg-teal .eyebrow { color: var(--aqua); }

h1,h2,h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; color: var(--ink); }
.bg-indigo h1,.bg-indigo h2,.bg-indigo h3,.bg-teal h1,.bg-teal h2,.bg-teal h3 { color: #fff; }

h1 { font-size: clamp(40px, 6.4vw, 78px); }
h2 { font-size: clamp(30px, 4.2vw, 52px); }
h3 { font-size: clamp(21px, 2.4vw, 28px); }
.display-i { font-style: italic; color: var(--teal); }
.bg-indigo .display-i, .bg-teal .display-i { color: var(--aqua); }

.lead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.5; color: var(--ink-soft); font-weight: 400; }
.bg-indigo .lead, .bg-teal .lead { color: #C9C9D6; }
p { color: var(--ink-soft); }
.bg-indigo p, .bg-teal p { color: #C9C9D6; }
strong { color: var(--ink); font-weight: 600; }
.bg-indigo strong, .bg-teal strong { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  padding: 14px 26px; border-radius: 2px;
  transition: all .25s var(--ease); cursor: pointer; border: 1px solid transparent;
}
.btn .arw { transition: transform .25s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--indigo); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--light { background: #fff; color: var(--indigo); }
.btn--light:hover { background: var(--mist); }
.btn--outline-l { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-l:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Inline text link */
.tlink { color: var(--teal); font-weight: 500; border-bottom: 1px solid var(--line-2); padding-bottom: 1px; transition: border-color .2s; }
.tlink:hover { border-color: var(--teal); }
.bg-indigo .tlink, .bg-teal .tlink { color: var(--aqua); border-color: rgba(255,255,255,.3); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .mark { width: 26px; height: 26px; flex: none; }
.brand .name { font-family: var(--serif); font-size: 23px; letter-spacing: -.01em; }
.brand .name b { font-weight: 600; }
.brand .name .w { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 15px; color: var(--ink); position: relative; padding: 6px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0; background: var(--teal); transition: width .25s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--teal); }
.nav-cta { display: flex; align-items: center; gap: 22px; }
.menu-btn { display: none; background: none; border: 0; font-size: 26px; color: var(--ink); cursor: pointer; line-height: 1; }

@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 0; transform: translateY(-130%); transition: transform .3s var(--ease); }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 16px var(--gutter); border-top: 1px solid var(--line); }
  .nav-cta .btn { display: none; }
  .menu-btn { display: block; }
}

/* ---------------- Hero ---------------- */
.hero { padding: clamp(72px, 11vw, 150px) 0 clamp(56px, 8vw, 110px); position: relative; overflow: hidden; }
.hero .eyebrow { margin-bottom: 28px; }
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 56ch; margin-top: 28px; }
.hero .actions { margin-top: 42px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-rule { margin-top: clamp(48px,7vw,86px); border-top: 1px solid var(--line); padding-top: 30px; display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.hero-rule .stat .n { font-family: var(--serif); font-size: clamp(30px,3.4vw,42px); color: var(--teal); line-height: 1; }
.hero-rule .stat .l { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }
@media (max-width:680px){ .hero-rule { grid-template-columns: 1fr; gap: 22px; } }

/* ---------------- Generic grids ---------------- */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,72px); align-items: start; }
.cols-2.center { align-items: center; }
@media (max-width: 820px){ .cols-2 { grid-template-columns: 1fr; gap: 40px; } }

.section-head { max-width: 62ch; margin-bottom: clamp(40px,5vw,64px); }
.section-head .lead { margin-top: 22px; }

/* Doors */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); }
.door { padding: clamp(34px,4vw,52px); position: relative; transition: background .3s var(--ease); }
.door:first-child { border-right: 1px solid var(--line); }
.door .tag { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.door h3 { margin: 16px 0 14px; }
.door .top-bar { height: 4px; width: 56px; margin-bottom: 26px; }
.door--b .top-bar { background: var(--teal); }
.door--c .top-bar { background: var(--indigo); }
.door ul { list-style: none; margin: 22px 0 30px; }
.door ul li { padding: 11px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 15.5px; display: flex; gap: 12px; }
.door ul li::before { content: "→"; color: var(--aqua); }
.door:hover { background: var(--paper-2); }
.door .who { font-size: 13.5px; color: var(--ink-soft); font-style: italic; margin-top: 8px; }
@media (max-width: 820px){ .doors { grid-template-columns: 1fr; } .door:first-child { border-right: none; border-bottom: 1px solid var(--line); } }

/* Feature rows (numbered) */
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 90px 1fr; gap: clamp(20px,4vw,52px); padding: clamp(30px,4vw,44px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.step .idx { font-family: var(--mono); font-size: 14px; color: var(--aqua); letter-spacing: .1em; padding-top: 6px; }
.step h3 { margin-bottom: 12px; }
.step .body { max-width: 60ch; }
@media (max-width: 640px){ .step { grid-template-columns: 1fr; gap: 8px; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: #fff; padding: clamp(28px,3.4vw,42px); transition: background .25s var(--ease); }
.card:hover { background: var(--paper-2); }
.card .k { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.card h3 { margin: 14px 0 12px; }
.card p { font-size: 15.5px; }
@media (max-width: 760px){ .cards { grid-template-columns: 1fr; } }

/* Pull quote */
.pull { max-width: 22ch; }
.pull blockquote { font-family: var(--serif); font-size: clamp(26px,3.6vw,44px); line-height: 1.18; letter-spacing: -.01em; }

/* Belief list */
.beliefs { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(24px,3vw,40px); }
.belief { border-top: 2px solid var(--aqua); padding-top: 20px; }
.belief h3 { font-size: 20px; margin-bottom: 10px; }
.belief p { font-size: 15px; }
@media (max-width: 820px){ .beliefs { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { text-align: left; }
.cta-band .inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta-band h2 { max-width: 16ch; }
.cta-band .actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 820px){ .cta-band .inner { grid-template-columns: 1fr; } .cta-band .actions { justify-content: flex-start; } }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  border: 1px solid var(--line); background: #fff; padding: 13px 15px; border-radius: 2px; transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.field textarea { resize: vertical; min-height: 130px; }
@media (max-width: 640px){ .form-grid { grid-template-columns: 1fr; } }

/* Breadcrumb / page hero */
.page-hero { padding: clamp(60px,8vw,110px) 0 clamp(36px,4vw,56px); border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero p.lead { margin-top: 24px; max-width: 60ch; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--indigo); color: #C9C9D6; padding: clamp(56px,7vw,88px) 0 36px; }
.site-footer h2 { color: #fff; max-width: 16ch; margin-bottom: 24px; font-size: clamp(26px,3.4vw,40px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-col h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--aqua); margin-bottom: 18px; font-weight: 400; }
.footer-col a { display: block; color: #C9C9D6; font-size: 15px; padding: 7px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 13px; color: #8E8EA0; flex-wrap: wrap; gap: 14px; }
.footer-bottom .brand .name { color: #fff; font-size: 20px; }
@media (max-width: 760px){ .footer-top { grid-template-columns: 1fr; gap: 32px; } }

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

/* ---------------- Visual / imagery ---------------- */
.media { border-radius: 4px; overflow: hidden; position: relative; background: var(--mist); }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media--tall  { aspect-ratio: 4 / 5; }
.media--wide  { aspect-ratio: 16 / 10; }
.media--sq    { aspect-ratio: 1 / 1; }
.media .badge {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  background: rgba(255,255,255,.92); color: var(--indigo);
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 2px;
}

/* Split hero: text + visual */
.hero--split { padding: clamp(48px,7vw,96px) 0 clamp(48px,7vw,90px); }
.hero--split .grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px,5vw,64px); align-items: center; }
.hero--split .media { aspect-ratio: 19 / 20; }
@media (max-width: 880px){ .hero--split .grid { grid-template-columns: 1fr; } .hero--split .media { aspect-ratio: 16/11; } }

/* Feature cards (image-topped, McKinsey style) */
.feature-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(20px,2.4vw,30px); }
.fcard { display: flex; flex-direction: column; text-decoration: none; group: card; }
.fcard .media { aspect-ratio: 16 / 11; margin-bottom: 20px; transition: transform .4s var(--ease); }
.fcard:hover .media img { transform: scale(1.05); }
.fcard .media img { transition: transform .5s var(--ease); }
.fcard h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.fcard .arw { color: var(--teal); transition: transform .25s var(--ease); font-family: var(--sans); }
.fcard:hover .arw { transform: translateX(5px); }
.fcard p { margin-top: 10px; font-size: 15.5px; }
.fcard .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
@media (max-width: 880px){ .feature-cards { grid-template-columns: 1fr; max-width: 460px; } }

/* Split media row */
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,72px); align-items: center; }
.media-row.flip .media { order: -1; }
.media-row .media { aspect-ratio: 4 / 3; }
@media (max-width: 820px){ .media-row { grid-template-columns: 1fr; gap: 32px; } .media-row.flip .media { order: 0; } }

/* Big feature band (image + overlay text) */
.feature-band { position: relative; border-radius: 4px; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; }
.feature-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-band .scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,27,43,.86) 0%, rgba(27,27,43,.45) 55%, rgba(27,27,43,.15) 100%); }
.feature-band .content { position: relative; z-index: 2; padding: clamp(32px,5vw,56px); max-width: 620px; }
.feature-band .content h2, .feature-band .content p { color: #fff; }
.feature-band .content p { color: #D7E4E2; }

/* Utility */
.mt-s { margin-top: 18px; } .mt-m { margin-top: 30px; } .mt-l { margin-top: 48px; }
.center-text { text-align: center; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }
