/* ============================================================
   SmartX City website on the MetraQ design system.
   Tokens, tones, cards, hero, banners and figure cards follow MetraQ (webapp/src/styles.css):
   Outfit display type, Inter UI type, the SmartX City colours as tones (turq = blue, sun = yellow,
   clay = red, sage = green, sky = ink), cards with a tone accent along the top, light and dark themes.
   Motion: opacity and transform only, none under prefers-reduced-motion.
   ============================================================ */
:root {
  color-scheme: light;
  --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-ui: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --bg: #f3f4f1;
  --bg-sidebar: #fbfbf9;
  --surface: #ffffff;
  --surface-2: #f5f6f3;
  --hover: #f0f2ee;
  --border: #e4e6e1;
  --border-strong: #d0d3cc;
  --text-primary: #121413;
  --text-secondary: #464a47;
  --text-muted: #6c716d;
  --brand: #2c6fe0;
  --brand-ink: #ffffff;
  --brand-wash: rgba(61, 127, 235, 0.1);

  --turq: #2c6fe0; --sun: #e6a400; --clay: #e43f2c; --sage: #1b8a42; --sky: #23272d;
  --turq-wash: rgba(61, 127, 235, 0.1); --sun-wash: rgba(237, 179, 12, 0.16); --clay-wash: rgba(228, 63, 44, 0.1);
  --sage-wash: rgba(44, 162, 78, 0.11); --sky-wash: rgba(35, 39, 45, 0.07);
  --series-1: #3d7feb; --series-2: #e43f2c; --series-3: #e6a400; --series-4: #1b8a42;

  --sc-sky-a: #eef7f5; --sc-sky-b: #ffffff; --sc-bldg: #e3e7e3; --sc-bldg-2: #d5dbd6; --sc-win: #f7f9f7;
  --sc-concrete: #c9ccc6; --sc-concrete-2: #a9ada6; --sc-deck: #8f948c; --sc-train: #ffffff; --sc-train-edge: #c3c8c2;
  --sc-glass: #2c3a38; --sc-ground: #4a4d48; --sc-lane: #f6f5ef; --sc-tree: #7da35f; --sc-tree-2: #5f7f46;
  --sc-cloud: #ffffff; --sc-ink: #121413;
  --hero-grid: rgba(17, 20, 19, 0.035); --hero-aurora: 0.22;

  --shadow-sm: 0 1px 2px rgba(17, 20, 19, 0.05);
  --shadow-card: 0 1px 2px rgba(17, 20, 19, 0.04), 0 8px 24px -14px rgba(17, 20, 19, 0.18);
  --shadow-md: 0 10px 28px -12px rgba(17, 20, 19, 0.25);
  --radius: 16px;
  --radius-lg: 22px;
  --wrap: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0e0d; --bg-sidebar: #121312; --surface: #191a19; --surface-2: #212321; --hover: #242624;
    --border: #2b2d2b; --border-strong: #3a3d3a;
    --text-primary: #f1f1ec; --text-secondary: #c6c7bd; --text-muted: #9b9d96;
    --brand: #5b93f0; --brand-ink: #0b0b0b; --brand-wash: rgba(91, 147, 240, 0.16);
    --turq: #5b93f0; --sun: #f0be2e; --clay: #ef6352; --sage: #3cba62; --sky: #d5d9df;
    --turq-wash: rgba(91, 147, 240, 0.15); --sun-wash: rgba(240, 190, 46, 0.14); --clay-wash: rgba(239, 99, 82, 0.13);
    --sage-wash: rgba(60, 186, 98, 0.13); --sky-wash: rgba(213, 217, 223, 0.08);
    --series-1: #4a8af0; --series-2: #ee5566; --series-3: #c08a00; --series-4: #178a4c;
    --sc-sky-a: #101c1b; --sc-sky-b: #151716; --sc-bldg: #232624; --sc-bldg-2: #2b2f2c; --sc-win: #f5d27a;
    --sc-concrete: #3b3e3a; --sc-concrete-2: #4b4f4a; --sc-deck: #5d625b; --sc-train: #e9ece8; --sc-train-edge: #9aa19a;
    --sc-glass: #12201e; --sc-ground: #1d1f1d; --sc-lane: #a8a8a4; --sc-tree: #4e6f3c; --sc-tree-2: #3d5a2f;
    --sc-cloud: #2a2d2b; --sc-ink: #f1f1ec;
    --hero-grid: rgba(247, 246, 241, 0.045); --hero-aurora: 0.5;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4); --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 26px -14px rgba(0, 0, 0, 0.8);
    --shadow-md: 0 12px 30px -12px rgba(0, 0, 0, 0.8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0e0d; --bg-sidebar: #121312; --surface: #191a19; --surface-2: #212321; --hover: #242624;
  --border: #2b2d2b; --border-strong: #3a3d3a;
  --text-primary: #f1f1ec; --text-secondary: #c6c7bd; --text-muted: #9b9d96;
  --brand: #5b93f0; --brand-ink: #0b0b0b; --brand-wash: rgba(91, 147, 240, 0.16);
  --turq: #5b93f0; --sun: #f0be2e; --clay: #ef6352; --sage: #3cba62; --sky: #d5d9df;
  --turq-wash: rgba(91, 147, 240, 0.15); --sun-wash: rgba(240, 190, 46, 0.14); --clay-wash: rgba(239, 99, 82, 0.13);
  --sage-wash: rgba(60, 186, 98, 0.13); --sky-wash: rgba(213, 217, 223, 0.08);
  --series-1: #4a8af0; --series-2: #ee5566; --series-3: #c08a00; --series-4: #178a4c;
  --sc-sky-a: #101c1b; --sc-sky-b: #151716; --sc-bldg: #232624; --sc-bldg-2: #2b2f2c; --sc-win: #f5d27a;
  --sc-concrete: #3b3e3a; --sc-concrete-2: #4b4f4a; --sc-deck: #5d625b; --sc-train: #e9ece8; --sc-train-edge: #9aa19a;
  --sc-glass: #12201e; --sc-ground: #1d1f1d; --sc-lane: #a8a8a4; --sc-tree: #4e6f3c; --sc-tree-2: #3d5a2f;
  --sc-cloud: #2a2d2b; --sc-ink: #f1f1ec;
  --hero-grid: rgba(247, 246, 241, 0.045); --hero-aurora: 0.5;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4); --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 26px -14px rgba(0, 0, 0, 0.8);
  --shadow-md: 0 12px 30px -12px rgba(0, 0, 0, 0.8);
}

