* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent: #ffa60d;
    --accent-dark: #b15f00;
    --ink: #202124;
    --muted: #5f6368;
    --line: #d8dde3;
    --paper: #ffffff;
    --soft: #f4f6f8;
    --deep: #252a31;
    --hero-shift: 0px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    overflow-x: hidden;
}

body {
    font-family: "Roboto", Arial, sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--paper);
    overflow-x: hidden;
}

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

header {
    background-color: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transform: scaleX(0.2);
    transition: opacity 0.25s ease, transform 0.35s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.985);
    box-shadow: 0 12px 34px rgba(32, 33, 36, 0.12);
}

header.scrolled::after {
    opacity: 1;
    transform: scaleX(1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 86px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent);
    font-size: clamp(1rem, 1.55vw, 1.28rem);
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.logo img {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.logo span {
    transform: translateY(1px);
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.3rem;
}

nav a {
    position: relative;
    text-decoration: none;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 400;
}

nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 2px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}

nav a:hover,
.text-link:hover,
nav a.active {
    color: var(--accent-dark);
}

nav a:hover::after,
nav a.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background-color: var(--ink);
    transition: 0.2s;
}

main {
    padding-top: 138px;
}

section {
    padding: 72px 0;
}

.event-banner {
    background: #171b20;
    border-top: 1px solid rgba(255, 166, 13, 0.45);
    color: #fff;
    left: 0;
    position: fixed;
    right: 0;
    top: 86px;
    z-index: 999;
}

.event-banner.is-hidden {
    display: none;
}

body.banner-hidden main {
    padding-top: 86px;
}

.event-banner-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 1rem;
    align-items: center;
    min-height: 52px;
}

.event-banner p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.94rem;
}

.event-banner span {
    color: var(--accent);
    font-weight: 700;
    margin-right: 0.45rem;
    text-transform: uppercase;
}

.event-banner a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.event-banner a:hover {
    color: var(--accent);
}

.event-banner button {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.76);
    cursor: pointer;
    font: inherit;
    line-height: 1;
}

.event-banner button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero {
    background-color: var(--deep);
    color: #fff;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -12%;
    z-index: -2;
    background:
        linear-gradient(rgba(25, 28, 33, 0.7), rgba(25, 28, 33, 0.82)),
        url("https://images.unsplash.com/photo-1565008447742-97f6f38c985c?auto=format&fit=crop&w=1800&q=80") center calc(50% + var(--hero-shift)) / cover;
    transform: scale(1.06);
    will-change: background-position;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    z-index: -1;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.1));
    pointer-events: none;
}

.hero .container {
    max-width: 900px;
    position: relative;
    z-index: 2;
    transform: translateY(calc(var(--hero-shift) * -0.18));
    will-change: transform;
}

.hero-visual {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    transform: translateY(calc(var(--hero-shift) * -0.38));
    will-change: transform;
}

.machine-line {
    position: absolute;
    right: -80px;
    width: min(54vw, 620px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 159, 22, 0.9), rgba(255, 255, 255, 0.24));
    transform: rotate(-12deg);
    transform-origin: right;
}

.line-one {
    top: 24%;
}

.line-two {
    top: 48%;
    right: -120px;
    opacity: 0.7;
}

.line-three {
    top: 68%;
    width: min(44vw, 520px);
    opacity: 0.55;
}

.spark {
    position: absolute;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    box-shadow: 0 0 24px rgba(245, 159, 22, 0.9);
    animation: floatSpark 5s ease-in-out infinite;
    transform: rotate(-12deg);
}

.spark-one {
    top: 26%;
    right: 18%;
}

.spark-two {
    top: 54%;
    right: 36%;
    animation-delay: 1.4s;
}

.spark-three {
    top: 72%;
    right: 12%;
    animation-delay: 2.2s;
}

.eyebrow {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.18;
    overflow-wrap: anywhere;
    hyphens: auto;
}

h1 {
    font-size: clamp(2.3rem, 6vw, 4.5rem);
    max-width: 820px;
    margin-bottom: 1.2rem;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    margin-bottom: 1.3rem;
}

h3 {
    font-size: 1.16rem;
    margin-bottom: 0.85rem;
}

p + p {
    margin-top: 0.9rem;
}

