/* ============================================================
   KT PH — Plastic Mould Injection & Design
   Dark industrial theme, palette derived from company logo:
   - Lime accent  #A9F426 (exact sample from logo artwork)
   - Silver gray  ~#8E9187
   - Near black   #0B0D0C base / pure-black logo tiles blend in
   ============================================================ */

:root {
  --bg:        #0B0D0C;
  --bg-alt:    #101312;
  --panel:     #161A18;
  --panel-2:   #1B201D;
  --line:      rgba(244, 246, 240, 0.09);
  --line-strong: rgba(244, 246, 240, 0.18);

  --text:      #F2F4EF;
  --muted:     #A7ACA3;
  --faint:     #7B817A;

  --lime:      #A9F426;
  --lime-soft: rgba(169, 244, 38, 0.12);
  --silver:    #8E9187;

  --font-display: "Saira Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: min(1160px, 92vw);
  --header-h: 74px;
  --radius: 10px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 0.6em;
  font-weight: 700;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--lime); color: #10130A; }

.container { width: var(--container); margin-inline: auto; }

section[id] { scroll-margin-top: calc(var(--header-h) + 14px); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--lime); color: #10130A; padding: 10px 18px; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Eyebrow / section headers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--lime); margin-bottom: 18px;
}
.tick { width: 26px; height: 3px; background: var(--lime); display: inline-block; }

.section-head { max-width: 720px; margin-bottom: 54px; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: 1.28rem; letter-spacing: 0.03em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 4px;
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.12em; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: all 0.2s ease;
}
.btn-primary { background: var(--lime); color: #10130A; }
.btn-primary:hover { background: #C4FF4D; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(169,244,38,0.25); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px); }
.btn-block { width: 100%; text-align: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 13, 12, 0.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(0,0,0,0.45); }

.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { width: 52px; height: 52px; mix-blend-mode: screen; border-radius: 6px; }
.brand-text { line-height: 1.15; display: flex; flex-direction: column; }
.brand-text strong { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.14em; text-transform: uppercase; }
.brand-text small { color: var(--faint); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; }

.nav-list { display: flex; align-items: center; gap: 30px; }
.nav-list a:not(.btn) {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.92rem; color: var(--muted); position: relative; padding: 6px 0;
}
.nav-list a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--lime); transform: scaleX(0); transform-origin: right; transition: transform 0.25s ease;
}
.nav-list a:not(.btn):hover { color: var(--text); }
.nav-list a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.btn-nav { padding: 10px 20px; font-size: 0.85rem; border-color: var(--lime); color: var(--lime); background: transparent; }
.btn-nav:hover { background: var(--lime); color: #10130A; transform: translateY(-1px); box-shadow: none; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(64px, 9vw, 120px) 0 40px; overflow: hidden; }

.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 480px at 82% 30%, rgba(169,244,38,0.09), transparent 65%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 78%);
}

.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 90px); align-items: center;
}

h1 { font-size: clamp(2.7rem, 6.4vw, 4.9rem); letter-spacing: 0.005em; margin-bottom: 0.35em; }
.lede { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 54ch; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 34px; }

.hero-points {
  display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: 0.92rem;
}
.hero-points li { position: relative; padding-left: 22px; }
.hero-points li::before { content: "◆"; position: absolute; left: 0; color: var(--lime); font-size: 0.7em; top: 5px; }

/* Logo panel — the logo PNG has a pure-black tile, so we match it exactly
   and let the artwork sit flush on the surface */
.hero-logo {
  position: relative; margin: 0; background: #000; border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(24px, 4vw, 56px);
}
.hero-logo img { width: 100%; height: auto; }

