/* ============================================================
   KUNNEX — corporate site styles (brand-aligned)
   Derived from KUNNEX logo + product DM:
   white / light gray base, charcoal ink, red brush accent,
   diagonal geometry, thin condensed numerals
   ============================================================ */

:root {
  --charcoal: #3d474d;      /* logo wordmark */
  --ink: #23292e;
  --red: #ce2b35;           /* logo brush stroke */
  --red-dark: #b02028;
  --paper: #ffffff;
  --gray-band: #f2f2f0;
  --gray-mid: #939598;      /* DM cover band */
  --text: #343c42;
  --text-muted: #6a7278;
  --text-inverse: #eceef0;
  --text-inverse-muted: #a8b0b6;
  --line: #d9dcde;
  --line-dark: #4c565d;
  --teal: #1898b7;          /* DM category colors */
  --gold: #a08c50;
  --orange: #e8721f;
  --yellow: #d9a512;
  --magenta: #c9227e;
  --purple: #575087;
  --container: 1120px;
  --font-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.red { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
  /* DM-style slanted edge */
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover { background: var(--red-dark); }
.btn-outline {
  border-color: var(--charcoal);
  color: var(--charcoal);
  clip-path: none;
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-lg { padding: 16px 40px; font-size: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 51px; width: auto; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--red); }
.nav-links a.nav-cta {
  color: #fff;
  background: var(--red);
  padding: 10px 22px;
  font-weight: 600;
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}
.nav-links a.nav-cta:hover { background: var(--red-dark); color: #fff; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
}

.nav-links a.active { color: var(--red); }

/* ---------- Subpage header ---------- */
.page-head {
  position: relative;
  background: var(--gray-band);
  padding: 64px 0 52px;
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  top: -40px;
  bottom: -40px;
  right: 6%;
  width: 22px;
  background: var(--red);
  transform: skewX(-18deg);
}
.page-head .container { position: relative; z-index: 1; }
.page-head h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 700;
  max-width: 20ch;
}
.page-head .section-lede {
  margin-top: 16px;
  max-width: 62ch;
}
.page-head .sec-tag { margin-bottom: 24px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--ink);
  color: var(--text-inverse);
  text-align: center;
  padding: 72px 24px;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -40px;
  bottom: -40px;
  left: 8%;
  width: 90px;
  background: var(--charcoal);
  transform: skewX(-18deg);
}
.cta-band::after {
  content: "";
  position: absolute;
  top: -40px;
  bottom: -40px;
  right: 10%;
  width: 20px;
  background: var(--red);
  transform: skewX(-18deg);
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.cta-band p {
  color: var(--text-inverse-muted);
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}
.cta-band .btn { position: relative; z-index: 1; }

/* ---------- Home teasers ---------- */
.teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.teaser-grid .section-head { margin-bottom: 0; }
.teaser-grid .video-embed { max-width: none; }
@media (max-width: 900px) {
  .teaser-grid { grid-template-columns: 1fr; gap: 40px; }
}

.link-more {
  display: inline-block;
  margin-top: 26px;
  font-weight: 600;
  font-size: 15px;
  color: var(--red);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 3px;
  transition: color .2s, border-color .2s;
}
.link-more:hover { color: var(--red-dark); border-color: var(--red-dark); }
.pillar-compact { text-align: left; }
.pillar-compact .pillar-icon { margin-bottom: 14px; }
.pillar-compact h3 { font-size: 17px; margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  background: var(--paper);
  overflow: hidden;
}
.hero-inner {
  padding: 88px 24px 64px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-media img {
  display: block;
  width: 100%;
  height: 500px;
  object-fit: cover;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-kicker {
  font-family: var(--font-cond);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(38px, 5.2vw, 62px);
  font-weight: 700;
  max-width: 18ch;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--red);
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* diagonal photo band — echoes the DM cover collage */
.hero-band {
  position: relative;
  height: 260px;
  margin: 56px 0 0;
  background: var(--gray-band);
  overflow: hidden;
}
.band-strip {
  position: absolute;
  top: -30px;
  bottom: -30px;
  width: 210px;
  transform: skewX(-18deg);
  overflow: hidden;
}
/* counter-skewed photo inside the slanted mask */
.band-strip::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70px;
  right: -70px;
  transform: skewX(18deg);
  background-size: cover;
  background-position: center;
}
.strip-1 { left: 10%; }
.strip-1::before { background-image: url("assets/photos/hero-lapping.jpg"); }
.strip-2 { left: 33%; }
.strip-2::before { background-image: url("assets/photos/hero-grinding.jpg"); }
.strip-3 { left: 56%; }
.strip-3::before { background-image: url("assets/photos/hero-line.jpg"); }
.strip-4 { left: 80%; background: var(--red); width: 26px; overflow: visible; }
.strip-4::before { content: none; }

/* stats — styled like the DM spec tables */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-right: 0;
  margin: -44px 0 0;
  position: relative;
  background: #fff;
  box-shadow: 0 10px 30px rgba(35,41,46,.07);
}
.stat {
  border-right: 1px solid var(--line);
  padding: 22px 24px 18px;
}
.stat-num {
  display: block;
  font-family: var(--font-cond);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.05;
  color: var(--charcoal);
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Trust strip ---------- */
.trust {
  background: var(--paper);
  padding: 64px 0 20px;
}
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.trust-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 26px 28px;
  background: #fff;
}
.trust-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  color: var(--red);
}
.trust-icon svg { width: 100%; height: 100%; }
.trust-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.trust-card p {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-gray { background: var(--gray-band); }
.section-dark {
  background: var(--ink);
  color: var(--text-inverse);
}
.section-dark h2 { color: #fff; }

/* Section eyebrow: red slash + condensed uppercase label */
.sec-tag {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
}
.sec-label {
  font-family: var(--font-cond);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--charcoal);
  border-left: 3px solid var(--red);
  padding-left: 14px;
}

.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  margin-bottom: 18px;
}
.section-lede {
  font-size: 17px;
  color: var(--text-muted);
}
.section-dark .section-lede { color: var(--text-inverse-muted); }

