/* ============================================================
   MOKO DIGITAL — Design System
   We Design. We Develop. We Deliver.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --red: #e00020;
  --red-deep: #c4001b;
  --red-soft: #ffe9ec;
  --ink: #101010;
  --ink-2: #1b1b1b;
  --ink-3: #262626;
  --paper: #f4f4f1;
  --paper-2: #ffffff;
  --line: rgba(16, 16, 16, 0.1);
  --line-dark: rgba(255, 255, 255, 0.14);
  --text: #101010;
  --muted: rgba(16, 16, 16, 0.62);
  --muted-dark: rgba(255, 255, 255, 0.66);

  --font-display: "Space Grotesk", "Segoe UI", -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", -apple-system, system-ui, sans-serif;
  --font-mono: "Space Mono", "SFMono-Regular", Menlo, monospace;

  --container: 1240px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-hard: cubic-bezier(0.85, 0, 0.15, 1);
  --header-h: 78px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--red);
  color: #fff;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

/* ---------- Layout ---------- */
.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

section {
  padding: clamp(72px, 9vw, 128px) 0;
  position: relative;
}

.section-head {
  margin-bottom: clamp(40px, 5vw, 72px);
}

.section-head.row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.section-head h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  max-width: 16ch;
}

.section-head .head-text {
  color: var(--muted);
  max-width: 52ch;
  font-size: 17px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  margin-bottom: 18px;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

.kicker.on-dark {
  color: var(--red);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  padding: 16px 28px;
  border-radius: 999px;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    color 0.35s var(--ease), border-color 0.35s var(--ease);
  will-change: transform;
  white-space: nowrap;
}

.btn .arr {
  transition: transform 0.35s var(--ease);
}

.btn:hover .arr {
  transform: translateX(4px);
}

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-red:hover {
  background: var(--red-deep);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--ink-3);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-ghost.on-dark {
  border-color: var(--line-dark);
  color: #fff;
}

.btn-ghost.on-dark:hover {
  border-color: #fff;
}

.btn-wa {
  background: #22c55e;
  color: #fff;
}

.btn-wa:hover {
  background: #16a34a;
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease), height 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(244, 244, 241, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  height: 66px;
}

.header.on-dark-header {
  background: rgba(16, 16, 16, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 40px;
  width: auto;
  display: block;
}

.header.is-dark .brand img {
  content: url("assets/logo/brand-tech-white.png");
}

.header.is-dark .nav-links a,
.header.is-dark .nav-links a.active {
  color: rgba(255, 255, 255, 0.82);
}

.header.is-dark .nav-links a:hover {
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 34px);
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a.active {
  color: var(--red);
}

.nav-cta {
  padding: 12px 22px;
  font-size: 14.5px;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  z-index: 130;
}

.burger span {
  width: 26px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease),
    background 0.3s;
}

.header.is-dark .burger span {
  background: #fff;
}

.burger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.header.is-dark .burger.open span {
  background: var(--ink);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8%;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-hard);
  visibility: hidden;
}

.mobile-menu.open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
}

.mobile-menu .mm-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu .mm-links a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  padding: 8px 0;
  display: flex;
  align-items: baseline;
  gap: 18px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.mobile-menu.open .mm-links a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu .mm-links a .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--red);
}

.mobile-menu .mm-links a:hover {
  color: var(--red);
}

.mobile-menu .mm-foot {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease) 0.15s, transform 0.5s var(--ease) 0.15s;
}

.mobile-menu.open .mm-foot {
  opacity: 1;
  transform: translateY(0);
}

.mm-stagger {
  transition-delay: calc(0.08s * var(--i, 0)) !important;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 40px) 0 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(80% 80% at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 30%, #000 0%, transparent 75%);
  opacity: 0.6;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(24px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.5);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2.2s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}

.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  max-width: 12ch;
}

.hero h1 .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

.hero h1 .w-in {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1s var(--ease) forwards;
}

.hero h1 .accent {
  color: var(--red);
}

.hero h1 small {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 1.5vw, 0.78rem);
  letter-spacing: 0.02em;
  font-weight: 500;
  margin-top: clamp(18px, 2.4vw, 30px);
  color: var(--muted);
  text-transform: uppercase;
}

@keyframes rise {
  to { transform: translateY(0); }
}

.hero-sub {
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  margin-top: clamp(28px, 4vw, 44px);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(30px, 4vw, 42px);
}

.hero-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(34px, 5vw, 56px) 0;
  margin-top: clamp(48px, 7vw, 90px);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.hero-foot .hf-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-foot .hf-ic {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}

.hero-foot .hf-ic svg {
  width: 22px;
  height: 22px;
}

.hero-foot .hf-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-foot .hf-val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
}

/* ---------- Hero split (copy left, visual right) ---------- */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
}

.hero-main {
  min-width: 0;
}

/* Desktop: panel top aligns with the headline, bottom with the CTA buttons */
@media (min-width: 861px) {
  .hero .hero-visual {
    align-self: stretch;
    max-width: none;
    margin-top: 78px;
    display: flex;
    flex-direction: column;
  }

  .hv-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .hv-chart {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hv-chart svg {
    flex: 1;
    height: auto;
    min-height: 120px;
  }
}

/* ---------- Hero visual: product dashboard panel ---------- */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  justify-self: end;
  margin: 0;
}

.hv-panel {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -44px rgba(16, 16, 16, 0.32), 0 2px 6px rgba(16, 16, 16, 0.04);
  overflow: hidden;
}

.hv-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), #ff5a6a);
}

.hv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.hv-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}

.hv-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.16);
}

.hv-period {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hv-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.hv-kpi {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hv-kpi + .hv-kpi {
  border-left: 1px solid var(--line);
}

.hv-kpi small {
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hv-kpi strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.1;
  color: var(--ink);
}

.hv-kpi em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: #16a34a;
}

.hv-chart {
  padding: 18px 20px 8px;
  border-bottom: 1px solid var(--line);
}

.hv-chart svg {
  display: block;
  width: 100%;
  height: 120px;
}

.hv-list {
  list-style: none;
  margin: 0;
  padding: 6px 24px 10px;
}

.hv-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  font-size: 14px;
}

.hv-list li + li {
  border-top: 1px solid var(--line);
}

.hv-tag {
  min-width: 56px;
  text-align: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}

.hv-job {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hv-st {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff4e5;
  color: #b45309;
}

.hv-st.is-live {
  background: #e7f7ee;
  color: #15803d;
}

.hv-st.is-review {
  background: var(--red-soft);
  color: var(--red);
}

.hv-float {
  position: absolute;
  right: -40px;
  top: 230px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 50px -22px rgba(16, 16, 16, 0.55);
  font-size: 14px;
  line-height: 1.35;
}

.hv-float strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
}

.hv-float small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12.5px;
}

.hv-tick {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex: none;
}

@media (max-width: 860px) {
  .hero-split {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-self: start;
    max-width: 480px;
    margin-top: 16px;
  }

  .hv-float {
    right: 16px;
    top: -20px;
  }
}

@media (max-width: 560px) {
  .hv-top { padding: 18px 18px 14px; }
  .hv-kpi { padding: 14px 12px; }
  .hv-kpi strong { font-size: 21px; }
  .hv-list { padding: 4px 18px 8px; }
  .hv-list li { grid-template-columns: auto 1fr; }
  .hv-st { display: none; }
  .hv-float {
    position: relative;
    right: auto;
    top: auto;
    margin-top: 14px;
    width: fit-content;
  }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  background: var(--paper-2);
}

