:root {
  --bg: #f4f1ec;
  --surface: #ffffff;
  --surface-soft: #faf8f4;
  --ink: #0d0e10;
  --muted: #686766;
  --line: #ded8cf;
  --accent: #e66f1f;
  --accent-dark: #a6460f;
  --steel: #707276;
  --warm: #e66f1f;
  --shadow: 0 28px 80px rgba(13, 14, 16, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(360px, 1fr) auto;
  align-items: center;
  gap: 28px;
  width: 100%;
  margin: 0;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(16, 17, 19, 0.08);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 241, 236, 0.9)),
    rgba(244, 241, 236, 0.92);
  box-shadow: 0 12px 34px rgba(13, 14, 16, 0.07);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
  transition: opacity 180ms ease;
}

.brand:hover {
  opacity: 0.78;
}

.brand-logo {
  display: block;
  height: 54px;
  width: auto;
  mix-blend-mode: multiply;
}

.site-nav {
  position: relative;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3.2vw, 40px);
  width: auto;
  min-height: 52px;
  padding: 0;
  color: rgba(13, 14, 16, 0.58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0;
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -15px;
  height: 1px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.is-current {
  color: var(--ink);
  transform: translateY(-1px);
}

.site-nav a:hover::after,
.site-nav a:focus::after,
.site-nav a.is-current::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.language-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(16, 17, 19, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.lang-button {
  width: 36px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.lang-button.is-active {
  background: var(--ink);
  color: #fff;
}

.lang-button:hover,
.lang-button:focus {
  color: var(--ink);
  background: rgba(242, 118, 34, 0.18);
}

.lang-button.is-active:hover,
.lang-button.is-active:focus {
  background: var(--accent);
  color: var(--ink);
}

.quote-link,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.quote-link,
.primary-button {
  background: var(--ink);
  color: #fff;
}

.quote-link {
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(13, 14, 16, 0.08);
  box-shadow: none;
}

.quote-link::after {
  content: "→";
  font-size: 16px;
  line-height: 1;
}

.quote-link:hover,
.quote-link:focus {
  background: var(--accent);
  color: var(--ink);
}

.primary-button,
.secondary-button {
  min-height: 46px;
  padding: 0 24px;
}

.primary-button:hover,
.primary-button:focus {
  background: #fff;
  color: var(--ink);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
}

.secondary-button:hover,
.secondary-button:focus {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 79px);
  padding: clamp(72px, 9vw, 124px) clamp(20px, 5vw, 72px);
  overflow: hidden;
  background: #0d0e10;
  color: #fff;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--warm);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.contact-copy h2 {
  margin: 0;
  line-height: 1.03;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 800px;
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 800;
}

.hero-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-visual {
  position: absolute;
  inset: 0;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: none;
  border-radius: 0;
  background: #17191c;
  box-shadow: none;
}

.carousel-track {
  position: absolute;
  inset: 0;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: clamp(24px, 4vw, 42px);
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 620ms ease, transform 850ms ease;
  background: #25282c;
}

.carousel-slide::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(13, 14, 16, 0.92) 0%, rgba(13, 14, 16, 0.68) 45%, rgba(13, 14, 16, 0.18) 100%),
    linear-gradient(180deg, rgba(13, 14, 16, 0.28) 0%, rgba(13, 14, 16, 0.78) 100%);
}

.carousel-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.08);
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.carousel-slide strong,
.slide-kicker {
  display: none;
}

.image-placeholder span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px dashed currentColor;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  text-align: center;
}

