/* MWA Advisory and Management
   Single page. No build step, no dependencies. */

:root {
  --ink: #0e2c39;
  --ink-deep: #082029;
  --paper: #ebeeec;
  --surface: #f7f8f7;
  --text: #14262d;
  --muted: #55676e;
  --rule: #c8cfcd;
  --wire: #9facac;
  --bronze: #8a5a2e;

  --display: "Newsreader", Georgia, serif;
  --ui: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --wrap: 1140px;
  --gutter: 32px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 400; }
p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--ink);
  color: var(--surface);
  padding: 12px 18px;
  font-family: var(--ui);
  font-size: 14px;
}

/* ---------- masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(235, 238, 236, 0.9);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border-bottom: 1px solid var(--rule);
}

.masthead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: 0.22em;
  text-decoration: none;
  color: var(--ink);
  padding-right: 0.22em;
}

.nav {
  display: flex;
  gap: 34px;
  font-family: var(--ui);
  font-size: 15px;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.16s ease;
}
.nav a:hover { border-bottom-color: var(--bronze); }

.burger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 11px;
  width: 16px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.2s ease;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger.is-open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.drawer {
  display: none;
  flex-direction: column;
  padding: 4px var(--gutter) 18px;
  border-top: 1px solid var(--rule);
  font-family: var(--ui);
}
.drawer a {
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 17px;
}
.drawer a:last-child { border-bottom: 0; }

/* ---------- hero ---------- */

.hero { padding: 104px 0 96px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 72px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(41px, 5.6vw, 67px);
  line-height: 1.04;
  letter-spacing: -0.021em;
  color: var(--ink);
  max-width: 13ch;
  margin-bottom: 30px;
}

.lede {
  font-size: 19px;
  line-height: 1.68;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 38px;
}

