  :root {
    --bg: #F2F7FC;
    --surface: #E4EFFA;
    --surface-2: #D3E5F6;
    --line: #C2DAF0;
    --steel: #4E6D93;
    --text: #142338;
    --muted: #4E6D93;
    --red: #1467D6;
    --red-dim: #0C4DA8;
    --navy: #142348;
    --yellow: #29B6F6;
    --radius: 4px;
    color-scheme: light;
    transition: background .25s ease;
  }
  html.dark {
    --bg: #0A1A33;
    --surface: #0F2647;
    --surface-2: #123159;
    --line: #1D3E6C;
    --steel: #8FB4E0;
    --text: #EAF2FE;
    --muted: #9DC0E8;
    --red: #4FA8FF;
    --red-dim: #2E86DE;
    --navy: #4FA8FF;
    --yellow: #29B6F6;
    color-scheme: dark;
  }
  html.dark header { background: rgba(10,26,51,.88) !important; }
  html.dark .hero {
    background: radial-gradient(ellipse at 80% -10%, rgba(79,168,255,.14), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(41,182,246,.14), transparent 50%), var(--bg) !important;
  }
  html.dark .brand { background: #fff; }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'IBM Plex Sans Thai', 'IBM Plex Sans', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3 { font-family: 'Oswald', sans-serif; letter-spacing: .01em; margin: 0; }
  .mono { font-family: 'IBM Plex Mono', monospace; }
  a { color: inherit; }
  img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
  ::selection { background: var(--yellow); color: var(--navy); }

  /* hazard stripe signature */
  .stripe {
    height: 10px;
    background-image: repeating-linear-gradient(135deg, var(--red) 0 18px, var(--yellow) 18px 36px);
    background-size: 51px 10px;
  }

  /* header */
  header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.88); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }
  .nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; }
  .brand { display: flex; align-items: center; background: #fff; padding: 8px 16px; border-radius: 6px; }
  .brand img { height: 30px; width: auto; display: block; }
  nav.links { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
  nav.links a { text-decoration: none; color: var(--muted); transition: color .15s; }
  nav.links a:hover { color: var(--red); }
  .nav-cta {
    background: var(--red); color: #fff; padding: 10px 20px; border-radius: 3px;
    font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap;
  }
  .menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); width: 40px; height: 40px; border-radius: 3px; font-size: 18px; cursor: pointer; }
  .theme-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--line); color: var(--text);
    cursor: pointer; font-size: 20px; transition: background .15s, border-color .15s, transform .15s;
    position: fixed; right: 24px; bottom: 24px; z-index: 100;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
  }
  .theme-toggle:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
  .theme-toggle .icon-dark { display: none; }
  html.dark .theme-toggle .icon-light { display: none; }
  html.dark .theme-toggle .icon-dark { display: inline; }

  /* hero */
  .hero {
    padding: 96px 0 72px; position: relative; overflow: hidden;
    background: radial-gradient(ellipse at 80% -10%, rgba(20,103,214,.10), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(41,182,246,.12), transparent 50%), var(--bg);
  }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; letter-spacing: .08em;
    color: var(--red); text-transform: uppercase; margin-bottom: 22px;
  }
  .eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--red); display: inline-block; }
  .hero h1 { font-size: clamp(44px, 7vw, 88px); font-weight: 700; line-height: .98; margin-bottom: 24px; color: var(--text); }
  .hero h1 span { color: var(--red); }
  .hero p.lede { max-width: 640px; font-size: 18px; color: var(--steel); margin-bottom: 36px; }
  .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
  .btn {
    padding: 14px 26px; border-radius: 3px; font-weight: 600; font-size: 15px;
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: 1px solid transparent;
    transition: transform .15s ease, background .15s ease;
  }
  .btn:hover { transform: translateY(-2px); }
  .btn-primary { background: var(--red); color: #fff; }
  .btn-primary:hover { background: #2F86EB; }
  .btn-ghost { border-color: var(--line); color: var(--text); }
  .btn-ghost:hover { border-color: var(--red); color: var(--red); }

  .hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
    max-width: 760px;
  }
  .hero-stats div { background: var(--surface); padding: 22px 20px; }
  .hero-stats .num { font-family: 'IBM Plex Mono', monospace; font-size: 30px; font-weight: 600; color: var(--red); }
  .hero-stats .lbl { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

  /* sections */
  section { padding: 88px 0; }
  .section-head { max-width: 640px; margin-bottom: 48px; }
  .kicker { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; letter-spacing: .08em; color: var(--red); text-transform: uppercase; margin-bottom: 12px; }
  .section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; }
  .section-head p { color: var(--steel); margin-top: 14px; font-size: 16px; }

  #about { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: start; }
  .about-copy p { color: var(--steel); font-size: 16.5px; margin-bottom: 18px; }
  .about-copy strong { color: var(--text); }
  .feature-list { display: flex; flex-direction: column; gap: 0; }
  .feature-list .f { padding: 22px 0; border-bottom: 1px solid var(--line); display: flex; gap: 18px; align-items: flex-start; }
  .feature-list .f:first-child { padding-top: 0; }
  .feature-list .f .fi { font-family: 'IBM Plex Mono', monospace; color: var(--red); font-size: 13px; padding-top: 3px; flex-shrink: 0; width: 26px; }
  .feature-list .f h4 { font-size: 16.5px; font-weight: 600; margin-bottom: 4px; font-family: 'IBM Plex Sans Thai'; }
  .feature-list .f p { color: var(--muted); font-size: 14.5px; margin: 0; }

  /* why choose us */
  #why { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .why-card { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 30px 26px; position: relative; overflow: hidden; }
  .why-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--red); }
  .why-card .wi { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--red); letter-spacing: .06em; margin-bottom: 16px; }
  .why-card h3 { font-size: 18px; margin: 0 0 10px; font-weight: 600; line-height: 1.35; }
  .why-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

  /* category overview */
  #categories { border-top: 1px solid var(--line); }
  .cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .cat-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 28px;
    display: flex; flex-direction: column; text-decoration: none; color: inherit; cursor: pointer;
    transition: border-color .15s, transform .15s;
  }
  .cat-card:hover { border-color: var(--red); transform: translateY(-3px); }
  .cat-card .ci { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--red); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
  .cat-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
  .cat-card p { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; flex-grow: 1; }
  .cat-card .cl { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--text); font-weight: 600; }
  .cat-card:hover .cl { color: var(--red); }

  /* mission */
  #mission { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .mission-wrap { max-width: 820px; margin: 0 auto; text-align: center; }
  .mission-wrap p { color: var(--steel); font-size: 18px; line-height: 1.75; }
  .mission-wrap strong { color: var(--text); }

  /* products */
  #products { border-top: 1px solid var(--line); }
  .tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
  .tab { background: var(--surface); border: 1px solid var(--line); color: var(--muted); padding: 9px 18px; border-radius: 20px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .15s; }
  .tab:hover { color: var(--text); border-color: var(--steel); }
  .tab.active { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }

  .p-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .p-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; cursor: pointer; }
  .p-card:hover { border-color: var(--red); transform: translateY(-3px); }
  .p-card:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
  .p-card__img { aspect-ratio: 1/1; border-bottom: 1px solid var(--line); background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--steel); font-size: 13px; overflow: hidden; }
  .p-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
  .p-card:hover .p-card__img img { transform: scale(1.12); }
  .p-card__img--sm img { transition: transform .35s ease; }
  .p-card:hover .p-card__img--sm img { transform: scale(1.12); }
  .p-card__img--sm { padding: 0; }
  .p-card__img--sm img { width: 100%; height: 100%; object-fit: contain; }
  .p-card__body { padding: 16px 16px 18px; }
  .p-card h3 { font-family: 'IBM Plex Sans Thai'; font-size: 15px; font-weight: 600; line-height: 1.35; margin-bottom: 12px; min-height: 40px; }
  .p-specs { display: flex; flex-direction: column; gap: 6px; }
  .chip { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--muted); display: flex; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 6px; }
  .chip b { color: var(--steel); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: 10.5px; }

  /* contact */
  #contact { background: var(--surface); border-top: 1px solid var(--line); }
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
  .contact-info dl { display: grid; grid-template-columns: 110px 1fr; gap: 14px 16px; font-size: 15px; }
  .contact-info dt { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--red); text-transform: uppercase; padding-top: 2px; }
  .contact-info dd { margin: 0; color: var(--text); }
  .contact-card { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 36px; }
  .contact-card h3 { font-size: 22px; margin-bottom: 10px; }
  .contact-card p { color: var(--muted); font-size: 15px; margin-bottom: 24px; }

  /* product detail modal */
  .modal-overlay {
    position: fixed; inset: 0; background: rgba(10,11,13,.72);
    display: none; align-items: center; justify-content: center;
    z-index: 200; padding: 24px;
  }
  .modal-overlay.open { display: flex; }
  .modal-box {
    background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
    max-width: 460px; width: 100%; overflow: hidden; position: relative;
    max-height: 90vh; overflow-y: auto;
    animation: modalIn .18s ease;
  }
  @keyframes modalIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
  .modal-close {
    position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 50%;
    color: var(--text); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    z-index: 2; line-height: 1;
  }
  .modal-close:hover { border-color: var(--red); color: var(--red); }
  .modal-img { aspect-ratio: 1/1; background: var(--surface-2); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--steel); font-size: 13px; overflow: hidden; position: relative; cursor: zoom-in; }
  .modal-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .06s linear; will-change: transform; }
  .modal-body { padding: 26px; }
  .modal-body h3 { font-family: 'IBM Plex Sans Thai'; font-size: 20px; font-weight: 600; margin-bottom: 18px; line-height: 1.4; }
  .modal-specs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
  .modal-specs .chip { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 8px; }
  .modal-specs .chip b { color: var(--steel); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
  .modal-desc { color: var(--steel); font-size: 14.5px; margin-bottom: 24px; }

  footer { border-top: 1px solid var(--line); background: var(--surface); padding: 64px 0 0; }
  .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
  .foot-col h4 { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin: 0 0 18px; }
  .foot-col .brand { margin-bottom: 14px; width: fit-content; }
  .foot-col p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }
  .foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
  .foot-links a, .foot-links button {
    color: var(--muted); text-decoration: none; font-size: 14.5px; background: none; border: none; padding: 0;
    text-align: left; cursor: pointer; font-family: inherit; transition: color .15s;
  }
  .foot-links a:hover, .foot-links button:hover { color: var(--red); }
  .foot-contact dl { display: flex; flex-direction: column; gap: 12px; font-size: 14px; margin: 0; }
  .foot-contact dt { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--steel); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
  .foot-contact dd { margin: 0; color: var(--text); }
  .foot-bottom { border-top: 1px solid var(--line); padding: 20px 0; }
  .foot-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
  .foot-row .brand img { height: 26px; }
  .foot-row .brand { padding: 6px 14px; }
  .foot-row small { color: var(--muted); font-size: 13px; }

  /* ===== catalog-first redesign additions ===== */

  /* compact catalog hero */
  .hero { padding: 64px 0 40px; }
  .hero-catalog-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 30px; }
  .hero h1 { font-size: clamp(36px, 5.4vw, 60px); margin-bottom: 14px; }
  .hero p.lede { font-size: 16.5px; margin-bottom: 0; max-width: 520px; }
  .hero-jump { display: flex; gap: 10px; flex-wrap: wrap; }
  .jump-chip {
    font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 600;
    background: var(--surface); border: 1px solid var(--line); color: var(--text);
    padding: 10px 16px; border-radius: 20px; cursor: pointer; white-space: nowrap;
    transition: all .15s;
  }
  .jump-chip:hover { border-color: var(--red); color: var(--red); }
  .hero-actions { margin-bottom: 30px; }
  .hero-stats { max-width: 100%; grid-template-columns: repeat(3, 1fr); }

  /* compact trust strip replacing long about/why copy */
  .trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); padding: 26px 0; }
  .trust-row { display: flex; flex-wrap: wrap; gap: 0; align-items: stretch; }
  .trust-item { flex: 1 1 220px; display: flex; gap: 14px; align-items: flex-start; padding: 6px 24px; border-left: 1px solid var(--line); }
  .trust-item:first-child { border-left: none; padding-left: 0; }
  .trust-item .ti-ico { font-family: 'IBM Plex Mono', monospace; color: var(--red); font-size: 12px; font-weight: 700; flex-shrink: 0; padding-top: 2px; }
  .trust-item h4 { font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
  .trust-item p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

  /* catalog cover-style category cards */
  #categories { padding: 56px 0; }
  #categories .section-head { margin-bottom: 30px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .cat-card { padding: 34px 30px; min-height: 168px; justify-content: flex-end; position: relative; }
  .cat-card::after {
    content: attr(data-count); position: absolute; top: 24px; right: 26px;
    font-family: 'IBM Plex Mono', monospace; font-size: 34px; font-weight: 700;
    color: var(--line); line-height: 1;
  }
  html.dark .cat-card::after { color: var(--surface-2); }
  .cat-card h3 { font-size: 22px; }

  /* products: catalog spread emphasis */
  #products { padding: 20px 0 88px; }
  #products .section-head { margin-bottom: 30px; }
  .catalog-toolbar {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
    margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
  }
  .catalog-count { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--muted); }
  .catalog-count b { color: var(--red); }
  .tabs { margin-bottom: 0; }

  .p-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .p-card { position: relative; }
  .p-card__num {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700;
    background: var(--bg); color: var(--red); border: 1px solid var(--line);
    padding: 3px 8px; border-radius: 3px; letter-spacing: .04em;
  }
  .p-card__img { aspect-ratio: 4/3; }
  .p-card h3 { font-size: 16px; min-height: 44px; }
  .p-sku { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--red); letter-spacing: .05em; margin-bottom: 10px; display: block; }
  .p-view-hint { margin-top: 12px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
  .p-view-hint::after { content: '→'; transition: transform .15s; }
  .p-card:hover .p-view-hint::after { transform: translateX(3px); }
  .p-card:hover .p-view-hint { color: var(--red); }

  /* compact mission ribbon (was full mission section) */
  .ribbon { background: var(--navy); color: #fff; padding: 22px 0; }
  html.dark .ribbon { background: var(--surface-2); }
  .ribbon .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; text-align: center; }
  .ribbon p { margin: 0; font-size: 14.5px; color: rgba(255,255,255,.88); }
  html.dark .ribbon p { color: var(--text); }
  .ribbon strong { color: #fff; }
  html.dark .ribbon strong { color: var(--text); }

  /* simplified contact */
  #contact { padding: 64px 0; }
  .contact-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; text-align: center; }
  .contact-info dl { grid-template-columns: 90px 1fr; text-align: left; max-width: 460px; margin: 0 auto 28px; }
  .contact-info .kicker, .contact-info h2 { text-align: center; }

  @media (max-width: 980px) {
    nav.links, .nav-cta { display: none; }
    .menu-btn { display: block; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .p-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .trust-item { flex: 1 1 45%; border-left: none !important; padding-left: 0 !important; }
  }
  @media (max-width: 560px) {
    .wrap { padding: 0 18px; }
    .why-grid, .cat-grid, .foot-grid { grid-template-columns: 1fr; }
    .p-grid { grid-template-columns: 1fr 1fr; }
    .trust-item { flex: 1 1 100%; }
    .hero-catalog-row { align-items: flex-start; }
  }
