:root {
  --charcoal: #15181b;
  --charcoal-2: #1d2125;
  --steel: #2c3236;
  --steel-line: #3a4045;
  --paper: #f4f1ea;
  --paper-2: #eae6da;
  --ink: #181715;
  --ink-soft: #54514a;
  --amber: #e2742c;
  --amber-dark: #b85a1e;
  --steel-blue: #5d7e90;
  --muted-dark: #9aa0a4;
  --max: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

svg {
  display: block;
}

h1,
h2,
.logotype {
  font-family: "Oswald", Impact, Arial Narrow, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.mono,
.eyebrow,
.btn,
.nav-links a,
.filter-btn,
.tag,
.enq,
.cap-item .v,
.info-row .k,
.quote-panel h3,
.enquiry-form label span,
.foot-row p,
.foot-links a {
  font-family: "IBM Plex Mono", Consolas, monospace;
}

.wrap {
  width: min(var(--max), 100% - 56px);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(21, 24, 27, 0.95);
  border-bottom-color: var(--steel-line);
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.logotype {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.logo-mark {
  width: 11px;
  height: 11px;
  flex: none;
  background: var(--amber);
  border-radius: 1px;
}

.logotype small {
  display: block;
  margin-top: 2px;
  color: var(--muted-dark);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: var(--paper);
  font-size: 14px;
  letter-spacing: 0.06em;
  opacity: 0.82;
  text-transform: uppercase;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover {
  color: var(--amber);
  opacity: 1;
}

.nav-links .nav-cta {
  padding: 9px 18px;
  color: var(--amber);
  border: 1px solid var(--amber);
  border-radius: 2px;
}

.nav-links .nav-cta:hover {
  color: var(--charcoal);
  background: var(--amber);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--paper);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  padding: 0 36px;
  background: var(--charcoal);
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu a {
  color: var(--paper);
  font-family: "Oswald", Impact, Arial Narrow, sans-serif;
  font-size: 30px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mobile-close {
  position: absolute;
  top: 25px;
  right: 28px;
  color: var(--paper);
  background: none;
  border: 0;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 168px 0 0;
  color: var(--paper);
  background:
    linear-gradient(110deg, rgba(21, 24, 27, 0.96), rgba(21, 24, 27, 0.84)),
    url("https://www.sdyongle.com/static/yongle/images/a1.png") center / cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -260px;
  right: -200px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 116, 44, 0.3), rgba(226, 116, 44, 0) 68%);
  pointer-events: none;
}

.hero-rings {
  position: absolute;
  top: 120px;
  right: 40px;
  width: 420px;
  height: 420px;
  opacity: 0.54;
  pointer-events: none;
}

.hero-rings circle {
  stroke: var(--steel-line);
  stroke-width: 1;
}

.hero-rings circle:last-child {
  stroke: var(--amber);
  stroke-width: 1.4;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-bottom: 90px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--amber);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.04;
}

.hero h1 em {
  color: var(--amber);
  font-style: normal;
}

.hero p {
  max-width: 600px;
  margin-bottom: 38px;
  color: #c7c9cb;
  font-size: 19px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-amber {
  color: var(--charcoal);
  background: var(--amber);
}

.btn-amber:hover {
  background: #f08a45;
}

.btn-ghost {
  color: var(--paper);
  border-color: #4a4f53;
}

.btn-ghost:hover {
  border-color: var(--paper);
}

.btn.full {
  width: 100%;
}

.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 64px;
  border-top: 1px solid var(--steel-line);
}

.stat {
  position: relative;
  padding: 26px 28px;
  border-right: 1px solid var(--steel-line);
}

.stat:last-child {
  border-right: 0;
}

.rivet {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--steel-line);
}

.stat .rivet {
  top: 10px;
  left: 10px;
}

.num {
  color: var(--paper);
  font-family: "Oswald", Impact, Arial Narrow, sans-serif;
  font-size: 30px;
  font-weight: 600;
}

.lbl {
  margin-top: 6px;
  color: var(--muted-dark);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

section {
  padding: 96px 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 700px;
  margin-bottom: 56px;
}

.section-head .eyebrow {
  margin-bottom: 0;
  color: var(--amber-dark);
}

.section-head h2 {
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.12;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 17px;
}

.about,
.quality {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

.copy p {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 17px;
}

.cap-list {
  overflow: hidden;
  color: var(--paper);
  background: var(--charcoal);
  border: 1px solid var(--steel-line);
  border-radius: 4px;
}

.cap-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--steel-line);
}

.cap-item:last-child {
  border-bottom: 0;
}

.cap-item .k {
  color: #c7c9cb;
  font-size: 14px;
}

.cap-item .v {
  color: var(--amber);
  font-size: 14px;
  text-align: right;
}

.products {
  background: var(--paper-2);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 18px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid #c9c4b4;
  border-radius: 2px;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.filter-btn.active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  min-height: 290px;
  padding: 26px 24px;
  background: var(--paper);
  border: 1px solid #ddd8c8;
  border-radius: 4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px rgba(20, 18, 12, 0.08);
}

.card[hidden] {
  display: none;
}

.card .tl {
  top: 9px;
  left: 9px;
  background: #ccc6b4;
}

.card .tr {
  top: 9px;
  right: 9px;
  background: #ccc6b4;
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  background: var(--charcoal);
  border-radius: 3px;
}

.icon-box svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tag {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--steel-blue);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card h3,
.cert-card h3 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}

.card p,
.cert-card p {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.enq {
  display: inline-block;
  padding-bottom: 2px;
  color: var(--ink);
  border-bottom: 1px solid var(--amber);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.enq:hover {
  color: var(--amber-dark);
}

.certs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.cert-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 28px 24px;
  border: 1px solid #ddd8c8;
  border-radius: 4px;
}

.cert-num {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--amber-dark);
  border: 1px solid var(--amber-dark);
  border-radius: 50%;
  font-size: 11px;
}

.reach,
.contact {
  color: var(--paper);
  background: var(--charcoal);
}

.reach .section-head h2,
.contact .section-head h2 {
  color: var(--paper);
}

.reach .section-head p,
.contact .section-head p,
.dark-copy p {
  color: #c7c9cb;
}

.reach-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--steel-line);
  border: 1px solid var(--steel-line);
}

