/* Approved homepage. Navigation, text, buttons and cards are real HTML. */
.home .wrap { background: var(--bg); }
.home .top {
    min-height: 70px;
    margin: 0 4.8%;
    padding: 0 3.3%;
    border: 1px solid #00b9c5;
    border-top: 0;
    border-radius: 0 0 36px 36px;
    box-shadow: 0 4px 12px -5px #00eeee;
    background: #020f15;
}
.home .brand { flex-basis: 240px; max-width: 23%; }
.home .mainnav { font-size: clamp(16px, 1.65vw, 24px); }
.home .hamb { flex-basis: 48px; gap: 7px; }
.home .hamb span { width: 36px; }

.home-hero { text-align: center; }
/* The source is scaled uniformly. Its figures occupy source y≈62…705.
   The compact viewport shows y≈45…725, keeping heads and shoes clear.
   Only empty ceiling/floor are trimmed. No cover-stretch or redraw. */
.home-hero-scene {
    --scene-height: clamp(240px, 27.3vw, 395px);
    position: relative;
    height: var(--scene-height);
    overflow: hidden;
}
.home-hero-image {
    position: absolute;
    display: block;
    width: auto;
    max-width: none;
    height: calc(var(--scene-height) * 941 / 680);
    top: calc(var(--scene-height) * -45 / 680);
    left: 50%;
    transform: translateX(-50%);
    /* Feather only the outside edges of the scene into the site background. */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.home-hero-copy { padding: 0 16px 16px; }
.home-hero-copy h1 {
    margin: 0;
    color: var(--white);
    font-size: clamp(32px, 3.8vw, 55px);
    line-height: 1.1;
    letter-spacing: -.8px;
    text-shadow: 0 2px 5px #000;
}
.home-hero-subtitle { display: flex; justify-content: center; align-items: center; gap: 4%; margin-top: 2px; }
.home-hero-subtitle p { flex: 0 1 auto; margin: 0; color: #e2eaed; font-size: clamp(16px, 1.8vw, 26px); line-height: 1.4; }
.home-hero-subtitle::before, .home-hero-subtitle::after { content: ""; flex: 0 1 112px; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan)); }
.home-hero-subtitle::after { transform: rotate(180deg); }
.home-content { padding: 0 5.8% 20px; }
.home-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px; }
.home-button {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: center;
    min-height: 58px;
    padding: 5px 15px;
    gap: 6px;
    border: 1px solid #198894;
    border-radius: 18px;
    background: linear-gradient(180deg, #06303a 0%, #011319 35%, #021217 70%, #07343c 100%);
    box-shadow: inset 0 1px 5px #00eeee24, 0 0 5px #00eeee15;
    color: var(--white);
    font-size: clamp(16px, 1.35vw, 20px);
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
}
.home-button span { min-width: 0; overflow-wrap: break-word; }
.home-button svg { justify-self: center; width: 38px; height: 38px; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-button:hover { color: var(--white); border-color: var(--cyan); }
.home-button:focus-visible { outline-offset: 3px; }
.home-featured { position: relative; margin-top: 25px; padding-top: 12px; border-top: 1px solid #148590; }
.home-featured::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, #58ffff 18%, #58ffff 82%, transparent); box-shadow: 0 0 9px #00e5e8a6; }
.home-featured-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 10px; }
.home-featured-heading h2 { margin: 0; color: var(--white); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; }
.home-featured-heading > a { display: inline-flex; align-items: center; gap: 12px; min-height: 40px; color: var(--cyan); font-size: 18px; font-weight: 600; }
.home-featured-heading > a:hover { text-decoration: underline; }
.home-featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-featured-card { min-width: 0; overflow: hidden; border: 1px solid #315d68; border-radius: 19px; background: #03212a; }
.home-featured-image { display: block; overflow: hidden; background: #02151c; }
.home-featured-image img { display: block; width: 100%; height: auto; }
.home-featured-card-body { padding: 11px 30px 14px; }
.home-featured-category { color: var(--cyan); text-transform: uppercase; font-size: 14px; font-weight: 700; line-height: 1.3; }
.home-featured-category a { color: var(--cyan); }
.home-featured-category a:hover { text-decoration: underline; }
.home-featured-card h3 { margin: 5px 0 0; color: var(--white); font-size: clamp(18px, 1.6vw, 23px); line-height: 1.2; }
.home-featured-card h3 a:hover { color: var(--cyan); }
.home-content > .ad-slot { margin: 28px 0 0; }

@media (max-width: 1023px) {
    .home .top { min-height: 62px; padding: 0 2.2%; margin: 0 3%; border-radius: 0 0 24px 24px; }
    .home .brand { flex-basis: 180px; }
    .home .mainnav { font-size: 16px; }
    .home .hamb { flex-basis: 44px; }
    .home .hamb span { width: 28px; }
    .home-hero-scene { --scene-height: clamp(250px, 32vw, 330px); }
    .home-hero-copy { padding-bottom: 18px; }
    .home-hero-subtitle { gap: 2%; }
    .home-hero-subtitle::before, .home-hero-subtitle::after { flex-basis: 50px; }
    .home-content { padding-right: 4.8%; padding-left: 4.8%; }
    .home-buttons { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .home-button { grid-template-columns: 36px minmax(0, 1fr); min-height: 64px; padding: 8px 10px; gap: 8px; font-size: 16px; }
    .home-button svg { width: 32px; height: 32px; }
    .home-featured-grid { gap: 12px; }
    .home-featured-card-body { padding: 12px; }
    .home-featured-heading > a { font-size: 16px; }
}
@media (max-width: 600px) {
    .home .top { margin: 0; min-height: 60px; padding: 0 10px; border-radius: 0 0 16px 16px; }
    .home .brand { flex: 0 0 94px; max-width: none; }
    .home .mainnav { font-size: 11px; }
    .home .hamb { flex-basis: 38px; gap: 6px; }
    .home .hamb span { width: 23px; }
    /* A wider source field on phones still contains both people in full. */
    .home-hero-scene { --scene-height: clamp(210px, 56vw, 300px); }
    .home-hero-image { height: calc(var(--scene-height) * 941 / 800); top: calc(var(--scene-height) * -25 / 800); }
    .home-hero-copy { padding: 3px 12px 20px; }
    .home-hero-copy h1 { font-size: clamp(27px, 7.5vw, 40px); letter-spacing: -.6px; }
    .home-hero-subtitle { margin-top: 6px; gap: 8px; }
    .home-hero-subtitle p { font-size: 16px; }
    .home-hero-subtitle::before, .home-hero-subtitle::after { flex-basis: 18px; }
    .home-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .home-button { grid-template-columns: 28px minmax(0, 1fr); min-height: 66px; padding: 7px 8px; gap: 6px; border-radius: 14px; font-size: 14px; line-height: 1.2; }
    .home-button svg { width: 27px; height: 27px; }
    .home-featured { margin-top: 22px; }
    .home-featured-heading { gap: 8px; }
    .home-featured-heading h2 { font-size: 21px; }
    .home-featured-heading > a { gap: 6px; font-size: 14px; }
    .home-featured-grid { grid-template-columns: 1fr; }
    .home-featured-card h3 { font-size: 22px; }
    .home-featured-card-body { padding: 12px 16px 16px; }
}
@media (max-width: 359px) {
    .home .top { padding: 0 5px; }
    .home .brand { flex-basis: 74px; }
    .home .mainnav { font-size: 10px; }
    .home-featured-heading { flex-wrap: wrap; }
    .home-button { grid-template-columns: 24px minmax(0, 1fr); padding: 7px 5px; gap: 4px; }
    .home-button svg { width: 23px; height: 23px; }
}
