/* ===========================================================
   AVT Solution — design tokens (palette matched to the logo navy #000080)
   =========================================================== */
:root {
  --navy-950: #050a2c;
  --navy-900: #0a1247;
  --navy-800: #111c63;
  --navy-700: #1b2a82;
  --brand: #000080;
  --blue-600: #2342c4;
  --blue-500: #2e52e6;
  --blue-100: #e8ecff;
  --lav-300: #aab4f5;
  --cyan-400: #22d3ee;
  --ink-900: #0d1330;
  --ink-700: #353d5c;
  --ink-500: #5f6889;
  --paper-0: #ffffff;
  --paper-50: #f5f7fc;
  --paper-100: #eceff8;
  --line-100: #e0e5f1;
  --ok-600: #1a8f5e;
  --err-600: #d1473f;

  --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;

  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(13, 19, 48, 0.06), 0 1px 1px rgba(13, 19, 48, 0.04);
  --shadow-md: 0 10px 28px rgba(13, 19, 48, 0.10);
  --shadow-lg: 0 22px 52px rgba(13, 19, 48, 0.20);

  --container: 1180px;
  --header-h: 78px;
}

/* ===========================================================
   Reset & base
   =========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }
address { font-style: normal; }
[hidden] { display: none !important; }

body {
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--paper-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.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;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

section { padding: 92px 0; }
@media (max-width: 720px) { section { padding: 60px 0; } }

.section-alt { background: var(--paper-50); }
.section-dark {
  background: radial-gradient(ellipse at 80% 0%, var(--navy-800) 0%, var(--navy-950) 60%);
  color: #c9d1f5;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-lead { color: #a3aee0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue-500); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.eyebrow-light { color: var(--cyan-400); }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.015em; color: var(--navy-950); line-height: 1.2; }
h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
h3 { font-size: 19px; margin-bottom: 8px; }
.section-lead { max-width: 640px; color: var(--ink-500); font-size: 17px; margin-bottom: 44px; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.section-head .section-lead { margin-bottom: 0; }

/* ===========================================================
   Icons (external sprite: /assets/img/icons.svg)
   =========================================================== */
.icon {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  display: block; flex: none;
}

/* ===========================================================
   Buttons & links
   =========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn .icon { width: 17px; height: 17px; }
.btn-primary { background: var(--blue-500); color: #fff; box-shadow: 0 6px 18px rgba(46, 82, 230, .28); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(46, 82, 230, .34); }
.btn-ghost { background: #fff; color: var(--navy-950); border-color: var(--line-100); }
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-500); }
.btn-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-light:hover { background: rgba(255,255,255,.18); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 14.5px; color: var(--blue-500);
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform .15s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-button { background: none; border: 0; padding: 0; }
.section-dark .link-arrow { color: var(--cyan-400); }

/* ===========================================================
   Header / nav
   =========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line-100);
}
.nav { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 8px 12px; border-radius: 8px;
  font-size: 15px; font-weight: 600; color: var(--ink-700);
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--brand); background: var(--blue-100); }
.nav-links a[aria-current="page"], .nav-links a.active { color: var(--brand); }
.nav-links a[aria-current="page"]::after, .nav-links a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--blue-500);
}

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-phone { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-700); }
.nav-phone:hover { color: var(--blue-500); }
.nav-phone .icon { width: 16px; height: 16px; color: var(--blue-500); }

/* Search trigger: hidden below 600px, where the narrow header has no room for it —
   on those screens "Search" instead appears as the first row inside the hamburger
   drawer (.nav-search-item, styled further down where the drawer itself is styled). */
.search-trigger {
  display: none; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px;
  border: 1px solid var(--line-100); border-radius: var(--radius-full); background: #fff;
  color: var(--ink-500); font-size: 14px; font-weight: 600;
}
.search-trigger .icon { width: 16px; height: 16px; color: var(--blue-500); }
.search-trigger:hover { border-color: var(--blue-500); color: var(--blue-500); }
.nav-search-item { display: none; }
@media (min-width: 600px) { .search-trigger { display: inline-flex; } }

/* Icon-only globe button at every width, so the header never has to budget for
   language-name text (labels of varying length across 12 languages). The full
   language list still appears when the native picker opens on click/tap. */
/* Icon-only by default: the narrowest phones have no spare width for a text
   label (see the header overflow fix below). The label is added back in
   as soon as there's room, from 600px up — comfortably covers phones in
   landscape, tablets and desktop. */
.lang-switch {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; width: 40px; height: 40px; flex: none; padding: 0 10px;
  border: 1px solid var(--line-100); border-radius: 10px; background: #fff;
}
.lang-switch .icon { width: 18px; height: 18px; color: var(--blue-500); pointer-events: none; flex: none; }
.lang-switch-label {
  display: none; font-size: 13.5px; font-weight: 600; color: var(--ink-900);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 96px; pointer-events: none;
}
/* The select sits invisibly over the whole pill so a click/tap anywhere opens the
   native picker; opacity (not color:transparent) keeps its own OS-drawn dropdown
   list rendered in normal black text instead of picking up an invisible color. */
.lang-switch select {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: none;
  opacity: 0; font: inherit; color: var(--ink-900); cursor: pointer;
}
.lang-switch select:focus { outline: none; }
.lang-switch:focus-within, .lang-switch:hover { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(46,82,230,.12); }
@media (min-width: 600px) {
  .lang-switch { width: auto; }
  .lang-switch-label { display: block; }
}

/* Hide Google Website Translator's own UI; our #langSelect drives it instead.
   Google renames its banner/tooltip iframes' own classes periodically (they've
   shipped as .goog-te-banner-frame and as opaque hashed classes like
   .VIpgJd-ZVi9od-ORHb-OEVmcd), so target the stable "skiptranslate" marker
   class it has always put on all of them, rather than a specific class name. */
#google_translate_element { position: absolute !important; top: -9999px; left: -9999px; height: 0; width: 0; overflow: hidden; }
iframe.skiptranslate { display: none !important; visibility: hidden !important; height: 0 !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }

.nav-toggle {
  display: none; background: #fff; border: 1px solid var(--line-100); border-radius: 10px;
  width: 42px; height: 42px; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--navy-950); position: relative;
  transition: transform .2s ease, background .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.nav-phone { white-space: nowrap; }
@media (max-width: 1499px) { .nav-phone { display: none; } }

/* Tablet / laptop range: nav-links are inline here (no hamburger from 981px up),
   but there isn't room for every nav-actions item at full size alongside them —
   go icon-only on search & account, and drop the phone number and "Chat with us"
   button (the floating chat bubble and footer CTA still cover that) until the
   wide-desktop tier below where .site-header .nav gets extra width to fit it all. */
@media (min-width: 561px) and (max-width: 1499px) {
  .search-trigger span, .nav-account span { display: none; }
  .search-trigger { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .nav-account { padding: 8px; }
  .nav-actions .btn { display: none; }
}
@media (min-width: 981px) and (max-width: 1499px) {
  .nav { gap: 16px; }
  .nav-links a { padding: 8px 8px; }
  .nav-actions { gap: 10px; }
}
@media (min-width: 1500px) {
  .site-header .nav { max-width: 1420px; }
}
@media (max-width: 980px) {
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 20px; border-bottom: 1px solid var(--line-100); box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .18s ease;
  }
  .nav-links a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--paper-100); }
  .nav-links a::after { display: none; }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-actions { margin-left: auto; }
  .nav-toggle { display: flex; }
  .nav-search-item {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 4px;
    border: 0; border-bottom: 1px solid var(--paper-100); background: none;
    font-size: 15px; font-weight: 600; color: var(--blue-500); text-align: left;
  }
  .nav-search-item .icon { width: 17px; height: 17px; }
}
@media (max-width: 560px) {
  .brand img { height: 36px; }
  .nav-actions .btn { display: none; }
  .nav { gap: 10px; }
  .nav-actions { gap: 8px; }
}
/* Narrow phones (iPhone SE-class, ~320-380px): the fixed-width controls in
   nav-actions (language, account, menu) no longer all fit next to the logo
   at the 560px sizing above, so shrink everything a bit further. */
