/* ==========================================================================
   funartech.com -- single stylesheet, built on tokens.css.
   Order: reset, base, layout, header, footer, components, pages.
   ========================================================================== */

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: var(--text-body);
    color: var(--color-text);
    background: var(--color-paper);
    line-height: var(--leading-normal);
    -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: var(--space-4); top: -100px; z-index: 300;
    background: var(--color-navy); color: var(--color-text-inverse);
    padding: var(--space-3) var(--space-5); border-radius: var(--radius-sm);
    transition: top var(--transition);
}
.skip-link:focus { top: var(--space-4); }

/* --- layout --------------------------------------------------------------- */
.section {
    padding: var(--space-20) var(--gutter);
    background: var(--color-surface);
}
.section--paper { background: var(--color-paper); }
.section--tight { padding-block: var(--space-15); }

.container         { max-width: var(--width-wide);   margin-inline: auto; }
.container--medium { max-width: var(--width-medium); margin-inline: auto; }
.container--narrow { max-width: var(--width-narrow); margin-inline: auto; }
.container--prose  { max-width: var(--width-prose);  margin-inline: auto; }

.section-title {
    font-size: var(--text-title);
    font-weight: var(--weight-medium);
    text-align: center;
    color: var(--color-navy);
    margin-bottom: var(--space-15);
}
.section-title--left { text-align: left; }

.grid { display: grid; gap: var(--space-8); }
.grid--auto  { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-6); }
.grid--two   { grid-template-columns: 1fr 1fr; gap: var(--space-10); }
@media (max-width: 768px) { .grid--two { grid-template-columns: 1fr; } }

/* --- buttons -------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: var(--space-2);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: var(--text-body);
    font-weight: var(--weight-medium);
    transition: background var(--transition), border-color var(--transition),
                color var(--transition), transform var(--transition);
    border: 1px solid transparent;
    text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn--primary { background: var(--color-amber); color: var(--color-text-inverse); }
.btn--primary:hover { background: var(--color-amber-dark); }

.btn--secondary { background: transparent; border-color: var(--color-border-strong); color: var(--color-text); }
.btn--secondary:hover { border-color: var(--color-navy); color: var(--color-navy); }

.btn--accent { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn--accent:hover { background: var(--accent-soft); }

.btn--small { padding: 8px 16px; font-size: var(--text-small); }
.btn--block { width: 100%; font-size: var(--text-small); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.button-row {
    display: flex; gap: var(--space-3); flex-wrap: wrap;
    justify-content: center; margin-bottom: var(--space-15);
}
@media (max-width: 768px) { .button-row { flex-direction: column; } }

/* --- header --------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--color-surface);
    border-bottom: var(--border-thin);
}
.site-header__inner {
    display: flex; align-items: center; gap: var(--space-6);
    padding: var(--space-4) var(--gutter);
    max-width: var(--width-wide); margin-inline: auto;
}
.site-header__logo {
    font-weight: var(--weight-semibold);
    font-size: var(--text-lead);
    color: var(--color-navy);
    margin-right: auto;
    display: flex; align-items: center; gap: var(--space-2);
}
.site-header__logo img { height: 22px; width: auto; }

.site-header__actions { display: flex; align-items: center; gap: var(--space-3); }

.nav-toggle {
    display: none;
    padding: var(--space-2);
    color: var(--color-navy);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

/* --- main navigation ------------------------------------------------------ */
.nav { display: flex; align-items: center; gap: var(--space-2); }

.nav__section { position: relative; }

.nav__trigger, .nav__link {
    display: flex; align-items: center; gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-small);
    color: var(--color-text-subtle);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}
.nav__trigger:hover, .nav__link:hover,
.nav__section[open] .nav__trigger { color: var(--color-navy); }

.nav__link[aria-current="page"] { color: var(--color-navy); font-weight: var(--weight-medium); }

.nav__chevron { width: 14px; height: 14px; transition: transform var(--transition); }
.nav__section[open] .nav__chevron { transform: rotate(180deg); }

