/* Approved portrait hero: three benefit columns and a full-width fourth item. */
.hero-study {
  --hero-bg: #172338;
  --hero-ink: #fff;
  --hero-muted: #e0e6f0;
  --hero-accent: #f5cf5b;
  --hero-rule: #42516a;
  padding: 44px 32px 40px;
  color: var(--hero-ink);
  background: var(--hero-bg);
  font-family: 'Uiru F08', sans-serif;
  font-synthesis: none;
}
.hero-study * { min-width: 0; }
.hero-study h1, .hero-study p, .hero-study ul, .hero-study figure { margin: 0; }
.hero-study-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  grid-template-areas: 'header portrait' 'roles roles' 'benefits benefits';
  max-width: 1120px;
  margin: auto;
  gap: 28px 42px;
}
.hero-study-header { grid-area: header; }
.hero-study-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 17px; min-height: 37px; margin-bottom: 23px !important; color: #c6d1e2; font-size: 16px; line-height: 1.3; font-weight: 500; }
.hero-study-date { display: inline-flex; align-items: center; padding: 0 0 0 17px; border-left: 1px solid #596b84; color: #edf2fa; background: transparent; font-size: 16px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.hero-study-header:has(.hero-study-name) .hero-study-meta { margin-bottom: 14px !important; }
.hero-study .hero-study-name {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 21px;
  padding: 6px 12px 8px;
  border-radius: 3px;
  background: var(--hero-accent);
  color: var(--hero-bg);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.hero-study h1 { font: 700 clamp(38px, 3.6vw, 52px)/1.12 'Uiru F08', sans-serif; letter-spacing: -.035em; text-wrap: balance; }
.hero-study h1 span { color: var(--hero-accent); }
.hero-study h1 .hero-keep { color: inherit; white-space: nowrap; }
.hero-study-intro { max-width: 720px; margin-top: 23px !important; font-size: 24px; line-height: 1.35; font-weight: 500; text-wrap: pretty; }
.hero-study-portrait { grid-area: portrait; align-self: center; }
/* The existing #portrait-alpha-mask supplies the reference's exact PNG alpha mask. */
.hero-study-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 405 / 505; object-fit: cover; object-position: 50% center; }
.hero-study-roles { grid-area: roles; padding-top: 23px; border-top: 1px solid var(--hero-rule); font-size: 24px; line-height: 1.4; text-wrap: pretty; }
.hero-study-roles strong { display: block; margin-top: 5px; font-weight: 600; color: var(--hero-accent); }
.hero-study-benefits { grid-area: benefits; display: grid; list-style: none; padding: 0; font-size: 20px; line-height: 1.5; color: var(--hero-muted); }
.hero-study-benefits li { position: relative; text-wrap: pretty; }

/* Four benefits: three columns and a full-width fourth item. */
html[data-benefits-style='wide'] .hero-study-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 30px; }
html[data-benefits-style='wide'] .hero-study-benefits li { padding-left: 19px; border-left: 2px solid var(--hero-accent); }
html[data-benefits-style='wide'] .hero-study-benefits li:last-child { grid-column: 1 / -1; padding: 23px 29px; border: 1px solid #53617a; border-left: 3px solid var(--hero-accent); border-radius: 4px; background: #203049; }
html[data-benefits-style='wide'] .hero-study-benefits li:last-child p { max-width: 850px; }

@media (max-width: 1000px) and (min-width: 621px) {
  .hero-study-inner { grid-template-columns: minmax(0, 1fr) 200px; column-gap: 25px; }
  .hero-study h1 { font-size: 38px; }
  .hero-study-benefits { font-size: 19px; }
}
@media (max-width: 620px) {
  .hero-study { padding: 25px 21px 29px; }
  .hero-study-inner { display: block; position: relative; }
  .hero-study-meta { display: grid; justify-items: start; align-content: start; gap: 8px 17px; padding-right: 90px; min-height: 65px; margin-bottom: 23px !important; font-size: 14px; }
  .hero-study-date { padding: 0; border: 0; font-size: 14px; }
  .hero-study-header:has(.hero-study-name) .hero-study-meta { margin-bottom: 36px !important; }
  .hero-study .hero-study-name { margin-bottom: 20px; padding: 6px 10px 7px; font-size: clamp(19px, 5.5vw, 24px); }
  .hero-study h1 { font-size: 32px; line-height: 1.13; letter-spacing: -.03em; }
  .hero-study-intro { margin-top: 20px !important; font-size: 21px; line-height: 1.38; }
  .hero-study-portrait { position: absolute; right: -6px; top: -9px; width: 86px; }
  .hero-study-roles { margin-top: 24px !important; padding-top: 21px; font-size: 20px; line-height: 1.4; }
  .hero-study-benefits, html[data-benefits-style] .hero-study-benefits { display: block; margin-top: 25px; font-size: 18px; line-height: 1.5; }
  html[data-benefits-style='wide'] .hero-study-benefits li { padding-left: 17px; }
  html[data-benefits-style='wide'] .hero-study-benefits li + li { margin-top: 24px; }
  html[data-benefits-style='wide'] .hero-study-benefits li:last-child { padding: 19px 18px; }
}
@media (max-width: 360px) {
  .hero-study { padding-inline: 18px; }
  .hero-study h1 { font-size: 27px; }
  .hero-study-intro { font-size: 20px; }
}

/* Approved layout: three benefits followed by the employee and its roles. */
html[data-benefits-style='reordered'] #intensive-hero .hero-study-inner {
  grid-template-areas: 'header portrait' 'benefits benefits' 'employee employee';
}
html[data-benefits-style='reordered'] #intensive-hero .hero-study-benefits {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 30px;
  padding-top: 23px;
  border-top: 1px solid var(--hero-rule);
}
html[data-benefits-style='reordered'] #intensive-hero .hero-study-benefits li {
  padding-left: 19px;
  border-left: 2px solid var(--hero-accent);
}
html[data-benefits-style='reordered'] #intensive-hero .hero-study-employee {
  grid-area: employee;
  padding: 23px 29px;
  border: 1px solid #53617a;
  border-radius: 4px;
  background: #203049;
  color: var(--hero-muted);
  font-size: 22px;
  line-height: 1.45;
  text-wrap: pretty;
}
html[data-benefits-style='reordered'] #intensive-hero .hero-study-employee strong {
  display: block;
  margin-top: 10px;
  color: var(--hero-accent);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}
@media (max-width: 620px) {
  html[data-benefits-style='reordered'] #intensive-hero .hero-study-benefits { margin-top: 24px; padding-top: 21px; }
  html[data-benefits-style='reordered'] #intensive-hero .hero-study-benefits li { padding-left: 17px; }
  html[data-benefits-style='reordered'] #intensive-hero .hero-study-benefits li + li { margin-top: 24px; }
  html[data-benefits-style='reordered'] #intensive-hero .hero-study-employee { margin-top: 26px; padding: 19px 18px; font-size: 18px; line-height: 1.5; }
  html[data-benefits-style='reordered'] #intensive-hero .hero-study-employee strong { font-size: 20px; }
}
