/* Lecilla landing — Dreamix-inspired corporate, not generic AI slate */

:root {
  --ink: #0c1222;
  --ink-soft: #1a2438;
  --muted: #5b657a;
  --line: #e4e8f0;
  --paper: #f7f8fb;
  --white: #ffffff;
  --accent: #1f6bff;
  --accent-deep: #0d4fd6;
  --accent-soft: #e8f0ff;
  --warm: #c45c26;
  --success: #0f7a4a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(12, 18, 34, 0.08);
  --header-h: 64px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-deep);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Top stage: shared animated mesh under header + hero
   Slightly taller than viewport so first paint = only gradient block */
.top-stage {
  position: relative;
  isolation: isolate;
  background: #fafbff;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh + 3.5rem);
}

.top-stage-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  will-change: transform;
  opacity: 0.85;
}

.mesh-blob-a {
  width: min(70vw, 720px);
  height: min(70vw, 720px);
  top: -18%;
  right: -8%;
  background: #9ec0ff;
  animation: mesh-drift-a 18s ease-in-out infinite alternate;
}

.mesh-blob-b {
  width: min(58vw, 560px);
  height: min(58vw, 560px);
  top: -8%;
  left: -12%;
  background: #ffc29a;
  animation: mesh-drift-b 22s ease-in-out infinite alternate;
}

.mesh-blob-c {
  width: min(48vw, 480px);
  height: min(48vw, 480px);
  bottom: -12%;
  left: 38%;
  background: #c4d6ff;
  animation: mesh-drift-c 20s ease-in-out infinite alternate;
}

.mesh-blob-d {
  width: min(36vw, 360px);
  height: min(36vw, 360px);
  top: 42%;
  right: 18%;
  background: #ffe0c4;
  opacity: 0.7;
  animation: mesh-drift-d 16s ease-in-out infinite alternate;
}

@keyframes mesh-drift-a {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-8%, 12%) scale(1.12); }
}

@keyframes mesh-drift-b {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10%, 8%) scale(1.1); }
}

@keyframes mesh-drift-c {
  0% { transform: translate(0, 0) scale(1.05); }
  100% { transform: translate(-12%, -10%) scale(1); }
}

@keyframes mesh-drift-d {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(14%, -8%) scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .mesh-blob {
    animation: none !important;
  }
}

.top-stage > .site-header,
.top-stage > .hero {
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, backdrop-filter 0.2s;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(12, 18, 34, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
  text-decoration: none;
}

.logo:hover {
  color: var(--ink);
}

.logo-mark {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 4px;
  background:
    linear-gradient(135deg, var(--accent) 0%, #5b9dff 55%, var(--warm) 120%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.nav {
  display: none;
  gap: 1.35rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 40px;
  padding: 0 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--white) 72%, transparent);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.lang-flag:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--white);
}

.lang-flag:active {
  transform: scale(0.97);
}

.lang-flag-emoji {
  font-size: 1.05rem;
  line-height: 1;
}

.lang-flag-code {
  min-width: 1.4em;
}

.site-header.is-scrolled .lang-flag {
  background: var(--white);
}

.footer-lang {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-self: start;
}

.footer-lang-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 10.5rem;
  height: 42px;
  padding: 0 2.25rem 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%23556074' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
}

.lang-select:hover,
.lang-select:focus {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  outline: none;
}

.header-phone {
  display: none;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1rem 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.75rem 0.5rem;
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
}

.mobile-nav a:hover {
  background: var(--paper);
}

.mobile-nav .btn {
  margin-top: 0.5rem;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}

.btn:hover {
  color: inherit;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: #c8d0e0;
  background: var(--paper);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding-inline: 0.5rem;
}

.btn-lg {
  padding: 0.85rem 1.35rem;
  font-size: 0.98rem;
}

/* Hero */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.25rem 0 1.5rem;
  background: transparent;
}

.hero-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow.light {
  color: #8fb4ff;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-deep);
}

.lead {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 32rem;
}

.lead.light-muted {
  color: #b8c2d6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0;
}

.hero-panel {
  display: grid;
  gap: 0.5rem;
}

.hero-panel-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  box-shadow: 0 10px 28px rgba(12, 18, 34, 0.06);
  backdrop-filter: blur(8px);
}

.hero-panel-card:nth-child(2) {
  transform: translateX(0);
}

.panel-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--warm);
  margin-bottom: 0.15rem;
}

.hero-panel-card h2 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.hero-panel-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

/* Stats */
.stats {
  border-block: 1px solid var(--line);
  background: var(--paper);
  padding: 1.75rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat span {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--paper);
}

.section-dark {
  background: var(--ink);
  color: var(--white);
  padding-bottom: 3.5rem;
}

.section-head {
  margin-bottom: 2.25rem;
  max-width: 40rem;
}

.section-head h2,
.about-grid h2,
.contact-section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 700;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-dark .section-sub {
  color: #b8c2d6;
}

.row-head {
  display: grid;
  gap: 1rem;
}

