/* Henham Strategy: styles for the inner pages. Builds on styles.css (homepage). */

/* Page header */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(110% 80% at 100% 0%, rgba(50, 101, 172, .42) 0%, rgba(50, 101, 172, 0) 56%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--ink-deep) 100%);
  padding: calc(var(--header-h) + clamp(48px, 7vw, 112px)) 0 clamp(56px, 6vw, 96px);
}
.page-hero--image {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(80vh, 780px);
  background: #0b1118;
}
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 2.4s var(--ease-out); }
.is-ready .page-hero-media img { transform: none; }
.page-hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 13, 20, .7) 0%, rgba(8, 13, 20, .16) 32%, rgba(8, 13, 20, .26) 54%, rgba(8, 13, 20, .9) 100%),
    linear-gradient(90deg, rgba(8, 13, 20, .58) 0%, rgba(8, 13, 20, 0) 66%);
}
.page-hero :focus-visible { outline-color: var(--yellow); }

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 3.4vw, 48px);
  font: 500 13px/1.5 var(--sans);
  color: rgba(255, 255, 255, .62);
}
.crumbs li + li::before { content: '/'; margin: 0 10px; opacity: .5; }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: rgba(255, 255, 255, .92); }

.page-hero .eyebrow { margin-bottom: clamp(20px, 2.2vw, 30px); }
.page-title {
  max-width: 15em;
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(42px, 6vw, 96px);
  line-height: 1.02;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.page-hero--compact .page-title { font-size: clamp(40px, 5vw, 76px); max-width: 18em; }
.page-lede {
  max-width: 46ch;
  margin-top: clamp(22px, 2.6vw, 36px);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .84);
}
.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: clamp(24px, 2.6vw, 36px);
  font: 600 11.5px/1.4 var(--sans);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .74);
}
.page-hero-meta a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .35); transition: border-color .3s; }
.page-hero-meta a:hover { border-color: var(--yellow); }
.dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.page-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 40px; }

