/* ==========================================================================
   MDR Tech — design system
   A warm, editorial enterprise language: precise lines, quiet color, sharp type.
   ========================================================================== */

:root {
  --paper: #FFFFFF;
  --paper-deep: #F2F8FD;
  --paper-light: #FFFFFF;
  --ink: #0A2540;
  --ink-soft: #14395B;
  --muted: #4F6D87;
  --line: #D7E6F2;
  --line-dark: rgba(255, 255, 255, 0.12);
  --signal: #0B60B0;
  --signal-dark: #084A8A;
  --teal: #00A9FF;
  --amber: #E53935;
  --violet: #0B60B0;
  --radius: 5px;
  --container: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-feature-settings: "ss01" on, "cv11" on;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--signal); color: #fff; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img, svg { display: block; max-width: 100%; }
[x-cloak] { display: none !important; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--ink);
  padding: 0.7rem 1rem;
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 700;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) { .container { padding-inline: 2rem; } }
@media (min-width: 1200px) { .container { padding-inline: 2.5rem; } }

/* --------------------------------------------------------------------------
   Type & common elements
   -------------------------------------------------------------------------- */

.section-kicker {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title {
  margin: 0.85rem 0 0;
  font-size: clamp(2.25rem, 4.3vw, 4rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.section-title em,
.page-title em,
.hero-title-serif {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.035em;
  color: var(--signal);
}
.section-title em { color: var(--signal); }
.section-head--light .section-title em { color: rgba(255, 255, 255, 0.66); }

.section {
  position: relative;
  padding: 5.5rem 0;
}
.section--tight { padding: 2.5rem 0 5rem; }
.section--paper-deep {
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
}
.section--dark {
  background: var(--ink);
  color: var(--paper);
}

.section-head {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2.75rem;
}
.section-head-side { max-width: 31rem; }
.section-head-side p {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--muted);
}
.section-head--light .section-head-side p,
.section-head--light .section-kicker { color: rgba(255, 255, 255, 0.5); }
@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4rem;
  }
  .section-head-side { justify-self: end; }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.text-link svg { transition: transform 0.25s var(--ease); }
.text-link:hover { color: var(--signal); border-color: var(--signal); }
.text-link:hover svg { transform: translateX(3px); }

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 169, 255, 0.11);
}
.status-dot--light {
  background: #00A9FF;
  box-shadow: 0 0 0 3px rgba(0, 169, 255, 0.13);
}

.btn {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.015em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--ink-soft); }
.btn--outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--ink); background: rgba(10, 37, 64, 0.03); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--sm { min-height: 2.3rem; padding: 0.62rem 0.95rem; font-size: 0.72rem; }
.btn:disabled { cursor: wait; opacity: 0.62; transform: none; }
.btn-arrow { font-size: 0.95em; transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translate(2px, -2px); }

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */

.utility-bar {
  background: var(--ink);
  color: var(--paper);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(10, 37, 64, 0.1);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 32px rgba(10, 37, 64, 0.045);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  color: var(--ink);
  transition: transform 0.3s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-4deg); }
.brand-type { display: flex; flex-direction: column; gap: 0.18rem; }
.brand-name {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.1em;
}
.brand-sub {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.42rem;
  line-height: 1;
  letter-spacing: 0.13em;
  color: var(--muted);
}
.brand--light .brand-mark { color: var(--paper); }
.brand--light .brand-name { color: var(--paper); }
.brand--light .brand-sub { color: rgba(255, 255, 255, 0.4); }

.nav-link {
  position: relative;
  padding: 0.6rem 0.72rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: var(--ink); background: rgba(10, 37, 64, 0.04); }