.nav__menu {
    position: absolute; top: calc(100% + var(--space-2)); left: 0; z-index: 110;
    min-width: 240px;
    background: var(--color-surface);
    border: var(--border-thin);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-menu);
    padding: var(--space-2);
}
.nav__menu a {
    display: block;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-small);
    color: var(--color-text-muted);
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
}
.nav__menu a:hover { background: var(--color-blue-soft); color: var(--color-navy); }
.nav__menu a[aria-current="page"] { color: var(--color-navy); font-weight: var(--weight-medium); }

/* <details> based dropdowns: no javascript needed to open them */
.nav__section > summary { list-style: none; cursor: pointer; }
.nav__section > summary::-webkit-details-marker { display: none; }

/* --- language switcher ---------------------------------------------------- */
.lang { position: relative; }
.lang__trigger {
    display: flex; align-items: center; gap: var(--space-1);
    padding: 8px 12px;
    font-size: var(--text-tiny);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}
.lang__trigger:hover { border-color: var(--color-navy); color: var(--color-navy); }
.lang__menu {
    position: absolute; top: calc(100% + var(--space-2)); right: 0; z-index: 110;
    min-width: 190px;
    background: var(--color-surface);
    border: var(--border-thin);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-menu);
    padding: var(--space-2);
}
.lang__menu a {
    display: block; padding: var(--space-2) var(--space-3);
    font-size: var(--text-small); color: var(--color-text-muted);
    border-radius: var(--radius-sm);
}
.lang__menu a:hover { background: var(--color-blue-soft); color: var(--color-navy); }
.lang__menu a[aria-current="true"] { color: var(--color-navy); font-weight: var(--weight-medium); }

/* --- hero ----------------------------------------------------------------- */
.hero {
    padding: var(--space-20) var(--gutter);
    text-align: center;
    background: var(--color-surface);
}
.hero__content { max-width: var(--width-narrow); margin-inline: auto; }
.hero h1 {
    font-size: var(--text-hero);
    font-weight: var(--weight-medium);
    line-height: var(--leading-tight);
    color: var(--color-navy);
    margin-bottom: var(--space-4);
}
.hero__lead {
    font-size: var(--text-lead);
    color: var(--color-text-muted);
    margin-bottom: var(--space-10);
}

/* Distinctions under the hero buttons: a programme badge, a grant, an award.
   .button-row keeps its own margin so the stats sit right where there is none;
   this row pulls that back up and restores the gap below itself. */
.hero__badges {
    display: flex; flex-wrap: wrap; justify-content: center;
    align-items: center; gap: var(--space-4);
    margin-top: calc(var(--space-6) - var(--space-15));
    margin-bottom: var(--space-10);
}
.hero__badges a, .hero__badges span {
    display: inline-flex; align-items: center; gap: var(--space-2);
    font-size: var(--text-tiny); color: var(--color-text-muted);
    border: var(--border-thin); border-radius: var(--radius-pill);
    padding: var(--space-2) var(--space-4);
    transition: border-color var(--transition), color var(--transition);
}
.hero__badges a:hover { border-color: var(--color-navy); color: var(--color-navy); }
.hero__badges svg { width: 16px; height: 16px; color: var(--accent); }
/* a logo keeps its own shape: sized by height, never stretched */
.hero__badges img { height: 40px; width: auto; }

/* --- stat cards ----------------------------------------------------------- */
.stat {
    background: var(--color-surface);
    border: var(--border-thin);
    border-top: var(--border-accent) solid var(--accent);
    border-radius: var(--radius-lg);
    padding: var(--space-7);
}
.stat__value {
    font-size: var(--text-title);
    font-weight: var(--weight-semibold);
    color: var(--accent);
    margin-bottom: var(--space-2);
}
.stat__label { font-size: var(--text-tiny); color: var(--color-text-subtle); }

/* --- cards ---------------------------------------------------------------- */
.card {
    background: var(--color-surface);
    border: var(--border-thin);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow-card); }