.client {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 26px 18px;
  text-align: center;
  background: var(--charcoal-2);
}

.client span {
  color: #d8d9da;
  font-family: "Oswald", Impact, Arial Narrow, sans-serif;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.reach-note {
  grid-column: 1 / -1;
  padding-top: 24px;
  color: var(--muted-dark);
  background: var(--charcoal);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 14px;
  line-height: 1.8;
}

.quote-panel,
.enquiry-form {
  padding: 34px;
  background: var(--charcoal-2);
  border: 1px solid var(--steel-line);
  border-radius: 4px;
}

.quote-panel h3 {
  margin-bottom: 10px;
  color: var(--paper);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.quote-panel p {
  margin-bottom: 24px;
  color: #c7c9cb;
  font-size: 16px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 28px);
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 11, 0.76);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 28px));
  max-height: min(760px, calc(100dvh - 28px));
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 2;
  color: var(--paper);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.form-intro {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--steel-line);
}

.form-intro h3 {
  margin-bottom: 6px;
  color: var(--paper);
  font-family: "Oswald", Impact, Arial Narrow, sans-serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.form-intro p,
.form-actions p {
  color: #c7c9cb;
  font-size: 16px;
}

.enquiry-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.enquiry-form label span {
  color: var(--muted-dark);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--paper);
  background: #111416;
  border: 1px solid var(--steel-line);
  border-radius: 2px;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.enquiry-form textarea {
  min-height: 124px;
  resize: vertical;
}

.enquiry-form input::placeholder,
.enquiry-form textarea::placeholder {
  color: #70777b;
}

.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(226, 116, 44, 0.14);
}

.enquiry-form select {
  cursor: pointer;
}

.info-row {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--steel-line);
}

.info-row .k {
  flex: none;
  width: 110px;
  color: var(--muted-dark);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.info-row .v {
  color: var(--paper);
  font-size: 16px;
}

.info-row a {
  border-bottom: 1px solid var(--amber);
}

.map-card {
  overflow: hidden;
  margin-top: 26px;
  background: var(--charcoal-2);
  border: 1px solid var(--steel-line);
  border-radius: 4px;
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
  filter: grayscale(0.15) contrast(1.05);
}

.map-card a {
  display: block;
  padding: 14px 16px;
  color: var(--amber);
  border-top: 1px solid var(--steel-line);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-card a:hover {
  background: rgba(226, 116, 44, 0.08);
}

.footer {
  padding: 34px 0;
  background: var(--charcoal-2);
  border-top: 1px solid var(--steel-line);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.foot-row p,
.foot-links a {
  color: var(--muted-dark);
  font-size: 11.5px;
}

.foot-links {
  display: flex;
  gap: 22px;
}

.foot-links a {
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.foot-links a:hover {
  color: var(--amber);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }

  .about-grid,
  .reach-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

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

  .stat:nth-child(3) {
    border-right: 0;
  }

  .stat:nth-child(1),
  .stat:nth-child(2),
  .stat:nth-child(3) {
    border-bottom: 1px solid var(--steel-line);
  }

  .certs-row {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 40px, var(--max));
  }

  .modal {
    align-items: flex-start;
    padding: 12px;
  }

  .modal-card {
    width: 100%;
    max-height: calc(100dvh - 24px);
  }

  .quote-panel,
  .enquiry-form {
    padding: 24px;
  }

  .modal-close {
    top: 12px;
    right: 14px;
  }

  .form-intro {
    margin-bottom: 18px;
    padding-bottom: 14px;
  }

  .form-intro .eyebrow {
    margin-bottom: 12px;
  }

  .form-intro h3 {
    font-size: 24px;
  }

  .form-intro p {
    font-size: 15px;
  }

  .enquiry-form label {
    margin-bottom: 12px;
  }

  .enquiry-form input,
  .enquiry-form select {
    min-height: 44px;
  }

  .enquiry-form textarea {
    min-height: 108px;
  }

  .logotype {
    font-size: 16px;
  }

  .logotype small {
    display: none;
  }

  .hero {
    padding-top: 120px;
  }

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

  .hero-rings {
    right: -160px;
    opacity: 0.4;
  }

  section {
    padding: 70px 0;
  }

  .product-grid,
  .client-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 36px;
  }

  .stat:nth-child(3) {
    border-right: 1px solid var(--steel-line);
  }

  .stat:nth-child(2),
  .stat:nth-child(4) {
    border-right: 0;
  }

  .stat:nth-child(4) {
    border-bottom: 1px solid var(--steel-line);
  }

  .stat {
    padding: 20px 18px;
  }

  .num {
    font-size: 26px;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cap-item,
  .info-row {
    display: block;
  }

  .cap-item .v,
  .info-row .v {
    display: block;
    margin-top: 6px;
    text-align: left;
  }
}