/* Gentle entrance, matching the homepage hero */
.js .page-hero-inner > * { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js .page-hero-inner > :nth-child(2) { transition-delay: .06s; }
.js .page-hero-inner > :nth-child(3) { transition-delay: .12s; }
.js .page-hero-inner > :nth-child(4) { transition-delay: .2s; }
.js .page-hero-inner > :nth-child(n+5) { transition-delay: .28s; }
.is-ready .page-hero-inner > *, .no-boot .page-hero-inner > * { opacity: 1; transform: none; }

/* Layout helpers */

.section--paper { background: var(--paper); }
.section--white { background: #fff; }
.section--stone { background: var(--stone); }
.section--tight { padding: clamp(64px, 7vw, 112px) 0; }
.section + .section--paper-continue { padding-top: 0; }

.rail {
  display: grid;
  grid-template-columns: minmax(160px, 3fr) minmax(0, 9fr);
  gap: 32px clamp(32px, 4vw, 64px);
  align-items: start;
}
.rail > .eyebrow { padding-top: .55em; }
.rail-head { margin-bottom: clamp(40px, 5vw, 72px); }
.lead-text {
  max-width: 24em;
  font-family: var(--serif);
  font-weight: 330;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.18;
  letter-spacing: -.018em;
  text-wrap: pretty;
}
.lead-text + p, .lead-text + .prose { margin-top: clamp(24px, 2.6vw, 36px); }
.body-text { max-width: 62ch; font-size: 18px; line-height: 1.7; color: #3a414a; }
.body-text + .body-text { margin-top: 18px; }
.section--dark .body-text, .section--navy .body-text { color: rgba(255, 255, 255, .8); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 40px; }

/* Long-form text: articles and policies */

.prose { max-width: 68ch; font-size: 18px; line-height: 1.72; color: #2a3037; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.9em; font: 380 clamp(28px, 2.3vw, 36px)/1.15 var(--serif); letter-spacing: -.014em; color: var(--ink); }
.prose h3 { margin-top: 1.7em; font: 420 clamp(22px, 1.8vw, 26px)/1.25 var(--serif); letter-spacing: -.008em; color: var(--ink); }
.prose h4 { margin-top: 1.6em; font: 600 13px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .7em; }
.prose a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .3s; }
.prose a:hover { color: var(--blue); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ''; position: absolute; left: 2px; top: .66em; width: 7px; height: 7px; background: var(--yellow); }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 38px; counter-increment: n; }
.prose ol li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .28em; font: 600 12px var(--sans); letter-spacing: .06em; color: var(--muted); }
.prose li + li { margin-top: .55em; }
.prose blockquote { padding-left: 26px; border-left: 2px solid var(--yellow); font: 340 clamp(21px, 1.9vw, 26px)/1.45 var(--serif); color: var(--ink); }
.prose img { margin: 1.8em 0; width: 100%; }
.prose figure img { margin: 0; }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.prose > p:first-child { font-size: 1.08em; color: var(--ink); }

/* Card grids */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cards--5 .card { padding: clamp(24px, 2.4vw, 36px); }
.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 250px;
  padding: clamp(28px, 3vw, 44px);
  background: var(--paper);
}
.section--white .card { background: #fff; }
.card-n { font: 600 12px var(--sans); letter-spacing: .14em; color: var(--muted); }
.card h3 { font: 380 clamp(24px, 2vw, 30px)/1.12 var(--serif); letter-spacing: -.012em; }
.card p { font-size: 16.5px; line-height: 1.6; color: #3a414a; }
.card .link-arrow { margin-top: auto; align-self: flex-start; }
.card .sq { margin-bottom: 4px; }

/* Tag list */

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li, .tag-list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  font: 500 14px/1.3 var(--sans);
}
.tag-list li:has(a) { padding: 0; border: 0; }
.tag-list a { transition: border-color .3s, background-color .3s; }
.tag-list a:hover { border-color: var(--ink); background: #fff; }
.section--dark .tag-list li, .section--dark .tag-list a { border-color: rgba(255, 255, 255, .28); }
.section--dark .tag-list a:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }

/* Services */

.svc {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
  padding: clamp(56px, 6vw, 96px) 0;
  border-top: 1px solid var(--line-strong);
  scroll-margin-top: 72px;
}
.svc:first-child { border-top: 0; padding-top: 0; }
.svc-media { position: sticky; top: 104px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-media .panel-num { position: absolute; top: 22px; left: 24px; font: 600 12px var(--sans); letter-spacing: .14em; color: #fff; }
.svc-for { margin-bottom: 22px; }
.svc h2 { font: 330 clamp(38px, 4.2vw, 68px)/1.02 var(--serif); letter-spacing: -.026em; }
.svc-text { max-width: 36ch; margin-top: 28px; font: 340 clamp(21px, 1.8vw, 27px)/1.4 var(--serif); letter-spacing: -.008em; }
.svc-body { max-width: 60ch; margin-top: 24px; font-size: 17.5px; line-height: 1.7; color: #3a414a; }
.svc-label { margin: 40px 0 14px; font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.svc .actions { margin-top: 44px; }
.work-links { display: grid; border-top: 1px solid var(--line); }
.work-links a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 4px 20px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.work-links strong { font: 500 17px/1.35 var(--sans); }
.work-links span { grid-column: 1; font-size: 15px; line-height: 1.5; color: var(--muted); }
.work-links .i { grid-column: 2; grid-row: 1 / span 2; transition: transform .5s var(--ease-out); }
.work-links a:hover strong { color: var(--navy); }
.work-links a:hover .i { transform: translateX(5px); }
.section--dark .work-links, .section--dark .work-links a { border-color: var(--line-light); }
.section--dark .work-links span { color: rgba(255, 255, 255, .6); }
.section--dark .work-links a:hover strong { color: var(--yellow); }

/* Sectors */

.sectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.sector { display: flex; flex-direction: column; padding: clamp(32px, 3.6vw, 56px); background: var(--ink-deep); scroll-margin-top: 80px; }
.sector-top { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.sector-n { font: 600 12px var(--sans); letter-spacing: .14em; color: rgba(255, 255, 255, .5); }
.sector h3 { font: 330 clamp(30px, 2.8vw, 44px)/1.05 var(--serif); letter-spacing: -.02em; }
.sector-line { margin-top: 22px; font: 340 clamp(19px, 1.5vw, 22px)/1.45 var(--serif); color: #fff; }
.sector p.body-text { margin-top: 16px; font-size: 16.5px; }
.sector .svc-label { color: rgba(255, 255, 255, .55); margin-top: 32px; }
.sector-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: auto; padding-top: 36px; }
.sector-mail { font-size: 15px; color: rgba(255, 255, 255, .72); border-bottom: 1px solid rgba(255, 255, 255, .25); transition: color .3s, border-color .3s; }
.sector-mail:hover { color: #fff; border-color: var(--yellow); }
.sector:target { box-shadow: inset 3px 0 0 var(--yellow); }

/* People */

a.person-btn { color: inherit; }
.people-section .group-label:first-child { margin-top: 0; }
.bio {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 112px);
  align-items: start;
}
.bio-photo { position: sticky; top: 104px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.bio-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.bio-before { max-width: 26em; font: 340 clamp(24px, 2.3vw, 34px)/1.3 var(--serif); letter-spacing: -.012em; }
.bio-text { margin-top: 28px; }
.bio-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line-strong); }
.bio-facts dt { margin-bottom: 14px; font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.bio-facts dd { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(64px, 7vw, 112px); border-top: 1px solid var(--line-strong); }
.pager a { display: flex; flex-direction: column; gap: 6px; padding: 28px 0; }
.pager a:last-child { align-items: flex-end; text-align: right; }
.pager small { font: 600 11.5px var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.pager span { font: 400 clamp(20px, 1.8vw, 26px)/1.2 var(--serif); transition: color .3s; }
.pager a:hover span { color: var(--navy); }

/* News and articles */

.news-index .news-grid { margin-bottom: clamp(72px, 8vw, 128px); }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.filter-bar .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.archive-year {
  display: grid;
  grid-template-columns: minmax(110px, 3fr) minmax(0, 9fr);
  gap: 16px clamp(32px, 4vw, 64px);
  padding: 40px 0 8px;
  border-top: 1px solid var(--line-strong);
}
.archive-year h3 { align-self: start; position: sticky; top: 96px; font: 330 clamp(36px, 3.4vw, 52px)/1 var(--serif); letter-spacing: -.02em; }
.archive-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 6px 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.archive-list li:last-child a { border-bottom: 0; }
.archive-list .news-meta { color: var(--muted); }
.archive-title { font: 400 21px/1.3 var(--serif); letter-spacing: -.008em; transition: color .3s; }
.archive-dek { font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.archive-list .i { grid-column: 2; grid-row: 1 / span 3; transition: transform .5s var(--ease-out); }
.archive-list a:hover .archive-title { color: var(--navy); }
.archive-list a:hover .i { transform: translateX(5px); }
.tag-report { color: var(--navy); }
.archive-empty { padding: 40px 0; color: var(--muted); }

.article {
  display: grid;
  grid-template-columns: minmax(180px, 3fr) minmax(0, 9fr);
  gap: 40px clamp(32px, 5vw, 96px);
  align-items: start;
}
.article-aside { position: sticky; top: 104px; display: grid; gap: 28px; font-size: 15px; }
.article-aside dt { margin-bottom: 6px; font: 600 11.5px var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.article-aside dd a { border-bottom: 1px solid var(--line-strong); transition: border-color .3s, color .3s; }
.article-aside dd a:hover { color: var(--navy); border-color: var(--navy); }
.article-source { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.article-source a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.related { margin-top: 0; }
.article-figure { max-width: 68ch; margin-bottom: 40px; }
.article-figure img { width: auto; max-width: 100%; max-height: 520px; }
.article-actions { margin-top: 48px; }

/* Reports */

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 56px clamp(24px, 2.6vw, 40px);
}
.reports-grid .pub-link { width: auto; user-select: auto; }
.reports-grid .pub-cover { height: auto; aspect-ratio: 707 / 1000; overflow: hidden; }
.reports-grid .pub-cover > img { width: 100%; height: 100%; object-fit: cover; }
.reports-grid .pub-cover.is-wide { display: flex; align-items: center; background: #dcd7cd; }
.reports-grid .pub-cover.is-wide > img { height: auto; object-fit: contain; }
.reports-grid .pub-cover--type { width: auto; }
.reports-grid .pub-title { font-size: 17.5px; }

/* Contact and misc */

.contact--page { padding-top: clamp(72px, 8vw, 128px); }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.info-grid > div { padding: clamp(28px, 3vw, 40px); background: var(--paper); }
.info-grid h3 { margin-bottom: 14px; font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.info-grid p, .info-grid address { font: 400 20px/1.45 var(--serif); }
.info-grid .link-arrow { margin-top: 20px; }
.notfound-links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 40px; }

/* Responsive */

@media (max-width: 1240px) {
  .cards--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1120px) {
  .cards--3, .cards--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .rail, .archive-year, .article { grid-template-columns: 1fr; }
  .rail > .eyebrow { padding-top: 0; }
  .archive-year h3 { position: static; }
  .article-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); padding-bottom: 28px; border-bottom: 1px solid var(--line); }
  .svc, .bio { grid-template-columns: minmax(0, 1fr); }
  .svc .btn, .notsure .btn { white-space: normal; height: auto; min-height: 54px; padding: 14px 22px; text-align: left; }
  .svc-media { position: relative; top: auto; aspect-ratio: 16 / 10; }
  .bio-photo { position: static; max-width: 440px; }
  .sectors { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cards--3, .cards--5 { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .page-hero--image { min-height: 560px; }
  .bio-facts { grid-template-columns: 1fr; }
  .pager span { font-size: 18px; }
  .reports-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; }
  .reports-grid .pub-title { font-size: 16px; }
  .prose { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .page-hero-inner > * { opacity: 1; transform: none; transition: none; }
  .page-hero-media img { transform: none; transition: none; }
}