.section-with-media h2,
.process-section h2 {
    margin-bottom: 0.95rem;
}

.section-with-media h3,
.process-section h3 {
    margin-top: 1.8rem;
    margin-bottom: 0.55rem;
}

.section-with-media h2 + h3,
.process-section h2 + h3 {
    margin-top: 1.35rem;
}

.section-with-media p + h2,
.process-section p + h2 {
    margin-top: 2.4rem;
}

.section-with-media p,
.process-section p {
    max-width: 760px;
    color: var(--muted);
}

.section-with-media ul,
.section-with-media ol,
.process-section ul,
.process-section ol {
    display: grid;
    gap: 0.55rem;
    margin: 1rem 0 1.15rem;
    padding-left: 1.35rem;
    max-width: 720px;
    color: var(--muted);
}

.section-with-media li,
.process-section li {
    padding-left: 0.2rem;
}

.section-with-media li::marker,
.process-section li::marker {
    color: var(--accent-dark);
    font-weight: 700;
}

.hero p:not(.eyebrow) {
    max-width: 720px;
    color: #f3f5f7;
    font-size: 1.16rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 44px;
    background-color: var(--accent);
    color: #1f1f1f;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 300;
    white-space: normal;
    border: 1px solid var(--accent);
    box-shadow: 0 10px 22px rgba(245, 159, 22, 0.16);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #ffb23c;
    box-shadow: 0 14px 28px rgba(245, 159, 22, 0.28);
    transform: translateY(-2px);
}

.btn-secondary {
    color: #fff;
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.expertise-strip {
    background-color: #171b20;
    color: #fff;
    padding: 1.15rem 0;
    overflow: hidden;
}

.expertise-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
    gap: 1.2rem;
    align-items: center;
}

.expertise-intro {
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
}

.expertise-intro strong {
    display: block;
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.15;
}

.expertise-intro span {
    color: rgba(255, 255, 255, 0.64);
    display: block;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    overflow: hidden;
}

.expertise-grid span {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.expertise-grid span::before {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 10px;
    left: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent));
    opacity: 0.25;
}

.capability-showcase {
    background: #171b20;
    color: #fff;
    overflow: hidden;
    padding: 52px 0;
    position: relative;
}

.capability-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 166, 13, 0.14), transparent 34%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px);
    pointer-events: none;
}

.capability-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.capability-intro {
    border-left: 3px solid var(--accent);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 1rem;
}

.capability-intro strong {
    display: block;
    font-size: clamp(1.45rem, 2.3vw, 2rem);
    line-height: 1.12;
}

.capability-intro span {
    color: rgba(255, 255, 255, 0.68);
    display: block;
    font-size: 0.98rem;
    margin-top: 0.65rem;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.capability-grid article {
    min-height: 154px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    padding: 1.15rem;
    position: relative;
    overflow: hidden;
}

.capability-grid article::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.capability-grid strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    line-height: 1.25;
}

.capability-grid span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 0.65rem;
}

.btn.small {
    min-height: 38px;
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
}

#products,
#used,
.process-section {
    background-color: var(--soft);
}