.card__icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: var(--space-5);
    background: var(--accent-soft);
    color: var(--accent);
}
.card__icon svg { width: 26px; height: 26px; }

.card h3 {
    font-size: var(--text-lead);
    font-weight: var(--weight-medium);
    color: var(--color-navy);
    margin-bottom: var(--space-3);
}
.card p { font-size: var(--text-small); color: var(--color-text-muted); line-height: var(--leading-relaxed); }

/* --- path cards (the two audiences) --------------------------------------- */
.path {
    background: var(--color-paper);
    border: var(--border-thin);
    border-left: var(--border-accent-side) solid var(--accent);
    border-radius: var(--radius-lg);
    padding: var(--space-10);
    display: flex; flex-direction: column;
}
.path h3 {
    font-size: var(--text-subtitle);
    font-weight: var(--weight-medium);
    color: var(--color-navy);
    margin-bottom: var(--space-5);
}
.path > p { font-size: var(--text-small); color: var(--color-text-muted); line-height: var(--leading-relaxed); margin-bottom: var(--space-6); }
.path__list { font-size: var(--text-tiny); color: var(--color-text-muted); margin-bottom: var(--space-6); }
.path__list-title { font-weight: var(--weight-medium); color: var(--color-navy); margin-bottom: var(--space-3); }
.path__list ul { display: flex; flex-direction: column; gap: var(--space-2); }
.path .btn { margin-top: auto; }

/* --- quote ---------------------------------------------------------------- */
.quote {
    background: var(--color-surface);
    border: var(--border-thin);
    border-left: var(--border-accent-side) solid var(--accent);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
}
.quote__text {
    font-size: var(--text-body);
    font-style: italic;
    line-height: var(--leading-loose);
    margin-bottom: var(--space-7);
}
.quote__author { font-size: var(--text-small); font-weight: var(--weight-medium); color: var(--color-navy); }
.quote__role { font-size: var(--text-tiny); color: var(--color-text-subtle); }

/* A row of quotes that becomes a swipeable strip on narrow screens. */
.quote-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.quote-strip .quote { display: flex; flex-direction: column; }
.quote-strip .quote__text { flex: 1; }
.quote-strip:focus-visible { outline: 2px solid var(--color-blue); outline-offset: var(--space-2); }
.quote-strip__more { text-align: center; margin-top: var(--space-6); }
@media (max-width: 960px) {
    .quote-strip {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: min(85%, 380px);
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        padding-bottom: var(--space-4);
    }
    .quote-strip .quote { scroll-snap-align: start; }
}

/* --- call to action ------------------------------------------------------- */
.cta {
    padding: var(--space-15) var(--gutter);
    text-align: center;
    background: var(--color-surface);
    border-top: var(--border-thin);
}
.cta h2 {
    font-size: var(--text-section);
    font-weight: var(--weight-medium);
    color: var(--color-navy);
    margin-bottom: var(--space-4);
}
.cta p { color: var(--color-text-muted); margin-bottom: var(--space-8); }

/* --- page header ---------------------------------------------------------- */
.page-header {
    padding: var(--space-15) var(--gutter) var(--space-10);
    background: var(--color-surface);
    border-bottom: var(--border-thin);
    text-align: center;
}
.page-header h1 {
    font-size: var(--text-title);
    font-weight: var(--weight-medium);
    color: var(--color-navy);
    margin-bottom: var(--space-3);
}
.page-header p { color: var(--color-text-muted); max-width: var(--width-narrow); margin-inline: auto; }

