/* ==========================================================================
   New design (Carrot, Oct 2026): season page (screen 02, "SS28")
   Title, two-line intro with "Read more", concepts + Concept Book in a 2 x 2 grid of squares,
   a row of colour squares, then the two portfolios. Values from the delivered prototype
   (app.css #screen-sharabati rules). Loaded only for Preview users.
   ========================================================================== */

.s2-season {
    background: #fff;
    font-family: var(--s2-font);
}
.s2-season a {
    text-decoration: none;
}

/* ---------- Title ---------- */
.s2-season-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 16px 4px;
    text-align: center;
}
.s2-season-title {
    margin: 0;
    font-family: var(--s2-font);
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--s2-indigo);
}

/* ---------- Concepts + Concept Book: 2 x 2 squares ---------- */
.s2-season-concepts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}
.s2-season-concepts .s2-tile {
    container-type: inline-size;
}
/* Every concept logo gets the same letter height (as MAXSOFT, PRISMA, RELIVE in the design) */
.s2-concept-logo {
    width: auto;
    height: 10.2cqw;
    max-width: 84%;
    object-fit: contain; /* a very wide logo is capped in width and keeps its shape */
}
.s2-logo-halo .s2-tile-logo {
    filter: drop-shadow(0 0 1px rgba(0, 20, 40, 0.55)) drop-shadow(0 2px 10px rgba(0, 20, 40, 0.55));
}

/* Concept Book: indigo square, download icon, title, "Download"; a lighter blue fills it while it downloads */
.s2-book {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    color: #fff;
    text-align: center;
}
.s2-book > :not(.s2-book-fill) {
    position: relative;
    z-index: 1;
}
.s2-book-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--progress, 0%);
    background: var(--s2-blue);
    transition: width 0.12s linear;
    pointer-events: none;
}
.s2-book-title {
    padding: 0 10px;
    font-size: calc((min(50vw, 197px) - 26px) / 8.4);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}
.s2-book-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
}

/* Even number of concepts: the Concept Book takes the whole row (2:1, the same height as a square) */
.s2-book.s2-book-wide {
    grid-column: 1 / -1;
    aspect-ratio: 2 / 1;
}

/* ---------- Lines: a row of colour squares with the white logo ---------- */
.s2-season-lines {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-top: 4px;
}
.s2-line {
    container-type: inline-size;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.2s ease;
}
.s2-line:active {
    opacity: 0.9;
}
.s2-line-logo {
    display: block;
    width: auto;
    height: 13.8cqw;
    max-width: 84%;
    object-fit: contain; /* a very wide logo (GOOD OLE) is capped in width and keeps its shape */
    filter: brightness(0) invert(1);
}
.s2-line-name {
    padding: 0 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
}

/* ---------- Portfolios ---------- */
.s2-season-portfolios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-top: 4px;
}
.s2-season-portfolios .s2-square > img {
    object-position: center 30%;
}

/* Twillis page: without a Concept Book the portfolio fills the row (2:1, like the Home's Portfolio) */
.s2-season-portfolios-single .s2-square {
    grid-column: 1 / -1;
    aspect-ratio: 2 / 1;
}

/* An odd number of photo squares (e.g. a Twillis line switched off): the last one fills the row at 2:1 */
.s2-concepts-odd > .s2-tile:last-child {
    grid-column: 1 / -1;
    aspect-ratio: 2 / 1;
}
/* ...with its logo the same size as in a square (logo widths are a share of the logo box) */
.s2-concepts-odd > .s2-tile:last-child .s2-tile-logo-wrap {
    padding: 0 25%;
}