.nav-link.is-active { color: var(--ink); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  bottom: 0.15rem;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--signal);
  transform: translateX(-50%);
}
.icon-button {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.icon-button svg { width: 1rem; height: 1rem; }
.icon-button:hover { color: var(--ink); border-color: var(--ink); background: rgba(10, 37, 64, 0.03); }

.menu-button {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.menu-line {
  display: block;
  width: 15px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}
.mobile-menu {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 30px 60px rgba(10, 37, 64, 0.12);
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.mobile-nav-link:first-child { border-top: 1px solid var(--line); }
.mobile-nav-link:hover { color: var(--signal); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.footer-cta {
  display: grid;
  gap: 2rem;
  align-items: end;
  border-bottom: 1px solid var(--line-dark);
  padding: 4.5rem 0;
}
.footer-heading {
  margin: 1rem 0 0;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.06em;
}
.footer-heading em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
  color: #5CC8FF;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
  padding: 3.25rem 0;
}
.footer-label {
  margin: 0 0 1.1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.35);
}
.footer-links { display: grid; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.footer-links a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-dark);
  padding: 1.5rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
}
.footer-wordmark {
  overflow: hidden;
  margin-top: 2rem;
  padding-bottom: 0.5rem;
  font-size: clamp(4.8rem, 15.8vw, 14rem);
  font-weight: 800;
  line-height: 0.7;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  user-select: none;
}
.footer-wordmark span {
  color: rgba(255, 255, 255, 0.045);
  -webkit-text-stroke: 0;
}
@media (min-width: 800px) {
  .footer-cta { grid-template-columns: 1fr auto; }
  .footer-grid { grid-template-columns: 1.6fr 0.8fr 0.9fr 0.8fr; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero,
.page-hero,
.project-hero,
.error-page {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero { background: var(--paper); }
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(10, 37, 64, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 37, 64, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 55% 30%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse at 55% 30%, #000 10%, transparent 72%);
  opacity: 0.7;
}
.hero-glow {
  position: absolute;
  top: -18rem;
  right: -12rem;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 96, 176, 0.12), transparent 64%);
  pointer-events: none;
}
.eyebrow-row { display: flex; align-items: center; gap: 0.8rem; }
.eyebrow-rule { width: 2rem; height: 1px; background: var(--signal); }
.hero-title {
  margin: 1.5rem 0 0;
  font-size: clamp(3.35rem, 7.4vw, 6.7rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.075em;
}
.hero-title-serif { padding-right: 0.04em; }
.hero-lede {
  max-width: 36rem;
  margin: 2rem 0 0;
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  line-height: 1.8;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.proof-stack { display: flex; }
.proof-stack span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  margin-left: -0.4rem;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.48rem;
  letter-spacing: -0.03em;
}
.proof-stack span:first-child { margin-left: 0; background: var(--signal); }
.proof-stack span:nth-child(2) { background: #0077B6; }
.proof-stack span:nth-child(3) { background: #B71C1C; }
.hero-proof p { margin: 0; font-size: 0.68rem; line-height: 1.55; }
.hero-proof p strong { font-weight: 700; }
.hero-proof p span { color: var(--muted); }
.proof-divider { width: 1px; height: 2rem; background: var(--line); }

.hero-runtime {
  position: relative;
  overflow: hidden;
  border: 1px solid #0E2C47;
  border-radius: 7px;
  background: #06192A;
  color: var(--paper);
  box-shadow: 0 32px 90px rgba(10, 37, 64, 0.2);
}
.hero-runtime::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 20%, #000, transparent 78%);
}
.hero-runtime-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0.9rem 1.1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.56rem;
  letter-spacing: 0.13em;
  color: rgba(255, 255, 255, 0.55);
}
.runtime-body { position: relative; padding: 1.25rem; }
.runtime-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.32);
}
.runtime-live { display: flex; align-items: center; gap: 0.4rem; color: #00A9FF; }
.runtime-live i { width: 5px; height: 5px; border-radius: 50%; background: #00A9FF; animation: pulse 2.4s infinite; }
.runtime-gateway {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.8rem;
  border: 1px solid rgba(0, 169, 255, 0.35);
  border-radius: 4px;
  background: rgba(11, 96, 176, 0.12);
  padding: 0.9rem 1rem;
}
.runtime-node-kicker {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.47rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.38);
}
.runtime-gateway strong { display: block; margin-top: 0.22rem; font-size: 0.8rem; font-weight: 600; }
.runtime-latency {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.6rem;
  color: #9BD9FF;
}
.runtime-connector { display: flex; height: 1.45rem; justify-content: center; }
.runtime-connector span { width: 1px; height: 100%; background: linear-gradient(rgba(0, 169, 255, 0.5), rgba(255, 255, 255, 0.08)); }
.runtime-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; }
.runtime-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.025);
  padding: 0.65rem 0.7rem;
}
.node-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.7);
}
.runtime-node small {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.48rem;
  color: rgba(255, 255, 255, 0.3);
}
.runtime-event {
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.8rem;
}
.runtime-event-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.48rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.28);
}
.runtime-event p {
  display: flex;
  gap: 0.55rem;
  margin: 0.35rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.52rem;
  color: rgba(255, 255, 255, 0.42);
}
.event-tag { min-width: 5.7rem; color: #9BD9FF; }
.event-tag--teal { color: #7DD3FC; }
.event-tag--amber { color: #FFCDD2; }
.hero-runtime-foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0.75rem 1.1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.3);
}
.hero-runtime-foot span { display: flex; align-items: center; gap: 0.4rem; }
.runtime-floating-note {
  position: absolute;
  right: -1.25rem;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-light);
  padding: 0.8rem 0.9rem;
  box-shadow: 0 18px 45px rgba(10, 37, 64, 0.12);
}
.runtime-floating-note strong { font-size: 1.15rem; line-height: 1; letter-spacing: -0.04em; }
.vertical-note {
  position: absolute;
  top: 2rem;
  left: -2.6rem;
  transform: rotate(-90deg);
  transform-origin: left top;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.48rem;
  letter-spacing: 0.18em;
  color: rgba(10, 37, 64, 0.26);
  white-space: nowrap;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */

.stats-strip { border-bottom: 1px solid var(--line); background: var(--paper); }
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 1.1rem;
}
.stat-item:nth-child(odd) { border-right: 1px solid var(--line); }
.stat-value {
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.06em;
}
.stat-label {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.57rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.stat-detail { font-size: 0.66rem; line-height: 1.45; color: var(--muted); }
@media (min-width: 1024px) {
  .stat-item { border-bottom: 0; border-right: 1px solid var(--line); padding: 2rem 1.6rem; }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat-item:last-child { border-right: 0; }
}

/* --------------------------------------------------------------------------
   Project cards
   -------------------------------------------------------------------------- */

.project-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.project-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-light);
  transition: transform 0.4s var(--ease), border-color 0.3s ease, box-shadow 0.4s var(--ease);
}
.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(10, 37, 64, 0.3);
  box-shadow: 0 28px 70px rgba(10, 37, 64, 0.08);
}
.project-card-visual {
  position: relative;
  display: block;
  height: 390px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.project-card-visual .mockup { height: 100%; }
.project-card-index {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 4;
  border: 1px solid rgba(10, 37, 64, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.35rem 0.55rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  backdrop-filter: blur(6px);
}
.project-card-open {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-light);
  box-shadow: 0 6px 18px rgba(10, 37, 64, 0.09);
  transition: background 0.2s ease, color 0.2s ease, transform 0.3s var(--ease);
}
.project-card:hover .project-card-open {
  transform: rotate(45deg);
  background: var(--ink);
  color: var(--paper);
}
.project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.4rem;
}
.project-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.48rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.status-pill--emerald { color: #0284C7; border-color: rgba(0, 169, 255, 0.22); background: rgba(0, 169, 255, 0.06); }
.status-pill--emerald .status-dot { background: #00A9FF; box-shadow: none; }
.status-pill--amber { color: #C62828; border-color: rgba(229, 57, 53, 0.24); background: rgba(229, 57, 53, 0.06); }
.status-pill--amber .status-dot { background: #E53935; box-shadow: none; }
.status-pill--indigo { color: #0B60B0; border-color: rgba(11, 96, 176, 0.24); background: rgba(11, 96, 176, 0.06); }
.status-pill--indigo .status-dot { background: #0B60B0; box-shadow: none; }
.status-pill--slate { color: #4F6D87; border-color: var(--line); background: rgba(10, 37, 64, 0.03); }
.status-pill--slate .status-dot { background: #5B7388; box-shadow: none; }
.project-categories {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.48rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.project-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
}
.project-title-row h3 {
  margin: 0;
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
}
.project-title-row h3 a { transition: color 0.2s ease; }
.project-title-row h3 a:hover { color: var(--signal); }
.project-year {
  flex: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.project-summary {
  margin: 0.75rem 0 1.25rem;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted);
}
.project-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.tech-list { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.tech-list span {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.24rem 0.38rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.46rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.project-card-foot .text-link { border-bottom: 0; padding-bottom: 0; font-size: 0.68rem; }

/* --------------------------------------------------------------------------
   Interface mockups
   -------------------------------------------------------------------------- */

.accent--indigo { --accent: #0B60B0; --accent-soft: #E6F4FF; --accent-ink: #084A8A; }
.accent--teal { --accent: #00A9FF; --accent-soft: #E0F2FE; --accent-ink: #0369A1; }
.accent--amber { --accent: #E53935; --accent-soft: #FFEBEE; --accent-ink: #B71C1C; }
.accent--violet { --accent: #0B60B0; --accent-soft: #E3F2FD; --accent-ink: #0B60B0; }
.accent--slate { --accent: #33526D; --accent-soft: #D7E6F2; --accent-ink: #1E3A52; }

.mockup {
  --accent: #0B60B0;
  --accent-soft: #E6F4FF;
  --accent-ink: #084A8A;
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  min-height: 390px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 16%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 42%),
    linear-gradient(145deg, #f0efe9 0%, #e5e3db 100%);
}
.mockup::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(10, 37, 64, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 37, 64, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 15%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 15%, transparent 78%);
}
.mockup::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -18%;
  z-index: 0;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow:
    0 0 0 34px color-mix(in srgb, var(--accent) 3%, transparent),
    0 0 0 68px color-mix(in srgb, var(--accent) 2%, transparent);
  pointer-events: none;
}
.mockup-stage {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: inherit;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.mockup--hero { min-height: 560px; }
.mockup--gallery { min-height: 430px; }
.mockup--card { min-height: 390px; }

/* Kiosk --------------------------------------------------------------- */

.kiosk-shell {
  position: relative;
  width: 230px;
  max-width: 74%;
  aspect-ratio: 9 / 14;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 19px;
  background: #191b1e;
  box-shadow: 0 34px 70px rgba(10, 37, 64, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: rotate(-2deg);
}
.mockup--card .kiosk-shell { width: 205px; }
.mockup--hero .kiosk-shell { width: 300px; }
.mockup--gallery .kiosk-shell { width: 252px; }
.kiosk-camera {
  position: absolute;
  top: 4px;
  left: 50%;
  z-index: 3;
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: #34373c;
  transform: translateX(-50%);
}
.kiosk-screen {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 11px;
  background: #F7FBFF;
  color: var(--ink);
}
.kiosk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.8rem 0.5rem;
}
.mock-brand {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}
.mock-brand-dot { color: var(--accent); }
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  border: 1px solid rgba(10, 37, 64, 0.09);
  border-radius: 999px;
  padding: 0.18rem 0.36rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.36rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.live-pill i { width: 3px; height: 3px; border-radius: 50%; background: #00A9FF; }
.kiosk-center {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  text-align: center;
}
.micro-label {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.38rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  color: var(--muted);
}
.kiosk-number {
  margin: 0.35rem 0 0;
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.08em;
}
.mockup--card .kiosk-number { font-size: 2.35rem; }
.mockup--hero .kiosk-number { font-size: 4.1rem; }
.kiosk-number span { margin-inline: 0.06em; color: var(--accent); font-weight: 400; }
.kiosk-service {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.55rem 0 0;
  font-size: 0.44rem;
  color: var(--muted);
}
.kiosk-service span {
  border-left: 1px solid var(--line);
  padding-left: 0.45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.35rem;
}
.kiosk-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid rgba(10, 37, 64, 0.09);
  padding: 0.65rem 0.75rem;
}
.qr-mini {
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  padding: 2px;
}
.qr-mini img { width: 100%; height: 100%; }
.qr-mini--large { width: 5rem; height: 5rem; padding: 4px; }
.kiosk-footer-copy { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.kiosk-footer-copy span { font-size: 0.36rem; color: var(--muted); }
.kiosk-footer-copy strong { font-size: 0.45rem; font-weight: 700; }
.kiosk-arrow {
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  margin-left: auto;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.55rem;
}
.float-card {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(10, 37, 64, 0.11);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.94);
  padding: 0.6rem 0.7rem;
  box-shadow: 0 16px 36px rgba(10, 37, 64, 0.13);
  backdrop-filter: blur(10px);
}
.float-card strong { display: block; font-size: 0.55rem; font-weight: 700; }
.float-card small { display: block; margin-top: 0.1rem; font-size: 0.43rem; color: var(--muted); }
.float-card-icon {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.43rem;
}
.float-card--queue-a { right: 9%; bottom: 17%; }
.float-card--queue-b { top: 19%; left: 8%; }
.mockup--card .float-card--queue-b { display: none; }
.float-card--field { right: 6%; bottom: 18%; }
.float-card--console { right: 7%; bottom: 15%; }
.pulse-dot {
  position: relative;
  display: block;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--teal);
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid var(--teal);
  border-radius: 50%;
  animation: pulse-ring 2.4s infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.7); opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0; }
}
.floor-chip {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.42rem;
  letter-spacing: 0.12em;
  color: rgba(10, 37, 64, 0.42);
}
.floor-chip span { margin-inline: 0.35rem; color: var(--accent); }
.floor-chip--field { left: auto; right: 1rem; }
.floor-chip--mobile { left: 50%; bottom: 0.8rem; transform: translateX(-50%); white-space: nowrap; }

/* Phone --------------------------------------------------------------- */

.phone-shell {
  position: relative;
  width: 220px;
  max-width: 68%;
  aspect-ratio: 9 / 19.5;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  background: #071C2E;
  box-shadow: 0 34px 70px rgba(10, 37, 64, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: rotate(2deg);
}
.mockup--card .phone-shell { width: 168px; }
.mockup--hero .phone-shell { width: 258px; }
.mockup--gallery .phone-shell { width: 206px; }
.phone-shell--ticket { transform: rotate(-2deg); }
.phone-speaker {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 4;
  width: 46px;
  height: 13px;
  border-radius: 999px;
  background: #071C2E;
  transform: translateX(-50%);
}
.phone-screen {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  background: #f8f7f2;
  color: var(--ink);
  padding: 1.2rem 0.8rem 0;
}
.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.36rem;
  color: var(--muted);
}
.phone-signal { letter-spacing: 0.12em; font-size: 0.3rem; }
.phone-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.8rem;
}
.phone-appbar .mock-brand { font-size: 0.62rem; }
.phone-avatar {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.35rem;
}
.phone-avatar--light { background: var(--paper-deep); color: var(--ink); font-size: 0.55rem; }
.phone-heading { margin-top: 1.05rem; }
.phone-heading h4 {
  margin: 0.25rem 0 0;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.06em;
}
.phone-heading h4 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--accent); }
.field-active {
  margin-top: 0.8rem;
  border-radius: 9px;
  background: var(--accent);
  padding: 0.65rem 0.7rem;
  color: #fff;
}
.field-row { display: flex; align-items: center; justify-content: space-between; }
.field-number { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.06em; }
.mini-tag {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 0.16rem 0.34rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.3rem;
  letter-spacing: 0.06em;
}
.mini-tag--muted { border-color: rgba(10, 37, 64, 0.14); color: var(--muted); }
.field-active strong { display: block; margin-top: 0.2rem; font-size: 0.48rem; }
.field-meta { display: block; margin-top: 0.1rem; font-size: 0.38rem; color: rgba(255, 255, 255, 0.62); }
.field-progress {
  height: 2px;
  margin-top: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}
.field-progress span { display: block; width: 70%; height: 100%; background: #fff; }
.field-list { margin-top: 0.6rem; border-top: 1px solid var(--line); }
.field-list div {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 1px solid var(--line);
  padding: 0.42rem 0;
  font-size: 0.4rem;
}
.field-list span:first-child { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.field-list span:nth-child(2) { color: var(--muted); }
.field-list small { font-family: Georgia, "Times New Roman", serif; font-size: 0.33rem; color: var(--muted); }
.field-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  border-radius: 999px;
  background: var(--ink);
  padding: 0.58rem 0.7rem;
  color: var(--paper);
  font-size: 0.42rem;
  font-weight: 600;
}
.field-cta span { color: #5CC8FF; }
.field-tabbar {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--line);
  padding: 0.55rem 0 0.65rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.3rem;
  color: var(--muted);
}
.field-tabbar .is-active { color: var(--ink); font-weight: 500; }
.field-tabbar .is-active::before {
  content: "";
  display: block;
  width: 3px;
  height: 3px;
  margin: 0 auto 0.25rem;
  border-radius: 50%;
  background: var(--accent);
}
.float-card-icon--pulse { background: var(--paper-light); border: 1px solid var(--line); }
.float-card-icon--pulse i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* Visitor ticket ------------------------------------------------------ */

.phone-shell--ticket .phone-screen { background: #F7FBFF; }
.ticket-number {
  margin-top: 0.8rem;
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.09em;
}
.mockup--card .ticket-number { font-size: 2.5rem; }
.ticket-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.65rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.35rem;
  color: var(--muted);
}
.ticket-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
  border: 1px dashed rgba(10, 37, 64, 0.2);
  border-radius: 7px;
  background: #fff;
  padding: 0.65rem;
}
.ticket-card p { margin: 0; font-size: 0.33rem; color: var(--muted); }
.ticket-route {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.55rem;
}
.ticket-route-dot { width: 5px; height: 5px; flex: none; border-radius: 50%; background: var(--accent); }
.ticket-route div { display: flex; flex-direction: column; gap: 0.08rem; min-width: 0; }
.ticket-route strong { font-size: 0.4rem; }
.ticket-route small { font-size: 0.32rem; color: var(--muted); }
.ticket-route-arrow { margin-left: auto; font-size: 0.6rem; color: var(--accent); }
.ticket-notice {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  background: rgba(0, 169, 255, 0.08);
  padding: 0.5rem 0.6rem;
  font-size: 0.36rem;
  color: var(--teal);
}
.ticket-notice .pulse-dot { width: 4px; height: 4px; }
.ticket-notice .pulse-dot::after { inset: -2px; }

/* Dashboard ----------------------------------------------------------- */

.browser-shell {
  width: min(600px, 96%);
  overflow: hidden;
  border: 1px solid rgba(10, 37, 64, 0.14);
  border-radius: 8px;
  background: var(--paper-light);
  box-shadow: 0 30px 65px rgba(10, 37, 64, 0.18);
  transform: rotate(-1deg);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-bottom: 1px solid var(--line);
  background: #eeece6;
  padding: 0.48rem 0.65rem;
}
.browser-dots { display: flex; gap: 0.25rem; }
.browser-dots i { width: 5px; height: 5px; border-radius: 50%; background: #c7c4bb; }
.browser-url {
  flex: 1;
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  padding: 0.2rem 0.55rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.38rem;
  color: var(--muted);
  text-align: center;
}
.browser-bar .live-pill { font-size: 0.3rem; padding: 0.14rem 0.3rem; }
.dash-layout { display: grid; grid-template-columns: 100px minmax(0, 1fr); min-height: 330px; }
.dash-side {
  display: flex;
  flex-direction: column;
  background: #071C2E;
  padding: 0.85rem 0.7rem;
  color: rgba(255, 255, 255, 0.6);
}
.dash-logo {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--paper);
}
.dash-logo span { color: #00A9FF; }
.dash-nav { display: grid; gap: 0.32rem; margin-top: 1.2rem; }
.dash-nav span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 3px;
  padding: 0.35rem 0.4rem;
  font-size: 0.35rem;
  color: rgba(255, 255, 255, 0.4);
}
.dash-nav span i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.dash-nav .is-active { background: rgba(0, 169, 255, 0.13); color: #c8ccff; }
.dash-user { display: flex; align-items: center; gap: 0.35rem; margin-top: auto; }
.dash-user span {
  display: grid;
  width: 1.2rem;
  height: 1.2rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.3rem;
  color: #fff;
}
.dash-user small { font-size: 0.3rem; color: rgba(255, 255, 255, 0.35); }
.dash-main { min-width: 0; padding: 0.85rem; }
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; }
.dash-head h4 { margin: 0.2rem 0 0; font-size: 0.9rem; font-weight: 600; letter-spacing: -0.04em; }
.dash-date { font-family: Georgia, "Times New Roman", serif; font-size: 0.33rem; color: var(--muted); }
.kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; margin-top: 0.75rem; }
.kpi-grid > div { border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 0.5rem; }
.kpi-grid span { display: block; font-size: 0.31rem; color: var(--muted); }
.kpi-grid strong { display: block; margin-top: 0.2rem; font-size: 1rem; font-weight: 600; line-height: 1; letter-spacing: -0.06em; }
.kpi-grid strong span { display: inline; font-size: 0.4rem; color: var(--muted); letter-spacing: 0; }
.kpi-grid small { display: block; margin-top: 0.15rem; font-family: Georgia, "Times New Roman", serif; font-size: 0.27rem; color: var(--muted); }
.kpi-grid small.is-good { color: var(--teal); }
.dash-chart { margin-top: 0.55rem; border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 0.55rem; }
.chart-head { display: flex; justify-content: space-between; font-size: 0.33rem; font-weight: 600; }
.chart-head span:last-child { font-family: Georgia, "Times New Roman", serif; font-size: 0.27rem; font-weight: 400; color: var(--muted); }
.bar-chart { display: flex; height: 70px; align-items: flex-end; gap: 0.28rem; margin-top: 0.55rem; }
.bar-chart span { flex: 1; height: var(--h); border-radius: 1px 1px 0 0; background: color-mix(in srgb, var(--accent) 72%, #fff); }
.bar-chart span:nth-child(5) { background: var(--accent); }
.chart-axis { display: flex; justify-content: space-between; margin-top: 0.3rem; font-family: Georgia, "Times New Roman", serif; font-size: 0.25rem; color: var(--muted); }
.dash-table { margin-top: 0.55rem; border: 1px solid var(--line); border-radius: 4px; background: #fff; overflow: hidden; }
.dash-table > div {
  display: grid;
  grid-template-columns: 0.75fr 1.2fr 0.9fr 0.55fr;
  align-items: center;
  gap: 0.3rem;
  border-bottom: 1px solid var(--line);
  padding: 0.38rem 0.5rem;
  font-size: 0.3rem;
}
.dash-table > div:last-child { border-bottom: 0; }
.dash-table-head { background: #f7f5ef; font-family: Georgia, "Times New Roman", serif; font-size: 0.26rem !important; color: var(--muted); }
.dash-table .mini-tag { border-color: rgba(11, 96, 176, 0.2); color: var(--accent); padding: 0.1rem 0.24rem; font-size: 0.24rem; }

/* Analytics ----------------------------------------------------------- */

.analytics-shell {
  width: min(590px, 96%);
  border: 1px solid rgba(10, 37, 64, 0.13);
  border-radius: 8px;
  background: var(--paper-light);
  padding: 1rem;
  box-shadow: 0 30px 65px rgba(10, 37, 64, 0.17);
  transform: rotate(1deg);
}
.analytics-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.analytics-head h4 { margin: 0.2rem 0 0; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.05em; }
.analytics-range {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.32rem;
  color: var(--muted);
}
.analytics-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.8fr); gap: 0.8rem; margin-top: 0.8rem; }
.line-chart { min-width: 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 0.6rem; }
.line-chart-legend { display: flex; gap: 0.8rem; font-size: 0.3rem; color: var(--muted); }
.line-chart-legend span { display: flex; align-items: center; gap: 0.25rem; }
.legend-indigo, .legend-teal, .legend-amber { width: 4px; height: 4px; border-radius: 50%; display: inline-block; }
.legend-indigo { background: var(--accent); }
.legend-teal { background: var(--teal); }
.legend-amber { background: var(--amber); }
.line-chart svg { width: 100%; height: 130px; margin-top: 0.4rem; }
.chart-grid-line { stroke: rgba(10, 37, 64, 0.07); stroke-width: 1; fill: none; }
.chart-area { fill: color-mix(in srgb, var(--accent) 9%, transparent); }
.chart-line { fill: none; stroke-width: 2; stroke-linecap: round; }
.chart-line--indigo { stroke: var(--accent); }
.chart-line--teal { stroke: var(--teal); stroke-width: 1.4; }
.chart-dot { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.chart-dot--teal { fill: var(--teal); }
.analytics-side { display: flex; flex-direction: column; justify-content: center; gap: 0.8rem; border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 0.6rem; }
.donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.donut {
  position: relative;
  display: grid;
  width: 5.2rem;
  height: 5.2rem;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 42%, var(--teal) 42% 73%, var(--amber) 73% 100%);
}
.donut::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: #fff; }
.donut span { position: relative; font-size: 0.9rem; font-weight: 600; letter-spacing: -0.04em; }
.donut span span { font-size: 0.4rem; color: var(--muted); }
.donut-wrap small { font-size: 0.3rem; color: var(--muted); }
.analytics-legend { display: grid; gap: 0.3rem; }
.analytics-legend span { display: flex; align-items: center; gap: 0.3rem; font-size: 0.28rem; color: var(--muted); }
.analytics-legend strong { margin-left: auto; color: var(--ink); font-weight: 600; }
.analytics-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
  font-size: 0.3rem;
  color: var(--muted);
}
.analytics-foot strong { font-size: 0.48rem; color: var(--ink); letter-spacing: -0.03em; }
.analytics-foot .is-good { color: var(--teal); }

/* Console ------------------------------------------------------------- */

.terminal-shell {
  width: min(560px, 96%);
  overflow: hidden;
  border: 1px solid #0E2C47;
  border-radius: 8px;
  background: #121417;
  box-shadow: 0 32px 70px rgba(10, 37, 64, 0.25);
  transform: rotate(-0.5deg);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: #191b1f;
  padding: 0.5rem 0.7rem;
}
.terminal-bar .browser-dots i { background: #3a3d42; }
.terminal-title {
  flex: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.36rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
}
.terminal-title span { color: rgba(255, 255, 255, 0.18); }
.terminal-badge {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.14rem 0.34rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.28rem;
  color: rgba(255, 255, 255, 0.32);
}
.terminal-body {
  padding: 0.9rem 1rem 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.48rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}
.terminal-body p { margin: 0.15rem 0; }
.terminal-prompt { color: #00A9FF; }
.terminal-dim { color: rgba(255, 255, 255, 0.28); }
.terminal-rule { height: 1px; margin: 0.6rem 0; background: rgba(255, 255, 255, 0.08); }
.service-row {
  display: grid;
  grid-template-columns: 8px 1fr auto auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.18rem 0;
}
.service-row span:nth-child(2) { color: rgba(255, 255, 255, 0.72); }
.service-row span:nth-child(3) { color: rgba(255, 255, 255, 0.28); font-size: 0.38rem; }
.service-row span:nth-child(4) { color: rgba(255, 255, 255, 0.32); font-size: 0.38rem; }
.service-dot { width: 5px; height: 5px; border-radius: 50%; background: #4ec9a7; box-shadow: 0 0 8px rgba(78, 201, 167, 0.45); }
.service-dot--warm { background: #d9a441; box-shadow: 0 0 8px rgba(217, 164, 65, 0.35); }
.terminal-event { display: flex; gap: 0.5rem; color: rgba(255, 255, 255, 0.32); }
.terminal-event span:first-child { color: rgba(255, 255, 255, 0.2); }
.terminal-event span:last-child { margin-left: auto; color: rgba(255, 255, 255, 0.45); }
.terminal-cursor { display: flex; align-items: center; gap: 0.35rem; }
.terminal-cursor i { display: inline-block; width: 5px; height: 0.65rem; background: #00A9FF; animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* --------------------------------------------------------------------------
   Page heroes & catalog
   -------------------------------------------------------------------------- */

.page-hero {
  background: var(--paper);
  padding: 4.5rem 0 4rem;
}
.page-hero-grid { display: grid; gap: 2.5rem; align-items: end; }
.page-title {
  margin: 1.15rem 0 0;
  font-size: clamp(3.2rem, 6.8vw, 6.3rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.075em;
}
.page-lede {
  max-width: 36rem;
  margin: 1.65rem 0 0;
  font-size: clamp(0.92rem, 1.25vw, 1.04rem);
  line-height: 1.8;
  color: var(--muted);
}
.page-hero-aside {
  max-width: 25rem;
  padding-bottom: 0.3rem;
}
.aside-rule { width: 3rem; height: 1px; margin-bottom: 1.5rem; background: var(--signal); }
.aside-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.aside-stats div {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}
.aside-stats strong { font-size: 1.45rem; font-weight: 600; line-height: 1; letter-spacing: -0.05em; }
.aside-stats span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.45rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 900px) {
  .page-hero { padding: 6rem 0 5rem; }
  .page-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr); gap: 6rem; }
  .page-hero-aside { justify-self: end; }
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-block: 1px solid var(--line);
  padding: 1rem 0;
  margin-bottom: 2rem;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.48rem 0.72rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.filter-chip span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.44rem;
  color: var(--muted);
  transition: color 0.2s ease;
}
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip.is-active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.filter-chip.is-active span { color: rgba(255, 255, 255, 0.5); }
.filter-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.48rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.catalog-footnote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
.catalog-footnote p { margin: 0; font-size: 0.75rem; line-height: 1.7; color: var(--muted); }

/* --------------------------------------------------------------------------
   Project detail
   -------------------------------------------------------------------------- */

.project-hero { background: var(--paper); padding: 2rem 0 4.5rem; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 3rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb a { transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span:last-child { color: var(--ink); }
.project-hero-grid { display: grid; gap: 3rem; align-items: start; }
.project-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; }
.project-title {
  margin: 1.15rem 0 0;
  font-size: clamp(3.8rem, 8vw, 7.4rem);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.085em;
}
.project-tagline {
  max-width: 36rem;
  margin: 1.5rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink-soft);
}
.project-description {
  max-width: 40rem;
  margin: 1.35rem 0 0;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--muted);
}
.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  margin: 2.5rem 0 0;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
.project-meta-grid dt {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.45rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.project-meta-grid dd { margin: 0.3rem 0 0; font-size: 0.76rem; font-weight: 600; line-height: 1.5; }
.project-hero-visual { position: relative; }
.project-hero-visual .mockup {
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.project-visual-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.7rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.46rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 1000px) {
  .project-hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(25rem, 0.98fr); gap: 5rem; }
  .project-hero-visual { position: sticky; top: 7.5rem; }
}

.problem-grid { display: grid; gap: 2.5rem; }
.problem-title {
  max-width: 33rem;
  margin: 0.9rem 0 0;
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.055em;
}
.problem-body { max-width: 39rem; margin: 0; font-size: 0.94rem; line-height: 1.85; color: var(--muted); }
.problem-points { display: grid; gap: 0; margin: 2rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.problem-points li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.8rem;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
  font-size: 0.8rem;
  line-height: 1.65;
}
.problem-number { font-family: Georgia, "Times New Roman", serif; font-size: 0.5rem; color: var(--signal); }
@media (min-width: 900px) {
  .problem-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 6rem; }
}

.feature-grid { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.feature-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  background: var(--paper-light);
  padding: 1.6rem;
  transition: background 0.25s ease;
}
.feature-card:hover { background: #fff; }
.feature-card-top { display: flex; align-items: center; justify-content: space-between; }
.feature-icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--signal);
}
.feature-tag { font-family: Georgia, "Times New Roman", serif; font-size: 0.5rem; letter-spacing: 0.1em; color: var(--muted); }
.feature-card h3 { margin: 1.3rem 0 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.03em; }
.feature-card p { margin: 0.6rem 0 0; font-size: 0.76rem; line-height: 1.75; color: var(--muted); }
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.architecture-panel {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  padding: 1.5rem;
}
.architecture-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 1.5rem;
}
.architecture-head > div { max-width: 42rem; }
.architecture-label {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.48rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.38);
}
.architecture-head p { margin: 0.65rem 0 0; font-size: 0.82rem; line-height: 1.75; color: rgba(255, 255, 255, 0.55); }
.architecture-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.4rem;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.42);
}
.architecture-layers { display: flex; align-items: stretch; gap: 0.5rem; padding: 1.5rem 0; }
.architecture-layer {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.025);
  padding: 0.9rem;
}
.layer-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.layer-index { font-family: Georgia, "Times New Roman", serif; font-size: 0.4rem; color: #00A9FF; }
.layer-meta { font-family: Georgia, "Times New Roman", serif; font-size: 0.36rem; color: rgba(255, 255, 255, 0.28); text-align: right; }
.architecture-layer h3 { margin: 1rem 0 0; font-size: 0.85rem; font-weight: 600; letter-spacing: -0.02em; }
.architecture-layer ul { display: grid; gap: 0.38rem; margin: 0.8rem 0 0; padding: 0; list-style: none; }
.architecture-layer li { display: flex; align-items: center; gap: 0.4rem; font-size: 0.55rem; line-height: 1.4; color: rgba(255, 255, 255, 0.48); }
.architecture-layer li span { width: 3px; height: 3px; flex: none; border-radius: 50%; background: rgba(0, 169, 255, 0.65); }
.architecture-arrow { display: flex; align-items: center; color: rgba(255, 255, 255, 0.18); }
.architecture-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid var(--line-dark);
  padding: 1.2rem 0;
}
.flow-label { margin-right: 0.4rem; font-family: Georgia, "Times New Roman", serif; font-size: 0.42rem; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.3); }
.flow-step {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.28rem 0.5rem;
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.55);
}
.flow-arrow { color: rgba(255, 255, 255, 0.2); font-size: 0.55rem; }
.architecture-notes {
  display: grid;
  gap: 1rem;
  border-top: 1px solid var(--line-dark);
  padding-top: 1.2rem;
}
.architecture-notes > div { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.5rem; }
.note-index { font-family: Georgia, "Times New Roman", serif; font-size: 0.4rem; color: #00A9FF; }
.architecture-notes p { margin: 0; font-size: 0.58rem; line-height: 1.65; color: rgba(255, 255, 255, 0.4); }
@media (min-width: 900px) {
  .architecture-panel { padding: 2.25rem; }
  .architecture-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.metric-item { display: flex; flex-direction: column; gap: 0.3rem; border-bottom: 1px solid var(--line); padding: 1.3rem 1rem; }
.metric-item:nth-child(odd) { border-right: 1px solid var(--line); }
.metric-item strong { font-size: clamp(1.8rem, 3.2vw, 2.8rem); font-weight: 600; line-height: 1; letter-spacing: -0.06em; }
.metric-item span { font-family: Georgia, "Times New Roman", serif; font-size: 0.46rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 900px) {
  .metric-band { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .metric-item { border-bottom: 0; border-right: 1px solid var(--line); padding: 1.8rem 1.5rem; }
  .metric-item:nth-child(odd) { border-right: 1px solid var(--line); }
  .metric-item:last-child { border-right: 0; }
}

.tech-grid { display: grid; gap: 3rem; }
.spec-list { margin: 2rem 0 0; border-top: 1px solid var(--line); }
.spec-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: 0.8rem 0; }
.spec-list dt { font-family: Georgia, "Times New Roman", serif; font-size: 0.46rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.spec-list dd { margin: 0; font-size: 0.7rem; font-weight: 600; text-align: right; }
.stack-groups { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.stack-group { background: var(--paper-light); padding: 1.25rem; }
.stack-group-head { display: flex; align-items: center; gap: 0.65rem; }
.stack-group-head > span { font-family: Georgia, "Times New Roman", serif; font-size: 0.42rem; color: var(--signal); }
.stack-group-head h3 { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: -0.01em; }
.stack-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.8rem; }
.stack-chips span {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.3rem 0.45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.46rem;
  color: var(--muted);
}
@media (min-width: 700px) { .stack-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 950px) { .tech-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 6rem; } }

.gallery-grid { display: grid; gap: 1.5rem; }
.gallery-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-light); }
.gallery-visual { height: 390px; border-bottom: 1px solid var(--line); overflow: hidden; }
.gallery-visual .mockup { height: 100%; min-height: 100%; }
.gallery-card figcaption { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.15rem 1.2rem; }
.gallery-index { font-family: Georgia, "Times New Roman", serif; font-size: 0.46rem; color: var(--signal); }
.gallery-card figcaption strong { display: block; font-size: 0.78rem; font-weight: 700; }
.gallery-card figcaption p { margin: 0.25rem 0 0; font-size: 0.7rem; line-height: 1.65; color: var(--muted); }
@media (min-width: 800px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-card--wide { grid-column: 1 / -1; }
  .gallery-card--wide .gallery-visual { height: 470px; }
}

.next-project-section { background: var(--ink); color: var(--paper); padding: 3.5rem 0; }
.next-project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-block: 1px solid var(--line-dark);
  padding: 2.5rem 0;
  transition: padding 0.35s var(--ease);
}
.next-project:hover { padding-left: 0.6rem; }
.next-project h2 {
  margin: 0.7rem 0 0;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.06em;
}
.next-project p { max-width: 36rem; margin: 0.7rem 0 0; font-size: 0.78rem; line-height: 1.7; color: rgba(255, 255, 255, 0.45); }
.next-project-arrow {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  flex: none;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transition: background 0.25s ease, color 0.25s ease, transform 0.3s var(--ease);
}
.next-project:hover .next-project-arrow { background: var(--paper); color: var(--ink); transform: rotate(45deg); }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-intro { display: grid; gap: 2.5rem; }
.about-statement {
  margin: 0.9rem 0 0;
  font-size: clamp(2.1rem, 4.3vw, 3.9rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.06em;
}
.about-statement em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--signal); }
.about-intro-side p { margin: 0 0 1rem; font-size: 0.86rem; line-height: 1.85; color: var(--muted); }
.about-intro-side p:first-child { margin-top: 0; }
.about-signature { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.8rem; border-top: 1px solid var(--line); padding-top: 1.2rem; font-size: 0.65rem; line-height: 1.5; }
.signature-mark { font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-style: italic; line-height: 1; color: var(--signal); }
.about-signature small { font-family: Georgia, "Times New Roman", serif; font-size: 0.44rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 900px) { .about-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 6rem; } }

