:root {
  --black: #1a0b0d;
  --white: #ffffff;
  --soft: #fff7f5;
  --line: rgba(255, 255, 255, 0.24);
  --muted: rgba(255, 255, 255, 0.76);
  --red: #cf1728;
  --red-deep: #8f0d18;
  --red-soft: #fbe8e8;
  --footer-grey: #202124;
  --footer-line: rgba(255, 255, 255, 0.16);
  --yellow: #ffc928;
  --font-main: "Poppins", Arial, Helvetica, sans-serif;
  --font-display: "Poppins", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: var(--font-main);
  font-size: 15px;
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.mono,
.section-kicker,
.hero-meta,
.hero-locations,
.scroll-label,
.slide-count,
.footer-title,
.terminal-list span,
.terminal-list small,
.contact-details span {
  font-family: "Consolas", "Courier New", monospace;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 clamp(24px, 4vw, 68px);
  color: var(--white);
  transition: background 260ms ease, box-shadow 260ms ease, color 260ms ease, height 260ms ease;
}

.site-header.scrolled {
  height: 74px;
  color: var(--black);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(143, 13, 24, 0.12);
  box-shadow: 0 18px 44px rgba(88, 10, 18, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.brand-logo {
  width: auto;
  height: 54px;
  object-fit: contain;
}

.brand-logo-default {
  display: none;
}

.brand-logo-light {
  display: block;
}

.site-header.scrolled .brand-logo {
  height: 50px;
}

.site-header.scrolled .brand-logo-default {
  display: block;
}

.site-header.scrolled .brand-logo-light {
  display: none;
}

.brand-dot {
  width: 10px;
  height: 10px;
  background: var(--yellow);
}

.brand strong {
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 900;
}

.brand strong span {
  color: var(--yellow);
}

.brand small {
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.34em;
}

.site-header.scrolled .brand small {
  color: #6a3033;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 48px);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: none;
}

.nav-links a {
  opacity: 0.92;
}

.nav-links a:hover {
  color: var(--yellow);
}

.site-header.scrolled .nav-links a:hover {
  color: var(--red);
}

.quote-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quote-button {
  color: var(--black);
  background: var(--white);
}

.site-header.scrolled .quote-button {
  color: var(--white);
  background: var(--red);
}

.site-header.scrolled .quote-button:hover {
  color: var(--black);
  background: var(--yellow);
}

.button.red {
  color: var(--white);
  background: var(--red);
}

.button.red:hover {
  color: var(--black);
  background: var(--yellow);
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 201, 40, 0.8);
  background: rgba(255, 201, 40, 0.08);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 150px clamp(24px, 4vw, 68px) 122px;
  color: var(--white);
  background: var(--red);
}

.hero-slider,
.slide,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slider {
  width: 100%;
  overflow: hidden;
}

.slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: grayscale(1) contrast(1.06) brightness(0.72);
  transform: scale(1.05);
  transform-origin: center;
  transition: opacity 900ms ease, transform 5800ms ease;
}

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

.hero-overlay {
  z-index: 1;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 201, 40, 0.22), transparent 28%),
    linear-gradient(104deg, rgba(116, 7, 18, 0.96) 0%, rgba(184, 18, 34, 0.76) 42%, rgba(207, 23, 40, 0.28) 72%, rgba(255, 255, 255, 0.05) 100%),
    linear-gradient(0deg, rgba(61, 5, 12, 0.82), rgba(61, 5, 12, 0.1) 48%, rgba(61, 5, 12, 0.34));
}

.hero-meta {
  position: absolute;
  z-index: 2;
  top: 120px;
  left: clamp(24px, 4vw, 68px);
  right: clamp(24px, 4vw, 68px);
  display: flex;
  justify-content: space-between;
  gap: 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.accent,
.section-kicker {
  color: var(--yellow);
}

.about-section .section-kicker,
.locations-section .section-kicker,
.gallery-section .section-kicker {
  color: var(--red);
}

.hero-index {
  margin: 0 0 28px;
  font-size: 0.82rem;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.7rem, 6.1vw, 6rem);
  line-height: 0.94;
  letter-spacing: 0;
  font-family: var(--font-display);
  font-weight: 900;
}

.hero-locations {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 44px;
}

.hero-bottom {
  position: absolute;
  z-index: 2;
  left: clamp(24px, 4vw, 68px);
  right: clamp(24px, 4vw, 68px);
  bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.75rem;
}

.scroll-label {
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  padding-left: 14px;
}

.ticker {
  overflow: hidden;
  color: var(--white);
  background: var(--red);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  max-width: 100%;
}