.corner { position: absolute; width: 26px; height: 26px; border: 3px solid var(--lime); }
.c-tl { top: -8px; left: -8px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.c-tr { top: -8px; right: -8px; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.c-bl { bottom: -8px; left: -8px; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.c-br { bottom: -8px; right: -8px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: clamp(56px, 7vw, 96px); padding-top: 34px; border-top: 1px solid var(--line);
}
.stat dd { order: -1; font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 700; color: var(--lime); line-height: 1; margin-bottom: 8px; }
.stat dt { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--bg-alt); overflow: hidden; padding: 14px 0; }
.ticker-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: ticker 26s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.95rem; color: var(--muted); white-space: nowrap; }
.ticker-track i { color: var(--lime); font-style: normal; font-size: 0.6rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

/* About / pillars */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.about p { color: var(--muted); max-width: 56ch; }

.pillars li { position: relative; padding: 22px 0 22px 74px; border-top: 1px solid var(--line); }
.pillars li:last-child { border-bottom: 1px solid var(--line); }
.pillar-num { position: absolute; left: 0; top: 26px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--lime); }
.pillars h3 { margin-bottom: 6px; font-size: 1.15rem; }
.pillars p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- Card grids (capabilities / industries) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px; overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--lime), transparent 70%);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); background: var(--panel-2); }
.card:hover::before { transform: scaleX(1); }

.card-index, .industry .card-index { font-family: var(--font-display); color: var(--faint); letter-spacing: 0.1em; font-size: 0.9rem; display: block; margin-bottom: 14px; }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p, .industry p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Process timeline ---------- */
.timeline { position: relative; max-width: 860px; counter-reset: step; }
.timeline::before { content: ""; position: absolute; left: 31px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--lime), var(--line) 70%); }

.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 28px; padding-bottom: 44px; position: relative; }
.timeline li:last-child { padding-bottom: 0; }

.step-num {
  width: 64px; height: 64px; display: grid; place-items: center;
  background: var(--bg); border: 2px solid var(--lime); border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--lime); z-index: 1;
}
.timeline h3 { margin-bottom: 8px; }
.timeline p { color: var(--muted); max-width: 62ch; margin: 0; }

/* ---------- Industries ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.industry {
  background: transparent; border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: 26px 24px; transition: border-color 0.25s ease, background 0.25s ease;
}
.industry:hover { border-style: solid; border-color: var(--lime); background: rgba(169,244,38,0.05); }

/* ---------- Quality ---------- */
.quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.quality p:last-child { color: var(--muted); max-width: 52ch; margin-bottom: 0; }

.check-list li {
  position: relative; padding: 16px 0 16px 44px; border-top: 1px solid var(--line); font-size: 0.98rem; color: var(--text);
}
.check-list li:last-child { border-bottom: 1px solid var(--line); }
.check-list li::before {
  content: "✓"; position: absolute; left: 4px; top: 14px; width: 26px; height: 26px;
  display: grid; place-items: center; border-radius: 50%; background: var(--lime-soft); color: var(--lime); font-weight: 700; font-size: 0.85rem;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 72px); align-items: start; }
.contact-grid > div:first-child p { color: var(--muted); max-width: 48ch; }

.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list svg { width: 20px; height: 20px; fill: var(--lime); flex-shrink: 0; margin-top: 3px; }
.contact-list strong { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; color: var(--text); }
.contact-list span:not(:only-child) { color: var(--muted); font-size: 0.95rem; }

.contact-form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 38px); }
.contact-form h3 { font-size: 1.4rem; margin-bottom: 20px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; margin-bottom: 16px; }
.contact-form span[role], .contact-form label > span, .field-full > span {
  display: block; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px;
}
.field-full { width: 100%; }

input, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 6px;
  color: var(--text); font-family: var(--font-body); font-size: 0.98rem; padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease; resize: vertical;
}
input:focus, textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(169,244,38,0.15); }
input::placeholder, textarea::placeholder { color: var(--faint); }

.form-note { min-height: 1.4em; margin: 14px 0 0; font-size: 0.9rem; }
.form-note.is-ok { color: var(--lime); }
.form-note.is-err { color: #FF8A6B; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 44px 0 28px; margin-top: 0; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid var(--line); }

.brand-footer .brand-logo { width: 48px; height: 48px; mix-blend-mode: screen; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; color: var(--muted); }
.footer-nav a:hover { color: var(--lime); }

.footer-contact { color: var(--muted); font-size: 0.92rem; margin: 0; line-height: 1.7; }

.footer-base { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; flex-wrap: wrap; }
.footer-base p { color: var(--faint); font-size: 0.85rem; margin: 0; }
.to-top { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.06em; }
.to-top:hover { color: var(--lime); }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .card-grid, .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: flex; }
  #site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    background: rgba(11,13,12,0.98); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
  }
  #site-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 4vw 22px; }
  .nav-list li { border-top: 1px solid var(--line); }
  .nav-list li:first-child { border-top: 0; }
  .nav-list a:not(.btn) { display: block; padding: 15px 4px; font-size: 1.05rem; }
  .nav-list a::after { display: none; }
  .btn-nav { margin-top: 12px; text-align: center; }

  .hero-grid, .about-grid, .quality-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-logo { max-width: 460px; margin-inline: auto; width: 100%; }
}