.mission-grid { display: grid; gap: 1.25rem; }
.mission-card {
  position: relative;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-light);
  padding: 2rem;
}
.mission-card--dark { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.mission-index { font-family: Georgia, "Times New Roman", serif; font-size: 0.46rem; letter-spacing: 0.12em; color: var(--muted); }
.mission-card--dark .mission-index { color: rgba(255, 255, 255, 0.35); }
.mission-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--signal);
}
.mission-card--dark .mission-icon { border-color: rgba(255, 255, 255, 0.15); color: #5CC8FF; }
.mission-card h2 { margin: 1.2rem 0 0; font-size: 2.2rem; font-weight: 600; letter-spacing: -0.055em; }
.mission-card p { max-width: 30rem; margin: 0.8rem 0 0; font-size: 0.83rem; line-height: 1.8; color: var(--muted); }
.mission-card--dark p { color: rgba(255, 255, 255, 0.52); }
.mission-card ul { display: grid; gap: 0.55rem; margin: auto 0 0; padding: 1.4rem 0 0; list-style: none; border-top: 1px solid var(--line); }
.mission-card--dark ul { border-color: var(--line-dark); }
.mission-card li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.7rem; color: var(--muted); }
.mission-card--dark li { color: rgba(255, 255, 255, 0.5); }
.mission-card li span { width: 4px; height: 4px; border-radius: 50%; background: var(--signal); }
@media (min-width: 800px) { .mission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.principles-grid { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.principle-card { background: var(--paper-light); padding: 1.75rem; }
.principle-number { font-family: Georgia, "Times New Roman", serif; font-size: 0.46rem; color: var(--signal); }
.principle-card h3 { margin: 1.2rem 0 0; font-size: 1.2rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.035em; }
.principle-card p { margin: 0.7rem 0 0; font-size: 0.76rem; line-height: 1.75; color: var(--muted); }
@media (min-width: 700px) { .principles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.founder-grid { display: grid; gap: 1rem; }
.founder-card {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.founder-mark {
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
}
.founder-card h3 { margin: 0.7rem 0 0; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.04em; }
.founder-card p { margin: 0.65rem 0 0; font-size: 0.75rem; line-height: 1.75; color: rgba(255, 255, 255, 0.48); }
.founder-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 1.2rem; }
.founder-tags span { border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 2px; padding: 0.25rem 0.4rem; font-family: Georgia, "Times New Roman", serif; font-size: 0.4rem; color: rgba(255, 255, 255, 0.4); }
@media (min-width: 800px) { .founder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.timeline-grid { display: grid; gap: 2.5rem; }
.timeline { border-top: 1px solid var(--line); }
.timeline-item {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1.25rem;
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
}
.timeline-year { font-family: Georgia, "Times New Roman", serif; font-size: 0.6rem; color: var(--signal); }
.timeline-item h3 { margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; }
.timeline-item p { margin: 0.35rem 0 0; font-size: 0.75rem; line-height: 1.65; color: var(--muted); }
@media (min-width: 900px) { .timeline-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 6rem; } }

/* --------------------------------------------------------------------------
   Home: capabilities, manifesto, CTA
   -------------------------------------------------------------------------- */

.capability-grid { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--line-dark); }
.capability-card { background: #141619; padding: 1.8rem; }
.capability-index { font-family: Georgia, "Times New Roman", serif; font-size: 0.48rem; letter-spacing: 0.12em; color: #00A9FF; }
.capability-card h3 { margin: 1.4rem 0 0; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.04em; }
.capability-card p { margin: 0.7rem 0 0; font-size: 0.76rem; line-height: 1.8; color: rgba(255, 255, 255, 0.45); }
.capability-card ul { display: grid; gap: 0.45rem; margin: 1.5rem 0 0; padding: 1rem 0 0; list-style: none; border-top: 1px solid var(--line-dark); }
.capability-card li { display: flex; align-items: center; gap: 0.5rem; font-family: Georgia, "Times New Roman", serif; font-size: 0.45rem; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.4); }
.capability-card li span { width: 3px; height: 3px; border-radius: 50%; background: #00A9FF; }
.stack-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.4rem;
  margin-top: 2rem;
  border-top: 1px solid var(--line-dark);
  padding-top: 1.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.42);
}
.stack-strip-label { color: rgba(255, 255, 255, 0.25); }
@media (min-width: 800px) { .capability-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.manifesto-grid { display: grid; gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.manifesto-mark { margin-top: 1rem; font-family: Georgia, "Times New Roman", serif; font-size: 6rem; font-style: italic; line-height: 0.5; color: var(--signal); opacity: 0.35; }
.manifesto-quote {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.7rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.055em;
}
.manifesto-quote em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--signal); }
.manifesto-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.66rem;
  color: var(--muted);
}
@media (min-width: 900px) { .manifesto-grid { grid-template-columns: 0.42fr 0.58fr; gap: 5rem; } }

.home-cta {
  display: grid;
  gap: 2rem;
  align-items: end;
  margin-top: 5.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-deep);
  padding: 2rem;
}
.home-cta h2 {
  margin: 1rem 0 0;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.06em;
}
.home-cta h2 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--signal); }
.home-cta-side p { max-width: 26rem; margin: 0 0 1.3rem; font-size: 0.8rem; line-height: 1.75; color: var(--muted); }
@media (min-width: 900px) { .home-cta { grid-template-columns: 1fr 1fr; gap: 5rem; padding: 2.75rem; } .home-cta-side { justify-self: end; } }

