:root {
  --red: #8c2020;
  --red-bright: #c82c2c;
  --ink: #111111;
  --muted: #666666;
  --paper: #ffffff;
  --soft: #f7f7f7;
  --line: rgba(17,17,17,.11);
  --nav-height: 92px;
  --shell: min(1480px, calc(100% - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: #fff; font-family: "Inter", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; }
.content-shell { width: var(--shell); margin: 0 auto; }

.page-progress { position: fixed; inset: 0 0 auto; z-index: 20000; height: 3px; pointer-events: none; }
.page-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #641818, #d43636); box-shadow: 0 0 16px rgba(212,54,54,.45); }

/* Approved TG navigation */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 11000; width: 100%; height: var(--nav-height); min-height: var(--nav-height); display: flex; align-items: center; gap: 30px; padding: 0 max(28px, calc((100vw - 1700px) / 2)); background: rgba(255,255,255,.98); border-bottom: 1px solid rgba(140,32,32,.12); box-shadow: 0 10px 34px rgba(0,0,0,.055); backdrop-filter: blur(14px); transition: box-shadow .25s ease, background .25s ease; }
.navbar.is-scrolled { background: rgba(255,255,255,.995); box-shadow: 0 14px 42px rgba(0,0,0,.11); }
.brand { flex: 0 0 auto; min-width: 240px; height: 100%; display: inline-flex; align-items: center; position: relative; z-index: 11002; }
.brand__logo-image { display: block; width: 92px; max-height: 82px; object-fit: contain; }
.nav-menu { flex: 1; display: flex; align-items: center; justify-content: center; gap: clamp(24px, 2.35vw, 46px); overflow: visible; }
.nav-menu > a, .nav-dropdown-toggle { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin: 0; padding: 0; border: 0; background: transparent; color: #111; font-size: 13px; font-weight: 900; line-height: 1; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: color .25s ease; }
.nav-menu > a::after, .nav-dropdown-toggle::after { content: ""; position: absolute; left: 0; bottom: -13px; width: 0; height: 2px; background: var(--red); transition: width .25s ease; }
.nav-menu > a:hover, .nav-menu > a.active, .nav-dropdown-toggle:hover, .nav-dropdown-toggle.active, .nav-dropdown:hover > .nav-dropdown-toggle, .nav-dropdown.open > .nav-dropdown-toggle, .nav-dropdown-active > .nav-dropdown-toggle { color: var(--red); }
.nav-menu > a:hover::after, .nav-menu > a.active::after, .nav-dropdown-toggle:hover::after, .nav-dropdown-toggle.active::after, .nav-dropdown:hover > .nav-dropdown-toggle::after, .nav-dropdown.open > .nav-dropdown-toggle::after, .nav-dropdown-active > .nav-dropdown-toggle::after { width: 100%; }
.nav-dropdown { position: relative; display: inline-flex; align-items: center; overflow: visible; }
.nav-dropdown-toggle > span { display: inline-flex; transition: transform .25s ease; }
.nav-dropdown:hover .nav-dropdown-toggle > span, .nav-dropdown.open .nav-dropdown-toggle > span { transform: rotate(180deg); }
.nav-dropdown-menu { position: absolute; top: calc(100% + 24px); left: -20px; z-index: 11020; min-width: 250px; padding: 10px; background: rgba(255,255,255,.995); border: 1px solid rgba(140,32,32,.16); box-shadow: 0 24px 60px rgba(0,0,0,.16); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(12px); transition: opacity .24s ease, visibility .24s ease, transform .24s ease; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu, .nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.nav-menu .nav-dropdown-menu a { display: block; width: 100%; padding: 14px 15px; color: #111; font-size: 12px; font-weight: 800; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; border-left: 3px solid transparent; transition: color .22s ease, background .22s ease, border-color .22s ease; }
.nav-menu .nav-dropdown-menu a:hover, .nav-menu .nav-dropdown-menu a.active { color: var(--red); background: rgba(140,32,32,.07); border-left-color: var(--red); }
.nav-toggle { display: none; }
main { padding-top: var(--nav-height); }

/* Hero copied from the approved direction */
.machinery-hero { position: relative; min-height: 465px; overflow: hidden; isolation: isolate; color: #fff; background: #111; }
.hero-media, .hero-media img, .hero-shade, .hero-grid { position: absolute; inset: 0; }
.hero-media { z-index: -4; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 54%; animation: heroDrift 18s ease-in-out infinite alternate; will-change: transform; }
.hero-shade { z-index: -3; background: linear-gradient(90deg, rgba(5,5,5,.96) 0%, rgba(5,5,5,.90) 31%, rgba(5,5,5,.60) 52%, rgba(5,5,5,.18) 100%), linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.36)); }
.hero-grid { z-index: -2; opacity: .12; background: linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(180deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 110px 110px; mask-image: linear-gradient(90deg, #000, transparent 70%); }
.hero-shell { width: var(--shell); min-height: 465px; margin: 0 auto; padding: 54px 0 58px; display: flex; flex-direction: column; justify-content: center; }
.breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 38px; color: rgba(255,255,255,.72); font-size: 12px; font-weight: 600; }
.breadcrumb strong { color: #ef5555; }
.hero-copy { width: min(590px, 100%); }
.hero-kicker { margin: 0 0 10px; color: #ef5555; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.hero-copy h1 { margin: 0; font-family: "Barlow Condensed", Impact, sans-serif; font-size: clamp(66px, 7vw, 104px); font-weight: 800; line-height: .82; letter-spacing: -.025em; text-transform: uppercase; }
.hero-rule { display: block; width: 66px; height: 3px; margin: 22px 0 18px; background: var(--red-bright); box-shadow: 0 0 20px rgba(200,44,44,.42); }
.hero-copy h2 { margin: 0 0 13px; font-size: clamp(18px, 1.7vw, 26px); font-weight: 650; }
.hero-description { max-width: 565px; margin: 0; color: rgba(255,255,255,.80); font-size: 14px; line-height: 1.68; }
.hero-reveal { opacity: 0; transform: translateY(22px); animation: heroReveal .75s cubic-bezier(.22,1,.36,1) forwards; }
.breadcrumb.hero-reveal { animation-delay: .08s; }
.hero-kicker.hero-reveal { animation-delay: .16s; }
.hero-copy h1.hero-reveal { animation-delay: .24s; }
.hero-rule.hero-reveal { animation-delay: .34s; }
.hero-copy h2.hero-reveal { animation-delay: .42s; }
.hero-description.hero-reveal { animation-delay: .50s; }
@keyframes heroReveal { to { opacity: 1; transform: translateY(0); } }
@keyframes heroDrift { 0% { transform: scale(1.025) translate3d(-.4%,0,0); } 100% { transform: scale(1.075) translate3d(1%,-.6%,0); } }

/* White information strip */
.capability-strip { position: relative; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 36px rgba(0,0,0,.055); }
.capability-shell { width: min(1160px, calc(100% - 40px)); min-height: 86px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.capability-card { min-height: 86px; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 15px 24px; border-right: 1px solid var(--line); transition: background .25s ease, transform .25s ease; }
.capability-card:last-child { border-right: 0; }
.capability-card:hover { position: relative; z-index: 2; background: #fbf5f5; transform: translateY(-3px); }
.capability-icon { color: var(--red-bright); font-size: 30px; }
.capability-card strong, .capability-card small { display: block; }
.capability-card strong { color: var(--red); font-family: "Barlow Condensed", Impact, sans-serif; font-size: 29px; font-weight: 800; line-height: .92; text-transform: uppercase; }
.capability-card small { margin-top: 6px; color: #555; font-size: 9px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }

/* Gallery from the second screenshot */
.equipment-gallery { padding: 68px 0 78px; background: radial-gradient(circle at 90% 10%, rgba(140,32,32,.045), transparent 30%), #fff; }
.gallery-heading { margin-bottom: 24px; }
.gallery-heading p { margin: 0 0 8px; color: var(--red-bright); font-size: 11px; font-weight: 900; letter-spacing: .085em; text-transform: uppercase; }
.gallery-heading h2 { margin: 0; font-size: clamp(28px, 3vw, 44px); line-height: 1.05; letter-spacing: -.025em; }
.gallery-heading > span { display: block; width: 48px; height: 3px; margin-top: 14px; background: var(--red); }
.equipment-tabs { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); margin-bottom: 24px; background: #f3f3f3; border: 1px solid #ededed; }
.equipment-tabs button { min-height: 48px; padding: 10px 12px; border: 0; border-right: 1px solid #e2e2e2; background: transparent; color: #222; font-size: 10px; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; cursor: pointer; transition: color .24s ease, background .24s ease; }
.equipment-tabs button:last-child { border-right: 0; }
.equipment-tabs button:hover { color: var(--red); background: #fff; }
.equipment-tabs button.active { color: #fff; background: linear-gradient(135deg, #a02424, #7d1717); }
.equipment-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.equipment-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #e5e5e5; box-shadow: 0 10px 28px rgba(0,0,0,.045); transition: transform .34s cubic-bezier(.22,1,.36,1), box-shadow .34s ease, opacity .25s ease; }
.equipment-card:hover { transform: translateY(-7px); box-shadow: 0 24px 48px rgba(0,0,0,.11); }
.equipment-card.is-hidden { display: none; }
.equipment-card.filter-in { animation: cardFilterIn .44s cubic-bezier(.22,1,.36,1) both; }
.equipment-image { position: relative; height: 210px; overflow: hidden; background: #eee; }
.equipment-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.17)); pointer-events: none; }
.equipment-image img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; transition: transform .65s cubic-bezier(.22,1,.36,1), filter .65s ease; }
.equipment-card:hover .equipment-image img { transform: scale(1.07); filter: saturate(1.08) contrast(1.03); }
.equipment-info { min-height: 124px; padding: 18px 19px 20px; }
.equipment-info p { margin: 0 0 5px; color: var(--red-bright); font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.equipment-info h3 { margin: 0 0 7px; font-size: 16px; font-weight: 850; text-transform: uppercase; }
.equipment-info span { color: #686868; font-size: 12px; line-height: 1.5; }
.gallery-foot { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.gallery-foot p { max-width: 760px; margin: 0; color: #666; font-size: 13px; line-height: 1.65; }
.gallery-foot a { flex: 0 0 auto; min-height: 46px; display: inline-flex; align-items: center; gap: 24px; padding: 0 22px; color: #fff; background: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; transition: background .25s ease, transform .25s ease; }
.gallery-foot a:hover { background: #a62626; transform: translateY(-3px); }
@keyframes cardFilterIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* CTA */
.machinery-cta { background: linear-gradient(100deg, #741616, #a72727); color: #fff; }
.cta-inner { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-inner p { margin: 0 0 6px; color: rgba(255,255,255,.68); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.cta-inner h2 { margin: 0; font-size: clamp(22px, 2.2vw, 34px); text-transform: uppercase; }
.cta-inner a { min-height: 48px; display: inline-flex; align-items: center; gap: 26px; padding: 0 28px; border: 1px solid rgba(255,255,255,.6); font-size: 10px; font-weight: 900; text-transform: uppercase; transition: color .25s ease, background .25s ease, transform .25s ease; }
.cta-inner a:hover { color: var(--red); background: #fff; transform: translateY(-3px); }

/* TG footer */
.site-footer { color: #fff; background: radial-gradient(circle at 15% 0%, rgba(140,32,32,.22), transparent 34%), linear-gradient(135deg, #080808, #141414 52%, #090909); }
.footer-main, .footer-bottom { width: min(1380px, calc(100% - 56px)); margin: 0 auto; }
.footer-main { display: grid; grid-template-columns: 1.05fr .8fr 1.35fr; gap: 44px; padding: 44px 0; }
.footer-logo { display: inline-flex; }
.footer-logo-image { display: block; width: 105px; height: auto; }
.footer-brand p, .footer-contact li, .office-list p { color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.72; }
.footer-brand p { max-width: 380px; margin: 22px 0 24px; }
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  text-decoration: none;
  transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease, color 0.28s ease;
}

.footer-social a:hover {
  transform: translateY(-5px) rotate(-3deg);
  color: #ffffff;
  background: var(--red);
  border-color: rgba(255,255,255,0.24);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-contact h3, .footer-offices h3 { margin: 0 0 18px; color: #fff; font-size: 19px; text-transform: uppercase; letter-spacing: 1.2px; }
.footer-contact h3::after, .footer-offices h3::after { content: ""; display: block; width: 46px; height: 3px; margin-top: 10px; background: var(--red); }
.footer-contact ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.footer-contact li span { display: block; color: #cf3434; font-weight: 900; text-transform: uppercase; letter-spacing: .8px; font-size: 12px; margin-bottom: 4px; }
.footer-contact a { color: #fff; font-weight: 800; }
.office-list { display: grid; gap: 13px; }
.office-list p { margin: 0; padding: 15px 18px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.10); }
.office-list strong { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0 24px; border-top: 1px solid rgba(255,255,255,.10); }
.footer-bottom p { margin: 0; color: rgba(255,255,255,.64); font-size: 13px; }
.footer-bottom div { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,.72); font-size: 13px; }

/* Reveal */
.reveal-up, .reveal-card { opacity: 0; transform: translateY(28px); transition: opacity .68s cubic-bezier(.22,1,.36,1), transform .68s cubic-bezier(.22,1,.36,1); }
.reveal-up.is-visible, .reveal-card.is-visible { opacity: 1; transform: translateY(0); }
.equipment-card:nth-child(2), .capability-card:nth-child(2) { transition-delay: .07s; }
.equipment-card:nth-child(3), .capability-card:nth-child(3) { transition-delay: .14s; }
.equipment-card:nth-child(4), .capability-card:nth-child(4) { transition-delay: .21s; }

@media (max-width: 1280px) {
  :root { --shell: min(100% - 48px, 1140px); }
  .navbar { padding-inline: 24px; gap: 20px; }
  .brand { min-width: 150px; }
  .brand__logo-image { width: 82px; max-height: 74px; }
  .nav-menu { gap: 24px; }
  .nav-menu > a, .nav-dropdown-toggle { font-size: 12px; }
  .equipment-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 1024px) {
  :root { --nav-height: 92px; --shell: min(100% - 42px, 880px); }
  .navbar { padding: 14px 24px; justify-content: space-between; gap: 16px; }
  .brand { min-width: 0; }
  .brand__logo-image { width: 76px; max-height: 70px; }
  .nav-toggle { position: relative; z-index: 11002; display: block; width: 44px; height: 38px; padding: 0; border: 1px solid #111; border-radius: 4px; background: #fff; }
  .nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: #111; transform-origin: center; transition: transform .25s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-menu { position: fixed; top: var(--nav-height); left: 0; right: 0; z-index: 11001; width: 100%; max-height: calc(100dvh - var(--nav-height)); display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 22px 24px 30px; overflow-y: auto; background: rgba(255,255,255,.995); border-top: 1px solid rgba(140,32,32,.12); box-shadow: 0 24px 55px rgba(0,0,0,.15); }
  .nav-menu.open { display: flex; }
  .nav-menu > a, .nav-dropdown-toggle { display: flex; width: 100%; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.06); font-size: 12px; text-align: left; }
  .nav-menu > a::after, .nav-dropdown-toggle::after { bottom: 7px; }
  .nav-dropdown { display: block; width: 100%; }
  .nav-dropdown-menu { position: static; display: none; width: 100%; min-width: 0; margin: 4px 0 8px; padding: 4px 0 4px 14px; background: rgba(140,32,32,.035); border: 0; border-left: 2px solid rgba(140,32,32,.22); box-shadow: none; opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; animation: submenu .25s ease both; }
  .nav-menu .nav-dropdown-menu a { padding: 12px 13px; font-size: 11px; white-space: normal; }
  @keyframes submenu { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

  .machinery-hero, .hero-shell { min-height: 430px; }
  .hero-media img { object-position: 67% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,5,5,.94), rgba(5,5,5,.68) 66%, rgba(5,5,5,.26)); }
  .capability-shell { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .capability-card:nth-child(2) { border-right: 0; }
  .capability-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .equipment-tabs { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .equipment-tabs button:nth-child(3) { border-right: 0; }
  .equipment-tabs button:nth-child(-n+3) { border-bottom: 1px solid #e2e2e2; }
  .equipment-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery-foot { align-items: flex-start; flex-direction: column; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  :root { --nav-height: 72px; --shell: calc(100% - 28px); }
  .navbar { height: var(--nav-height); min-height: var(--nav-height); padding: 12px 16px; }
  .brand__logo-image { width: 66px; max-height: 62px; }
  .nav-toggle { width: 34px; height: 30px; }
  .nav-toggle span { width: 19px; margin: 4px auto; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-menu { padding: 18px 20px 28px; }

  .machinery-hero, .hero-shell { min-height: 500px; }
  .hero-shell { padding: 42px 0 48px; }
  .breadcrumb { margin-bottom: 58px; font-size: 10px; }
  .hero-copy h1 { font-size: 67px; }
  .hero-description { font-size: 13px; }
  .hero-media img { object-position: 72% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,5,5,.95), rgba(5,5,5,.56)); }
  .capability-shell { width: 100%; grid-template-columns: 1fr; }
  .capability-card, .capability-card:nth-child(2) { min-height: 72px; justify-content: flex-start; padding-inline: 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .capability-card:last-child { border-bottom: 0; }
  .equipment-gallery { padding: 52px 0 60px; }
  .equipment-tabs { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .equipment-tabs button, .equipment-tabs button:nth-child(3) { border-right: 1px solid #e2e2e2; border-bottom: 1px solid #e2e2e2; }
  .equipment-tabs button:nth-child(2n) { border-right: 0; }
  .equipment-tabs button:nth-last-child(-n+2) { border-bottom: 0; }
  .equipment-grid { grid-template-columns: 1fr; }
  .equipment-image { height: 235px; }
  .gallery-foot a { width: 100%; justify-content: space-between; }
  .cta-inner { min-height: 138px; padding: 24px 0; align-items: flex-start; flex-direction: column; }
  .cta-inner a { width: 100%; justify-content: space-between; }
  .footer-main { grid-template-columns: 1fr; gap: 34px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .hero-reveal, .reveal-up, .reveal-card { opacity: 1 !important; transform: none !important; }
}