/* tones: any element with .t-<tone> exposes --tone and --tone-wash */
.t-turq { --tone: var(--turq); --tone-wash: var(--turq-wash); }
.t-sun { --tone: var(--sun); --tone-wash: var(--sun-wash); }
.t-sky { --tone: var(--sky); --tone-wash: var(--sky-wash); }
.t-sage { --tone: var(--sage); --tone-wash: var(--sage-wash); }
.t-clay { --tone: var(--clay); --tone-wash: var(--clay-wash); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text-primary);
  font: 15px/1.55 var(--font-ui); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--turq); outline-offset: 2px; border-radius: 6px; }

@keyframes mq-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes mq-ping { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes mq-drift-a { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8%, 12%) scale(1.15); } }
@keyframes mq-drift-b { 0%, 100% { transform: translate(0, 0) scale(1.1); } 50% { transform: translate(-10%, -6%) scale(0.95); } }
@keyframes mq-grid-pan { to { background-position: 40px 40px, 40px 40px; } }
@keyframes mq-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* reveal on scroll (main.js adds .in); without JS everything stays visible */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---- header ------------------------------------------------------------------------------------------------- */
.strip { border-bottom: 1px solid var(--border); background: var(--bg-sidebar); font-size: 12.5px; color: var(--text-muted); }
.strip .wrap { display: flex; align-items: center; gap: 18px; min-height: 38px; flex-wrap: wrap; }
.strip a, .strip span { display: inline-flex; align-items: center; gap: 7px; }
.strip a:hover { color: var(--text-primary); }
.strip .i { width: 15px; height: 15px; color: var(--turq); }
.strip .push { margin-left: auto; }