/* --------------------------------------------------------------------------
   Technologies
   -------------------------------------------------------------------------- */

.tech-intro { display: grid; gap: 2.5rem; }
.tech-statement {
  margin: 0.9rem 0 0;
  font-size: clamp(2.1rem, 4.3vw, 3.9rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.06em;
}
.tech-statement em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--signal); }
.tech-intro-side p { margin: 0 0 1rem; font-size: 0.86rem; line-height: 1.85; color: var(--muted); }
@media (min-width: 900px) { .tech-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 6rem; } }

.tech-map { display: flex; align-items: stretch; gap: 0.5rem; }
.tech-map-layer {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.025);
  padding: 1.15rem;
}
.tech-map-index { font-family: Georgia, "Times New Roman", serif; font-size: 0.42rem; color: #00A9FF; }
.tech-map-icon { display: grid; width: 2.2rem; height: 2.2rem; place-items: center; margin-top: 1.1rem; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 50%; color: #5CC8FF; }
.tech-map-layer h3 { margin: 1rem 0 0; font-size: 0.9rem; font-weight: 600; letter-spacing: -0.02em; }
.tech-map-layer p { margin: 0.4rem 0 0; font-size: 0.55rem; line-height: 1.6; color: rgba(255, 255, 255, 0.4); }
.tech-map-chips { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 1rem; }
.tech-map-chips span { border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 2px; padding: 0.22rem 0.3rem; font-family: Georgia, "Times New Roman", serif; font-size: 0.38rem; color: rgba(255, 255, 255, 0.42); }
.tech-map-arrow { display: flex; align-items: center; color: rgba(255, 255, 255, 0.18); }
.tech-map-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  padding-top: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.44rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.36);
}
.tech-map-foot span { display: flex; align-items: center; gap: 0.45rem; }

