:root {
  --brand: #00a8b8;
  --brand-2: #00aabc;
  --ink: #0e1114;
  --muted: #59616a;
  --bg: #ffffff;
  --surface: #f7f9fb;
  --surface-2: #f2f6f8;
  --stroke: rgba(14, 17, 20, 0.12);
  --stroke-2: rgba(14, 17, 20, 0.08);
  --shadow-sm: 0 1px 2px rgba(10, 20, 30, 0.06);
  --shadow-md: 0 18px 50px rgba(10, 20, 30, 0.1);
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1160px;
  --gutter: 20px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stroke-2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 10px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(0, 168, 184, 0.08);
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 168, 184, 0.22);
}

.btn-ghost {
  background: rgba(14, 17, 20, 0.02);
  border-color: var(--stroke-2);
  color: var(--ink);
}

.btn-ghost:hover {
  background: rgba(0, 168, 184, 0.08);
}

.menu-btn {
  display: none;
  border: 1px solid var(--stroke-2);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.menu-btn .bars {
  width: 18px;
  height: 12px;
  display: grid;
  gap: 4px;
}

.menu-btn .bars span {
  display: block;
  height: 2px;
  width: 18px;
  background: var(--ink);
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--stroke-2);
  padding: 10px 0 14px;
}

.mobile-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 650;
}

.mobile-panel a:hover,
.mobile-panel a[aria-current="page"] {
  background: rgba(0, 168, 184, 0.08);
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: -260px auto auto -180px;
  width: 720px;
  height: 720px;
  background: radial-gradient(
    closest-side,
    rgba(0, 168, 184, 0.18),
    rgba(0, 168, 184, 0.06),
    rgba(0, 168, 184, 0)
  );
}

.hero::after {
  inset: -320px -220px auto auto;
  width: 760px;
  height: 760px;
  background: radial-gradient(
    closest-side,
    rgba(14, 17, 20, 0.09),
    rgba(14, 17, 20, 0.03),
    rgba(14, 17, 20, 0)
  );
}

.hero.hero-photo {
  background-image:
    linear-gradient(90deg, rgba(8, 14, 18, 0.76) 0%, rgba(8, 14, 18, 0.62) 38%, rgba(8, 14, 18, 0.28) 100%),
    url("../images/hero-workshop.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--stroke-2);
}

.hero.hero-photo::before,
.hero.hero-photo::after {
  display: none;
}

.hero.hero-photo .eyebrow,
.hero.hero-photo .lead {
  color: rgba(255, 255, 255, 0.86);
}

.hero.hero-photo h1 {
  color: #ffffff;
}

.hero.hero-photo .dot {
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 76px 0 36px;
  max-width: 860px;
}

.hero-compact .hero-inner {
  padding: 64px 0 26px;
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 6px rgba(0, 168, 184, 0.12);
}

h1 {
  margin: 14px 0 14px;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-compact h1 {
  font-size: clamp(38px, 4.2vw, 56px);
}

.lead {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 18px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.microproof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.proof-chip {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke-2);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.proof-chip b {
  display: block;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.proof-chip span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

section {
  padding: 56px 0;
  border-top: 1px solid var(--stroke-2);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(0, 168, 184, 0.55);
}

h2 {
  margin: 10px 0 8px;
  font-size: 30px;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.subhead {
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

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

.stack-18 {
  display: grid;
  gap: 18px;
}

.card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.68));
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.card p,
.card li {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(0, 168, 184, 0.1);
  border: 1px solid rgba(0, 168, 184, 0.2);
}

.icon svg {
  width: 18px;
  height: 18px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke-2);
  background: linear-gradient(180deg, rgba(247, 249, 251, 0.85), rgba(255, 255, 255, 0.8));
  box-shadow: var(--shadow-sm);
}

.panel::before {
  content: "";
  position: absolute;
  inset: -40px -40px auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(
    closest-side,
    rgba(0, 168, 184, 0.18),
    rgba(0, 168, 184, 0)
  );
}

.panel > * {
  position: relative;
  z-index: 1;
}

.bullets {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.bullets li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.tick {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(0, 168, 184, 0.12);
  border: 1px solid rgba(0, 168, 184, 0.22);
}

.tick svg {
  width: 12px;
  height: 12px;
}

.logo-cloud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--stroke-2);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.logo-box img {
  max-width: 100%;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.logo-box img.logo-tall {
  max-height: 42px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.work {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke-2);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
}

.work .thumb {
  height: 180px;
  background: linear-gradient(135deg, rgba(0, 168, 184, 0.18), rgba(14, 17, 20, 0.03));
  position: relative;
}

.work .thumb::before {
  content: "";
  position: absolute;
  inset: auto -30px -60px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(
    closest-side,
    rgba(14, 17, 20, 0.15),
    rgba(14, 17, 20, 0)
  );
}

.work .thumb.thumb-photo {
  background-size: cover;
  background-position: center;
}

.work .thumb.thumb-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 18, 24, 0.10) 0%, rgba(10, 18, 24, 0.34) 100%);
}

.work .body {
  padding: 15px 15px 18px;
}

.work h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.work p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(14, 17, 20, 0.12);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 750;
}