.carousel-controls {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 4vw, 40px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(13, 14, 16, 0.72);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.carousel-arrow,
.carousel-dot {
  border: 0;
  cursor: pointer;
}

.carousel-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.carousel-arrow:hover,
.carousel-arrow:focus {
  background: #fff;
  color: var(--ink);
}

.carousel-dots {
  display: inline-flex;
  gap: 6px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.carousel-dot.is-active {
  width: 24px;
  background: #fff;
}

.process-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #0d0e10;
}

.process-band article {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: clamp(24px, 4vw, 42px) clamp(20px, 5vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(230, 111, 31, 0.08), transparent 45%),
    #121315;
  color: #fff;
}

.process-band article::after {
  position: absolute;
  inset: auto -30px -70px auto;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(230, 111, 31, 0.22);
  border-radius: 999px;
  content: "";
}

.process-band span {
  color: rgba(255, 255, 255, 0.44);
  font-weight: 800;
}

.process-band strong {
  font-size: 22px;
}

.process-band p {
  max-width: 420px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.section {
  padding: clamp(82px, 10vw, 132px) clamp(20px, 5vw, 72px);
}

.section-muted {
  background: #ebe7df;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading h2,
.contact-copy h2 {
  font-size: clamp(34px, 4.5vw, 60px);
  font-weight: 800;
}

.section-heading p:not(.eyebrow),
.contact-copy p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  position: relative;
  isolation: isolate;
  min-height: 248px;
  padding: 30px;
  border: 0;
  border-radius: 0;
  background: var(--surface-soft);
  overflow: hidden;
}

.service-card {
  transition: box-shadow 240ms ease, transform 240ms ease, background 240ms ease;
}

.service-card::before {
  position: absolute;
  right: 22px;
  top: 14px;
  z-index: -1;
  color: rgba(13, 14, 16, 0.045);
  content: attr(data-card);
  font-size: 104px;
  font-weight: 800;
  line-height: 1;
}

.service-card::after {
  position: absolute;
  inset: auto -34px -42px auto;
  z-index: -1;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(230, 111, 31, 0.16);
  border-radius: 999px;
  content: "";
}

.service-card:hover {
  box-shadow: inset 0 0 0 1px rgba(230, 111, 31, 0.28);
  transform: translateY(-4px);
  background: #fff;
}

.card-index {
  color: rgba(13, 14, 16, 0.36);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.service-icon {
  position: absolute;
  right: 30px;
  top: 34px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(13, 14, 16, 0.16);
  border-radius: 999px;
}

.service-icon::before,
.service-icon::after {
  position: absolute;
  content: "";
}

.service-icon::before {
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.service-icon::after {
  left: 9px;
  right: 9px;
  top: 50%;
  height: 1px;
  background: rgba(13, 14, 16, 0.28);
  transform: translateY(-50%) rotate(-28deg);
}

.service-card:nth-child(2) .service-icon::after {
  transform: translateY(-50%) rotate(0deg);
}

.service-card:nth-child(3) .service-icon {
  border-radius: 4px;
}

.service-card:nth-child(3) .service-icon::after {
  transform: translateY(-50%) rotate(28deg);
}

.service-card:nth-child(4) .service-icon::before {
  width: 14px;
  height: 14px;
  background: transparent;
  border: 2px solid var(--accent);
}

.service-card:nth-child(4) .service-icon::after {
  left: 50%;
  right: auto;
  top: 8px;
  width: 1px;
  height: 26px;
  transform: translateX(-50%);
}

.service-card h3,
.machine-card h3 {
  margin: 36px 0 12px;
  font-size: 22px;
}

.service-card p,
.machine-card p,
.machine-card li {
  color: var(--muted);
}

.machine-list {
  display: grid;
  gap: 22px;
  grid-auto-rows: 360px;
}

.machine-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 0.58fr);
  gap: 0;
  align-items: stretch;
  height: 100%;
  padding: 0;
  border: 1px solid rgba(13, 14, 16, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 44px rgba(13, 14, 16, 0.07);
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.machine-card:hover {
  border-color: rgba(230, 111, 31, 0.32);
  box-shadow: 0 26px 64px rgba(13, 14, 16, 0.13);
}

.machine-image-wrap {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.machine-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04);
  transition: transform 560ms ease;
}

.machine-card:hover .machine-image {
  transform: scale(1.05);
}

.machine-card > div {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 28px 32px;
  overflow: hidden;
}

.image-placeholder {
  display: grid;
  min-height: 280px;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(242, 118, 34, 0.22), transparent),
    repeating-linear-gradient(45deg, #e1e1df 0 10px, #d1d1cf 10px 20px);
}

.image-placeholder span {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.machine-card h3 {
  position: relative;
  margin: 0 0 14px;
  padding-left: 14px;
  font-size: 21px;
  font-weight: 700;
}

.machine-card h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.machine-card ul {
  display: grid;
  gap: 0;
  margin: auto 0 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid rgba(13, 14, 16, 0.08);
}

.machine-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(13, 14, 16, 0.05);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.machine-card li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.machine-card li::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gallery-item {
  position: relative;
  display: grid;
  min-height: 250px;
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  background: #5f6266;
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 35%, rgba(13, 14, 16, 0.78));
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  filter: saturate(0.84) contrast(1.04);
  transition: transform 520ms ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 36px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(230, 111, 31, 0.1), transparent 32%),
    var(--ink);
  color: #fff;
}

.contact-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
}

.contact-card a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
}

