/* -- RESET -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--color-beige); color: var(--color-black); font-family: "Geist"; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

/* -- TEXT TRIM -- */
:where(h1, h2, h3, h4, h5, h6, p, span, a, li, button, label, figcaption) {
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

/* -- PRIMARY BUTTON -- */
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: var(--spacer-12px); height: 48px; padding: 0 34px; background: var(--color-red); color: var(--color-white); border: var(--stroke) solid var(--color-black); box-shadow: var(--shadow-default); text-transform: uppercase; white-space: nowrap; }
.primary-button:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hover); }
.primary-button:active { transform: translate(6px, 6px); background: var(--color-brick-red); box-shadow: var(--shadow-pressed); }
.primary-button[disabled], .primary-button[aria-disabled="true"] { opacity: 0.5; box-shadow: var(--shadow-default); pointer-events: none; }

/* -- SECONDARY BUTTON -- */
.secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: var(--spacer-12px); height: 48px; padding: 0 34px; background: transparent; color: var(--color-black); border: var(--stroke) solid var(--color-black); text-transform: uppercase; white-space: nowrap; }
.secondary-button:hover { background: var(--color-beige); }
.secondary-button:active { background: var(--color-beige-grey); }
.secondary-button[disabled], .secondary-button[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* -- ICON BUTTON -- */
.icon-button { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 18px; background: var(--color-brick-red); color: var(--color-white); border: var(--stroke) solid var(--color-black); text-transform: uppercase; white-space: nowrap; }
.icon-button:hover { background: var(--color-red); }
.icon-button:active { background: var(--color-black); }
.icon-button[disabled], .icon-button[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* -- TEXT BUTTON -- */
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: var(--spacer-12px); background: transparent; color: var(--color-black); text-transform: uppercase; white-space: nowrap; }
.text-button[disabled], .text-button[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* -- TAB -- */
.tab { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; background: transparent; color: var(--color-black); border: var(--stroke) solid var(--color-black); text-transform: uppercase; white-space: nowrap; }
.tab:not([aria-selected="true"]):hover { background: var(--color-beige); }
.tab:not([aria-selected="true"]):active { background: var(--color-beige-grey); }
.tab[aria-selected="true"] { background: var(--color-black); color: var(--color-white); }
.tab[disabled], .tab[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* -- NAVIGATION PAGE -- */
.navigation-page { display: inline-flex; flex-direction: column; align-items: center; gap: var(--spacer-4px); color: var(--color-black); text-transform: uppercase; white-space: nowrap; }
.navigation-page::after { content: ""; align-self: stretch; height: var(--stroke); background: transparent; }
.navigation-page:hover { color: var(--color-red); }
.navigation-page:active { color: var(--color-brick-red); }
.navigation-page[aria-current] { color: var(--color-red); }
.navigation-page[aria-current] .navigation-page__label { font-weight: 700; }
.navigation-page[aria-current]::after { background: var(--color-red); }
.navigation-page[disabled], .navigation-page[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* -- LINK -- */
.link { color: var(--color-black); text-transform: uppercase; white-space: nowrap; }
.link:hover { color: var(--color-red); }
.link:active { color: var(--color-brick-red); }
.link[disabled], .link[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* -- EXTERNAL LINK -- */
.external-link { display: inline-flex; align-items: center; gap: var(--spacer-8px); color: var(--color-black); text-transform: uppercase; white-space: nowrap; }
.external-link:hover { color: var(--color-red); }
.external-link:active { color: var(--color-brick-red); }
.external-link[disabled], .external-link[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.external-link__icon { width: 10px; height: 10px; flex: none; background: url("../assets/icons/ic_external-link-default.svg") center / contain no-repeat; }
.external-link:hover .external-link__icon { background-image: url("../assets/icons/ic_external-link-hover.svg"); }
.external-link:active .external-link__icon { background-image: url("../assets/icons/ic_external-link-pressed.svg"); }

/* -- LOGO -- */
.logo { display: inline-flex; align-items: center; gap: var(--spacer-12px); height: 36px; }
.logo__mark { width: 36px; height: 36px; flex: none; }
.logo__name { color: var(--color-black); text-transform: uppercase; }

/* -- DIVIDER -- */
.divider { height: var(--stroke); background: currentColor; opacity: 0.5; }

/* -- PLUS -- */
.plus { width: 40px; height: 40px; background-position: center; background-size: contain; background-repeat: no-repeat; }

/* -- RIBBON VERTICAL STRIPES -- */
.ribbon-vertical-stripes { width: 40px; height: 100%; background: url("../assets/background/ribbon-vertical.svg") top center / 40px auto repeat-y; }

/* -- RIBBON VERTICAL RINGS -- */
.ribbon-vertical-rings { width: 40px; height: 100%; background: url("../assets/background/note-ring.svg") top center / 40px auto repeat-y; }

/* -- RIBBON HORIZONTAL HAZARD -- */
.ribbon-horizontal-hazard { width: 100%; height: 42px; background: url("../assets/background/ribbon-horizontal.svg") 0 center / auto 42px repeat-x, var(--color-rich-black); animation: hazard-scroll 2.3s linear infinite; }
@keyframes hazard-scroll { to { background-position: 46px center, 0 0; } }
.ribbon--left { transform: scaleX(-1); }

/* -- SMALL TITLE -- */
.small-title { display: inline-flex; align-items: center; gap: var(--spacer-8px); text-transform: uppercase; white-space: nowrap; }
.small-title__section { color: var(--color-black); }
.small-title__separator { color: var(--color-red); }
.small-title__name { color: var(--color-grey); }

/* -- PAGE LABEL (top-right; .chevrons + text; wrapper holds one or more units) -- */
.page-labels { position: absolute; right: 200px; top: 80px; display: flex; align-items: center; gap: var(--spacer-20px); }
.page-label { display: inline-flex; align-items: center; gap: var(--spacer-20px); color: var(--color-light-grey); text-transform: uppercase; white-space: nowrap; }

/* -- TYPE FILTER -- */
.type-filter { display: inline-flex; align-items: center; }
.type-filter .tab:not(:first-child) { border-left: 0; }

/* -- BREADCRUMBS -- */
.breadcrumbs { display: inline-flex; align-items: center; gap: var(--spacer-8px); }
.breadcrumbs__separator { color: var(--color-red); text-transform: uppercase; }
.breadcrumb { display: inline-flex; align-items: center; gap: 10px; color: var(--color-grey); text-transform: uppercase; white-space: nowrap; }
.breadcrumb:hover { color: var(--color-red); }
.breadcrumb:active { color: var(--color-brick-red); }
.breadcrumb[aria-current] { color: var(--color-black); }

/* -- IMAGE CAROUSEL -- */
.image-carousel { display: flex; align-items: center; justify-content: space-between; }
.image-carousel__arrow { background: transparent; color: var(--color-black); }
.image-carousel__arrow:hover { background: var(--color-beige); }
.image-carousel__arrow:active { background: var(--color-beige-grey); }

/* -- NEWS ITEM -- */
.news-item { display: flex; align-items: flex-start; gap: var(--spacer-20px); }
.news-item__square { flex: none; width: 12px; height: 12px; background: url("../assets/background/square.svg") center / contain no-repeat; }
.news-item__content { flex: 1; display: flex; flex-direction: column; gap: var(--spacer-20px); min-width: 0; }
.news-item__label { color: var(--color-red); text-transform: uppercase; }
.news-item__title { color: var(--color-black); text-transform: uppercase; }
.news-item__body { color: var(--color-black); }
.news-item__body > * + * { margin-top: var(--spacer-16px); }
.news-item__body strong { font-weight: 700; }
.news-item__list { padding-left: 24px; list-style: disc; }
.news-item__list > li { color: var(--color-black); text-box-trim: none; }
.news-item__images { margin-left: 32px; display: flex; flex-wrap: wrap; gap: var(--spacer-40px); }
.news-item__images .news-item__image { width: 320px; height: 240px; cursor: pointer; }
.news-item__image { flex: none; border: var(--stroke) solid var(--color-black); object-fit: cover; display: block; }

/* -- IMAGE PREVIEW (lightbox) -- */
.image-preview { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; }
.image-preview[hidden] { display: none; }
.image-preview__backdrop { position: absolute; inset: 0; background: var(--color-rich-black); opacity: 0.5; }
.image-preview__image { position: relative; z-index: 1; max-width: calc(100vw - 80px); max-height: calc(100vh - 80px); border: var(--stroke) solid var(--color-black); }

/* -- MATERIAL CARD -- */
.material-card { position: relative; display: flex; flex-direction: column; width: 320px; height: 490px; background: var(--color-beige); color: var(--color-black); border: var(--stroke) solid var(--color-black); box-shadow: var(--shadow-default); }
.material-card::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: url("../assets/background/paper_tiling_2.jpg") top left / 1440px 1440px repeat; opacity: 0.12; }
.material-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hover); }
.material-card:active { transform: translate(6px, 6px); box-shadow: var(--shadow-pressed); }
.material-card[aria-disabled="true"] { opacity: 0.5; box-shadow: var(--shadow-default); transform: none; pointer-events: none; }
.material-card__image { position: relative; z-index: 1; flex: none; height: 318px; overflow: hidden; border-bottom: var(--stroke) solid var(--color-black); }
.material-card__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.material-card__tags { position: absolute; z-index: 2; top: 18px; left: 18px; right: 18px; display: flex; align-items: center; gap: var(--spacer-8px); }
.material-card__type { display: inline-flex; align-items: center; }
.material-card__type-icon { width: 20px; height: 20px; flex: none; }
.material-card__type-name { height: 20px; display: inline-flex; align-items: center; padding: 0 var(--spacer-8px) 0 var(--spacer-2px); background: var(--color-black); color: var(--color-white); text-transform: uppercase; }
.material-card__theme { height: 20px; display: inline-flex; align-items: center; padding: 0 var(--spacer-8px); background: var(--color-yellow); color: var(--color-white); text-transform: uppercase; }
.material-card__content { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; gap: var(--spacer-20px); padding: 20px 18px 0; }
.material-card__serial { color: var(--color-light-grey); text-transform: uppercase; }
.material-card__title { color: var(--color-black); text-transform: uppercase; white-space: nowrap; overflow-x: clip; overflow-y: visible; text-overflow: ellipsis; }
.material-card__description { color: var(--color-black); text-box-trim: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: clip; }

/* -- NAVIGATION BAR -- */
.navigation-bar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; height: 74px; padding: 0 40px; background: var(--color-beige); border-bottom: var(--stroke) solid var(--color-black); }
.navigation-bar::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: url("../assets/background/paper_tiling_1.jpg") top left / 1440px 1440px repeat; opacity: 0.12; }
.navigation-bar__logo { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: var(--spacer-12px); }
.navigation-bar__version { color: var(--color-red); text-transform: uppercase; }
.navigation-bar__pages { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: var(--spacer-20px); }

/* -- RUNNING BOARD -- */
.running-board { display: flex; align-items: center; height: 42px; overflow: hidden; background: var(--color-rich-black); }
.running-board__track { display: flex; align-items: center; gap: var(--spacer-20px); flex: none; white-space: nowrap; animation: running-board-scroll 80s linear infinite; }
.running-board__item { color: var(--color-white); text-transform: uppercase; white-space: nowrap; }
.running-board__separator { width: 18px; text-align: center; color: var(--color-red); text-transform: uppercase; }
@keyframes running-board-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* -- FOOTER -- */
.footer { position: relative; background: var(--color-rich-black); padding: 80px 0; }
.footer .plus { position: absolute; background-image: url("../assets/background/plus.svg"); }
.footer .plus.is-tl { left: 40px; top: 40px; }
.footer .plus.is-tr { right: 40px; top: 40px; }
.footer .plus.is-bl { left: 40px; bottom: 40px; }
.footer .plus.is-br { right: 40px; bottom: 40px; }
.footer__content { width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--spacer-80px); }
.footer__top { display: flex; align-items: flex-start; justify-content: space-between; }
.footer__brand { display: flex; flex-direction: column; gap: var(--spacer-40px); }
.footer .logo__name { color: var(--color-white); }
.footer__description { width: 260px; color: var(--color-light-grey); text-transform: uppercase; }
.footer__columns { display: flex; gap: var(--spacer-80px); align-items: flex-start; }
.footer__column { display: flex; flex-direction: column; gap: var(--spacer-20px); }
.footer__column-title { color: var(--color-grey); text-transform: uppercase; }
.footer__links { display: flex; flex-direction: column; gap: var(--spacer-20px); }
.footer .link, .footer .external-link { color: var(--color-beige); }
.footer .link:hover, .footer .external-link:hover { color: var(--color-red); }
.footer .link:active, .footer .external-link:active { color: var(--color-brick-red); }
.footer__bottom { display: flex; flex-direction: column; gap: var(--spacer-40px); }
.footer__divider { background: var(--color-red); opacity: 1; }
.footer__copyright { display: flex; align-items: center; justify-content: space-between; color: var(--color-light-grey); text-transform: uppercase; }