.marquee .track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: scroll-x 34s linear infinite;
}

.marquee:hover .track {
  animation-play-state: paused;
}

.marquee .item {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.marquee .item .star {
  color: var(--red);
  font-size: clamp(16px, 2vw, 20px);
}

@keyframes scroll-x {
  to { transform: translateX(-50%); }
}

/* ---------- Reusable blocks ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
}

/* Service editorial list */
.svc-list {
  border-top: 1px solid var(--line);
}

.svc-row {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: clamp(26px, 4vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.3s;
}

.svc-row.open {
  background: rgba(224, 0, 32, 0.03);
}

.svc-row .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.svc-row .title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.svc-row .meta {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  max-width: 46ch;
}

.svc-row .toggle {
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.3s, transform 0.4s var(--ease);
}

.svc-row .toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.4s var(--ease);
}

.svc-row.open .toggle {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.svc-row.open .toggle svg {
  transform: rotate(45deg);
}

.svc-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(20px, 3vw, 40px);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease), padding 0.4s var(--ease);
}

.svc-body.show {
  max-height: 900px;
  padding: 8px 0 44px 100px;
}

.svc-body .sb-col h4 {
  font-size: 13px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 16px;
}

.svc-body .sb-col ul li {
  padding: 9px 0 9px 26px;
  position: relative;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.svc-body .sb-col ul li:last-child {
  border-bottom: none;
}

.svc-body .sb-col ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 19px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.svc-body .sb-col p {
  color: var(--muted);
  font-size: 15.5px;
}

/* Work / portfolio items */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
}

.work-item {
  display: block;
  position: relative;
}

.work-item .wi-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-2);
  aspect-ratio: 4 / 3;
  margin-bottom: 20px;
  transition: transform 0.6s var(--ease);
}

.work-item:hover .wi-media {
  transform: scale(0.985);
}

.work-item .wi-media img,
.work-item .wi-media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.work-item:hover .wi-media svg {
  transform: scale(1.05);
}

.work-item .wi-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(16, 16, 16, 0.82);
  color: #fff;
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
}

.work-item .wi-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.work-item h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  letter-spacing: -0.02em;
}

.work-item .wi-industry {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.work-item .wi-arrow {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: background 0.3s, color 0.3s, transform 0.4s var(--ease);
}

.work-item:hover .wi-arrow {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: rotate(-40deg);
}

.work-item .wi-arrow svg {
  width: 18px;
  height: 18px;
}

/* Dark section */
.sec-dark {
  background: var(--ink);
  color: #fff;
}

.sec-dark .kicker,
.sec-dark .head-text {
  color: var(--muted-dark);
}

.sec-dark .section-head h2 {
  color: #fff;
}

.sec-dark h2.expose {
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
}

.sec-dark .ind-row p {
  color: var(--muted-dark);
}

/* capability grid (ai list) */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: clamp(40px, 5vw, 72px);
}

.cap-cell {
  background: var(--ink);
  color: #fff;
  padding: clamp(26px, 3.2vw, 44px);
  transition: background 0.3s;
}

.cap-cell:hover {
  background: var(--ink-2);
}

.cap-cell .cap-ic {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(224, 0, 32, 0.14);
  color: var(--red);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.cap-cell .cap-ic svg {
  width: 24px;
  height: 24px;
}

.cap-cell h4 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}

.cap-cell p {
  color: var(--muted-dark);
  font-size: 14.5px;
}

/* stats */
.stats,
.stats-2col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
}

.stats-2col {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 560px) {
  .stats-2col {
    grid-template-columns: 1fr;
  }
}

.stat .s-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat .s-num sup {
  color: var(--red);
  font-size: 0.45em;
}

.stat .s-label {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 10px;
}

/* Industries row */
.ind-row {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr;
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 3vw, 34px) 0;
  border-top: 1px solid var(--line);
  transition: background 0.3s, padding-left 0.4s var(--ease);
}

.ind-row:hover {
  padding-left: 14px;
}

.ind-row .ir-icon {
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.ind-row .ir-icon svg {
  width: 22px;
  height: 22px;
}

.ind-row h3 {
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  letter-spacing: -0.02em;
}

.ind-row p {
  color: var(--muted);
  font-size: 15px;
}

.ind-row .ir-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--red);
  text-align: right;
}

/* Industry detail rows */
.ind-detail {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 1.1fr;
  gap: clamp(20px, 3vw, 44px);
  padding: clamp(30px, 4vw, 52px) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.ind-detail .id-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.ind-detail .id-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--red);
}

.ind-detail h3 {
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.ind-detail .id-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-deep);
}

.ind-detail p {
  color: var(--muted);
  font-size: 15px;
}

.ind-detail ul {
  margin-top: 4px;
}

.ind-detail ul li {
  padding: 8px 0 8px 24px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink);
}

.ind-detail ul li:last-child {
  border-bottom: none;
}

.ind-detail ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.ind-detail .id-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 2px solid var(--red);
  padding-bottom: 4px;
  transition: color 0.25s;
}

.ind-detail .id-cta:hover {
  color: var(--red);
}

@media (max-width: 1024px) {
  .ind-detail {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .ind-detail {
    grid-template-columns: 1fr;
  }
}

/* Testimonials */
.tst-slider {
  position: relative;
}

.tst-track {
  overflow: hidden;
}

.tst-inner {
  display: flex;
  transition: transform 0.8s var(--ease);
}

.tst {
  flex: 0 0 100%;
  padding: 8px;
}

.tst blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.35;
  max-width: 22em;
}

.tst blockquote::before {
  content: "“";
  color: var(--red);
}

.tst blockquote::after {
  content: "”";
  color: var(--red);
}

.tst .tst-who {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.tst .tst-av {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
}

.tst .tst-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}

.tst .tst-role {
  color: var(--muted);
  font-size: 13.5px;
  font-family: var(--font-mono);
}

.tst-nav {
  display: flex;
  gap: 12px;
  margin-top: 36px;
}

.tst-nav button {
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.3s, color 0.3s;
}

.tst-nav button:hover {
  background: var(--ink);
  color: #fff;
}

.tst-nav svg {
  width: 20px;
  height: 20px;
}

.tst-dots {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.tst-dots button {
  width: 34px;
  height: 3px;
  background: var(--line);
  border-radius: 99px;
  transition: background 0.3s, width 0.3s;
}

.tst-dots button.on {
  background: var(--red);
  width: 52px;
}

/* ---------- Footer ---------- */
.footer {
  background: #101010;
  color: #fff;
  padding: clamp(56px, 6vw, 96px) 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: 56px;
}

.footer .f-brand img {
  height: 40px;
  width: auto;
}

.footer .f-social {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.footer .f-social a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

.footer .f-social a:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-3px);
}

.footer .f-social svg {
  width: 18px;
  height: 18px;
}

/* Generic social row (works outside footer, e.g. dark CTA sections) */
.f-social {
  display: flex;
  gap: 10px;
}

.f-social a,
.f-social button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

.f-social a:hover,
.f-social button:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-3px);
}

.f-social svg {
  width: 18px;
  height: 18px;
}

.footer h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 22px;
  font-weight: 500;
}

.footer ul li {
  margin-bottom: 12px;
}

.footer ul a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14.5px;
  transition: color 0.25s;
}

.footer ul a:hover {
  color: var(--red);
}