.head {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); box-shadow: 0 10px 18px -16px rgba(0, 0, 0, 0.35);
}
.head .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo-chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 12px; background: #ffffff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); flex: none; }
.logo-chip img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.nav a { padding: 7px 11px; border-radius: 10px; font-weight: 500; font-size: 14px; color: var(--text-secondary); transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.nav a:hover { background: var(--hover); color: var(--text-primary); }
.nav a[aria-current="true"] { background: var(--surface); color: var(--text-primary); box-shadow: var(--shadow-sm); font-weight: 600; }
.head-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 11px; padding: 2px; background: var(--surface-2); }
.seg button { border: 0; background: transparent; padding: 5px 10px; border-radius: 9px; cursor: pointer; color: var(--text-secondary); font-size: 12.5px; transition: background 0.2s var(--ease); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text-primary); font-weight: 600; box-shadow: var(--shadow-sm); }
.head .menu-btn { display: none; }

/* ---- buttons, pills, chips ---------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border-strong); background: var(--surface);
  border-radius: 12px; padding: 10px 18px; font-weight: 600; font-size: 14px; cursor: pointer; transition: all 0.2s var(--ease); white-space: nowrap;
}
.btn:hover { border-color: var(--turq); color: var(--turq); }
.btn.on { background: var(--turq); border-color: var(--turq); color: var(--brand-ink); }
.btn.on:hover { filter: brightness(1.08); color: var(--brand-ink); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn.sm { padding: 7px 13px; font-size: 13px; border-radius: 11px; }
.btn .i { width: 17px; height: 17px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--turq); background: var(--turq-wash); border: 1px solid color-mix(in srgb, var(--turq) 40%, transparent);
}
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--turq); animation: mq-blink 1.6s ease-in-out infinite; }
.kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tone, var(--turq)); }
.kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--tone, var(--turq)); box-shadow: 0 0 0 3px var(--tone-wash, var(--turq-wash)); }
.chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; background: var(--surface); font-size: 12.5px; color: var(--text-secondary); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tone-wash); color: var(--tone); flex: none; transition: transform 0.25s var(--ease); }
.tile .i { width: 22px; height: 22px; }

/* ---- sections ----------------------------------------------------------------------------------------------- */
main { display: grid; gap: 22px; padding: 22px 0 40px; }
.sec { padding-top: 34px; }
.sec-head { display: grid; gap: 8px; max-width: 720px; margin-bottom: 22px; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; }
.sec-head p { color: var(--text-secondary); font-size: 16px; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }

.grid { display: grid; gap: 16px; }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-2e { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 20px 20px 22px; min-width: 0; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card.accent::before {
  content: ''; position: absolute; left: 14%; right: 14%; top: -1px; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent, var(--tone, var(--turq)) 20%, var(--tone, var(--turq)) 80%, transparent);
}
.card.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card.lift:hover .tile { transform: scale(1.08) rotate(-4deg); }
.card h3 { font-size: 19px; margin: 14px 0 6px; letter-spacing: -0.01em; }
.card p { color: var(--text-secondary); font-size: 14.5px; }

