/* =============================================================
   WENICS Sdn Bhd — Engineering Tomorrow's Intelligent Industries
   Corporate homepage · clean & professional · light/dark
   Brand: primary #d72628 (red) · secondary #e5c269 (gold)
   UI accents = solid color · gradients used ONLY for image placeholders
   ============================================================= */

:root {
  --red: #d72628;
  --red-strong: #b91d22;
  --red-bright: #ef3b3d;
  --gold: #e5c269;
  --gold-strong: #cda23f;

  --bg: #ffffff;
  --bg-subtle: #f5f6f8;
  --bg-deep: #eef0f4;
  --surface: #ffffff;
  --surface-2: #fbfbfc;
  --text: #14171d;
  --text-muted: #58616f;
  --text-faint: #8a93a3;
  --border: #e6e8ed;
  --border-strong: #d6dae1;

  --red-soft: rgba(215, 38, 40, 0.08);
  --red-line: rgba(215, 38, 40, 0.22);
  --gold-soft: rgba(229, 194, 105, 0.16);
  --gold-line: rgba(229, 194, 105, 0.45);

  --shadow-sm: 0 1px 2px rgba(16, 19, 26, 0.06), 0 1px 3px rgba(16, 19, 26, 0.05);
  --shadow-md: 0 6px 18px rgba(16, 19, 26, 0.08), 0 2px 6px rgba(16, 19, 26, 0.05);
  --shadow-lg: 0 22px 48px rgba(16, 19, 26, 0.12), 0 6px 16px rgba(16, 19, 26, 0.07);

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  --maxw: 1400px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(64px, 8vw, 120px);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;

  /* solid accent (UI) */
  --accent: var(--red);
  /* gradients reserved for IMAGE PLACEHOLDERS only */
  --grad-ph: linear-gradient(135deg, #d72628 0%, #e2562d 52%, #e5c269 120%);
  --grad-ph-alt: linear-gradient(135deg, #e5c269 0%, #e2562d 55%, #d72628 120%);
  --grad-ph-dark: linear-gradient(135deg, #7c1416 0%, #b3361f 55%, #cda23f 130%);
}

[data-theme="dark"] {
  --bg: #0b0d12;
  --bg-subtle: #10131a;
  --bg-deep: #070910;
  --surface: #141821;
  --surface-2: #181d28;
  --text: #eef1f7;
  --text-muted: #9aa4b4;
  --text-faint: #6c7686;
  --border: #232a36;
  --border-strong: #2d3543;

  --red: #ef3b3d;
  --red-strong: #d72628;
  --red-bright: #ff5557;

  --red-soft: rgba(239, 59, 61, 0.14);
  --red-line: rgba(239, 59, 61, 0.32);
  --gold-soft: rgba(229, 194, 105, 0.12);
  --gold-line: rgba(229, 194, 105, 0.34);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 26px 60px rgba(0, 0, 0, 0.6), 0 8px 18px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 1080px; }

.section { padding-block: var(--section-y); position: relative; }
.section--subtle { background: var(--bg-subtle); }
.section--tight { padding-block: clamp(40px, 5vw, 68px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.section-head { max-width: 760px; margin-bottom: clamp(34px, 5vw, 58px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

.section-title { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.section-sub { margin-top: 16px; color: var(--text-muted); font-size: 1.06rem; }

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

.lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.prose p { color: var(--text-muted); font-size: 1.03rem; }
.prose p + p { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease,
    border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; }

.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(215, 38, 40, 0.28); }
.btn--primary:hover { background: var(--red-strong); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(215, 38, 40, 0.36); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: #2a2207; box-shadow: 0 8px 20px rgba(229, 194, 105, 0.3); }
.btn--gold:hover { background: var(--gold-strong); transform: translateY(-2px); }
.btn--lg { padding: 16px 30px; font-size: 1.02rem; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--red); font-size: 0.96rem; }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* =============================================================
   IMAGE PLACEHOLDER (gradient stand-in for a real photo)
   ============================================================= */
.ph {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--grad-ph);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.ph--alt { background: var(--grad-ph-alt); }
.ph--dark { background: var(--grad-ph-dark); }

.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='48' height='84' viewBox='0 0 48 84' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.5' stroke-width='1'%3E%3Cpath d='M24 0L0 14v28l24 14 24-14V14z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 46px 80px;
  opacity: 0.16;
  z-index: -1;
}

.ph__in {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  text-align: center;
  padding: 26px;
}

.ph__in svg { width: 46px; height: 46px; opacity: 0.92; }
.ph__in .cap {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  max-width: 300px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.2);
}
.ph__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.32);
  padding: 5px 10px;
  border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}

.ph--portrait { aspect-ratio: 4 / 5; }
.ph--landscape { aspect-ratio: 16 / 10; }
.ph--wide { aspect-ratio: 21 / 9; }
.ph--square { aspect-ratio: 1 / 1; }
.ph--tall { aspect-ratio: 3 / 4; }

/* real related photo dropped into a placeholder (gradient stays as fallback) */
.media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}
.ph > .media-img { z-index: 1; }              /* covers the placeholder hint */
.media-bg {                                    /* wrapper for tiles that keep overlay text */
  position: absolute !important;
  inset: 0;
  z-index: 0 !important;
  overflow: hidden;
}
.media-bg .media-img { z-index: 0; }
.media-scrim { position: absolute; inset: 0; z-index: 1; background: rgba(8, 10, 14, 0.45); }

/* Google Map embed (Contact) */
.map-frame {
  position: relative;
  aspect-ratio: 16 / 7;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* floating mini stat card that overlaps placeholders */
.floatcard {
  position: absolute;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.floatcard__ic {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 11px;
  background: var(--red-soft); color: var(--red);
}
.floatcard__ic.gold { background: var(--gold-soft); color: var(--gold-strong); }
[data-theme="dark"] .floatcard__ic.gold { color: var(--gold); }
.floatcard__ic svg { width: 20px; height: 20px; }
.floatcard .t { font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
.floatcard .s { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }

/* =============================================================
   HEADER / NAV
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }

.nav { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__logo { height: 38px; width: auto; border-radius: 7px; }
[data-theme="dark"] .brand__logo { background: #fff; padding: 5px 8px; height: 44px; box-shadow: 0 0 0 1px var(--border); }

.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav__links a {
  padding: 9px 14px; border-radius: var(--r-sm);
  font-size: 0.95rem; font-weight: 500; color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav__links a:hover { color: var(--text); background: var(--bg-subtle); }

.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.theme-toggle {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: var(--r-pill); border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.nav__cta { display: inline-flex; }

.nav__burger {
  display: none; width: 44px; height: 44px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface); position: relative;
}
.nav__burger span, .nav__burger span::before, .nav__burger span::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 19px; height: 2px; background: var(--text); border-radius: 2px;
  transform: translate(-50%, -50%); transition: transform 0.28s ease, opacity 0.2s ease;
}
.nav__burger span::before { transform: translate(-50%, -8px); }
.nav__burger span::after { transform: translate(-50%, 8px); }
body.nav-open .nav__burger span { background: transparent; }
body.nav-open .nav__burger span::before { transform: translate(-50%, 0) rotate(45deg); }
body.nav-open .nav__burger span::after { transform: translate(-50%, 0) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 74px 0 0; z-index: 95; background: var(--bg);
  padding: 24px var(--gutter) 40px; transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
}
body.nav-open .mobile-nav { transform: translateX(0); }
.mobile-nav a { padding: 16px 8px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-nav .btn { margin-top: 22px; }

/* =============================================================
   HERO  (split: copy + large image placeholder w/ float cards)
   ============================================================= */
.hero { position: relative; overflow: hidden; padding-block: clamp(52px, 7vw, 96px); }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='56' height='100' viewBox='0 0 56 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23d72628' stroke-opacity='0.5' stroke-width='1'%3E%3Cpath d='M28 0L0 16v33l28 16 28-16V16z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 100px; opacity: 0.05;
  mask-image: radial-gradient(120% 90% at 80% 0%, #000 10%, transparent 70%);
}

.hero__grid {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: 1.02fr 0.98fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 8px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: 0.84rem; font-weight: 500; color: var(--text-muted); margin-bottom: 24px;
}
.hero__badge b {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: var(--r-pill);
  background: var(--red); color: #fff; font-size: 0.72rem; letter-spacing: 0.04em; font-weight: 700;
}

.hero__title { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.04; }
.hero__sub { margin-top: 22px; font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--text-muted); max-width: 560px; }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stats { margin-top: 42px; display: flex; flex-wrap: wrap; gap: clamp(18px, 4vw, 48px); }
.hero__stat .num { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; letter-spacing: -0.02em; }
.hero__stat .num span { color: var(--red); }
.hero__stat .lbl { font-size: 0.86rem; color: var(--text-muted); margin-top: 2px; }

.hero__media { position: relative; }
.hero__media .ph { aspect-ratio: 5 / 5.4; }
.hero__media .floatcard--a { top: 7%; left: -22px; animation: float 6s ease-in-out infinite; }
.hero__media .floatcard--b { top: 42%; right: -22px; animation: float 6s ease-in-out infinite 1.1s; }
.hero__media .floatcard--c { bottom: 8%; left: 8%; animation: float 6s ease-in-out infinite 0.55s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* =============================================================
   SPLIT (media + text) — reusable, alternating
   ============================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 5vw, 84px);
  align-items: center;
}
.split--rev .split__media { order: 2; }
.split--media-sm { grid-template-columns: 0.85fr 1.15fr; }
.split--media-lg { grid-template-columns: 1.15fr 0.85fr; }

.split__media { position: relative; }
.split__media .ph { aspect-ratio: 4 / 4.2; }

.stat-inline { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 26px; }
.stat-inline .v { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--red); line-height: 1; }
.stat-inline .k { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; max-width: 120px; }

/* checkmark list */
.checks { margin-top: 22px; display: grid; gap: 12px; }
.checks.cols-2 { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checks li { display: flex; align-items: flex-start; gap: 11px; font-size: 0.97rem; }
.checks .tick {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red-soft); color: var(--red); display: grid; place-items: center; margin-top: 1px;
}
.checks .tick.gold { background: var(--gold-soft); color: var(--gold-strong); }
[data-theme="dark"] .checks .tick.gold { color: var(--gold); }
.checks .tick svg { width: 13px; height: 13px; }
.checks b { font-weight: 600; }

/* =============================================================
   BENTO (Industries) — mixed-size mosaic, some image tiles
   ============================================================= */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 132px;
  grid-auto-flow: row dense;
  gap: 16px;
}

.btile {
  position: relative; border-radius: var(--r-lg);
  border: 1px solid var(--border); background: var(--surface);
  padding: 22px; display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; transition: transform 0.22s ease, box-shadow 0.28s ease, border-color 0.22s ease;
}
.btile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--red-line); }
.btile__ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red);
}
.btile__ic svg { width: 22px; height: 22px; }
.btile b { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }

/* image tile spanning 2 rows, gradient placeholder w/ label */
.btile--img {
  grid-row: span 2; border: none; padding: 0; background: var(--grad-ph);
  color: #fff; justify-content: flex-end;
}
.btile--img.alt { background: var(--grad-ph-alt); }
.btile--img.dark { background: var(--grad-ph-dark); }
.btile--img::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='44' height='76' viewBox='0 0 44 76' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.55' stroke-width='1'%3E%3Cpath d='M22 0L0 13v25l22 13 22-13V13z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 42px 74px; opacity: 0.16;
}
.btile--img > * { position: relative; z-index: 1; }
.btile--img .btile__cap { padding: 22px; }
.btile--img .btile__cap b { font-size: 1.15rem; }
.btile--img .btile__cap span { display: block; font-size: 0.78rem; opacity: 0.85; margin-top: 3px; }
.btile--img .btile__top { padding: 22px 22px 0; }
.btile--wide { grid-column: span 2; }

/* =============================================================
   TIMELINE (horizontal connected steps) — lifecycle & IoT
   ============================================================= */
.timeline { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 18px; counter-reset: tl; }
.tstep { position: relative; padding-top: 34px; }
.tstep::before {
  content: ""; position: absolute; top: 15px; left: 0; right: -18px; height: 2px;
  background: var(--red-line);
}
.tstep:last-child::before { display: none; }
.tstep__dot {
  counter-increment: tl; position: absolute; top: 0; left: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--red); color: var(--red);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 0.82rem;
}
.tstep__dot::after { content: counter(tl, decimal-leading-zero); }
.tstep h4 { font-size: 1.05rem; margin-bottom: 6px; }
.tstep p { color: var(--text-muted); font-size: 0.9rem; }

