/* ============================== */
/* Custom properties / design tokens */
/* ============================== */
:root {
  --color-ink: #363B3B;
  --color-ink-soft: #6B7070;
  --color-bg: #FFFFFF;
  --color-bg-subtle: #EBEBEB;
  --color-border: #DCDDDD;
  --color-accent: #D62833;
  --color-accent-dark: #B81F29;
  --color-accent-tint: #FBE7E8;
  --color-on-dark: #FFFFFF;
  --color-on-dark-soft: #C7C9C9;

  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Instrument Serif', Georgia, serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.06), 0 16px 40px rgba(0, 0, 0, 0.08);

  --header-height: 104px;
  --container-max: 1200px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, p, figure, blockquote {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

input, textarea {
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================== */
/* Base typography */
/* ============================== */
body {
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem); }
h2 { font-size: clamp(1.75rem, 2.4vw + 1rem, 2.5rem); }
h3 { font-size: 1.25rem; }

.lead {
  font-size: 1.125rem;
  color: var(--color-ink-soft);
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.display-serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

/* ============================== */
/* Layout helpers */
/* ============================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section {
  padding: var(--space-6) 0;
}

/* ============================== */
/* Breadcrumb */
/* ============================== */
.breadcrumb {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--color-ink-soft);
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin: 0 var(--space-1);
  color: var(--color-border);
}

.breadcrumb a {
  color: var(--color-ink-soft);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

.breadcrumb li[aria-current="page"] {
  color: var(--color-ink);
  font-weight: 500;
}

.section--alt {
  background: var(--color-bg-subtle);
}

.section--dark {
  background-color: var(--color-ink);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
  background-size: 28px 28px;
  color: var(--color-on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--color-on-dark);
}

.section--dark .lead {
  color: var(--color-on-dark-soft);
}

.section-header {
  max-width: 720px;
  margin: 0 auto var(--space-5);
  text-align: center;
}

.section-header .eyebrow {
  margin-bottom: var(--space-2);
}

.section-header h2 {
  margin-bottom: var(--space-2);
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-7) 0;
  }
}

/* ============================== */
/* Buttons */
/* ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  transition: transform 150ms var(--ease), box-shadow 150ms var(--ease), background-color 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background: var(--color-bg-subtle);
}

.section--dark .btn-secondary,
.hero--photo .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.section--dark .btn-secondary:hover,
.hero--photo .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

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

.btn-ghost:hover {
  color: var(--color-accent-dark);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ============================== */
/* Cards */
/* ============================== */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin: var(--space-2) 0 var(--space-1);
}

.card p {
  color: var(--color-ink-soft);
  font-size: 0.9375rem;
}

.card-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ============================== */
/* Icon chip */
/* ============================== */
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-tint);
  color: var(--color-accent);
  font-size: 1.25rem;
}

.section--dark .icon-chip {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.founder-photo {
  display: block;
  width: 140px;
  height: 140px;
  margin: 0 auto var(--space-2);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

/* ============================== */
/* Site header / nav */
/* ============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.site-header.is-scrolled {
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-3);
}

.nav-logo {
  display: flex;
  align-items: center;
  padding: var(--space-1) 0;
  flex-shrink: 0;
}

.nav-logo img {
  height: 76px;
  width: auto;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: var(--space-4);
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-ink-soft);
  transition: color 150ms var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--color-ink);
  font-size: 1.25rem;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
  .nav-cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
}

.nav-mobile-panel {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--color-bg);
  z-index: 99;
  padding: var(--space-4) var(--space-3);
  overflow-y: auto;
}

.nav-mobile-panel.is-open {
  display: block;
}

.nav-mobile-panel .nav-link {
  display: block;
  padding: var(--space-2) 0;
  font-size: 1.125rem;
  border-bottom: 1px solid var(--color-border);
}

.nav-mobile-panel .btn-primary {
  margin-top: var(--space-4);
  width: 100%;
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .nav-mobile-panel {
    display: none !important;
  }
}

/* ============================== */
/* Hero */
/* ============================== */
.hero {
  padding: var(--space-7) 0 var(--space-6);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(54, 59, 59, 0.08) 1px, transparent 0);
  background-size: 28px 28px;
}

.hero-content {
  max-width: 760px;
}

.hero-content.center {
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  margin: var(--space-2) 0 var(--space-3);
}

.hero .lead {
  margin-bottom: var(--space-4);
  max-width: 620px;
}

.hero-content.center .lead {
  margin-left: auto;
  margin-right: auto;
}

.hero--photo {
  position: relative;
  background-image: image-set(
    url('../assets/images/hero-coding.webp') type('image/webp'),
    url('../assets/images/hero-coding.jpg') type('image/jpeg')
  );
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(54, 59, 59, 0.94) 0%, rgba(54, 59, 59, 0.88) 45%, rgba(184, 31, 41, 0.55) 100%);
}

.hero--photo .eyebrow {
  color: var(--color-on-dark);
}

.hero--photo h1 {
  color: var(--color-on-dark);
}

