/* Impact page. Hero ported from Tyler's impact-hero-code.html (9/23),
   scoped under .impact-hero; fonts come from cfg.css tokens. */

/* ---------- R-P1 hero (her code) ---------- */
.impact-hero { position: relative; overflow: hidden; background: #231E1D; min-height: 640px; display: flex; align-items: center; }
.impact-hero::before { content: ""; position: absolute; right: -60px; top: 50%; width: 820px; height: 820px; transform: translateY(-50%);
  background: radial-gradient(circle, rgba(240, 96, 58, .22), rgba(35, 30, 29, 0) 62%); pointer-events: none; }
.impact-hero .wrap { position: relative; z-index: 2; }
.impact-hero .txt { max-width: 780px; }
.impact-hero .eb { font: 700 14px/1.4 var(--body); letter-spacing: .22em; text-transform: uppercase; color: #F0603A; margin-bottom: 18px;
  opacity: 0; animation: ih-up .8s ease-out .1s forwards; }
.impact-hero h1 { font: 400 clamp(50px, 5.3vw, 76px)/.96 var(--display); color: #F3ECDC; margin: 0 0 22px; text-transform: uppercase;
  opacity: 0; animation: ih-up .8s ease-out .25s forwards; }
.impact-hero h1 span { color: #F0603A; }
.impact-hero p { font: 400 19px/1.6 var(--body); color: #E8DFCC; margin: 0; max-width: 520px;
  opacity: 0; animation: ih-up .8s ease-out .4s forwards; }
@keyframes ih-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.impact-hero .viz { position: absolute; right: 40px; top: 50%; width: 600px; height: 600px; transform: translateY(-50%); z-index: 1; }
.impact-hero .orb { fill: none; stroke: #F3ECDC; stroke-opacity: .08; stroke-width: 1.5; stroke-dasharray: 3 9; }
.impact-hero .rp { fill: none; stroke: url(#ig); stroke-width: 2; transform-origin: 400px 400px; opacity: 0; animation: ih-rip 7.5s ease-out infinite; }
@keyframes ih-rip { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.15); opacity: 0; } }
.impact-hero .hrt { transform-origin: 400px 400px; animation: ih-beat 7.5s ease-in-out infinite; }
@keyframes ih-beat { 0%, 100% { transform: scale(1); } 6% { transform: scale(1.045); } 12% { transform: scale(1); } }
.impact-hero .lk { stroke: url(#ig); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ih-link 5.5s ease-in-out infinite; }
@keyframes ih-link { 0% { stroke-dashoffset: 1; stroke-opacity: .9; } 25% { stroke-dashoffset: 0; stroke-opacity: .9; } 70% { stroke-dashoffset: 0; stroke-opacity: .25; } 100% { stroke-dashoffset: 0; stroke-opacity: .25; } }
.impact-hero .nd { fill: #F3ECDC; opacity: .35; animation: ih-node 5.5s ease-in-out infinite; }
@keyframes ih-node { 0%, 18% { opacity: .35; fill: #F3ECDC; } 28% { opacity: 1; fill: #F5922A; } 70% { opacity: .9; fill: #F3ECDC; } 100% { opacity: .9; fill: #F3ECDC; } }
.impact-hero .nh { fill: url(#ih); opacity: 0; animation: ih-halo 5.5s ease-in-out infinite; }
@keyframes ih-halo { 0%, 20% { opacity: 0; } 30% { opacity: 1; } 60%, 100% { opacity: 0; } }

@media (max-width: 1180px) {
  .impact-hero .viz { width: 480px; height: 480px; right: -60px; opacity: .75; }
}
@media (max-width: 900px) {
  .impact-hero { min-height: 0; flex-direction: column; align-items: flex-start; padding: 64px 0 0; }
  .impact-hero .viz { position: relative; right: auto; top: auto; transform: none; width: 100%; max-width: 440px; height: auto; margin: 10px auto -40px; display: block; opacity: 1; }
  .impact-hero::before { right: auto; left: 50%; top: auto; bottom: -300px; transform: translateX(-50%); }
}
/* Motion consent: her own reduced-motion rules, plus the static end state. */
@media (prefers-reduced-motion: reduce) {
  .impact-hero .rp, .impact-hero .hrt, .impact-hero .eb, .impact-hero h1, .impact-hero p { animation: none !important; opacity: 1; }
  .impact-hero .lk { animation: none !important; stroke-dashoffset: 0; stroke-opacity: .35; }
  .impact-hero .nd { animation: none !important; opacity: .9; }
  .impact-hero .nh { animation: none !important; opacity: 0; }
}

/* ---------- shared heading rhythm (round 3 brief: eyebrow->heading 12px, heading->intro 16px, intro->content 40px) ---------- */
.sec-head { margin-bottom: 40px; }
.sec-head .eyebrow { margin-bottom: 12px; }
.sec-head .lead { margin-top: 16px; }

/* ---------- R-P2 featured project (round 3: white ground, video with controls, proof points red Bebas) ---------- */
.featured { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 4.5vw, 64px); align-items: center; }
.featured__copy.sec-head { margin-bottom: 0; }
/* R6-7 (Tyler 9/30: "the alignment on these still looks off"): four equal columns, each centred, one baseline for the
   numbers and one for the labels; labels stay on one line. */
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 32px 0; padding: 0; list-style: none;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof li { padding: 20px 6px 18px; min-width: 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.proof li + li { border-left: 1px solid var(--line); }
.proof__num { display: block; font: 400 clamp(46px, 4.4vw, 64px)/.9 var(--display); color: var(--accent); letter-spacing: .01em; }
.proof__label { display: block; margin-top: 10px; font: 700 11px/1.35 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--cream); white-space: nowrap; }
.featured__media .video-frame { aspect-ratio: 16 / 9; border-color: #E4E1DE; box-shadow: 0 1px 2px rgba(35, 31, 31, .04), 0 12px 32px rgba(35, 31, 31, .12); }
@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .proof li { padding: 16px 2px 14px; }
  .proof__label { font-size: 9.5px; letter-spacing: .06em; }
}

/* ---------- R3-8 Work in Action: the brief's standard card (white, 1px #E4E1DE, radius 14, 28px padding) ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.work-card { display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid #E4E1DE; border-radius: 14px; padding: 28px;
  box-shadow: 0 1px 2px rgba(35, 31, 31, .04), 0 8px 24px rgba(35, 31, 31, .06);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.work-card:hover, .work-card:focus-within { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(35, 31, 31, .06), 0 16px 36px rgba(35, 31, 31, .10); }
.work-card__brand { height: 64px; display: flex; align-items: center; margin-bottom: 24px; }
.work-card__logo { display: block; height: 56px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.work-card__logo.is-wide { height: 32px; }
.work-card__logo.is-round { height: 64px; }
.work-card__wordmark { font: 700 22px/1 var(--body); letter-spacing: .18em; color: #231F1F; white-space: nowrap; }
.work-card__label { font: 700 11px/1.4 var(--body); letter-spacing: .24em; text-transform: uppercase; color: #C42B18; margin-bottom: 8px; }
.work-card__title { font: 600 20px/1.3 var(--body); color: #231F1F; margin-bottom: 8px; }
.work-card__body { color: #4A4543; line-height: 1.6; margin-bottom: 24px; }
.work-card__link { margin-top: auto; align-self: flex-start; min-height: 44px; color: #C42B18; }
@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .work-card { padding: 24px; }
  .work-card__link { letter-spacing: .08em; font-size: 12px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .work-card { transition: none; } .work-card:hover, .work-card:focus-within { transform: none; } }

/* ---------- R4-6 colour balance: Work in Action sits on charcoal; the cards stay white (HELD), with a deeper shadow for the dark ground ---------- */
.work .work-card { border-color: transparent; box-shadow: 0 12px 32px rgba(0, 0, 0, .28); }
.work .work-card:hover, .work .work-card:focus-within { box-shadow: 0 18px 40px rgba(0, 0, 0, .36); }

/* ---------- R5-6 Programs Built to Last: photo tiles (also Option B on impact-options.html) ---------- */
.io-label { font: 700 11px/1.4 var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.iob { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.iob-tile { position: relative; isolation: isolate; overflow: hidden; border-radius: 14px; aspect-ratio: 3 / 4.4; background: #1C1817;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .34); }
.iob-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.iob-tile__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 16, 15, 0) 10%, rgba(20, 16, 15, .72) 33%, rgba(20, 16, 15, .93) 48%, rgba(20, 16, 15, .97) 100%); }   /* R6-10: copy starts at 40%, so the shade is full strength there */
.iob-tile__copy { position: absolute; left: 0; right: 0; top: 40%; bottom: auto; padding: 0 22px 22px; }   /* R6-10: copy starts at one height on every tile */
.iob-tile .io-label { color: #F0603A; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); font-size: 10.5px; letter-spacing: .14em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* R6-10 (Tyler 9/30: Girls Rule "looks a little off because of the copy being longer"): every tile reserves two lines for the
   name and three for the line under it, so the label, name and line start at the same height on all four. */
.iob-tile__title { min-height: 2em; display: flex; align-items: flex-end; }
.iob-tile__body { min-height: 4.5em; }
.iob-tile__title { font: 400 clamp(28px, 2.4vw, 36px)/1 var(--display); text-transform: uppercase; color: #F3ECDC; margin-bottom: 8px; }
.iob-tile__link { color: inherit; text-decoration: none; }
.iob-tile__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.iob-tile__link:focus { outline: none; }
.iob-tile:focus-within { outline: 2px solid #F0603A; outline-offset: 3px; }
.iob-tile__body { color: #E8DFCC; font-size: 15px; line-height: 1.5; }
.iob-tile__more { display: inline-flex; gap: 10px; margin-top: 14px; font: 700 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #F0603A;
  opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.iob-tile__more::after { content: "\2192"; font-size: 16px; letter-spacing: 0; }
.iob-tile:hover .iob-tile__img, .iob-tile:focus-within .iob-tile__img { transform: scale(1.06); }
.iob-tile:hover .iob-tile__more, .iob-tile:focus-within .iob-tile__more { opacity: 1; transform: none; }
@media (hover: none) { .iob-tile__more { opacity: 1; transform: none; } }

@media (max-width: 1000px) { .iob { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .iob { grid-template-columns: 1fr; } .iob-tile { aspect-ratio: 4 / 5; } }
@media (prefers-reduced-motion: reduce) { .iob-tile__img, .iob-tile__more { transition: none; } .iob-tile:hover .iob-tile__img, .iob-tile:focus-within .iob-tile__img { transform: none; } }
