/* Paknam Formula Works — concept demo stylesheet
   Identity: technical data sheet. Cool lab white, navy ink, nitrile-glove blue, amber-glass accent.
   Chamfered corners echo the cut corners of Chakra Petch. */

:root {
  --paper: #eef2f4;
  --sheet: #ffffff;
  --ink: #0e2235;
  --steel: #4c5a68;
  --line: #c5d0d8;
  --line-soft: #dde4e9;
  --nitrile: #2650c4;
  --nitrile-dark: #1c3e9c;
  --nitrile-tint: #e3e9f8;
  --amber: #e3a23b;
  --amber-ink: #8a5300;
  --amber-tint: #fbf0dc;
  --line-green: #06c755;
  --navy-2: #16314b;

  --f-body: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
  --f-tech: "Chakra Petch", "IBM Plex Sans Thai", system-ui, sans-serif;

  --wrap: 74rem;
  --gutter: 1rem;
  --cut: 18px;
  --mbar-h: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  overflow-wrap: break-word;
  padding-bottom: calc(var(--mbar-h) + env(safe-area-inset-bottom, 0px));
}

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

a { color: var(--nitrile); text-underline-offset: 3px; }
a:hover { color: var(--nitrile-dark); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--f-tech);
  font-weight: 600;
  line-height: 1.32;
  margin: 0 0 0.6em;
  letter-spacing: 0;
}
h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.25rem); line-height: 1.25; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.125rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.tech { font-family: var(--f-tech); font-weight: 600; }
.muted { color: var(--steel); }
.small { font-size: 0.875rem; line-height: 1.65; }
.lead { font-size: 1.125rem; color: var(--steel); max-width: 38rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--sheet);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  min-height: 44px;
}
.brand svg { flex: none; }
.brand-name {
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.2;
  display: block;
}
.brand-sub {
  display: block;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--steel);
}

.lang {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  flex: none;
}
.lang a,
.lang span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--steel);
}
.lang [aria-current="true"] { background: var(--ink); color: #fff; }
.lang a:hover { background: var(--nitrile-tint); color: var(--ink); }

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--sheet);
  color: var(--ink);
  font: 500 0.9375rem/1 var(--f-body);
  cursor: pointer;
}
.menu-btn svg { width: 18px; height: 18px; }

.site-nav { display: none; }
.site-nav.open {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--sheet);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(14, 34, 53, 0.12);
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem var(--gutter) 1rem;
}
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 0.25rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
}
.site-nav a[aria-current="page"] { color: var(--nitrile); font-weight: 600; }

.concept {
  background: var(--amber-tint);
  border-bottom: 1px solid #ecd6ad;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--amber-ink);
}
.concept .wrap { padding-block: 0.3rem; }
.concept span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
}
.concept span::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--amber);
  border-radius: 1px;
  transform: rotate(45deg);
}

@media (min-width: 1100px) {
  .menu-btn { display: none; }
  .site-nav,
  .site-nav.open {
    display: block;
    position: static;
    box-shadow: none;
    border: 0;
    background: none;
  }
  .site-nav ul { display: flex; gap: 0.25rem; padding: 0; }
  .site-nav a {
    border: 0;
    padding: 0 0.7rem;
    font-size: 0.9375rem;
    border-radius: 4px;
  }
  .site-nav a:hover { background: var(--paper); }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--nitrile); border-radius: 0; }
  .site-nav .nav-rfq a {
    background: var(--nitrile);
    color: #fff;
    border-radius: 4px;
    margin-left: 0.35rem;
  }
  .site-nav .nav-rfq a:hover { background: var(--nitrile-dark); }
  .site-nav .nav-rfq a[aria-current="page"] { box-shadow: none; color: #fff; }
}

