:root {
  --wine: #7a1f2b;
  --wine-deep: #56131d;
  --wine-bright: #a52a3b;
  --ink: #181517;
  --charcoal: #221f21;
  --paper: #f4f1ef;
  --soft: #e9e3e1;
  --line: rgba(24, 21, 23, .14);
  --muted: #756d70;
  --white: #fff;
  --shell: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { max-width: 100%; }
.shell { width: min(var(--shell), calc(100% - 56px)); margin-inline: auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.14);
  background: rgba(20, 17, 18, .54);
  backdrop-filter: blur(16px);
  color: var(--white);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  background: rgba(244,241,239,.94);
  border-color: var(--line);
  color: var(--ink);
}
.nav-row { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 16px; }
.brand-symbol { width: 38px; height: 38px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; transform: skew(-9deg); }
.brand-symbol i { display: block; background: var(--wine-bright); border-radius: 2px; }
.brand-symbol i:nth-child(2) { opacity: .76; transform: translateY(4px); }
.brand-symbol i:nth-child(3) { opacity: .52; transform: translateY(8px); }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-family: "Arial", sans-serif; font-size: 40px; letter-spacing: 1px;font-weight: 500; }
.brand-copy small { margin-top: 4px; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
.primary-nav { display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 600; }
.primary-nav > a:not(.nav-contact) { opacity: .82; }
.primary-nav > a:hover { opacity: 1; }
.nav-contact { padding: 11px 16px; border: 1px solid currentColor; }
.nav-contact span, .button span { margin-left: 12px; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; color: currentColor; }
.menu-toggle span { display: block; width: 24px; height: 1px; margin: 7px auto; background: currentColor; }

.hero { position: relative; min-height: 860px; color: var(--white); background: var(--charcoal); overflow: hidden; }
.hero-media { position: absolute; inset: 0; background: url("masterbatch-pellets.jpg") center / cover no-repeat; transform: scale(1.02); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,15,17,.92) 0%, rgba(20,15,17,.78) 42%, rgba(20,15,17,.26) 73%, rgba(20,15,17,.5) 100%), linear-gradient(0deg, rgba(20,15,17,.48), transparent 50%); }
.hero-layout { position: relative; z-index: 2; min-height: 860px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); align-items: end; gap: 110px; padding-top: 190px; padding-bottom: 92px; }
.hero-content { align-self: center; max-width: 880px; }
.kicker { margin: 0 0 22px; color: var(--wine); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.kicker-light { color: #f0aab5; }
.hero h1, h2, h3 { font-family: "Manrope", sans-serif; }
.hero h1 { margin: 0; font-size: clamp(55px, 7vw, 104px); line-height: .97; letter-spacing: -.065em; font-weight: 700; }
.hero-intro { max-width: 710px; margin: 34px 0 0; color: rgba(255,255,255,.78); font-size: 19px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid transparent; font-size: 13px; font-weight: 700; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-light { background: var(--white); color: var(--ink); }
.text-link { font-size: 13px; font-weight: 700; }
.text-link span { margin-left: 12px; }
.hero-note { align-self: end; padding: 26px 0 0; border-top: 1px solid rgba(255,255,255,.4); }
.note-index { color: #f0aab5; font-size: 11px; font-weight: 800; }
.hero-note p { margin: 20px 0 0; color: rgba(255,255,255,.74); font-size: 14px; }

.signal-bar { background: var(--wine-deep); color: var(--white); }
.signal-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.signal-grid div { min-height: 110px; display: flex; align-items: center; gap: 18px; padding: 24px 28px; border-right: 1px solid rgba(255,255,255,.15); }
.signal-grid div:first-child { border-left: 1px solid rgba(255,255,255,.15); }
.signal-grid span { color: #ef9eaa; font-size: 10px; font-weight: 800; }
.signal-grid strong { font-family: "Manrope", sans-serif; font-size: 13px; }

.section { padding: 132px 0; }
.section-header { max-width: 860px; margin-bottom: 60px; }
.section-header h2, .application-copy h2, .quality-title h2, .contact-copy h2 { margin: 0; font-size: clamp(42px, 5vw, 72px); line-height: 1.03; letter-spacing: -.055em; }
.split-header { max-width: none; display: grid; grid-template-columns: 1.15fr .85fr; gap: 100px; align-items: end; }
.split-header > p { max-width: 510px; margin: 0 0 7px; color: var(--muted); font-size: 16px; }
.solution-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.solution-card { min-height: 480px; display: flex; flex-direction: column; justify-content: space-between; padding: 34px; background: var(--paper); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s ease, color .25s ease; }
.solution-card:hover { background: var(--white); }
.solution-card.featured { background: var(--wine); color: var(--white); }
.solution-card.dark { background: var(--charcoal); color: var(--white); }
.solution-top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; }
.arrow { font-size: 18px; }
.card-tag { margin: 0 0 12px; color: var(--wine); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.featured .card-tag, .dark .card-tag { color: #ef9eaa; }
.solution-card h3 { margin: 0; font-size: clamp(30px, 3vw, 45px); letter-spacing: -.045em; }
.solution-card > div:nth-child(2) > p:last-child { max-width: 550px; margin: 18px 0 0; color: var(--muted); }
.featured > div:nth-child(2) > p:last-child, .dark > div:nth-child(2) > p:last-child { color: rgba(255,255,255,.72); }
.solution-card ul { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 13px; }
.solution-card li::before { content: "—"; margin-right: 10px; color: var(--wine); }
.featured li::before, .dark li::before { color: #ef9eaa; }

.applications { background: var(--charcoal); color: var(--white); }
.application-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 110px; align-items: start; }
.application-copy { position: sticky; top: 130px; }
.application-copy > p:not(.kicker) { max-width: 560px; margin: 28px 0 0; color: rgba(255,255,255,.66); }
.button-outline { margin-top: 34px; border-color: rgba(255,255,255,.56); color: var(--white); background: transparent; }
.button-outline:hover { background: var(--white); color: var(--ink); }
.application-list { border-top: 1px solid rgba(255,255,255,.18); }
.application-list article { display: grid; grid-template-columns: 58px 1fr; gap: 28px; padding: 34px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.application-list article > span { color: #ef9eaa; font-size: 11px; font-weight: 800; }
.application-list h3 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.application-list p { margin: 9px 0 0; color: rgba(255,255,255,.58); }

.development { background: var(--white); }
.process-track { display: grid; grid-template-columns: repeat(4, 1fr); }
.process-step { padding-right: 30px; }
.step-no { color: var(--wine); font-size: 11px; font-weight: 800; }
.step-line { position: relative; height: 1px; margin: 24px 0 30px; background: var(--line); }
.step-line::before { content: ""; position: absolute; top: -4px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--wine); }
.process-step h3 { margin: 0; font-size: 26px; }
.process-step p { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

.quality { background: var(--soft); }
.quality-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 120px; align-items: start; }
.quality-title { position: sticky; top: 130px; }
.quality-lead { margin: 0 0 54px; font-family: "Manrope", sans-serif; font-size: 22px; line-height: 1.45; letter-spacing: -.02em; }
.quality-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.quality-grid > div { min-height: 220px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quality-grid span { color: var(--wine); font-size: 10px; font-weight: 800; }
.quality-grid h3 { margin: 40px 0 9px; font-size: 20px; }
.quality-grid p { margin: 0; color: var(--muted); font-size: 13px; }

.contact { padding: 132px 0; background: var(--wine-deep); color: var(--white); }
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 110px; align-items: start; }
.contact-copy > p:not(.kicker) { margin-top: 28px; color: rgba(255,255,255,.67); }
.contact-details { margin-top: 48px; display: grid; gap: 8px; font-size: 15px; }
.contact-details a { width: fit-content; border-bottom: 1px solid rgba(255,255,255,.35); }
.inquiry-form { padding: 42px; background: var(--paper); color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.inquiry-form label { display: grid; gap: 8px; margin-bottom: 22px; }
.inquiry-form label span { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.inquiry-form input, .inquiry-form textarea { width: 100%; border: 0; border-bottom: 1px solid #bdb5b7; border-radius: 0; background: transparent; padding: 10px 0 13px; color: var(--ink); outline: none; }
.inquiry-form input:focus, .inquiry-form textarea:focus { border-color: var(--wine); }
.inquiry-form textarea { resize: vertical; }
.form-button { width: 100%; margin-top: 8px; background: var(--wine); color: var(--white); }
.inquiry-form small { display: block; margin-top: 16px; color: var(--muted); font-size: 11px; }

footer { background: #141112; color: var(--white); }
.footer-row { min-height: 128px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 30px; }
.footer-row > p { margin: 0; color: rgba(255,255,255,.5); font-size: 11px; }
.footer-row > p:last-child { text-align: right; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1000px) {
  .hero-layout { grid-template-columns: 1fr; gap: 60px; }
  .hero-note { max-width: 420px; }
  .signal-grid { grid-template-columns: repeat(2, 1fr); }
  .signal-grid div:nth-child(3) { border-left: 1px solid rgba(255,255,255,.15); }
  .split-header, .application-layout, .quality-layout, .contact-layout { grid-template-columns: 1fr; gap: 64px; }
  .application-copy, .quality-title { position: static; }
  .process-track { grid-template-columns: repeat(2, 1fr); gap: 50px 0; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 30px, var(--shell)); }
  .site-header { background: rgba(20,17,18,.82); }
  .site-header.scrolled { background: rgba(244,241,239,.96); }
  .nav-row { min-height: 70px; }
  .menu-toggle { display: block; }
  .primary-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; padding: 24px 20px 30px; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 18px; }
  .primary-nav.open { display: flex; }
  .nav-contact { text-align: center; }
  .hero, .hero-layout { min-height: 760px; }
  .hero-layout { padding-top: 150px; padding-bottom: 70px; }
  .hero h1 { font-size: clamp(48px, 14vw, 72px); }
  .hero-intro { font-size: 17px; }
  .signal-grid { grid-template-columns: 1fr; }
  .signal-grid div, .signal-grid div:nth-child(3) { border-left: 1px solid rgba(255,255,255,.15); }
  .section, .contact { padding: 92px 0; }
  .solution-grid, .quality-grid { grid-template-columns: 1fr; }
  .solution-card { min-height: 410px; }
  .process-track { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .inquiry-form { padding: 28px 22px; }
  .footer-row { padding: 34px 0; grid-template-columns: 1fr; }
  .footer-row > p:last-child { text-align: left; }
}

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