.process-section h2 {
    max-width: 720px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 1.5rem;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.process-grid article {
    background: var(--paper);
    min-height: 250px;
    padding: 1.35rem;
    position: relative;
}

.process-grid article::after {
    content: "";
    position: absolute;
    right: 1.35rem;
    bottom: 1.2rem;
    left: 1.35rem;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.5;
}

.process-grid span,
.product-tag {
    color: var(--accent-dark);
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
}

.process-grid p {
    color: var(--muted);
}

.process-grid h3 {
    margin-top: 0;
    margin-bottom: 0.85rem;
}

.benefit-grid {
    gap: 0.7rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.benefit-grid article {
    min-height: 132px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.15rem;
}

.benefit-grid article::after {
    right: 1.15rem;
    bottom: 1rem;
    left: 1.15rem;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 42px;
    align-items: center;
}

.about-layout {
    display: grid;
    gap: 2.4rem;
}

.about-copy {
    max-width: 900px;
}

.workflow-diagram {
    position: relative;
    padding: 1.4rem 0 0;
}

.workflow-diagram::before {
    content: "";
    position: absolute;
    top: 58px;
    right: 7%;
    left: 7%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(177, 95, 0, 0.38), transparent);
}

.workflow-steps {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.2rem;
}

.workflow-step {
    position: relative;
    display: grid;
    gap: 0.5rem;
    justify-items: center;
    text-align: center;
    min-height: 166px;
    padding: 0.15rem 0.35rem 0.75rem;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.workflow-step:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 32px;
    right: -1.2rem;
    color: var(--accent-dark);
    font-size: 1.9rem;
    line-height: 1;
    font-weight: 700;
    pointer-events: none;
}

.workflow-step:hover,
.workflow-step:focus-visible,
.workflow-step.is-active {
    transform: translateY(-3px);
}

.workflow-step:focus-visible {
    outline: 3px solid rgba(255, 166, 13, 0.35);
    outline-offset: 6px;
}

.workflow-icon {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffffff 0%, #f4f6f8 46%, #e4ebf2 100%);
    border: 1px solid rgba(216, 221, 227, 0.95);
    color: var(--accent-dark);
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(32, 33, 36, 0.08), inset 0 0 0 8px rgba(255, 255, 255, 0.7);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.workflow-step.is-active .workflow-icon,
.workflow-step:hover .workflow-icon,
.workflow-step:focus-visible .workflow-icon {
    background: radial-gradient(circle at 35% 30%, #fff7e8 0%, #ffd48a 48%, var(--accent) 100%);
    border-color: rgba(177, 95, 0, 0.32);
    color: #332000;
    box-shadow: 0 18px 32px rgba(177, 95, 0, 0.18), inset 0 0 0 8px rgba(255, 255, 255, 0.32);
}

.workflow-icon svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.workflow-step h3 {
    margin: 0;
    color: var(--deep);
    font-size: 1rem;
    text-transform: uppercase;
}

.workflow-step p {
    max-width: 160px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

.workflow-detail {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.5rem;
    padding: 1.2rem 0 0 1.2rem;
    border-top: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    color: var(--ink);
}

.workflow-detail .eyebrow {
    color: var(--accent-dark);
    margin-bottom: 0.1rem;
}

.workflow-detail h3 {
    margin: 0;
    color: var(--ink);
}

.workflow-detail p:not(.eyebrow) {
    max-width: 780px;
    color: var(--muted);
}

.workflow-detail strong {
    color: var(--deep);
    font-weight: 700;
}

.workflow-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--line);
}

.workflow-facts p {
    max-width: none;
    margin: 0;
    padding-left: 0;
    border-left: 0;
    color: var(--muted);
}

.workflow-facts strong {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--ink);
}

.metallbandsaegen-page .split-even .two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-with-media {
    overflow: hidden;
}

.media-panel,
.reference-image {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    min-height: 320px;
    box-shadow: 0 22px 50px rgba(33, 37, 41, 0.16);
    position: relative;
}

.media-panel::after,
.reference-image::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: inherit;
    pointer-events: none;
}

.media-panel img,
.reference-image img,
.product img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.metallbandsaegen-page .media-panel img {
    position: absolute;
    inset: 0;
    object-position: center center;
    transform: scale(1.08);
    transform-origin: center center;
}

.metallbandsaegen-page .media-panel img.image-default-fit {
    position: static;
    transform: none;
}

.metallbandsaegen-page .media-panel img.image-zoom-510-dg {
    transform: scale(1.35);
}

.info-panel,
.contact-card,
.used-machine,
.product {
    background-color: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.4rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.info-panel {
    box-shadow: 0 12px 28px rgba(33, 37, 41, 0.08);
}

.info-panel:hover,
.used-machine:hover,
.product:hover {
    border-color: rgba(245, 159, 22, 0.55);
    box-shadow: 0 18px 40px rgba(33, 37, 41, 0.12);
    transform: translateY(-4px);
}

.contact-panel a,
.contact-card a {
    color: var(--accent-dark);
    font-weight: 700;
    text-decoration: none;
}

.product-grid,
.used-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.product,
.used-machine {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
}

.product {
    padding: 0;
}

.product img {
    aspect-ratio: 16 / 9;
    height: auto;
}

.product h3,
.product p,
.product-links,
.product .text-link,
.product-tag {
    margin-right: 1.4rem;
    margin-left: 1.4rem;
}

.product h3 {
    margin-top: 0.1rem;
}

.product p,
.used-machine p {
    color: var(--muted);
    margin-bottom: 1.1rem;
}

.product .text-link,
.used-machine .btn {
    margin-top: auto;
    margin-bottom: 1.4rem;
}

.product-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-top: auto;
    margin-bottom: 1.4rem;
}

