/* ==========================================================================
   LT Smart Group landing page
   Light theme only: every group logo is supplied dark-on-light, with no
   reversed versions, so the page keeps one light theme throughout.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Colour */
  --bg: #f5f6f2;
  --surface: #ffffff;
  --surface-2: #eceee8;
  --ink: #15201a;
  --ink-2: #39463f;
  --muted: #5a675f;
  --line: #d9ddd5;
  --line-strong: #c3c9bf;
  --accent: #3b7a1c;
  --accent-strong: #2e6314;
  --accent-soft: #e6efdf;
  --deep: #13221a;
  --deep-2: #1c2f24;
  --on-deep: #eef2ec;
  --on-deep-muted: #b7c2b9;

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* Layout */
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --chapter-h: 52px;
  --radius: 4px;
  --section-y: clamp(64px, 9vw, 120px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 1px 2px rgba(21, 32, 26, 0.06), 0 8px 24px -12px rgba(21, 32, 26, 0.18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--chapter-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }

/* ---------- Type ---------- */
.h2, .h3, .h4, .hero-title {
  font-family: var(--font-display);
  font-stretch: 112%;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.hero-title { font-size: clamp(2.75rem, 7vw, 5.5rem); font-weight: 700; line-height: 0.98; letter-spacing: -0.035em; }
.h2 { font-size: clamp(1.875rem, 3.6vw, 3rem); font-weight: 650; line-height: 1.06; max-width: 22ch; text-wrap: balance; }
.h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 600; line-height: 1.15; margin-bottom: 20px; }
.h4 { font-size: 1.1875rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 8px; }
.lead { font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
p { max-width: 68ch; }
p + p { margin-top: 1em; }
.small { font-size: 0.9375rem; line-height: 1.55; }
.muted { color: var(--muted); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn i { font-size: 1.1em; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--on-deep); color: var(--deep); }
.btn-light:hover { background: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(245, 246, 242, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand img { width: 128px; height: auto; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 4px; }
.primary-nav a {
  display: block; padding: 8px 14px; border-radius: var(--radius);
  font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: color .2s, background-color .2s;
}
.primary-nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero-copy { padding-bottom: clamp(8px, 3vw, 40px); }
.hero-sub { margin-top: 28px; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: var(--ink-2); max-width: 40ch; line-height: 1.5; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; max-height: min(640px, calc(100dvh - var(--header-h) - var(--chapter-h) - 120px)); width: 100%; justify-self: end; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Fact band ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: 28px 24px 28px 0; display: flex; flex-direction: column; gap: 6px; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact-num { font-family: var(--font-display); font-stretch: 112%; font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; }
.fact-num .amp { color: var(--accent); }
.fact-label { font-size: 0.9375rem; color: var(--muted); line-height: 1.45; }

/* ---------- Group ---------- */
.group-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-areas: "intro media" "flow media";
  gap: 48px clamp(32px, 6vw, 96px);
}
.group-intro { grid-area: intro; }
.group-intro .lead { margin-top: 28px; }
.group-intro p:not(.lead) { margin-top: 18px; color: var(--ink-2); }
.group-media { grid-area: media; border-radius: var(--radius); overflow: hidden; align-self: stretch; min-height: 420px; }
.group-media img { width: 100%; height: 100%; object-fit: cover; }
.group-flow { grid-area: flow; border-top: 1px solid var(--line); }
.group-flow li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.group-flow i { font-size: 1.5rem; color: var(--accent); margin-top: 2px; }
.group-flow strong { display: block; font-weight: 600; }
.group-flow span { color: var(--muted); font-size: 0.9875rem; }

/* ---------- Company index ---------- */
.index { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.index-list { margin-top: 40px; border-top: 1px solid var(--ink); }
.index-list a {
  display: grid;
  grid-template-columns: 220px minmax(160px, 0.7fr) minmax(0, 1.4fr) 32px;
  gap: 32px; align-items: center;
  padding: 28px 8px; border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color .25s var(--ease);
}
.index-list a:hover { background: var(--bg); }
.index-logo { display: flex; align-items: center; height: 44px; }
.index-logo img { max-height: 40px; width: auto; max-width: 190px; object-fit: contain; }
.index-field { font-family: var(--font-mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.index-desc { color: var(--ink-2); }
.index-arrow { font-size: 1.375rem; color: var(--ink); transition: transform .25s var(--ease); justify-self: end; }
.index-list a:hover .index-arrow { transform: translateX(4px); color: var(--accent); }

/* ---------- Chapter nav ---------- */
.chapter-nav {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(245, 246, 242, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.chapter-nav ul { display: flex; gap: 4px; height: var(--chapter-h); align-items: center; overflow-x: auto; scrollbar-width: none; }
.chapter-nav ul::-webkit-scrollbar { display: none; }
.chapter-nav a {
  position: relative; display: block; white-space: nowrap;
  padding: 8px 14px; font-size: 0.9375rem; font-weight: 500; color: var(--muted); text-decoration: none;
  transition: color .2s;
}
.chapter-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -9px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.chapter-nav a:hover { color: var(--ink); }
.chapter-nav a.is-active { color: var(--ink); }
.chapter-nav a.is-active::after { transform: scaleX(1); }

/* ---------- Company shared ---------- */
.company + .company { border-top: 1px solid var(--line); }
.company-head { max-width: 760px; }
.company-head-wide { max-width: 880px; }
.company-id { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.company-logo { height: 44px; width: auto; max-width: 240px; object-fit: contain; object-position: left center; }
.company-site { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.875rem; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.company-site:hover { color: var(--accent); border-color: var(--accent); }
.company-head .lead { margin-top: 24px; }
.company-head p:not(.lead) { margin-top: 16px; color: var(--ink-2); }

/* ---------- PRIVIGLAZE ---------- */
.pg-switch { margin-top: 56px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pg-stage { position: relative; aspect-ratio: 16 / 9; max-height: 640px; width: 100%; background: var(--surface-2); }
.pg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease); }
.pg-stage[data-state="clear"] .pg-frosted { opacity: 0; }
.pg-controls { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 24px; }
.pg-caption { color: var(--muted); font-size: 0.9375rem; }
.pg-toggle { display: inline-flex; align-items: center; gap: 14px; background: none; border: 0; padding: 6px 0; cursor: pointer; white-space: nowrap; }
.pg-toggle-track { position: relative; width: 52px; height: 30px; border-radius: 999px; background: var(--line-strong); transition: background-color .3s var(--ease); flex: none; }
.pg-toggle-knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(21,32,26,.25); transition: transform .3s var(--ease); }
.pg-toggle[aria-pressed="true"] .pg-toggle-track { background: var(--accent); }
.pg-toggle[aria-pressed="true"] .pg-toggle-knob { transform: translateX(22px); }
.pg-toggle-label { font-weight: 500; }

.pg-tech { margin-top: 72px; margin-bottom: 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.pg-tech-copy > p { color: var(--ink-2); }
.pg-states { margin-top: 28px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.pg-states > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.pg-states dt { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.pg-states dt i { color: var(--accent); font-size: 1.25rem; }
.pg-states dd { margin-top: 6px; color: var(--muted); padding-left: 30px; }

.spec-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec { background: var(--surface); padding: 32px 28px; display: flex; flex-direction: column; gap: 10px; min-height: 180px; justify-content: space-between; }
.spec-num { font-family: var(--font-display); font-stretch: 112%; font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.spec-label { color: var(--muted); font-size: 0.9375rem; line-height: 1.4; }
.spec:nth-child(1) { background: var(--accent-soft); }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; margin-bottom: 80px; }
.product-grid li { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--ink); }
.product-grid i { font-size: 1.625rem; color: var(--accent); margin-bottom: 4px; }
.product-grid strong { font-weight: 600; font-size: 1.0625rem; }
.product-grid span { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }

.pg-projects { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.pg-projects-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 20% center; border-radius: var(--radius); }
.pg-projects-media figcaption { margin-top: 12px; font-size: 0.875rem; color: var(--muted); }
.project-list > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.project-list > div:first-child { border-top: 1px solid var(--line); }
.project-list dt { font-weight: 600; }
.project-list dd { margin-top: 4px; color: var(--muted); font-size: 0.9375rem; }

.clients { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); max-width: none; font-family: var(--font-display); font-stretch: 108%; font-size: clamp(1.125rem, 1.8vw, 1.5rem); font-weight: 500; line-height: 1.45; color: var(--ink); letter-spacing: -0.01em; }
.clients span { color: var(--muted); }

/* ---------- RENUiTT ---------- */
.rn-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.rn-media { position: relative; padding-bottom: 18%; }
.rn-img-a { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.rn-img-b { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); border: 6px solid var(--bg); box-shadow: var(--shadow); }

.rn-services { margin-top: 88px; display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.rn-services > .h3 { position: sticky; top: calc(var(--header-h) + var(--chapter-h) + 32px); }
.accordion { border-top: 1px solid var(--ink); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 28px 1fr 24px; gap: 14px; align-items: center;
  padding: 20px 0; font-weight: 600; font-size: 1.0625rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary > i:first-child { font-size: 1.375rem; color: var(--accent); }
.accordion .acc-icon { justify-self: end; transition: transform .3s var(--ease); color: var(--muted); }
.accordion details[open] .acc-icon { transform: rotate(45deg); }
.accordion summary:hover { color: var(--accent-strong); }
.acc-body { padding: 0 0 22px 42px; color: var(--ink-2); }

.rn-process { margin-top: 88px; }
.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; position: relative; }
.timeline li { position: relative; padding: 28px 20px 0 0; display: flex; flex-direction: column; gap: 6px; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line); }
.timeline li::after { content: ""; position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline strong { font-family: var(--font-display); font-stretch: 112%; font-weight: 600; font-size: 1.1875rem; }
.timeline span { color: var(--muted); font-size: 0.9375rem; }

.rn-foot { margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.rn-foot .h4 { font-family: var(--font-mono); font-stretch: 100%; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 0.875rem; font-weight: 500; background: var(--surface); }
.chips-plain li { background: transparent; }

/* ---------- LTS Electrical bento ---------- */
.bento {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: 16px;
}
.bento-cell { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.bento-cell > i { font-size: 1.75rem; color: var(--accent); margin-bottom: 16px; }
.bento-cell p { color: var(--ink-2); font-size: 0.9875rem; }
.bento-text { padding: 24px 28px 28px; }

.bento-glass { grid-column: span 8; }
.bento-glass img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.bento-services { grid-column: span 4; padding: 28px; background: var(--accent-soft); border-color: transparent; }
.bento-light { grid-column: span 4; grid-row: span 2; min-height: 600px; border: 0; }
.bento-light img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento-text-over { position: relative; margin-top: auto; color: #fff; background: linear-gradient(to top, rgba(14, 20, 16, 0.86) 0%, rgba(14, 20, 16, 0.6) 65%, rgba(14, 20, 16, 0) 100%); padding-top: 72px; }
.bento-text-over .h4, .bento-text-over p { color: #fff; }
.bento-renew { grid-column: span 4; padding: 28px; }
.bento-ev { grid-column: span 8; background: #0f1311; border: 0; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; }
.bento-ev img { width: 100%; height: 100%; max-height: 300px; object-fit: contain; padding: 28px; }
.bento-ev .bento-text { padding: 28px 32px 28px 0; }
.bento-ev .h4, .bento-ev p { color: #f1f3ef; }
.bento-ev p { color: #c9d0ca; }
.bento-iot { grid-column: span 4; padding: 28px; }
.bento-services .h4 { margin-bottom: 4px; }
.tick-list { margin: 18px 0; display: grid; gap: 10px; }
.tick-list li { position: relative; padding-left: 28px; font-weight: 500; }
.tick-list li::before { content: "\e182"; font-family: "Phosphor"; position: absolute; left: 0; top: 0; color: var(--accent); font-size: 1.125rem; line-height: 1.5; }

/* ---------- LT Smart Power ---------- */
.pw-stats { margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.pw-stats > div { padding: 28px 24px 28px 0; display: flex; flex-direction: column; gap: 8px; }
.pw-stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.pw-num { font-family: var(--font-display); font-stretch: 112%; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1; }
.pw-label { color: var(--muted); font-size: 0.9375rem; }

.pw-products { margin-top: 72px; display: grid; gap: 16px; }
.pw-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pw-feature-media { background: #fff; display: flex; align-items: center; justify-content: center; padding: 32px; border-right: 1px solid var(--line); }
.pw-feature-media img { width: 100%; height: auto; object-fit: contain; }
.pw-feature-copy { padding: clamp(28px, 4vw, 48px); }
.pw-feature-copy > p { color: var(--ink-2); }
.spec-table { width: 100%; margin-top: 24px; font-size: 0.9375rem; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 0; }
.spec-table thead th { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); }
.spec-table tbody th { font-weight: 600; }
.spec-table td { font-family: var(--font-mono); font-size: 0.875rem; text-align: right; }
.spec-table tbody tr + tr th, .spec-table tbody tr + tr td { border-top: 1px solid var(--line); }

.pw-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pw-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.pw-card-media { background: #fff; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); overflow: hidden; }
.pw-card-media img { width: 100%; height: 100%; object-fit: contain; }
.pw-card:last-child .pw-card-media img { object-fit: cover; }
.pw-card .h4 { padding: 22px 24px 0; }
.pw-card p { padding: 0 24px 26px; color: var(--ink-2); font-size: 0.9875rem; }

.pw-industries { margin-top: 80px; }
.industry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.industry-grid li { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 500; background: var(--surface); transition: background-color .2s; }
.industry-grid li:hover { background: var(--accent-soft); }
.industry-grid i { font-size: 1.375rem; color: var(--accent); flex: none; }

.pw-steps { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; background: var(--deep); color: var(--on-deep); border-radius: var(--radius); overflow: hidden; }
.pw-steps li { padding: 32px 28px; display: flex; flex-direction: column; gap: 8px; }
.pw-steps li + li { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.pw-steps strong { font-family: var(--font-display); font-stretch: 112%; font-weight: 600; font-size: 1.1875rem; }
.pw-steps span { color: var(--on-deep-muted); font-size: 0.9375rem; }

/* ---------- SmartLinkX ---------- */
.sx-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.sx-stats { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.sx-stats > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.sx-stats dt { font-family: var(--font-display); font-stretch: 112%; font-size: clamp(1.875rem, 3vw, 2.5rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1; }
.sx-stats dd { color: var(--muted); font-size: 0.9375rem; margin-top: 6px; }

.sx-services { margin-top: 72px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sx-service { background: var(--surface); padding: clamp(24px, 3vw, 36px); }
.sx-service i { font-size: 1.75rem; color: var(--accent); display: block; margin-bottom: 16px; }
.sx-service p { color: var(--ink-2); font-size: 0.9875rem; }

.sx-devices { margin-top: 80px; }
.sx-devices-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sx-devices-head .h3 { margin-bottom: 0; }
.rail-buttons { display: flex; gap: 8px; }
.rail-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-size: 1.125rem; transition: border-color .2s, background-color .2s; }
.rail-btn:hover { border-color: var(--ink); }
.rail-btn:disabled { opacity: .4; cursor: default; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 48px) / 4));
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.rail li { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.rail-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.rail-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform .5s var(--ease); }
.rail li:hover .rail-media img { transform: scale(1.14); }
.rail strong { display: block; padding: 18px 20px 0; font-weight: 600; }
.rail li > span:last-child { display: block; padding: 4px 20px 22px; color: var(--muted); font-size: 0.9375rem; }

.sx-solutions { margin-top: 80px; }
.solution-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--ink); }
.solution-list li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.solution-list i { font-size: 1.5rem; color: var(--accent); margin-top: 2px; }
.solution-list strong { display: block; font-weight: 600; }
.solution-list span { color: var(--muted); font-size: 0.9375rem; }

.sx-cases { margin-top: 80px; }
.case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.case { padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.case:first-child { background: var(--accent-soft); border-color: transparent; }
.case-num { font-family: var(--font-display); font-stretch: 112%; font-size: clamp(2.5rem, 4.4vw, 3.75rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1; }
.case p { color: var(--ink-2); font-size: 0.9375rem; }

/* ---------- Sectors ---------- */
.sectors { background: var(--surface); border-top: 1px solid var(--line); }
.sectors .lead { margin-top: 20px; }
.matrix-wrap { margin-top: 48px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.matrix { width: 100%; min-width: 760px; font-size: 0.9375rem; }
.matrix th, .matrix td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.matrix thead th { font-family: var(--font-display); font-stretch: 108%; font-weight: 600; font-size: 0.9375rem; background: var(--bg); border-bottom: 1px solid var(--ink); white-space: nowrap; }
.matrix th[scope="row"], .matrix thead th:first-child { text-align: left; font-weight: 600; }
.matrix tbody tr:last-child th, .matrix tbody tr:last-child td { border-bottom: 0; }
.matrix tbody tr:hover { background: var(--bg); }
.matrix td.y { font-size: 0; }
.matrix td.y::before { content: "\e182"; font-family: "Phosphor"; font-size: 1.25rem; color: var(--accent); }

/* ---------- Presence ---------- */
.presence-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.presence-copy .lead { margin-top: 24px; }
.office-list { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.office-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.office-list strong { font-weight: 600; }
.office-list span { color: var(--muted); font-size: 0.875rem; }
.certs { margin-top: 32px; display: flex; align-items: center; gap: 20px; }
.certs img { width: 140px; flex: none; }
.certs p { color: var(--muted); }
.presence-map { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(12px, 3vw, 32px); }

/* ---------- Contact ---------- */
.contact { background: var(--deep); color: var(--on-deep); padding: var(--section-y) 0 calc(var(--section-y) * 0.75); }
.contact .h2, .contact .h4 { color: #fff; }
.contact .lead { color: var(--on-deep-muted); margin-top: 24px; }
.contact a { color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-details { margin-top: 40px; display: grid; gap: 24px; }
.contact-details dt { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-deep-muted); }
.contact-details dd { margin-top: 6px; font-size: 1.0625rem; line-height: 1.55; }
.contact-details a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.contact-details a:hover { border-color: #fff; }

.contact-form { background: var(--deep-2); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.9375rem; font-weight: 500; color: #fff; }
.optional { color: var(--on-deep-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  padding: 12px 14px; min-height: 48px;
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.5); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #9fd27f; background: rgba(255, 255, 255, 0.09); box-shadow: 0 0 0 3px rgba(159, 210, 127, 0.25); }
.field [aria-invalid="true"] { border-color: #ff9b8a; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select-wrap select option { color: var(--ink); background: #fff; }
.select-wrap i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--on-deep-muted); }
.field-help { font-size: 0.875rem; color: var(--on-deep-muted); }
.field-error { font-size: 0.875rem; color: #ffb4a6; }
.contact-form .btn { justify-self: start; }
.form-status { font-size: 0.9375rem; color: #b9e19f; min-height: 1.5em; }
.form-status:empty { display: none; }

.direct { margin-top: 72px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.direct .h4 { font-family: var(--font-mono); font-stretch: 100%; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-deep-muted); margin-bottom: 20px; }
.direct-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.direct-list li { display: flex; flex-direction: column; gap: 4px; font-size: 0.9375rem; }
.direct-list strong { color: #fff; font-weight: 600; margin-bottom: 4px; }
.direct-list a { color: var(--on-deep-muted); text-decoration: none; overflow-wrap: anywhere; }
.direct-list a:hover { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); padding: 64px 0 32px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 128px; margin-bottom: 18px; }
.site-footer .small { color: var(--muted); max-width: 40ch; }
.footer-title { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer nav li + li { margin-top: 8px; }
.site-footer nav a { text-decoration: none; color: var(--ink-2); }
.site-footer nav a:hover { color: var(--accent); }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.875rem; color: var(--muted); }
.footer-base a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.footer-base a:hover { color: var(--accent); }

/* ---------- Reveal motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .hero-copy > * { animation: rise .8s var(--ease) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .06s; }
  .hero-copy > *:nth-child(3) { animation-delay: .12s; }
  .hero-copy > *:nth-child(4) { animation-delay: .18s; }
  .hero-media { animation: fade 1.1s var(--ease) both .1s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet landscape / small laptop */
@media (max-width: 1100px) {
  .index-list a { grid-template-columns: 180px minmax(0, 1fr) 28px; grid-template-areas: "logo field arrow" "logo desc arrow"; gap: 6px 28px; }
  .index-logo { grid-area: logo; }
  .index-field { grid-area: field; }
  .index-desc { grid-area: desc; }
  .index-arrow { grid-area: arrow; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail { grid-auto-columns: minmax(250px, calc((100% - 32px) / 3)); }
  .direct-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento-glass { grid-column: span 12; }
  .bento-services { grid-column: span 6; grid-row: auto; }
  .bento-light { grid-column: span 6; grid-row: span 2; }
  .bento-renew { grid-column: span 6; }
  .bento-ev { grid-column: span 12; }
  .bento-iot { grid-column: span 12; }
}

/* Tablet portrait */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .primary-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a { padding: 16px 4px; font-size: 1.125rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-cta-mobile { display: block; }
  .nav-cta-mobile a { color: var(--accent); font-weight: 600; }
  .header-cta { display: none; }
  .nav-toggle {
    display: grid; place-content: center; gap: 6px; margin-left: auto;
    width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer;
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform .25s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-media { aspect-ratio: 16 / 10; max-height: none; justify-self: stretch; }
  .hero-media img { object-position: center 30%; }

  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }

  .group-grid { grid-template-columns: 1fr; grid-template-areas: "intro" "media" "flow"; }
  .group-media { min-height: 0; aspect-ratio: 16 / 9; }

  .pg-tech, .pg-projects, .rn-top, .rn-services, .sx-top, .presence-grid, .contact-grid { grid-template-columns: 1fr; }
  .rn-services > .h3 { position: static; }
  .rn-media { max-width: 640px; }
  .timeline { grid-template-columns: 1fr; }
  .timeline li { padding: 0 0 26px 32px; }
  .timeline li::before { top: 6px; bottom: 0; left: 5px; right: auto; width: 2px; height: auto; }
  .timeline li:last-child::before { display: none; }
  .timeline li::after { top: 4px; left: 0; }
  .rn-foot { grid-template-columns: 1fr 1fr; }
  .rn-foot > div:first-child { grid-column: 1 / -1; }

  .pw-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pw-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .pw-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pw-feature { grid-template-columns: 1fr; }
  .pw-feature-media { border-right: 0; border-bottom: 1px solid var(--line); }
  .pw-cards { grid-template-columns: 1fr 1fr; }
  .pw-cards .pw-card:last-child { grid-column: 1 / -1; }
  .industry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .sx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
  .solution-list { grid-template-columns: 1fr 1fr; }
  .case-grid { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-media { aspect-ratio: 4 / 3; }

  .facts-grid { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 20px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }

  .index-list a { grid-template-columns: 1fr 28px; grid-template-areas: "logo arrow" "field field" "desc desc"; gap: 10px; padding: 24px 0; }
  .index-logo { height: 36px; }
  .index-logo img { max-height: 32px; max-width: 170px; }

  .company-id { flex-wrap: wrap; gap: 14px; }
  .company-logo { height: 36px; max-width: 200px; }

  .pg-controls { flex-direction: column; align-items: flex-start; padding: 16px 18px; gap: 12px; }
  .pg-stage { aspect-ratio: 4 / 3; }
  .spec { padding: 22px 18px; min-height: 140px; }
  .product-grid { grid-template-columns: 1fr; gap: 28px; }

  .rn-media { padding-bottom: 30%; }
  .rn-img-b { width: 52%; }
  .rn-foot { grid-template-columns: 1fr; }
  .acc-body { padding-left: 0; }

  .bento { grid-template-columns: 1fr; }
  .bento-cell, .bento-glass, .bento-services, .bento-light, .bento-renew, .bento-ev, .bento-iot { grid-column: 1 / -1; grid-row: auto; }
  .bento-glass img { aspect-ratio: 16 / 9; }
  .bento-ev { grid-template-columns: 1fr; }
  .bento-ev img { max-height: 240px; padding: 24px 24px 0; }
  .bento-ev .bento-text { padding: 20px 24px 28px; }
  .bento-light { min-height: 440px; }

  .pw-stats { grid-template-columns: 1fr 1fr; }
  .pw-stats > div, .pw-stats > div + div { padding: 20px 12px 20px 0; }
  .pw-stats > div:nth-child(even) { padding-left: 16px; }
  .pw-cards { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr 1fr; }
  .industry-grid li { padding: 14px 12px; font-size: 0.9375rem; gap: 10px; }
  .pw-steps { grid-template-columns: 1fr; }
  .pw-steps li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }

  .sx-stats { grid-template-columns: 1fr 1fr 1fr; gap: 0 12px; }
  .sx-services { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: 78%; }
  .solution-list { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }

  .office-list { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .certs { flex-direction: column; align-items: flex-start; }

  .field-row { grid-template-columns: 1fr; }
  .contact-form .btn { justify-self: stretch; }
  .direct-list { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* LTS Electrical: brands stocked, pinned to the foot of the smart home cell */
.bento-brands { margin-top: auto; padding-top: 24px; }
.bento-brands-title { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.bento-brands .chips li { font-size: 0.8125rem; padding: 4px 10px; }

/* Sector matrix: keep the sector names in view while the table scrolls sideways */
@media (max-width: 900px) {
  .matrix th[scope="row"], .matrix thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); min-width: 170px; }
  .matrix thead th:first-child { background: var(--bg); }
}
@media (max-width: 640px) {
  .direct-list { grid-template-columns: 1fr; gap: 20px; }
  .direct-list a { overflow-wrap: normal; }
}