.pill i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke-2);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.person img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--stroke-2);
  align-self: flex-start;
}

.person b {
  display: block;
  letter-spacing: -0.01em;
}

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

.person-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  align-self: flex-start;
  margin-top: 3px;
}

.person-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 13px;
  border: 1px solid var(--stroke-2);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.person-link svg {
  width: 24px;
  height: 24px;
}

.person-link:hover {
  background: rgba(0, 168, 184, 0.08);
  border-color: rgba(0, 168, 184, 0.2);
  color: var(--brand);
}

.person span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.person-meta {
  margin: 8px 0 0;
  padding: 0 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.person-meta li + li {
  margin-top: 4px;
}

.cta-strip {
  border-top: 0;
  padding: 60px 0;
}

.cta-box {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: center;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(0, 168, 184, 0.24);
  background: linear-gradient(135deg, rgba(0, 168, 184, 0.14), rgba(255, 255, 255, 0.82));
  box-shadow: 0 22px 60px rgba(0, 168, 184, 0.14);
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: -120px -120px auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(
    closest-side,
    rgba(0, 168, 184, 0.2),
    rgba(0, 168, 184, 0)
  );
}

.cta-box > * {
  position: relative;
  z-index: 1;
}

.cta-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.page-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.page-list li {
  margin-bottom: 8px;
  font-weight: 600;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke-2);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-sm);
}

.timeline-step .num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 168, 184, 0.1);
  border: 1px solid rgba(0, 168, 184, 0.2);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--brand);
}

.timeline-step h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.timeline-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.metric {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke-2);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
}

.metric b {
  display: block;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.form-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.76));
  box-shadow: var(--shadow-sm);
}

.form-status {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke-2);
  font-size: 14px;
  font-weight: 650;
}

.form-status[data-state="success"] {
  color: #0d5b52;
  background: rgba(0, 168, 184, 0.1);
  border-color: rgba(0, 168, 184, 0.24);
}

.form-status[data-state="error"] {
  color: #8a2a2a;
  background: rgba(201, 74, 74, 0.08);
  border-color: rgba(201, 74, 74, 0.22);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 13px;
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: #fff;
  color: var(--ink);
  outline: none;
}

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

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

.field-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-cards {
  display: grid;
  gap: 14px;
}