.product-links .text-link {
    margin: 0;
}

.text-link {
    color: var(--accent-dark);
    font-weight: 700;
    text-decoration: none;
}

#references {
    background: var(--soft);
    padding-bottom: 84px;
}

.reference-hero {
    background: linear-gradient(90deg, #f6f7f9 0%, #ffffff 52%, #f1f3f5 100%);
    min-height: 560px;
    overflow: hidden;
    position: relative;
}

.reference-hero-inner {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    min-height: 560px;
}

.reference-image {
    align-self: stretch;
    border-radius: 0;
    box-shadow: none;
    margin-left: calc((100vw - min(1120px, calc(100vw - 40px))) / -2);
    min-height: 560px;
}

.reference-image::after {
    border: 0;
    background: linear-gradient(90deg, rgba(244, 246, 248, 0.1), rgba(244, 246, 248, 0.72));
}

.reference-copy {
    max-width: 620px;
    padding: 3rem 0 7rem;
}

.reference-lead {
    color: var(--muted);
    font-size: 1.12rem;
    max-width: 560px;
}

.reference-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: 2rem;
}

.reference-stats span {
    color: var(--muted);
    min-width: 110px;
}

.reference-stats strong {
    display: block;
    color: var(--accent-dark);
    font-size: 1.45rem;
    line-height: 1.1;
}

.reference-card-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: -84px;
    position: relative;
    z-index: 2;
}

.reference-project {
    background: var(--paper);
    border: 1px solid rgba(216, 221, 227, 0.86);
    border-radius: 8px;
    box-shadow: 0 20px 45px rgba(33, 37, 41, 0.11);
    min-height: 230px;
    padding: 1.45rem;
}