@media (max-width: 440px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 1rem; }
  .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu-btn { padding: 0; }
  .header-inner { gap: 0.5rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  border: 2px solid transparent;
  font: 600 1rem/1.4 var(--f-body);
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--nitrile); color: #fff; }
.btn-primary:hover { background: var(--nitrile-dark); color: #fff; }
.btn-line { background: var(--line-green); color: var(--ink); }
.btn-line:hover { background: #05b44c; color: var(--ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--nitrile-tint); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Sections ---------- */
.sec { padding-block: 3.25rem; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-white { background: var(--sheet); }

.sec-grid { display: grid; gap: 1.5rem; }
.sec-head h2 { margin-bottom: 0.4em; }
.sec-head p { color: var(--steel); max-width: 30rem; }

@media (min-width: 960px) {
  .sec { padding-block: 4.75rem; }
  .sec-grid { grid-template-columns: 17rem minmax(0, 1fr); gap: 3.5rem; }
  .sec-head { position: sticky; top: 1.5rem; align-self: start; }
}

a.more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* ---------- Page header (inner pages) ---------- */
.page-top { padding-block: 2.75rem 2.25rem; border-bottom: 1px solid var(--line); }
.page-top h1 { max-width: 22ch; }
.crumb { font-size: 0.875rem; color: var(--steel); margin-bottom: 0.25rem; }
.crumb a { color: var(--steel); display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 960px) { .page-top { padding-block: 4rem 3rem; } }

/* ---------- Hero ---------- */
.hero { padding-block: 2.25rem 0; }
.hero-grid { display: grid; gap: 2rem; align-items: start; }
.hero h1 { max-width: 20ch; }
.hero .lead { margin-bottom: 1.5rem; }
@media (min-width: 960px) {
  .hero { padding-block: 4rem 0; }
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 4rem; }
}

/* Data sheet panel: the chamfered "document" */
.datasheet {
  background: var(--sheet);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 4px solid var(--ink);
}
.datasheet-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--ink);
}
.datasheet-head h2 { font-size: 1.125rem; margin: 0; }
.doc-code { font-family: var(--f-tech); font-weight: 600; font-size: 0.8125rem; color: var(--steel); white-space: nowrap; }
.spec { margin: 0; }
.spec div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.spec dt { color: var(--steel); font-size: 0.9375rem; }
.spec dd {
  margin: 0;
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.35;
  text-align: right;
}
.spec dd small { font-family: var(--f-body); font-weight: 400; font-size: 0.8125rem; color: var(--steel); margin-left: 0.25rem; }
.datasheet .note { font-size: 0.8125rem; color: var(--steel); margin: 0.75rem 0 0; }

.hero-photo { margin: 2.5rem 0 0; position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-photo figcaption {
  background: var(--ink);
  color: #dbe4ec;
  font-size: 0.875rem;
  line-height: 1.6;
  padding: 0.65rem var(--gutter);
}
@media (min-width: 960px) {
  .hero-photo img { aspect-ratio: 21 / 8; }
  .hero-photo figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    max-width: 30rem;
    padding: 0.75rem 1.25rem;
  }
}