@media (max-width: 380px) {
  .brand img { height: 28px; }
  .nav { gap: 6px; }
  .nav-actions { gap: 4px; }
  .lang-switch, .nav-toggle { width: 34px; height: 34px; }
  .nav-account { padding: 8px; }
}

/* ===========================================================
   Home hero
   =========================================================== */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 96px 0 112px;
  background: radial-gradient(ellipse at 15% -10%, var(--navy-700) 0%, var(--navy-950) 55%, #03061c 100%);
}
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  padding: 7px 14px; border-radius: var(--radius-full);
  font-size: 12.5px; font-weight: 600; letter-spacing: .03em; color: #d3dbff; margin-bottom: 22px;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 0 4px rgba(34,211,238,.2); }
.hero h1 { color: #fff; font-size: clamp(34px, 4.8vw, 56px); line-height: 1.08; margin-bottom: 22px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--cyan-400), #8ea2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { color: #bcc6ee; font-size: 18px; max-width: 540px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column-reverse; }
.hero-stat dd { font-size: 30px; font-weight: 700; color: #fff; line-height: 1.1; }
.hero-stat dt { font-size: 13px; color: #8e9ad0; }

.hero-stats--compact { margin-top: 28px; gap: 32px; }
.hero-stats--compact dd { font-size: 26px; }

.hero-visual { position: relative; }
.hero-mosaic { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: 200px 200px; gap: 14px; }
.hero-tile {
  position: relative; margin: 0; overflow: hidden; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.16); box-shadow: var(--shadow-lg); background: var(--navy-900);
}
.hero-tile img { width: 100%; height: 100%; object-fit: cover; }
.hero-tile--tall { grid-row: span 2; }
.hero-tile figcaption {
  position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: var(--radius-full); background: rgba(5,10,44,.85);
  color: #fff; font-size: 12px; font-weight: 600; backdrop-filter: blur(4px);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.25); }
.hero-scan {
  position: absolute; left: -6px; right: -6px; top: 2%; height: 3px; border-radius: 3px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--cyan-400), transparent); box-shadow: 0 0 18px var(--cyan-400);
  animation: scan 4.5s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { top: 2%; } 50% { top: 97%; } }
.hero-badge { position: absolute; left: -22px; bottom: -30px; }

.cognex-badge {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 26px;
  background: #fff; border-radius: 14px; padding: 8px 16px 8px 8px; box-shadow: var(--shadow-lg);
}
.cognex-badge img { height: 54px; width: auto; }
.cognex-badge strong { display: block; color: var(--navy-950); font-size: 14.5px; line-height: 1.2; }
.cognex-badge span { font-size: 12px; color: var(--ink-500); }
.hero-badge { margin-top: 0; }

@media (max-width: 920px) {
  .hero { padding: 64px 0 96px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-badge { left: 12px; }
}
@media (max-width: 560px) {
  .hero-mosaic { grid-template-rows: 140px 140px; gap: 10px; }
  .hero-tile figcaption { left: 6px; bottom: 6px; padding: 4px 8px; font-size: 10.5px; white-space: nowrap; }
  .hero-tile:not(.hero-tile--tall) figcaption .pill-dot { display: none; }
  .hero-tile--tall figcaption { display: none; }
}

/* ===========================================================
   Industry ticker
   =========================================================== */
.ticker { overflow: hidden; background: var(--brand); padding: 16px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; gap: 14px; padding-right: 14px; }
.ticker-set li {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 18px; border-radius: var(--radius-full);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  color: #e3e8ff; font-size: 14px; font-weight: 600;
}
.ticker-set .icon { color: var(--cyan-400); width: 17px; height: 17px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ===========================================================
   Sub-page hero
   =========================================================== */
.page-hero {
  position: relative; overflow: hidden; padding: 56px 0 84px; color: #fff;
  background: radial-gradient(ellipse at 10% -20%, var(--navy-700) 0%, var(--navy-950) 60%, #03061c 100%);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero--compact { padding-bottom: 64px; }
.page-hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.1; margin-bottom: 18px; max-width: 820px; }
.page-hero-lead { color: #bcc6ee; font-size: 18px; max-width: 660px; }
.not-found .page-hero-lead { margin-bottom: 28px; }
.page-hero-art img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12); }
.page-hero-stats { display: grid; gap: 14px; }
.page-hero-stats > div {
  display: flex; flex-direction: column-reverse; padding: 18px 22px; border-radius: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}
.page-hero-stats dd { font-size: 30px; font-weight: 700; color: #fff; line-height: 1.1; }
.page-hero-stats dt { font-size: 13px; color: #8e9ad0; }
.page-hero-art img { width: 100%; max-height: 320px; object-fit: cover; background: #fff; }
.page-hero-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.page-hero-mosaic img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: #fff;
  border: 1px solid rgba(255,255,255,.14); box-shadow: var(--shadow-lg);
}
.page-hero-mosaic img:nth-child(2), .page-hero-mosaic img:nth-child(4) { transform: translateY(18px); }
@media (max-width: 920px) {
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-art, .page-hero-mosaic { display: none; }
  .page-hero-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) { .page-hero-stats { grid-template-columns: 1fr; } }

.breadcrumbs { margin-bottom: 28px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: #8e9ad0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; opacity: .5; }
.breadcrumbs a { color: #c9d1f5; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs [aria-current] { color: #8e9ad0; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===========================================================
   On-page anchor navigation
   =========================================================== */
.anchor-nav {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-100);
}
.anchor-nav .container { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.anchor-nav a {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 8px 16px; border-radius: var(--radius-full); border: 1px solid var(--line-100);
  font-size: 14px; font-weight: 600; color: var(--ink-700); background: #fff;
}
.anchor-nav a:hover, .anchor-nav a.is-active { border-color: var(--blue-500); color: var(--blue-500); background: var(--blue-100); }
.anchor-nav .icon { width: 16px; height: 16px; }

/* ===========================================================
   Photo cards (solutions / products on the home page)
   =========================================================== */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1060px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .photo-grid { gap: 12px; } }
.photo-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-100);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.photo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #cdd6f5; }
.photo-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-100); }
.photo-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo-card-media--contain { background: #fff; }
.photo-card-media--contain img { object-fit: contain; padding: 6px; }
.photo-card:hover .photo-card-media img { transform: scale(1.05); }
.photo-card-label {
  position: absolute; left: 12px; top: 12px; padding: 5px 12px; border-radius: var(--radius-full);
  background: rgba(0, 0, 128, .9); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
}
.photo-card-body { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; }
.photo-card-body h3 { margin: 0; font-size: 17px; }
.photo-card-body .icon { color: var(--blue-500); transition: transform .2s ease; }
.photo-card:hover .photo-card-body .icon { transform: translateX(4px); }
@media (max-width: 480px) { .photo-card-body { padding: 12px; } .photo-card-body h3 { font-size: 15px; } .photo-card-label { font-size: 11px; left: 8px; top: 8px; } }

/* AI Vision banner */
.ai-banner {
  position: relative; display: grid; grid-template-columns: 300px 1fr auto; align-items: center; gap: 28px;
  margin-top: 24px; padding: 18px 28px 18px 18px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800) 60%, var(--brand));
  color: #fff; box-shadow: var(--shadow-md); transition: transform .2s ease, box-shadow .2s ease;
}
.ai-banner:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ai-banner img { width: 100%; border-radius: 14px; }
.ai-banner-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ai-banner-title { font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1.1; }
.ai-banner-text { color: #bcc6ee; font-size: 16.5px; }
.ai-banner-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ai-banner-chips span { padding: 5px 12px; border-radius: var(--radius-full); background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.3); color: var(--cyan-400); font-size: 13px; font-weight: 600; }
.ai-banner-arrow { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--blue-500); }
.ai-banner-arrow .icon { width: 22px; height: 22px; }
@media (max-width: 820px) {
  .ai-banner { grid-template-columns: 1fr; padding: 16px 16px 24px; gap: 18px; }
  .ai-banner-arrow { display: none; }
}

/* Model badge, lead line, spec tiles, chips */
.model-badge {
  display: inline-flex; align-items: center; margin-bottom: 12px; padding: 6px 14px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand), var(--blue-500)); color: #fff;
  font-size: 13.5px; font-weight: 800; letter-spacing: .04em;
}
.model-badge--new { background: linear-gradient(135deg, #f59e0b, #f97316); }
.split-copy > .model-badge { color: #fff; margin-bottom: 12px; font-size: 13.5px; }
.split-copy > .q-label { color: var(--blue-500); font-size: 15px; margin-bottom: 8px; }
.ai-banner .model-badge { margin-bottom: 0; }
.lead-line { font-size: 18px !important; color: var(--ink-700); }
.section-dark .lead-line { color: #bcc6ee; }
.q-label { font-size: 15px; font-weight: 700; color: var(--blue-500); margin-bottom: 8px; }

.spec-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.spec { padding: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line-100); box-shadow: var(--shadow-sm); }
.spec b { display: block; font-size: 21px; line-height: 1.15; margin-bottom: 4px; background: linear-gradient(135deg, var(--brand), var(--blue-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spec span { display: block; font-size: 13px; color: var(--ink-500); line-height: 1.35; }
.section-dark .spec { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.section-dark .spec b { background: linear-gradient(135deg, #fff, var(--cyan-400)); -webkit-background-clip: text; background-clip: text; }
.section-dark .spec span { color: #a3aee0; }
@media (max-width: 480px) { .spec-row { grid-template-columns: 1fr 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li { padding: 6px 12px; border-radius: var(--radius-full); background: var(--blue-100); color: var(--brand); font-size: 13px; font-weight: 600; }
.section-dark .chips li { background: rgba(34,211,238,.1); color: var(--cyan-400); border: 1px solid rgba(34,211,238,.25); }

/* Rule-based vs AI comparison */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 18px; margin-top: 56px; }
.compare-col { padding: 24px 26px; border-radius: var(--radius-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); }
.compare-col--ai { background: linear-gradient(135deg, rgba(46,82,230,.3), rgba(34,211,238,.12)); border-color: rgba(34,211,238,.35); }
.compare-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: #fff; margin-bottom: 14px; }
.compare-title .icon { width: 22px; height: 22px; color: var(--cyan-400); }
.compare-col ul { display: grid; gap: 8px; }
.compare-col li { position: relative; padding-left: 22px; color: #c9d1f5; font-size: 15px; }
.compare-col li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-400); }
.compare-vs { align-self: center; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--blue-500); color: #fff; font-size: 22px; font-weight: 700; }
.compare-note { margin-top: 18px; color: #a3aee0; text-align: center; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } .compare-vs { justify-self: center; } }

/* Clickable photo with zoom hint */
.gallery-main {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line-100); box-shadow: var(--shadow-md); cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform .4s ease; }
.gallery-main--cover img { object-fit: cover; padding: 0; }
.gallery-main:hover img { transform: scale(1.03); }
.split-media .gallery-main img { box-shadow: none; border-radius: 0; }
.zoom-hint {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-full); background: rgba(5,10,44,.82); color: #fff;
  font-size: 12.5px; font-weight: 600;
}
.zoom-hint .icon { width: 14px; height: 14px; }

/* Inside a vision system */
.system-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; margin-top: 32px; }
.system-diagram { background: #fff; border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-lg); }
.system-diagram img { width: 100%; }
.system-parts { display: grid; gap: 12px; }
.system-parts li {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #fff; font-weight: 600;
}
.system-parts span { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--blue-500), var(--cyan-400)); }
@media (max-width: 860px) { .system-grid { grid-template-columns: 1fr; } }

/* ===========================================================
   Process steps
   =========================================================== */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; position: relative; margin-top: 36px; }
.steps::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 58px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,.6), transparent);
}
.step {
  position: relative; padding: 24px 20px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
}
.step-num { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--cyan-400); margin-bottom: 12px; }
.step-ico {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400)); color: #fff;
  box-shadow: 0 8px 20px rgba(34,211,238,.25);
}
.step-ico .icon { width: 22px; height: 22px; }
.step p { font-size: 14px; color: #a3aee0; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps::before { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ===========================================================
   Split layout & feature rows
   =========================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split-copy > p { color: var(--ink-700); margin-bottom: 16px; font-size: 16.5px; }
.split-copy .btn, .split-copy .link-arrow { margin-top: 12px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split-media { order: 0; }
}

.feature { padding: 84px 0; }
.feature-tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  padding: 6px 14px; border-radius: var(--radius-full); background: var(--blue-100);
  font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: .02em;
}
.feature-tag .icon { width: 16px; height: 16px; }