/* ---- hero ----------------------------------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: clip; isolation: isolate; border-radius: var(--radius-lg); padding: 34px 36px 0;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card);
}
.hero-aurora { position: absolute; inset: 0; z-index: -2; filter: blur(48px); opacity: var(--hero-aurora); pointer-events: none; }
.hero-aurora span { position: absolute; border-radius: 50%; }
.hero-aurora .a { width: 46%; height: 120%; left: -8%; top: -50%; background: radial-gradient(circle, color-mix(in srgb, var(--turq) 55%, transparent), transparent 70%); animation: mq-drift-a 16s ease-in-out infinite; }
.hero-aurora .b { width: 38%; height: 100%; right: -6%; top: -30%; background: radial-gradient(circle, color-mix(in srgb, var(--clay) 40%, transparent), transparent 70%); animation: mq-drift-b 19s ease-in-out infinite; }
.hero-aurora .c { width: 30%; height: 80%; left: 40%; bottom: -55%; background: radial-gradient(circle, color-mix(in srgb, var(--sun) 35%, transparent), transparent 70%); animation: mq-drift-a 23s ease-in-out infinite reverse; }
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--hero-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px; animation: mq-grid-pan 9s linear infinite;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 30px; align-items: end; }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.04; margin: 16px 0 14px; }
.hero h1 em { font-style: normal; color: var(--turq); }
.hero-sub { font-family: var(--font-display); font-size: 19px; color: var(--text-secondary); max-width: 560px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.scene-wrap { position: relative; margin: 18px -36px 0; }
.scene { display: block; width: 100%; height: auto; }
.tagpin {
  position: absolute; transform: translate(-50%, -100%); padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: var(--surface); color: var(--text-primary); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm);
}
.tagpin::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; background: var(--surface); border-right: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); transform: translateX(-50%) rotate(45deg); }
.tagpin.dark { background: var(--turq); color: var(--brand-ink); border-color: var(--turq); }
.tagpin.dark::after { background: var(--turq); border-color: var(--turq); }
.tp-1 { left: 22%; top: 30%; }
.tp-2 { left: 56%; top: 16%; }
.tp-3 { left: 84%; top: 44%; }

/* figure cards */
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fig {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 13px 14px 12px; min-width: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.fig::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--tone); opacity: 0.9; }
.fig:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.fig-label { display: flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary); }
.fig-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 3px var(--tone-wash); flex: none; }
.fig-value { font-family: var(--font-display); font-size: 32px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }
.fig-value small { font-size: 15px; color: var(--text-muted); margin-left: 3px; }
.fig-sub { font-size: 12px; color: var(--text-muted); }

/* ---- banner (two columns with a drawn scene) ---------------------------------------------------------------- */
.banner {
  position: relative; overflow: clip; isolation: isolate; border-radius: var(--radius-lg); padding: 30px 32px;
  background: linear-gradient(135deg, var(--surface) 40%, var(--tone-wash)); border: 1px solid var(--border); box-shadow: var(--shadow-card);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center;
}
.banner::before { content: ''; position: absolute; left: 6%; right: 50%; top: -1px; height: 3px; background: linear-gradient(90deg, var(--tone), transparent); }
.banner h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; margin: 10px 0 10px; }
.banner .job { color: var(--text-secondary); font-size: 15.5px; max-width: 560px; margin-bottom: 18px; }
.banner-scene { display: block; width: 100%; height: auto; max-height: 280px; }
.banner .more { margin-top: 16px; font-size: 14px; color: var(--text-muted); }
.banner .more a { color: var(--turq); font-weight: 600; }
.banner .more a:hover { text-decoration: underline; }

/* why items inside the intro banner */
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.why .fig h3 { font-size: 16px; margin: 4px 0 2px; }
.why .fig p { font-size: 13.5px; color: var(--text-secondary); }

/* ---- process steps ------------------------------------------------------------------------------------------ */
.step { padding: 0; overflow: hidden; }
.step .art { background: linear-gradient(180deg, var(--tone-wash), transparent); border-bottom: 1px solid var(--border); padding: 10px 10px 0; }
.step .art svg { display: block; width: 100%; height: auto; max-height: none; }
.step .body { padding: 18px 20px 22px; }
.step .num { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--tone); letter-spacing: 0.08em; }
.step h3 { margin-top: 4px; }