/* ---------- Product category rows (home) ---------- */
.cat-rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.cat-rows li { border-bottom: 1px solid var(--line); }
.cat-rows a {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  padding: 1rem 0;
  color: var(--ink);
  text-decoration: none;
}
.cat-rows a:hover { background: var(--sheet); }
.code-tag {
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 2.25rem;
  background: var(--amber);
  color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.cat-rows .cat-name { font-weight: 600; font-size: 1.0625rem; }
.cat-rows .cat-desc { grid-column: 2; color: var(--steel); font-size: 0.9375rem; }
.cat-rows .cat-moq { grid-column: 2; font-size: 0.875rem; }
.cat-rows .cat-moq b { font-family: var(--f-tech); font-weight: 600; }
@media (min-width: 720px) {
  .cat-rows a { grid-template-columns: 3.25rem minmax(0, 1fr) 11rem; padding: 1.1rem 0.75rem 1.1rem 0; }
  .cat-rows .cat-desc { grid-column: 2; }
  .cat-rows .cat-moq { grid-column: 3; grid-row: 1 / span 2; text-align: right; align-self: center; }
}

/* ---------- Client types ---------- */
.clients { display: grid; gap: 1.5rem 2rem; }
.client { border-top: 4px solid var(--ink); padding-top: 1rem; }
.client h3 { margin-bottom: 0.35em; }
.client p { color: var(--steel); margin-bottom: 0.5em; }
.client .fit { font-size: 0.875rem; color: var(--ink); }
.client .fit b { font-family: var(--f-tech); font-weight: 600; }
@media (min-width: 640px) { .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Lead-time Gantt (signature element) ---------- */
.gantt {
  background: var(--sheet);
  padding: 1.25rem 1rem 1rem;
  border-top: 4px solid var(--nitrile);
}
.gantt-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; margin-bottom: 1rem; }
.gantt-title h3 { margin: 0; }
.gantt-title p { margin: 0; color: var(--steel); font-size: 0.9375rem; }
.g-list { list-style: none; margin: 0; padding: 0; }
.g-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.g-row:last-child { border-bottom: 0; }
.g-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.6rem; line-height: 1.5; }
.g-num { font-family: var(--f-tech); font-weight: 600; color: var(--steel); font-size: 0.875rem; }
.g-name { font-weight: 600; font-size: 0.9375rem; }
.g-dur { font-size: 0.8125rem; color: var(--steel); }
.g-track {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  height: 22px;
  background-image: linear-gradient(to right, var(--line-soft) 1px, transparent 1px);
  background-size: calc(100% / 13) 100%;
  border-right: 1px solid var(--line-soft);
}
.g-bar {
  grid-column: var(--s) / span var(--n);
  background: var(--ink);
  margin: 3px 1px;
  border-radius: 2px;
}
/* The one orchestrated motion: bars fill in step order, like a schedule being drawn */
.g-bar {
  transform-origin: left center;
  animation: g-fill 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--s) * 70ms);
}
@keyframes g-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.g-bar.you { background: var(--amber); }
.g-bar.fac { background: var(--nitrile); }
.g-axis .g-track {
  height: auto;
  background: none;
  border: 0;
}
.g-axis span {
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--steel);
  text-align: center;
  line-height: 1.6;
}
.g-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 1rem 0 0; font-size: 0.875rem; color: var(--steel); }
.g-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.g-legend i { width: 18px; height: 10px; border-radius: 2px; display: inline-block; }
.g-legend .k-fac { background: var(--nitrile); }
.g-legend .k-you { background: var(--amber); }
.g-legend .k-ship { background: var(--ink); }
@media (min-width: 720px) {
  .gantt { padding: 1.5rem 1.5rem 1.25rem; }
  .g-row { grid-template-columns: 15rem minmax(0, 1fr); gap: 1rem; align-items: center; }
}
.g-axis .g-label { font-size: 0.8125rem; color: var(--steel); }