.check-list { display: grid; gap: 10px; margin: 20px 0 8px; }
.check-list li { position: relative; padding-left: 32px; color: var(--ink-700); font-size: 15.5px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e52e6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.motto {
  margin-top: 24px; padding: 20px 24px; border-left: 4px solid var(--blue-500);
  background: var(--paper-50); border-radius: 0 12px 12px 0;
  font-weight: 600; color: var(--navy-950); font-size: 17px;
}
.motto + .link-arrow { margin-top: 20px; }

/* ===========================================================
   Service cards (About)
   =========================================================== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
@media (max-width: 960px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .service-grid { grid-template-columns: 1fr; } }
.service-card {
  background: #fff; border: 1px solid var(--line-100); border-radius: var(--radius-lg); padding: 26px 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card p { color: var(--ink-500); font-size: 14.5px; }
.service-ico {
  display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 14px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400)); color: #fff;
}
.service-ico .icon { width: 23px; height: 23px; }

/* ===========================================================
   Stat band (Home)
   =========================================================== */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }

.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; }
.trust-strip li { display: flex; align-items: flex-start; gap: 14px; }
.trust-ico {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px; background: var(--blue-100);
}
.trust-ico .icon { width: 22px; height: 22px; color: var(--blue-500); }
.trust-strip strong { display: block; font-size: 15px; color: var(--navy-950); margin-bottom: 3px; }
.trust-strip span { font-size: 13.5px; color: var(--ink-500); line-height: 1.4; }
@media (max-width: 860px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust-strip { grid-template-columns: 1fr; } }
.stat-tile {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px;
  padding: 24px; border-radius: var(--radius-lg); background: var(--paper-50); border: 1px solid var(--line-100);
}
.stat-tile dd { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--brand), var(--blue-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-tile dt { color: var(--ink-500); font-size: 14px; font-weight: 600; }
.stat-tile--badge { align-items: flex-start; background: #fff; }
.stat-tile--badge img { height: 64px; width: auto; }

/* ===========================================================
   Project tiles (Home, About) and project cards (Projects)
   =========================================================== */
.project-tiles { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; gap: 16px; }
.project-tiles--four { grid-template-columns: repeat(4, 1fr); }
.project-tile { position: relative; overflow: hidden; border-radius: 18px; background: #fff; border: 1px solid var(--line-100); }
.project-tile--wide { grid-column: span 2; }
@media (max-width: 900px) { .project-tiles, .project-tiles--four { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; } }
@media (max-width: 520px) { .project-tiles, .project-tiles--four { grid-template-columns: 1fr; } .project-tile--wide { grid-column: auto; } }
.project-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(5,10,44,.88)); }
.project-tile:hover img { transform: scale(1.06); }
.project-tile-text { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; color: #fff; }
.project-tile-text span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan-400); }
.project-tile-text strong { display: block; font-size: 19px; line-height: 1.25; }