/* =============================================================
   TWO-PANEL (Vision / Mission)
   ============================================================= */
.twopanel { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 22px; }
.vpanel {
  position: relative; border-radius: var(--r-lg); padding: clamp(30px, 4vw, 48px);
  border: 1px solid var(--border); background: var(--surface); overflow: hidden;
  min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end;
}
.vpanel--img { background: var(--grad-ph); color: #fff; border: none; }
.vpanel--img::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='48' height='84' viewBox='0 0 48 84' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.55' stroke-width='1'%3E%3Cpath d='M24 0L0 14v28l24 14 24-14V14z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 46px 80px; opacity: 0.14;
}
.vpanel > * { position: relative; z-index: 1; }
.vpanel__ic {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--red-soft); color: var(--red);
}
.vpanel--img .vpanel__ic { background: rgba(255, 255, 255, 0.2); color: #fff; }
.vpanel__ic svg { width: 26px; height: 26px; }
.vpanel h3 { font-size: 1.5rem; margin-bottom: 12px; }
.vpanel p { font-size: 1.06rem; color: var(--text-muted); }
.vpanel--img p { color: rgba(255, 255, 255, 0.94); }

/* =============================================================
   EDITORIAL LIST (Core Values) — big numbered rows
   ============================================================= */
.vlist { border-top: 1px solid var(--border); }
.vrow {
  display: grid; grid-template-columns: 80px 1fr; gap: clamp(16px, 4vw, 56px);
  align-items: baseline; padding: clamp(22px, 3vw, 34px) 8px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease, padding-left 0.2s ease;
}
.vrow:hover { background: var(--bg-subtle); padding-left: 18px; }
.vrow__n { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; color: var(--red); line-height: 1; }
.vrow__main { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(12px, 3vw, 40px); align-items: baseline; }
.vrow__main h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.vrow__main p { color: var(--text-muted); font-size: 1.02rem; }

/* =============================================================
   REASONS (Why Choose) — feature list beside a media
   ============================================================= */
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.reason { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.reason:nth-last-child(-n + 2) { border-bottom: none; }
.reason__ic {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red);
}
.reason__ic svg { width: 23px; height: 23px; }
.reason h4 { font-size: 1.05rem; margin-bottom: 5px; }
.reason p { color: var(--text-muted); font-size: 0.92rem; }

/* =============================================================
   SERVICE GROUP heading
   ============================================================= */
.svc-group { margin-top: clamp(44px, 6vw, 76px); }
.svc-group:first-of-type { margin-top: 0; }
.svc-group__head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.svc-group__head .ic {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center;
  background: var(--red); color: #fff;
}
.svc-group__head .ic svg { width: 24px; height: 24px; }
.svc-group__head h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.svc-group__head p { color: var(--text-muted); font-size: 0.95rem; margin-top: 2px; }

/* media-topped feature cards (Automation) */
.mcards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mcard {
  border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface);
  overflow: hidden; transition: transform 0.22s ease, box-shadow 0.28s ease;
}
.mcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.mcard__media { aspect-ratio: 16 / 7; }
.mcard__body { padding: 28px; }
.mcard__body h4 { font-size: 1.25rem; margin-bottom: 8px; }
.mcard__body > p { color: var(--text-muted); font-size: 0.97rem; }

