.home-hero {
    position: relative;
    height: min(640px, calc(100svh - 190px));
    min-height: 500px;
    overflow: hidden;
    color: var(--paper);
    background: #20251f;
}

.home-hero__image, .home-hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-hero__image { object-fit: cover; object-position: center 47%; }
.home-hero__shade { background: rgba(12, 16, 13, .63); }
.home-hero__inner { position: relative; display: flex; height: 100%; align-items: center; }
.home-hero__content { width: min(720px, 74%); padding-block: 42px; }
.home-hero__kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: #f0f3f0; font-size: 12px; font-weight: 800; letter-spacing: 1.6px; }
.home-hero__kicker span { display: grid; width: 29px; height: 29px; place-items: center; color: var(--ink); background: var(--yellow); }
.home-hero h1 { margin: 0; font-size: 74px; line-height: 1; font-weight: 900; }
.home-hero__lead { margin: 18px 0 0; color: var(--yellow); font-size: 27px; font-weight: 800; }
.home-hero__copy { max-width: 650px; margin: 16px 0 0; color: #e0e5e1; font-size: 17px; }
.home-search { display: grid; grid-template-columns: minmax(0, 1fr) 110px; width: min(650px, 100%); margin-top: 30px; background: var(--paper); }
.home-search input { min-width: 0; height: 52px; padding: 0 17px; border: 0; outline: 0; color: var(--ink); }
.home-search button { border: 0; color: var(--ink); font-weight: 900; background: var(--yellow); }
.home-search:focus-within { outline: 3px solid rgba(241,198,68,.55); }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.home-hero__caption { position: absolute; right: 0; bottom: 0; max-width: 420px; padding: 11px 22px; color: var(--ink); font-size: 12px; font-weight: 700; background: var(--yellow); }

.home-stages { padding: 60px 0 64px; border-bottom: 1px solid var(--line); background: var(--canvas); }
.section-heading--compact { margin-bottom: 26px; }
.stage-track { position: relative; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); }
.stage-track::before { content: ""; position: absolute; top: 13px; right: 4%; left: 4%; height: 2px; background: #aeb7b0; }
.stage-track__item { position: relative; display: grid; gap: 11px; justify-items: center; padding: 0 5px; text-align: center; }
.stage-track__item span { position: relative; z-index: 1; width: 27px; height: 27px; border: 7px solid var(--canvas); border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.stage-track__item strong { font-size: 13px; }
.stage-track__item:hover span { background: var(--yellow); box-shadow: 0 0 0 2px var(--yellow-dark); }

.home-directory { padding: 86px 0 94px; }
.home-directory__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.directory-entry { position: relative; min-height: 245px; padding: 29px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.directory-entry__rule { display: block; width: 38px; height: 5px; margin-bottom: 31px; background: var(--yellow); }
.directory-entry:nth-child(3n) .directory-entry__rule { background: var(--green); }
.directory-entry:nth-child(4n) .directory-entry__rule { background: var(--red); }
.directory-entry h3 { margin: 0; font-size: 23px; }
.directory-entry p { margin: 13px 0 44px; color: var(--muted); font-size: 14px; }
.directory-entry__link { position: absolute; bottom: 24px; left: 26px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; }
.directory-entry:hover { z-index: 1; color: var(--paper); background: var(--ink); box-shadow: 0 12px 32px rgba(23,28,24,.14); }
.directory-entry:hover p { color: #c5cec7; }

.home-method { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr); min-height: 630px; background: var(--canvas); }
.home-method__media { min-height: 540px; overflow: hidden; }
.home-method__media img { width: 100%; height: 100%; object-fit: cover; }
.home-method__content { display: flex; flex-direction: column; justify-content: center; padding: 70px max(40px, calc((100vw - var(--container)) / 2)) 70px 66px; }
.home-method__content h2 { max-width: 560px; margin: 0; font-size: 42px; line-height: 1.2; }
.home-method__content > p:not(.section-kicker) { max-width: 560px; margin: 20px 0 0; color: var(--muted); }
.home-method__checks { margin: 30px 0; border-top: 1px solid #cbd1cc; }
.home-method__checks p { display: grid; grid-template-columns: 44px 1fr; gap: 12px; margin: 0; padding: 14px 0; border-bottom: 1px solid #cbd1cc; }
.home-method__checks strong { color: var(--green); }

.home-latest { padding: 88px 0 96px; }
.home-latest__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.latest-entry { position: relative; min-height: 250px; padding: 25px; border: 1px solid var(--line); border-top: 5px solid var(--ink); border-radius: 3px; }
.latest-entry:nth-child(3n+2) { border-top-color: var(--green); }
.latest-entry:nth-child(3n) { border-top-color: var(--yellow-dark); }
.latest-entry__meta { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 12px; }
.latest-entry__meta a { color: var(--green); font-weight: 800; }
.latest-entry h3 { margin: 17px 0 0; font-size: 20px; line-height: 1.45; }
.latest-entry p { margin: 12px 0 44px; color: var(--muted); font-size: 14px; }
.latest-entry__more { position: absolute; bottom: 22px; left: 25px; font-size: 13px; font-weight: 800; }

.home-tools { padding: 78px 0; color: var(--paper); background: var(--ink); }
.home-tools__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 75px; align-items: start; }
.home-tools .section-kicker { color: var(--yellow); }
.home-tools h2 { max-width: 480px; margin: 0; font-size: 39px; line-height: 1.25; }
.home-tools__intro > p:last-child { max-width: 520px; margin: 18px 0 0; color: #aeb8b0; }
.home-tools__links { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #465048; border-left: 1px solid #465048; }
.home-tools__links a { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-right: 1px solid #465048; border-bottom: 1px solid #465048; }
.home-tools__links a:hover { color: var(--ink); background: var(--yellow); }

.home-standard { padding: 72px 0 78px; border-top: 1px solid var(--line); background: #f3f4f1; }
.home-standard__inner { display: grid; grid-template-columns: .65fr 1.35fr; gap: 70px; padding-top: 34px; border-top: 6px solid var(--ink); }
.home-standard h2 { max-width: 390px; margin: 0; font-size: 38px; line-height: 1.22; }
.home-standard__points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: standard-point; }
.home-standard__points p { margin: 0; padding: 0 26px; border-left: 1px solid #cbd1cc; counter-increment: standard-point; }
.home-standard__points p:first-child { padding-left: 0; border-left: 0; }
.home-standard__points p:last-child { padding-right: 0; }
.home-standard__points strong, .home-standard__points span { display: block; }
.home-standard__points strong { margin-bottom: 10px; font-size: 17px; }
.home-standard__points strong::before { content: "0" counter(standard-point); display: block; margin-bottom: 17px; color: var(--green); font-size: 12px; font-weight: 900; }
.home-standard__points span { color: #566058; font-size: 14px; }

.home-friends { color: var(--paper); background: var(--green); }
.home-friends__inner { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 58px; min-height: 156px; align-items: center; padding-block: 32px; }
.home-friends__heading { padding-left: 18px; border-left: 6px solid var(--yellow); }
.home-friends__heading .section-kicker { margin-bottom: 3px; color: var(--yellow); }
.home-friends__heading h2 { margin: 0; color: var(--paper); font-size: 26px; }
.home-friends__links { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; padding: 1px; background: rgba(255,255,255,.3); }
.home-friends__links a { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 20px; color: var(--paper); font-size: 14px; font-weight: 800; background: var(--green); }
.home-friends__links a::after { content: "↗"; color: var(--yellow); font-size: 16px; }
.home-friends__links a:hover { background: rgba(255,255,255,.1); }

@media (max-width: 1050px) {
    .home-directory__grid { grid-template-columns: repeat(3, 1fr); }
    .home-method { grid-template-columns: 1fr 1fr; }
    .home-method__content { padding-inline: 44px 30px; }
    .home-tools__inner { gap: 42px; }
}

@media (max-width: 820px) {
    .home-hero { height: auto; min-height: 500px; }
    .home-hero__content { width: 100%; padding: 58px 0 72px; }
    .home-hero h1 { font-size: 55px; }
    .home-hero__lead { font-size: 23px; }
    .home-hero__caption { display: none; }
    .home-stages { padding-block: 52px; }
    .stage-track { grid-template-columns: repeat(5, 1fr); gap: 25px 0; }
    .stage-track::before { display: none; }
    .stage-track__item { gap: 7px; }
    .home-directory { padding-block: 66px 72px; }
    .home-directory__grid { grid-template-columns: repeat(2, 1fr); }
    .home-method { grid-template-columns: 1fr; }
    .home-method__media { min-height: 380px; }
    .home-method__content { padding: 56px max(24px, calc((100vw - 760px) / 2)); }
    .home-method__content h2 { font-size: 35px; }
    .home-latest { padding-block: 66px; }
    .home-latest__grid { grid-template-columns: 1fr 1fr; }
    .home-tools__inner, .home-standard__inner { grid-template-columns: 1fr; gap: 36px; }
    .home-friends__inner { grid-template-columns: 1fr; gap: 22px; padding-block: 38px; }
}

@media (max-width: 540px) {
    .home-hero { min-height: 475px; }
    .home-hero__image { object-position: 64% center; }
    .home-hero h1 { font-size: 46px; }
    .home-hero__copy { font-size: 15px; }
    .home-search { grid-template-columns: minmax(0, 1fr) 88px; }
    .home-search input { font-size: 13px; }
    .home-hero__actions { display: grid; grid-template-columns: 1fr 1fr; }
    .button { padding-inline: 12px; font-size: 13px; }
    .stage-track { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
    .stage-track__item { grid-template-columns: 24px 1fr; justify-items: start; align-items: center; text-align: left; }
    .stage-track__item span { width: 18px; height: 18px; border-width: 5px; }
    .home-directory__grid, .home-latest__grid, .home-tools__links, .home-standard__points, .home-friends__links { grid-template-columns: 1fr; }
    .home-standard__points p, .home-standard__points p:first-child, .home-standard__points p:last-child { padding: 20px 0; border-left: 0; border-top: 1px solid #cbd1cc; }
    .home-standard__points strong::before { margin-bottom: 8px; }
    .home-friends__links a { border: 0; }
    .directory-entry { min-height: 220px; }
    .home-method__media { min-height: 270px; }
    .home-method__content h2, .home-tools h2, .home-standard h2 { font-size: 30px; }
}
