:root {
  --red: #c8102e;
  --red-dark: #940f25;
  --green: #006c3b;
  --ink: #111315;
  --muted: #667078;
  --paper: #f5f4f0;
  --white: #fff;
  --line: rgba(17, 19, 21, .14);
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.section { padding: 112px 0; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--white);
  transform: translateY(-150%);
  opacity: 0;
  pointer-events: none;
}
.skip-link:focus-visible { transform: none; opacity: 1; pointer-events: auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.site-header.scrolled {
  background: rgba(255,255,255,.97);
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.header-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.brand { width: 174px; height: 58px; display: flex; align-items: center; overflow: hidden; }
.brand img { width: 100%; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { color: var(--white); text-decoration: none; font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.site-header.scrolled .nav a { color: var(--ink); }
.nav .nav-cta { padding: 12px 20px; border: 1px solid rgba(255,255,255,.55); }
.site-header.scrolled .nav .nav-cta { background: var(--red); border-color: var(--red); color: var(--white); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 2px; margin: 5px; background: var(--white); }
.site-header.scrolled .menu-toggle span { background: var(--ink); }

.hero { position: relative; min-height: 760px; height: 100svh; display: flex; align-items: center; color: var(--white); overflow: hidden; background: #17191b; }
.hero-image { position: absolute; inset: 0; background: url("assets/tractor-nx854.jpg") center / cover no-repeat; transform: scale(1.02); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,11,12,.89) 0%, rgba(10,11,12,.57) 45%, rgba(10,11,12,.06) 78%), linear-gradient(0deg, rgba(10,11,12,.72), transparent 38%); }
.hero-content { position: relative; padding-top: 76px; }
.eyebrow { margin: 0 0 18px; color: #fff; font-size: .76rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 34px; height: 3px; margin: 0 13px 3px 0; background: var(--red); }
.eyebrow.dark { color: var(--ink); }
h1, h2, h3 { margin: 0; line-height: .98; font-weight: 800; letter-spacing: -.045em; }
h1 { max-width: 760px; font-size: clamp(3.3rem, 7vw, 6.7rem); text-transform: uppercase; }
.hero-copy { margin: 28px 0 34px; font-size: clamp(1rem, 1.7vw, 1.3rem); color: rgba(255,255,255,.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; border: 0; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 800; cursor: pointer; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--red); color: var(--white); }
.button-primary:hover { background: var(--red-dark); }
.button-ghost { color: var(--white); border: 1px solid rgba(255,255,255,.58); }
.button-ghost:hover { background: rgba(255,255,255,.1); }
.hero-foot { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 38px; color: rgba(255,255,255,.68); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero-foot span { display: flex; align-items: center; gap: 10px; }
.hero-foot span::before { content: ""; width: 7px; height: 7px; background: var(--red); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
h2 { font-size: clamp(2.5rem, 5vw, 4.6rem); }
.intro-copy { padding-top: 28px; color: #4e555a; font-size: 1.08rem; }
.intro-copy p:first-child { margin-top: 0; color: var(--ink); font-size: 1.25rem; }
.text-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; color: var(--ink); text-decoration: none; font-weight: 800; border-bottom: 2px solid var(--red); padding-bottom: 5px; }
.text-link.light { color: var(--white); }

.models { background: #17191b; color: var(--white); }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: end; margin-bottom: 55px; }
.section-heading > p { margin: 0; color: #a9afb4; max-width: 430px; }
.model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.model-card { min-height: 700px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.model-card-light { color: var(--ink); background: var(--white); }
.model-card-dark { color: var(--white); background: #060708; }
.model-copy { position: relative; z-index: 2; padding: 52px; }
.model-number { position: absolute; top: 54px; right: 52px; font-weight: 800; color: #b0b4b6; }
.model-type { margin: 0 0 4px; text-transform: uppercase; font-size: .72rem; letter-spacing: .15em; font-weight: 800; color: var(--red); }
.model-card h3 { font-size: clamp(2.6rem, 4vw, 4.1rem); text-transform: uppercase; }
.model-power { margin: 14px 0 20px; font-size: 1.5rem; font-weight: 800; }
.model-power span { font-size: .86rem; color: #90969a; }
.model-card ul { margin: 0 0 8px; padding: 0; list-style: none; color: #6b7175; }
.model-card-dark ul { color: #c3c7c9; }
.model-card li { margin: 6px 0; }
.model-card li::before { content: "—"; margin-right: 9px; color: var(--red); }
.model-card > img { width: 100%; height: 330px; object-fit: cover; object-position: center; }
.model-crop { height: 330px; overflow: hidden; }
.model-crop img { width: 100%; height: 100%; object-fit: cover; object-position: 74% center; }

.feature { padding: 0; display: grid; grid-template-columns: 1.15fr .85fr; background: var(--red); color: var(--white); }
.feature-image { min-height: 720px; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy { padding: clamp(60px, 8vw, 120px); align-self: center; }
.feature-copy > p:not(.eyebrow) { max-width: 560px; color: rgba(255,255,255,.78); font-size: 1.08rem; }
.feature-points { margin-top: 50px; border-top: 1px solid rgba(255,255,255,.24); }
.feature-points div { display: grid; grid-template-columns: 50px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.24); text-transform: uppercase; font-size: .82rem; letter-spacing: .08em; font-weight: 700; }
.feature-points strong { color: rgba(255,255,255,.55); }

.gallery { background: var(--paper); }
.gallery-heading > p { color: var(--muted); }
.gallery-grid { display: grid; grid-template-columns: 1.25fr .75fr; grid-auto-rows: 280px; gap: 14px; }
.gallery-item { position: relative; padding: 0; border: 0; overflow: hidden; background: #d9d9d5; cursor: zoom-in; }
.gallery-item::after { content: "+"; position: absolute; right: 18px; bottom: 18px; display: grid; place-items: center; width: 42px; height: 42px; color: var(--white); background: var(--red); font-size: 1.5rem; transition: transform .25s; }
.gallery-item:hover::after { transform: rotate(90deg); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.025); }
.gallery-wide { grid-column: 1 / -1; }
.gallery-tall { grid-row: span 2; }

.contact { color: var(--white); background: #121416; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 110px; }
.contact-info > p:not(.eyebrow) { color: #aeb4b8; max-width: 480px; }
address { display: grid; gap: 25px; margin-top: 54px; font-style: normal; }
address a { color: var(--white); text-decoration: none; }
address span { display: block; margin-bottom: 4px; color: #858b90; text-transform: uppercase; font-size: .66rem; letter-spacing: .16em; font-weight: 800; }
.contact-form { padding: 48px; color: var(--ink); background: var(--white); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-form label { display: block; margin-bottom: 21px; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; margin-top: 8px; padding: 13px 2px; border: 0; border-bottom: 1px solid #bfc4c6; border-radius: 0; color: var(--ink); background: transparent; outline: none; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--red); box-shadow: 0 2px 0 var(--red); }
.submit-button { width: 100%; gap: 18px; }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: .75rem; text-align: center; }

.site-footer { padding: 44px 0; background: #050607; color: #9da3a7; }
.footer-grid { display: grid; grid-template-columns: 190px 1fr auto; gap: 55px; align-items: center; font-size: .8rem; }
.footer-grid img { width: 170px; padding: 7px; background: var(--white); }
.footer-grid p { margin: 4px 0; }
.footer-grid div { text-align: right; }

.lightbox { width: min(1100px, 92vw); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(0,0,0,.88); }
.lightbox img { max-height: 86vh; margin: auto; object-fit: contain; }
.lightbox-close { position: absolute; top: -45px; right: 0; width: 40px; height: 40px; border: 0; color: var(--white); background: var(--red); font-size: 1.7rem; cursor: pointer; }

@media (max-width: 900px) {
  :root { --shell: min(100% - 30px, 680px); }
  .section { padding: 80px 0; }
  .header-inner { height: 74px; }
  .brand { width: 145px; }
  .brand { position: relative; z-index: 3; }
  .menu-toggle { display: block; position: relative; z-index: 3; }
  .nav { position: fixed; z-index: 2; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 28px; background: #101214; transform: translateX(100%); transition: transform .3s; }
  .nav.open { transform: none; }
  .nav a, .site-header.scrolled .nav a { color: var(--white); font-size: 1.1rem; }
  .nav .nav-cta, .site-header.scrolled .nav .nav-cta { border-color: var(--red); }
  .menu-toggle.open span { background: var(--white); }
  .site-header.scrolled .menu-toggle.open span { background: var(--white); }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: 720px; }
  .hero-image { background-position: 60% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(10,11,12,.88), rgba(10,11,12,.35)), linear-gradient(0deg, rgba(10,11,12,.8), transparent 50%); }
  .hero-foot { display: none; }
  .split, .section-heading, .model-grid, .feature, .contact-grid { grid-template-columns: 1fr; }
  .split, .section-heading, .contact-grid { gap: 42px; }
  .model-card { min-height: 630px; }
  .feature-image { min-height: 520px; }
  .feature-copy { padding: 70px max(30px, calc((100vw - 680px) / 2)); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid div { text-align: left; }
}

@media (max-width: 620px) {
  .hero { min-height: 690px; }
  h1 { font-size: clamp(2.75rem, 13vw, 4.1rem); }
  h2 { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .hero-content { padding-top: 35px; }
  .hero-copy br { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .model-copy { padding: 38px 30px; }
  .model-number { top: 40px; right: 30px; }
  .model-card > img, .model-crop { height: 280px; }
  .feature-image { min-height: 400px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
  .gallery-wide { grid-column: auto; }
  .gallery-tall { grid-row: auto; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