/* ---- MetraQ product ----------------------------------------------------------------------------------------- */
.mq-logo { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; color: var(--text-primary); }
.mq-row { display: inline-flex; align-items: center; }
.mq-word { font-family: 'Outfit', var(--font-display); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.mq-q { display: inline-flex; margin-left: -0.06em; margin-top: 0.06em; }
.mq-q svg { display: block; }
.mq-tag { font-family: 'Outfit', var(--font-display); font-size: 0.32em; font-weight: 500; letter-spacing: 0.16em; color: var(--text-muted); margin: -0.05em 0 0 0.06em; white-space: nowrap; }
.product .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.product .figs { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; }
.product .made { margin-top: 14px; font-size: 12.5px; color: var(--text-muted); }

/* ---- benefits (figure cards) -------------------------------------------------------------------------------- */
.ben { padding: 18px 18px 20px; gap: 8px; }
.ben .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ben h3 { font-size: 18px; margin-top: 6px; }
.ben p { color: var(--text-secondary); font-size: 14.5px; }

/* ---- statement + projects ----------------------------------------------------------------------------------- */
.statement { padding: 38px 36px; }
.statement h2 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; max-width: 900px; margin: 12px 0 14px; }
.statement p { color: var(--text-secondary); max-width: 860px; font-size: 16px; }
.proj { padding: 0; overflow: hidden; }
.proj .shot { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--tone-wash), var(--surface)); display: grid; place-items: center; }
.proj .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.proj:hover .shot img { transform: scale(1.04); }
.proj .shot svg { width: 100%; height: auto; }
.proj .body { padding: 18px 20px 22px; }
.proj h3 { margin-top: 6px; }
.proj .btn { margin-top: 14px; }

/* ---- who we are --------------------------------------------------------------------------------------------- */
.who { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.who .team { grid-template-columns: minmax(0, 1fr); }
.who .team .fig-value { font-size: 24px; }
.who p + p { margin-top: 12px; }

/* ---- testimonial -------------------------------------------------------------------------------------------- */
.quote { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; padding: 28px 30px; }
.quote .avatar { position: relative; width: 96px; height: 96px; }
.quote .avatar img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--turq), var(--shadow-md); }
.quote .avatar::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--turq); animation: mq-ping 3s var(--ease) infinite; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 28px); font-weight: 400; letter-spacing: -0.01em; line-height: 1.3; }
.quote figcaption { margin-top: 10px; font-size: 14px; color: var(--text-muted); }
.quote figcaption b { color: var(--text-primary); font-weight: 600; }

/* ---- contact ------------------------------------------------------------------------------------------------ */
.ask { text-align: center; padding: 44px 30px; }
.ask h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 500; letter-spacing: -0.03em; }
.ask p { margin-top: 8px; color: var(--text-secondary); font-size: 17px; }
.ask .hero-cta { justify-content: center; }
.ct h3 { font-size: 17px; }
.ct p { margin-top: 4px; }
.ct a:hover { color: var(--turq); }
.form-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; padding: 26px; }
.form-card h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 500; letter-spacing: -0.02em; margin: 10px 0 6px; }
.form-card h2 b { font-weight: 600; }
.form-card .lead { color: var(--text-secondary); margin-bottom: 18px; }
.msg-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.msg-form label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.msg-form label i { color: var(--clay); font-style: normal; }
.msg-form .full { grid-column: 1 / -1; }
.msg-form input, .msg-form textarea {
  display: block; margin-top: 6px; width: 100%; border: 1px solid var(--border-strong); border-radius: 11px; background: var(--surface); padding: 10px 12px;
  font-size: 14.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-primary); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.msg-form textarea { min-height: 130px; resize: vertical; }
.msg-form input::placeholder, .msg-form textarea::placeholder { color: var(--text-muted); }
.msg-form input:focus, .msg-form textarea:focus { border-color: var(--turq); box-shadow: 0 0 0 3px var(--turq-wash); }
.msg-form .invalid { border-color: var(--clay); box-shadow: 0 0 0 3px var(--clay-wash); }
.form-note { margin-top: 10px; font-size: 13.5px; color: var(--turq); min-height: 1.4em; }
.map { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); min-height: 100%; }
.map img { width: 100%; height: 100%; object-fit: cover; }
.map .tagpin { left: 50%; top: 14px; transform: translateX(-50%); }
.map .tagpin::after { display: none; }