/* --- prose (rendered markdown) -------------------------------------------- */
.prose { font-size: var(--text-body); color: var(--color-text); line-height: var(--leading-relaxed); }
.prose > * + * { margin-top: var(--space-5); }
.prose h2 {
    font-size: var(--text-section); font-weight: var(--weight-medium);
    color: var(--color-navy); margin-top: var(--space-10);
}
.prose h3 {
    font-size: var(--text-subtitle); font-weight: var(--weight-medium);
    color: var(--color-navy); margin-top: var(--space-8);
}
.prose h4 { font-size: var(--text-lead); font-weight: var(--weight-medium); color: var(--color-navy); margin-top: var(--space-6); }
.prose a { color: var(--color-blue-dark); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--color-navy); }
.prose ul, .prose ol { padding-left: var(--space-6); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: var(--space-2); }
.prose blockquote {
    border-left: var(--border-accent-side) solid var(--color-blue);
    padding-left: var(--space-5); color: var(--color-text-muted); font-style: italic;
}
.prose img { border-radius: var(--radius-md); margin-inline: auto; }
.prose figure { text-align: center; }
.prose figcaption { font-size: var(--text-tiny); color: var(--color-text-subtle); margin-top: var(--space-2); }
.prose code {
    font-family: var(--font-mono); font-size: 0.9em;
    background: var(--color-paper); border: var(--border-thin);
    border-radius: var(--radius-sm); padding: 2px 5px;
}
.prose pre {
    background: var(--color-navy); color: var(--color-text-inverse);
    padding: var(--space-5); border-radius: var(--radius-md); overflow-x: auto;
}
.prose pre code { background: none; border: none; color: inherit; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--text-small); }
.prose th, .prose td { border: var(--border-thin); padding: var(--space-3); text-align: left; }
.prose th { background: var(--color-paper); color: var(--color-navy); font-weight: var(--weight-medium); }
.prose hr { border: none; border-top: var(--border-thin); }

.table-scroll { overflow-x: auto; }

/* --- listings (news, events) ---------------------------------------------- */
.entry-list { display: flex; flex-direction: column; gap: var(--space-6); }

.entry {
    background: var(--color-surface);
    border: var(--border-thin);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: box-shadow var(--transition);
}
.entry:hover { box-shadow: var(--shadow-card); }
.entry__date {
    font-size: var(--text-tiny); color: var(--color-text-subtle);
    display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3);
}
.entry__date svg { width: 14px; height: 14px; }
.entry h3 { font-size: var(--text-subtitle); font-weight: var(--weight-medium); color: var(--color-navy); margin-bottom: var(--space-3); }
.entry p { color: var(--color-text-muted); font-size: var(--text-small); line-height: var(--leading-relaxed); }
.entry__more { display: inline-block; margin-top: var(--space-4); font-size: var(--text-small); color: var(--color-blue-dark); }
.entry__more:hover { color: var(--color-navy); }

.entry__media {
    margin-bottom: var(--space-5);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-paper);
}
.entry__media img { width: 100%; max-height: 280px; object-fit: cover; }

/* --- filters -------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin-bottom: var(--space-10); }
.filter {
    padding: 6px 14px; font-size: var(--text-tiny);
    border: 1px solid var(--color-border); border-radius: var(--radius-pill);
    color: var(--color-text-muted); background: var(--color-surface);
    transition: all var(--transition);
}
.filter:hover { border-color: var(--color-navy); color: var(--color-navy); }
.filter[aria-pressed="true"] { background: var(--color-navy); border-color: var(--color-navy); color: var(--color-text-inverse); }

/* --- timeline ------------------------------------------------------------- */
.timeline { position: relative; padding-left: var(--space-8); }
.timeline::before {
    content: ""; position: absolute; left: 7px; top: var(--space-2); bottom: var(--space-2);
    width: 2px; background: var(--color-border);
}
.timeline__item { position: relative; padding-bottom: var(--space-8); }
.timeline__item::before {
    content: ""; position: absolute; left: calc(var(--space-8) * -1); top: 6px;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--color-surface); border: 3px solid var(--accent);
}
.timeline__date { font-size: var(--text-tiny); color: var(--color-text-subtle); margin-bottom: var(--space-1); }
.timeline__title { font-size: var(--text-body); font-weight: var(--weight-medium); color: var(--color-navy); }
.timeline__body { font-size: var(--text-small); color: var(--color-text-muted); margin-top: var(--space-2); }