.filter-bar { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.js .filter-bar { display: flex; }
.filter-bar button {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius-full);
  border: 1px solid var(--line-100); background: #fff; color: var(--ink-700); font-size: 14px; font-weight: 600;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.filter-bar button .icon { width: 16px; height: 16px; }
.filter-bar button span { padding: 1px 8px; border-radius: var(--radius-full); background: var(--paper-100); font-size: 12px; }
.filter-bar button:hover { border-color: var(--blue-500); color: var(--blue-500); }
.filter-bar button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.filter-bar button[aria-pressed="true"] span { background: rgba(255,255,255,.2); }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1000px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .project-grid { grid-template-columns: 1fr; } }
.project-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-100);
  border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease;
}
.project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.project-card[hidden] { display: none; }
.project-media { position: relative; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line-100); }
.project-media > a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.project-media > a img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.project-stat {
  position: absolute; left: 12px; top: 12px; max-width: 64%; padding: 8px 12px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--blue-500)); color: #d7defc;
  font-size: 11.5px; line-height: 1.3; box-shadow: var(--shadow-md);
}
.project-stat b { display: block; color: #fff; font-size: 20px; line-height: 1.1; }
.project-thumbs { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.project-thumbs a { width: 48px; height: 48px; border-radius: 9px; overflow: hidden; border: 2px solid #fff; background: #fff; box-shadow: var(--shadow-md); cursor: zoom-in; }
.project-thumbs a[hidden] { display: none; }
.project-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 18px 20px 22px; }
.project-body h3 { margin: 10px 0 6px; }
.project-body p { color: var(--ink-500); font-size: 14.5px; }
.project-body .chips { margin-top: 14px; }

.industry-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 860px) { .industry-strip { grid-template-columns: repeat(2, 1fr); } }
.industry-strip li {
  display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line-100); font-weight: 600; font-size: 14.5px; color: var(--navy-950);
}
.industry-strip .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: linear-gradient(135deg, var(--blue-500), var(--cyan-400)); color: #fff; }

/* ===========================================================
   CTA band
   =========================================================== */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--navy-900), var(--brand) 70%, var(--blue-600));
  color: #fff; border-radius: 24px; padding: 52px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  border: 36px solid rgba(34,211,238,.12); pointer-events: none;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; font-size: clamp(24px, 2.8vw, 32px); }
.cta-band p { color: #c9d1f5; }
.cta-actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 600px) { .cta-band { padding: 36px 26px; } }

/* ===========================================================
   FAQ
   =========================================================== */
.faq-list { display: grid; gap: 12px; margin-top: 28px; }
.faq-item { border: 1px solid var(--line-100); border-radius: 14px; background: #fff; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
  font-weight: 600; font-size: 16.5px; color: var(--navy-950);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--blue-100); color: var(--blue-500);
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 22px 20px; color: var(--ink-700); }

/* ===========================================================
   Blog cards
   =========================================================== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
.post-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-100);
  border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card-media img { width: 100%; aspect-ratio: 600 / 340; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card-media img { transform: scale(1.03); }
.post-card-media { overflow: hidden; display: block; }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.post-card-body h2, .post-card-body h3 { font-size: 19px; margin-bottom: 10px; line-height: 1.3; }
.post-card-body h2 a:hover, .post-card-body h3 a:hover { color: var(--blue-500); }
.post-card-body p { color: var(--ink-500); font-size: 14.5px; margin-bottom: 16px; }
.post-card-body .link-arrow { margin-top: auto; }
.post-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12.5px; color: var(--ink-500); margin-bottom: 12px; }
.tag { padding: 4px 10px; border-radius: var(--radius-full); background: var(--blue-100); color: var(--brand); font-weight: 700; font-size: 12px; }

.post-grid--list { grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 620px) { .post-grid--list { grid-template-columns: 1fr; } }
.post-grid--list .post-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.post-card--featured .post-card-media img { height: 100%; }
.post-card--featured .post-card-body { padding: 36px 40px; justify-content: center; }
.post-card--featured .post-card-body h2 { font-size: clamp(22px, 2.4vw, 30px); }
.post-card--featured .post-card-body p { font-size: 16px; }
@media (max-width: 820px) { .post-grid--list .post-card--featured { grid-template-columns: 1fr; } .post-card--featured .post-card-body { padding: 24px; } }

/* ===========================================================
   Blog article
   =========================================================== */
.page-hero--post { padding-bottom: 150px; }
.post-category {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px;
  padding: 6px 14px; border-radius: var(--radius-full); background: rgba(34,211,238,.12);
  color: var(--cyan-400); font-size: 13px; font-weight: 700;
}
.post-category .icon { width: 15px; height: 15px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; font-size: 14px; color: #a3aee0; }
.post-meta span { display: inline-flex; align-items: center; gap: 7px; }
.post-meta .icon { width: 16px; height: 16px; color: var(--cyan-400); }

.post-body { position: relative; z-index: 2; margin-top: -110px; padding-bottom: 80px; }
.post-cover img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

.prose { margin-top: 44px; font-size: 17.5px; line-height: 1.75; color: var(--ink-700); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 1.9em; margin-bottom: .1em; }
.prose h3 { font-size: 20px; margin-top: 1.6em; margin-bottom: 0; }
.prose a { color: var(--blue-500); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--brand); }
.prose strong { color: var(--navy-950); }
.prose ul, .prose ol { padding-left: 0; display: grid; gap: .55em; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 6px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-400); }
.prose ol { counter-reset: li; }
.prose ol li { position: relative; padding-left: 40px; counter-increment: li; }
.prose ol li::before {
  content: counter(li); position: absolute; left: 0; top: .15em; width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue-100); color: var(--blue-500); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.table-wrap { overflow-x: auto; border: 1px solid var(--line-100); border-radius: 14px; }
.table-wrap + .table-wrap { margin-top: 16px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-100); vertical-align: top; }
.prose thead th { background: var(--navy-900); color: #fff; font-weight: 600; }
.prose tbody tr:nth-child(even) { background: var(--paper-50); }
.prose tbody tr:last-child td, .prose tbody tr:last-child th { border-bottom: 0; }
.prose tbody th { color: var(--navy-950); }

.post-cta {
  margin-top: 56px; padding: 30px 32px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--blue-100), #e6fbff); border: 1px solid #d6def8;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.post-cta-title { font-weight: 700; font-size: 19px; color: var(--navy-950); margin-bottom: 4px; }
.post-cta p { color: var(--ink-700); }
.post-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===========================================================
   Contact
   =========================================================== */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h2, .contact-panel h2 { font-size: 26px; }
.contact-cards { display: grid; gap: 12px; margin-top: 20px; }
.contact-info > .link-arrow { margin-top: 20px; }
.contact-detail {
  display: flex; gap: 16px; padding: 18px 20px; border-radius: 14px;
  background: var(--paper-50); border: 1px solid var(--line-100);
}
.contact-detail .ico {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400)); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.contact-detail strong { display: block; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 2px; }
.contact-detail span, .contact-detail a, .contact-detail address { font-size: 15.5px; color: var(--navy-950); font-weight: 500; }
.contact-detail a:hover { color: var(--blue-500); }

.contact-panel { background: #fff; border: 1px solid var(--line-100); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); }
.contact-panel > p { color: var(--ink-500); font-size: 15px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy-950); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line-100); border-radius: 10px; padding: 12px 14px;
  font-size: 15px; color: var(--ink-900); background: var(--paper-50); transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 3px rgba(46,82,230,.12); }