/* Services — text-first + thumb (G) with cut corner */
.service-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

.section-services {
  background: var(--paper);
}

.svc-grid {
  display: grid;
  gap: 1rem;
}

.svc-card {
  --cut: 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.2rem 1.25rem 1.2rem;
  /* cut top-right corner */
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    0 100%
  );
  border-radius: 14px 0 14px 14px;
  box-shadow: 0 8px 28px rgba(12, 18, 34, 0.05);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.svc-card:hover {
  border-color: #d0d7e4;
  box-shadow: 0 12px 36px rgba(12, 18, 34, 0.08);
}

.svc-card.is-open {
  border-color: #c5d4f5;
  box-shadow: 0 12px 36px rgba(31, 107, 255, 0.08);
}

.svc-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.95rem;
}

.svc-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--paper);
}

.svc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.svc-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.svc-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.svc-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.svc-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  letter-spacing: -0.025em;
  line-height: 1.25;
  padding-right: 0.5rem;
}

.svc-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
}

.svc-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.svc-more:hover {
  color: var(--accent-deep);
}

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

.svc-more-arrow {
  transition: transform 0.2s ease;
  color: var(--accent);
}

.svc-card.is-open .svc-more-arrow {
  transform: rotate(90deg);
}

.svc-fold {
  margin-top: 0.95rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  animation: svc-in 0.25s ease;
}

.svc-fold[hidden] {
  display: none;
}

@keyframes svc-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.svc-fold p {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.svc-fold ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.svc-fold li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.svc-fold li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

@media (min-width: 768px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
  }
}

@media (min-width: 1024px) {
  .svc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-card,
  .svc-more-arrow,
  .svc-fold {
    transition: none;
    animation: none;
  }
}

/* Industries */
.section-industries {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.industries-bg {
  position: absolute;
  inset: -40px;
  z-index: 0;
  background: url("../assets/industries/bg.jpg") center / cover no-repeat;
  filter: blur(10px) saturate(0.92) brightness(1.04);
  transform: scale(1.08);
  pointer-events: none;
}

.section-industries::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(247, 248, 251, 0.32) 0%,
    rgba(247, 248, 251, 0.46) 100%
  );
  pointer-events: none;
}

.section-industries > .container {
  position: relative;
  z-index: 2;
}

.industries-grid {
  display: grid;
  gap: 0.85rem;
}

.industry-card {
  display: block;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
  backdrop-filter: blur(12px);
  transition: border-color 0.15s, transform 0.15s;
}

.industry-card:hover {
  border-color: var(--accent);
  color: inherit;
  transform: translateY(-2px);
}

.industry-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.industry-card p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.industry-icon {
  display: block;
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.55rem;
  line-height: 1;
}

.industry-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-deep);
}

/* How */
.how-grid {
  display: grid;
  gap: 2rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 0;
}

.step-num {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--warm);
  line-height: 1;
  padding-top: 0.15rem;
}

.steps h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* About */
.about-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.jurisdiction {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.jurisdiction > div {
  border-left: 2px solid rgba(143, 180, 255, 0.5);
  padding-left: 1rem;
}

.jurisdiction h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.jurisdiction p {
  margin: 0;
  color: #b8c2d6;
  font-size: 0.92rem;
}

.team-stack {
  display: grid;
  gap: 0.75rem;
}

.team-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.15rem;
}

.team-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.team-card p {
  margin: 0;
  color: #b8c2d6;
  font-size: 0.9rem;
}

.team-label {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fb4ff;
}

.person-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}

.person-card h3 {
  margin: 0 0 0.15rem;
  font-size: 1rem;
}

.person-card .role {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8fb4ff;
}

.person-card p:last-child {
  margin: 0;
  color: #b8c2d6;
  font-size: 0.88rem;
}

.avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  flex-shrink: 0;
}