.footer .f-contact li {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14.5px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer .f-contact svg {
  width: 17px;
  height: 17px;
  color: var(--red);
  margin-top: 3px;
  flex: none;
}

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--muted-dark);
}

.footer-bottom .fb-trademark {
  font-family: var(--font-mono);
}

/* ---------- Page hero (interior) ---------- */
.page-hero {
  padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  max-width: 16ch;
  margin-bottom: 24px;
}

.page-hero .ph-lead {
  max-width: 56ch;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 19px);
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.page-hero .breadcrumb a:hover {
  color: var(--red);
}

.page-hero .breadcrumb .sep {
  color: var(--red);
}

.page-hero h1 .accent {
  color: var(--red);
}

.page-hero.dark {
  background: var(--ink);
  color: #fff;
}

.page-hero.dark .ph-lead,
.page-hero.dark .breadcrumb {
  color: var(--muted-dark);
}

.page-hero.dark .breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Process (about) ---------- */
.process-list {
  counter-reset: step;
}

.process-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid var(--line);
}

.process-item .pi-num {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--red);
}

.process-item h3 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.process-item p {
  color: var(--muted);
  max-width: 60ch;
}

/* values grid */
.value-cell {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(26px, 3vw, 40px);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.value-cell:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -24px rgba(16, 16, 16, 0.28);
}

.value-cell .v-ic {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.value-cell .v-ic svg {
  width: 24px;
  height: 24px;
}

.value-cell h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.value-cell p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Services detail ---------- */
.svc-hero-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.svc-hero-page h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.svc-hero-page p {
  color: var(--muted);
}

.svc-state {
  background: var(--ink);
  color: #fff;
  padding: clamp(40px, 5vw, 64px);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.svc-state::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--red);
}

.svc-state h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 18px;
}

.svc-state ol li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  gap: 18px;
  align-items: baseline;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
}

.svc-state ol li:last-child {
  border-bottom: none;
}

.svc-state ol li i {
  font-family: var(--font-mono);
  font-style: normal;
  color: var(--red);
  font-size: 12px;
}

/* ---------- Portfolio ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.filters button {
  padding: 11px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.filters button:hover {
  border-color: var(--ink);
}

.filters button.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.port-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 52px);
}

.port-item {
  display: block;
}

.port-item .pi-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--ink-2);
  margin-bottom: 22px;
  position: relative;
}

.port-item .pi-media svg,
.port-item .pi-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.port-item:hover .pi-media svg {
  transform: scale(1.05);
}

.port-item .pi-info {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}

.port-item h3 {
  font-size: 1.35rem;
}

.port-item .pi-ind {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 4px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.port-item .pi-desc {
  color: var(--muted);
  font-size: 15px;
  margin-top: 12px;
  max-width: 52ch;
}

.port-item .pi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.port-item .pi-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
}

.port-item .pi-res {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.port-item .pi-res strong {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 15px;
}

.port-item .pi-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 2px solid var(--red);
  padding-bottom: 4px;
}

.port-item.hide {
  display: none;
}

/* Filter stagger */
.port-item.reveal-anim {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.port-item.reveal-anim.shown {
  opacity: 1;
  transform: none;
}

/* ---------- AI assistant widget ---------- */
.ai-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 140;
}

.ai-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 14px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  box-shadow: 0 16px 44px -12px rgba(16, 16, 16, 0.45);
  transition: transform 0.35s var(--ease);
}

.ai-toggle .ai-ic {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
}

.ai-toggle .ai-ic svg {
  width: 14px;
  height: 14px;
}

.ai-toggle:hover {
  transform: translateY(-3px);
}

.ai-panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: min(400px, calc(100vw - 40px));
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -24px rgba(16, 16, 16, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(620px, 76vh);
  transform-origin: bottom right;
  transform: scale(0.9) translateY(12px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s var(--ease), opacity 0.3s, visibility 0.4s;
}

.ai-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
}

.ai-head {
  background: var(--ink);
  color: #fff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ai-head .ai-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--red);
  display: grid;
  place-items: center;
  flex: none;
}

.ai-head .ai-mark svg {
  width: 20px;
  height: 20px;
}

.ai-head h3 {
  font-size: 16px;
}

.ai-head p {
  font-size: 12.5px;
  color: var(--muted-dark);
}

.ai-close {
  margin-left: auto;
  color: var(--muted-dark);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.3s;
}

.ai-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.ai-body {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper);
  min-height: 200px;
  scrollbar-width: thin;
}

.ai-msg {
  max-width: 86%;
  padding: 13px 17px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.5;
  animation: msg-in 0.4s var(--ease);
}

.ai-msg.bot {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
  align-self: flex-start;
}

.ai-msg.user {
  background: var(--red);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}

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

.ai-opt {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}

.ai-opt button {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.25s;
}

.ai-opt button:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.ai-input-row {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.ai-input-row input {
  flex: 1;
  border: none;
  background: var(--paper);
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 14.5px;
}

.ai-input-row input:focus {
  outline: none;
}

.ai-input-row button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
  transition: background 0.3s, transform 0.3s;
}

.ai-input-row button:hover {
  background: var(--red-deep);
  transform: scale(1.04);
}

.ai-input-row button svg {
  width: 18px;
  height: 18px;
}

.ai-summary {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  font-size: 13.5px;
}

.ai-summary h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 12px;
}

.ai-summary .sum-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--line-dark);
}

.ai-summary .sum-item:last-child {
  border-bottom: none;
}

.ai-summary .sum-item b {
  color: var(--muted-dark);
  font-weight: 500;
  font-size: 12px;
  display: block;
}

.ai-summary .sum-item span {
  font-family: var(--font-display);
}

/* ---------- Forms ---------- */
.form-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
}

.form-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.field label .req {
  color: var(--red);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  transition: border-color 0.3s, background 0.3s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--paper-2);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--red);
}

.field .err-msg {
  color: var(--red);
  font-size: 12.5px;
  display: none;
}

.field.has-error .err-msg {
  display: block;
}

.form-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 16px;
}

.form-success {
  display: none;
  text-align: center;
  padding: clamp(30px, 4vw, 50px);
}

.form-success.show {
  display: block;
}

.form-success .fs-ic {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
}

.form-success .fs-ic svg {
  width: 32px;
  height: 32px;
}

.form-success h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.form-success p {
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto 26px;
}

/* side panel (start project page) */
.side-panel {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
}

.sidebar-form-shell {
  max-width: 860px;
}

.side-panel .sp-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  background: var(--paper-2);
}

.side-panel h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.side-panel p {
  color: var(--muted);
  font-size: 14.5px;
}

.side-panel ul {
  margin-top: 20px;
}

.side-panel ul li {
  padding: 11px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14.5px;
}

.side-panel ul li svg {
  width: 18px;
  height: 18px;
  color: var(--red);
  flex: none;
}

.sp-whats {
  margin-top: 24px;
}

.btn-wa .wa-icon {
  width: 20px;
  height: 20px;
  flex: none;
  display: block;
}

/* contact cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.contact-cell {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 36px);
  transition: transform 0.4s var(--ease), border-color 0.3s;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-cell:hover {
  transform: translateY(-5px);
  border-color: var(--ink);
}

.contact-cell .cc-ic {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
}

.contact-cell.wa .cc-ic {
  background: #22c55e;
}

.contact-cell .cc-ic svg {
  width: 24px;
  height: 24px;
}

.contact-cell h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.contact-cell p,
.contact-cell a {
  color: var(--muted);
  font-size: 15px;
}

.contact-cell a:hover {
  color: var(--red);
}

/* ---------- Admin ---------- */
.admin-shell {
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: 80px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.admin-top h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

.admin-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}