/* ---------- About / History ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.about-copy p {
  margin-bottom: 20px;
  font-size: 16.5px;
}
.timeline {
  list-style: none;
  border-left: 2px solid var(--line);
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 0 0 34px 28px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 8px;
  width: 10px;
  height: 10px;
  background: var(--red);
  transform: skewX(-12deg);
}
.timeline-year {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 19px;
  color: var(--red);
  white-space: nowrap;
  line-height: 1.3;
}
.timeline strong {
  font-size: 16px;
  color: var(--ink);
}
.timeline p {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- Pillars ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.pillar {
  background: #fff;
  border: 1px solid var(--line);
  padding: 34px 32px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.pillar:hover {
  border-color: var(--charcoal);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(35,41,46,.08);
}
.pillar-icon {
  width: 44px;
  height: 44px;
  color: var(--red);
  margin-bottom: 20px;
}
.pillar-icon svg { width: 100%; height: 100%; }
.pillar h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.pillar p {
  font-size: 15px;
  color: var(--text-muted);
}

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.product-card {
  display: block;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0 30px 32px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-cta {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cat);
}
.product-card:hover .card-cta { text-decoration: underline; }
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(35,41,46,.09);
}
/* DM category color system */
.cat-gold    { --cat: var(--gold); }
.cat-teal    { --cat: var(--teal); }
.cat-orange  { --cat: var(--orange); }
.cat-yellow  { --cat: var(--yellow); }
.cat-magenta { --cat: var(--magenta); }
.cat-purple  { --cat: var(--purple); }
.product-cat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
}
.cat-num {
  font-family: var(--font-cond);
  font-weight: 300;
  font-size: 34px;
  line-height: 1;
  color: var(--cat);
}
.cat-line {
  flex: 1;
  height: 3px;
  background: var(--cat);
  transform: skewX(-30deg);
  transform-origin: left bottom;
}
.product-visual {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
}
.product-visual svg { width: 112px; height: 112px; }
.product-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.product-card p {
  font-size: 14.5px;
  color: var(--text-muted);
}
.product-note {
  margin-top: 44px;
  padding: 22px 28px;
  background: var(--gray-band);
  border-left: 3px solid var(--red);
  font-size: 15px;
  color: var(--text-muted);
  max-width: 860px;
}
.product-note strong { color: var(--ink); }

/* ---------- Partnership ---------- */
.partnership {
  position: relative;
  overflow: hidden;
}
/* red diagonal slash — echo of the logo brush stroke */
.partnership::after {
  content: "";
  position: absolute;
  top: -60px;
  bottom: -60px;
  right: -40px;
  width: 130px;
  background: var(--red);
  transform: skewX(-18deg);
  opacity: .92;
}
.partnership .container { position: relative; z-index: 1; }
.partnership .section-head { max-width: 780px; }
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.partner-card {
  border: 1px solid var(--line-dark);
  padding: 32px 30px;
  background: rgba(255,255,255,.03);
}
.partner-card h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.partner-card p {
  font-size: 15px;
  color: var(--text-inverse-muted);
}
.partnership-cta {
  margin-top: 52px;
  text-align: center;
}

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 72px;
  align-items: start;
}
.contact-intro h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  margin-bottom: 18px;
}
.contact-intro > p {
  color: var(--text-muted);
  margin-bottom: 32px;
}
.contact-meta {
  border-top: 2px solid var(--red);
  padding-top: 24px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.8;
}
.contact-meta strong { color: var(--ink); }
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 40px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: #fff;
  transition: border-color .2s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--charcoal);
}
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: #fff;
}
.field select:focus {
  outline: none;
  border-color: var(--charcoal);
}
.field textarea { resize: vertical; }
.contact-form .btn { width: 100%; clip-path: none; }