/* ---- footer ------------------------------------------------------------------------------------------------- */
.foot { border-top: 1px solid var(--border); background: var(--bg-sidebar); padding: 40px 0 26px; margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot-brand p { margin-top: 12px; color: var(--text-secondary); font-size: 14px; max-width: 360px; }
.foot h3 { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); font-family: var(--font-ui); margin-bottom: 10px; }
.foot li { font-size: 14px; line-height: 2.1; color: var(--text-secondary); }
.foot li a:hover { color: var(--turq); }
.socials a { display: inline-flex; align-items: center; gap: 9px; }
.socials .sq { width: 22px; height: 22px; border-radius: 7px; background: #23272d; display: grid; place-items: center; }
.socials .sq img { width: 11px; height: 11px; object-fit: contain; }
.page-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-muted); }
.page-foot b { color: var(--turq); font-weight: 700; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-md); color: var(--turq);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: all 0.25s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--turq); }

/* ---- the drawn scenes (MetraQ) ------------------------------------------------------------------------------ */
.art-p { animation: mq-rise 500ms var(--ease) backwards; animation-delay: calc(var(--i, 0) * 45ms); transform-box: fill-box; transform-origin: bottom; }
@keyframes art-flow { to { stroke-dashoffset: -16; } }
.art-flow { stroke-dasharray: 4 4; animation: art-flow 1s linear infinite; }
@keyframes art-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.art-pulse { animation: art-pulse 1.8s ease-in-out infinite; }
@keyframes art-hand { to { transform: rotate(360deg); } }
.art-hand { transform-box: view-box; animation: art-hand 12s linear infinite; }
@keyframes sc-train { from { transform: translateX(-560px); } to { transform: translateX(1120px); } }
.sc-train { animation: sc-train 16s linear infinite; }
.sc-train-2 { animation: sc-train 16s linear -8s infinite reverse; }
.sc-metro { transform: translateX(491px); animation: sc-metro 16s infinite; }
@keyframes sc-metro {
  0% { transform: translateX(-420px); animation-timing-function: cubic-bezier(0.15, 0.6, 0.35, 1); }
  26% { transform: translateX(491px); }
  56% { transform: translateX(491px); animation-timing-function: cubic-bezier(0.55, 0, 0.85, 0.45); }
  76%, 100% { transform: translateX(1080px); }
}
.sc-door { opacity: 0; }
.sc-metro .sc-door { animation: sc-door 16s infinite; }
@keyframes sc-door { 0%, 27% { opacity: 0; } 29%, 52% { opacity: 0.95; } 54%, 100% { opacity: 0; } }
.sc-climb { animation: sc-climb 8s linear infinite both; }
@keyframes sc-climb { 0% { transform: translate(0, 0); opacity: 0; } 6% { opacity: 1; } 88% { transform: translate(var(--cx), var(--cy)); opacity: 1; } 96%, 100% { transform: translate(var(--cx), var(--cy)); opacity: 0; } }
.sc-pax { animation: sc-pax 16s infinite both; }
@keyframes sc-pax {
  0%, 29% { transform: translate(0, 0); opacity: 1; }
  41% { transform: translate(var(--dx), 0); opacity: 1; }
  45% { transform: translate(var(--dx), -5px); opacity: 0; }
  78% { transform: translate(var(--in), 0); opacity: 0; }
  82% { transform: translate(var(--in), 0); opacity: 1; }
  96%, 100% { transform: translate(0, 0); opacity: 1; }
}
@keyframes sc-cloud { from { transform: translateX(-160px); } to { transform: translateX(1100px); } }
.sc-cloud { animation: sc-cloud 60s linear infinite; }
.sc-cloud.slow { animation-duration: 90s; animation-delay: -40s; }
@keyframes sc-kite { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(6px, -5px) rotate(6deg); } }
.sc-kite { transform-box: fill-box; transform-origin: center; animation: sc-kite 5s ease-in-out infinite; }
.sc-kite.b { animation-duration: 6.5s; animation-delay: -2s; }
@keyframes sc-sun { 0%, 100% { opacity: 0.35; transform: scale(1); } 50% { opacity: 0.08; transform: scale(1.35); } }
.sc-sunglow { transform-box: fill-box; transform-origin: center; animation: sc-sun 4s ease-in-out infinite; }
@keyframes sc-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }
.sc-person { animation: sc-bob 2.4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.4s); }
.sc-lit { animation: mq-blink 3s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.7s); }