.engineering-grid { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.engineering-card { display: flex; min-height: 265px; flex-direction: column; background: var(--paper-light); padding: 1.6rem; }
.engineering-number { font-family: Georgia, "Times New Roman", serif; font-size: 0.46rem; color: var(--signal); }
.engineering-icon { display: grid; width: 2.4rem; height: 2.4rem; place-items: center; margin-top: 1.5rem; border: 1px solid var(--line); border-radius: 50%; color: var(--signal); }
.engineering-card h3 { margin: 1.1rem 0 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.03em; }
.engineering-card p { margin: 0.55rem 0 0; font-size: 0.75rem; line-height: 1.75; color: var(--muted); }
.engineering-tag { margin-top: auto; padding-top: 1.2rem; font-family: Georgia, "Times New Roman", serif; font-size: 0.42rem; letter-spacing: 0.06em; color: var(--muted); }
@media (min-width: 700px) { .engineering-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .engineering-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.stack-matrix { display: grid; gap: 3rem; }
.code-card { overflow: hidden; border-radius: var(--radius); background: var(--ink); color: var(--paper); }
.code-card-head { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line-dark); padding: 0.7rem 0.85rem; font-family: Georgia, "Times New Roman", serif; font-size: 0.42rem; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.36); }
.code-card pre { margin: 0; padding: 1rem; overflow-x: auto; font-family: Georgia, "Times New Roman", serif; font-size: 0.58rem; line-height: 1.8; color: rgba(255, 255, 255, 0.6); }
.code-key { color: #5CC8FF; }
.code-string { color: #8bd4c5; }
.code-number { color: #FFCDD2; }
.stack-table { border-top: 1px solid var(--line); }
.stack-row { display: grid; grid-template-columns: 0.7fr 1.35fr 1.35fr; gap: 1rem; align-items: start; border-bottom: 1px solid var(--line); padding: 0.9rem 0; font-size: 0.68rem; }
.stack-row span:first-child { font-family: Georgia, "Times New Roman", serif; font-size: 0.48rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.stack-row span:nth-child(2) { font-weight: 600; }
.stack-row span:last-child { font-size: 0.62rem; line-height: 1.6; color: var(--muted); }
.stack-row--head { padding: 0.6rem 0; font-family: Georgia, "Times New Roman", serif; font-size: 0.42rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.stack-row--head span { font-size: inherit !important; font-weight: 400 !important; color: var(--muted) !important; }
@media (min-width: 900px) { .stack-matrix { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 5rem; } }

.security-panel {
  display: grid;
  gap: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-deep);
  padding: 2rem;
}
.security-copy h2 { margin: 0.9rem 0 0; font-size: clamp(2rem, 3.8vw, 3.2rem); font-weight: 600; line-height: 1; letter-spacing: -0.055em; }
.security-copy h2 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--signal); }
.security-copy p { max-width: 31rem; margin: 1rem 0 1.6rem; font-size: 0.8rem; line-height: 1.8; color: var(--muted); }
.security-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.security-list > div { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 0.8rem; border-bottom: 1px solid var(--line); padding: 1rem 0; }
.security-icon { display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--signal); }
.security-list h3 { margin: 0; font-size: 0.82rem; font-weight: 700; }
.security-list p { margin: 0.25rem 0 0; font-size: 0.68rem; line-height: 1.6; color: var(--muted); }
@media (min-width: 900px) { .security-panel { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 5rem; padding: 2.75rem; } }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.page-hero--contact { padding-bottom: 3.5rem; }
.contact-email {
  display: inline-block;
  margin-top: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.25rem;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-email:hover { color: var(--signal); border-color: var(--signal); }
.contact-facts { display: grid; gap: 0; margin-top: 1.5rem; border-top: 1px solid var(--line); }
.contact-facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: 0.65rem 0; }
.contact-facts span { font-family: Georgia, "Times New Roman", serif; font-size: 0.44rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-facts strong { font-size: 0.67rem; font-weight: 600; text-align: right; }

.contact-grid { display: grid; gap: 3rem; align-items: start; }
.contact-heading { margin: 0.9rem 0 0; font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 600; line-height: 1; letter-spacing: -0.06em; }
.contact-heading em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--signal); }
.inquiry-list { display: grid; margin-top: 2rem; border-top: 1px solid var(--line); }
.inquiry-list > div { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr); gap: 0.8rem; border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
.inquiry-list > div > span { font-family: Georgia, "Times New Roman", serif; font-size: 0.46rem; color: var(--signal); }
.inquiry-list strong { display: block; font-size: 0.78rem; font-weight: 700; }
.inquiry-list p { margin: 0.2rem 0 0; font-size: 0.68rem; line-height: 1.6; color: var(--muted); }