/* category columns (Software / AI / IoT) */
.catcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.catcol {
  border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface);
  overflow: hidden; display: flex; flex-direction: column;
}
.catcol__media { aspect-ratio: 16 / 7; }
.catcol__body { padding: 26px; }
.catcol__body h4 { font-size: 1.18rem; margin-bottom: 4px; }
.catcol__body > p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.catlist { display: grid; gap: 12px; }
.catlist li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; }
.catlist .d { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-top: 8px; }
.catlist li b { font-weight: 600; }
.catlist li span { display: block; color: var(--text-muted); font-size: 0.85rem; margin-top: 2px; }

/* name + description inside a check list */
.checks li > div b { display: block; font-weight: 600; }
.checks li > div span { display: block; color: var(--text-muted); font-size: 0.88rem; margin-top: 2px; }

/* definition list (Specialized) */
.deflist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 5vw, 72px); }
.defrow { display: grid; grid-template-columns: 30px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--border); }
.defrow .ix { font-family: var(--font-display); font-weight: 700; color: var(--red); font-size: 0.95rem; }
.defrow h4 { font-size: 1.08rem; margin-bottom: 5px; }
.defrow p { color: var(--text-muted); font-size: 0.94rem; }

/* chips (capabilities / panels / benefits) */
.subhead {
  font-family: var(--font-sans); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint);
  margin: 20px 0 12px;
}
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px;
  border-radius: var(--r-pill); background: var(--bg-subtle); border: 1px solid var(--border);
  font-size: 0.87rem; font-weight: 500;
}
.chip svg { width: 14px; height: 14px; color: var(--red); }

/* capability media-cards (2-col) */
.capgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.capcard {
  border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface);
  overflow: hidden; transition: transform 0.22s ease, box-shadow 0.28s ease;
}
.capcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.capcard__media { aspect-ratio: 16 / 6.5; }
.capcard__body { padding: 28px; }
.capcard__body h4 { font-size: 1.2rem; margin-bottom: 8px; }
.capcard__body > p { color: var(--text-muted); font-size: 0.95rem; }