.a-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}

.a-card .a-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.a-card .a-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: 8px;
  line-height: 1;
}

.a-card .a-value small {
  font-size: 0.9rem;
  color: var(--muted);
}

.a-card .a-note {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 10px;
}

.a-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  align-items: start;
}

.a-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-2);
}

.a-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 640px;
}

.a-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.a-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.a-table tr:last-child td {
  border-bottom: none;
}

.a-table .a-name {
  font-weight: 600;
}

.a-table .a-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.a-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 10px;
}

.a-pill.new { background: var(--red-soft); color: var(--red); }
.a-pill.contacted { background: #e8eefc; color: #2457d6; }
.a-pill.won { background: #e3f6ea; color: #15925a; }
.a-pill.lost { background: #f4f4f1; color: var(--muted); }

.a-cols {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.a-block {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
}

.a-block h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.a-block p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.a-block .a-note-box {
  font-size: 12.5px;
  color: var(--muted);
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 12px 0;
}

.a-block .a-status {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.a-status.ready { color: #15925a; }
.a-status.to-connect { color: #b45309; }
.a-status.local { color: #15925a; }

.a-bar-wrap { margin-top: 8px; }
.a-bar {
  height: 8px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
  margin-top: 8px;
}
.a-bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--red);
}

.a-login {
  min-height: 60vh;
  display: grid;
  place-items: center;
}

.a-login .form-card {
  width: min(420px, 92vw);
}

.source-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line);
}

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

@media (max-width: 1024px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .a-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .stat-cards { grid-template-columns: 1fr; }
}

/* ---------- Admin: panel tabs ---------- */
.a-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.a-tabs button {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
  background: none;
  border: none;
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.a-tabs button:hover { color: var(--ink); }

.a-tabs button.on {
  color: var(--ink);
  border-bottom-color: var(--red);
}

.a-panel[hidden] { display: none; }

.pi-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 14px;
  padding: 24px 0;
}

.a-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

/* ---------- Admin: works grid ---------- */
.a-works {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.work-admin {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.wa-thumb {
  width: 92px;
  height: 68px;
  object-fit: cover;
  border-radius: 10px;
  flex: none;
  background: #ecebe7;
}

.wa-thumb-empty {
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.wa-info { min-width: 0; flex: 1; }

.wa-info h4 {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 6px 0 8px;
}

.wa-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #ecebe7;
  color: var(--ink);
  border-radius: 999px;
  padding: 3px 9px;
}

.a-pill.published { background: #e3f6ea; color: #15925a; }
.a-pill.draft { background: #f4f4f1; color: #b45309; }

.wa-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: none;
}

.wa-btn {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.wa-btn:hover { border-color: var(--ink); }

.wa-del:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-soft);
}

/* ---------- Admin: work editor modal ---------- */
.a-modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 12, 0.55);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 120;
}

.a-modal[hidden] { display: none; }

.a-modal-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  width: min(780px, 94vw);
  max-height: 92vh;
  overflow: auto;
  padding: 28px 30px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.am-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.am-head h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.am-close {
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 8px;
}

.am-close:hover { color: var(--red); }

.am-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 18px;
}

.am-grid .field.full,
.am-grid .full { grid-column: 1 / -1; }

.am-foot {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.cat-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 6px;
  font-size: 14px;
}

.cat-checks label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.cat-checks input { accent-color: var(--red); width: auto; }

.upload-zone {
  border: 1.5px dashed #c9c7c1;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.upload-zone:hover, .upload-zone.over {
  border-color: var(--red);
  background: var(--red-soft);
}

.upload-zone img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 9px;
  margin-bottom: 10px;
  display: block;
}

.uz-copy p { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.uz-copy b { color: var(--ink); }

#work-cover-url { margin-top: 2px; }

/* ---------- Admin responsive ---------- */
@media (max-width: 640px) {
  .a-works { grid-template-columns: 1fr; }
  .am-grid { grid-template-columns: 1fr; }
  .am-foot { flex-direction: column-reverse; }
  .work-admin { flex-wrap: wrap; }
  .wa-actions { flex-direction: row; }
}

/* ---------- Meet the team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.team-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 4 / 5;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.team-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(224, 0, 32, 0) 55%, rgba(224, 0, 32, 0.16) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(16, 16, 16, 0.16);
}

.team-card:hover img { transform: scale(1.05); }
.team-card:hover::after { opacity: 1; }

.team-num {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: 0 6px 18px rgba(224, 0, 32, 0.35);
}

.join-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1.5px dashed #c9c7c1;
  border-radius: 20px;
  padding: 28px 34px;
  margin-top: 20px;
  text-align: left;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}

.join-card .jc-icon {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

.join-card .jc-copy { flex: 1; min-width: 0; }

.join-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.join-card p {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 6px;
  max-width: 58ch;
}

.jc-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  flex: none;
}

.join-card:hover,
.join-card:hover .jc-icon {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.join-card:hover p { color: rgba(255, 255, 255, 0.85); }
.join-card:hover .jc-icon { background: #fff; color: var(--red); }
.join-card h3 .accent { color: var(--red); }
.join-card:hover h3 .accent { color: #fff; }

@media (max-width: 640px) {
  .join-card { flex-wrap: wrap; padding: 24px; }
  .jc-btn { width: 100%; }
}

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
  will-change: opacity, transform;
}

[data-reveal].shown {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="left"] {
  transform: translateX(-36px);
}

[data-reveal="right"] {
  transform: translateX(36px);
}

[data-reveal="scale"] {
  transform: scale(0.94);
}

/* Live region for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

::placeholder {
  color: rgba(16, 16, 16, 0.38);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero h1 .w-in { transform: none; animation: none; }
  .marquee .track { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .svc-row { grid-template-columns: 56px 1fr auto; }
  .svc-body.show { padding-left: 56px; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-cta { font-size: 13.5px; padding: 10px 16px; }
  .burger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .svc-hero-page, .form-shell { grid-template-columns: 1fr; }
  .work-grid, .port-grid { grid-template-columns: 1fr; }
  .cap-grid, .stats { grid-template-columns: 1fr 1fr; }
  .ind-row { grid-template-columns: 1fr; }
  .ind-row .ir-num { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section-head.row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-foot { flex-direction: column; }
}

@media (max-width: 640px) {
  .nav-cta { display: none; }
  .brand img { height: 34px; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 40px 1fr auto; gap: 12px; }
  .svc-body.show { padding-left: 0; }
  .hero h1 { font-size: clamp(2.3rem, 10.5vw, 3.1rem); }
  .hero-cta .btn,
  .mm-foot .btn { width: 100%; justify-content: center; }
}

@media (min-width: 861px) {
  .hero-foot .hf-item:last-child { margin-left: auto; }
}
/* ============================================================
   DEMO PAGE
   ============================================================ */
.demo-block {
  padding: clamp(44px, 5.5vw, 76px) 0;
  border-top: 1px solid var(--line);
}

.demo-head {
  max-width: 680px;
  margin-bottom: clamp(22px, 2.6vw, 32px);
}

.demo-no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.demo-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  margin: 12px 0 14px;
}

.demo-head p {
  color: var(--muted);
}

.demo-stage {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 36px);
  display: grid;
  place-items: center;
}

.demo-stage-dark {
  background: var(--ink);
  border-color: var(--ink);
}

.demo-foot {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

/* Option 01 — browser */
.browser {
  width: 100%;
  max-width: 900px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(16, 16, 16, 0.4);
}

.b-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: #ececea;
}

.b-bar > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cfcfcc;
}