/* ---------- Steps (OEM page) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.step:first-child { border-top: 2px solid var(--ink); }
.step-n {
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--nitrile);
}
.step h3 { margin-bottom: 0.25em; }
.step-time {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--nitrile-tint);
  color: var(--nitrile-dark);
  padding: 0.1rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.6rem;
}
.step-time.you { background: var(--amber-tint); color: var(--amber-ink); }
.step-body p { color: var(--steel); }
.step-io { display: grid; gap: 0.75rem; margin: 0.25rem 0 0; }
.step-io div { border-left: 3px solid var(--line); padding-left: 0.75rem; }
.step-io dt { font-weight: 600; font-size: 0.875rem; }
.step-io dd { margin: 0; font-size: 0.9375rem; color: var(--steel); }
@media (min-width: 720px) {
  .step { grid-template-columns: 4.5rem minmax(0, 1fr); }
  .step-n { font-size: 2rem; }
  .step-io { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; background: var(--sheet); font-size: 0.9375rem; }
.tbl caption { text-align: left; font-size: 0.875rem; color: var(--steel); padding: 0 0 0.5rem; caption-side: top; }
.tbl th, .tbl td { padding: 0.75rem 0.85rem; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tbl thead th { background: var(--ink); color: #fff; font-weight: 600; font-size: 0.875rem; }
.tbl td.num, .tbl th.num { font-family: var(--f-tech); font-weight: 600; white-space: nowrap; }
@media (max-width: 599px) {
  .tbl-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl-stack tr { display: block; border-bottom: 2px solid var(--line); padding: 0.5rem 0; background: var(--sheet); }
  .tbl-stack td { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.75rem; border: 0; padding: 0.35rem 0.85rem; }
  .tbl-stack td::before { content: attr(data-th); font-family: var(--f-body); font-weight: 500; color: var(--steel); font-size: 0.8125rem; }
  .tbl-stack td:first-child { font-weight: 600; }
}

/* ---------- Product tags (catalogue) ---------- */
.tags { display: grid; gap: 1.25rem; }
.tag {
  background: var(--sheet);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 1rem;
}
.tag-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.75rem; }
.tag-head h2 { font-size: 1.375rem; margin: 0; }
.tag > p { color: var(--steel); }
.tag ul { margin-bottom: 1rem; }
.tag ul li { margin-bottom: 0.15rem; }
.tag .spec { margin-bottom: 1.25rem; border-top: 2px solid var(--ink); }
.tag .spec dd { font-size: 1rem; }
.tag .btn { margin-top: auto; align-self: flex-start; }
@media (min-width: 760px) { .tags { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cost-strip { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cost-strip div { background: var(--sheet); padding: 1rem 1.1rem; }
.cost-strip dt { font-size: 0.875rem; color: var(--steel); }
.cost-strip dd { margin: 0.15rem 0 0; font-family: var(--f-tech); font-weight: 600; font-size: 1.25rem; line-height: 1.4; }
.cost-strip dd small { display: block; font-family: var(--f-body); font-weight: 400; font-size: 0.8125rem; color: var(--steel); }
@media (min-width: 640px) { .cost-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cost-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Photos ---------- */
.ph { margin: 0; }
.ph img { width: 100%; object-fit: cover; aspect-ratio: 3 / 2; background: var(--line-soft); }
.ph.tall img { aspect-ratio: 4 / 5; }
.ph.wide img { aspect-ratio: 16 / 9; }
.ph figcaption { font-size: 0.875rem; color: var(--steel); padding-top: 0.5rem; line-height: 1.6; }
.ph-pair { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .ph-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; } }

/* ---------- Quality ---------- */
.certs { display: grid; gap: 1rem; }
.cert {
  border: 2px dashed var(--line);
  background: var(--sheet);
  padding: 1.1rem 1.1rem 1rem;
  position: relative;
}
.cert h3 { font-size: 1.125rem; margin-bottom: 0.25em; padding-right: 5.5rem; }
.cert p { color: var(--steel); font-size: 0.9375rem; margin-bottom: 0.5em; }
.cert .cert-no { font-family: var(--f-tech); font-weight: 600; font-size: 0.9375rem; color: var(--ink); margin: 0; }
.stamp {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  border: 2px solid var(--amber-ink);
  color: var(--amber-ink);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.5;
  padding: 0 0.45rem;
  border-radius: 3px;
}
@media (min-width: 640px) { .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.qc-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.qc-flow li {
  position: relative;
  padding: 0 0 1.5rem 3.25rem;
}
.qc-flow li::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 2.25rem;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.qc-flow li:last-child::before { display: none; }
.qc-n {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 2px;
}
.qc-flow h3 { font-size: 1.125rem; margin-bottom: 0.2em; padding-top: 0.2rem; }
.qc-flow p { color: var(--steel); margin-bottom: 0.4em; }
.qc-flow .checks { font-size: 0.875rem; color: var(--ink); }

.lab-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.lab-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.1rem 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.lab-list b { font-weight: 600; }
.lab-list span { color: var(--steel); font-size: 0.9375rem; }
@media (min-width: 720px) { .lab-list li { grid-template-columns: 14rem minmax(0, 1fr); } }

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 1.5rem; }
.review { margin: 0; border-left: 3px solid var(--amber); padding: 0.25rem 0 0.25rem 1.1rem; }
.review p { font-size: 1.0625rem; line-height: 1.75; margin-bottom: 0.75rem; }
.review footer { font-size: 0.875rem; color: var(--steel); line-height: 1.6; }
.review footer b { color: var(--ink); font-weight: 600; display: block; }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 56px;
  padding: 0.75rem 0;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--nitrile), var(--nitrile)) center / 14px 2px no-repeat,
    linear-gradient(var(--nitrile), var(--nitrile)) center / 2px 14px no-repeat;
}
.faq details[open] summary::after {
  background: linear-gradient(var(--nitrile), var(--nitrile)) center / 14px 2px no-repeat;
}
.faq details > div { padding: 0 0 1.1rem; color: var(--steel); max-width: 44rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--nitrile); color: #fff; padding-block: 3rem; }
.cta-band h2 { color: #fff; max-width: 24ch; }
.cta-band p { color: #e5ebfa; max-width: 40rem; }
.cta-grid { display: grid; gap: 1.5rem; align-items: end; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: minmax(0, 1fr) auto; } .cta-band { padding-block: 3.75rem; } }

/* ---------- Contact / RFQ ---------- */
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3.5rem; } }