.cta {
  display: inline-block;
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 450;
  text-decoration: none;
  color: var(--surface);
  background: var(--ink);
  padding: 15px 30px;
  transition: background 0.18s ease;
}
.cta:hover { background: var(--ink-deep); }
.cta:active { background: #041219; }

.hero-figure { margin: 0; }

.chart {
  width: 100%;
  height: auto;
  display: block;
}

.hero-figure figcaption {
  font-family: var(--ui);
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

/* chart pieces */

.box rect {
  fill: var(--surface);
  stroke: var(--wire);
  stroke-width: 1;
}
.box text {
  font-family: var(--ui);
  font-size: 13px;
  fill: var(--ink);
  text-anchor: middle;
}
.box-you rect {
  stroke: var(--bronze);
  stroke-width: 1.5;
}

/* ---------- the one orchestrated moment ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(11px); }
  to   { opacity: 1; transform: none; }
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.hero-text h1,
.hero-text .lede,
.hero-text .cta,
.hero-figure figcaption {
  opacity: 0;
  animation: rise 0.72s cubic-bezier(0.2, 0.72, 0.28, 1) forwards;
}
.hero-text h1 { animation-delay: 0.04s; }
.hero-text .lede { animation-delay: 0.14s; }
.hero-text .cta { animation-delay: 0.24s; }
.hero-figure figcaption { animation-delay: 1.1s; }

.box {
  opacity: 0;
  animation: rise 0.5s cubic-bezier(0.2, 0.72, 0.28, 1) forwards;
  animation-delay: var(--d, 0.18s);
}

.wire {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 0.34s ease-out forwards;
}
.wire:nth-child(1) { animation-delay: 0.34s; }
.wire:nth-child(2) { animation-delay: 0.64s; }
.wire:nth-child(3) { animation-delay: 0.64s; }
.wire:nth-child(4) { animation-delay: 0.64s; }

/* ---------- who ---------- */

.who {
  padding: 78px 0 82px;
  border-top: 1px solid var(--rule);
}

.statement {
  font-size: clamp(24px, 2.9vw, 34px);
  line-height: 1.34;
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: 38ch;
}

/* ---------- what we do ---------- */

.work {
  padding: 8px 0 96px;
}

.work h2,
.method h2 {
  font-size: clamp(29px, 3.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.014em;
  color: var(--ink);
}

.work h2 { margin-bottom: 58px; }

.columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.column {
  padding: 0 38px;
  display: flex;
  flex-direction: column;
}
.column:first-child { padding-left: 0; }
.column:last-child { padding-right: 0; }
.column + .column { border-left: 1px solid var(--rule); }

.column h3 {
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--bronze);
  margin-bottom: 16px;
}

.column p {
  font-size: 16.5px;
  color: var(--muted);
  line-height: 1.68;
  margin-bottom: 26px;
  flex: 1 0 auto;
}

.column li {
  font-family: var(--ui);
  font-size: 14.5px;
  color: var(--ink);
  padding: 11px 0;
  border-top: 1px solid var(--rule);
}
.column li:last-child { border-bottom: 1px solid var(--rule); }

/* ---------- how we work ---------- */

.method {
  padding: 92px 0 96px;
  border-top: 1px solid var(--rule);
}

.method-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 72px;
  align-items: start;
}

.rules > div {
  padding: 26px 0;
  border-top: 1px solid var(--rule);
}
.rules > div:last-child { border-bottom: 1px solid var(--rule); }

.rules dt {
  font-family: var(--ui);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 7px;
}

.rules dd {
  color: var(--muted);
  font-size: 16.5px;
  max-width: 58ch;
}

/* ---------- contact ---------- */

.contact {
  background: var(--ink);
  color: var(--surface);
  padding: 92px 0 96px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 72px;
  align-items: start;
}

.contact h2 {
  font-size: clamp(29px, 3.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.014em;
  max-width: 15ch;
  margin-bottom: 22px;
}

.contact p {
  color: rgba(247, 248, 247, 0.68);
  max-width: 44ch;
}

.reach { padding-top: 6px; }

.email {
  display: inline-block;
  font-family: var(--ui);
  font-size: 19px;
  text-decoration: none;
  color: var(--surface);
  border-bottom: 1px solid rgba(247, 248, 247, 0.35);
  padding-bottom: 4px;
  transition: border-color 0.16s ease;
  word-break: break-word;
}
.email:hover { border-bottom-color: var(--surface); }

.where {
  font-family: var(--ui);
  font-size: 14.5px;
  line-height: 1.62;
  margin-top: 26px;
}

/* ---------- colophon ---------- */

.colophon {
  background: var(--ink-deep);
  padding: 34px 0 38px;
}

.fine {
  font-family: var(--ui);
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(247, 248, 247, 0.6);
  max-width: 76ch;
}

.year { margin-top: 12px; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero-grid,
  .method-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .hero h1 { max-width: 16ch; }
  .hero-figure { max-width: 460px; }
  .columns { grid-template-columns: 1fr; }
  .column { padding: 0; }
  .column + .column {
    border-left: 0;
    border-top: 1px solid var(--rule);
    margin-top: 44px;
    padding-top: 40px;
  }
}

@media (max-width: 720px) {
  :root { --gutter: 22px; }
  body { font-size: 16px; }

  .nav { display: none; }
  .burger { display: block; }
  .drawer { display: flex; }
  .drawer[hidden] { display: none; }

  .hero { padding: 64px 0 68px; }
  .who { padding: 54px 0 58px; }
  .work { padding: 6px 0 64px; }
  .method { padding: 64px 0 68px; }
  .contact { padding: 64px 0 68px; }
  .work h2 { margin-bottom: 40px; }
  .lede { font-size: 17.5px; }
  .cta { display: block; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-text h1,
  .hero-text .lede,
  .hero-text .cta,
  .hero-figure figcaption,
  .box {
    opacity: 1;
    animation: none;
  }
  .wire {
    stroke-dashoffset: 0;
    animation: none;
  }
  * { transition-duration: 0.01ms !important; }
}