.hero--photo .lead {
  color: var(--color-on-dark-soft);
}

.page-hero {
  position: relative;
  padding: var(--space-6) 0 var(--space-5);
  background-color: var(--color-bg-subtle);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(54, 59, 59, 0.08) 1px, transparent 0);
  background-size: 28px 28px;
}

.page-hero .container {
  max-width: 800px;
  text-align: center;
}

.page-hero h1 {
  margin-top: var(--space-2);
}

/* ============================== */
/* Trust strip */
/* ============================== */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 500;
  font-size: 0.9375rem;
}

.trust-item i {
  color: var(--color-accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

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

@media (min-width: 1024px) {
  .trust-strip {
    grid-template-columns: repeat(6, 1fr);
  }
  .trust-item {
    flex-direction: column;
    text-align: center;
    gap: var(--space-1);
  }
}

/* ============================== */
/* Feature / checklist / problem grids */
/* ============================== */
.feature-grid,
.checklist-grid,
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .feature-grid,
  .checklist-grid,
  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.feature-item,
.checklist-item,
.problem-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-2) 0;
}

.feature-item i,
.checklist-item i,
.problem-item i {
  color: var(--color-accent);
  font-size: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.checklist-item span,
.feature-item span,
.problem-item span {
  font-weight: 500;
}

/* ============================== */
/* About snapshot / statement blocks */
/* ============================== */
.prose {
  max-width: 680px;
  margin: 0 auto;
}

.prose p + p {
  margin-top: var(--space-3);
}

.statement-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

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

.statement-block {
  padding: var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.statement-block .eyebrow {
  margin-bottom: var(--space-2);
}

.statement-block p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--color-ink);
}

/* ============================== */
/* Service detail blocks (services.html) */
/* ============================== */
.service-detail {
  padding: var(--space-6) 0;
}

.service-detail-inner {
  display: grid;
  gap: var(--space-3);
  max-width: 760px;
}

.service-detail .icon-chip {
  margin-bottom: var(--space-2);
}

/* ============================== */
/* Flagship banner / CTA banner */
/* ============================== */
.flagship-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.cta-banner {
  background: var(--color-accent-tint);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  text-align: center;
}

.cta-banner h2 {
  margin-bottom: var(--space-3);
}

.cta-banner .btn-group {
  justify-content: center;
}

/* ============================== */
/* Demo / brochure panels (tms.html) */
/* ============================== */
.info-panel {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  max-width: 480px;
}

.info-panel-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.info-panel-row:last-child {
  border-bottom: none;
}

.info-panel-row .label {
  color: var(--color-ink-soft);
  font-weight: 500;
}

.info-panel-row .value {
  font-weight: 600;
  font-family: monospace;
}

.info-panel .btn {
  width: 100%;
  margin-top: var(--space-3);
}

/* ============================== */
/* Contact methods grid */
/* ============================== */
.contact-methods-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

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

.contact-method {
  text-align: center;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.contact-method .icon-chip {
  margin: 0 auto var(--space-2);
}

.contact-method h3 {
  font-size: 1rem;
  margin-bottom: var(--space-1);
}

.contact-method p {
  color: var(--color-ink-soft);
  font-size: 0.9375rem;
}

/* ============================== */
/* Consultation form */
/* ============================== */
.consultation-form {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-3);
}

.form-row {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .form-row.two-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  font-size: 0.9375rem;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-tint);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-success {
  padding: var(--space-3);
  background: var(--color-accent-tint);
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-align: center;
}

.form-success[hidden] {
  display: none;
}

.form-error {
  padding: var(--space-3);
  background: #FDEAEA;
  color: #9B1C1C;
  border: 1px solid #F3C2C2;
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-align: center;
  margin-bottom: var(--space-3);
}

.form-error[hidden] {
  display: none;
}

/* ============================== */
/* Footer */
/* ============================== */
.site-footer {
  background: var(--color-ink);
  color: var(--color-on-dark-soft);
  padding: var(--space-7) 0 var(--space-3);
}

.footer-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-5);
}

.footer-brand img {
  height: 160px;
  margin-bottom: var(--space-3);
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.footer-col ul li {
  margin-bottom: var(--space-1);
}

.footer-col a {
  font-size: 0.9375rem;
  transition: color 150ms var(--ease);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--space-3);
  font-size: 0.8125rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

/* ============================== */
/* Signature numeral watermark */
/* ============================== */
.numeral-mark {
  position: relative;
}

.numeral-mark::after {
  content: '01';
  position: absolute;
  top: -0.12em;
  right: var(--space-3);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(6rem, 13vw, 10rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.055);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.numeral-mark > .container {
  position: relative;
  z-index: 1;
}

.numeral-mark--tint::after {
  color: rgba(214, 40, 51, 0.07);
}

.page-hero.numeral-mark::after {
  top: auto;
  bottom: -0.18em;
  right: var(--space-4);
}

@media (max-width: 640px) {
  .numeral-mark::after {
    font-size: 5.5rem;
  }
}

/* ============================== */
/* Hero split layout (text + visual) */
/* ============================== */
.hero-grid {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid--split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-6);
  }
}