footer {
  padding: 26px 0 40px;
  border-top: 1px solid var(--stroke-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

footer a {
  color: var(--ink);
  font-weight: 750;
}

footer a:hover {
  color: var(--brand);
}

@media (max-width: 980px) {
  .microproof,
  .grid-4,
  .logo-cloud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .metric-grid,
  .split,
  .cta-box {
    grid-template-columns: 1fr;
  }

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

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .nav-cta .btn {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

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

  .hero-inner {
    padding-top: 48px;
  }

  .microproof,
  .grid-2,
  .grid-3,
  .grid-4,
  .logo-cloud,
  .people,
  .form-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }
}

/* ---------- Case studies & products (added Oct 2026) ---------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(43, 182, 115, 0.12);
  color: #1d7a4a;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.status.is-progress {
  background: rgba(240, 160, 32, 0.14);
  color: #8a5a00;
}

.status.is-pilot,
.status.is-soon {
  background: rgba(0, 168, 184, 0.12);
  color: #007f8c;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tag-row .pill {
  margin-top: 0;
}

.hero-split .hero-inner {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: center;
}

.hero-split h1 {
  font-size: clamp(34px, 3.6vw, 48px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.shot {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke-2);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.shot img {
  width: 100%;
  height: auto;
}

.shot-note {
  margin: 10px 4px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

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

.metric small {
  display: block;
  margin-top: 6px;
  color: #8a5a00;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prose {
  max-width: 68ch;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.prose p {
  margin: 0 0 14px;
}

.prose strong {
  color: var(--ink);
}

.callout {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #0e1114;
  color: #fff;
}

.callout .kicker {
  color: #7fd6df;
}

.callout h3 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.callout p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 500;
}

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke-2);
  background: #fff;
  font-size: 14px;
}

.compare th,
.compare td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--stroke-2);
}

.compare tr:last-child td {
  border-bottom: 0;
}

.compare thead th {
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare td:first-child {
  font-weight: 800;
  width: 22%;
}

.compare td {
  color: var(--muted);
  font-weight: 600;
}

.compare td.after {
  color: var(--ink);
}

.case-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
  scroll-margin-top: 90px;
}

.case-card h3 {
  margin: 14px 0 10px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.case-card .shot {
  box-shadow: var(--shadow-sm);
}

.case-card .page-list {
  margin-bottom: 16px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #007f8c;
  font-weight: 800;
  font-size: 14px;
}

.text-link:hover {
  text-decoration: underline;
}

.muted-note {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

a.work {
  display: block;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

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

.work .thumb.thumb-mock {
  background-size: cover;
  background-position: center;
}

.work .tag-row {
  margin-top: 12px;
}

.product-band {
  padding: 34px;
  border-radius: 28px;
  background: #0e1114;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: center;
  overflow: hidden;
}

.product-band h2 {
  margin: 10px 0 12px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.product-band p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 500;
}

.product-band .kicker {
  color: #7fd6df;
}

.product-band .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
}

.product-band .shot {
  border-color: rgba(255, 255, 255, 0.1);
}

.edition {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke-2);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.edition.is-main {
  border-color: rgba(0, 168, 184, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 168, 184, 0.08);
}

.edition h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.edition p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 980px) {
  .hero-split .hero-inner,
  .case-card,
  .product-band {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .metric-grid.is-4 {
    grid-template-columns: 1fr 1fr;
  }

  .product-band {
    padding: 22px;
  }

  .compare thead {
    display: none;
  }

  .compare tr {
    display: block;
    border-bottom: 1px solid var(--stroke-2);
  }

  .compare tr:last-child {
    border-bottom: 0;
  }

  .compare td {
    display: block;
    width: auto !important;
    border-bottom: 0;
    padding: 6px 16px;
  }

  .compare td:first-child {
    padding-top: 14px;
  }

  .compare td:last-child {
    padding-bottom: 14px;
  }

  .compare td[data-label]::before {
    content: attr(data-label) " · ";
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
}

/* ---------- Homepage + shared polish (added Oct 2026) ---------- */

.hero.hero-home {
  background-image: linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.88)),
    url("../images/antlogic-home.jpg");
  background-size: cover;
  background-position: center;
}