.contact-map {
  position: relative;
  height: 13rem;
  overflow: hidden;
  margin-top: 2rem;
  border-radius: var(--radius);
  background: #071C2E;
  color: var(--paper);
}
.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 10%, transparent 82%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 10%, transparent 82%);
}
.map-pin {
  position: absolute;
  top: 41%;
  left: 57%;
  width: 13px;
  height: 13px;
  border: 3px solid #071C2E;
  border-radius: 50%;
  background: #00A9FF;
  box-shadow: 0 0 0 1px #00A9FF;
}
.map-pin span { position: absolute; inset: -14px; border: 1px solid rgba(0, 169, 255, 0.35); border-radius: 50%; animation: pulse-ring 2.8s infinite; }
.map-pin i { position: absolute; top: 13px; left: 50%; width: 1px; height: 30px; background: linear-gradient(rgba(0, 169, 255, 0.6), transparent); transform: translateX(-50%); }
.map-label { position: absolute; top: 1.1rem; left: 1.1rem; display: flex; flex-direction: column; gap: 0.3rem; }
.map-label span { font-family: Georgia, "Times New Roman", serif; font-size: 0.42rem; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.35); }
.map-label strong { font-family: Georgia, "Times New Roman", serif; font-size: 0.55rem; font-weight: 400; line-height: 1.6; color: rgba(255, 255, 255, 0.65); }
.map-note { position: absolute; right: 1.1rem; bottom: 1.1rem; font-family: Georgia, "Times New Roman", serif; font-size: 0.4rem; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.32); }
.contact-social { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.contact-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.65rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-social a span { color: var(--signal); }
.contact-social a:hover { color: var(--ink); border-color: var(--ink); }

.contact-form-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-light);
  padding: 1.35rem;
}
.form-banner {
  margin-bottom: 1.2rem;
  border: 1px solid rgba(180, 35, 24, 0.25);
  border-radius: 3px;
  background: rgba(180, 35, 24, 0.05);
  padding: 0.8rem 0.9rem;
  font-size: 0.68rem;
  line-height: 1.6;
  color: #9e2a20;
}
.form-success { padding: 1rem 0.25rem 0.25rem; }
.form-success-mark { display: grid; width: 3.2rem; height: 3.2rem; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); }
.form-success h2 { margin: 1rem 0 0; font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 600; line-height: 1; letter-spacing: -0.06em; }
.form-success h2 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--signal); }
.form-success p:not(.section-kicker) { max-width: 28rem; margin: 1rem 0 0; font-size: 0.8rem; line-height: 1.8; color: var(--muted); }
.form-success p a { text-decoration: underline; text-underline-offset: 3px; }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.form-head h2 { margin: 0.5rem 0 0; font-size: 1.55rem; font-weight: 600; letter-spacing: -0.045em; }
.form-badge { border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.45rem; font-family: Georgia, "Times New Roman", serif; font-size: 0.4rem; letter-spacing: 0.08em; color: var(--muted); }
.form-grid { display: grid; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field > span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.48rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.field b { font-weight: 500; color: var(--signal); }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.55);
  padding: 0.72rem 0.75rem;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: #a3a5a6; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--signal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11, 96, 176, 0.09);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field small { font-size: 0.56rem; line-height: 1.5; color: var(--muted); }
.field--full { grid-column: 1 / -1; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.consent-field { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.6rem; line-height: 1.55; color: var(--muted); cursor: pointer; }
.consent-field input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.consent-box {
  display: grid;
  width: 1rem;
  height: 1rem;
  flex: none;
  place-items: center;
  margin-top: 0.08rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.consent-field input:checked + .consent-box { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.consent-field input:focus-visible + .consent-box { box-shadow: 0 0 0 3px rgba(11, 96, 176, 0.15); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.form-note { max-width: 21rem; margin: 0; font-size: 0.55rem; line-height: 1.55; color: var(--muted); }
.form-error { width: 100%; margin: 0; font-size: 0.65rem; line-height: 1.5; color: #b42318; }
@media (min-width: 600px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .contact-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 5rem; }
  .contact-form-wrap { padding: 2rem; }
}

/* --------------------------------------------------------------------------
   Error page
   -------------------------------------------------------------------------- */

.error-page { min-height: 68vh; padding: 5rem 0; }
.error-grid { display: grid; gap: 3rem; align-items: center; }
.error-title { margin: 1rem 0 0; font-size: clamp(3.6rem, 8vw, 7rem); font-weight: 600; line-height: 0.9; letter-spacing: -0.08em; }
.error-title em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--signal); }
.error-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid #0E2C47;
  border-radius: var(--radius);
  background: #06192A;
  padding: 2rem;
  color: var(--paper);
}
.error-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000, transparent 78%);
}
.error-code { position: relative; font-size: clamp(5rem, 12vw, 10rem); font-weight: 600; line-height: 0.8; letter-spacing: -0.09em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22); }
.error-route { position: relative; display: flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem; border-top: 1px solid var(--line-dark); padding-top: 1rem; }
.error-lines { position: relative; display: grid; gap: 0.5rem; margin-top: 1.5rem; }
.error-lines span { display: block; height: 1px; background: rgba(255, 255, 255, 0.1); }
@media (min-width: 900px) { .error-grid { grid-template-columns: 1fr 1fr; gap: 6rem; } }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive adjustments
   -------------------------------------------------------------------------- */

