/* Design-only layer. The copied WordPress theme remains the functional source. */
:root {
  --paper: #eaeaea;
  --paper-light: #f2f2f2;
  --soft: #d1d1d2;
  --silver: #b8b8b9;
  --ink: #58575c;
  --charcoal: #36373e;
  --navy: #131720;
  --line: #b8b8b9;
  --page-gutter: clamp(16px, 2.22vw, 36px);
  --section-inset: clamp(30px, 4vw, 72px);
  --tight-gap: clamp(14px, 1.35vw, 24px);
  --panel-radius: .25rem;
  --type-hero: clamp(46px, 5vw, 72px);
  --type-section: clamp(34px, 3.15vw, 52px);
  --type-lead: clamp(17px, 1.35vw, 22px);
}

html,
body { background: var(--paper); }

body {
  color: var(--navy);
  letter-spacing: 0;
}

h1,
h2,
h3 { letter-spacing: 0; }

.brand-hero {
  color: var(--ink);
  background: var(--paper);
}

.brand-hero .introduction {
  font-size: var(--type-hero);
  line-height: .98;
  letter-spacing: 0;
}

.icons-introduction--container .icons-introduction {
  fill: var(--silver);
  opacity: 1;
}

.icons-introduction--container button:hover svg,
.icons-introduction--container button:focus-visible svg,
.icons-introduction--container button.is-active svg {
  fill: var(--navy);
}

.site-header .main-navigation,
.site-header .wordmark { font-size: 16px; }

.site-header {
  padding-top: clamp(20px, 1.7vw, 28px);
}

.site-header .main-navigation {
  gap: 14px;
  padding: 6px 7px 6px 12px;
  border-color: color-mix(in srgb, var(--ink) 18%, transparent);
  background: color-mix(in srgb, var(--paper-light) 78%, transparent);
}

.site-header.is-past-landing {
  transform: translateY(-100%);
  opacity: 0;
}

.main-navigation .nav-contact {
  padding: .42rem .78rem;
  border-color: var(--ink);
}

.main-navigation a[aria-current] { text-decoration: none; }

.section-mid {
  height: calc(100svh - (var(--page-gutter) * 2));
  min-height: 650px;
  margin: var(--page-gutter);
  padding: var(--section-inset);
  border-radius: var(--panel-radius);
}

.advisory-refined {
  color: var(--ink);
  background: var(--silver);
}

.advisory-refined h2,
.philosophy-refined h2 {
  width: min(78%, 1180px);
  max-width: none;
  margin: 0;
  font-size: var(--type-section);
  line-height: 1.08;
}

.advisory-refined .advisory-lower {
  width: min(52%, 760px);
  margin: auto 0 0;
}

.advisory-lower .body-copy {
  max-width: 48ch;
  margin: 0;
  color: var(--ink);
  font-size: var(--type-lead);
  line-height: 1.28;
}

.services-section {
  min-height: calc(100svh - (var(--page-gutter) * 2));
  color: var(--soft);
  background: var(--charcoal);
}

.services-section > .services-heading {
  color: var(--soft);
  font-size: var(--type-section);
  line-height: 1.08;
}

.services-grid { gap: var(--tight-gap); }

.service-card {
  aspect-ratio: .96 / 1;
  padding: clamp(26px, 2.25vw, 40px);
  color: var(--paper-light);
  background: var(--ink);
}

.service-card-title {
  font-size: clamp(24px, 1.9vw, 32px);
  line-height: 1.05;
  letter-spacing: 0;
}

.service-card-description {
  max-width: 30ch;
  font-size: clamp(16px, 1.15vw, 20px);
  line-height: 1.25;
}

.service-image-tint {
  background: var(--ink);
  opacity: .64;
  mix-blend-mode: multiply;
}

.philosophy-refined {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--silver);
  background: var(--navy);
}

.philosophy-refined h2 { color: var(--silver); }

.philosophy-refined .philosophy-note {
  position: relative;
  z-index: 1;
  width: min(52%, 760px);
  max-width: 48ch;
  margin: auto 0 0;
  color: var(--silver);
  font-size: var(--type-lead);
  line-height: 1.28;
}

.philosophy-film {
  transform: scale(1.55);
  opacity: .44;
}

.insights-refined {
  position: relative;
  top: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  height: auto;
  min-height: calc(100svh - (var(--page-gutter) * 2));
  overflow: visible;
  overflow-anchor: none;
  color: var(--navy);
  background: var(--soft);
}

.insights-heading {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--tight-gap);
  align-items: start;
}

.insights-heading h2.insights-logotype {
  grid-column: 1 / 5;
  width: auto;
  max-width: 8ch;
  margin: 0;
  color: var(--navy);
  font-size: var(--type-section);
  line-height: 1.05;
}