.av-1 { background: linear-gradient(135deg, #1f6bff, #5b9dff); }
.av-2 { background: linear-gradient(135deg, #c45c26, #e08a4f); }
.av-3 { background: linear-gradient(135deg, #5b3cc4, #8b6dff); }
.av-4 { background: linear-gradient(135deg, #0f7a4a, #2db87a); }

.certs .eyebrow {
  margin-bottom: 1rem;
}

.certs-grid {
  display: grid;
  gap: 0.75rem;
}

.cert-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.15rem;
}

.cert-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8fb4ff;
  margin-bottom: 0.45rem;
}

.cert-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.cert-card p {
  margin: 0 0 0.55rem;
  color: #b8c2d6;
  font-size: 0.88rem;
}

.cert-id {
  font-size: 0.75rem;
  color: #8a95ab;
  font-variant-numeric: tabular-nums;
}

/* Cases */
.cases-grid {
  display: grid;
  gap: 0.85rem;
}

.case-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.case-card.rich {
  transition: border-color 0.15s, box-shadow 0.15s;
}

.case-card.rich:hover {
  border-color: #c9d4ea;
  box-shadow: var(--shadow);
}

.case-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.case-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  margin: 0;
}

.case-year {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.case-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.case-card > p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.case-metrics div {
  min-width: 0;
}

.case-metrics dt {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 0.15rem;
}

.case-metrics dd {
  margin: 0;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Quotes */
.quotes-grid {
  display: grid;
  gap: 0.85rem;
}

.quote-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
}

.quote-card p {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.quote-card footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.quote-card strong {
  font-size: 0.92rem;
  font-family: var(--font);
}

.quote-card span {
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--font);
}

/* Shop */
.section-shop {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.shop-bg {
  position: absolute;
  inset: -40px;
  z-index: 0;
  background: url("../assets/shop/bg.jpg") center / cover no-repeat;
  filter: blur(10px) saturate(0.92) brightness(1.04);
  transform: scale(1.08);
  pointer-events: none;
}

.section-shop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(247, 248, 251, 0.32) 0%,
    rgba(247, 248, 251, 0.46) 100%
  );
  pointer-events: none;
}

.section-shop > .container {
  position: relative;
  z-index: 2;
}

.shop-grid {
  display: grid;
  gap: 0.85rem;
}

.shop-card {
  position: relative;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
}

.shop-card.featured-shop {
  border-color: #b9ceff;
  background: linear-gradient(160deg, rgba(244, 248, 255, 0.92) 0%, rgba(255, 255, 255, 0.88) 50%);
  box-shadow: var(--shadow);
}

.shop-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--warm);
  color: var(--white);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

.shop-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.shop-price strong {
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.shop-price span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
}

.shop-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.shop-card > p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.shop-card ul {
  margin: 0 0 1.25rem;
  padding: 0 0 0 1.1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  flex: 1;
}

.shop-card li + li {
  margin-top: 0.3rem;
}

.shop-card .btn {
  align-self: flex-start;
}

/* Contact */
.contact-section {
  background:
    radial-gradient(ellipse 70% 50% at 0% 100%, #e8f0ff 0%, transparent 55%),
    var(--white);
}

.contact-grid {
  display: grid;
  gap: 2.25rem;
}

.contact-points {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.contact-points li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: 0.95rem;
}

.contact-points strong {
  min-width: 5rem;
  color: var(--muted);
  font-weight: 600;
}

.contact-points a {
  color: var(--accent-deep);
  font-weight: 600;
  text-decoration: none;
}

.contact-points a:hover {
  text-decoration: underline;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  background: var(--paper);
  transition: border-color 0.15s, background 0.15s;
}

.contact-form select {
  cursor: pointer;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-hours {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.contact-form .check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-form .check input {
  margin-top: 0.2rem;
  width: auto;
  accent-color: var(--accent);
}

.form-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--success);
  min-height: 1.2em;
}

.form-note.is-error {
  color: #b42318;
}

/* Footer */
/* Back to top */
.back-top {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 200;
  display: none;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.7rem 0.95rem 0.7rem 0.8rem;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(12, 18, 34, 0.28);
  transform: translateY(10px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s;
}

.back-top.is-visible {
  display: inline-flex;
  opacity: 1;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--accent-deep);
  color: var(--white);
}

.back-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.back-top svg {
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .back-top span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .back-top {
    padding: 0.85rem;
    border-radius: 50%;
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.75rem 0 2.25rem;
  background: var(--paper);
}

.footer-grid {
  display: grid;
  gap: 2rem 2.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.footer-brand .logo {
  display: inline-flex;
}

.footer-tagline {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 18rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.footer-nav a {
  display: block;
  padding: 0.35rem 0;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.footer-legal-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-legal {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #8a95ab;
}

.footer-legal-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin-top: 0.25rem;
}

.footer-legal a {
  color: #8a95ab;
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--accent);
}

/* Desktop */
@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .header-phone {
    display: inline-flex;
  }

  .hero {
    gap: 1.75rem;
    padding: 1.5rem 0 1.75rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
  }

  .hero-panel-card:nth-child(2) {
    transform: translateX(0.85rem);
  }

  .hero-panel-card:nth-child(3) {
    transform: translateX(0.35rem);
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .sticky-head {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }

  .about-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }

  .jurisdiction {
    grid-template-columns: 1fr 1fr;
  }

  .certs-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cases-grid,
  .quotes-grid,
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cases-grid.full {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .row-head {
    grid-template-columns: 1fr 0.8fr;
    align-items: end;
  }

  .section-sub.narrow {
    max-width: 22rem;
  }

  .footer-grid {
    grid-template-columns: minmax(12rem, 1.15fr) auto minmax(12rem, 1fr);
    gap: 2rem 3rem;
  }

  .footer-meta {
    justify-self: end;
    align-items: flex-end;
    text-align: right;
  }

  .footer-lang {
    align-items: flex-end;
  }

  .footer-legal-block {
    align-items: flex-end;
  }

  .footer-legal-links {
    align-items: flex-end;
  }
}

@media (min-width: 1024px) {
  .industries-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cases-grid.full {
    grid-template-columns: repeat(3, 1fr);
  }
}