/* ---- animated smart-city illustration (Projects) ------------------------------------------------------------ */
.proj .shot .sx-scene { display: block; width: 100%; height: 100%; }
@keyframes sx-train { from { transform: translateX(-140px); } to { transform: translateX(440px); } }
.sx-train { animation: sx-train 9s linear infinite; }
@keyframes sx-rot { to { transform: rotate(360deg); } }
.sx-spin { transform-box: view-box; transform-origin: 400px 90px; animation: sx-rot 4s linear infinite; }
@keyframes sx-cloud { from { transform: translateX(-110px); } to { transform: translateX(460px); } }
.sx-cloud { animation: sx-cloud 40s linear infinite; }
.sx-cloud.slow { animation-duration: 60s; animation-delay: -30s; }
@keyframes sx-lane { to { stroke-dashoffset: -48; } }
.sx-lane { animation: sx-lane 1.4s linear infinite; }
@keyframes sx-r { from { transform: translateX(-40px); } to { transform: translateX(440px); } }
@keyframes sx-l { from { transform: translateX(440px); } to { transform: translateX(-60px); } }
.sx-car-r { animation: sx-r 7s linear infinite; }
.sx-car-r.b { animation-duration: 9s; animation-delay: -4s; }
.sx-car-l { animation: sx-l 11s linear infinite; }
.sx-car-l.b { animation-duration: 7.5s; animation-delay: -3s; }
@keyframes sx-red { 0%, 44% { opacity: 1; } 45%, 100% { opacity: 0.18; } }
@keyframes sx-yel { 0%, 44% { opacity: 0.18; } 45%, 55% { opacity: 1; } 56%, 100% { opacity: 0.18; } }
@keyframes sx-grn { 0%, 55% { opacity: 0.18; } 56%, 100% { opacity: 1; } }
.sx-red { animation: sx-red 6s infinite; }
.sx-yel { animation: sx-yel 6s infinite; }
.sx-grn { animation: sx-grn 6s infinite; }
.sx-ping { transform-box: fill-box; transform-origin: center; animation: mq-ping 2.4s var(--ease) infinite; }
.sx-ping.b { animation-delay: -1.2s; }
.sx-beacon { animation: mq-blink 1.2s ease-in-out infinite; }

/* ---- smaller screens ---------------------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .banner, .who, .form-card { grid-template-columns: minmax(0, 1fr); }
  .banner-scene { max-height: 220px; }
  .hero-body { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .map { min-height: 280px; }
}
@media (max-width: 900px) {
  .head .menu-btn { display: inline-flex; }
  .head .wrap { flex-wrap: wrap; min-height: 60px; padding: 8px 0; }
  .nav { display: none; order: 5; width: 100%; flex-direction: column; align-items: stretch; margin: 0 0 8px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 12px; }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .strip .push, .strip .hours { display: none; }
  .logo-chip img { height: 32px; }
  .head-end .btn.on, .head-end .seg { display: none; }
  .g-4, .g-3, .g-2e, .why, .figs, .product .figs, .msg-form { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 24px 20px 0; }
  .scene-wrap { margin: 14px -20px 0; }
  .banner, .statement, .form-card, .quote, .ask { padding: 22px 18px; }
  .quote { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
  .tagpin { display: none; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot .seg { display: inline-flex; }
}

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