a.proof-chip {
  display: block;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

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

a.card-link {
  display: block;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

a.card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 168, 184, 0.35);
  box-shadow: var(--shadow-md);
}

.btn-on-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.14);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  padding: 8px 0 22px;
}

.foot-grid img {
  height: 32px;
  width: auto;
  margin-bottom: 10px;
}

.foot-grid p {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.foot-grid h4 {
  margin: 4px 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.foot-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

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

  .foot-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Identity pass (Oct 2026): type, colour, labels ---------- */

:root {
  --ink: #0d1b1e;
  --brand-deep: #00737f;
  --mist: #eef7f8;
  --lime: #b6e34a;
  --font-body: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  --font-display: var(--font-body);
}

body {
  font-family: var(--font-body);
}

h1,
h2,
h3,
.metric b,
.edition h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
}

h1 {
  font-weight: 800;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h3 {
  font-weight: 650;
  letter-spacing: -0.01em;
}

.kicker,
.eyebrow {
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.kicker::before {
  display: none;
}

.hero.hero-photo .eyebrow {
  color: #8fe3eb;
}

.callout .kicker,
.product-band .kicker {
  color: #8fe3eb;
}

.callout,
.product-band,
.ed-shell {
  background: var(--ink);
}

.text-link {
  color: var(--brand-deep);
  text-decoration: underline;
  text-decoration-color: rgba(0, 115, 127, 0.3);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: text-decoration-color 140ms ease;
}

.text-link:hover {
  text-decoration: underline;
  text-decoration-color: currentColor;
}

.btn {
  transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn-primary:hover {
  box-shadow: 0 14px 34px rgba(0, 168, 184, 0.32);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

:focus-visible {
  outline: 2.5px solid var(--brand-deep);
  outline-offset: 3px;
  border-radius: 8px;
}

.topbar {
  transition: box-shadow 200ms ease, background 200ms ease;
}

.topbar.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 24px rgba(10, 20, 30, 0.06);
}

.foot-grid {
  grid-template-columns: 1.6fr 1fr 1fr;
}

/* ---------- Homepage hero: live data-entry demo ---------- */

.hero.hero-home {
  background: radial-gradient(1200px 520px at 85% 10%, rgba(0, 168, 184, 0.10), transparent 70%), #fff;
}

.hero-home .hero-inner {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 28px;
}

.hero-home h1 {
  font-size: clamp(44px, 5.4vw, 74px);
  line-height: 0.96;
}

.hero-home .microproof {
  grid-column: 1 / -1;
}

.ed-shell {
  position: relative;
  padding: 18px;
  border-radius: 26px;
  color: #fff;
  box-shadow: 0 30px 80px rgba(13, 27, 30, 0.28);
}

.ed-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 4px 14px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
}

.ed-steps {
  display: flex;
  gap: 6px;
}

.ed-steps i {
  width: 22px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 300ms ease;
}

.ed-steps i.on {
  background: var(--brand);
}

.ed-body {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: 14px;
  min-height: 330px;
}

.ed-paper {
  position: relative;
  overflow: hidden;
  padding: 18px 16px;
  border-radius: 6px;
  background: #fffdf7;
  color: #2c2a24;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  transform: rotate(-1.2deg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  transition: opacity 360ms ease, transform 360ms ease;
}

.ed-paper.is-out {
  opacity: 0;
  transform: rotate(-1.2deg) translateY(10px);
}

.ed-line {
  position: relative;
  padding: 2px 4px;
  margin: 0 -4px 4px;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 260ms ease, box-shadow 260ms ease;
}

.ed-line.is-head {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
}

.ed-line.is-filler {
  color: #8d877a;
}

.ed-line.is-hl {
  background: rgba(0, 168, 184, 0.16);
  box-shadow: inset 0 0 0 1.5px rgba(0, 168, 184, 0.6);
}

.ed-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  height: 28%;
  background: linear-gradient(180deg, rgba(0, 168, 184, 0), rgba(0, 168, 184, 0.18) 70%, rgba(0, 168, 184, 0.55));
  border-bottom: 2px solid var(--brand);
  opacity: 0;
  pointer-events: none;
}

.ed-paper.is-scanning .ed-scan {
  animation: ed-scan 1.3s ease-in-out forwards;
}

@keyframes ed-scan {
  0% { top: -30%; opacity: 1; }
  90% { opacity: 1; }
  100% { top: 102%; opacity: 0; }
}

.ed-form {
  display: flex;
  flex-direction: column;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ed-form dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.ed-field {
  display: grid;
  gap: 2px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 260ms ease;
}

.ed-field.is-active {
  background: rgba(0, 168, 184, 0.16);
}

.ed-field dt {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.ed-field dd {
  margin: 0;
  min-height: 21px;
  font-size: 14.5px;
  font-weight: 650;
  color: #fff;
}

.ed-field dd.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 15px;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--brand);
  animation: ed-caret 0.8s steps(1) infinite;
}

@keyframes ed-caret {
  50% { opacity: 0; }
}

.ed-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.ed-status i {
  width: 9px;
  height: 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.35);
  transition: background 260ms ease, box-shadow 260ms ease;
}

.ed-status.is-reading i {
  background: var(--brand);
  animation: ed-pulse 1s ease-in-out infinite;
}

.ed-status.is-done {
  color: #fff;
}

.ed-status.is-done i {
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(182, 227, 74, 0.18);
}

@keyframes ed-pulse {
  50% { box-shadow: 0 0 0 6px rgba(0, 168, 184, 0.2); }
}

.ed-caption {
  margin: 12px 4px 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 980px) {
  .hero-home .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 520px) {
  .ed-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ed-paper {
    transform: none;
  }

  .ed-paper.is-out {
    transform: translateY(10px);
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.hero.hero-home::before,
.hero.hero-home::after {
  display: none;
}

.ed-paper {
  align-self: start;
}

.ed-line.is-rule {
  height: 0;
  padding: 0;
  margin: 8px 0;
  border-top: 1.5px dashed #cfc8b6;
}

.foot-grid h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

/* ---------- Scroll reveal (only when JS is on and motion is allowed) ---------- */

.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on [data-reveal="zoom"] {
  transform: translateY(14px) scale(0.97);
}

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

.reveal-on [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- AntLogic Office: animated phone tour ---------- */

.phone-tour {
  --k: 0.74;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.ph-device {
  position: relative;
  padding: 11px;
  border-radius: 54px;
  background: #0d1b1e;
  box-shadow: 0 0 0 1.5px #2a3a3e inset, 0 40px 90px rgba(13, 27, 30, 0.28), 0 12px 24px rgba(13, 27, 30, 0.12);
}

.ph-device::before {
  /* side buttons */
  content: "";
  position: absolute;
  right: -3px;
  top: 150px;
  width: 3px;
  height: 70px;
  border-radius: 0 3px 3px 0;
  background: #1f2d31;
}

.ph-stage {
  position: relative;
  width: calc(390px * var(--k));
  height: calc(844px * var(--k));
  overflow: hidden;
  border-radius: 44px;
  background: #e9e7e2;
}

.ph-inner {
  position: absolute;
  left: 0;
  top: 0;
  width: 390px;
  height: 844px;
  transform: scale(var(--k));
  transform-origin: 0 0;
}

.ph-island {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 11px;
  width: 120px;
  height: 34px;
  margin-left: -60px;
  border-radius: 20px;
  background: #0d1b1e;
}

.ph-topbar,
.ph-tabbar {
  position: absolute;
  z-index: 4;
  left: 0;
  width: 390px;
  display: block;
}

.ph-topbar {
  top: 0;
  height: 60px;
  padding-top: 0;
}

.ph-statusgap {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: 0;
  height: 54px;
  background: #e9e7e2;
}

.ph-head {
  position: absolute;
  z-index: 4;
  left: 0;
  top: 54px;
  width: 390px;
  height: 60px;
}

.ph-tabbar {
  bottom: 0;
  height: 74px;
}

.ph-view {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 114px;
  width: 390px;
  bottom: 74px;
  overflow: hidden;
}

.ph-page {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #e9e7e2;
  transition: transform 520ms cubic-bezier(0.3, 0.7, 0.2, 1), opacity 520ms ease;
}

.ph-page img {
  display: block;
  width: 390px;
  height: auto;
  max-width: none;
  transition: transform var(--scroll-ms, 2200ms) cubic-bezier(0.45, 0.05, 0.25, 1);
}

.ph-page.enter {
  transform: translateX(100%);
}

.ph-page.leave {
  transform: translateX(-28%);
  opacity: 0.4;
}

.ph-fab {
  position: absolute;
  z-index: 4;
  right: 16px;
  bottom: 86px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e4ef65;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.ph-tap {
  position: absolute;
  z-index: 7;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: rgba(13, 27, 30, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.9);
  opacity: 0;
  pointer-events: none;
}

.ph-tap.is-on {
  animation: ph-tap 700ms ease-out;
}

@keyframes ph-tap {
  0% { opacity: 0; transform: scale(1.4); }
  30% { opacity: 1; transform: scale(0.85); }
  100% { opacity: 0; transform: scale(1.6); }
}

.ph-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 420px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ph-steps button {
  padding: 7px 12px;
  border: 1px solid var(--stroke-2);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.ph-steps button[aria-current="step"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.ph-caption {
  min-height: 44px;
  max-width: 340px;
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.ph-caption b {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

@media (max-width: 520px) {
  .phone-tour {
    --k: 0.68;
  }
}

.ph-time {
  position: absolute;
  left: 34px;
  top: 17px;
  font-size: 16px;
  font-weight: 700;
  color: #0d1b1e;
}

.ph-icons {
  position: absolute;
  right: 30px;
  top: 21px;
  display: flex;
  gap: 5px;
  align-items: flex-end;
}

.ph-icons i {
  display: block;
  width: 5px;
  border-radius: 1.5px;
  background: #0d1b1e;
}

.ph-icons i:nth-child(1) { height: 7px; }
.ph-icons i:nth-child(2) { height: 10px; }
.ph-icons i:nth-child(3) { width: 24px; height: 11px; border-radius: 3px; margin-left: 4px; }

.phone-tour {
  --k: 0.64;
  gap: 14px;
}

.hero-split:has(.phone-tour) .hero-inner {
  padding-top: 40px;
  padding-bottom: 36px;
}

@media (max-width: 520px) {
  .phone-tour {
    --k: 0.68;
  }
}

/* Compact tour controls: dots + one-line title */
.ph-bar {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ph-steps {
  gap: 6px;
  flex-wrap: nowrap;
}

.ph-steps button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(13, 27, 30, 0.2);
  transition: width 260ms ease, background 260ms ease;
}

.ph-steps button:hover {
  background: rgba(13, 27, 30, 0.4);
}

.ph-steps button[aria-current="step"] {
  width: 22px;
  background: var(--brand);
}

.ph-caption {
  min-height: 0;
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.ph-steps button {
  position: relative;
  cursor: pointer;
}

.ph-steps button::after {
  content: "";
  position: absolute;
  inset: -10px -4px;
}

/* ---------- AntLogic Office: feature phones ---------- */

.feature-phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 28px;
  margin-top: 8px;
}

.feature-phone {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 16px;
}

.mini-phone {
  position: relative;
  width: min(100%, 248px);
  padding: 7px;
  border-radius: 38px;
  background: var(--ink);
  box-shadow: 0 0 0 1px #2a3a3e inset, 0 24px 50px rgba(13, 27, 30, 0.18);
}

.mini-phone::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 14px;
  width: 64px;
  height: 18px;
  margin-left: -32px;
  border-radius: 12px;
  background: var(--ink);
  opacity: 0;
}

.mini-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 31px;
}

.feature-phone figcaption {
  max-width: 260px;
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.45;
}

.feature-phone figcaption b {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

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

@media (max-width: 620px) {
  /* swipeable row on phones */
  .feature-phones {
    display: flex;
    gap: 18px;
    margin: 8px calc(var(--gutter) * -1) 0;
    padding: 0 var(--gutter) 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .feature-phones::-webkit-scrollbar {
    display: none;
  }

  .feature-phone {
    flex: 0 0 72%;
    scroll-snap-align: center;
  }
}

.feature-phone {
  align-content: start;
}

@media (max-width: 620px) {
  #app-screens .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Feature carousel: 3 per page ---------- */

.feature-carousel {
  --per: 3;
  --gap: 28px;
  margin-top: 8px;
}

.fc-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--gap) * (var(--per) - 1)) / var(--per));
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 6px 0 14px;
  outline: none;
}

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

.fc-track > .feature-phone {
  scroll-snap-align: start;
}

.fc-track > .feature-phone:nth-child(3n + 1) {
  scroll-snap-align: start;
}

.fc-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}

.fc-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background 160ms ease, opacity 160ms ease;
}

.fc-btn:hover {
  background: rgba(0, 168, 184, 0.08);
}

.fc-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.fc-dots {
  display: flex;
  gap: 6px;
}

.fc-dots button {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(13, 27, 30, 0.2);
  cursor: pointer;
  transition: width 260ms ease, background 260ms ease;
}

.fc-dots button::after {
  content: "";
  position: absolute;
  inset: -10px -4px;
}

.fc-dots button[aria-current="true"] {
  width: 22px;
  background: var(--brand);
}

@media (max-width: 980px) {
  .feature-carousel {
    --per: 2;
    --gap: 20px;
  }
}

@media (max-width: 620px) {
  .feature-carousel {
    --per: 1;
    --gap: 16px;
  }

  .fc-track {
    grid-auto-columns: 78%;
    margin: 0 calc(var(--gutter) * -1);
    padding: 6px var(--gutter) 14px;
    scroll-padding: 0 var(--gutter);
  }
}

.ph-fab {
  transition: opacity 300ms ease;
}

/* ---------- Desktop browser rotator (product band) ---------- */

.product-band {
  grid-template-columns: 0.85fr 1.25fr;
}

.browser-rotator {
  overflow: hidden;
  border-radius: 16px;
  background: #e9e7e2;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
  transform-origin: left center;
  transition: transform 500ms ease;
}

.browser-rotator:hover {
  transform: none;
}

.br-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: #f5f4f1;
  border-bottom: 1px solid rgba(13, 27, 30, 0.08);
}

.br-dots {
  display: flex;
  gap: 6px;
}

.br-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d6d3cc;
}

.br-tabs {
  display: flex;
  gap: 4px;
}

.br-tabs button {
  padding: 5px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6b7176;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.br-tabs button[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(13, 27, 30, 0.12);
}

.br-view {
  position: relative;
  aspect-ratio: 1600 / 1050;
  overflow: hidden;
}

.br-view img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 700ms ease, transform 700ms ease, object-position 0ms;
}

.br-view img.is-on {
  opacity: 1;
  transform: none;
  animation: br-pan 7s ease-in-out 0.8s forwards;
}

@keyframes br-pan {
  from { transform: translateY(0); }
  to { transform: translateY(-25%); }
}

@media (max-width: 980px) {
  .product-band {
    grid-template-columns: 1fr;
  }

  .browser-rotator {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .br-view img.is-on {
    animation: none;
  }
}

.browser-rotator,
.browser-rotator:hover {
  transform: none;
}

/* Real screenshot thumbs: show the top-left of the app, not the centre */
.work .thumb.thumb-mock[style*="timber-dashboard"] {
  background-position: left top;
}

.work .thumb.thumb-mock[style*="construction-dashboard"] {
  background-position: left top;
}

/* Hero animation, stage 2: filed, then posted to the books */
.ed-body {
  position: relative;
}

.ed-flow {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 4px 6px;
  border-radius: 14px;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 380ms ease;
}

.ed-flow.is-on {
  opacity: 1;
}

.ef-step {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  opacity: 0.18;
  transform: translateY(8px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.ef-step.on {
  opacity: 1;
  transform: none;
}

.ef-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: -12px;
  width: 2px;
  background: rgba(255, 255, 255, 0.14);
}

.ef-dot {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
  transition: background 300ms ease, color 300ms ease;
}

.ef-step.on .ef-dot {
  background: var(--brand);
  color: #fff;
}

.ef-step:last-child.on .ef-dot {
  background: var(--lime);
  color: var(--ink);
}

.ef-k {
  margin: 4px 0 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.62);
}

.ef-chip {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 13.5px;
  font-weight: 650;
}

.ef-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
}

.ef-card b {
  font-size: 13.5px;
}

.ef-amt {
  font-size: 13.5px;
  font-weight: 700;
  text-align: right;
}

.ef-tag {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
}

.ef-tag.is-amber {
  background: #fdf2dc;
  color: #8a5a00;
}

.ef-tag.is-green {
  background: #e2f4ea;
  color: #1d7a4a;
}

.ef-journal {
  padding: 8px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-variant-numeric: tabular-nums;
}

.ef-jl {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 8px;
  padding: 3px 0;
  color: #fff;
  font-size: 13px;
}

.ef-jl em {
  font-style: normal;
  font-weight: 700;
  color: #8fe3eb;
}

.ef-jl:nth-child(2) span {
  padding-left: 14px;
}

.ef-jl b {
  font-weight: 700;
}

.ef-bal {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
}

.ed-flow {
  inset: -10px -6px;
}

.work .thumb.thumb-mock[style*="agent-pilot"] {
  background-position: center top;
}

/* ---------- AI Content demo videos (services) ---------- */
.vid-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.vid {
  margin: 0;
  min-width: 0;
}

.vid.is-wide {
  flex: 1.7778 1 0;
}

.vid.is-tall {
  flex: 0.5625 1 0;
}

.vid video {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  background: #0d1014;
  box-shadow: var(--shadow-sm);
}

.vid.is-wide video {
  aspect-ratio: 16 / 9;
}

.vid.is-tall video {
  aspect-ratio: 9 / 16;
}

.vid figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 14px;
}

.vid figcaption span {
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 760px) {
  /* Phones: stack the videos, each fitting the screen width */
  .vid-row {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }

  .vid.is-wide,
  .vid.is-tall {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .vid.is-tall {
    width: min(100%, calc(72vh * 9 / 16));
    margin: 0 auto;
  }
}

.vid video {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Keep the header pinned on long pages (body must grow with its content) */
html,
body {
  height: auto;
  min-height: 100%;
}

.topbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Never let a video widen the page */
#content-work,
.vid-row,
.vid {
  max-width: 100%;
  overflow-x: hidden;
}

/* Phones: header fixed to the top (works in every mobile browser) */
@media (max-width: 760px) {
  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  body {
    padding-top: var(--topbar-h, 67px);
  }

  .mobile-panel.is-open {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
}

@media (max-width: 760px) {
  .topbar:has(.mobile-panel.is-open),
  .mobile-panel.is-open {
    background: #fff;
  }

  .topbar:has(.mobile-panel.is-open) {
    box-shadow: 0 12px 30px rgba(10, 20, 30, 0.12);
  }
}