.reference-project span {
    color: var(--accent-dark);
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.reference-project h3 {
    color: var(--ink);
    font-size: 1.2rem;
}

.reference-project p {
    color: var(--muted);
}

.reference-details {
    background: transparent;
    border-top: 1px solid var(--line);
    margin-top: 2rem;
    padding-top: 1rem;
}

.reference-details summary {
    color: var(--accent-dark);
    cursor: pointer;
    font-weight: 700;
}

.reference-details ul {
    columns: 2 280px;
    column-gap: 1.5rem;
    margin-top: 1rem;
    padding-left: 0;
    list-style: none;
}

.reference-details li {
    break-inside: avoid;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    margin-bottom: 0;
    padding: 0.65rem 0;
}

address {
    font-style: normal;
    font-size: 1.1rem;
    margin-top: 1.2rem;
}

.contact-cards {
    display: grid;
    gap: 1rem;
}

.contact-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.contact-card img {
    display: block;
    width: 96px;
    height: 116px;
    border-radius: 6px;
    object-fit: cover;
    object-position: center top;
}

.contact-card a {
    display: block;
    margin-top: 0.35rem;
}

.inline-contact {
    display: grid;
    gap: 0.45rem;
    margin-top: 1.2rem;
}

.contact-cta {
    margin-top: 1.25rem;
}

.legal-page {
    background: var(--soft);
}

.legal-content {
    max-width: 860px;
}

.legal-content article {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(1.4rem, 3vw, 2.4rem);
}

.legal-content h1 {
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.3rem;
}

.legal-content h2 {
    font-size: 1.35rem;
    margin-top: 1.8rem;
    text-align: left;
}

.legal-content a,
.inline-contact a {
    color: var(--accent-dark);
    font-weight: 700;
    text-decoration: none;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes floatSpark {
    0%,
    100% {
        opacity: 0.35;
        transform: translate3d(0, 0, 0) rotate(-12deg) scaleX(0.8);
    }

    50% {
        opacity: 1;
        transform: translate3d(-18px, -14px, 0) rotate(-12deg) scaleX(1.25);
    }
}

footer {
    background-color: var(--deep);
    color: #fff;
    padding: 1.5rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

footer ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: var(--accent);
}

@media (max-width: 920px) {
    nav ul {
        gap: 0.85rem;
    }

    nav a {
        font-size: 0.88rem;
    }

    .workflow-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workflow-diagram::before {
        display: none;
    }

    .workflow-step {
        min-height: 190px;
    }

    .workflow-step:not(:last-child)::after {
        display: none;
    }

    .workflow-facts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        width: calc(100vw - 28px);
        max-width: calc(100vw - 28px);
    }

    header .container {
        min-height: 74px;
    }

    .logo img {
        width: 44px;
        height: 44px;
    }

    .logo {
        min-width: 0;
        gap: 0.55rem;
        font-size: 0.86rem;
        line-height: 1.15;
        white-space: normal;
    }

    .logo span {
        display: block;
        max-width: calc(100vw - 128px);
        overflow-wrap: anywhere;
    }

    main {
        padding-top: 174px;
    }

    body.banner-hidden main {
        padding-top: 74px;
    }

    .event-banner {
        top: 74px;
    }

    .event-banner-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 100px;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }

    .event-banner p {
        grid-column: 1 / -1;
        line-height: 1.35;
    }

    .event-banner a {
        justify-self: start;
    }

    nav ul {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 0.6rem 0;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        padding: 0.35rem 1rem;
    }

    nav ul li a {
        display: block;
        padding: 0.65rem 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -5px);
    }

    section {
        padding: 52px 0;
    }

    .hero {
        min-height: 520px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.68rem;
    }

    .hero .container,
    .about-copy {
        min-width: 0;
        max-width: calc(100vw - 56px);
    }

    .hero h1,
    .about-copy h2,
    .hero p,
    .about-copy p {
        max-width: 100%;
    }

    .hero p:not(.eyebrow) {
        font-size: 1rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
        max-width: calc(100vw - 56px);
    }

    .hero-actions .btn {
        width: 100%;
        padding-right: 1rem;
        padding-left: 1rem;
        text-align: center;
    }

    .hero-visual {
        opacity: 0.55;
    }

    .machine-line {
        width: 78vw;
    }

    .two-column,
    .reference-hero-inner {
        grid-template-columns: 1fr;
    }

    .metallbandsaegen-page .split-even .two-column {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-grid article {
        min-height: auto;
    }

    .workflow-diagram {
        padding: 0.5rem 0 0;
    }

    .workflow-steps {
        grid-template-columns: 1fr;
    }

    .workflow-step {
        min-height: auto;
        justify-items: start;
        text-align: left;
        grid-template-columns: 72px minmax(0, 1fr);
        column-gap: 1rem;
        padding: 0.85rem 0.4rem;
    }

    .workflow-icon {
        grid-row: span 2;
        width: 72px;
        height: 72px;
    }

    .workflow-step p {
        max-width: none;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .expertise-grid span {
        min-height: 58px;
    }

    .expertise-layout {
        grid-template-columns: 1fr;
        max-width: calc(100vw - 56px);
    }

    .capability-layout {
        grid-template-columns: 1fr;
    }

    .capability-grid {
        grid-template-columns: 1fr;
    }

    .capability-grid article {
        min-height: auto;
    }

    .reference-stats {
        grid-template-columns: 1fr;
    }

    .reference-hero {
        min-height: auto;
    }

    .reference-hero-inner {
        gap: 0;
        min-height: auto;
    }

    .reference-image {
        margin-left: 0;
        min-height: 280px;
    }

    .reference-copy {
        padding: 2.2rem 0 6.4rem;
    }

    .reference-card-row {
        grid-template-columns: 1fr;
        margin-top: -72px;
    }

    .reference-project {
        min-height: auto;
    }

    .media-panel,
    .reference-image {
        min-height: 240px;
    }

    .contact-card {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .contact-card img {
        width: 82px;
        height: 100px;
    }

    .footer-content {
        align-items: flex-start;
        flex-direction: column;
    }

    footer ul {
        flex-wrap: wrap;
    }
}

@media (max-width: 430px) {
    h1 {
        font-size: 1.82rem;
    }

    h2 {
        font-size: 1.48rem;
    }

    .hero .container,
    .about-copy,
    .hero-actions,
    .expertise-layout {
        max-width: calc(100vw - 72px);
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .workflow-detail {
        padding-left: 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .hero .container,
    .hero-visual,
    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