.b-url {
  margin-left: 12px;
  flex: 1;
  max-width: 320px;
  background: #fff;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--muted);
}

.b-hero {
  background: linear-gradient(120deg, #101010 0%, #4a0510 100%);
  color: #fff;
  padding: clamp(32px, 6vw, 60px) clamp(22px, 5vw, 44px);
}

.b-hero small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.b-hero h3 {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  margin: 12px 0 22px;
}

.b-search {
  display: flex;
  gap: 8px;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  max-width: 520px;
}

.b-search > span {
  flex: 1;
  font-size: 13px;
  color: var(--muted);
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}

.b-search button {
  background: var(--red);
  color: #fff;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
}

.b-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px;
}

.b-cards > div {
  height: 110px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
}

/* Option 02 — phone chat */
.demo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.demo-points li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}

.demo-points .ck {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  flex: none;
}

.phone {
  width: 300px;
  height: 540px;
  margin: 0 auto;
  border-radius: 44px;
  background: #0d0d0d;
  padding: 14px;
  box-shadow: 0 40px 80px -30px rgba(16, 16, 16, 0.5);
}

.phone-screen {
  height: 100%;
  background: #e5ddd5;
  border-radius: 32px;
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.phone-top {
  background: #075e54;
  color: #fff;
  margin: 0 -14px 6px;
  padding: 16px 16px;
  font-weight: 600;
  font-size: 14px;
}

.bub {
  max-width: 80%;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.bub.me {
  align-self: flex-end;
  background: #dcf8c6;
}

.bub small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  text-align: right;
}

/* Option 03 — dashboard */
.dash {
  width: 100%;
  max-width: 960px;
  background: #14161a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  color: #fff;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.kpi,
.chart,
.leads {
  background: #1c1f25;
  border-radius: 12px;
}

.kpi {
  padding: 16px 18px;
}

.kpi span {
  font-size: 11px;
  color: #8b919c;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.kpi b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  margin-top: 6px;
}

.dash-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.chart {
  padding: 18px;
  height: 230px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.chart i {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(to top, var(--red-deep), #ff4d6a);
}

.leads {
  padding: 8px 16px;
  font-size: 13.5px;
}

.leads > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.leads > div:last-child {
  border-bottom: 0;
}

.tag {
  font-style: normal;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(224, 0, 32, 0.2);
  color: #ff6b7f;
}

/* Option 04 — guided tour */
.tour {
  position: relative;
}

.tour input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tour-body {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}

.tour-steps label {
  display: block;
  padding: 18px 20px;
  border-left: 3px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}

.tour-steps label small {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.tour-steps label b {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text);
  margin-bottom: 4px;
}

#t1:checked ~ .tour-body label[for="t1"],
#t2:checked ~ .tour-body label[for="t2"],
#t3:checked ~ .tour-body label[for="t3"] {
  border-left-color: var(--red);
  color: var(--text);
}

.tour-screen {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  min-height: 280px;
}

.tour-screen .s {
  display: none;
}

#t1:checked ~ .tour-body .s1,
#t2:checked ~ .tour-body .s2,
#t3:checked ~ .tour-body .s3 {
  display: block;
}

.s-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.s h4 {
  font-size: 26px;
  margin: 10px 0 26px;
}

.s-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.s-row i {
  flex: 1;
  height: 44px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.s-row-btn button {
  flex: none;
  padding: 12px 22px;
}

.s-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.s-grid i {
  height: 56px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.s-grid i.on {
  background: var(--red-soft);
  border-color: var(--red);
}

.s-list > div {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.s-list em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .demo-split,
  .tour-body,
  .dash-main {
    grid-template-columns: 1fr;
  }

  .dash-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .b-cards {
    grid-template-columns: 1fr;
  }
}

/* Demo page: two-column grid (left / right) */
.demo-grid {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  padding: clamp(40px, 5vw, 64px) 0;
}

.demo-grid .demo-block {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  min-width: 0;
}

.demo-grid .demo-block > .container {
  width: 100%;
}

.demo-grid .demo-head {
  margin-bottom: 22px;
}

.demo-grid .demo-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.demo-grid .demo-stage {
  padding: clamp(16px, 2vw, 24px);
  border-radius: var(--radius-md);
}

.demo-grid .b-hero {
  padding: 32px 24px;
}

.demo-grid .b-hero h3 {
  font-size: 1.6rem;
}

.demo-grid .b-cards > div {
  height: 70px;
}

.demo-grid .demo-split,
.demo-grid .tour-body {
  grid-template-columns: 1fr;
}

.demo-grid .demo-points li {
  font-size: 15.5px;
}

.demo-grid .phone {
  width: 260px;
  height: 480px;
}

.demo-grid .dash-kpis {
  grid-template-columns: 1fr 1fr;
}

.demo-grid .dash-main {
  grid-template-columns: 1fr;
}

.demo-grid .chart {
  height: 180px;
}

.demo-grid .tour-screen {
  min-height: 0;
  padding: 24px;
}

.demo-grid .tour-screen .s h4 {
  font-size: 22px;
  margin: 8px 0 18px;
}

.demo-grid .tour-steps label {
  padding: 12px 16px;
}

@media (max-width: 860px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
}

/* Demo page: all four cards share the same size */
.demo-grid {
  grid-template-rows: repeat(2, 1fr);
  align-items: stretch;
}

.demo-grid .demo-block {
  display: flex;
  flex-direction: column;
}

.demo-grid .demo-block > .container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.demo-grid .demo-stage {
  flex: 1;
}

.demo-grid .demo-foot {
  margin-top: auto;
  padding-top: 20px;
}

.demo-grid .demo-head {
  margin-bottom: 20px;
}

/* ============================================================
   DEMO PAGE — system cards
   ============================================================ */
.sys-section {
  padding: clamp(24px, 3vw, 40px) 0 clamp(64px, 8vw, 100px);
}

.sys-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.sys-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 40px);
  min-width: 0;
}

.sys-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.sys-no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--red);
}

.sys-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}

.sys-card h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.3rem);
  margin-bottom: 6px;
}

.sys-sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--red);
  margin-bottom: 14px;
}

.sys-desc {
  color: var(--muted);
  margin-bottom: 22px;
}

.sys-points {
  border-top: 1px solid var(--line);
  margin-bottom: 28px;
}

.sys-points li {
  position: relative;
  padding: 12px 0 12px 26px;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}

.sys-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

.sys-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sys-stack {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.sys-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 860px) {
  .sys-grid {
    grid-template-columns: 1fr;
  }
}

/* Demo system cards: screenshot */
.sys-shot {
  margin: 0 0 24px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--paper);
}

.sys-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Demo system cards: clickable panel list */
.sys-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sys-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.sys-panel .sys-arrow {
  color: var(--red);
  transition: transform 0.25s var(--ease);
}

.sys-panel:hover {
  border-color: var(--red);
  background: var(--red-soft);
}

.sys-panel:hover .sys-arrow {
  transform: translateX(3px);
}

@media (max-width: 560px) {
  .sys-panels {
    grid-template-columns: 1fr;
  }
}