.insights-intro {
  grid-column: 10 / 13;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-self: stretch;
  gap: 2px;
  width: 100%;
  color: var(--ink);
  text-align: right;
}

.insights-intro .view-all,
.insights-intro .channel-links a {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font-size: var(--type-lead);
  line-height: 1.15;
  text-decoration: none;
}

.insights-intro .view-all:hover,
.insights-intro .channel-links a:hover { color: var(--navy); background: transparent; opacity: .55; }

.insights-intro .channel-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.insights-selection {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  margin-top: auto;
  padding-top: clamp(56px, 5vw, 80px);
  border: 0;
  color: var(--navy);
}

.insight-row,
.insight-row:first-of-type,
.insight-row:last-child {
  min-width: 0;
  border: 0;
  border-left: 1px solid var(--silver);
}

.insight-row:last-child { border-right: 1px solid var(--silver); }

.insights-refined .insight-row > a,
.insights-refined .insight-row > a:not(:has(img:not([hidden]))) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto auto;
  gap: 0;
  height: 100%;
  min-height: 0;
  padding: 0 clamp(16px, 1.35vw, 24px);
  color: inherit;
}

.insights-refined .insight-row:first-of-type > a { padding-left: clamp(16px, 1.35vw, 24px); }
.insights-refined .insight-row:last-child > a { padding-right: clamp(16px, 1.35vw, 24px); }

.insight-date {
  display: block;
  order: 0;
  margin: 0 0 clamp(52px, 5.4vw, 82px);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.insight-row h3 {
  order: 0;
  max-width: 28ch;
  margin: 0 0 clamp(22px, 2vw, 32px);
  color: var(--navy);
  font-size: clamp(21px, 1.65vw, 28px);
  line-height: 1.08;
  letter-spacing: 0;
}

.insight-type {
  order: 0;
  margin: clamp(12px, 1vw, 18px) 0 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
  text-transform: uppercase;
}

.insight-thumbnail {
  order: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--panel-radius);
  filter: grayscale(1);
}

.extra-insight {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition:
    max-height .58s cubic-bezier(.22, 1, .36, 1),
    margin-top .58s cubic-bezier(.22, 1, .36, 1),
    opacity .34s ease,
    transform .58s cubic-bezier(.22, 1, .36, 1);
}

.extra-insight.is-visible {
  max-height: 900px;
  margin-top: clamp(48px, 5vw, 76px);
  opacity: 1;
  transform: translateY(0);
}

.extra-insight[hidden] { display: none !important; }

.insights-more {
  grid-column: 1 / -1;
  justify-self: end;
  margin: clamp(28px, 4vh, 48px) 0 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  cursor: pointer;
  overflow-anchor: none;
}

.insights-more:hover,
.insights-more:focus-visible { color: var(--navy); }

.insights-refined.is-expanded {
  position: relative;
  top: auto;
  height: auto;
  min-height: 0;
  overflow: visible;
}

.insights-refined.is-expanded .insights-selection {
  margin-top: var(--insights-preserved-margin, 0px);
}

.contact-refined,
.contact-refined.active {
  position: sticky;
  z-index: 1;
  height: calc(100svh - (var(--page-gutter) * 2));
  min-height: 650px;
  color: var(--paper-light);
  background: var(--navy);
}

.contact-refined h2 {
  width: min(46%, 720px);
  max-width: 18ch;
  color: var(--silver);
  font-size: var(--type-section);
  line-height: 1.08;
  letter-spacing: 0;
}

.contact-refined h2 a { color: var(--paper); }
.contact-refined h2 a:hover,
.contact-refined h2 a:focus-visible { color: var(--paper); }

.contact-options {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  color: var(--silver);
  font-size: clamp(20px, 1.55vw, 27px);
  line-height: 1.14;
}

.contact-options a {
  display: inline-flex;
  align-items: baseline;
  color: inherit;
  font-size: inherit;
}

.contact-options a::before {
  content: "→";
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: width .22s ease, opacity .22s ease;
}

.contact-options a:hover,
.contact-options a:focus-visible { color: var(--paper); }

.contact-options a:hover::before,
.contact-options a:focus-visible::before { width: 1.1em; opacity: 1; }

/* Once a new panel has fully layered over the previous one, prevent the old
   sticky panel from reappearing through the intentional section gap. */
.section-mid.is-underlaid { visibility: hidden; }

/* Keep one original theme icon and let the footer rise over the composition. */
.section-icon-right { display: none !important; }

.section-icon.brand-bridge {
  position: sticky;
  top: var(--page-gutter);
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  width: auto;
  height: calc(100svh - (var(--page-gutter) * 2));
  min-height: 650px;
  margin: var(--page-gutter);
  padding: var(--section-inset);
  transform: none;
  pointer-events: none;
}

