/* ==========================================================================
   LT Smart Group
   The static landing page design, mapped onto core block markup.
   Colours and fonts come from theme.json (Appearance > Editor > Styles), so
   changing a palette colour there changes it everywhere below.
   Light theme only: every group logo is supplied dark-on-light.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Colour (edit in Styles > Colors > Palette) */
  --bg: var(--wp--preset--color--bg, #f5f6f2);
  --surface: var(--wp--preset--color--surface, #ffffff);
  --surface-2: var(--wp--preset--color--surface-2, #eceee8);
  --ink: var(--wp--preset--color--ink, #15201a);
  --ink-2: var(--wp--preset--color--ink-2, #39463f);
  --muted: var(--wp--preset--color--muted, #5a675f);
  --line: var(--wp--preset--color--line, #d9ddd5);
  --line-strong: var(--wp--preset--color--line-strong, #c3c9bf);
  --accent: var(--wp--preset--color--accent, #3b7a1c);
  --accent-strong: var(--wp--preset--color--accent-strong, #2e6314);
  --accent-soft: var(--wp--preset--color--accent-soft, #e6efdf);
  --deep: var(--wp--preset--color--deep, #13221a);
  --deep-2: var(--wp--preset--color--deep-2, #1c2f24);
  --on-deep: var(--wp--preset--color--on-deep, #eef2ec);
  --on-deep-muted: var(--wp--preset--color--on-deep-muted, #b7c2b9);

  /* Type (edit in Styles > Typography) */
  --font-display: var(--wp--preset--font-family--display, "Archivo", "Helvetica Neue", Arial, sans-serif);
  --font-body: var(--wp--preset--font-family--body, "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif);
  --font-mono: var(--wp--preset--font-family--mono, "IBM Plex Mono", ui-monospace, Menlo, monospace);
  --body-size: 1.0625rem;

  /* Layout */
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --chapter-h: 52px;
  --admin-bar: 0px;
  --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);

  /* Icons drawn with CSS (the rest are Icon blocks you can change in the editor) */
  --i-arrow-down: url(../icons/arrow-down.svg);
  --i-arrow-right: url(../icons/arrow-right.svg);
  --i-arrow-up: url(../icons/arrow-up.svg);
  --i-arrow-up-right: url(../icons/arrow-up-right.svg);
  --i-caret-down: url(../icons/caret-down.svg);
  --i-check: url(../icons/check.svg);
  --i-paper-plane-tilt: url(../icons/paper-plane-tilt.svg);
}
.admin-bar { --admin-bar: 32px; }
@media (max-width: 782px) { .admin-bar { --admin-bar: 46px; } }
@media (max-width: 600px) { .admin-bar { --admin-bar: 0px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--admin-bar) + 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: var(--body-size);
  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.screen-reader-text:focus { left: 16px; top: 12px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-size: 1rem; line-height: 1.6; }

/* WordPress structure: template part wrappers do not box the page, so sticky
   header and chapter bar stick for the whole page, as in a single document. */
.wp-site-blocks > .wp-block-template-part { display: contents; }
.wp-block-image { margin: 0; }

/* Icon blocks and theme SVG icons size with the text, like an icon font */
.wp-block-icon, .ltsmart-icon { display: block; width: 1em; height: 1em; flex: none; }
.ltsmart-icon { fill: currentColor; }

/* Shared helper for CSS-drawn icons: set --icon, size with font-size */
.css-icon, .index-row::after, .company-site a::after, .back-to-top a::after,
.wp-block-button[class*="icon-"] .wp-block-button__link::after, .select-wrap::after,
.tick-list li::before {
  content: ""; display: block; width: 1em; height: 1em; flex: none;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.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; }
.page-content p + p { margin-top: 1em; }
/* These lines were spans and list items in the original design, so no measure cap */
:is(.fact, .spec, .pw-stats, .case, .index-row, .group-flow, .product-grid, .pg-state, .project-list, .timeline,
  .pw-steps, .industry-grid, .sx-stats, .rail, .solution-list, .office-list, .contact-details, .direct-list) p { max-width: none; }
.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 (Button block: default = primary, styles Ghost and Light) ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn, .wp-block-button .wp-block-button__link {
  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; line-height: 1.6;
  text-decoration: none; white-space: nowrap; word-break: normal; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.btn:active, .wp-block-button .wp-block-button__link:active { transform: translateY(1px) scale(0.99); }
.wp-block-button .wp-block-button__link { background: var(--accent); color: #fff; }
.wp-block-button .wp-block-button__link:hover { background: var(--accent-strong); }
.wp-block-button.is-style-ghost .wp-block-button__link { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { border-color: var(--ink); background: transparent; }
.btn-light, .wp-block-button.is-style-light .wp-block-button__link { background: var(--on-deep); color: var(--deep); }
.btn-light:hover, .wp-block-button.is-style-light .wp-block-button__link:hover { background: #fff; }
.wp-block-button.btn-sm .wp-block-button__link { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
/* Add "icon-arrow-down" (or arrow-right, arrow-up-right, paper-plane-tilt) to a button's CSS classes */
.wp-block-button[class*="icon-"] .wp-block-button__link::after { font-size: 1.1em; }
.icon-arrow-down { --icon: var(--i-arrow-down); }
.icon-arrow-right { --icon: var(--i-arrow-right); }
.icon-arrow-up-right { --icon: var(--i-arrow-up-right); }
.icon-paper-plane-tilt { --icon: var(--i-paper-plane-tilt); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: var(--admin-bar); 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; }
nav.primary-nav { margin-left: auto; }
.primary-nav .wp-block-navigation__container { gap: 4px; flex-wrap: nowrap; }
.primary-nav .wp-block-navigation-item { color: var(--ink-2); }
.primary-nav .wp-block-navigation-item .wp-block-navigation-item__content {
  display: block; padding: 8px 14px; border-radius: var(--radius);
  font-size: 0.9375rem; font-weight: 500; text-decoration: none;
  transition: color .2s, background-color .2s;
}
.primary-nav .wp-block-navigation-item .wp-block-navigation-item__content:hover { color: var(--ink); background: var(--surface-2); }
.primary-nav .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-label { font-size: 0.9375rem; color: var(--muted); line-height: 1.45; }
mark.has-inline-color { background: none; }

/* ---------- 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 > * { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.group-flow .wp-block-icon { font-size: 1.5rem; color: var(--accent); margin-top: 2px; }
.group-flow strong { display: block; font-weight: 600; }
/* Description lines keep the body line height, as the inline text did */
.group-flow p + p { color: var(--muted); font-size: 0.9875rem; line-height: calc(var(--body-size) * 1.6); }

/* ---------- 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-row {
  position: relative;
  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);
  transition: background-color .25s var(--ease);
}
.index-row:hover { background: var(--bg); }
.index-row:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.index-row a:focus-visible { outline: none; }
/* The logo link covers the whole row */
.index-logo a::after { content: ""; position: absolute; inset: 0; }
.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-row::after { --icon: var(--i-arrow-right); font-size: 1.375rem; color: var(--ink); transition: transform .25s var(--ease); justify-self: end; }
.index-row:hover::after { transform: translateX(4px); color: var(--accent); }

/* ---------- Chapter nav ---------- */
.chapter-nav {
  position: sticky; top: calc(var(--admin-bar) + 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 .wp-block-navigation__container { display: flex; flex-wrap: nowrap; gap: 4px; height: var(--chapter-h); align-items: center; overflow-x: auto; scrollbar-width: none; }
.chapter-nav .wp-block-navigation__container::-webkit-scrollbar { display: none; }
.chapter-nav .wp-block-navigation-item { color: var(--muted); }
.chapter-nav .wp-block-navigation-item .wp-block-navigation-item__content {
  position: relative; display: block; white-space: nowrap;
  padding: 8px 14px; font-size: 0.9375rem; font-weight: 500; text-decoration: none;
  transition: color .2s;
}
.chapter-nav .wp-block-navigation-item__content::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 .wp-block-navigation-item .wp-block-navigation-item__content:hover,
.chapter-nav .wp-block-navigation-item .wp-block-navigation-item__content.is-active { color: var(--ink); }
.chapter-nav .wp-block-navigation-item__content.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 img { height: 44px; width: auto; max-width: 240px; object-fit: contain; object-position: left center; }
.company-site { display: flex; }
.company-site a { 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 a::after { --icon: var(--i-arrow-up-right); }
.company-site a: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; transition: opacity .45s var(--ease); }
.pg-img img { width: 100%; height: 100%; object-fit: cover; }
.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-state { padding: 18px 0; border-bottom: 1px solid var(--line); }
.pg-state-term { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.pg-state-term strong { font-weight: inherit; }
.pg-state-term .wp-block-icon { color: var(--accent); font-size: 1.25rem; }
.pg-state > p { 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 > * { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--ink); }
.product-grid .wp-block-icon { font-size: 1.625rem; color: var(--accent); margin-bottom: 4px; }
.product-grid strong { font-weight: 600; font-size: 1.0625rem; }
.product-grid p + p { 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: 12px 0 0; font-size: 0.875rem; color: var(--muted); }
.project-list > * { padding: 16px 0; border-bottom: 1px solid var(--line); }
.project-list > :first-child { border-top: 1px solid var(--line); }
.project-list strong { font-weight: 600; }
.project-list p + p { margin-top: 4px; color: var(--muted); font-size: 0.9375rem; }

.clients { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.clients-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: 20px; }
/* Client logos: one Image block per logo, replace or add in the editor */
.client-logos { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.client-logos > * { height: 96px; display: grid; place-items: center; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.client-logos img { width: auto; max-width: 100%; max-height: 36px; object-fit: contain; }

/* ---------- 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 img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.rn-img-b { position: absolute; right: 0; bottom: 0; width: 46%; }
.rn-img-b img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #fff; 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(--admin-bar) + 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 .acc-lead { 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); }
.accordion details > :not(summary) { margin-left: 42px; color: var(--ink-2); }
.accordion details > :last-child:not(summary) { padding-bottom: 22px; }

.rn-process { margin-top: 88px; }
.timeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: relative; }
.timeline > * { position: relative; padding: 28px 20px 0 0; display: flex; flex-direction: column; gap: 6px; }
.timeline > *::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line); }
.timeline > *::after { content: ""; position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline p:first-child { font-family: var(--font-display); font-stretch: 112%; font-weight: 600; font-size: 1.1875rem; }
.timeline strong { font-weight: inherit; }
.timeline p + p { 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 > .wp-block-icon { 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-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 12; padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; align-items: start; }
.bento-iot > :not(.bento-brands) { grid-column: 1; }
.bento-iot > .bento-brands { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin-top: 0; padding-top: 0; }
.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 { --icon: var(--i-check); position: absolute; left: 0; top: 0; color: var(--accent); font-size: 1.125rem; height: 1.5em; }

/* ---------- LT Smart Power ---------- */
.pw-dc-media { margin-top: 56px; }
.pw-dc-media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); }
.pw-chain { margin-top: 72px; }
.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 > * { padding: 28px 24px 28px 0; display: flex; flex-direction: column; gap: 8px; }
.pw-stats > * + * { 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 .wp-block-image { width: 100%; }
.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 { margin-top: 24px; font-size: 0.9375rem; overflow: visible; }
.spec-table table { width: 100%; }
.spec-table thead { border: 0; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 0; border: 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); }
.spec-table figcaption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.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 .spec-table { width: auto; margin: -8px 24px 26px; font-size: 0.875rem; }
.pw-feature-photo .pw-feature-media { padding: 0; }
.pw-feature-photo .pw-feature-media .wp-block-image { height: 100%; }
.pw-feature-photo .pw-feature-media img { height: 100%; object-fit: cover; }
.pw-feature-copy .tick-list { margin-bottom: 0; }
.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 > * { 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 > *:hover { background: var(--accent-soft); }
.industry-grid .wp-block-icon { font-size: 1.375rem; color: var(--accent); flex: none; }
.pw-also { margin-top: 20px; color: var(--ink-2); font-size: 0.9375rem; max-width: none; }
.pw-also mark { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; margin-right: 8px; }

.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 > * { padding: 32px 28px; display: flex; flex-direction: column; gap: 8px; }
.pw-steps > * + * { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.pw-steps p:first-child { font-family: var(--font-display); font-stretch: 112%; font-weight: 600; font-size: 1.1875rem; }
.pw-steps strong { font-weight: inherit; }
.pw-steps p + p { 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 > * { padding: 20px 0; border-bottom: 1px solid var(--line); }
.sx-stats p:first-child { 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 strong { font-weight: inherit; }
.sx-stats p + p { 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 .wp-block-icon { font-size: 1.75rem; color: var(--accent); margin-bottom: 16px; }
.sx-service p { color: var(--ink-2); font-size: 0.9875rem; }

.sx-devices { margin-top: 80px; }
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.rail-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 > * { 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 > *:hover .rail-media img { transform: scale(1.14); }
.rail p:nth-of-type(1) { padding: 18px 20px 0; }
.rail strong { font-weight: 600; }
.rail p:nth-of-type(2) { 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 > * { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.solution-list .wp-block-icon { font-size: 1.5rem; color: var(--accent); margin-top: 2px; }
.solution-list strong { display: block; font-weight: 600; }
.solution-list p + p { color: var(--muted); font-size: 0.9375rem; line-height: calc(var(--body-size) * 1.6); }

.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:not(.case-num) { color: var(--ink-2); font-size: 0.9375rem; }

/* ---------- 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 > * { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.office-list strong { font-weight: 600; }
.office-list p + p { color: var(--muted); font-size: 0.875rem; }
.certs { margin-top: 32px; display: flex; align-items: center; gap: 20px; }
.certs .wp-block-image { 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); }

/* ---------- Questions (the FAQ schema is built from these) ---------- */
.faq { background: var(--surface); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-intro { position: sticky; top: calc(var(--admin-bar) + var(--header-h) + var(--chapter-h) + 32px); }
.faq-intro .lead { margin-top: 20px; }
.faq-list summary { grid-template-columns: 1fr 24px; }
.accordion.faq-list details > :not(summary) { margin-left: 0; }

/* ---------- 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-term { 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 > * > p { 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 7. Edit the fields in Contact > LT Smart contact. */
.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 { display: block; 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 .wpcf7-form-control-wrap { display: block; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select-wrap select option { color: var(--ink); background: #fff; }
.select-wrap::after { --icon: var(--i-caret-down); 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 .wpcf7-not-valid-tip { margin-top: 8px; font-size: 0.875rem; color: #ffb4a6; }
.form-submit { position: relative; justify-self: start; display: flex; }
.form-submit .btn .ltsmart-icon { font-size: 1.1em; }
.form-submit .wpcf7-spinner { position: absolute; left: 100%; top: 12px; margin: 0 0 0 16px; }
.wpcf7 form.contact-form .wpcf7-response-output { margin: 0; padding: 0; border: 0; font-size: 0.9375rem; color: #b9e19f; }
.wpcf7 form.contact-form.invalid .wpcf7-response-output,
.wpcf7 form.contact-form.unaccepted .wpcf7-response-output,
.wpcf7 form.contact-form.failed .wpcf7-response-output,
.wpcf7 form.contact-form.aborted .wpcf7-response-output,
.wpcf7 form.contact-form.spam .wpcf7-response-output { color: #ffb4a6; }

.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 > * { display: flex; flex-direction: column; gap: 4px; font-size: 0.9375rem; }
.direct-list strong { color: #fff; font-weight: 600; }
.direct-list p:first-child { 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 { margin-bottom: 18px; }
.footer-logo img { width: 128px; }
.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; }
.footer-nav .wp-block-navigation__container { display: block; }
.footer-nav .wp-block-navigation-item { display: block; color: var(--ink-2); }
.footer-nav .wp-block-navigation-item + .wp-block-navigation-item { margin-top: 8px; }
.footer-nav .wp-block-navigation-item .wp-block-navigation-item__content { display: inline; text-decoration: none; }
.footer-nav .wp-block-navigation-item .wp-block-navigation-item__content: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); }
.back-to-top a::after { --icon: var(--i-arrow-up); }

/* ---------- Other pages ---------- */
.page-main .wp-block-post-title { margin-bottom: 32px; }
.page-content { max-width: 68ch; }
.page-content h2, .page-content h3 { font-family: var(--font-display); font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.15; margin: 1.6em 0 0.5em; }
.page-content a { color: var(--accent); }
.page-content ul, .page-content ol { list-style: revert; padding-left: 1.4em; margin: 1em 0; }
.post-list > li + li { margin-top: 32px; }

/* ---------- 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-row { 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-row::after { 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)); }
  .client-logos { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bento-glass { grid-column: span 12; }
  .bento-services { grid-column: span 6; grid-row: auto; }
  .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; }
  nav.primary-nav {
    position: fixed; inset: calc(var(--admin-bar) + 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;
  }
  nav.primary-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .primary-nav .wp-block-navigation__container { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav .wp-block-navigation-item .wp-block-navigation-item__content { width: 100%; padding: 16px 4px; font-size: 1.125rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .primary-nav .nav-cta-mobile { display: block; }
  .primary-nav .nav-cta-mobile .wp-block-navigation-item__content.wp-block-navigation-item__content { color: var(--accent); font-weight: 600; }
  .site-header .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, .faq-grid { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .rn-services > .h3 { position: static; }
  .rn-media { max-width: 640px; }
  .timeline { grid-auto-flow: row; grid-template-columns: 1fr; }
  .timeline > * { padding: 0 0 26px 32px; }
  .timeline > *::before { top: 6px; bottom: 0; left: 5px; right: auto; width: 2px; height: auto; }
  .timeline > *:last-child::before { display: none; }
  .timeline > *::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 > *:nth-child(3) { padding-left: 0; border-left: 0; }
  .pw-stats > *: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) {
  :root { --body-size: 1rem; }
  .hero-actions .wp-block-button { flex: 1 1 auto; }
  .hero-actions .wp-block-button__link { width: 100%; }
  .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-row { 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 img { 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; }
  .client-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .client-logos > * { height: 76px; padding: 14px; }
  .client-logos img { max-height: 28px; }
  .pw-dc-media img { aspect-ratio: 16 / 9; }

  .rn-media { padding-bottom: 30%; }
  .rn-img-b { width: 52%; }
  .rn-foot { grid-template-columns: 1fr; }
  .accordion details > :not(summary) { margin-left: 0; }

  .bento { grid-template-columns: 1fr; }
  .bento-cell, .bento-glass, .bento-services, .bento-renew, .bento-ev, .bento-iot { grid-column: 1 / -1; grid-row: auto; }
  .bento-iot { display: flex; }
  .bento-iot > .bento-brands { margin-top: auto; padding-top: 24px; }
  .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; }

  .pw-stats { grid-template-columns: 1fr 1fr; }
  .pw-stats > *, .pw-stats > * + * { padding: 20px 12px 20px 0; }
  .pw-stats > *:nth-child(even) { padding-left: 16px; }
  .pw-cards { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr 1fr; }
  .industry-grid > * { padding: 14px 12px; font-size: 0.9375rem; gap: 10px; }
  .pw-steps { grid-template-columns: 1fr; }
  .pw-steps > * + * { 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; }
  .form-submit { justify-self: stretch; }
  .form-submit .btn { width: 100%; }
  .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; }

@media (max-width: 640px) {
  .direct-list { grid-template-columns: 1fr; gap: 20px; }
  .direct-list a { overflow-wrap: normal; }
}
