/*
  Skills landing page (/skills).

  Sizes follow the other landing pages (law_stations.css, corporate_wiki.css):
  page.css sets html { font-size: 62.5% }, so 1rem = 10px. The frame geometry
  and the percentages below are measured off the "Skills -v2" artboards.
  Headings are specified in VAG Rounded, which the site does not ship, so the
  site-wide Frutiger stack is used instead.
*/

.skills-page {
    background: var(--BACKGROUND);
    color: var(--WHITE);
    font-family: "Frutiger 45 Light", "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
}

.sk-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 6rem;
}

.sk-hero {
    max-width: 1040px;
    margin: 0 auto;
    text-align: center;
}

.sk-hero-logo {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    margin: 0 auto;
}

/* Rotation does not affect layout, so the descending right-hand end is what
   crosses the frames below. z-index keeps it above them. */
.sk-tagline {
    position: relative;
    z-index: 1;
    margin: 1rem auto 0;
    font-size: 2.25rem;
    line-height: 1.35;
    transform: rotate(4.49deg);
}

/* Each frame is 36.5% of the row, and the next starts 690 of 794 further
   along, so neighbours overlap by 4.76%: 3 x 36.5 - 2 x 4.76 = 100%. */
.sk-tracks {
    display: flex;
    align-items: flex-start;
    margin-top: 2.7%;
}

.sk-track {
    position: relative;
    flex: 0 0 36.5%;
    min-width: 0;
}

.sk-track + .sk-track {
    margin-left: -4.76%;
}

/* Each column drops 57px of a 685px frame; 2.63% of the row's width. */
.sk-track:nth-child(2) { margin-top: 2.63%; }
.sk-track:nth-child(3) { margin-top: 5.26%; }

/* Unclipped, so the badge can straddle the frame's bottom edge. */
.sk-panel {
    position: relative;
}

/* A border cannot follow a clip-path, so the white outline is the frame's own
   background showing around the inset image. */
.sk-frame {
    aspect-ratio: 794 / 685;
    background: var(--WHITE);
    clip-path: polygon(0% 0%, 83.3% 7.3%, 100% 100%, 17.1% 91.7%);
}

.sk-image {
    position: absolute;
    inset: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    object-fit: cover;
    clip-path: polygon(0% 0%, 83.3% 7.3%, 100% 100%, 17.1% 91.7%);
}

/* min-width holds the artboard's proportion; padding lets a longer label grow
   rather than spill past the curve. */
.sk-badge {
    position: absolute;
    left: 54%;
    top: 94.7%;
    min-width: 35.4%;
    margin: 0;
    padding: 1rem 2.6rem;
    transform: translate(-50%, -50%);
    background: var(--WHITE);
    color: var(--BLACK);
    border-radius: 50%;
    font-size: 1.3rem;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}

.sk-badge strong {
    display: block;
    font-weight: 300;
    font-size: 1.5rem;
}

.sk-text {
    margin: 3.5rem 0 0;
    font-size: 1.5rem;
    line-height: 1.5;
    text-align: center;
}

.sk-closing {
    max-width: 920px;
    margin: 6rem auto 0;
    font-size: 1.75rem;
    line-height: 1.45;
    text-align: center;
}

.sk-cta-row {
    text-align: center;
}

.sk-cta {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 2.5rem 0.3rem 2.5rem;
    border: 1px solid var(--WHITE);
    border-radius: 999px;
    background: transparent;
    color: var(--WHITE);
    font-family: "Frutiger Bold", "Helvetica Neue", Arial, sans-serif;
    font-size: 1.75rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease;
}

.sk-cta:hover,
.sk-cta:focus {
    background: var(--WHITE);
    color: var(--BLACK);
    text-decoration: none;
}

@media (max-width: 991px) {
    /* The mobile artboard frames the page in a white rule. */
    .sk-inner {
        margin: 2rem 1.5rem;
        padding: 2.5rem 1.5rem 4rem;
        border: 1px solid var(--WHITE);
    }

    .sk-hero-logo { max-width: 320px; }

    .sk-tagline {
        font-size: 1.5rem;
        transform: rotate(2deg);
    }

    /* Stacked: the overlap and the diagonal only read in three columns. */
    .sk-tracks {
        flex-direction: column;
        margin-top: 4rem;
    }

    .sk-track,
    .sk-track:nth-child(2),
    .sk-track:nth-child(3) {
        flex: 0 0 auto;
        margin-top: 0;
    }

    .sk-track + .sk-track {
        margin-top: 4rem;
        margin-left: 0;
    }

    .sk-badge { padding: .9rem 2.2rem; font-size: 1.2rem; }
    .sk-badge strong { font-size: 1.4rem; }
    .sk-text { margin-top: 3rem; font-size: 1.4rem; }

    .sk-closing {
        margin-top: 4rem;
        font-size: 1.5rem;
    }

    .sk-cta {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .sk-inner {
        margin: 1.5rem 1rem;
        padding: 2rem 1rem 3rem;
    }

    .sk-hero-logo { max-width: 240px; }
}