/* Demo system card: learn-more link */
.sys-more {
  display: inline-flex;
  gap: 8px;
  margin: -6px 0 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px solid var(--red);
  padding-bottom: 2px;
  align-self: flex-start;
}

.sys-more:hover {
  color: var(--red);
}

/* ============================================================
   SYSTEM MARKETING PAGES (demo-*.html)
   ============================================================ */
.ms-shot-wrap {
  padding: clamp(8px, 2vw, 24px) 0 clamp(40px, 5vw, 64px);
}

.ms-shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: 0 40px 80px -40px rgba(16, 16, 16, 0.3);
  aspect-ratio: 16 / 9;
}

.ms-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.ms-section {
  padding: clamp(56px, 7vw, 96px) 0;
  border-top: 1px solid var(--line);
}

.ms-feats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink);
}

.ms-feat {
  padding: 30px 28px 32px 0;
  border-bottom: 1px solid var(--line);
}

.ms-feat:not(:nth-child(3n+1)) {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.ms-feat h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.ms-feat p {
  color: var(--muted);
  font-size: 15.5px;
}

.ms-panels-sec {
  background: var(--paper-2);
}

.ms-panels {
  display: grid;
  gap: 20px;
}

.ms-panels-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ms-panels-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ms-panels-6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ms-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(24px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.ms-panel-who {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.ms-panel h3 {
  font-size: 24px;
}

.ms-panel p {
  color: var(--muted);
  font-size: 15.5px;
  flex: 1;
  margin-bottom: 8px;
}

@media (max-width: 860px) {
  .ms-feats,
  .ms-panels-2,
  .ms-panels-3,
  .ms-panels-6 {
    grid-template-columns: 1fr;
  }

  .ms-feat:not(:nth-child(3n+1)) {
    padding-left: 0;
    border-left: 0;
  }
}

/* ============================================================
   SYSTEM THEMES — each demo page uses its own brand colours
   ============================================================ */
.theme-hotel {
  --red: #b8891a;
  --red-deep: #946c12;
  --red-soft: #f8f1dc;
  --ink: #0b2748;
}

.theme-tours {
  --red: #c9690c;
  --red-deep: #a35408;
  --red-soft: #fbeedd;
  --ink: #1f3a1c;
}

.theme-restaurant {
  --red: #cb1f2e;
  --red-deep: #a51823;
  --red-soft: #fbe6e8;
  --ink: #2a0b0e;
}

.theme-estate {
  --red: #2563eb;
  --red-deep: #1d4fc4;
  --red-soft: #e8f0ff;
  --ink: #172033;
}

.theme-hotel .ms-shot,
.theme-tours .ms-shot,
.theme-restaurant .ms-shot,
.theme-estate .ms-shot {
  border-color: var(--line);
}

.theme-hotel .ms-panel-who,
.theme-tours .ms-panel-who,
.theme-restaurant .ms-panel-who,
.theme-estate .ms-panel-who {
  color: var(--red-deep);
}

/* Footer: keep columns inside the screen on phones */
.footer-top > div {
  min-width: 0;
}

.footer a {
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px 20px;
  }

  .footer-top > div:first-child {
    grid-column: 1 / -1;
  }
}

/* System icons (recoloured to each demo's brand colour) */
.ms-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
}

.sys-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}

/* Full system logos (recoloured to each demo's brand colours) */
.ms-logo {
  height: 64px;
  width: auto;
  margin-bottom: 22px;
}

.sys-logo {
  height: 44px;
  width: auto;
  margin-bottom: 18px;
}

/* Demo pages: nav logo uses the system's own logo (white version on dark header) */
.theme-hotel .header.is-dark .brand img { content: url("../assets/products/hotel-light.svg"); }
.theme-tours .header.is-dark .brand img { content: url("../assets/products/safaris-light.svg"); }
.theme-restaurant .header.is-dark .brand img { content: url("../assets/products/restaurant-light.svg"); }
.theme-estate .header.is-dark .brand img { content: url("../assets/products/estate-light.svg"); }

/* Demo cards: footer bar spans the whole card bottom */
.sys-foot {
  margin-top: auto;
  margin-inline: calc(-1 * clamp(26px, 3vw, 40px));
  margin-bottom: calc(-1 * clamp(26px, 3vw, 40px));
  padding: 20px clamp(26px, 3vw, 40px) clamp(26px, 3vw, 40px);
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-radius: 0 0 calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.sys-hint {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.sys-foot .sys-see {
  align-self: stretch;
  justify-content: center;
  margin-top: 6px;
}

/* System pages: panel links in the hero */
.hero-panels {
  margin-top: clamp(26px, 3.4vw, 40px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hp-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.hp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hp-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.hp-chip:hover {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red-deep);
}

.hp-arrow {
  color: var(--red);
  transition: transform 0.25s var(--ease);
}

.hp-chip:hover .hp-arrow {
  transform: translateX(3px);
}

/* System pages: panel pills inside the "Choose a panel" section */
.panels-inline {
  margin-top: 0;
  margin-bottom: clamp(24px, 3vw, 36px);
  padding: 22px 0 0;
}

/* Demo pages: smaller header logo and nav font */
.theme-hotel .brand img,
.theme-tours .brand img,
.theme-restaurant .brand img,
.theme-estate .brand img {
  height: 32px;
}

.theme-hotel .nav-links a,
.theme-tours .nav-links a,
.theme-restaurant .nav-links a,
.theme-estate .nav-links a {
  font-size: 13.5px;
}

.theme-hotel .nav-cta,
.theme-tours .nav-cta,
.theme-restaurant .nav-cta,
.theme-estate .nav-cta {
  font-size: 13.5px;
  padding: 11px 18px;
}

@media (max-width: 640px) {
  .theme-hotel .brand img,
  .theme-tours .brand img,
  .theme-restaurant .brand img,
  .theme-estate .brand img {
    height: 28px;
  }
}

/* Demo pages: smaller hero heading and lead */
.theme-hotel .page-hero h1,
.theme-tours .page-hero h1,
.theme-restaurant .page-hero h1,
.theme-estate .page-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  margin-bottom: 18px;
}

.theme-hotel .page-hero .ph-lead,
.theme-tours .page-hero .ph-lead,
.theme-restaurant .page-hero .ph-lead,
.theme-estate .page-hero .ph-lead {
  font-size: clamp(15px, 1.4vw, 17px);
}

/* Demo pages: two-column hero with screenshot slider on the right */
.page-hero .page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}

.page-hero .ph-copy { min-width: 0; }
.page-hero .ph-copy .hero-panels { max-width: 640px; }

.hero-slider {
  position: relative;
  min-width: 0;
}

.hs-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(10, 10, 12, 0.45);
}

.hs-track {
  position: relative;
  aspect-ratio: 16 / 10;
}

.hs-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
  pointer-events: none;
}

.hs-slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.hs-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hs-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 18px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to top, rgba(8, 8, 10, 0.72), rgba(8, 8, 10, 0));
}

.hs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.hs-btns { display: flex; gap: 8px; }

.hs-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--text);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.hs-btn:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.hs-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hs-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background 0.25s var(--ease), width 0.25s var(--ease);
}

.hs-dot.is-active {
  width: 26px;
  border-radius: 999px;
  background: var(--red);
}

@media (max-width: 960px) {
  .page-hero .page-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 6vw, 40px);
  }
  .hero-slider { order: 2; }
}

/* System pages: screenshot inside each panel card */
.ms-panel-shot {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) - 8px);
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 16 / 10;
}