.section-icon .bridge-icon {
  position: static;
  width: min(43vw, 690px);
  height: auto;
  margin-left: auto;
  fill: var(--silver);
  opacity: 1;
}

.site-footer {
  z-index: 5;
  background: var(--ink);
}

.site-footer > .footer-subscribe {
  width: min(480px, 100%);
  height: auto;
  min-height: 0;
  margin: 0;
  overflow: visible;
}

.substack-pill {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 6px;
  border: 1px solid var(--silver);
  border-radius: 999px;
  background: transparent;
}

.substack-pill input[type="email"] {
  min-width: 0;
  flex: 1;
  padding: 0 clamp(14px, 1.35vw, 22px);
  border: 0;
  outline: 0;
  color: var(--paper);
  background: transparent;
  font-family: inherit;
  font-size: var(--type-nav);
  font-weight: 400;
  line-height: 1.2;
}

.substack-pill input[type="email"]::placeholder {
  color: var(--silver);
  opacity: 1;
}

.substack-pill button {
  flex: 0 0 auto;
  padding: .42rem .9rem;
  border: 1.5px solid var(--paper);
  border-radius: 999px;
  color: var(--paper);
  background: transparent;
  font-family: inherit;
  font-size: var(--type-nav);
  font-weight: 400;
  line-height: 1.2;
  transition: color .25s ease, background-color .25s ease;
}

.substack-pill button:hover,
.substack-pill button:focus-visible {
  color: var(--ink);
  background: var(--paper);
}

.substack-pill input:-webkit-autofill {
  -webkit-text-fill-color: var(--paper);
  transition: background-color 9999s ease-out;
}

.substack-result { display: none; }

@media (min-width: 1101px) {
  .section-mid {
    margin-bottom: var(--page-gutter);
  }

  .advisory-refined,
  .services-section,
  .philosophy-refined {
    margin-bottom: calc(var(--page-gutter) + 100svh);
  }

  .insights-refined {
    position: sticky;
    top: var(--page-gutter);
    margin-bottom: calc(var(--page-gutter) + 42svh);
  }

  .insights-refined.is-expanded {
    position: relative;
    top: auto;
    margin-bottom: var(--page-gutter);
  }

  .contact-refined {
    margin-bottom: var(--page-gutter);
  }
}

@media (max-width: 1100px) {
  .section-mid { height: auto; min-height: calc(100svh - (var(--page-gutter) * 2)); }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { aspect-ratio: 16 / 8; }
  .insights-selection { grid-template-columns: 1fr; margin-top: auto; padding-top: 64px; }
  .insight-row,
  .insight-row:first-of-type,
  .insight-row:last-child { border-right: 0; border-left: 0; border-top: 1px solid var(--silver); }
  .insights-refined .insight-row > a,
  .insights-refined .insight-row > a:not(:has(img:not([hidden]))) { padding: 24px 0; }
  .insight-date { margin-bottom: 44px; }
  .extra-insight { margin-top: 0; }
  .contact-refined h2 { width: min(62%, 720px); }
  .section-icon .bridge-icon { width: min(54vw, 620px); }
}

@media (max-width: 768px) {
  :root { --section-inset: 24px; }
  .site-header .main-navigation,
  .site-header .wordmark { font-size: 15px; }
  .brand-hero .introduction { font-size: clamp(30px, 8.6vw, 40px); }
  .advisory-refined h2,
  .philosophy-refined h2,
  .services-section > .services-heading,
  .insights-heading h2.insights-logotype,
  .contact-refined h2 { width: 100%; max-width: 100%; font-size: 32px; line-height: 1.06; }
  .advisory-refined .advisory-lower,
  .philosophy-refined .philosophy-note { width: 100%; }
  .service-card { aspect-ratio: 1; }
  .insights-heading { display: flex; flex-direction: column; gap: 24px; }
  .insights-intro { align-items: flex-start; text-align: left; }
  .insights-intro .channel-links { justify-content: flex-start; }
  .insights-selection { margin-top: auto; padding-top: 54px; }
  .site-footer > .footer-subscribe { width: 100%; height: auto; }
  .substack-pill { padding: 5px; }
  .substack-pill input[type="email"],
  .substack-pill button { font-size: 16px; }
  .contact-refined { height: auto; min-height: 760px; }
  .contact-options { font-size: 20px; }
  .section-icon.brand-bridge {
    display: flex;
    position: relative;
    top: 0;
    height: auto;
    min-height: 0;
    margin: 16px;
    padding: 24px;
  }
  .section-icon .bridge-icon {
    position: static;
    width: min(64vw, 360px);
    opacity: .88;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-options a::before { transition: none; }
}