.ticker div {
  min-width: max-content;
  padding: 22px 0;
  color: var(--yellow);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  white-space: nowrap;
  animation: ticker 32s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section {
  padding: clamp(68px, 7.6vw, 112px) clamp(24px, 4vw, 68px);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
  background: var(--white);
}

.image-stack {
  position: relative;
}

.image-stack img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1);
}

.cert-card {
  position: absolute;
  right: -22px;
  bottom: 30px;
  width: min(320px, calc(100% - 30px));
  padding: 24px;
  color: var(--white);
  background: var(--red);
}

.cert-card span,
.cert-card p {
  color: rgba(255, 255, 255, 0.78);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cert-card strong {
  display: block;
  margin: 22px 0 8px;
  font-size: 1.15rem;
}

.section-kicker {
  margin: 0 0 24px;
  font-size: 0.8rem;
  font-weight: 900;
}

h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.7rem, 3.35vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: 0;
  font-family: var(--font-display);
  font-weight: 900;
}

.about-copy > p:not(.section-kicker),
.section-head > p,
.contact-copy > p {
  max-width: 610px;
  color: #6f3335;
  font-size: 0.94rem;
  line-height: 1.7;
}

.about-copy > p:not(.section-kicker) {
  margin-top: 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 46px;
  background: var(--red-soft);
}

.stats-grid div {
  min-width: 0;
  min-height: 142px;
  padding: 22px;
  background: var(--white);
}

.stats-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 2.25vw, 2.25rem);
  line-height: 1;
  font-family: var(--font-display);
}

.stats-grid span,
.stats-grid small {
  display: block;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stats-grid span {
  color: var(--red);
  font-weight: 900;
}

.stats-grid small {
  margin-top: 10px;
  color: #8a5556;
  line-height: 1.5;
}

.services-section,
.contact-section {
  color: var(--white);
  background: var(--red);
}

.site-footer {
  color: var(--white);
  background: var(--footer-grey);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 0.55fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 58px;
}

.services-section .section-head > p,
.contact-copy > p {
  color: rgba(255, 255, 255, 0.82);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-list article {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 42px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--red-deep);
}

.service-list article > span {
  color: var(--yellow);
  font-family: "Consolas", "Courier New", monospace;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.service-list h3 {
  margin: 38px 0 14px;
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  line-height: 1.05;
  font-family: var(--font-display);
  font-weight: 900;
}

.service-list p,
.service-list li {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  line-height: 1.6;
}

.service-list ul {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.service-list li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  background: var(--yellow);
  vertical-align: middle;
}

.service-list a {
  width: max-content;
  margin-top: auto;
  padding-top: 28px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.locations-section,
.gallery-section {
  background: var(--white);
}

.locations-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: stretch;
}

.map-panel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 46px);
  color: var(--white);
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 201, 40, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(207, 23, 40, 0.88), rgba(143, 13, 24, 0.96)),
    url("assets/refining.jpg") center / cover;
}

.map-panel p,
.map-panel span {
  position: relative;
  z-index: 1;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.map-panel h3 {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: auto 0 18px;
  font-size: clamp(1.9rem, 3.6vw, 3.8rem);
  line-height: 0.98;
  font-family: var(--font-display);
  font-weight: 900;
}

.map-lines {
  position: absolute;
  inset: 0;
  opacity: 0.7;
}

.map-lines i {
  position: absolute;
  width: 60%;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(-28deg);
}

.map-lines i:nth-child(1) { left: 8%; top: 28%; }
.map-lines i:nth-child(2) { right: -8%; top: 46%; }
.map-lines i:nth-child(3) { left: 20%; bottom: 28%; }
.map-lines i:nth-child(4) { right: 10%; bottom: 16%; }

.terminal-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--red-soft);
}

.terminal-list article {
  min-height: 100%;
  display: grid;
  align-content: space-between;
  padding: 0;
  background: var(--white);
}

.terminal-list .headquarter-card {
  min-height: 560px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--red-soft);
  border-left: 8px solid var(--red);
  box-shadow: 0 24px 58px rgba(143, 13, 24, 0.08);
}

.terminal-list span,
.terminal-list small {
  color: var(--red);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.terminal-list strong {
  display: block;
  margin-top: 36px;
  font-size: clamp(1.55rem, 2.8vw, 2.7rem);
  line-height: 1.02;
  font-family: var(--font-display);
}

.terminal-list em {
  display: block;
  margin-top: 8px;
  color: #7b484a;
  font-style: normal;
  font-size: 0.96rem;
  line-height: 1.5;
}

.location-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 42px;
  background: var(--red-soft);
}

.location-info div {
  min-height: 132px;
  padding: 20px;
  background: var(--white);
}