.rfq {
  background: var(--sheet);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  padding: 1.5rem 1.1rem;
  border-bottom: 4px solid var(--ink);
}
@media (min-width: 640px) { .rfq { padding: 2rem 1.75rem; } }
.rfq h2 { font-size: 1.5rem; }
.form-grid { display: grid; gap: 1.1rem 1.25rem; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .full { grid-column: 1 / -1; }
}
.field label,
.field legend { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.35rem; line-height: 1.5; }
.field .req { color: #b42318; font-weight: 600; }
.field .hint { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--steel); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.75rem;
  font: 400 1rem/1.6 var(--f-body);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #9aa8b4;
  border-radius: 4px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 3px solid var(--amber); outline-offset: 1px; border-color: var(--ink); background: #fff; }
.field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.25rem 0.85rem;
  border: 1px solid #9aa8b4;
  border-radius: 4px;
  font-weight: 500;
  margin: 0;
  cursor: pointer;
  background: var(--paper);
}
.choice input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--nitrile); }
.form-foot { margin-top: 1.5rem; display: grid; gap: 0.75rem; }
.form-foot .small { margin: 0; }

.thanks { display: none; }
.thanks.show { display: block; }
.thanks h2 { color: var(--nitrile-dark); }
.thanks .spec dd { font-size: 1rem; }

.info-block { border-top: 2px solid var(--ink); padding-top: 1rem; margin-bottom: 2rem; }
.info-block h2 { font-size: 1.25rem; margin-bottom: 0.5em; }
.info-block address { font-style: normal; margin-bottom: 0.75rem; }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line-soft); }
.hours dt { color: var(--steel); }
.hours dd { margin: 0; font-family: var(--f-tech); font-weight: 600; text-align: right; }
.contact-lines { list-style: none; padding: 0; margin: 0; }
.contact-lines li { padding: 0.15rem 0; }
.contact-lines a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d5e0; padding-block: 2.75rem 2rem; font-size: 0.9375rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 0.5rem; }
.foot-grid { display: grid; gap: 2rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot-grid li a:hover { text-decoration: underline; }
.foot-legal { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--navy-2); font-size: 0.8125rem; color: #9fb1c2; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- PV Dev strip (studio credit, deliberately off-brand) ---------- */
.pvdev {
  background: #262626;
  color: #e8e8e8;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8125rem;
  line-height: 1.6;
  text-align: center;
  padding: 0.7rem var(--gutter);
  border-top: 3px solid #4a4a4a;
}
.pvdev a { color: #ffe08a; font-weight: 600; display: inline-block; padding: 0.35rem 0; min-height: 44px; line-height: 2.2; }
.pvdev a:hover { color: #fff; }

/* ---------- Mobile action bar ---------- */
.mbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  background: var(--sheet);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -6px 18px rgba(14, 34, 53, 0.1);
}
.mbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-height: var(--mbar-h);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.mbar svg { width: 22px; height: 22px; }
.mbar .m-line { background: var(--line-green); }
.mbar .m-call { border-left: 1px solid var(--line); }
.mbar .m-rfq { background: var(--nitrile); color: #fff; }
@media (min-width: 1100px) {
  .mbar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Utilities ---------- */
.mt-2 { margin-top: 2rem; }
.mt-1 { margin-top: 1rem; }
.note-box {
  background: var(--amber-tint);
  border-left: 4px solid var(--amber);
  padding: 0.9rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.65;
}
.note-box p:last-child { margin-bottom: 0; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.6rem; margin-bottom: 0.45rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.55em;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2px solid var(--nitrile);
  border-bottom: 2px solid var(--nitrile);
  transform: rotate(-45deg);
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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