.ms-panel-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.6s var(--ease);
}

.ms-panel:hover .ms-panel-shot img {
  transform: scale(1.03);
}

/* Screenshot lightbox */
body.lb-lock { overflow: hidden; }

.lb {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: clamp(20px, 4vw, 48px);
  background: rgba(8, 8, 10, 0.92);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.lb.is-open { opacity: 1; visibility: visible; }

.lb-stage {
  margin: 0;
  max-width: min(1100px, 92vw);
  max-height: 74vh;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #111;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
}

.lb-stage img {
  display: block;
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  background: #111;
}

.lb-cap {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lb-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  max-width: min(1100px, 92vw);
  padding-bottom: 4px;
}

.lb-thumb {
  flex: 0 0 auto;
  width: 96px;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.25s var(--ease), border-color 0.25s var(--ease);
}

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

.lb-thumb:hover { opacity: 1; }

.lb-thumb.is-active {
  opacity: 1;
  border-color: var(--red);
}

.lb-close,
.lb-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.lb-close:hover,
.lb-nav:hover { background: var(--red); border-color: var(--red); }

.lb-close {
  top: clamp(16px, 3vw, 28px);
  right: clamp(16px, 3vw, 28px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}

.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 18px;
}

.lb-prev { left: clamp(10px, 2vw, 26px); }
.lb-next { right: clamp(10px, 2vw, 26px); }

@media (max-width: 640px) {
  .lb-nav { width: 40px; height: 40px; }
  .lb-thumb { width: 72px; }
}

/* Demo pages: "Do you need this system?" contact band before the footer */
.need-band {
  padding: clamp(64px, 8vw, 110px) 0;
  background: #fff;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

.need-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(760px 340px at 88% 0%, rgba(224, 0, 32, 0.1), transparent 70%);
  pointer-events: none;
}

.need-band .container { position: relative; }

.need-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.need-tag {
  color: #e00020;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.need-band h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: var(--ink);
}

.need-band h2 .accent { color: #e00020; }

.need-band p {
  color: rgba(16, 16, 16, 0.72);
  max-width: 54ch;
}

.need-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.need-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  color: rgba(16, 16, 16, 0.86);
}

.need-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

.need-actions { display: grid; gap: 12px; }

.need-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.need-card:hover {
  border-color: var(--ink);
  background: var(--paper-2);
  transform: translateY(-2px);
}

.need-ico {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
}

.need-ico svg { width: 20px; height: 20px; }

.need-body { display: grid; gap: 3px; min-width: 0; }

.need-body strong {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
}

.need-body em {
  font-style: normal;
  font-size: 13.5px;
  color: var(--muted);
}

.need-go {
  margin-left: auto;
  color: var(--red);
  transition: transform 0.25s var(--ease);
}

.need-card:hover .need-go { transform: translateX(4px); }

.need-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.need-cta .btn { flex: 1 1 190px; justify-content: center; }

@media (max-width: 900px) {
  .need-inner { grid-template-columns: minmax(0, 1fr); }
}

/* Redesigned industries section (home) */
.ind-sec { padding: clamp(64px, 8vw, 120px) 0; }

.ind-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.ind-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 2.4vw, 34px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}

