/* self-hosted fonts */
/* thai */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/f1.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* vietnamese */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/f2.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/f3.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/f4.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* thai */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/f5.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* vietnamese */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/f6.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/f7.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/f8.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* thai */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/f9.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* vietnamese */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/f10.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/f11.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/f12.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* thai */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/f13.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* vietnamese */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/f14.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/f15.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/f16.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* thai */
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/f17.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* vietnamese */
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/f18.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/f19.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/f20.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* thai */
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/f21.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* vietnamese */
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/f22.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/f23.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/f24.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* thai */
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/f25.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* vietnamese */
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/f26.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/f27.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/f28.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   POLY PLANET CO., LTD. — Stylesheet v2 (industrial editorial)
   ============================================================ */

:root {
  --ink: #0e1c2b;
  --ink-2: #16283c;
  --steel: #3e5f80;
  --steel-dark: #29455f;
  --steel-soft: #7d97b1;
  --amber: #f2a33c;
  --amber-dark: #d9861c;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --line: #dfe5eb;
  --text: #22303e;
  --muted: #5d6d7d;
  --r: 8px;
  --shadow: 0 4px 18px rgba(14, 28, 43, 0.07);
  --shadow-lg: 0 18px 46px rgba(14, 28, 43, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Sarabun', 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Prompt', 'Sarabun', sans-serif; line-height: 1.32; color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: var(--steel); text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { padding: 84px 0; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* icons */
.ic { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Section headings (editorial) ---------- */
.sec-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Prompt', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 16px;
}
.sec-label::before { content: ''; width: 42px; height: 2px; background: var(--amber); }
.sec-label .no { color: var(--steel-soft); font-weight: 500; letter-spacing: 0.1em; }
.sec-title { font-size: clamp(1.65rem, 3.4vw, 2.35rem); font-weight: 600; max-width: 720px; }
.sec-desc { color: var(--muted); max-width: 660px; margin-top: 14px; }
.sec-head { margin-bottom: 52px; }
.sec-head.center { text-align: center; }
.sec-head.center .sec-label { justify-content: center; }
.sec-head.center .sec-label::before { display: none; }
.sec-head.center .sec-title, .sec-head.center .sec-desc { margin-left: auto; margin-right: auto; }

/* ---------- Topbar ---------- */
.topbar { background: var(--ink); color: #b9c8d6; font-size: 0.85rem; padding: 8px 0; }
.topbar .container { display: flex; justify-content: flex-end; gap: 26px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar .ic { width: 15px; height: 15px; }
.lang-sw { display: inline-flex; gap: 3px; margin-left: 6px; }
.lang-sw a {
  font-family: 'Prompt', sans-serif; font-size: 0.78rem; font-weight: 600;
  padding: 2px 9px; border-radius: 4px; color: #b9c8d6;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.lang-sw a:hover { color: #fff; }
.lang-sw a.on { background: var(--amber); color: var(--ink); border-color: var(--amber); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { height: 48px; width: auto; }
.brand .brand-name { font-family: 'Prompt', sans-serif; font-weight: 700; font-size: 1.08rem; color: var(--ink); letter-spacing: 0.06em; }
.brand .brand-sub { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.02em; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  font-family: 'Prompt', sans-serif;
  font-size: 0.94rem; font-weight: 500;
  color: var(--text);
  padding: 10px 15px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover { background: #eef2f6; color: var(--steel-dark); }
.main-nav a.active { color: var(--steel-dark); box-shadow: inset 0 -2px 0 var(--amber); border-radius: 6px 6px 0 0; background: none; }
.main-nav .nav-cta {
  background: var(--ink); color: #fff; margin-left: 12px; border-radius: 6px; box-shadow: none;
}
.main-nav .nav-cta:hover { background: var(--steel-dark); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Prompt', sans-serif; font-weight: 600; font-size: 0.98rem;
  padding: 14px 30px; border-radius: 6px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-amber { background: var(--amber); color: var(--ink); box-shadow: 0 8px 22px rgba(242, 163, 60, 0.35); }
.btn-amber:hover { background: #ffb54f; }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--steel-dark); color: #fff; }
.btn-line { border: 1.5px solid var(--steel); color: var(--steel-dark); }
.btn-line:hover { background: var(--steel); color: #fff; }

/* ---------- Hero (photo full-bleed) ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #0a1522 0%, #142638 52%, #234059 100%);
  padding: 0;
}
.hero .hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(720px 380px at 86% 10%, rgba(109, 140, 171, 0.30), transparent 65%),
    radial-gradient(600px 340px at 8% 94%, rgba(242, 163, 60, 0.13), transparent 60%);
}
.hero .hero-grid {
  position: absolute; inset: 0; opacity: 0.13; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, transparent 95%);
}
.hero .container {
  position: relative; padding-top: 96px; padding-bottom: 100px; max-width: 1180px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
}
.hero .hero-shot { animation: heroRise 0.9s ease-out both; }
.hero .hero-shot img {
  width: 100%; height: auto;
  filter: drop-shadow(0 36px 42px rgba(0, 0, 0, 0.55));
  animation: heroFloat 5.5s ease-in-out 1.1s infinite;
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(52px); }
  to { opacity: 1; transform: none; }
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .hero-shot, .hero .hero-shot img { animation: none; }
}
.hero .kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Prompt', sans-serif; font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--amber);
  margin-bottom: 26px;
}
.hero .kicker::before { content: ''; width: 46px; height: 2px; background: var(--amber); }
.hero h1 {
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  font-weight: 700; color: #fff; max-width: 780px;
  margin-bottom: 22px; letter-spacing: -0.01em;
}
.hero h1 .hl { color: var(--amber); }
.hero p.lead { font-size: 1.1rem; color: #c2cfdc; max-width: 600px; margin-bottom: 38px; }
.hero .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .hero-meta {
  display: flex; gap: 0; margin-top: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  flex-wrap: wrap;
}
.hero .hm {
  padding: 22px 44px 0 0; margin-right: 44px;
}
.hero .hm .num { font-family: 'Prompt', sans-serif; font-size: 1.75rem; font-weight: 700; color: #fff; }
.hero .hm .num em { font-style: normal; color: var(--amber); }
.hero .hm .lbl { font-size: 0.86rem; color: #9fb1c2; }

/* ---------- Material ticker ---------- */
.ticker { background: var(--amber); overflow: hidden; padding: 13px 0; }
.ticker .track {
  display: flex; gap: 0; width: max-content;
  animation: ticker 36s linear infinite;
}
.ticker span {
  font-family: 'Prompt', sans-serif; font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.14em; color: var(--ink); white-space: nowrap;
  padding: 0 26px; position: relative;
}
.ticker span::after { content: '◆'; position: absolute; right: -7px; font-size: 0.6rem; top: 4px; color: rgba(14, 28, 43, 0.45); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Split (photo + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .photo { position: relative; }
.split .photo img { border-radius: var(--r); box-shadow: var(--shadow-lg); width: 100%; height: 440px; object-fit: cover; }
.split .photo .photo-tag {
  position: absolute; left: -14px; bottom: 28px;
  background: var(--ink); color: #fff;
  font-family: 'Prompt', sans-serif; font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 22px; border-left: 3px solid var(--amber);
  box-shadow: var(--shadow-lg);
}
.split .photo.stack img { height: auto; }
.split ul.checks { list-style: none; margin: 22px 0 30px; }
.split ul.checks li { padding: 8px 0 8px 36px; position: relative; }
.split ul.checks li::before {
  content: ''; position: absolute; left: 0; top: 13px;
  width: 20px; height: 20px;
  background: var(--amber);
  clip-path: polygon(14% 44%, 0 58%, 40% 100%, 100% 16%, 84% 4%, 40% 70%);
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px 30px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #c9d4de; }
.card .icon {
  width: 54px; height: 54px; display: grid; place-items: center;
  background: var(--ink); color: var(--amber);
  border-radius: 8px; margin-bottom: 20px;
}
.card h3 { font-size: 1.14rem; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* photo cards */
.pcard {
  position: relative; border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--surface);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pcard .ph { overflow: hidden; height: 250px; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.pcard:hover .ph img { transform: scale(1.05); }
.pcard .body { padding: 28px 30px 30px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.pcard .body h3 { font-size: 1.22rem; font-weight: 600; margin-bottom: 10px; }
.pcard .body p { color: var(--muted); font-size: 0.97rem; margin-bottom: 20px; }
.pcard .body .btn { margin-top: auto; }
.pcard .num-ghost {
  position: absolute; top: 14px; right: 20px; z-index: 2;
  font-family: 'Prompt', sans-serif; font-size: 3rem; font-weight: 700;
  color: rgba(255, 255, 255, 0.85); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  line-height: 1;
}

/* ---------- Materials (spec-sheet) ---------- */
.mat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 26px 24px; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.mat::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--steel); }
.mat.adv::before { background: var(--amber); }
.mat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mat .code {
  font-family: 'Prompt', sans-serif; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel-soft);
  margin-bottom: 8px; display: block;
}
.mat.adv .code { color: var(--amber-dark); }
.mat h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.mat p { color: var(--muted); font-size: 0.94rem; }
.mat .uses { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px; }
.mat .uses span {
  font-size: 0.78rem; color: var(--steel-dark); background: #edf2f7;
  border-radius: 4px; padding: 3px 10px; font-family: 'Prompt', sans-serif;
}

/* material visual — stylised sheet + rod in the material's real colour */
.mat-visual {
  position: relative;
  height: 132px;
  margin: -23px -26px 20px;
  overflow: hidden;
  background:
    linear-gradient(rgba(14, 28, 43, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 28, 43, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, #f0f4f8, #e2eaf1);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  border-bottom: 1px solid var(--line);
}
.mat-visual { height: 150px; }
.mat-visual img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.mat:hover .mat-visual img { transform: scale(1.05); }
.mat-visual .wm {
  position: absolute; top: 8px; right: 14px;
  font-family: 'Prompt', sans-serif; font-weight: 700; font-size: 2.1rem;
  letter-spacing: 0.04em; color: rgba(14, 28, 43, 0.07); line-height: 1;
  user-select: none;
}
.mat-visual .sheet {
  position: absolute; width: 74%; height: 44px; left: 13%; top: 24px;
  transform: rotate(-6deg);
  background: linear-gradient(180deg, var(--m-sheet-hi) 0%, var(--m-sheet) 55%);
  border-radius: 4px;
  border: 1px solid rgba(14, 28, 43, 0.08);
  box-shadow: 0 8px 16px rgba(14, 28, 43, 0.16);
}
.mat-visual .rod {
  position: absolute; width: 82%; height: 24px; left: 9%; bottom: 20px;
  transform: rotate(-6deg);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--m-rod-hi) 0%, var(--m-rod) 48%, var(--m-rod-lo) 100%);
  border: 1px solid rgba(14, 28, 43, 0.08);
  box-shadow: 0 8px 14px rgba(14, 28, 43, 0.2);
}
.mat:hover .mat-visual .sheet { transform: rotate(-6deg) translateY(-3px); }
.mat:hover .mat-visual .rod { transform: rotate(-6deg) translateX(4px); }
.mat-visual .sheet, .mat-visual .rod { transition: transform 0.3s ease; }

/* material colour palettes (true-to-life stock colours) */
.m-nylon  { --m-sheet-hi: #f8f2e1; --m-sheet: #ede2c6; --m-rod-hi: #f8f2e2; --m-rod: #e6d8b6; --m-rod-lo: #c8b78d; }
.m-pom    { --m-sheet-hi: #ffffff; --m-sheet: #f2f4f6; --m-rod-hi: #5c626a; --m-rod: #33393f; --m-rod-lo: #1c2126; }
.m-pet    { --m-sheet-hi: #fbfaf5; --m-sheet: #efece1; --m-rod-hi: #fbfaf6; --m-rod: #e7e3d6; --m-rod-lo: #c8c3b2; }
.m-hdpe   { --m-sheet-hi: #ffffff; --m-sheet: #f1f4f2; --m-rod-hi: #4d9c70; --m-rod: #2f7d52; --m-rod-lo: #1e5a39; }
.m-pc     { --m-sheet-hi: #eaf4fc; --m-sheet: #cfe4f4; --m-rod-hi: #ecf5fc; --m-rod: #c2dcef; --m-rod-lo: #98bfdd; }
.m-pvc    { --m-sheet-hi: #c2ccd5; --m-sheet: #a3afba; --m-rod-hi: #7a8792; --m-rod: #59666f; --m-rod-lo: #3d474f; }
.m-ptfe   { --m-sheet-hi: #ffffff; --m-sheet: #f7f9fa; --m-rod-hi: #ffffff; --m-rod: #eef1f4; --m-rod-lo: #d3dae0; }
.m-peek   { --m-sheet-hi: #e3cba1; --m-sheet: #d2b385; --m-rod-hi: #e6cda3; --m-rod: #c6a471; --m-rod-lo: #a2814c; }
.m-pei    { --m-sheet-hi: #e5b465; --m-sheet: #d49f48; --m-rod-hi: #e8b869; --m-rod: #c58e38; --m-rod-lo: #986a22; }

/* ---------- Industries (dark band) ---------- */
.dark-band { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.dark-band .sec-title { color: #fff; }
.dark-band .sec-desc { color: #a7b8c8; }
.dark-band::before {
  content: ''; position: absolute; inset: 0; opacity: 0.07; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 64px 64px;
}
.ind-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.ind {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r); overflow: hidden;
  height: 230px; text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.ind img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s ease; }
.ind::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 17, 28, 0.94) 0%, rgba(8, 17, 28, 0.35) 45%, rgba(8, 17, 28, 0.05) 70%);
  pointer-events: none;
}
.ind:hover { border-color: var(--amber); transform: translateY(-4px); }
.ind:hover img { transform: scale(1.06); }
.ind .nm {
  position: absolute; left: 12px; right: 12px; bottom: 16px; z-index: 2;
  font-family: 'Prompt', sans-serif; font-weight: 500; font-size: 0.98rem; color: #f2f6fa;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.ind .nm::before { content: ''; display: block; width: 26px; height: 2px; background: var(--amber); margin: 0 auto 8px; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 26px; position: relative; box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step; content: '0' counter(step);
  font-family: 'Prompt', sans-serif; font-size: 2.6rem; font-weight: 700;
  color: #e6ecf2; line-height: 1; display: block; margin-bottom: 14px;
}
.step h3 { font-size: 1.06rem; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Stats band ---------- */
.stats-band { background: linear-gradient(115deg, var(--steel-dark), var(--ink)); color: #fff; padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat .num { font-family: 'Prompt', sans-serif; font-size: 2.5rem; font-weight: 700; color: var(--amber); }
.stat .lbl { color: #b9c8d6; font-size: 0.93rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; border-radius: 14px; overflow: hidden; color: #fff;
  padding: 62px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('../img/cnc-milling-work.jpg');
  background-size: cover; background-position: center;
  opacity: 0.22;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.95rem); font-weight: 600; margin-bottom: 8px; }
.cta-band p { color: #c2cfdc; }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; color: #fff; padding: 74px 0; overflow: hidden;
  background: linear-gradient(135deg, #0a1522 0%, #142638 52%, #234059 100%);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 86% 15%, rgba(109, 140, 171, 0.30), transparent 65%),
    radial-gradient(480px 260px at 8% 90%, rgba(242, 163, 60, 0.12), transparent 60%);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; opacity: 0.09; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 56px 56px;
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(1.75rem, 3.8vw, 2.5rem); font-weight: 700; }
.page-hero p { color: #b9c8d6; max-width: 680px; margin-top: 12px; }
.breadcrumb { font-size: 0.87rem; color: #8ba0b4; margin-bottom: 14px; }
.breadcrumb a { color: #cfdae5; }
.breadcrumb a:hover { color: #fff; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  margin-bottom: 14px; box-shadow: var(--shadow); overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none;
  font-family: 'Prompt', sans-serif; font-weight: 500; font-size: 1.02rem; color: var(--ink);
  padding: 20px 56px 20px 26px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--amber-dark); transition: transform 0.2s;
}
.faq[open] summary::after { content: '−'; }
.faq[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq-a { padding: 18px 26px 22px; color: var(--muted); }
.faq .faq-a a { font-weight: 600; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post-card .ph { height: 200px; overflow: hidden; }
.post-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s; }
.post-card:hover .ph img { transform: scale(1.05); }
.post-card .body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.post-card .cat {
  font-family: 'Prompt', sans-serif; font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber-dark); margin-bottom: 10px;
}
.post-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--steel); }
.post-card p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.post-card .more { margin-top: 16px; font-family: 'Prompt', sans-serif; font-weight: 600; font-size: 0.9rem; color: var(--steel-dark); }

/* article page */
.article-wrap { max-width: 800px; margin: 0 auto; }
.article-wrap .post-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 30px; }
.article-body h2 { font-size: 1.5rem; font-weight: 600; margin: 42px 0 16px; }
.article-body h3 { font-size: 1.18rem; font-weight: 600; margin: 30px 0 12px; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 26px; }
.article-body li { margin-bottom: 8px; }
.article-body img { border-radius: var(--r); box-shadow: var(--shadow); margin: 26px 0; }
.article-body .tip {
  background: #fdf3e3; border-left: 3px solid var(--amber);
  padding: 18px 22px; border-radius: 0 var(--r) var(--r) 0; margin: 26px 0;
}
.article-body table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 0.95rem; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.article-body th { background: var(--ink); color: #fff; font-family: 'Prompt', sans-serif; font-weight: 500; }
.article-body tr:nth-child(even) td { background: #f7f9fb; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 36px; align-items: start; }
.contact-card { display: flex; gap: 20px; align-items: flex-start; padding: 26px 28px; }
.contact-card .icon { flex-shrink: 0; margin-bottom: 0; }
.contact-card h3 { font-size: 1.04rem; margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: 0.97rem; color: var(--muted); word-break: break-word; }
.contact-card a.big { font-family: 'Prompt', sans-serif; font-size: 1.25rem; font-weight: 600; color: var(--steel-dark); }
.map-frame { width: 100%; height: 100%; min-height: 480px; border: 0; border-radius: var(--r); box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b0c0cf; padding: 66px 0 0; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 46px; padding-bottom: 48px; }
.site-footer h4 {
  color: #fff; font-size: 0.98rem; font-weight: 600; margin-bottom: 18px;
  font-family: 'Prompt', sans-serif; letter-spacing: 0.04em;
}
.site-footer .f-brand img { height: 52px; margin-bottom: 18px; filter: brightness(0) invert(1) opacity(0.95); }
.site-footer p, .site-footer a, .site-footer li { font-size: 0.92rem; color: #b0c0cf; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 5px 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 20px 0; font-size: 0.84rem; text-align: center; color: #7e94a8; }

/* ---------- Reveal (hidden state only when JS is confirmed working) ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.65s ease, transform 0.65s ease; }
html.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker .track { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-3, .grid-4, .mat-grid, .post-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: repeat(3, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split .photo { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .container { padding-top: 90px; padding-bottom: 96px; grid-template-columns: 1fr; }
  .hero .hero-shot { display: none; }
}

@media (max-width: 680px) {
  section { padding: 58px 0; }
  .topbar .tb-hide-m { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 18px 22px; box-shadow: var(--shadow-lg);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 16px; }
  .main-nav a.active { box-shadow: inset 3px 0 0 var(--amber); border-radius: 6px; }
  .main-nav .nav-cta { margin-left: 0; text-align: center; justify-content: center; display: flex; }
  .grid-2, .grid-3, .grid-4, .mat-grid, .post-grid, .steps { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-band { padding: 44px 30px; }
  .hero .hm { padding-right: 26px; margin-right: 0; }
  .split .photo .photo-tag { left: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .stat .num { font-size: 1.9rem; }
}