@media (max-width: 560px) {
  .card-grid, .industry-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 48px 1fr; gap: 18px; }
  .step-num { width: 48px; height: 48px; font-size: 1rem; }
  .timeline::before { left: 23px; }
  .brand-text small { display: none; }
}

/* ---------- Product Development Services (Capabilities) ---------- */
.pd { margin-top: clamp(64px, 8vw, 104px); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }
.pd .section-head { margin-bottom: 40px; }
.pd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pd-card { display: flex; flex-direction: column; background: var(--panel-2); }
.pd-top { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.pd-top h3 { margin: 0 0 4px; font-size: 1.35rem; }
.pd-top small { color: var(--muted); font-size: 0.88rem; }
.pd-icon {
  flex: none; width: 54px; height: 54px; display: grid; place-items: center;
  border: 1px solid var(--lime); border-radius: var(--radius);
  background: var(--lime-soft); color: var(--lime);
}
.pd-icon svg { width: 28px; height: 28px; }
.pd-list { margin: 0 0 26px; flex: 1; }
.pd-list li {
  position: relative; padding: 12px 0 12px 28px; border-top: 1px solid var(--line);
  font-size: 0.95rem; color: var(--text);
}
.pd-list li::before { content: "✓"; position: absolute; left: 0; top: 12px; color: var(--lime); font-weight: 700; }
.pd-tag {
  align-self: flex-start; display: inline-block; padding: 6px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--lime-soft);
  color: var(--lime); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}

.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0 0; }
.mini-stat { background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 22px 16px; text-align: center; display: flex; flex-direction: column; }
.mini-stat dd { order: -1; margin: 0 0 6px; font-family: var(--font-display); font-weight: 700; line-height: 1; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--lime); }
.mini-stat dt { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }

.jdd { margin-top: clamp(56px, 7vw, 88px); }
.jdd .section-head { margin-bottom: 32px; }
.jdd-banner {
  display: flex; align-items: center; gap: 20px; margin-bottom: 20px; padding: 24px 28px;
  background: var(--panel); border: 1px solid var(--line-strong); border-left: 3px solid var(--lime); border-radius: var(--radius);
}
.jdd-banner h3 { margin: 0 0 6px; font-size: 1.3rem; }
.jdd-banner p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.jdd-score { margin-left: auto; text-align: center; flex: none; }
.jdd-score strong { display: block; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--lime); }
.jdd-score small { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }

.jdd-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.jdd-card { padding: 0; display: flex; flex-direction: column; }
.jdd-card figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.jdd-card img { width: 100%; height: 100%; object-fit: cover; }
.jdd-body { padding: 20px 18px 22px; display: flex; flex-direction: column; flex: 1; }
.jdd-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.jdd-body p { margin-bottom: 18px; flex: 1; }

@media (max-width: 1100px) { .jdd-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .pd-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px)  {
  .jdd-grid { grid-template-columns: repeat(2, 1fr); }
  .jdd-banner { flex-direction: column; align-items: flex-start; }
  .jdd-score { margin-left: 0; text-align: left; }
}
@media (max-width: 480px)  {
  .jdd-grid { grid-template-columns: 1fr; }
  .mini-stats { gap: 10px; }
  .mini-stat { padding: 16px 8px; }
  .mini-stat dt { font-size: 0.68rem; }
}

/* Hero logo animation (replaces static logo image) */
.hero-logo { padding: 0; }
.hero-video { display: block; width: 100%; height: auto; aspect-ratio: 720 / 920; border-radius: var(--radius); background: #000; cursor: pointer; }