.field textarea { resize: vertical; min-height: 140px; }
.field input[type="file"] { padding: 10px 14px; font-size: 13.5px; }
.form-note { font-size: 13px; color: var(--ink-500); text-align: center; margin: 10px 0 0; }
.form-status { font-size: 14px; margin-top: 12px; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: var(--ok-600); }
.form-status.err { color: var(--err-600); }

.map-section h2 { font-size: 28px; }
.map-section .section-lead { margin-bottom: 24px; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-100); box-shadow: var(--shadow-sm); background: var(--paper-100); }
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ===========================================================
   Footer
   =========================================================== */
.site-footer { background: var(--navy-950); color: #97a2d0; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) 1.2fr 1.2fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (max-width: 1200px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand, .footer-contact, .footer-newsletter { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-contact, .footer-newsletter { grid-column: 1 / -1; } }
.footer-newsletter-lead { font-size: 13.5px; color: #97a2d0; margin-bottom: 12px; }
.footer-newsletter-row { display: flex; gap: 8px; }
.footer-newsletter-row input {
  flex: 1; min-width: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 10px 12px;
  font-size: 14px; color: #fff; background: rgba(255,255,255,.06);
}
.footer-newsletter-row input::placeholder { color: #6b76a8; }
.footer-newsletter-row input:focus { outline: none; border-color: var(--cyan-400); }
.footer-newsletter #nlStatus.form-status { font-size: 12.5px; margin-top: 8px; }
.footer-logo { display: inline-block; margin-bottom: 16px; }
.footer-logo img { height: 40px; width: auto; }
.footer-brand p { font-size: 14px; max-width: 360px; margin-bottom: 18px; }
.footer-title { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 14px; letter-spacing: .08em; text-transform: uppercase; }
.footer-col a { display: block; font-size: 14px; color: #97a2d0; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-col address { font-size: 14px; line-height: 1.6; margin-bottom: 8px; }
.footer-badges { display: flex; align-items: center; gap: 14px; }
.footer-badges img { height: 52px; width: auto; border-radius: 8px; background: #fff; padding: 3px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 22px; font-size: 13px; color: #6f7bb0; }
.footer-visits { display: inline-flex; align-items: center; gap: 6px; color: #8e9ad0; }
.footer-visits .icon { width: 14px; height: 14px; color: var(--cyan-400); }
.footer-visits span { color: #c9d1f5; font-weight: 700; }
.footer-tagline { font-style: italic; }

/* ===========================================================
   Chat widget
   =========================================================== */
.chat-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400)); color: #fff;
  box-shadow: 0 12px 30px rgba(46,82,230,.4);
  display: flex; align-items: center; justify-content: center; transition: transform .15s ease;
}
.chat-launcher .icon { width: 26px; height: 26px; }
.chat-launcher:hover { transform: scale(1.06); }
.chat-launcher .badge {
  position: absolute; top: -4px; right: -4px; background: #ef4444; color: #fff; font-size: 10.5px; font-weight: 700;
  width: 19px; height: 19px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.chat-launcher .badge[hidden] { display: none; }

.chat-window {
  position: fixed; right: 22px; bottom: 96px; z-index: 91;
  width: 360px; max-width: calc(100vw - 32px); height: 490px; max-height: calc(100vh - 140px);
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line-100);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(16px) scale(.98); opacity: 0; visibility: hidden; transition: all .18s ease;
}
.chat-window.open { transform: none; opacity: 1; visibility: visible; }
.chat-head { background: linear-gradient(120deg, var(--navy-900), var(--brand)); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.chat-head .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.25); }
.chat-head strong { display: block; font-size: 14.5px; }
.chat-head span { font-size: 12px; color: #bcc6ee; }
.chat-close { margin-left: auto; background: none; border: none; color: #d3dbff; font-size: 18px; width: 30px; height: 30px; border-radius: 8px; }
.chat-close:hover { background: rgba(255,255,255,.1); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper-50); }
.chat-msg { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.chat-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line-100); color: var(--ink-900); border-bottom-left-radius: 4px; }
.chat-msg.user { align-self: flex-end; background: var(--blue-500); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.err { align-self: center; background: #fde8e8; color: var(--err-600); font-size: 12.5px; }
.chat-form { border-top: 1px solid var(--line-100); padding: 12px; background: #fff; }
.chat-form .row { display: flex; gap: 8px; margin-bottom: 8px; }
.chat-form input { flex: 1; min-width: 0; border: 1px solid var(--line-100); border-radius: 9px; padding: 9px 11px; font-size: 13px; background: var(--paper-50); }
.chat-form input:focus, .chat-compose textarea:focus { outline: none; border-color: var(--blue-500); background: #fff; }
.chat-compose { display: flex; gap: 8px; }
.chat-compose textarea { flex: 1; border: 1px solid var(--line-100); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; resize: none; height: 42px; background: var(--paper-50); }
.chat-send { width: 42px; height: 42px; border-radius: 12px; border: none; flex: none; background: var(--blue-500); color: #fff; display: flex; align-items: center; justify-content: center; }
.chat-send:disabled { opacity: .5; cursor: not-allowed; }
.chat-send:not(:disabled):hover { background: var(--blue-600); }

/* ===========================================================
   Customer portal: header link, auth pages, account
   =========================================================== */
.nav-account { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink-700); white-space: nowrap; flex: none; }
.nav-account:hover { color: var(--brand); background: var(--blue-100); }
.nav-account .icon { width: 17px; height: 17px; color: var(--blue-500); }
@media (max-width: 560px) { .nav-account span { display: none; } .nav-account { padding: 10px; border: 1px solid var(--line-100); border-radius: 10px; } }

.field select {
  width: 100%; border: 1px solid var(--line-100); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 15px;
  color: var(--ink-900); background: var(--paper-50); appearance: auto;
}
.field select:focus { outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 3px rgba(46,82,230,.12); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field-link { font-size: 13px; font-weight: 600; color: var(--blue-500); }
.field-hint { font-size: 12.5px; color: var(--ink-500); margin-top: 6px; }
.optional { font-weight: 500; color: var(--ink-500); font-size: 12px; }
.pw-field { position: relative; }
.pw-field input { padding-right: 48px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 8px;
  background: none; color: var(--ink-500); display: flex; align-items: center; justify-content: center;
}
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { color: var(--blue-500); background: var(--blue-100); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 20px; font-size: 14px; color: var(--ink-700); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue-500); flex: none; }
.check a, .auth-sub a, .auth-switch a, .field-hint a { color: var(--blue-500); font-weight: 600; }

.auth-section { padding: 56px 0 88px; background: linear-gradient(180deg, var(--paper-50), #fff 60%); }
.auth-shell { display: grid; grid-template-columns: .95fr 1.05fr; gap: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.container.auth-shell { padding: 0; max-width: 1100px; width: calc(100% - 32px); }
.auth-aside {
  position: relative; overflow: hidden; padding: 44px 40px; color: #c9d1f5;
  background: radial-gradient(ellipse at 10% -10%, var(--navy-700), var(--navy-950) 65%);
}
.auth-aside-title { color: #fff; font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; line-height: 1.2; margin-bottom: 24px; }
.auth-benefits, .auth-steps { display: grid; gap: 14px; margin-bottom: 28px; }
.auth-benefits li, .auth-steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.auth-benefits li span, .auth-steps li span {
  width: 38px; height: 38px; flex: none; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400)); color: #fff; font-weight: 800;
}
.auth-aside-note { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--cyan-400); margin: -10px 0 26px; }
.auth-aside-note .icon { width: 16px; height: 16px; }
.auth-mosaic { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 110px 110px; gap: 10px; }
.auth-mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; background: #fff; border: 1px solid rgba(255,255,255,.14); }
.auth-mosaic img:first-child { grid-row: span 2; }
.auth-card { padding: 44px 44px 36px; }
.auth-card h1 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 6px; }
.auth-sub { color: var(--ink-500); margin-bottom: 26px; }
.auth-form .btn-block { margin-top: 6px; }
.auth-form .form-status { margin-top: 14px; }
.auth-form #resendConfirm { margin-top: 10px; }
.auth-switch { margin-top: 22px; text-align: center; font-size: 14.5px; color: var(--ink-500); }
.auth-done { text-align: center; padding: 24px 0 8px; outline: none; }
.auth-done h2 { font-size: 26px; }
.auth-done p { color: var(--ink-700); margin-bottom: 8px; }
.auth-done-ico {
  width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400)); color: #fff;
}
.auth-done-ico .icon { width: 28px; height: 28px; }
.auth-section--single .container { display: flex; justify-content: center; }
.auth-card--center { width: 100%; max-width: 460px; background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); text-align: left; }
.auth-card--center > h1, .auth-card--center > .auth-sub { text-align: center; }
.auth-card--center .form-status { text-align: center; }
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-card { order: -1; }
  .auth-aside { padding: 32px 26px; }
  .auth-mosaic { display: none; }
  .auth-card { padding: 32px 24px 28px; }
}

.account-hero { padding-bottom: 56px; }
.account-section { padding: 40px 0 88px; background: var(--paper-50); }
.account-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 60px 24px; color: var(--ink-500); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--blue-100); border-top-color: var(--blue-500); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.account-layout { display: grid; grid-template-columns: 290px 1fr; gap: 24px; align-items: start; }
.account-layout[hidden] { display: none; }
@media (max-width: 900px) { .account-layout { grid-template-columns: 1fr; } }
.account-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
@media (max-width: 900px) { .account-side { position: static; } }
.account-card { background: #fff; border: 1px solid var(--line-100); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.account-main { display: grid; gap: 24px; min-width: 0; }
.account-main .account-card { scroll-margin-top: calc(var(--header-h) + 20px); }
.account-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.account-card-head h2 { font-size: 22px; margin: 0; }
.account-count { font-size: 13.5px; color: var(--ink-500); font-weight: 600; }

.account-summary { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.avatar {
  width: 72px; height: 72px; border-radius: 50%; margin-bottom: 10px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--cyan-400)); color: #fff; font-size: 26px; font-weight: 800;
}
.account-summary strong { font-size: 17px; color: var(--navy-950); }
.account-summary > span { font-size: 13.5px; color: var(--ink-500); min-height: 1em; }
.account-stats { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 18px 0 12px; }
.account-stats > div { display: flex; flex-direction: column-reverse; padding: 10px 4px; border-radius: 12px; background: var(--paper-50); }
.account-stats dt { font-size: 11px; color: var(--ink-500); }
.account-stats dd { font-size: 14.5px; font-weight: 700; color: var(--brand); }
.usage { width: 100%; height: 6px; border-radius: 999px; background: var(--paper-100); overflow: hidden; }
.usage span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blue-500), var(--cyan-400)); transition: width .4s ease; }
.account-nav { display: grid; gap: 4px; background: #fff; border: 1px solid var(--line-100); border-radius: var(--radius-lg); padding: 8px; }
.account-nav a, .account-nav button {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; border: 0; background: none;
  font-size: 14.5px; font-weight: 600; color: var(--ink-700); text-align: left;
}
.account-nav a:hover, .account-nav button:hover { background: var(--blue-100); color: var(--brand); }
.account-nav .icon { color: var(--blue-500); }
.account-nav button { color: var(--err-600); }
.account-nav button .icon { color: var(--err-600); }
@media (max-width: 900px) { .account-nav { grid-template-columns: repeat(2, 1fr); } }

.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 20px; cursor: pointer;
  border: 2px dashed #c9d3f3; border-radius: 16px; background: linear-gradient(180deg, #f8faff, var(--blue-100)); text-align: center;
  transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover, .dropzone.is-over, .dropzone:focus-within { border-color: var(--blue-500); background: var(--blue-100); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone-ico { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--blue-500), var(--cyan-400)); color: #fff; margin-bottom: 6px; box-shadow: 0 10px 22px rgba(46,82,230,.25); }
.dropzone-ico .icon { width: 26px; height: 26px; }
.dropzone-title { font-weight: 700; color: var(--navy-950); font-size: 16px; }
.dropzone-title u { color: var(--blue-500); text-underline-offset: 3px; }
.dropzone-hint { font-size: 13px; color: var(--ink-500); }
.retention-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13.5px; color: var(--ink-700); }
.retention-note .icon { width: 16px; height: 16px; color: #d97706; }

.upload-queue { display: grid; gap: 8px; margin-top: 14px; }
.upload-queue[hidden] { display: none; }
.upload-item { display: grid; grid-template-columns: minmax(0, 1fr) 140px auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--paper-50); font-size: 13.5px; }
.upload-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-700); }
.upload-bar { height: 6px; border-radius: 999px; background: var(--paper-100); overflow: hidden; }
.upload-bar span { display: block; height: 100%; width: 0; background: var(--blue-500); transition: width .15s ease; }
.upload-state { font-weight: 600; color: var(--ink-500); min-width: 64px; text-align: right; }
.upload-item.is-done .upload-bar span { background: var(--ok-600); width: 100% !important; }
.upload-item.is-done .upload-state { color: var(--ok-600); }
.upload-item.is-error .upload-bar span { background: var(--err-600); }
.upload-item.is-error .upload-state { color: var(--err-600); }
@media (max-width: 560px) { .upload-item { grid-template-columns: 1fr auto; } .upload-bar { grid-column: 1 / -1; grid-row: 2; } }