/* ---------- Photography ---------- */
.photo-band {
  margin: 0;
}
.photo-band img {
  display: block;
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.photo-band figcaption,
.photo-grid figcaption {
  font-size: 13.5px;
  color: var(--text-muted);
  padding-top: 12px;
}
.photo-band.in-section img { height: 340px; }
.photo-band.natural img { height: auto; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 56px;
}
.photo-grid figure { margin: 0; }
.photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Category landing pages ---------- */
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.model-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 26px 26px 30px;
}
.model-card .model-code {
  font-family: var(--font-cond);
  font-size: 28px;
  font-weight: 600;
  color: var(--red);
  line-height: 1.1;
}
.model-card .model-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 2px 0 16px;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 14px;
}
.spec-table td {
  border: 1px solid var(--line);
  padding: 6px 9px;
}
.spec-table td:first-child {
  color: var(--text-muted);
  width: 44%;
}
.model-card ul {
  list-style: none;
  font-size: 13.5px;
  color: var(--text-muted);
}
.model-card li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 5px;
}
.model-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--red);
  transform: skewX(-12deg);
}
.benefit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 40px;
  list-style: none;
  max-width: 900px;
  font-size: 15.5px;
}
.benefit-list li {
  position: relative;
  padding-left: 26px;
}
.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 14px;
  height: 3px;
  background: var(--red);
  transform: skewX(-30deg);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.process-step {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 22px 20px 26px;
}
.process-step .step-num {
  font-family: var(--font-cond);
  font-weight: 300;
  font-size: 40px;
  line-height: 1;
  color: var(--red);
  display: block;
  margin-bottom: 12px;
}
.process-step h3 {
  font-size: 15.5px;
  margin-bottom: 8px;
}
.process-step p {
  font-size: 13.5px;
  color: var(--text-muted);
}
@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr; }
}
.footer-tag a { color: var(--text-inverse-muted); }
.footer-tag a:hover { color: #fff; }

.faq-list { max-width: 880px; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.faq-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.faq-item p {
  font-size: 15px;
  color: var(--text-muted);
}
@media (max-width: 900px) {
  .model-grid { grid-template-columns: 1fr; }
  .benefit-list { grid-template-columns: 1fr; }
}

/* ---------- Video embed ---------- */
.video-embed {
  position: relative;
  max-width: 880px;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 1px solid var(--line);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-caption {
  max-width: 880px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--text-inverse-muted);
  padding: 56px 0 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}
.footer-logo { height: 30px; width: auto; display: block; }
.footer-tag {
  margin-top: 14px;
  font-size: 14px;
  max-width: 40ch;
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-inverse-muted);
  text-decoration: none;
  font-size: 14px;
}
.footer-links a:hover { color: #fff; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 22px;
  padding-bottom: 26px;
  font-size: 13px;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .hero-inner {
    padding: 64px 24px 48px;
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-media img { height: 300px; }
  .hero-band { height: 180px; margin-top: 40px; }
  .band-strip { width: 130px; }
  .strip-4 { width: 18px; }
  .photo-band img { height: 260px; }
  .photo-band img[src*="about-line"] { height: 340px; }
  .photo-band.in-section img { height: 220px; }
  .photo-band.natural img { height: auto; }
  .photo-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); border-right: 1px solid var(--line); }
  .stat { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
  .trust-grid,
  .about-grid,
  .pillar-grid,
  .product-grid,
  .partner-grid,
  .contact-wrap { grid-template-columns: 1fr; }
  .about-grid { gap: 48px; }
  .contact-wrap { gap: 48px; }
  .partnership::after { display: none; }
  .page-head::after { display: none; }
  .cta-band::before, .cta-band::after { display: none; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 16px; }
  .nav-links a.nav-cta {
    text-align: center;
    margin-top: 10px;
  }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .contact-form { padding: 28px 22px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 32px; }
  .brand-logo { height: 42px; }
}

/* ============================================================
   Mobile rhythm — 手機版圖文交錯
   桌機版不受影響；以下規則只在 900px 以下生效
   ============================================================ */
@media (max-width: 900px) {

  /* ---- 橫向滑動列：避免圖片/卡片在手機上連續垂直堆疊 ---- */
  .photo-grid,
  .model-grid,
  .process-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    margin-left: -24px;
    margin-right: -24px;
    padding: 4px 24px 12px;
    scrollbar-width: none;
  }
  .photo-grid::-webkit-scrollbar,
  .model-grid::-webkit-scrollbar,
  .process-grid::-webkit-scrollbar { display: none; }

  .photo-grid > figure,
  .model-grid > .model-card,
  .process-grid > .process-step {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
  .photo-grid > figure { flex-basis: 76%; }
  .photo-grid img { aspect-ratio: 4 / 3; }
  .model-grid > .model-card { flex-basis: 86%; }

  /* ---- 圖示卡片改 2 欄：縮短連續文字段 ---- */
  .product-grid.compact,
  .pillar-grid.compact {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .product-grid.compact .product-card { padding: 0 16px 20px; }
  .product-grid.compact .product-cat { padding-top: 16px; }
  .product-grid.compact .product-visual { height: 104px; }
  .product-grid.compact .product-visual svg { width: 68px; height: 68px; }
  .product-grid.compact .product-card h3 { font-size: 14.5px; }
  .pillar-grid.compact .pillar { padding: 20px 16px 22px; }
  .pillar-grid.compact .pillar-icon { width: 34px; height: 34px; margin-bottom: 10px; }
  .pillar-grid.compact .pillar h3 { font-size: 14.5px; line-height: 1.3; }

  /* ---- 獎項卡與 FAQ 在手機上更緊湊 ---- */
  .trust-card { padding: 20px; gap: 14px; }
  .trust-icon { flex: 0 0 38px; width: 38px; height: 38px; }
  .trust-card h3 { font-size: 15.5px; }
  .trust-card p { font-size: 13.5px; }
  .faq-item { padding: 18px 0; }
  .faq-item h3 { font-size: 16px; }
}

/* ============================================================
   Contact offices — 多據點呈現
   ============================================================ */
.office-list { display: grid; gap: 26px; }
.office {
  border-left: 2px solid var(--line);
  padding-left: 18px;
}
.office-tag {
  display: block;
  font-family: var(--font-cond);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 7px;
}
.office p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.75;
}
.office strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   OEM / ODM 合作模式對照
   ============================================================ */
.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.mode-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 32px 30px 34px;
}
.mode-code {
  display: block;
  font-family: var(--font-cond);
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .04em;
  color: var(--red);
  margin-bottom: 8px;
}
.mode-card h3 { font-size: 18px; margin-bottom: 12px; }
.mode-card > p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.mode-card ul {
  list-style: none;
  font-size: 14.5px;
  color: var(--text-muted);
}
.mode-card li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 7px;
}
.mode-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--red);
  transform: skewX(-12deg);
}
@media (max-width: 900px) {
  .mode-grid { grid-template-columns: 1fr; }
  .mode-card { padding: 26px 22px 28px; }
}