/* --- people --------------------------------------------------------------- */
.people { display: grid; gap: var(--space-8); grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.person {
    background: var(--color-surface); border: var(--border-thin);
    border-radius: var(--radius-lg); padding: var(--space-8);
    display: flex; gap: var(--space-6);
}
.person__photo {
    width: 96px; height: 96px; flex: 0 0 96px;
    border-radius: var(--radius-md); object-fit: cover;
    background: var(--color-paper);
}
.person__name { font-size: var(--text-lead); font-weight: var(--weight-medium); color: var(--color-navy); }
.person__role { font-size: var(--text-tiny); color: var(--accent); font-weight: var(--weight-medium); margin-bottom: var(--space-3); }
.person__bio { font-size: var(--text-small); color: var(--color-text-muted); line-height: var(--leading-relaxed); }
.person__links { display: flex; gap: var(--space-3); margin-top: var(--space-3); }
.person__links a { color: var(--color-text-subtle); }
.person__links a:hover { color: var(--color-blue-dark); }
.person__links svg { width: 16px; height: 16px; }
@media (max-width: 560px) { .person { flex-direction: column; } }

/* --- logo wall ------------------------------------------------------------ */
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-8); align-items: center; }
.logos img { max-height: 56px; width: auto; margin-inline: auto; filter: grayscale(1); opacity: 0.7; transition: all var(--transition); }
.logos a:hover img { filter: none; opacity: 1; }

/* --- forms ---------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: var(--space-5); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: var(--text-small); font-weight: var(--weight-medium); color: var(--color-navy); }
.field input, .field textarea {
    padding: 12px 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    font-size: var(--text-small);
    transition: border-color var(--transition);
}
.field input:focus, .field textarea:focus { border-color: var(--color-blue); outline: none; }
.field textarea { min-height: 150px; resize: vertical; }
.field__error { font-size: var(--text-tiny); color: var(--color-danger); }
.field--invalid input, .field--invalid textarea { border-color: var(--color-danger); }
.field--honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
    padding: var(--space-5) var(--space-6);
    border-radius: var(--radius-md);
    border: var(--border-thin);
    border-left: var(--border-accent-side) solid var(--accent);
    background: var(--accent-soft);
    font-size: var(--text-small);
}
.notice--success { --accent: var(--color-teal); --accent-soft: var(--color-teal-soft); }
.notice--info { --accent: var(--color-blue); --accent-soft: var(--color-blue-soft); }

/* htmx request feedback */
.htmx-indicator { opacity: 0; transition: opacity var(--transition); }
.htmx-request .htmx-indicator { opacity: 1; }
.htmx-request .form__submit { opacity: 0.55; pointer-events: none; }