.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-top: 18px; }
.image-card { display: flex; flex-direction: column; border: 1px solid var(--line-100); border-radius: 14px; overflow: hidden; background: #fff; transition: box-shadow .2s ease; }
.image-card:hover { box-shadow: var(--shadow-md); }
.image-card-media { display: block; aspect-ratio: 4 / 3; background: var(--paper-100); }
.image-card-media img { width: 100%; height: 100%; object-fit: cover; }
.image-card-body { position: relative; padding: 10px 12px 12px; }
.image-card-name { font-weight: 600; font-size: 13.5px; color: var(--navy-950); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 70px; }
.image-card-meta { font-size: 12px; color: var(--ink-500); }
.image-card-expiry { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: var(--paper-100); font-size: 11.5px; font-weight: 600; color: var(--ink-700); }
.image-card-expiry .icon { width: 12px; height: 12px; }
.image-card-expiry.is-soon { background: #fef3c7; color: #92400e; }
.image-card-actions { position: absolute; right: 8px; top: 8px; display: flex; gap: 4px; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line-100); background: #fff; color: var(--ink-700); display: flex; align-items: center; justify-content: center; }
.icon-btn .icon { width: 16px; height: 16px; }
.icon-btn:hover { border-color: var(--blue-500); color: var(--blue-500); }
.icon-btn--danger:hover { border-color: var(--err-600); color: var(--err-600); background: #fdecea; }
.image-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 16px 12px; text-align: center; color: var(--ink-500); }
.image-empty[hidden] { display: none; }
.image-empty .icon { width: 40px; height: 40px; color: #c9d3f3; stroke-width: 1.4; }

.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.form-actions .form-status { margin: 0; }
.danger-zone { margin-top: 28px; padding: 20px; border-radius: 14px; border: 1px solid #f5c2bd; background: #fef6f5; }
.danger-zone h3 { color: var(--err-600); font-size: 17px; }
.danger-zone p { font-size: 14px; color: var(--ink-700); margin-bottom: 12px; }
.danger-form { display: flex; gap: 10px; flex-wrap: wrap; }
.danger-form input { flex: 1; min-width: 180px; border: 1px solid #f0c9c4; border-radius: 10px; padding: 11px 13px; font: inherit; font-size: 14.5px; background: #fff; }
.btn-danger { background: var(--err-600); color: #fff; }
.btn-danger:hover { background: #b43a33; }

/* ===========================================================
   Admin dashboard
   =========================================================== */
.admin-link-card {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--navy-900), var(--brand)); color: #fff; box-shadow: var(--shadow-md);
}
.admin-link-card .icon { width: 22px; height: 22px; color: var(--cyan-400); }
.admin-link-card strong { display: block; font-size: 15px; }
.admin-link-card span span { font-size: 12.5px; color: #bcc6ee; }

.admin-hero { padding-bottom: 48px; }
.admin-hero-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.admin-kpis { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-kpis > div { display: flex; flex-direction: column-reverse; min-width: 130px; padding: 14px 18px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.admin-kpis dd { font-size: 28px; font-weight: 800; color: #fff; line-height: 1.1; }
.admin-kpis dt { font-size: 12.5px; color: #a3aee0; }
.admin-section { padding: 32px 0 88px; background: var(--paper-50); min-height: 60vh; }
.admin-denied { max-width: 440px; margin: 40px auto; text-align: center; background: #fff; border-radius: 22px; padding: 36px; box-shadow: var(--shadow-md); }
.admin-denied p { color: var(--ink-500); margin-bottom: 20px; }

.admin-tabs { display: flex; gap: 6px; margin-bottom: 22px; border-bottom: 1px solid var(--line-100); overflow-x: auto; }
.admin-tabs a {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; white-space: nowrap;
  font-weight: 700; font-size: 15px; color: var(--ink-500); border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.admin-tabs a:hover { color: var(--brand); }
.admin-tabs a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--blue-500); }
.admin-tabs .icon { width: 17px; height: 17px; }
.tab-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }

.admin-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-toolbar h2 { font-size: 22px; margin: 0 auto 0 0; }
.admin-search { flex: 1; min-width: 200px; max-width: 360px; border: 1px solid var(--line-100); border-radius: 10px; padding: 10px 13px; font: inherit; font-size: 14px; background: #fff; }
.admin-search:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(46,82,230,.12); }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid var(--line-100); }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: 13.5px; color: var(--ink-700); }
.seg button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.admin-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 16px; color: var(--ink-500); text-align: center; background: #fff; border: 1px dashed var(--line-100); border-radius: var(--radius-lg); }
.admin-empty .icon { width: 36px; height: 36px; color: #c9d3f3; }
.admin-note { margin-top: 18px; font-size: 13.5px; color: var(--ink-500); }
.admin-note code { background: var(--paper-100); padding: 1px 6px; border-radius: 6px; }

.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--paper-100); color: var(--ink-700); }
.badge-new { background: #fee2e2; color: #b91c1c; }
.badge-replied { background: #dcfce7; color: #166534; }
.badge-closed { background: var(--paper-100); color: var(--ink-500); }
.badge-draft { background: #fef3c7; color: #92400e; }
.badge-published { background: #dcfce7; color: #166534; }

.inq-list { display: grid; gap: 10px; }
.inq-card { background: #fff; border: 1px solid var(--line-100); border-radius: 14px; overflow: hidden; }
.inq-card.is-open { box-shadow: var(--shadow-md); border-color: #cdd6f5; }
.inq-head {
  width: 100%; display: grid; grid-template-columns: auto minmax(160px, 1.1fr) 2fr auto; align-items: center; gap: 14px;
  padding: 14px 18px; border: 0; background: none; text-align: left; font: inherit; color: inherit;
}
.inq-head:hover { background: var(--paper-50); }
.inq-dot { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.status-new .inq-dot { background: #ef4444; box-shadow: 0 0 0 4px #fee2e2; }
.status-replied .inq-dot { background: #22c55e; }
.inq-who { display: flex; flex-direction: column; min-width: 0; }
.inq-who strong { font-size: 15px; color: var(--navy-950); }
.inq-who span { font-size: 13px; color: var(--ink-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inq-preview { font-size: 14px; color: var(--ink-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inq-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 12px; color: var(--ink-500); white-space: nowrap; }
@media (max-width: 760px) {
  .inq-head { grid-template-columns: auto 1fr; }
  .inq-preview { grid-column: 2; }
  .inq-meta { grid-column: 2; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; }
}
.inq-body { padding: 4px 18px 18px 42px; border-top: 1px solid var(--line-100); }
@media (max-width: 760px) { .inq-body { padding-left: 18px; } }
.inq-thread { display: grid; gap: 10px; margin: 16px 0; }
.inq-thread li { padding: 12px 14px; border-radius: 12px 12px 12px 4px; background: var(--paper-50); border: 1px solid var(--line-100); max-width: 720px; }
.inq-thread p { white-space: pre-wrap; color: var(--ink-900); font-size: 14.5px; }
.inq-thread .inq-extra { font-size: 13px; color: var(--ink-500); white-space: normal; margin-top: 4px; }
.inq-thread .link-button { margin-top: 8px; font-size: 13px; }
.inq-thread time { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-500); }
.inq-prev-reply { max-width: 720px; margin: 0 0 16px auto; padding: 12px 14px; border-radius: 12px 12px 4px 12px; background: var(--blue-100); }
.inq-prev-reply strong { display: block; font-size: 12.5px; color: var(--brand); margin-bottom: 4px; }
.inq-prev-reply p { white-space: pre-wrap; font-size: 14px; color: var(--ink-900); }
.inq-label { display: block; font-size: 13px; font-weight: 700; color: var(--navy-950); margin-bottom: 6px; }
.inq-reply { width: 100%; border: 1px solid var(--line-100); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 14.5px; background: #fff; resize: vertical; }
.inq-reply:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(46,82,230,.12); }
.inq-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.btn-danger-ghost { color: var(--err-600); background: #fff; border-color: #f5c2bd; }
.btn-danger-ghost:hover { background: #fdecea; border-color: var(--err-600); color: var(--err-600); }

.post-table { display: grid; gap: 8px; }
.post-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 150px 170px auto; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line-100);
}
.post-row-title { font-weight: 700; color: var(--navy-950); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-row-title:hover { color: var(--blue-500); }
.post-row-cat, .post-row-date { font-size: 13px; color: var(--ink-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-row-actions { display: flex; gap: 6px; }
@media (max-width: 820px) {
  .post-row { grid-template-columns: 1fr auto; }
  .post-row-cat { display: none; }
  .post-row-date { grid-column: 1; }
  .post-row-actions { grid-column: 2; grid-row: 1 / span 2; }
}

.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 980px) { .editor-layout { grid-template-columns: 1fr; } }
.editor-main { background: #fff; border: 1px solid var(--line-100); border-radius: var(--radius-lg); padding: 22px 26px 26px; box-shadow: var(--shadow-sm); min-width: 0; }
.link-back { margin-bottom: 14px; }
.editor-title {
  width: 100%; border: 0; border-bottom: 2px solid var(--line-100); padding: 8px 0 12px; margin-bottom: 16px;
  font: inherit; font-size: clamp(24px, 3vw, 32px); font-weight: 700; color: var(--navy-950); background: none;
}
.editor-title:focus { outline: none; border-bottom-color: var(--blue-500); }
.editor-body.ql-container, .editor-main .ql-container { min-height: 460px; font-family: var(--font-sans); font-size: 17px; border-radius: 0 0 12px 12px; }
.editor-main .ql-toolbar { border-radius: 12px 12px 0 0; background: var(--paper-50); position: sticky; top: var(--header-h); z-index: 5; }
.editor-main .ql-editor { min-height: 460px; line-height: 1.75; color: var(--ink-700); }
.editor-main .ql-editor h2 { font-size: 26px; margin: 1.2em 0 .4em; color: var(--navy-950); }
.editor-main .ql-editor h3 { font-size: 20px; margin: 1em 0 .3em; color: var(--navy-950); }
.editor-main .ql-editor img { border-radius: 10px; margin: 10px 0; }
.editor-side { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 980px) { .editor-side { position: static; } }
.editor-side .account-card { padding: 20px; }
.editor-side .field { margin-bottom: 14px; }
.editor-side .field:last-child { margin-bottom: 0; }
.editor-side textarea, .editor-side input:not([type=file]) { width: 100%; border: 1px solid var(--line-100); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; background: var(--paper-50); }
.editor-side textarea:focus, .editor-side input:focus { outline: none; border-color: var(--blue-500); background: #fff; }
.editor-status-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.editor-actions { display: grid; gap: 8px; }
.editor-actions .btn { margin: 0; }
.editor-side .form-status { margin-top: 12px; font-size: 13.5px; }
.slug-field { display: flex; align-items: center; border: 1px solid var(--line-100); border-radius: 10px; background: var(--paper-50); overflow: hidden; }
.slug-field span { padding: 0 2px 0 12px; color: var(--ink-500); font-size: 14px; }
.editor-side .slug-field input { border: 0; background: none; padding-left: 0; }
.char-count { font-size: 12px; color: var(--ink-500); font-weight: 600; }
.char-count.is-good { color: var(--ok-600); }
.char-count.is-warn { color: #b45309; }
.editor-side-title { font-weight: 700; color: var(--navy-950); margin-bottom: 10px; }
.cover-preview { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--paper-100); display: flex; align-items: center; justify-content: center; color: var(--ink-500); font-size: 13px; margin-bottom: 10px; }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-actions { display: flex; gap: 8px; margin-bottom: 14px; }
.cover-actions .btn { cursor: pointer; }

.cust-list { display: grid; gap: 12px; }
.cust-card { background: #fff; border: 1px solid var(--line-100); border-radius: var(--radius-lg); padding: 18px 20px; }
.cust-head { display: grid; grid-template-columns: auto minmax(160px, 1fr) minmax(0, 2fr) 260px; align-items: center; gap: 16px; }
@media (max-width: 900px) { .cust-head { grid-template-columns: auto 1fr; } .cust-meta, .cust-actions { grid-column: 1 / -1; } }
.avatar-sm { width: 46px; height: 46px; font-size: 16px; margin: 0; }
.cust-info strong { display: flex; align-items: center; gap: 8px; color: var(--navy-950); }
.cust-info > span { font-size: 13px; color: var(--ink-500); }
.cust-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 600px) { .cust-meta { grid-template-columns: 1fr 1fr; } }
.cust-meta div { display: flex; flex-direction: column; min-width: 0; }
.cust-meta dt { font-size: 11.5px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .04em; }
.cust-meta dd { font-size: 13.5px; color: var(--ink-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust-meta a { color: var(--blue-500); }
.cust-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cust-images { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-100); }
.cust-images .image-grid { margin-top: 0; }
.image-empty-inline { color: var(--ink-500); font-size: 14px; }

/* Blog posts published from the admin dashboard */
.live-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 120px 24px; color: var(--ink-500); }
.draft-banner { display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px; background: #fef3c7; color: #92400e; font-weight: 700; font-size: 13px; }
.page-hero .post-title { color: #fff; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.1; margin-bottom: 18px; }
.page-hero--post h1 { max-width: 820px; }
.post-body--no-cover { margin-top: 0; padding-top: 40px; }
.page-hero--post:has(+ .post-body--no-cover) { padding-bottom: 64px; }
.tag-new { background: #fee2e2; color: #b91c1c; }
.prose img { border-radius: 12px; box-shadow: var(--shadow-sm); }
.prose blockquote { border-left: 4px solid var(--blue-500); padding: 6px 0 6px 18px; color: var(--ink-700); font-style: italic; }

/* ===========================================================
   Site search
   =========================================================== */
.search-modal {
  position: fixed; inset: 0; z-index: 210; display: flex; justify-content: center;
  padding: 12vh 20px 40px; background: rgba(3, 6, 28, .8);
}
.search-modal[hidden] { display: none; }
.search-modal-inner {
  width: 100%; max-width: 600px; max-height: 70vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.search-modal-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-100); }
.search-modal-head .icon { width: 20px; height: 20px; color: var(--ink-500); flex: none; }
.search-modal-head input {
  flex: 1; min-width: 0; border: 0; font: inherit; font-size: 17px; color: var(--ink-900); background: none;
}
.search-modal-head input:focus { outline: none; }
.search-modal-head input::-webkit-search-cancel-button { display: none; }
.search-modal-close {
  flex: none; width: 32px; height: 32px; border-radius: 8px; border: 0; background: var(--paper-100);
  color: var(--ink-500); font-size: 15px;
}
.search-modal-close:hover { background: var(--paper-100); color: var(--brand); }
.search-results { overflow-y: auto; padding: 8px; }
.search-result {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 12px; border-radius: 12px; color: inherit;
}
.search-result:hover, .search-result:focus-visible { background: var(--paper-50); }
.search-result-ico {
  flex: none; width: 34px; height: 34px; margin-top: 1px; border-radius: 9px; display: flex; align-items: center;
  justify-content: center; background: var(--blue-100); color: var(--blue-500);
}
.search-result-ico .icon { width: 16px; height: 16px; }
.search-result-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.search-result-text strong { font-size: 15px; color: var(--navy-950); }
.search-result-text span { font-size: 13px; color: var(--ink-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-hint { padding: 8px 24px 24px; color: var(--ink-500); font-size: 14px; }
.search-hint a { color: var(--blue-500); text-decoration: underline; }
.search-hint[hidden] { display: none; }

.back-to-top {
  position: fixed; right: 22px; bottom: 92px; z-index: 89;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-100);
  background: #fff; color: var(--ink-700); box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center; transition: transform .15s ease, opacity .15s ease;
}
.back-to-top .icon { width: 18px; height: 18px; }
.back-to-top:hover { color: var(--blue-500); border-color: var(--blue-500); transform: translateY(-2px); }
.back-to-top[hidden] { display: none; }

/* ===========================================================
   Photo viewer (lightbox)
   =========================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 64px 76px; background: rgba(3, 6, 28, .93);
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.lightbox img {
  max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg);
}
.lightbox figcaption { color: #dfe4ff; font-size: 15px; text-align: center; max-width: 640px; }
.lightbox button {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1); color: #fff; font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lightbox button[hidden] { display: none; }
.lb-close { top: 16px; right: 16px; font-size: 20px !important; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 28px; left: 24px; color: #a3aee0; font-size: 13.5px; font-weight: 600; }
@media (max-width: 600px) {
  .lightbox { padding: 64px 12px 90px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
}

/* ===========================================================
   Reveal-on-scroll (only when JS is running)
   =========================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

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

/* ===========================================================
   Inquiries admin page
   =========================================================== */
.admin-wrap { max-width: 880px; margin: 0 auto; padding: 48px 24px 96px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.admin-head p { color: var(--ink-500); font-size: 14px; }
.admin-toolbar { display: flex; gap: 10px; margin: 22px 0; }
.thread { background: #fff; border: 1px solid var(--line-100); border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.thread-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.thread-head strong { font-size: 15px; color: var(--navy-950); }
.thread-head .meta { font-size: 12.5px; color: var(--ink-500); }
.thread-msg { padding: 8px 0; border-top: 1px dashed var(--line-100); font-size: 13.5px; color: var(--ink-700); }
.thread-msg:first-of-type { border-top: none; }
.thread-msg time { display: block; font-size: 11.5px; color: var(--ink-500); margin-top: 2px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-500); }
.empty-state .ico { font-size: 34px; margin-bottom: 12px; }