/* -- CONSTITUTION BLOCK -- */
.constitution-block { position: relative; overflow: hidden; background: var(--color-black); padding: 80px 0; min-height: 654px; }
.constitution-block .plus { position: absolute; opacity: 0.5; background-image: url("../assets/background/plus-grey.svg"); }
.constitution-block .plus.is-tl { left: 40px; top: 40px; }
.constitution-block .plus.is-tr { right: 40px; top: 40px; }
.constitution-block .plus.is-bl { left: 40px; bottom: 40px; }
.constitution-block .plus.is-br { right: 40px; bottom: 40px; }
.constitution-block__content { width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--spacer-80px); text-transform: uppercase; }
.constitution-block .small-title__section { color: var(--color-white); }
.constitution-block .small-title__separator { color: var(--color-light-grey); }
.constitution-block .small-title__name { color: var(--color-light-grey); }
.constitution-block__quote { color: var(--color-white); }
.constitution-block__quote .highlight { color: var(--color-red); }
.constitution-block__note { color: var(--color-grey); }

/* -- FACTORY BLOCK -- */
.factory-block { position: relative; overflow: hidden; height: 812px; background: var(--color-rich-black); }
.factory-block::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: url("../assets/background/paper_tiling_1.jpg") top left / 1440px 1440px repeat; opacity: 0.12; }
.factory-block::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; border: 12px solid var(--color-red); }
.factory-block__inner { position: relative; z-index: 1; width: 1440px; height: 100%; margin: 0 auto; }
.factory-block__exclamation { position: absolute; left: 108px; top: 172px; width: 40px; height: 152px; background: url("../assets/background/exclamation.svg") center / contain no-repeat; }
.factory-block__content { position: absolute; left: 188px; top: 80px; width: 700px; display: flex; flex-direction: column; gap: var(--spacer-80px); }
.factory-block .small-title__section { color: var(--color-white); }
.factory-block__heading { color: var(--color-white); text-transform: uppercase; }
.factory-block__body { color: var(--color-white); text-transform: uppercase; }
.factory-block__hero-card { position: absolute; left: 980px; top: 172px; padding: 12px; background: var(--color-red); box-shadow: var(--shadow-default); }
.factory-block__hero-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hover); }
.factory-block__hero-card:active { transform: translate(6px, 6px); box-shadow: var(--shadow-pressed); }
.factory-block__hero-card .material-card { box-shadow: none; }
.factory-block__hero-card .material-card:hover, .factory-block__hero-card .material-card:active { box-shadow: none; transform: none; }