@media (max-width: 1279px) {
  .vertical-note { display: none; }
  .runtime-floating-note { right: 0.75rem; }
}

@media (max-width: 1100px) {
  .architecture-layers { flex-wrap: wrap; }
  .architecture-layer { flex: 1 1 calc(50% - 0.5rem); }
  .architecture-arrow { display: none; }
  .tech-map { flex-wrap: wrap; }
  .tech-map-layer { flex: 1 1 calc(50% - 0.5rem); }
  .tech-map-arrow { display: none; }
}

@media (max-width: 1023px) {
  .hero { padding-bottom: 1rem; }
  .hero-title { max-width: 48rem; }
  .hero-runtime { max-width: 38rem; }
  .project-card-visual { height: 340px; }
  .project-card-visual .mockup { min-height: 340px; }
  .project-hero-visual .mockup { min-height: 440px; }
  .section { padding: 4.5rem 0; }
  .section--tight { padding: 2rem 0 4rem; }
  .page-hero { padding: 3.5rem 0 3rem; }
  .project-hero { padding-bottom: 3rem; }
}

@media (max-width: 767px) {
  .section { padding: 3.75rem 0; }
  .section--tight { padding: 1.5rem 0 3.5rem; }
  .section-head { margin-bottom: 2rem; }
  .hero-lede { max-width: 31rem; }
  .hero-proof { gap: 0.7rem; }
  .proof-divider { display: none; }
  .runtime-floating-note { display: none; }
  .stat-item { padding: 1.25rem 0.8rem; }
  .project-card-visual { height: 320px; }
  .project-card-visual .mockup { min-height: 320px; }
  .project-card-body { padding: 1.15rem; }
  .project-card-foot { align-items: flex-start; }
  .project-hero-visual .mockup { min-height: 400px; }
  .architecture-panel { padding: 1.15rem; }
  .architecture-layer { flex-basis: 100%; }
  .feature-card { min-height: 0; padding: 1.35rem; }
  .gallery-visual { height: 330px; }
  .gallery-card--wide .gallery-visual { height: 360px; }
  .next-project { padding: 2rem 0; }
  .next-project-arrow { width: 2.75rem; height: 2.75rem; }
  .founder-card { grid-template-columns: 1fr; gap: 0.75rem; }
  .founder-mark { font-size: 2.2rem; }
  .tech-map-layer { flex-basis: 100%; }
  .stack-row { grid-template-columns: 0.75fr 1.25fr; }
  .stack-row span:last-child { display: none; }
  .security-panel { padding: 1.35rem; }
  .contact-map { height: 11rem; }
  .contact-form-wrap { padding: 1.1rem; }
  .footer-wordmark { margin-top: 1.5rem; }
}

@media (max-width: 639px) {
  .utility-bar p:first-child { display: none; }
  .utility-bar .container { justify-content: flex-end; }
  .hero-title { font-size: clamp(2.9rem, 13vw, 4.1rem); }
  .page-title { font-size: clamp(2.8rem, 13vw, 4.1rem); }
  .project-title { font-size: clamp(3.1rem, 15vw, 4.6rem); }
  .project-tagline { font-size: 1.4rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-actions .btn--outline { flex-basis: auto; }
  .stat-item { border-right: 0; }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--line); }
  .project-card-visual { height: 300px; }
  .project-card-visual .mockup { min-height: 300px; }
  .project-card-title-row { gap: 0.5rem; }
  .project-card-foot { flex-direction: column; align-items: flex-start; }
  .project-meta-grid { grid-template-columns: 1fr; gap: 0.9rem; }
  .project-visual-caption { flex-direction: column; gap: 0.25rem; }
  .project-hero-visual .mockup { min-height: 360px; }
  .gallery-visual { height: 300px; }
  .gallery-card--wide .gallery-visual { height: 320px; }
  .metric-item { padding: 1rem 0.8rem; }
  .metric-item strong { font-size: 1.65rem; }
  .filter-bar { align-items: flex-start; flex-direction: column; }
  .filter-note { display: none; }
  .filter-chip { font-size: 0.62rem; padding: 0.4rem 0.58rem; }
  .catalog-footnote { align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .form-foot { align-items: flex-start; flex-direction: column; }
  .form-note { max-width: none; }
  .contact-facts > div { align-items: flex-start; flex-direction: column; gap: 0.25rem; }
  .contact-facts strong { text-align: left; }
  .footer-cta { padding: 3rem 0; }
  .footer-grid { gap: 2rem; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 0.6rem; }
  .footer-wordmark { font-size: clamp(4rem, 24vw, 7rem); }
  .mockup-stage { padding: 1.25rem; }
  .mockup--hero { min-height: 400px; }
  .mockup--hero .kiosk-shell { width: 240px; }
  .mockup--hero .phone-shell { width: 205px; }
  .float-card--queue-b { display: none; }
  .float-card--field { right: 0.5rem; bottom: 12%; }
  .float-card { padding: 0.48rem 0.55rem; }
  .float-card strong { font-size: 0.5rem; }
  .float-card small { font-size: 0.4rem; }
  .floor-chip { bottom: 0.7rem; left: 0.7rem; }
  .dash-layout { grid-template-columns: 74px minmax(0, 1fr); }
  .dash-side { padding: 0.65rem 0.45rem; }
  .dash-nav span { font-size: 0.3rem; }
  .dash-main { padding: 0.55rem; }
  .kpi-grid > div { padding: 0.35rem; }
  .kpi-grid strong { font-size: 0.8rem; }
  .analytics-grid { grid-template-columns: 1fr; }
  .analytics-side { flex-direction: row; align-items: center; }
  .analytics-side .donut-wrap { flex-direction: row; }
  .analytics-legend { flex: 1; }
  .line-chart svg { height: 105px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}



/* ==========================================================================
   MDR Technology — 2026 brand refresh
   White · blue · cyan · red · Georgia
   ========================================================================== */

:root {
  --paper: #FFFFFF;
  --paper-deep: #F2F8FD;
  --paper-light: #FFFFFF;
  --ink: #0A2540;
  --ink-soft: #14395B;
  --muted: #4F6D87;
  --line: #D7E6F2;
  --line-dark: rgba(255, 255, 255, 0.14);
  --signal: #0B60B0;
  --signal-dark: #084A8A;
  --cyan: #00A9FF;
  --red: #E53935;
  --teal: #00A9FF;
  --amber: #E53935;
  --violet: #0B60B0;
  --radius: 16px;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  background: #FFFFFF;
  color: var(--ink);
  font-feature-settings: normal;
}

::selection { background: var(--signal); color: #FFFFFF; }

.section-kicker {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--signal);
}
.section-head--light .section-kicker,
.section--dark .section-kicker { color: rgba(255, 255, 255, 0.55); }

.section-title,
.hero-title,
.page-title,
.project-title,
.footer-heading,
.problem-title,
.home-cta h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.section-title em,
.page-title em,
.hero-title em,
.hero-title-serif,
.footer-heading em,
.home-cta h2 em,
.manifesto-quote em {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--signal);
}
.section-head--light .section-title em,
.section--dark .section-title em { color: rgba(255, 255, 255, 0.72); }

/* Header ------------------------------------------------------------------ */
.utility-bar {
  background: var(--signal);
  color: #FFFFFF;
}
.utility-note,
.utility-status {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.status-dot--live {
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 36px rgba(11, 96, 176, 0.08);
}

.brand { gap: 0; }
.brand-logo {
  display: block;
  height: 44px;
  width: auto;
}
.brand-logo--light { height: 48px; }
.brand:hover .brand-logo { transform: none; }

.nav-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}
.nav-link:hover {
  color: var(--signal);
  background: #EAF6FF;
}
.nav-link.is-active { color: var(--signal); }
.nav-link.is-active::after { background: var(--red); }