/* ============================================================
   Why KUNNEX — 價值論述區塊（深色）
   ============================================================ */
.section-dark .sec-label { color: #fff; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 52px;
}
.why-item {
  position: relative;
  padding-left: 60px;
}
.why-num {
  position: absolute;
  left: 0;
  top: -6px;
  font-family: var(--font-cond);
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  color: var(--red);
}
.why-item h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 10px;
}
.why-item p {
  color: var(--text-inverse-muted);
  font-size: 15px;
}
.why-close {
  margin-top: 48px;
  padding-top: 30px;
  border-top: 1px solid var(--line-dark);
  max-width: 760px;
}
.why-close p {
  color: var(--text-inverse);
  font-size: 17px;
  line-height: 1.7;
}
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; gap: 30px; }
  .why-item { padding-left: 48px; }
  .why-num { font-size: 34px; }
  .why-close { margin-top: 34px; }
}

/* ============================================================
   照片橫幅的裁切焦點
   .photo-band 在桌機是很寬的裁切（約 3.2:1），預設置中會切掉
   位於畫面上半部的人臉。以下四張含人物的照片把裁切焦點上移，
   確保頭部完整；特寫類（手、機台）維持置中。
   ============================================================ */
.photo-band img[src*="capability-qc"],
.photo-band img[src*="hero-line"],
.photo-band img[src*="partnership-line"] {
  object-position: center 28%;
}

/* about-line 是半身工作照——橫幅加高到 560px 才裝得下上半身與
   檢驗紀錄板，避免只剩一顆頭；焦點略偏上讓頭頂留白自然 */
.photo-band img[src*="about-line"] {
  height: 560px;
  object-position: center 18%;
}

/* ============================================================
   型號卡的產品照
   白底棚拍圖用 contain 完整呈現，絕不裁切產品
   ============================================================ */
.model-photo {
  margin: -32px -30px 22px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.model-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 18px 18px 12px;
}
@media (max-width: 900px) {
  .model-photo { margin: -32px -30px 18px; }
  .model-photo img { aspect-ratio: 3 / 2; padding: 14px 14px 10px; }
}