/* --- footer --------------------------------------------------------------- */
.site-footer {
    background: var(--color-navy);
    color: var(--color-text-inverse-muted);
    padding: var(--space-15) var(--gutter) var(--space-8);
    font-size: var(--text-small);
}
.site-footer__inner { max-width: var(--width-wide); margin-inline: auto; }
.site-footer__grid {
    display: grid; gap: var(--space-8);
    /* an auto-repeat track cannot sit next to a flexible one, so the columns are explicit */
    grid-template-columns: 1.6fr repeat(4, 1fr);
    margin-bottom: var(--space-10);
}
@media (max-width: 1100px) { .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__logo img { height: 20px; margin-bottom: var(--space-4); }
.site-footer p { margin-bottom: var(--space-3); }
.site-footer a { transition: color var(--transition); }
.site-footer a:hover { color: var(--color-text-inverse); }
.site-footer__title {
    color: var(--color-text-inverse); font-weight: var(--weight-medium);
    margin-bottom: var(--space-4); font-size: var(--text-small);
}
.site-footer__list { display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer__contact { display: flex; align-items: center; gap: var(--space-2); }
.site-footer__contact svg { width: 15px; height: 15px; flex: 0 0 15px; }

.site-footer__bottom {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: var(--text-tiny);
}
.site-footer__social { display: flex; gap: var(--space-4); align-items: center; }
.site-footer__social svg { width: 18px; height: 18px; }

/* --- 404 ------------------------------------------------------------------ */
.error-page { padding: var(--space-20) var(--gutter); text-align: center; }
.error-page__code { font-size: 72px; font-weight: var(--weight-semibold); color: var(--color-amber); line-height: 1; }
.error-page h1 { font-size: var(--text-title); font-weight: var(--weight-medium); color: var(--color-navy); margin: var(--space-5) 0 var(--space-3); }
.error-page p { color: var(--color-text-muted); margin-bottom: var(--space-8); }

/* --- translation notice --------------------------------------------------- */
.translation-notice {
    background: var(--color-blue-soft);
    border-bottom: var(--border-thin);
    padding: var(--space-3) var(--gutter);
    font-size: var(--text-tiny);
    color: var(--color-navy);
    text-align: center;
}

.translation-notice--draft {
    background: var(--color-amber-soft);
    color: var(--color-amber-dark);
    font-weight: var(--weight-medium);
}

/* --- responsive navigation ------------------------------------------------ */
@media (max-width: 960px) {
    /* logo and menu button share the first row; the actions wrap underneath */
    .nav-toggle { display: block; order: 1; }
    .site-header__actions { order: 2; width: 100%; }
    .site-header__inner { flex-wrap: wrap; row-gap: var(--space-3); }
    /* the switcher now starts the row, so its menu must open rightwards, on screen */
    .lang__menu { right: auto; left: 0; }
    .nav {
        order: 3; width: 100%;
        flex-direction: column; align-items: stretch;
        gap: 0; padding-top: var(--space-3);
        border-top: var(--border-thin); margin-top: var(--space-3);
    }
    .nav[hidden] { display: none; }
    .nav__menu {
        position: static; box-shadow: none; border: none;
        padding: 0 0 var(--space-3) var(--space-4);
        min-width: 0;
    }
    .nav__trigger, .nav__link { padding: var(--space-3); font-size: var(--text-body); }
}

/* --- icons ---------------------------------------------------------------- */
.icon {
    width: 1em; height: 1em;
    display: inline-block; vertical-align: -0.125em;
    flex: 0 0 auto;
}

/* --- use cases ------------------------------------------------------------ */
.use-case {
    background: var(--color-surface);
    border: var(--border-thin);
    border-top: var(--border-accent) solid var(--accent);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: box-shadow var(--transition);
}
.use-case:hover { box-shadow: var(--shadow-card); }
.use-case__image { width: 100%; height: 170px; object-fit: cover; }
.use-case__body {
    padding: var(--space-6) var(--space-7) var(--space-7);
    display: flex; flex-direction: column; flex: 1;
}
.use-case h3 {
    font-size: var(--text-lead); font-weight: var(--weight-medium);
    color: var(--color-navy); margin-bottom: var(--space-3);
}
.use-case__problem { font-size: var(--text-small); color: var(--color-text-muted); line-height: var(--leading-relaxed); }
/* keep the disclosure on the baseline of the row, whatever the text length */
.use-case__details { margin-top: auto; padding-top: var(--space-4); }
.use-case__details summary {
    display: flex; align-items: center; gap: var(--space-2);
    font-size: var(--text-tiny); font-weight: var(--weight-medium);
    color: var(--accent); cursor: pointer; list-style: none;
}
.use-case__details summary::-webkit-details-marker { display: none; }
.use-case__details[open] summary .nav__chevron { transform: rotate(180deg); }
.use-case__details dl { margin-top: var(--space-4); font-size: var(--text-tiny); }
.use-case__details dt {
    font-weight: var(--weight-semibold); color: var(--color-navy);
    margin-top: var(--space-3); text-transform: uppercase; letter-spacing: 0.04em;
}
.use-case__details dd { color: var(--color-text-muted); line-height: var(--leading-relaxed); margin-top: var(--space-1); }

/* --- press ---------------------------------------------------------------- */
.press__extra { margin-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.press__extra a { font-size: var(--text-small); color: var(--color-blue-dark); }
.press__extra a:hover { color: var(--color-navy); }

.notice--warning { --accent: var(--color-amber); --accent-soft: var(--color-amber-soft); }
.notice p + p { margin-top: var(--space-4); }


/* --- header on narrow screens -------------------------------------------- */
@media (max-width: 560px) {
    /* three controls have to share one row: tighten them rather than wrap again */
    .site-header__actions { gap: var(--space-2); }
    .site-header__actions .btn--small { padding: 8px 12px; }
    .lang__trigger { padding: 8px 10px; }
}

/* --- video ---------------------------------------------------------------- */
.video { max-width: 380px; margin-inline: auto; }   /* the footage is portrait */
.video video {
    width: 100%; height: auto; display: block;
    border-radius: var(--radius-lg);
    border: var(--border-thin);
    background: var(--color-navy);
}
.video figcaption {
    font-size: var(--text-tiny); color: var(--color-text-subtle);
    text-align: center; margin-top: var(--space-3);
}

/* --- palletizer demo ------------------------------------------------------ */
.palletizer { display: flex; flex-direction: column; gap: var(--space-5); }
.palletizer__stage {
    background: var(--color-surface);
    border: var(--border-thin);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}
.palletizer__svg { width: 100%; height: auto; display: block; }
.palletizer__deck { fill: #eeece9; stroke: var(--color-border); stroke-width: 6; }
/* three faces of one accent: lit on top, shaded on the sides */
.palletizer__face { stroke: var(--color-surface); stroke-width: 6; stroke-linejoin: round; }
.palletizer__face--top   { fill: var(--accent); }
.palletizer__face--south { fill: var(--accent); filter: brightness(0.82); }
.palletizer__face--east  { fill: var(--accent); filter: brightness(0.66); }

/* A box that has just been placed falls the last stretch into position. The drop is
   short on purpose: from higher up it would cross the boxes already stacked. */
.palletizer__box { transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1); }
.palletizer__box--falling { transform: translateY(-180px); transition: none; }
@media (prefers-reduced-motion: reduce) {
    .palletizer__box, .palletizer__box--falling { transition: none; transform: none; }
}

.palletizer__controls {
    display: flex; align-items: center; justify-content: center;
    gap: var(--space-4); flex-wrap: wrap;
}
.palletizer__controls input[type="range"] { flex: 1 1 200px; max-width: 320px; accent-color: var(--color-amber); }
.palletizer__count { font-size: var(--text-tiny); color: var(--color-text-subtle); min-width: 4ch; }
.palletizer figcaption { font-size: var(--text-tiny); color: var(--color-text-subtle); text-align: center; }

/* --- awards --------------------------------------------------------------- */
.award {
    display: flex; gap: var(--space-7); align-items: flex-start;
    background: var(--color-surface);
    border: var(--border-thin);
    border-left: var(--border-accent-side) solid var(--accent);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: box-shadow var(--transition);
}
.award:hover { box-shadow: var(--shadow-card); }
.award__image {
    width: 160px; flex: 0 0 160px;
    border-radius: var(--radius-md); object-fit: cover;
}
.award__meta {
    display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
    font-size: var(--text-tiny); color: var(--color-text-subtle);
    margin-bottom: var(--space-2);
}
.award__meta svg { color: var(--accent); }
.award h2 {
    font-size: var(--text-subtitle); font-weight: var(--weight-medium);
    color: var(--color-navy); margin-bottom: var(--space-3);
}
.award p { font-size: var(--text-small); color: var(--color-text-muted); line-height: var(--leading-relaxed); }
@media (max-width: 640px) {
    .award { flex-direction: column; }
    .award__image { width: 100%; flex: none; max-height: 200px; }
}