.ind-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(320px 160px at 100% 0%, color-mix(in srgb, var(--red) 32%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.ind-card:hover {
  border-color: color-mix(in srgb, var(--red) 55%, var(--line-dark));
  transform: translateY(-4px);
}

.ind-card:hover::after { opacity: 1; }

.ind-no {
  position: absolute;
  top: clamp(20px, 2.2vw, 30px);
  right: clamp(20px, 2.2vw, 30px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.68);
}

.ind-ico {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.ind-ico svg { width: 22px; height: 22px; }

.ind-card:hover .ind-ico {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.ind-card h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  margin-top: 4px;
}

.ind-card p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 26px;
}

.ind-go {
  position: absolute;
  left: clamp(24px, 2.4vw, 34px);
  bottom: clamp(18px, 2vw, 26px);
  font-size: 18px;
  color: var(--red);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.ind-card:hover .ind-go { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .ind-grid { grid-template-columns: minmax(0, 1fr); }
  .ind-card p { margin-bottom: 30px; }
}


/* ---------- Contact page: professional layout ---------- */
.contact-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.contact-grid.four .contact-cell {
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 2.4vw, 32px);
}

.contact-grid.four .contact-cell .cc-ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.contact-cell .cc-line {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}

.contact-grid.four .contact-cell h3 {
  font-size: 16px;
}

.side-panel ul.hours li {
  justify-content: space-between;
  gap: 16px;
}

.side-panel ul.hours li span:last-child {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}

.faq {
  border-top: 1px solid var(--line);
  margin-top: clamp(28px, 4vw, 48px);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(18px, 2.2vw, 26px) 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  letter-spacing: -0.01em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  color: var(--red);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  color: var(--muted);
  font-size: 15px;
  max-width: 72ch;
  padding-bottom: clamp(18px, 2.2vw, 26px);
  margin-top: -4px;
}

@media (max-width: 1024px) {
  .contact-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .contact-grid.four { grid-template-columns: 1fr; }
}

/* ---------- Contact page: red FAQ band + white contact band ---------- */
.faq-band {
  background: var(--red);
  color: #fff;
}

.faq-band .kicker {
  color: #fff;
}

.faq-band .kicker::before {
  background: #fff;
}

.faq-band h2 {
  color: #fff;
}

.faq-band .faq {
  border-top-color: rgba(255, 255, 255, 0.3);
}

.faq-band .faq-item {
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.faq-band .faq-item summary {
  color: #fff;
}

.faq-band .faq-item summary::after {
  color: #fff;
}

.faq-band .faq-item p {
  color: rgba(255, 255, 255, 0.95);
}

/* ---------- Red band: the section directly above the contact band (every page) ---------- */
.band-red {
  background: #e00020;
  color: #fff;
}

.band-red .kicker { color: #fff; }
.band-red .kicker::before { background: #fff; }

.band-red h1,
.band-red h2,
.band-red h3,
.band-red h4,
.band-red blockquote { color: #fff; }

.band-red p,
.band-red li,
.band-red figcaption,
.band-red cite,
.band-red small,
.band-red .head-text,
.band-red .pi-res,
.band-red .pi-tags span,
.band-red .ind-no,
.band-red .ir-num,
.band-red .tst-meta,
.band-red .tm-role { color: rgba(255, 255, 255, 0.96); }

.band-red .head-text { color: rgba(255, 255, 255, 0.96); }

.band-red .kicker::before { background: #fff; }

/* light surfaces keep dark text */
.band-red .sys-card,
.band-red .ms-panel,
.band-red .form-card,
.band-red .cap-cell,
.band-red .sp-box { color: var(--ink); }

.band-red .sys-card h1, .band-red .sys-card h2, .band-red .sys-card h3, .band-red .sys-card h4,
.band-red .ms-panel h1, .band-red .ms-panel h2, .band-red .ms-panel h3, .band-red .ms-panel h4 { color: var(--ink); }

.band-red .sys-card p, .band-red .sys-card li,
.band-red .ms-panel p, .band-red .ms-panel li { color: var(--muted); }

/* borders on red */
.band-red .ms-feats,
.band-red .ms-feat,
.band-red .ind-row,
.band-red .process-item,
.band-red .port-item .pi-res,
.band-red .port-item .pi-tags span,
.band-red .svc-row { border-color: rgba(255, 255, 255, 0.28); }

/* numbers, accents and labels that were red now read on red */
.band-red .accent,
.band-red h2 .accent,
.band-red .pi-num,
.band-red .ir-num,
.band-red .id-num,
.band-red .id-label,
.band-red .pi-res strong,
.band-red .pi-link { color: #fff; }

.band-red .hp-label { color: rgba(255, 255, 255, 0.96); }

.band-red .port-item .pi-ind,
.band-red .port-item .pi-desc { color: rgba(255, 255, 255, 0.96); }

.band-red .sec-dark p,
.band-red .ind-row p { color: rgba(255, 255, 255, 0.96); }

.band-red .ind-detail ul li {
  color: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.28);
}

.band-red .ind-detail ul li::before { background: #fff; }

/* team "join us" card on the red band */
.band-red .join-card {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.band-red .join-card .accent { color: #fff; }

/* hotel panel label: darker gold for readability on light panels */
.theme-hotel .ms-panel-who { color: #7d5a0d; }

/* ---------- Mobile touch targets ----------
   Keep the visual size of the small controls, but give them a
   44px-ish invisible hit area so they are easy to tap on phones. */
.hs-dot,
.tst-dots button {
  position: relative;
}

.hs-dot::before,
.tst-dots button::before {
  content: "";
  position: absolute;
  inset: -16px -8px;
}

.tst-nav button {
  position: relative;
}

@media (max-width: 560px) {
  .tst-nav button {
    min-width: 48px;
    min-height: 48px;
  }
  .btn {
    min-height: 48px;
  }

  .ind-detail .id-cta {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* ---------- Interaction effects ---------- */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  opacity: 1;
  pointer-events: none;
  z-index: -1;
  animation: moko-ripple 0.7s var(--ease) forwards;
}

@keyframes moko-ripple {
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* Page-to-page transition: native View Transitions (no JS delay).
   Supported in Chrome/Edge and Safari; other browsers navigate instantly. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.28s;
  animation-timing-function: var(--ease);
}

.hv-panel {
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform;
}

.hv-panel:hover {
  box-shadow: 0 50px 90px -44px rgba(16, 16, 16, 0.4), 0 2px 6px rgba(16, 16, 16, 0.05);
}

@media (prefers-reduced-motion: reduce) {
  .btn .ripple { display: none; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

/* ---------- Testimonial cards (3-up) ---------- */
.tst-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
  margin-top: clamp(28px, 4vw, 48px);
}

.tst-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 36px);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -36px rgba(40, 0, 6, 0.55);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.tst-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), #ff5a6a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.tst-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 70px -36px rgba(40, 0, 6, 0.6);
}

.tst-card:hover::before {
  transform: scaleX(1);
}

.tst-quote {
  width: 40px;
  height: 30px;
  color: var(--red);
  margin-bottom: 18px;
  flex: none;
}

.tst-card blockquote {
  margin: 0;
  flex: 1;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(16, 16, 16, 0.82);
}

.tst-card .tst-who {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.tst-card .tst-av {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  flex: none;
}

.tst-card .tst-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

.tst-card .tst-role {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

@media (max-width: 900px) {
  .tst-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

/* Contact band on the works page: keep heading spacing from the white band style */
.band-red .need-inner h2 {
  margin-bottom: 18px;
}

/* Testimonials carousel */
.tst-slider {
  --tst-gap: clamp(18px, 2.4vw, 28px);
  margin-top: clamp(28px, 4vw, 48px);
}

.tst-track {
  display: flex;
  gap: var(--tst-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 6px 4px 22px;
}

.tst-track::-webkit-scrollbar {
  display: none;
}

.tst-track .tst-card {
  flex: 0 0 calc((100% - (1.4 * var(--tst-gap))) / 2.4);
  scroll-snap-align: start;
}

.tst-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
}

.tst-controls .tst-dots,
.tst-controls .tst-nav {
  margin-top: 0;
}

.tst-slider.is-static .tst-controls {
  display: none;
}

.tst-controls .tst-dots button {
  background: rgba(255, 255, 255, 0.35);
}

.tst-controls .tst-dots button.on {
  background: #fff;
}

.band-red .tst-nav button {
  border-color: rgba(255, 255, 255, 0.4);
}

.band-red .tst-nav button:hover {
  background: #fff;
  color: var(--red);
}

.band-red .tst-nav button:disabled {
  opacity: 0.4;
  cursor: default;
}

.band-red .tst-nav button:disabled:hover {
  background: transparent;
  color: #fff;
}

@media (max-width: 900px) {
  .tst-track .tst-card {
    flex-basis: calc((100% - (0.6 * var(--tst-gap))) / 1.6);
  }
}

@media (max-width: 620px) {
  .tst-track .tst-card {
    flex-basis: 88%;
  }
}

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

/* Works page projects band: same paper background and grid as the hero */
.works-band {
  background: var(--paper);
}

.works-band::before {
  display: none;
}

.works-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(80% 80% at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 30%, #000 0%, transparent 75%);
  opacity: 0.6;
  pointer-events: none;
}

.works-band .container {
  position: relative;
  z-index: 1;
}

/* readable project details on the paper background */
.works-band .port-item .pi-ind,
.works-band .port-item .pi-desc,
.works-band .port-item .pi-res,
.works-band .head-text {
  color: rgba(16, 16, 16, 0.78);
}

.works-band .port-item .pi-tags span {
  color: rgba(16, 16, 16, 0.75);
  border-color: rgba(16, 16, 16, 0.28);
}

.works-band .port-item .pi-res {
  border-top-color: rgba(16, 16, 16, 0.22);
}

.works-band .filters button {
  border-color: rgba(16, 16, 16, 0.24);
}

/* alternating section bands so each block reads separately */
.band-soft { background: var(--paper-2); }
.band-paper { background: var(--paper); }
.band-soft,
.band-paper { position: relative; }

/* works page: each project mirrors the demo panel design */
.works-band .port-grid {
  gap: clamp(20px, 2.4vw, 28px);
}

.works-band .port-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-2);
}

.works-band .port-item.hide {
  display: none;
}

.works-band .pi-who {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.works-band .pi-shot {
  margin: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper);
  aspect-ratio: 16 / 9;
  box-shadow: 0 30px 60px -34px rgba(16, 16, 16, 0.28);
}

.works-band .pi-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.9s var(--ease);
}

.works-band .port-item:hover .pi-shot img {
  transform: scale(1.03);
}

.works-band .port-item h3 { font-size: 24px; margin: 0; }
.works-band .port-item .pi-desc { margin: 0; flex: 1; }
.works-band .port-item .pi-tags { margin-top: 0; }
.works-band .port-item .pi-res { margin-top: 0; }
.works-band .port-item .btn { margin-top: 6px; }


/* Demo login credentials on hotel panel cards */
.ms-creds { margin: 14px 0 18px; border: 1px solid var(--line, #e6e0d0); border-radius: 12px; background: #fff; overflow: hidden; }
.ms-creds > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; font-size: 13.5px; border-top: 1px solid #f0ece2; }
.ms-creds > div:first-child { border-top: 0; }
.ms-creds span { color: var(--muted); }
.ms-creds b { color: var(--ink, #1d2630); font-weight: 600; word-break: break-all; text-align: right; }

/* Panel chips sit on light pills, so keep their text dark even inside the red bands */
.hp-chip, .band-red .hp-chip { color: var(--ink); }
.hp-chip .hp-arrow { color: var(--red); }
