/* Front page */
main > section.frontpage {
  padding-block: clamp(20px, 2.9vw, 40px) clamp(12px, 2vw, 24px);
}
.front-mast {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: .3rem 1rem; margin-bottom: clamp(16px, 2vw, 30px);
}
.front-mast > div:not(.folio-motion) { grid-column: 1; grid-row: 1 / 3; }
.mast-byline {
  grid-column: 1; grid-row: 1; color: #39435f;
  font: 650 .88rem/1.35 var(--sans); letter-spacing: .03em;
}
.front-mast h1 {
  grid-column: 1; grid-row: 2;
  color: #17213b; font: 400 clamp(3.7rem, 7.3vw, 6.9rem)/.99 var(--serif);
  letter-spacing: -.065em;
}
.front-mast h1 em { color: #2446de; font-weight: 400; }
.folio-motion {
  grid-column: 2; grid-row: 1 / 3; position: relative; justify-self: end;
  width: clamp(5rem, 13vw, 12rem); height: clamp(3.5rem, 6.8vw, 6.8rem); overflow: hidden;
}
.folio-motion i {
  position: absolute; top: 10%; bottom: 10%; width: 39%;
  background: #2446de; transform: skew(-21deg); transform-origin: center bottom;
}
.folio-motion i:nth-child(1) { left: 3%; background: #17213b; }
.folio-motion i:nth-child(2) { left: 26%; background: #def46b; }
.folio-motion i:nth-child(3) { left: 52%; }
.lead-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.3vw, 38px); }
.lead-story { min-width: 0; border-top: 3px solid #17213b; }
.lead-story[data-lead="mylegge"] { border-color: #2446de; }
.lead-meta {
  display: flex; gap: .3rem .6rem; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; padding-block: .62rem;
}
.lead-meta h2 { color: #17213b; font: 750 clamp(.92rem, 1.28vw, 1.13rem)/1.2 var(--sans); letter-spacing: -.025em; }
.lead-meta time, .agenda-story time { color: #4d5973; font: 550 .83rem/1.35 var(--sans); }
.lead-visual {
  display: block; margin: 0; width: 100%; aspect-ratio: 2.25;
  overflow: hidden; background: #e9eefb;
}
.lead-visual img { width: 100%; height: 100%; object-fit: cover; }
.lead-visual:has(img[hidden]), .lead-visual:empty { display: none; }
.lead-body { min-width: 0; padding-top: .85rem; }
.lead-body h3 {
  color: #17213b; font: 500 clamp(1.48rem, 2.1vw, 2.05rem)/1.14 var(--serif);
  letter-spacing: -.035em; overflow-wrap: break-word;
}
.lead-body h3 a { color: inherit; text-decoration: none; }
.lead-body h3 a:is(:hover, :focus-visible) { color: #2446de; text-decoration: underline; text-decoration-thickness: 1px; }
.lead-body p { color: #424d66; margin-top: .65rem; font-size: 1rem; line-height: 1.5; }
.section-jumps {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1.5rem;
  border-block: 1px solid #b8c3dc; margin-top: clamp(20px, 2.3vw, 38px); padding-block: .55rem;
}
.section-jumps a { display: inline-block; padding-block: .3rem; color: #2446de; font: 650 .9rem/1.4 var(--sans); text-decoration: none; }
.section-jumps a:is(:hover, :focus-visible) { text-decoration: underline; }

@media (prefers-reduced-motion: no-preference) {
  .lead-story { animation: lead-arrive .6s cubic-bezier(.2,.72,.25,1) backwards; }
  .lead-story:nth-child(2) { animation-delay: 70ms; }
  .lead-story:nth-child(3) { animation-delay: 140ms; }
  .folio-motion i { animation: folio-open .9s cubic-bezier(.2,.72,.25,1) backwards; }
  .folio-motion i:nth-child(2) { animation-delay: 80ms; }
  .folio-motion i:nth-child(3) { animation-delay: 160ms; }
}
@keyframes lead-arrive { from { transform: translateY(10px); } to { transform: translateY(0); } }
@keyframes folio-open {
  from { transform: translateX(-48%) skew(-8deg) scaleX(.38); }
  to { transform: translateX(0) skew(-21deg) scaleX(1); }
}

.kicker { margin: 0 0 .85rem; color: #2446de; font: 700 .82rem/1.55 var(--sans); text-transform: uppercase; letter-spacing: .085em; }
.portfolio-section .section-heading h2, .agenda-section .section-heading h2 {
  font: 400 clamp(2rem, 4vw, 3.15rem)/1.08 var(--serif); letter-spacing: -.035em;
}
.feature-band {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 6vw, 84px);
  padding: clamp(24px, 4.25vw, 58px); border: 1px solid var(--line);
}
.feature-band > div, .journal, .institute-pair article, .agenda-story > div { min-width: 0; }
.feature-band h3, .feature-band h2, .journal h3, .institute-pair h3 {
  font: 400 clamp(1.65rem, 3vw, 2.65rem)/1.12 var(--serif); letter-spacing: -.035em;
}
.feature-band p:not(.kicker), .journal > p:not(.kicker), .institute-pair article > p:not(.kicker), .agenda-story p {
  margin-top: .85rem; font-size: 1rem; line-height: 1.65;
}
.consulting { background: #17213b; color: #fff; border-top: 4px solid #2446de; }
.consulting .kicker { color: #def46b; }
.consulting-cta {
  display: inline-block; background: #def46b; color: #17213b; padding: .68rem 1.12rem;
  margin-top: 1.15rem; font-weight: 700; text-decoration: none;
}
.consulting-cta:is(:hover, :focus-visible) { background: #fff; text-decoration: underline; }
.band-aside { border-left: 1px solid currentColor; padding-left: clamp(18px, 3vw, 42px); }
.band-aside :is(h4,h3) { font: 700 1rem/1.4 var(--sans); letter-spacing: normal; margin: 0; }
.band-aside ul { margin: .65rem 0 .7rem; padding-left: 1.25rem; }
.band-aside li { padding-block: .12rem; }
.source-link, .journal-links button, .resource-note a, .profile-sources a { color: #2446de; font-size: .94rem; font-weight: 650; text-underline-offset: .22em; }
.feature-band .source-link, .institute-pair article > .source-link { display: inline-block; margin-top: .9rem; }
.consulting .source-link { color: #def46b; }
.consulting .band-aside li a { text-decoration-color: #abb8de; }
.journal-pair, .institute-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); align-items: start; }
.journal-pair { margin-top: clamp(16px, 2vw, 32px); }
.journal, .institute-pair article {
  padding: clamp(22px, 2.9vw, 40px); border: 1px solid var(--line); background: #fff;
  scroll-margin-top: 24px;
}
.journal .featured-read { display: grid; grid-template-columns: minmax(60px, 29%) 1fr; gap: .9rem; align-items: center; margin-block: 1.4rem; }
.featured-read img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.featured-read span { display: block; color: var(--muted); font-size: .83rem; }
.featured-read a { font-family: var(--serif); font-size: 1.24rem; line-height: 1.3; }
.journal-links { display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: baseline; margin-top: 1rem; }
.journal-links button { background: none; border: 0; padding: 0; text-decoration: underline; }
.institute-pair article { border-top: 3px solid #2446de; }
.resource-note, .frame-preview { border-top: 1px solid var(--line); }
.resource-note, .blog-window { margin-top: 1.3rem; }
.resource-note p { font-size: 1rem; line-height: 1.6; }
.resource-note p + p { margin-top: .7rem; }
.frame-preview summary, .resource-note summary { padding: .75rem .25rem .75rem 0; font-size: 1rem; font-weight: 650; line-height: 1.45; cursor: pointer; }
.frame-preview summary::marker, .resource-note summary::marker { color: #2446de; }
.frame-preview summary:hover, .resource-note summary:hover { text-decoration: underline; }
.frame-slot iframe { display: block; width: 100%; height: clamp(380px, 65vh, 650px); border: 1px solid var(--line); background: white; }
.article-preview .frame-slot { max-width: 650px; }
.article-preview .frame-slot iframe { height: 440px; }
.article-preview .source-link { display: inline-block; padding-block: .75rem; }
.agenda-section { background: #edf1fc; }
.agenda-story { display: grid; grid-template-columns: minmax(9.25rem, .33fr) 1fr; gap: clamp(16px, 3vw, 46px); padding-block: 1.45rem; border-top: 1px solid #c1cbe4; }
.agenda-story h3 { font: 400 clamp(1.45rem, 2.5vw, 2.05rem)/1.2 var(--serif); }
.agenda-story h3 a { text-decoration: none; }
.agenda-story h3 a:hover { text-decoration: underline; }
.agenda-story p { max-width: 72ch; }
.agenda-story .story-byline { font-size: .88rem; font-weight: 650; color: #4d5973; margin-top: .5rem; }
.agenda-story .article-preview { margin-top: 1rem; }
.tool-band { background: #edf1fc; border-top: 3px solid #2446de; }
.calculator-section .cra-preview { margin-top: 0; border: 1px solid var(--line); border-top: 0; background: #fff; }
.cra-preview summary { padding: 1.15rem clamp(18px, 3vw, 38px); }
.cra-preview .frame-slot iframe { height: 940px; border: 0; }
.iip-news { padding-left: 1.15rem; margin-block: .6rem 0; }
.iip-news li + li { margin-top: .45rem; }
@media (min-width: 701px) and (max-width: 950px) {
  .lead-meta { display: grid; gap: .1rem; }
}
@media (max-width: 795px) {
  .feature-band { grid-template-columns: 1fr 1fr; gap: 20px; }
  .agenda-story { grid-template-columns: 8rem 1fr; gap: 18px; }
}
@media (max-width: 700px) {
  main > section.frontpage { padding-block: 14px 12px; }
  .front-mast { margin-bottom: 14px; }
  .front-mast h1 { font-size: clamp(2.25rem, 8.7vw, 3.5rem); }
  .mast-byline { font-size: .78rem; }
  .folio-motion { width: 3.8rem; height: 2.75rem; }
  .lead-grid { display: block; }
  .lead-story {
    display: grid; grid-template-columns: minmax(0, 1fr) clamp(62px, 23vw, 118px);
    grid-template-areas: "meta meta" "body photo"; column-gap: .8rem; align-items: start;
    padding: .52rem 0 .63rem; border-top-width: 1px;
  }
  .lead-story:first-child { border-top-width: 3px; }
  .lead-meta { grid-area: meta; padding: 0 0 .28rem; }
  .lead-meta h2 { font-size: .9rem; }
  .lead-meta time { font-size: .77rem; }
  .lead-visual { grid-area: photo; aspect-ratio: 1.2; }
  .lead-body { grid-area: body; padding: 0; }
  .lead-story:not(:has(.lead-visual img:not([hidden]))) .lead-body { grid-column: 1 / -1; }
  .lead-body h3 { font-size: clamp(1.11rem, 4.7vw, 1.45rem); line-height: 1.12; letter-spacing: -.018em; }
  .lead-body p { margin-top: .3rem; font-size: .91rem; line-height: 1.38; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .section-jumps { margin-top: .3rem; gap: .15rem 1rem; }
}
@media (max-width: 375px) and (max-height: 650px) {
  .lead-body p { -webkit-line-clamp: 1; }
}
@media (max-width: 620px) {
  .journal-pair, .institute-pair, .feature-band, .agenda-story { grid-template-columns: 1fr; }
  .band-aside { padding: 1rem 0 0; border-left: 0; border-top: 1px solid currentColor; }
  .agenda-story { gap: .35rem; }
  .article-preview .frame-slot iframe { height: 510px; }
  .journal .frame-slot { margin-inline: calc(-1 * clamp(22px, 2.9vw, 40px)); }
  .agenda-section .section-heading > a { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .folio-motion, .section-jumps, .frame-slot, .frame-preview summary { display: none; }
  .feature-band, .agenda-section, .journal, .institute-pair article { color: #000; background: white; }
}