/* ============================== */
/* Dashboard mock (product visual) */
/* ============================== */
.dashboard-mock {
  --dm-bg: #12181b;
  background: linear-gradient(160deg, #1c2226 0%, #12161a 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
}

.dashboard-mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-mock__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.dashboard-mock__bar span:first-child {
  background: var(--color-accent);
}

.dashboard-mock__tabs {
  margin-left: auto;
  display: flex;
  gap: var(--space-2);
}

.dashboard-mock__tabs em {
  font-style: normal;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
}

.dashboard-mock__tabs em:first-child {
  color: #fff;
}

.dashboard-mock__body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.dashboard-mock__map,
.dashboard-mock__stats {
  background: var(--dm-bg);
  padding: var(--space-3);
  position: relative;
}

.dashboard-mock__map {
  min-height: 180px;
}

.dashboard-mock__map svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.dashboard-mock__map path {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: dm-draw 2.4s var(--ease) forwards 0.3s;
}

.dashboard-mock__map .pin {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(214, 40, 51, 0.35);
}

.dashboard-mock__map .pin--start {
  left: 13%;
  bottom: 18%;
}

.dashboard-mock__map .pin--end {
  right: 12%;
  top: 16%;
  background: var(--color-accent);
}

@keyframes dm-draw {
  to { stroke-dashoffset: 0; }
}

.dashboard-mock__stats .stat-chip {
  margin-bottom: var(--space-2);
}

.stat-chip__label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 2px;
}

.stat-chip__value {
  display: block;
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
}

.dashboard-mock__bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 48px;
  margin-top: var(--space-3);
}

.dashboard-mock__bars i {
  flex: 1;
  display: block;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--color-accent) 0%, rgba(214, 40, 51, 0.35) 100%);
  height: var(--h);
  font-style: normal;
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-mock__map path {
    animation: none;
    stroke-dashoffset: 0;
  }
}

@media (max-width: 767px) {
  .dashboard-mock__body {
    grid-template-columns: 1fr;
  }
  .dashboard-mock {
    max-width: 420px;
    margin: 0 auto;
  }
}

/* ============================== */
/* Shield mark (security sections) */
/* ============================== */
.security-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  text-align: left;
  margin-bottom: var(--space-5);
}

.security-header .section-header {
  margin: 0;
  text-align: left;
  max-width: none;
}

.shield-mark {
  width: 92px;
  height: 108px;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 20px rgba(214, 40, 51, 0.25));
}

.shield-mark svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 640px) {
  .security-header {
    justify-content: center;
    text-align: center;
  }
  .security-header .section-header {
    text-align: center;
  }
}

/* ============================== */
/* Services radial diagram */
/* ============================== */
.services-radial {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  margin: var(--space-5) auto 0;
}

.services-radial__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.services-radial__lines line {
  stroke: var(--color-border);
  stroke-width: 0.6;
}

.services-radial__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--color-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-family: var(--font-display);
  font-style: italic;
  box-shadow: 0 8px 24px rgba(54, 59, 59, 0.25);
}

.services-radial__node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 92px;
  text-align: center;
}

.services-radial__node i {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent-tint);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.services-radial__node em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-ink-soft);
}

@media (max-width: 560px) {
  .services-radial {
    max-width: 300px;
  }
  .services-radial__node {
    width: 68px;
  }
  .services-radial__node em {
    font-size: 0.625rem;
  }
  .services-radial__node i {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }
  .services-radial__center {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }
}

/* ============================== */
/* Architecture layer diagram (technologies.html) */
/* ============================== */
.arch-diagram {
  max-width: 640px;
  margin: 0 auto;
}

.arch-layer {
  position: relative;
  display: flex;
  gap: var(--space-3);
  padding-bottom: var(--space-5);
}

.arch-layer:last-child {
  padding-bottom: 0;
}

.arch-layer:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: calc(-1 * var(--space-5) + 8px);
  width: 2px;
  background: var(--color-border);
}

.arch-layer .icon-chip {
  flex-shrink: 0;
}

.arch-layer h3 {
  margin-bottom: 0.25rem;
}

.arch-layer p {
  color: var(--color-ink-soft);
  font-size: 0.9375rem;
  margin: 0;
}

/* ============================== */
/* About: story grid + stat panel */
/* ============================== */
.story-grid {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

@media (min-width: 900px) {
  .story-grid {
    grid-template-columns: 1.3fr 0.9fr;
    gap: var(--space-6);
  }
}

.about-stats {
  display: grid;
  gap: var(--space-3);
}

.about-stats__item {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  text-align: center;
}

.about-stats__num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.5rem;
  color: var(--color-accent);
  line-height: 1;
}

.about-stats__label {
  display: block;
  margin-top: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-ink-soft);
}

/* ============================== */
/* Scroll reveal */
/* ============================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================== */
/* Anchor scroll offset */
/* ============================== */
[id] {
  scroll-margin-top: calc(var(--header-height) + var(--space-2));
}