.flag-ba {
  display: inline-block;
  width: 34px;
  height: 24px;
  flex: 0 0 32px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.contact-card p {
  margin: 0;
}

.small-note {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px clamp(20px, 5vw, 72px);
  background: #090a0b;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer p {
  margin: 0;
}

.footer-credit {
  display: inline-flex;
  gap: 4px;
  margin-left: 0;
  color: rgba(255, 255, 255, 0.46);
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.footer-credit a:hover,
.footer-credit a:focus {
  color: var(--accent);
}

.site-footer p:first-child {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 580ms ease, transform 580ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    align-items: flex-start;
    gap: 14px;
  }

  .site-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-self: stretch;
    width: auto;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 24px;
    min-height: 44px;
    padding: 0;
  }

  .site-nav a {
    min-height: 44px;
    white-space: nowrap;
  }

  .site-nav a::after {
    bottom: 0;
  }

  .header-actions {
    align-self: center;
  }

  .hero {
    min-height: min(92vh, 620px);
  }

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

  .machine-card,
  .contact-section,
  .process-band {
    grid-template-columns: 1fr;
  }

  .machine-card {
    min-height: auto;
  }

  .machine-list {
    grid-auto-rows: auto;
  }

  .machine-card {
    height: auto;
  }

  .machine-image-wrap {
    height: 300px;
  }

  .machine-card > div {
    height: auto;
    overflow: visible;
    padding: 22px 24px;
  }
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
  }

  .brand {
    width: auto;
    padding-left: 0;
  }

  .brand-logo {
    height: 44px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 40px;
    padding: 0 16px;
    align-self: center;
    border: 1px solid rgba(13, 14, 16, 0.16);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
  }

  .menu-toggle:hover,
  .menu-toggle:focus,
  .menu-toggle[aria-expanded="true"] {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
  }

  .header-actions {
    display: none;
  }

  .site-nav {
    display: none;
  }

  .mobile-menu {
    grid-column: 1 / -1;
    display: grid;
    gap: 18px;
    max-height: 0;
    overflow: hidden;
    border: 1px solid rgba(13, 14, 16, 0.08);
    border-radius: 4px;
    background:
      linear-gradient(135deg, rgba(230, 111, 31, 0.05), transparent 42%),
      #f8f6f1;
    box-shadow: 0 22px 48px rgba(13, 14, 16, 0.12);
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 240ms ease, opacity 180ms ease, transform 180ms ease, padding 180ms ease;
  }

  .site-header.is-menu-open .mobile-menu {
    max-height: 420px;
    padding: 16px;
    opacity: 1;
    transform: none;
  }

  .mobile-nav {
    display: grid;
  }

  .mobile-nav a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 46px;
    border-bottom: 1px solid rgba(13, 14, 16, 0.08);
    color: rgba(13, 14, 16, 0.68);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .mobile-nav a::before {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 34px;
    height: 1px;
    background: var(--accent);
    content: "";
    opacity: 0;
    transform: scaleX(0.4);
    transform-origin: left;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .mobile-nav a.is-current,
  .mobile-nav a:hover,
  .mobile-nav a:focus {
    color: var(--ink);
  }

  .mobile-nav a.is-current::before,
  .mobile-nav a:hover::before,
  .mobile-nav a:focus::before {
    opacity: 1;
    transform: scaleX(1);
  }

  .mobile-language-switcher {
    display: inline-flex;
    gap: 6px;
    width: fit-content;
    padding: 4px;
    border: 1px solid rgba(13, 14, 16, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
  }

  .mobile-language-switcher .lang-button {
    color: var(--muted);
  }

  .mobile-language-switcher .lang-button.is-active {
    background: var(--ink);
    color: #fff;
  }

  .hero,
  .section,
  .contact-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1 {
    font-size: 41px;
  }

  .carousel-controls {
    bottom: 20px;
  }

  .hero-actions a {
    width: 100%;
  }

  .service-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .machine-card {
    padding: 12px;
  }

  .machine-image-wrap {
    height: 220px;
  }

  .machine-card > div {
    padding: 18px 20px;
  }

  .site-footer {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
    padding-top: 30px;
    padding-bottom: 30px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-credit {
    justify-content: center;
    margin-left: 0;
  }
}
