/* Artletics — shared styles.
   Page layout comes from assets/css/pages/<slug>.css, which carries the grid
   coordinates of the original design. This file holds everything else. */

:root {
    --black: #000;
    --white: #fff;
    --accent: hsl(1.6, 97%, 55%);
    --green: rgb(156, 241, 9);
    --body-font: "Helvetica Neue", Arial, sans-serif; /* exactly the original's stack */

    /* The grid CSS expects these. Values read from the live site's theme. */
    --sqs-site-max-width: 3000px;
    --sqs-site-gutter: 1vw;
    --sqs-mobile-site-gutter: 6vw;
}

/* Row heights are a share of the grid's own width */
.fluid-engine {
    --container-width: calc(min(100vw, var(--sqs-site-max-width)) - 2 * var(--sqs-site-gutter));
}

@media (max-width: 767px) {
    .fluid-engine {
        --container-width: calc(100vw - 2 * var(--sqs-mobile-site-gutter));
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* The site default is white with black text; black sections set their own colours */
html {
    background: var(--white);
}

body {
    margin: 0;
    background: var(--white);
    color: var(--black);
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

/* The original keeps bold at 700; the browser default ("bolder") went to 900 inside
   headings that are already bold */
strong,
b {
    font-weight: 700;
}

a {
    color: inherit;
}

/* --- header ------------------------------------------------------------------ */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0.75rem var(--sqs-site-gutter);
    /* Like the original, the header lies over the top of the first section (whose
       padding leaves room for it) and scrolls away with the page */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 100;
}

.site-tagline {
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

.site-nav > ul {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a,
.site-nav button {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

/* Main menu titles one size up from the submenu items */
.site-nav > ul > li > a,
.site-nav > ul > li > button {
    font-size: 1rem;
}

.site-nav a:hover,
.site-nav button:hover {
    opacity: 0.7;
}

.nav-folder {
    position: relative;
}

.site-nav .nav-submenu {
    display: none;
    list-style: none;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 13rem;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--black);
    border: 1px solid #222;
}

.site-nav .nav-folder[aria-expanded="true"] .nav-submenu,
.site-nav .nav-folder:hover .nav-submenu,
.site-nav .nav-folder:focus-within .nav-submenu {
    display: flex;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 0.25rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: currentColor;
}

/* The header takes the colours of the page's first section, as on the original:
   black on the homepage, white on pages such as the legal ones */
.site-header {
    color: var(--white);
}

/* Pages whose first section is a video or photo: white text over the media */
.site-header.header-dark {
    color: var(--white);
}

.site-header.header-white {
    color: var(--black);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.header-white .site-nav .nav-submenu {
    background: var(--white);
    border-color: #e2e2e2;
}

/* --- sections and blocks ------------------------------------------------------ */

/* Visible, not hidden: the original relies on this for its sticky wordmark.
   Content sits centred (or top/bottom) inside the section's minimum height. */
.page-section {
    position: relative;
    display: flex;
    flex-direction: column;
}

.page-section > * {
    width: 100%;
}

.valign-middle {
    justify-content: center;
}

.valign-top {
    justify-content: flex-start;
}

.valign-bottom {
    justify-content: flex-end;
}

/* Section colours are painted by the .section-bg layer (measured from the original), so
   it can be clipped by a divider or reach up behind one. The theme only sets the text. */
.theme-black {
    color: var(--white);
}

.theme-white {
    color: var(--black);
}

.fe-block {
    position: relative;
    min-width: 0;
    min-height: 0;
}

/* Images fill the grid cell they were placed in. They are taken out of the flow so
   their own proportions cannot stretch the row, which is how the original behaves. */
.block-image {
    position: absolute;
    inset: 0;
    margin: 0;
    overflow: hidden;
}

.block-image a {
    display: block;
    height: 100%;
}

.block-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fills the block it was placed in, like images do, rather than forcing its own shape */
.block-video {
    position: absolute;
    inset: 0;
}

.block-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

/* A video moved into a text block (see site.js): it sits between paragraphs and takes
   the column's width, and the blank lines that made room for it are no longer needed */
.fe-block.is-inline {
    position: static;
    margin: 1.75rem 0;
}

.fe-block.is-inline .block-video {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.has-inline-video p:empty {
    display: none;
}

/* Embedded players keep their 16:9 shape inside the block, like the original */
.block-video iframe {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 100%;
    border: 0;
}

.block-text > :first-child {
    margin-top: 0;
}

.block-text > :last-child {
    margin-bottom: 0;
}

/* Text colours the original sets with classes on spans inside text blocks. Without
   these, white text on a dark section falls back to black. ("custom" carries its own
   colour inline, so it needs no rule.) */
.block-text .sqsrte-text-color--white {
    color: #fff;
}

.block-text .sqsrte-text-color--black {
    color: #000;
}

.block-text .sqsrte-text-color--lightAccent {
    color: rgb(248, 223, 219);
}

/* Blank lines between paragraphs keep their height, as on the original, where empty
   paragraphs carry an invisible ::before that forces a line box */
.block-text p:empty::before {
    content: "";
    display: inline-block;
}

/* Hand-drawn underlines and circles around words. Drawn inside the word and stretched
   to it, so they follow the text at every width; they sit behind the letters. */
.has-text-shape {
    position: relative;
    z-index: 0;
}

.text-shape {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    z-index: -1;
    pointer-events: none;
}

.text-shape path {
    fill: none;
    stroke-width: 0.1em;
    stroke-linecap: square;
    stroke-linejoin: bevel;
    vector-effect: non-scaling-stroke;
}

/* Quote blocks, measured on the original: padded by 6% of the block's width, no side
   margins (browsers indent blockquote and figure by 40px by default), bold text, and a
   small right-aligned caption */
.block-text:has(.sqs-quote-block-contents) {
    padding: 6%;
}

.block-text .sqs-quote-block-contents {
    margin: 1rem 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.block-text .sqs-quote-block-contents blockquote {
    margin: 0;
    line-height: 1.3;
}

.block-text .sqs-quote-block-contents figcaption {
    font-size: 14.27px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: normal;
    text-align: right;
}

@media (max-width: 767px) {
    .block-text .sqs-quote-block-contents figcaption {
        font-size: 14.92px;
    }
}

/* Text sized to fill its block carries no spacing of its own */
.block-text .sqsrte-scaled-text-container :is(h1, h2, h3, h4, p) {
    margin: 0;
}

/* Heading sizes match the original theme settings; measured per-block sizes in the page
   CSS override them. Spacing matches the original at every width: 32px around headings,
   16px around paragraphs, trimmed only at the very top and bottom of a block (above). */
.block-text h1 {
    font-size: 4.6rem;
    line-height: 1.05;
    margin: 2rem 0;
}

.block-text h2 {
    font-size: 4rem;
    line-height: 1.1;
    margin: 2rem 0;
}

.block-text h3 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin: 2rem 0;
}

.block-text h4 {
    font-size: 1.2rem;
    line-height: 1.35;
    margin: 2rem 0;
}

.block-text p {
    margin: 1rem 0;
}

/* --- contact form and map ------------------------------------------------------ */

/* Sizes, colours and spacing measured on the live form */
.block-form {
    font-weight: 700;
}

.block-form .form-group {
    margin: 0;
    padding: 0;
    border: 0;
}

.block-form .form-group-title {
    display: block;
    padding: 0;
    font-size: 16px;
    line-height: 25px;
}

.block-form .form-field {
    display: block;
    margin-bottom: 20px;
}

/* The two name fields, side by side with their own smaller captions */
.block-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0 10px;
}

.block-form .form-row .form-field {
    flex: 1 1 12rem;
}

.block-form .form-title,
.block-form .form-caption {
    display: flex;
    align-items: baseline;
    gap: 0.4em;
    padding-bottom: 4px;
    font-size: 16px;
    line-height: 20.8px;
}

.block-form .form-caption {
    font-size: 12.544px;
}

.block-form .form-required {
    font-size: 12.544px;
    font-weight: 700;
    opacity: 0.7;
}

.block-form input[type="text"],
.block-form input[type="email"],
.block-form textarea {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--black);
    background: #fafafa;
    color: var(--black);
    font: inherit;
    font-size: 16px;
    line-height: 20.8px;
}

.block-form textarea {
    height: 100px;
    resize: vertical;
}

.form-note {
    margin: 1rem 0 0;
    font-size: 0.9rem;
    font-weight: 400;
}

.form-note.is-error {
    color: var(--accent);
}

.form-submit {
    padding: 16px 20.8px;
    border: 0;
    background: var(--accent);
    color: var(--white);
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.form-submit:hover {
    opacity: 0.85;
}

.form-submit[disabled] {
    opacity: 0.6;
    cursor: default;
}

.block-map {
    position: relative;
    height: 100%;
    min-height: 300px;
}

.block-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- galleries, portfolio grid and item lists ---------------------------------- */

/* Horizontal strip of photos, matching the original's 4:5 crops */
.gallery-reel {
    display: flex;
    gap: 11px;
    overflow-x: auto;
    padding: 30px var(--sqs-site-gutter);
    scroll-snap-type: x proximity;
}

.gallery-reel figure {
    flex: 0 0 auto;
    width: 241px;
    aspect-ratio: 4 / 5;
    margin: 0;
    scroll-snap-align: start;
}

.gallery-reel img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Columns of photos at their own proportions, 3 across on desktop */
.gallery-masonry {
    columns: 3;
    column-gap: 71px;
    padding: 0 14px;
}

.gallery-masonry figure {
    break-inside: avoid;
    margin: 0 0 71px;
}

.gallery-masonry img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    .gallery-masonry {
        columns: 2;
        column-gap: 6px;
        padding: 0 23px;
    }

    .gallery-masonry figure {
        margin-bottom: 6px;
    }

    .gallery-reel figure {
        width: 223px;
    }
}

/* Portfolio grid: three square cards across, one on phones, with the title appearing
   over a near-white overlay on hover. Sizes measured on the original. */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 1vw;
}

.grid-card {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    text-decoration: none;
}

.grid-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-card-title {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    background: rgba(255, 255, 255, 0.85);
    color: #000;
    font-size: calc(1rem + 0.9583vw);
    font-weight: 700;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.grid-card:hover .grid-card-title,
.grid-card:focus-visible .grid-card-title {
    opacity: 1;
}

@media (max-width: 767px) {
    .grid-cards {
        grid-template-columns: 1fr;
        padding: 0 var(--sqs-mobile-site-gutter);
    }

    .grid-card-title {
        font-size: 24.64px;
    }
}

/* Item list (Partners): large centred title over three columns. Every size and gap below
   was measured on the original at 1440px and 390px wide. */
.item-list {
    text-align: center;
}

.item-list .item-list-title {
    margin: 95px 0 120px;
    padding: 0 1vw;
    font-size: calc(1rem + 3.6vw);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.04em;
}

.item-list ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin: 0 0 95px;
    padding: 0 1vw;
    list-style: none;
}

.item-list li {
    padding: 0 12.5%;
}

.item-list h2 {
    margin: 0 0 43px;
    font-size: calc(1rem + 0.24vw);
    font-weight: 700;
    line-height: 0.968;
    letter-spacing: -0.04em;
}

.item-list p {
    margin: 0;
    font-size: 14.272px;
    font-weight: 700;
    line-height: 1.3;
}

@media (max-width: 767px) {
    .item-list .item-list-title {
        margin: 60px 0 120px;
        font-size: 48.4px;
    }

    .item-list ul {
        grid-template-columns: 1fr;
        margin-bottom: 59px;
    }

    .item-list h2 {
        margin-bottom: 38px;
        font-size: 18.16px;
    }

    .item-list p {
        font-size: 14.92px;
    }
}

/* Marquee: text sliding sideways. site.js repeats the items until they fill the width
   twice over and sets the duration from the speed, so the loop is seamless. */
.marquee {
    overflow: hidden;
    /* Some marquees sit on a coloured band of their own, set per block by convert.js */
    background: var(--marquee-band, transparent);
    padding: var(--marquee-pad, 0);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: var(--marquee-gap, 0.5em);
    /* One trailing gap, so the two halves are exactly equal and the wrap is invisible */
    padding-right: var(--marquee-gap, 0.5em);
    width: max-content;
    white-space: nowrap;
    animation: marquee-scroll var(--marquee-duration, 30s) linear infinite;
}

.marquee[data-direction="right"] .marquee-track {
    animation-direction: reverse;
}

.marquee .marquee-item {
    margin: 0;
    /* The spaces inside an item are part of it on the original, e.g. "Eindevenement: " */
    white-space: pre;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }
}

/* Section background image with its colour tint, behind the section's content */
.section-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.section-bg img,
.section-bg .section-bg-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-bg-overlay {
    position: absolute;
    inset: 0;
}

/* Holds the divider clip shapes; takes no space */
.page-section > .clip-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.page-section > .fluid-engine,
.page-section > .gallery-reel,
.page-section > .gallery-masonry,
.page-section > .grid-cards,
.page-section > .item-list {
    position: relative;
    z-index: 1;
}

/* Decorative line along a section's edge, stretched over the whole section like the
   original; the desktop and mobile shapes differ */
.section-divider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.section-divider path {
    fill: none;
    vector-effect: non-scaling-stroke;
}

.section-divider .divider-mobile {
    display: none;
}

@media (max-width: 767px) {
    .section-divider .divider-desktop {
        display: none;
    }

    .section-divider .divider-mobile {
        display: inline;
    }
}

/* --- footer ------------------------------------------------------------------- */

/* The converted footer sections bring their own grid, gutters and colours (white on the
   original), so the wrapper adds nothing */
.site-footer {
    background: transparent;
}

.site-footer ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.site-footer a {
    font-size: 0.85rem;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-note {
    margin: 0;
    color: #8a8a8a;
    font-size: 0.8rem;
}

/* --- mobile ------------------------------------------------------------------- */

@media (max-width: 767px) {
    .block-text h1 {
        font-size: 2.6rem;
    }

    .block-text h2 {
        font-size: 2.2rem;
    }

    .block-text h3 {
        font-size: 1.4rem;
    }

    .nav-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1.5rem var(--sqs-mobile-site-gutter);
        background: var(--black);
    }

    .site-nav.is-open {
        display: block;
    }

    .header-white .site-nav {
        background: var(--white);
    }

    .site-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.1rem;
    }

    .nav-submenu {
        position: static;
        display: flex;
        border: 0;
        padding: 0.8rem 0 0 1rem;
    }
}