.location-info p {
  margin: 12px 0 0;
  color: #482528;
  line-height: 1.55;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.gallery-grid figure {
  position: relative;
  min-height: 360px;
  grid-column: span 4;
  margin: 0;
  overflow: hidden;
  background: var(--red-deep);
}

.gallery-grid figure.wide {
  grid-column: span 8;
  min-height: 520px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 600ms ease, filter 600ms ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.05);
  filter: grayscale(0);
}

.gallery-grid figcaption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(0deg, rgba(143, 13, 24, 0.86), transparent);
}

.gallery-grid strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

.gallery-grid span {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(46px, 7vw, 96px);
  background:
    linear-gradient(120deg, var(--red-deep) 0%, var(--red) 58%, #f23824 100%);
}

.contact-copy h2 {
  max-width: 470px;
}

.contact-details {
  display: grid;
  gap: 26px;
  margin-top: 54px;
}

.contact-details div {
  display: grid;
  gap: 8px;
}

.contact-details span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.72rem;
}

.contact-details a,
.contact-details strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.3;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 32px;
  row-gap: 28px;
  padding: clamp(24px, 4vw, 44px);
  color: var(--black);
  background: var(--white);
  border: 1px solid rgba(143, 13, 24, 0.18);
  box-shadow: 0 28px 70px rgba(67, 0, 10, 0.24);
}

.hidden-field {
  display: none;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--red);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-form .full,
.form-footer {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 0;
  color: var(--black);
  border: 0;
  border-bottom: 1px solid rgba(143, 13, 24, 0.34);
  border-radius: 0;
  background: transparent;
  outline: none;
}

.contact-form select {
  background: var(--white);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #7a6768;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--yellow);
}

.contact-section .button.red {
  color: var(--black);
  background: var(--yellow);
}

.contact-section .button.red:hover {
  color: var(--red);
  background: var(--white);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 10px;
}

.form-footer p {
  max-width: 430px;
  color: #6c5657;
  font-size: 0.82rem;
  line-height: 1.6;
}

.site-footer {
  border-top: 1px solid var(--footer-line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 0.8fr 1fr 1fr;
  gap: 42px;
  padding: 82px clamp(24px, 4vw, 68px);
  border-bottom: 1px solid var(--footer-line);
}

.footer-brand small {
  display: none;
}

.footer-brand .brand-logo {
  height: 62px;
}

.footer-about p,
.footer-grid p,
.footer-grid a {
  display: block;
  max-width: 460px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.footer-grid a {
  margin-top: 12px;
}

.footer-grid a:hover {
  color: var(--yellow);
}

.footer-title {
  display: block;
  margin-bottom: 18px;
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 900;
}

.footer-wordmark {
  overflow: hidden;
  padding: 15px clamp(24px, 4vw, 68px);
  color: var(--yellow);
  font-size: clamp(2rem, 9vw, 9rem);
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.85;
  white-space: nowrap;
  border-bottom: 1px solid var(--footer-line);
  max-width: 100%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(24px, 4vw, 68px);
  color: rgba(255, 255, 255, 0.68);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.thank-you-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--red-deep), var(--red));
}

.thank-you-section {
  width: min(720px, calc(100% - 36px));
  padding: clamp(32px, 6vw, 64px);
  color: var(--black);
  background: var(--white);
  box-shadow: 0 28px 70px rgba(67, 0, 10, 0.24);
}

.thank-you-logo {
  height: 64px;
  width: auto;
  margin-bottom: 34px;
}

.thank-you-section h1 {
  color: var(--red);
}

.thank-you-section p:not(.section-kicker) {
  max-width: 560px;
  margin: 18px 0 30px;
  color: #6f3335;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero-meta {
    top: 102px;
    flex-direction: column;
  }

  .about-section,
  .section-head,
  .locations-layout,
  .contact-section,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .service-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .terminal-list .headquarter-card {
    min-height: 300px;
  }

  .gallery-grid figure,
  .gallery-grid figure.wide {
    grid-column: 1 / -1;
    min-height: 360px;
  }

  .map-panel {
    min-height: 430px;
  }

  .terminal-list .headquarter-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 72px;
    padding: 0 18px;
  }

  .brand small,
  .quote-button {
    display: none;
  }

  .brand-logo,
  .site-header.scrolled .brand-logo {
    height: 46px;
  }

  .hero {
    padding: 132px 18px 102px;
  }

  h1 {
    font-size: clamp(2.4rem, 13vw, 4.2rem);
  }

  .hero-meta,
  .hero-bottom {
    left: 18px;
    right: 18px;
  }

  .hero-actions,
  .form-footer,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .stats-grid,
  .service-list,
  .terminal-list,
  .location-info,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .service-list article {
    min-height: auto;
  }

  .contact-form .full,
  .form-footer {
    grid-column: auto;
  }

  .cert-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
  }
}
