/* Enright Logic — "Murmuration". Dusk sky, a live flock, soft greens, an elegant serif.
   Shared by every page. */
:root {
  --ink: #1e2433; --soft: #5b6276; --mist: #f3f2f6; --paper: #faf7f6; --white: #fff;
  --line: rgba(30,36,51,.16);
  --sky1: #f9dccb; --sky2: #efd6e1; --sky3: #c9d4ec;
  --leaf: #97b78f; --leaf-dark: #6f9473;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Albert Sans", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--mist); color: var(--ink); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 300; margin: 0; letter-spacing: -0.01em; line-height: 1.02; }
h2 { font-size: clamp(40px, 5.2vw, 72px); max-width: 13em; }
h3 { font-size: clamp(28px, 3vw, 38px); font-weight: 400; line-height: 1.08; }
p { margin: 0 0 1em; }
.lede { max-width: 34em; margin: 24px 0 0; color: var(--soft); font-size: 18.5px; }
.muted { color: var(--soft); }
section { padding: 120px 0; }
.tight { padding: 80px 0; }
.white { background: var(--white); }
.paper { background: var(--paper); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-block; padding: 13px 26px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; border: 0; cursor: pointer; }
.btn.ghost { background: rgba(255,255,255,.45); color: var(--ink); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px var(--line); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.textlink { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.textlink:hover { border-color: var(--ink); }

/* Sky header with the live flock */
.hero { position: relative; background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 48%, var(--sky3) 100%); overflow: hidden; display: flex; flex-direction: column; }
.hero.full { min-height: min(100vh, 940px); }
.hero.page { min-height: 460px; }
#flock { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero > .wrap { position: relative; z-index: 2; width: 100%; }
.hero > .wrap:first-of-type { z-index: 5; } /* the nav, so its dropdown sits above the headline */
nav.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; }
.logo { font: 500 23px var(--serif); text-decoration: none; letter-spacing: .01em; display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.logo svg { width: 22px; height: 22px; }
nav.top ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; font-size: 15px; }
nav.top ul a { text-decoration: none; }
/* Services dropdown: the four things, one hover away. */
.has-menu { position: relative; }
.has-menu .menu { position: absolute; top: 100%; left: -24px; padding-top: 14px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 10; }
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: none; }
.menu-panel { width: 360px; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-radius: 20px; padding: 10px; box-shadow: 0 0 0 1px var(--line), 0 24px 48px -24px rgba(30,36,51,.45); }
.menu-panel a { display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none; }
.menu-panel a:hover, .menu-panel a:focus-visible { background: var(--mist); }
.menu-panel .v { font: italic 400 16px var(--serif); color: var(--soft); }
.menu-panel b { display: block; font: 400 22px/1.1 var(--serif); margin: 1px 0 3px; }
.menu-panel span { display: block; font-size: 13.5px; color: var(--soft); line-height: 1.4; }
nav.top ul a[aria-current="page"] { border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.hero-copy { margin-top: auto; padding-bottom: 64px; pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.hero h1 { font-size: clamp(48px, 7vw, 104px); max-width: 10em; }
.hero.page h1 { font-size: clamp(44px, 6vw, 84px); }
.hero h1 i { font-weight: 300; }
.hero .intro { font-size: 18.5px; max-width: 32em; margin: 26px 0 30px; color: #3d4457; }
.caption { position: absolute; right: 28px; bottom: 30px; z-index: 2; max-width: 20em; text-align: right; font: italic 400 18px/1.35 var(--serif); color: #3d4457; margin: 0; }

/* Business first strip */
.firsts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
.firsts h3 { margin-bottom: 12px; }
.firsts p { color: var(--soft); }

/* Roost: trees + chart of birds */
.roostwrap { position: relative; margin-top: 50px; }
.roost svg { width: 100%; height: auto; display: block; overflow: visible; }
.roost text { font: 500 14px var(--sans); fill: var(--ink); }
.roost .note { font: italic 400 20px var(--serif); fill: var(--soft); }
#roostBirds { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.returns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.returns div { padding: 18px 20px 0 0; font-size: 15.5px; }
.returns b { display: block; font: 400 26px/1.1 var(--serif); margin-bottom: 6px; }
.returns span { color: var(--soft); }

/* Comparison table */
.tbl { overflow-x: auto; margin-top: 50px; }
table.compare { width: 100%; border-collapse: collapse; min-width: 740px; }
.compare th, .compare td { text-align: left; padding: 20px 22px; vertical-align: top; font-size: 16px; }
.compare thead th { font: 500 29px/1.1 var(--serif); padding-bottom: 24px; }
.compare tbody th { font-weight: 500; color: var(--soft); width: 24%; }
.compare tbody tr { border-top: 1px solid var(--line); }
.compare .us { background: rgba(201,212,236,.38); font-weight: 500; }
.compare thead .us { border-radius: 20px 20px 0 0; background: linear-gradient(160deg, #e9b8a6, #b9a3c9 55%, #8e9fcf); color: #fff; font-style: italic; }
.compare tbody tr:last-child .us { border-radius: 0 0 20px 20px; }

/* Services */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.pillar { padding: 34px 40px 38px 0; border-bottom: 1px solid var(--line); }
.pillar:nth-child(odd) { border-right: 1px solid var(--line); }
.pillar:nth-child(even) { padding-left: 40px; padding-right: 0; }
.pillar .verb { font: italic 400 20px var(--serif); color: var(--soft); display: block; margin-bottom: 6px; }
.pillar h3 { margin-bottom: 14px; }
.pillar p { color: var(--soft); margin-bottom: 14px; }
.pillar ul { margin: 0 0 18px; padding-left: 18px; color: var(--ink); font-size: 15.5px; }
.pillar li { margin: 4px 0; }

/* Service detail pages */
.service { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; padding: 90px 0; border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; }
.service .verb { font: italic 400 22px var(--serif); color: var(--soft); display: block; margin-bottom: 8px; }
.service h2 { font-size: clamp(36px, 4.2vw, 56px); }
.service .body > p { color: var(--soft); font-size: 17.5px; }
.offer { margin-top: 28px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.offer div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.offer b { display: block; font: 400 24px/1.15 var(--serif); margin-bottom: 4px; }
.offer span { color: var(--soft); font-size: 15.5px; }
.example { margin-top: 26px; background: var(--white); border-radius: 22px; padding: 24px 26px; }
.example .tag { font: italic 400 18px var(--serif); color: var(--soft); display: block; margin-bottom: 6px; }
.example p { margin: 0; }

/* How we work: the loop */
.loop { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); counter-reset: none; }
.loop.three { grid-template-columns: repeat(3, 1fr); }
.loop li { padding: 24px 24px 0 0; }
.loop .when { font: 400 34px/1 var(--serif); display: block; margin-bottom: 12px; }
.loop p { color: var(--soft); font-size: 15.5px; }
.weird { display: grid; grid-template-columns: repeat(2, 1fr); gap: 46px 60px; margin-top: 56px; }
.weird h3 { margin-bottom: 10px; }
.weird p { color: var(--soft); }
.quote { font: italic 300 clamp(30px, 3.6vw, 46px)/1.15 var(--serif); max-width: 22em; margin: 0; }

/* Philosophy */
.tenets { list-style: none; padding: 0; margin: 60px 0 0; counter-reset: tenet; }
.tenets li { counter-increment: tenet; display: grid; grid-template-columns: 80px 1fr; gap: 10px 30px; padding: 44px 0; border-top: 1px solid var(--line); }
.tenets li::before { content: counter(tenet); font: 300 40px/1 var(--serif); color: var(--soft); }
.tenets h3 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 14px; max-width: 18em; }
.tenets p { color: var(--soft); max-width: 40em; }
.tenets li > div { min-width: 0; }
.teaser { list-style: none; padding: 0; margin: 50px 0 34px; border-top: 1px solid var(--line); }
.teaser li { padding: 22px 0; border-bottom: 1px solid var(--line); font: 300 clamp(26px, 2.8vw, 36px)/1.15 var(--serif); }

/* About */
.about { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.portrait { border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--sky3); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
/* Portrait: a duotone cut-out on a dusk circle. The head breaks out over the top;
   below the circle's centre the figure is clipped to the circle. */
.duo { position: relative; margin: 0; width: 100%; max-width: 500px; aspect-ratio: 841 / 1000; }
.duo::before { content: ""; position: absolute; left: 4%; width: 92%; bottom: 0; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.35), transparent 45%), linear-gradient(160deg, var(--sky1) 0%, #dcbccd 45%, #8e9fcf 100%); }
.duo img { position: relative; width: 100%; height: 100%;
  -webkit-mask: linear-gradient(#000, #000) top / 100% 61.3% no-repeat, radial-gradient(ellipse 46% 38.7% at 50% 61.3%, #000 99.4%, transparent 100%);
          mask: linear-gradient(#000, #000) top / 100% 61.3% no-repeat, radial-gradient(ellipse 46% 38.7% at 50% 61.3%, #000 99.4%, transparent 100%); }
.duo svg { position: absolute; right: -2%; top: 6%; width: 26%; }
.facts { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.facts div { padding: 18px 16px 0 0; }
.facts b { display: block; font: 400 34px/1 var(--serif); margin-bottom: 6px; }
.facts span { color: var(--soft); font-size: 14.5px; }
.timeline { list-style: none; padding: 0; margin: 30px 0 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline .yr { color: var(--soft); font-size: 15px; }
.timeline b { font-weight: 500; }

/* Notes */
.posts { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--line); }
.posts li { padding: 26px 0; border-bottom: 1px solid var(--line); }
.posts a { text-decoration: none; }
.posts h3 { margin-bottom: 8px; }
.posts time { color: var(--soft); font-size: 14.5px; }
.posts p { color: var(--soft); margin: 8px 0 0; max-width: 40em; }
article.post { padding: 90px 0 120px; }
article.post .meta { color: var(--soft); font-size: 15px; margin-bottom: 40px; }
article.post p, article.post li { font-size: 18.5px; line-height: 1.72; }
article.post h2 { font-size: clamp(30px, 3.4vw, 42px); margin: 56px 0 18px; }
article.post ol, article.post ul { padding-left: 22px; margin: 0 0 1.2em; }
article.post li { margin: 8px 0; }
article.post blockquote { margin: 34px 0; padding-left: 24px; border-left: 2px solid var(--sky3); font: italic 300 26px/1.35 var(--serif); }

/* Agents / MCP */
.agent { padding: 110px 0 130px; text-align: center; background: linear-gradient(180deg, var(--white), var(--sky3)); }
.agent h2 { font-size: clamp(36px, 4.4vw, 56px); margin: 0 auto; max-width: 18em; }
.agent p { color: var(--soft); margin: 14px auto 26px; max-width: 32em; }
.agent code { font: 500 16px ui-monospace, Menlo, monospace; padding: 14px 20px; border-radius: 999px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--line); display: inline-block; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 50px; }
.contact-grid h3 { margin-bottom: 12px; }
.contact-grid p { color: var(--soft); }
.big-email { font: 300 clamp(28px, 3.2vw, 42px) var(--serif); text-decoration: none; border-bottom: 1px solid var(--line); }

/* Footer */
footer.site { background: var(--ink); color: #d9dde7; padding: 70px 0 50px; font-size: 15px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
footer.site h4 { font: 400 22px var(--serif); color: #fff; margin-bottom: 14px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin: 6px 0; }
footer.site a { text-decoration: none; color: #d9dde7; }
footer.site a:hover { color: #fff; }
footer.site .fine { margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #9aa2b4; font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; }
footer.site code { font-size: 13px; color: #fff; }

@media (max-width: 960px) {
  nav.top ul { display: none; }
  .firsts, .loop { grid-template-columns: 1fr 1fr; }
  .loop.three { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar:nth-child(n) { padding: 30px 0; border-right: 0; }
  .service, .about, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .weird { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .returns { grid-template-columns: 1fr 1fr; gap: 20px; }
  .caption { position: relative; right: auto; bottom: auto; text-align: left; margin: 0 28px 28px; }
}
@media (max-width: 700px) {
  .hero .hero-copy { padding-top: 190px; }
  .hero.page .hero-copy { padding-top: 150px; }
  table.compare { min-width: 0; }
  .compare thead { display: none; }
  .compare tbody tr { display: block; padding: 18px 0; }
  .compare tbody th { display: block; width: auto; padding: 0 0 8px; font: 400 24px var(--serif); color: var(--ink); }
  .compare tbody td { display: flex; justify-content: space-between; gap: 16px; padding: 8px 12px; text-align: right; }
  .compare tbody td::before { content: attr(data-label); color: var(--soft); flex: none; }
  .compare tbody td.us, .compare tbody tr:last-child .us { border-radius: 10px; }
  .compare tbody td.us::before { font-style: italic; color: var(--ink); }
}
@media (max-width: 600px) {
  section { padding: 80px 0; }
  .firsts, .loop, .facts { grid-template-columns: 1fr; }
  .tenets li { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  footer.site .cols { grid-template-columns: 1fr; }
}