.icon-button { color: var(--muted); border-color: var(--line); }
.icon-button:hover { color: var(--signal); border-color: var(--signal); background: #EAF6FF; }
.menu-line { background: var(--ink); }
.mobile-menu { background: #FFFFFF; }
.mobile-nav-index {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--signal);
}
.mobile-nav-link { border-color: var(--line); }

/* Buttons ----------------------------------------------------------------- */
.btn {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}
.btn--primary {
  background: var(--signal);
  border-color: var(--signal);
  color: #FFFFFF;
}
.btn--primary:hover {
  background: var(--signal-dark);
  border-color: var(--signal-dark);
  color: #FFFFFF;
}
.btn--dark { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.btn--dark:hover { background: #06192A; border-color: #06192A; }
.btn--outline {
  background: #FFFFFF;
  border-color: var(--line);
  color: var(--ink);
}
.btn--outline:hover {
  border-color: var(--signal);
  color: var(--signal);
  background: #F2F8FD;
}
.btn--light { background: #FFFFFF; border-color: #FFFFFF; color: var(--ink); }

/* Hero -------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(circle at 82% 12%, rgba(0, 169, 255, 0.10), transparent 34%),
    linear-gradient(180deg, #FFFFFF 0%, #F7FBFF 62%, #FFFFFF 100%);
}
.hero-grid {
  background-image:
    linear-gradient(to right, rgba(11, 96, 176, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 96, 176, 0.045) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.8), transparent 82%);
}
.hero-glow {
  background:
    radial-gradient(circle at 74% 30%, rgba(0, 169, 255, 0.18), transparent 46%),
    radial-gradient(circle at 12% 84%, rgba(11, 96, 176, 0.08), transparent 48%);
  filter: blur(12px);
}
.hero-layout {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0 4.5rem;
}
@media (min-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1.02fr 0.98fr;
    gap: 4.5rem;
    padding: 5rem 0 6rem;
  }
}
.eyebrow-row { display: flex; align-items: center; gap: 0.75rem; }
.eyebrow-rule { display: block; width: 2.2rem; height: 2px; background: var(--red); }
.hero-title {
  margin: 1.1rem 0 0;
  font-size: clamp(2.55rem, 5.3vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero-lede {
  margin: 1.5rem 0 0;
  max-width: 38rem;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--muted);
}
.hero-actions { margin-top: 2rem; }
.hero-brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero-brand-chip {
  border: 1px solid #CDE9FB;
  border-radius: 999px;
  background: #EAF6FF;
  padding: 0.34rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--signal);
}
.hero-brand-note {
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-showcase { position: relative; }
.hero-banner {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #FFFFFF;
  box-shadow: 0 34px 90px rgba(11, 96, 176, 0.18);
}
.hero-banner img { display: block; width: 100%; height: auto; }
.hero-banner-caption {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 1.1rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--red);
}
.hero-banner-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.hero-banner-quote {
  font-size: 1.02rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* Page + project heroes ---------------------------------------------------- */
.page-hero,
.project-hero {
  background:
    radial-gradient(circle at 88% 10%, rgba(0, 169, 255, 0.08), transparent 36%),
    linear-gradient(180deg, #FFFFFF 0%, #F7FBFF 100%);
}
.page-title { font-size: clamp(2.6rem, 5.2vw, 5rem); line-height: 1; }
.page-hero-label {
  margin: 0;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
}
.project-hero-eyebrow {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.project-tagline {
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  font-style: italic;
  line-height: 1.25;
  color: var(--signal);
}
.project-description { color: var(--muted); line-height: 1.85; }
.project-hero-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #F2F8FD;
  box-shadow: 0 28px 70px rgba(11, 96, 176, 0.14);
}
.project-hero-image img { display: block; width: 100%; height: auto; }

/* Sections ---------------------------------------------------------------- */
.section--paper-deep {
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
}
.section--dark {
  background: linear-gradient(135deg, #0A2540 0%, #0B3B66 62%, #0B60B0 130%);
  color: #FFFFFF;
}

/* Cards ------------------------------------------------------------------- */
.project-card,
.feature-card,
.gallery-card,
.pillar-card {
  background: #FFFFFF;
  border-color: var(--line);
}
.project-card {
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(11, 96, 176, 0.05);
}
.project-card:hover {
  border-color: rgba(11, 96, 176, 0.35);
  box-shadow: 0 30px 70px rgba(11, 96, 176, 0.14);
}
.project-card-visual {
  height: 340px;
  background: #F2F8FD;
}
.project-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s var(--ease);
}
.project-card:hover .project-card-image { transform: scale(1.035); }
.project-card-index {
  border-color: rgba(11, 96, 176, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: var(--signal);
  font-size: 0.6rem;
  font-weight: 700;
}
.project-card-open { background: #FFFFFF; color: var(--signal); }
.project-card:hover .project-card-open { background: var(--signal); color: #FFFFFF; }
.project-title-row h3 { font-weight: 400; letter-spacing: -0.03em; }
.project-title-row h3 a:hover { color: var(--signal); }
.project-summary { font-size: 0.88rem; line-height: 1.75; }
.project-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}
.project-highlights li {
  border: 1px solid #CDE9FB;
  border-radius: 999px;
  background: #EAF6FF;
  padding: 0.3rem 0.58rem;
  font-size: 0.66rem;
  line-height: 1.3;
  color: var(--signal);
}
.project-card-foot { border-top-color: var(--line); }
.tech-list span {
  border-color: var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.58rem;
}

/* Status pills ------------------------------------------------------------ */
.status-pill { font-size: 0.56rem; font-weight: 700; letter-spacing: 0.08em; }
.status-pill--emerald {
  color: #0369A1;
  border-color: #BAE6FD;
  background: #E0F2FE;
}
.status-pill--emerald .status-dot { background: var(--cyan); }
.status-pill--amber {
  color: #B71C1C;
  border-color: #FFCDD2;
  background: #FFEBEE;
}
.status-pill--amber .status-dot { background: var(--red); }
.status-pill--indigo {
  color: var(--signal);
  border-color: #CDE9FB;
  background: #EAF6FF;
}
.status-pill--indigo .status-dot { background: var(--signal); }

/* Value pillars ----------------------------------------------------------- */
.pillars-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) {
  .pillars-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.pillar-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem 1.25rem 1.5rem;
  transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}
.pillar-card:hover {
  transform: translateY(-4px);
  border-color: #9BD9FF;
  box-shadow: 0 22px 50px rgba(11, 96, 176, 0.1);
}
.pillar-index {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--red);
}
.pillar-card h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.pillar-card p {
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--muted);
}

/* Gallery ----------------------------------------------------------------- */
.gallery-card { border-radius: 16px; }
.gallery-visual { background: #F2F8FD; }
.gallery-visual--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s var(--ease);
}
.gallery-card:hover .gallery-visual--image img { transform: scale(1.025); }
.gallery-index { font-weight: 700; color: var(--signal); }
.gallery-card figcaption strong { font-weight: 700; }

/* Forms ------------------------------------------------------------------- */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(0, 169, 255, 0.45);
  outline-offset: 1px;
  border-color: var(--signal) !important;
}

/* Footer ------------------------------------------------------------------ */
.site-footer {
  background: linear-gradient(160deg, #06192A 0%, #0A2540 55%, #0B3B66 100%);
  color: #FFFFFF;
}
.footer-heading { color: #FFFFFF; }
.footer-heading em { color: #9BD9FF; }
.footer-wordmark { color: rgba(255, 255, 255, 0.06); }
.footer-wordmark span { color: rgba(0, 169, 255, 0.12); }
.footer-links a:hover { color: #9BD9FF; }
.footer-bottom { border-top-color: rgba(255, 255, 255, 0.12); }

/* Catalog helpers --------------------------------------------------------- */
.catalog-link {
  color: var(--signal);
  text-decoration: underline;
  text-decoration-color: #9BD9FF;
  text-underline-offset: 4px;
}
.catalog-link:hover { color: var(--signal-dark); }
.catalog-stamp {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.manifesto-location {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Accent variants for the interface mockups ------------------------------- */
.accent--blue { --accent: #0B60B0; --accent-soft: #E6F4FF; --accent-ink: #084A8A; }
.accent--cyan { --accent: #00A9FF; --accent-soft: #E0F2FE; --accent-ink: #0369A1; }
.accent--red  { --accent: #E53935; --accent-soft: #FFEBEE; --accent-ink: #B71C1C; }

/* Responsive refinements -------------------------------------------------- */
@media (max-width: 640px) {
  .brand-logo { height: 38px; }
  .brand-logo--light { height: 42px; }
  .hero-title { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .hero-layout { padding: 2.6rem 0 3.6rem; }
  .hero-banner { border-radius: 16px; }
  .project-card-visual { height: 250px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .gallery-card--wide .gallery-visual { height: 300px; }
}


/* --------------------------------------------------------------------------
   QA refinements — dark surfaces, feature rhythm, full-bleed gallery slides
   -------------------------------------------------------------------------- */

.capability-card {
  background: rgba(255, 255, 255, 0.055);
}
.capability-card:hover { background: rgba(255, 255, 255, 0.09); }
.capability-card p { color: rgba(255, 255, 255, 0.58); }
.capability-card li { color: rgba(255, 255, 255, 0.5); }
.capability-card h3 { color: #FFFFFF; }

@media (min-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.gallery-visual {
  display: flex;
  height: auto;
  aspect-ratio: 16 / 10;
  align-items: center;
  justify-content: center;
  background: #F7FBFF;
}
.gallery-card--wide .gallery-visual { height: auto; aspect-ratio: 16 / 8.6; }
.gallery-visual--image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.gallery-card:hover .gallery-visual--image img { transform: none; }

@media (min-width: 1000px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .gallery-card--wide .gallery-visual { height: auto; aspect-ratio: 16 / 10; }
}


/* --------------------------------------------------------------------------
   Single-product catalogue — wide flagship card
   -------------------------------------------------------------------------- */

@media (min-width: 900px) {
  .project-grid--single { grid-template-columns: minmax(0, 1fr); }
}

.project-card--wide {
  flex-direction: row;
  min-height: 460px;
}
.project-card--wide .project-card-visual {
  flex: 0 0 55%;
  height: auto;
  min-height: 460px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}
.project-card--wide .project-card-body {
  flex: 1;
  padding: 2.1rem 2.3rem;
}
.project-card--wide .project-title-row h3 {
  font-size: clamp(2.1rem, 3.2vw, 3rem);
}
.project-card--wide .project-summary {
  max-width: 34rem;
  font-size: 0.98rem;
  line-height: 1.8;
}
.project-card--wide .project-highlights {
  margin-bottom: 1.4rem;
}

@media (max-width: 900px) {
  .project-card--wide {
    flex-direction: column;
    min-height: 0;
  }
  .project-card--wide .project-card-visual {
    flex: none;
    height: 320px;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .project-card--wide .project-card-body {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .project-card--wide .project-card-visual { height: 250px; }
}

/* --------------------------------------------------------------------------
   Social channels: header, mobile menu, footer and About
   -------------------------------------------------------------------------- */

.header-social { display: flex; align-items: center; gap: 0.45rem; }

.mobile-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.mobile-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.mobile-social a:hover { color: var(--ink); border-color: var(--ink); background: rgba(10, 37, 64, 0.03); }

.footer-social { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.footer-social a {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.footer-social a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}
.footer-social svg { width: 1rem; height: 1rem; }

.about-social { display: grid; gap: 1rem; }
.social-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-light);
  padding: 1.6rem;
  transition: border-color 0.2s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.social-card:hover {
  border-color: var(--signal);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(10, 37, 64, 0.08);
}
.social-card:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.social-card-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--signal);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.social-card:hover .social-card-icon {
  border-color: var(--signal);
  background: var(--signal);
  color: #fff;
}
.social-card-label {
  margin-top: 0.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.46rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.social-card strong {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.social-card p { margin: 0; font-size: 0.76rem; line-height: 1.75; color: var(--muted); }
.social-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--signal);
}
.social-card-link span { transition: transform 0.2s ease; }
.social-card:hover .social-card-link span { transform: translate(2px, -2px); }

@media (min-width: 760px) {
  .about-social { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