/* =============================================================
   TECHNOLOGY PARTNERS
   ============================================================= */
.partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.partner {
  display: flex; align-items: center; gap: 10px; padding: 18px 28px;
  border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface);
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--text-muted);
  filter: grayscale(1); opacity: 0.78;
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.partner:hover { opacity: 1; filter: grayscale(0); color: var(--text); transform: translateY(-3px); }
.partner .dot { width: 12px; height: 12px; border-radius: 4px; background: var(--red); }

/* =============================================================
   CONTACT
   ============================================================= */
.contact__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.info-list { margin-top: 26px; display: grid; gap: 20px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item .ic {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red);
}
.info-item .ic svg { width: 22px; height: 22px; }
.info-item .k { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.info-item .v { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-top: 2px; }
.info-item a.v:hover { color: var(--red); }
.contact__map { margin-top: 26px; }
.contact__map .ph { aspect-ratio: 16 / 7; }

.form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-md);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 0.96rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  padding: 12px 14px; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }

.form__success {
  display: none; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 18px;
  border-radius: var(--r-md); background: var(--red-soft); color: var(--red); font-weight: 500; font-size: 0.95rem;
}
.form__success.show { display: flex; }
.form__success svg { width: 20px; height: 20px; flex-shrink: 0; }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding-top: clamp(48px, 6vw, 76px); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 46px; }
.footer__brand .brand { margin-bottom: 18px; }
.footer__tagline { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; max-width: 360px; margin-bottom: 10px; }
.footer__brand p { color: var(--text-muted); font-size: 0.95rem; max-width: 360px; }
.footer__col h4 { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 12px; }
.footer__col a { color: var(--text-muted); font-size: 0.95rem; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--red); }
.footer__social { display: flex; gap: 10px; margin-top: 22px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.footer__social a:hover { color: var(--red); border-color: var(--red); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bar { border-top: 1px solid var(--border); padding-block: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__bar p { color: var(--text-faint); font-size: 0.88rem; }
.powered {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-muted);
  padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.powered:hover { border-color: var(--gold); transform: translateY(-2px); }
.powered b { color: var(--text); font-weight: 600; }
.powered .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* =============================================================
   PREVIEW EXPIRED OVERLAY
   ============================================================= */
.expired { position: fixed; inset: 0; z-index: 1000; display: none; place-items: center; padding: 24px; background: var(--bg); }
.expired.show { display: grid; }
.expired__bg {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='56' height='100' viewBox='0 0 56 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23d72628' stroke-opacity='0.5' stroke-width='1'%3E%3Cpath d='M28 0L0 16v33l28 16 28-16V16z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 100px; opacity: 0.05;
}
.expired__card { position: relative; text-align: center; max-width: 480px; }
.expired__lock { width: 76px; height: 76px; margin: 0 auto 26px; border-radius: 22px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.expired__lock svg { width: 38px; height: 38px; }
.expired__card img { height: 40px; width: auto; margin: 0 auto 28px; border-radius: 7px; }
[data-theme="dark"] .expired__card img { background: #fff; padding: 6px 10px; height: 48px; }
.expired__card h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 14px; }
.expired__card p { color: var(--text-muted); margin-bottom: 30px; font-size: 1.04rem; }

/* =============================================================
   SCROLL REVEAL
   ============================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { width: 100%; max-width: 520px; margin-inline: auto; order: 0; margin-top: 6px; }
  .hero__media .floatcard { display: none; }
  .hero__media .ph { aspect-ratio: 16 / 10; }
  .split, .split--media-sm, .split--media-lg { grid-template-columns: 1fr; }
  .split--rev .split__media { order: -1; }
  .split__media { order: -1; max-width: 560px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
  .tstep::before { display: none; }
  .twopanel { grid-template-columns: 1fr; }
  .catcols { grid-template-columns: 1fr; }
  .deflist { grid-template-columns: 1fr; }
  .capgrid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .mcards { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 1fr; }
  .reason:nth-last-child(-n + 2) { border-bottom: 1px solid var(--border); }
  .reason:last-child { border-bottom: none; }
  .vrow { grid-template-columns: 56px 1fr; }
  .vrow__main { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; }
  .btile--img { grid-row: span 2; }
  .btile--wide { grid-column: span 2; }
  .timeline { grid-template-columns: 1fr; }
  .checks.cols-2 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bar { flex-direction: column-reverse; align-items: flex-start; }
  .svc-group__head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
