/* =========================================================
   BR Digital Works — shared stylesheet
   Brand: red / blue / white on black-navy
   ========================================================= */

/* Fonts are hosted with the site (faster, and no visitor data sent to Google) */
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-var.woff2") format("woff2-variations"), url("../fonts/archivo-var.woff2") format("woff2");
}
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 400; src: url("../fonts/figtree-400.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 500; src: url("../fonts/figtree-500.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 600; src: url("../fonts/figtree-600.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 700; src: url("../fonts/figtree-700.woff2") format("woff2"); }

:root {
  color-scheme: dark;

  /* Colour */
  --ink: #05070d;          /* page ground, near-black navy */
  --ink-2: #0a0f1d;        /* raised panels */
  --ink-3: #111a30;        /* hover / inset */
  --line: #1c2540;         /* hairlines */
  --red: #e0212a;          /* the "B" (tuned so white text passes AA) */
  --red-deep: #c81d24;     /* button hover */
  --red-soft: #ff4d54;
  --blue: #2563ff;         /* the "R" */
  --blue-soft: #5b8cff;
  --blue-text: #3d75ff;    /* blue used as text on dark */
  --white: #f3f5fa;
  --muted: #98a2b9;
  --dim: #7a849c;

  /* Type */
  --font-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --fs-3xl: clamp(2.5rem, 1.6rem + 4.2vw, 4.75rem);

  /* Layout */
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  --section: clamp(64px, 9vw, 120px);
  --header-h: 72px;
  --header-h-small: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--white); color: var(--ink);
  padding: 10px 16px; border-radius: 6px; font-weight: 700; z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Shared type bits ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
/* the red + blue slash pair from the logo */
.slashes {
  display: inline-flex; gap: 3px; flex: none;
}
.slashes i {
  width: 3px; height: 14px; border-radius: 2px;
  transform: skewX(-24deg);
}
.slashes i:first-child { background: var(--red); }
.slashes i:last-child { background: var(--blue); }

.section-head {
  display: grid; gap: 16px;
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head h2 { font-size: var(--fs-2xl); }
.section-head p { color: var(--muted); font-size: var(--fs-lg); max-width: 60ch; }

.text-red { color: var(--red); }
.text-blue { color: var(--blue-soft); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(232, 35, 43, .7);
}
.btn-primary:hover { background: var(--red-deep); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: #33406a;
}
.btn-secondary:hover { border-color: var(--blue-soft); background: rgba(37, 99, 255, .08); }
.btn-whatsapp {
  background: transparent; color: var(--white); border-color: #33406a;
}
.btn-whatsapp:hover { border-color: #25d366; background: rgba(37, 211, 102, .08); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.95rem;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1.5px solid var(--blue);
  padding-bottom: 2px;
}
.link-arrow:hover { color: var(--blue-soft); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding-top: env(safe-area-inset-top, 0px);
  z-index: 50;
  transition: background-color .25s ease, box-shadow .25s ease;
  background: rgba(5, 7, 13, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
  transition: height .25s ease;
}
/* fixed header needs a spacer so content starts below it */
.header-spacer { height: var(--header-h); }
.site-header.scrolled { background: rgba(5, 7, 13, .94); box-shadow: 0 10px 30px -18px rgba(0,0,0,.9); }
.site-header.scrolled .header-inner { height: var(--header-h-small); }
.site-header.scrolled .brand img { width: 40px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; flex: none;
}
.brand img { width: 48px; height: auto; transition: width .25s ease; }
.brand-word {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}
.brand-word .b { color: #ff3b42; }
.brand-word .d { color: var(--blue-text); }
.brand-word .w { color: var(--white); }

.site-nav ul {
  list-style: none;
  display: flex; align-items: center; gap: 4px;
}
.site-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.site-nav a:hover { color: var(--white); background: var(--ink-2); }
.site-nav a[aria-current="page"] { color: var(--white); }
.site-nav a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 4px;
  background: linear-gradient(90deg, var(--red) 50%, var(--blue) 50%);
  border-radius: 2px;
}
.nav-cta { margin-left: 8px; }
.site-nav .nav-cta a {
  background: var(--red); color: #fff;
  padding: 10px 18px;
}
.site-nav .nav-cta a:hover { background: var(--red-deep); color: #fff; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: 8px;
  color: var(--white); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 14px 12px; font-size: 1.05rem; }
  .site-nav a[aria-current="page"]::after { width: 40px; }
  .nav-cta { margin: 10px 0 0; }
  .site-nav .nav-cta a { text-align: center; padding: 14px; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--ink-2); }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 9vw, 112px) clamp(48px, 7vw, 88px);
  isolation: isolate;
}
/* diagonal streaks echoing the logo slash */
.hero::before, .hero::after {
  content: "";
  position: absolute; z-index: -1;
  width: 140%; height: 3px;
  left: -20%;
  transform: rotate(-24deg);
  opacity: .5;
  filter: blur(.4px);
}
.hero::before { top: 58%; background: linear-gradient(90deg, transparent 20%, var(--red) 60%, transparent 90%); }
.hero::after  { top: 62%; background: linear-gradient(90deg, transparent 25%, var(--blue) 62%, transparent 92%); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.hero-copy { display: grid; gap: 24px; }
.hero h1 { font-size: var(--fs-3xl); }
.hero h1 .accent-b { color: var(--red); }
.hero h1 .accent-r { color: var(--blue-soft); }
.hero-lede { font-size: var(--fs-lg); color: var(--muted); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.hero-mark { position: relative; justify-self: center; width: min(100%, 460px); }
.hero-mark::before {
  content: ""; position: absolute; inset: 10% 5%;
  transform: translate3d(var(--gx, 0px), var(--gy, 0px), 0);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
  background:
    radial-gradient(closest-side at 35% 45%, rgba(232, 35, 43, .28), transparent),
    radial-gradient(closest-side at 70% 55%, rgba(37, 99, 255, .30), transparent);
  filter: blur(30px);
  z-index: -1;
}
.hero-mark img { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; transform: translate3d(var(--lx, 0px), var(--ly, 0px), 0); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
@keyframes rise {
  from { transform: translateY(14px); }
  to { transform: none; }
}

.tagline-bar {
  border-block: 1px solid var(--line);
  background: var(--ink-2);
}
.tagline-bar ul {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 10px 22px;
  padding-block: 18px;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--white);
}
.tagline-bar li { display: inline-flex; align-items: center; gap: 22px; }
.tagline-bar .sep-r { color: var(--red); font-weight: 700; letter-spacing: 0; }
.tagline-bar .sep-b { color: var(--blue-text); font-weight: 700; letter-spacing: 0; }

@media (max-width: 560px) {
  .tagline-bar ul { flex-direction: column; gap: 6px; font-size: 0.72rem; letter-spacing: 0.2em; }
  .tagline-bar li { gap: 10px; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; width: min(70%, 300px); }
}

/* ---------- Service cards ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service {
  background: var(--ink);
  padding: clamp(24px, 3vw, 36px);
  display: grid; align-content: start; gap: 14px;
  transition: background-color .2s ease;
}
.service:hover { background: var(--ink-2); }
.service { position: relative; }
.service::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.service:hover::after { transform: scaleX(1); }
.service-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(37, 99, 255, .12);
  color: var(--blue-soft);
}
.service:nth-child(odd) .service-icon { background: rgba(232, 35, 43, .12); color: var(--red-soft); }
.service-icon svg { width: 22px; height: 22px; }
.service h3 { font-size: var(--fs-lg); }
.service p { color: var(--muted); font-size: 0.98rem; }
.section-foot { margin-top: 32px; }

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

/* ---------- Packages ---------- */

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.package {
  position: relative;
  display: flex; flex-direction: column; gap: 20px;
  padding: clamp(24px, 3vw, 32px);
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.package.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), 0 24px 60px -30px rgba(37, 99, 255, .6);
}
.package-badge {
  position: absolute; top: -12px; left: 24px;
  background: var(--blue); color: #fff;
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 4px;
}
.package-top { display: grid; gap: 6px; }
.package-name {
  font-family: var(--font-display);
  font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
.package-price {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-size: clamp(2.4rem, 2rem + 1.6vw, 3rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.package-price span { font-size: 0.4em; color: var(--muted); font-weight: 600; margin-left: 4px; }
.package-for { color: var(--muted); font-size: 0.98rem; }
.package ul { list-style: none; display: grid; gap: 10px; flex: 1; }
.package li {
  display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start;
  font-size: 0.98rem;
}
.package li svg { width: 18px; height: 18px; margin-top: 4px; color: var(--blue-soft); }
.package .btn { width: 100%; }
.package-note { margin-top: 24px; color: var(--dim); font-size: var(--fs-sm); }

@media (max-width: 900px) {
  .package-grid { grid-template-columns: 1fr; max-width: 520px; }
  .package.featured { order: -1; }
}

/* ---------- Process ---------- */

.process {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}
.process li {
  display: grid; align-content: start; gap: 12px;
  padding-top: 20px;
  border-top: 2px solid var(--line);
  position: relative;
}
.process li::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--red);
}
.process li:nth-child(even)::before { color: var(--blue-soft); }
.process li::after {
  content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px;
  background: var(--red);
}
.process li:nth-child(even)::after { background: var(--blue); }
.process h3 { font-size: var(--fs-lg); }
.process p { color: var(--muted); font-size: 0.98rem; }

@media (max-width: 900px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* ---------- Featured project ---------- */

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.project-copy { display: grid; gap: 20px; }
.project-copy h2 { font-size: var(--fs-2xl); }
.project-copy p { color: var(--muted); font-size: var(--fs-lg); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: var(--fs-sm); font-weight: 600;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
}

/* a stylised dashboard window — stands in until real screenshots are added */
.mock {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(37, 99, 255, .5);
}
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-bar span {
  margin-left: 10px; font-size: var(--fs-xs); color: var(--dim);
  font-family: var(--font-display); letter-spacing: .08em;
}
.mock-body { display: grid; grid-template-columns: 120px 1fr; min-height: 280px; }
.mock-side { border-right: 1px solid var(--line); padding: 16px 12px; display: grid; align-content: start; gap: 10px; }
.mock-side b { display: block; height: 8px; border-radius: 4px; background: var(--ink-3); }
.mock-side b.on { background: var(--blue); width: 80%; }
.mock-main { padding: 18px; display: grid; gap: 14px; align-content: start; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-stat { border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: grid; gap: 8px; }
.mock-stat small { font-size: 0.68rem; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; }
.mock-stat strong { font-family: var(--font-display); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.mock-list { display: grid; gap: 8px; }
.mock-player {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center;
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
}
.mock-player i { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--blue)); }
.mock-player b { height: 8px; border-radius: 4px; background: var(--ink-3); }
.mock-player em {
  font-style: normal; font-size: 0.68rem; font-weight: 700; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 4px; background: rgba(37, 99, 255, .15); color: var(--blue-soft);
}

@media (max-width: 860px) { .project { grid-template-columns: 1fr; } }
@media (max-width: 460px) {
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-row { grid-template-columns: repeat(2, 1fr); }
  .mock-row .mock-stat:last-child { display: none; }
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: var(--section);
  border-top: 1px solid var(--line);
  background: var(--ink-2);
}
.cta-band::before {
  content: "";
  position: absolute; z-index: -1;
  right: -10%; top: -40%;
  width: 60%; height: 180%;
  background:
    linear-gradient(115deg, transparent 46%, rgba(232, 35, 43, .35) 46.5%, rgba(232, 35, 43, .35) 47.5%, transparent 48%),
    linear-gradient(115deg, transparent 50%, rgba(37, 99, 255, .4) 50.5%, rgba(37, 99, 255, .4) 51.5%, transparent 52%);
}
.cta-inner { display: grid; gap: 20px; max-width: 720px; }
.cta-inner h2 { font-size: var(--fs-2xl); }
.cta-inner p { color: var(--muted); font-size: var(--fs-lg); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 56px 32px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
}
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand p { color: var(--muted); max-width: 38ch; }
.footer-col { display: grid; gap: 14px; align-content: start; }
.footer-col h2 {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { color: var(--white); text-decoration: none; }
.footer-col a:hover { color: var(--blue-soft); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a { color: inherit; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  color: var(--dim); font-size: var(--fs-sm);
}

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

/* ---------- Floating WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6);
  transition: transform .18s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* =========================================================
   Inner pages
   ========================================================= */

.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}
.page-hero::before, .page-hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 70%; height: 3px; right: -12%;
  transform: rotate(-24deg); opacity: .45;
}
.page-hero::before { top: 40%; background: linear-gradient(90deg, transparent, var(--red) 60%, transparent); }
.page-hero::after  { top: 46%; background: linear-gradient(90deg, transparent, var(--blue) 60%, transparent); }
.page-hero-inner { display: grid; gap: 22px; justify-items: start; }
.page-hero-inner > * { max-width: 820px; }
.page-hero h1 { font-size: var(--fs-3xl); }


/* service rows */
.svc-list { display: grid; }
.svc {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.svc:first-child { border-top: 0; padding-top: 0; }
.svc-main { display: grid; gap: 16px; align-content: start; }
.svc-main h2 { font-size: var(--fs-xl); }
.svc-main > p { color: var(--muted); font-size: var(--fs-lg); max-width: 56ch; }
.svc:nth-child(even) .service-icon { background: rgba(37, 99, 255, .12); color: var(--blue-soft); }
.svc:nth-child(odd) .service-icon { background: rgba(232, 35, 43, .12); color: var(--red-soft); }

.svc-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.svc-in span {
  font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin-right: 4px;
}
.pill {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(37, 99, 255, .14); color: var(--blue-soft);
  border: 1px solid rgba(37, 99, 255, .35);
}
.pill.dim { background: transparent; color: var(--muted); border-color: var(--line); }

.svc-side {
  display: grid; gap: 16px; align-content: start;
  padding: clamp(22px, 3vw, 30px);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.svc-side h3 {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li {
  position: relative; padding-left: 28px; font-size: 0.98rem;
}
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em;
  width: 12px; height: 7px;
  border-left: 2.4px solid var(--blue-soft); border-bottom: 2.4px solid var(--blue-soft);
  transform: rotate(-45deg);
}
.svc-example {
  font-size: var(--fs-sm); color: var(--muted);
  padding-top: 14px; border-top: 1px solid var(--line);
}
.svc-example a { color: var(--white); text-underline-offset: 3px; }
.svc-example a:hover { color: var(--blue-soft); }

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

/* ongoing services */
.ongoing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; }
.ongoing {
  display: grid; gap: 14px; align-content: start;
  padding: clamp(24px, 3vw, 32px);
  background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
}
.ongoing-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.ongoing h3 { font-size: var(--fs-lg); }
.ongoing-price {
  font-family: var(--font-display); font-stretch: 112%; font-weight: 800;
  font-size: 1.8rem; line-height: 1; font-variant-numeric: tabular-nums;
}
.ongoing-price span { font-size: .5em; color: var(--muted); font-weight: 600; margin-left: 2px; }
.ongoing > p { color: var(--muted); }
@media (max-width: 640px) { .ongoing-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Interactive layer
   ========================================================= */

/* scroll progress (red → blue, like the logo slash) */
.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  transform: scaleX(0); transform-origin: left;
  will-change: transform;
  pointer-events: none;
}

/* packages and side panels lift on hover */
.package { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
@media (hover: hover) {
  .package:hover { transform: translateY(-4px); border-color: #2c3a66; }
  .package.featured:hover { border-color: var(--blue); }
  .svc-side { transition: border-color .25s ease; }
  .svc:hover .svc-side { border-color: #2c3a66; }
  .ongoing { transition: border-color .25s ease, transform .25s ease; }
  .ongoing:hover { border-color: #2c3a66; transform: translateY(-3px); }
}

/* reveal on scroll — only applied by JS to elements that start below the fold */
.reveal-pre { opacity: 0; transform: translateY(18px); }
.reveal-in {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--rd, 0ms);
}

/* back to top */
.to-top {
  position: fixed; z-index: 55;
  right: 18px; bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink-2); color: var(--white);
  border: 1px solid #2c3a66;
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s, border-color .2s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--blue-soft); }
.to-top svg { width: 20px; height: 20px; }

/* mobile action bar: Call | WhatsApp | Book */
.action-bar { display: none; }
@media (max-width: 760px) {
  .wa-float { display: none; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .action-bar {
    position: fixed; z-index: 58; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(3, 1fr);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(5, 7, 13, .96);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .action-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    height: 64px;
    font-size: 0.75rem; font-weight: 700; letter-spacing: .04em;
    color: var(--white); text-decoration: none;
  }
  .action-bar a + a { border-left: 1px solid var(--line); }
  .action-bar svg { width: 22px; height: 22px; }
  .action-bar .ab-call svg { color: var(--blue-soft); }
  .action-bar .ab-wa svg { color: #25d366; }
  .action-bar .ab-book { background: var(--red); color: #fff; }
  .to-top { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); right: 14px; }
}

/* sticky section menu (Services) */
.subnav {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + var(--header-h-small));
  z-index: 40;
  background: rgba(5, 7, 13, .98);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.subnav ul {
  list-style: none;
  display: flex; gap: 6px;
  padding-block: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: block; white-space: nowrap;
  font-size: var(--fs-sm); font-weight: 600;
  padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); text-decoration: none;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.subnav a:hover { color: var(--white); border-color: #2c3a66; }
.subnav a.active { color: #fff; background: var(--blue); border-color: var(--blue); }
.svc { scroll-margin-top: calc(var(--header-h-small) + 72px); }

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

/* =========================================================
   Pricing page
   ========================================================= */

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.package-tag {
  justify-self: start;
  font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--red-soft);
}
.package.featured .package-tag { color: var(--blue-soft); }
.package li strong { font-weight: 700; }

/* comparison */
.compare-tabs { display: none; }
.compare-wrap {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow-x: auto; background: var(--ink);
}
.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  vertical-align: bottom; background: var(--ink-2);
  position: sticky; top: 0;
}
.compare thead th span {
  display: block; margin-top: 4px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.compare tbody th { font-weight: 500; color: var(--white); width: 34%; }
.compare td { color: var(--white); width: 22%; }
.compare td.y::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 10px; height: 6px; margin: 0 10px 4px 2px;
  border-left: 2.4px solid var(--blue-soft); border-bottom: 2.4px solid var(--blue-soft);
  transform: rotate(-45deg);
}
.compare td.n { color: var(--dim); }
.compare .hl { background: rgba(37, 99, 255, .07); }
.compare thead th.hl { background: rgba(37, 99, 255, .16); color: #fff; }
.compare tr.group th {
  background: var(--ink-2);
  font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  padding-top: 18px;
}
.compare tbody tr:not(.group):hover th, .compare tbody tr:not(.group):hover td { background-color: rgba(255,255,255,.025); }

@media (max-width: 700px) {
  .compare-tabs {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
    padding: 4px; margin-bottom: 14px;
    background: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  }
  .compare-tabs button {
    min-height: 44px; border: 0; border-radius: 7px;
    background: transparent; color: var(--muted);
    font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; cursor: pointer;
  }
  .compare-tabs button[aria-selected="true"] { background: var(--blue); color: #fff; }
  .compare th, .compare td { padding: 12px 14px; }
  .compare tbody th { width: 55%; }
  .compare td, .compare thead th:not(:first-child) { width: 45%; }
  .compare .hl { background: transparent; }
  .compare thead th.hl { background: var(--ink-2); }
  .compare[data-show="1"] tr > :nth-child(3), .compare[data-show="1"] tr > :nth-child(4),
  .compare[data-show="2"] tr > :nth-child(2), .compare[data-show="2"] tr > :nth-child(4),
  .compare[data-show="3"] tr > :nth-child(2), .compare[data-show="3"] tr > :nth-child(3) { display: none; }
  .compare tr.group th { display: table-cell !important; }
}

/* quote builder */
.builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.builder-main { display: grid; gap: 36px; }
.b-step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 16px; }
.b-step legend {
  display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 16px;
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg);
}
.b-step legend em { font-style: normal; font-family: var(--font-body); font-weight: 500; font-size: var(--fs-sm); color: var(--muted); }
.b-num {
  width: 30px; height: 30px; display: grid; place-items: center; flex: none;
  border-radius: 50%; background: var(--red); color: #fff; font-size: 0.9rem;
}
.b-step:nth-of-type(2) .b-num { background: var(--blue); }
.b-step:nth-of-type(3) .b-num { background: var(--ink-3); border: 1px solid #2c3a66; }

.pkg-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pkg-opt { position: relative; cursor: pointer; }
.pkg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pkg-opt-body {
  display: grid; gap: 4px; height: 100%; align-content: start;
  padding: 16px 18px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--ink-2);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.pkg-opt-body b { font-family: var(--font-display); font-size: 1rem; }
.pkg-opt-price { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pkg-opt-body small { color: var(--muted); font-size: var(--fs-sm); }
.pkg-opt:hover .pkg-opt-body { border-color: #2c3a66; }
.pkg-opt input:checked + .pkg-opt-body { border-color: var(--blue); background: rgba(37, 99, 255, .1); box-shadow: 0 0 0 1px var(--blue); }
.pkg-opt input:focus-visible + .pkg-opt-body { outline: 2px solid var(--blue-soft); outline-offset: 3px; }

.addon-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.addon {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ink-2);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.addon-txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.addon-txt b { font-weight: 600; font-size: 0.98rem; }
.addon-txt small { color: var(--muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.addon input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 22px; height: 22px; margin: 0;
  border: 1.5px solid #3a4772; border-radius: 6px; background: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.addon input[type="checkbox"]::after {
  content: ""; width: 10px; height: 6px; margin-top: -3px;
  border-left: 2.4px solid #fff; border-bottom: 2.4px solid #fff;
  transform: rotate(-45deg) scale(0); transition: transform .15s ease;
}
.addon input[type="checkbox"]:checked { background: var(--blue); border-color: var(--blue); }
.addon input[type="checkbox"]:checked::after { transform: rotate(-45deg) scale(1); }
.addon:has(input:checked) { border-color: var(--blue); background: rgba(37, 99, 255, .08); }
.addon:hover { border-color: #2c3a66; }
.addon-state { font-size: var(--fs-xs); font-weight: 700; color: var(--blue-soft); text-align: right; }
.addon.is-included { cursor: default; opacity: .75; }
.addon.is-included:hover { border-color: var(--line); }
.addon.is-included input { opacity: .35; cursor: default; }
.addon-qty { cursor: default; }

.stepper { display: flex; align-items: center; gap: 4px; flex: none; }
.stepper button {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid #2c3a66; background: var(--ink); color: var(--white);
  font-size: 1.15rem; line-height: 1; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.stepper button:hover:not(:disabled) { border-color: var(--blue-soft); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.summary { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h-small) + 20px); }
.summary-inner {
  display: grid; gap: 16px;
  padding: 26px;
  border: 1px solid var(--blue); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(37, 99, 255, .1), rgba(37, 99, 255, 0) 60%), var(--ink-2);
  box-shadow: 0 24px 60px -30px rgba(37, 99, 255, .55);
}
.summary h3 {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.sum-lines { list-style: none; display: grid; gap: 8px; font-size: 0.95rem; }
.sum-lines li { display: flex; justify-content: space-between; gap: 16px; }
.sum-lines li span:last-child { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.sum-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.sum-total span { font-weight: 600; color: var(--muted); }
.sum-total strong {
  font-family: var(--font-display); font-stretch: 112%; font-weight: 800;
  font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums;
}
.sum-monthly strong { font-size: 1.35rem; color: var(--blue-soft); }
.sum-note { font-size: var(--fs-sm); color: var(--dim); }
.summary .btn { width: 100%; }

@media (max-width: 960px) {
  .builder { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 640px) {
  .pkg-options { grid-template-columns: 1fr; }
  .pkg-opt-body { grid-template-columns: 1fr auto; align-items: center; }
  .pkg-opt-body b { grid-column: 1; }
  .pkg-opt-price { grid-column: 2; grid-row: 1 / span 2; font-size: 1.4rem; }
  .pkg-opt-body small { grid-column: 1; }
  .addon-list { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq-search {
  position: relative; margin-bottom: 20px;
}
.faq-search svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--dim); pointer-events: none;
}
.faq-search input {
  width: 100%; min-height: 52px;
  padding: 12px 16px 12px 46px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ink); color: var(--white);
  font: inherit; font-size: 1rem;
  transition: border-color .15s ease;
}
.faq-search input::placeholder { color: var(--dim); }
.faq-search input:focus { outline: none; border-color: var(--blue-soft); }
.faq-list { display: grid; gap: 10px; }
.faq {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ink);
  transition: border-color .2s ease;
}
.faq[open] { border-color: #2c3a66; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px;
  font-weight: 600; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--blue-soft); border-bottom: 2px solid var(--blue-soft);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { color: var(--blue-soft); }
.faq-a { padding: 0 20px 20px; color: var(--muted); max-width: 70ch; }
.faq-empty { color: var(--muted); padding: 12px 4px; }
.faq-empty a, .section-head p a { color: var(--white); text-underline-offset: 3px; }

/* floating estimate on phones while using the builder */
.sum-float { display: none; }
@media (max-width: 960px) {
  .sum-float {
    position: fixed; z-index: 57; left: 50%;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px 10px 18px;
    border-radius: 999px; border: 1px solid var(--blue);
    background: rgba(10, 15, 29, .97);
    box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .8);
    color: var(--white); font: inherit; cursor: pointer;
    transform: translate(-50%, 140%); opacity: 0; visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s;
    white-space: nowrap;
  }
  .sum-float.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
  .sum-float span { font-size: var(--fs-sm); color: var(--muted); }
  .sum-float strong { font-family: var(--font-display); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
  .sum-float em { font-style: normal; font-size: var(--fs-xs); font-weight: 700; background: var(--blue); color: #fff; padding: 6px 10px; border-radius: 999px; }
  body.builder-active .to-top { opacity: 0; visibility: hidden; }
}
@media (max-width: 760px) {
  .sum-float { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* =========================================================
   Contact page
   ========================================================= */

.contact-options-wrap { padding-block: 28px; border-bottom: 1px solid var(--line); background: var(--ink-2); }
.contact-options { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.c-opt {
  display: flex; align-items: center; gap: 14px; height: 100%;
  padding: 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ink); text-decoration: none; color: var(--white);
  transition: border-color .2s ease, transform .2s ease;
}
.c-opt:hover { border-color: #2c3a66; transform: translateY(-2px); }
.c-ico {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  border-radius: 10px; background: rgba(37, 99, 255, .12); color: var(--blue-soft);
}
.c-ico svg { width: 22px; height: 22px; }
.c-opt-book .c-ico { background: rgba(232, 35, 43, .14); color: var(--red-soft); }
.c-opt-wa .c-ico { background: rgba(37, 211, 102, .12); color: #25d366; }
.c-txt { display: grid; gap: 2px; min-width: 0; }
.c-txt b { font-weight: 700; font-size: 0.98rem; }
.c-txt small { color: var(--muted); font-size: var(--fs-sm); overflow-wrap: anywhere; }
@media (max-width: 860px) { .contact-options { grid-template-columns: 1fr; } }

.quote-layout {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start;
  scroll-margin-top: 80px;
}
#quote { scroll-margin-top: 60px; }
.quote-intro { display: grid; gap: 18px; }
.quote-intro h2 { font-size: var(--fs-2xl); }
.quote-intro > p { color: var(--muted); font-size: var(--fs-lg); }
.next-steps { list-style: none; counter-reset: ns; display: grid; gap: 16px; margin-top: 8px; }
.next-steps li {
  counter-increment: ns; position: relative;
  display: grid; gap: 2px; padding-left: 44px;
}
.next-steps li::before {
  content: counter(ns); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid #2c3a66;
  font-family: var(--font-display); font-weight: 800; font-size: .85rem; color: var(--blue-soft);
}
.next-steps b { font-weight: 700; }
.next-steps span { color: var(--muted); font-size: 0.98rem; }

.qform-card {
  padding: clamp(22px, 3.5vw, 36px);
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--ink-2);
  box-shadow: 0 30px 80px -50px rgba(37, 99, 255, .6);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.qprogress { display: grid; gap: 10px; margin-bottom: 28px; }
.qprogress-bar { height: 4px; border-radius: 4px; background: var(--ink-3); overflow: hidden; }
.qprogress-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--red), var(--blue));
  transform: scaleX(.25); transform-origin: left; transition: transform .35s ease;
}
.qprogress-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.qprogress-steps li {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
  transition: color .2s ease;
}
.qprogress-steps li.on { color: var(--white); }

.qstep { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 20px; }
.qstep legend {
  padding: 0; margin-bottom: 20px;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: var(--fs-xl);
}
.qstep legend:focus { outline: none; }

.field { display: grid; gap: 8px; }
.field[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field-label { font-weight: 600; font-size: 0.95rem; }
.field label em, .field-label em { font-style: normal; font-weight: 400; color: var(--dim); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #26314f; border-radius: 8px;
  background: var(--ink); color: var(--white);
  font: inherit; font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
  padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-soft); box-shadow: 0 0 0 3px rgba(37, 99, 255, .2);
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
[aria-invalid="true"] { border-color: var(--red) !important; }
.qerror { color: var(--red-soft); font-size: var(--fs-sm); font-weight: 600; }
.qerror a { color: inherit; }
.quote-carry textarea { color: var(--muted); background: var(--ink-3); min-height: 80px; }
.small-link { justify-self: start; font-size: var(--fs-sm); color: var(--blue-soft); }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; height: 100%;
  min-height: 56px; padding: 12px 16px;
  border: 1.5px solid #26314f; border-radius: 10px;
  background: var(--ink);
  font-weight: 600;
  transition: border-color .15s ease, background-color .15s ease;
}
.choice span small { font-weight: 500; color: var(--muted); font-size: var(--fs-sm); }
.choice:hover span { border-color: #3a4772; }
.choice input:checked + span { border-color: var(--blue); background: rgba(37, 99, 255, .12); box-shadow: 0 0 0 1px var(--blue); }
.choice input:focus-visible + span { outline: 2px solid var(--blue-soft); outline-offset: 3px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #26314f; border-radius: 999px;
  background: var(--ink); font-size: var(--fs-sm); font-weight: 600;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.chip input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; }
.chip input:checked + span::before { content: "✓"; font-size: .8em; }
.chip input:focus-visible + span { outline: 2px solid var(--blue-soft); outline-offset: 2px; }
.chip:hover span { border-color: #3a4772; }

.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.95rem; color: var(--muted); cursor: pointer; }
.consent input {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 1px 0 0;
  border: 1.5px solid #3a4772; border-radius: 6px; background: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}
.consent input::after {
  content: ""; width: 10px; height: 6px; margin-top: -3px;
  border-left: 2.4px solid #fff; border-bottom: 2.4px solid #fff;
  transform: rotate(-45deg) scale(0); transition: transform .15s ease;
}
.consent input:checked { background: var(--blue); border-color: var(--blue); }
.consent input:checked::after { transform: rotate(-45deg) scale(1); }
.consent a { color: var(--white); text-underline-offset: 3px; }

.qnav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.qnav #qnext, .qnav #qsubmit { margin-left: auto; }
.qnav .btn { min-width: 120px; }
.qnav .btn:disabled { opacity: .7; cursor: wait; transform: none; }
.qsend-error { margin-top: 14px; }

.qdone { display: grid; gap: 16px; justify-items: start; padding-block: 12px; }
.qdone:focus { outline: none; }
.qdone-ico {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(37, 99, 255, .15); color: var(--blue-soft);
  animation: pop .4s cubic-bezier(.2,.9,.3,1.3) both;
}
.qdone-ico svg { width: 28px; height: 28px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.qdone h3 { font-size: var(--fs-xl); }
.qdone p { color: var(--muted); }

@media (max-width: 960px) { .quote-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice-grid-4 { grid-template-columns: 1fr 1fr; }
  .qprogress-steps li { font-size: 0.62rem; letter-spacing: .08em; }
  .qnav .btn { min-width: 0; flex: 1; }
  .qnav #qnext, .qnav #qsubmit { margin-left: 0; }
}

/* Calendly */
.cal-embed {
  position: relative;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--ink);
  overflow: hidden;
}
.cal-embed .calendly-inline-widget { min-width: 280px; height: 700px; }
.cal-embed.loaded { min-height: 700px; }
.cal-fallback {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center;
  padding: 24px; color: var(--muted);
}
.cal-embed.loaded .cal-fallback { display: none; }
.cal-embed:not(.loaded) { min-height: 360px; }
.cal-embed:not(.loaded) .cal-fallback { position: static; min-height: 360px; }
.cal-ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: rgba(232, 35, 43, .14); color: var(--red-soft); }
.cal-ico svg { width: 26px; height: 26px; }
.cal-title { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xl); color: var(--white); }
.cal-fallback .cta-actions { justify-content: center; margin: 0; }
.cal-note { font-size: var(--fs-sm); color: var(--dim); max-width: 46ch; }
.cal-note a { color: var(--muted); }
@media (max-width: 600px) { .cal-embed.loaded, .cal-embed .calendly-inline-widget { min-height: 760px; height: 760px; } }

/* =========================================================
   Simple text pages (privacy, thanks)
   ========================================================= */
.prose { max-width: 72ch; display: grid; gap: 16px; }
.prose h2 { font-size: var(--fs-xl); margin-top: 24px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }
.prose a { color: var(--white); text-underline-offset: 3px; }
.prose strong { color: var(--white); }

/* =========================================================
   Demos hub
   ========================================================= */
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.demo-card {
  display: grid; grid-template-rows: auto 1fr;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--ink-2);
  transition: border-color .25s ease, transform .25s ease;
}
@media (hover: hover) { .demo-card:not(.is-soon):hover { border-color: #2c3a66; transform: translateY(-3px); } }
.demo-info { display: grid; gap: 12px; align-content: start; padding: clamp(20px, 3vw, 28px); }
.demo-kind { font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red-soft); }
.demo-info h3 { font-size: var(--fs-xl); }
.demo-feats { list-style: none; display: grid; gap: 8px; }
.demo-feats li { position: relative; padding-left: 24px; color: var(--muted); font-size: .97rem; }
.demo-feats li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2.2px solid var(--blue-soft); border-bottom: 2.2px solid var(--blue-soft); transform: rotate(-45deg); }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.soon-badge { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px dashed #3a4772; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.demo-card.is-soon .demo-shot { filter: saturate(.55); opacity: .75; }
.demo-disclaimer { margin-top: 24px; color: var(--dim); font-size: var(--fs-sm); }
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .demo-preview { display: none; } }

/* CSS-drawn screen previews, each in its demo's own palette */
.demo-shot { aspect-ratio: 16 / 9; max-width: 100%; padding: 18px 18px 0; display: flex; overflow: hidden; }
.ds-bar { position: absolute; }
.demo-shot { position: relative; flex-direction: column; }
.demo-shot .ds-bar { position: static; display: flex; gap: 5px; padding: 9px 10px; border-radius: 10px 10px 0 0; background: rgba(0,0,0,.18); }
.demo-shot .ds-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); }
.ds-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 0; background: rgba(255,255,255,.08); position: relative; }
.ds-h { height: 14px; width: 70%; border-radius: 6px; background: rgba(255,255,255,.85); }
.ds-h.short { width: 45%; opacity: .6; }
.ds-pill { align-self: flex-start; font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.ds-rows { display: grid; gap: 7px; margin-top: 4px; }
.ds-rows span { height: 10px; border-radius: 5px; background: rgba(255,255,255,.3); }
.ds-rows span:nth-child(2) { width: 85%; } .ds-rows span:nth-child(3) { width: 65%; }
.ds-basket { position: absolute; right: 14px; bottom: 14px; font-size: 11px; font-weight: 800; padding: 6px 12px; border-radius: 999px; }
.shot-cafe { background: #1d3b2f; }
.shot-cafe .ds-body { background: #f4f5ef; }
.shot-cafe .ds-h { background: #1d3b2f; }
.shot-cafe .ds-rows span { background: #dde2d6; }
.shot-cafe .ds-pill { background: #1d3b2f; color: #f0b429; }
.shot-cafe .ds-basket { background: #f0b429; color: #13281f; }
.shot-clinic { background: #d9c9c1; }
.shot-clinic .ds-body { background: #fbf8f6; }
.shot-clinic .ds-h { background: #5b4a44; }
.ds-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.ds-cards span { height: 44px; border-radius: 8px; background: #efe6e1; }
.ds-slots { display: flex; gap: 6px; }
.ds-slots span { height: 18px; flex: 1; border-radius: 5px; border: 1px solid #d9c9c1; }
.ds-slots span.on { background: #5b4a44; border-color: #5b4a44; }
.shot-shop { background: #111; }
.shot-shop .ds-body { background: #fafafa; }
.ds-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ds-grid span { aspect-ratio: 1; border-radius: 6px; background: #e9e9e9; }
.ds-grid span:nth-child(2), .ds-grid span:nth-child(4) { background: #ff5a36; opacity: .85; }
.shot-shop .ds-basket { background: #111; color: #fff; }
.shot-club { background: #0b3d91; }
.shot-club .ds-body { background: #0f4fb8; }
.ds-score { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 6px; border-radius: 8px; background: rgba(0,0,0,.25); color: #fff; font-family: var(--font-display); }
.ds-score b { font-size: 26px; color: #ffd400; }

/* Device preview modal */
.pv { position: fixed; inset: 0; z-index: 120; background: rgba(3, 5, 10, .86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; padding: 20px; padding-top: calc(20px + env(safe-area-inset-top, 0px)); }
.pv-inner { flex: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pv-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pv-head h2 { font-size: var(--fs-lg); margin-right: auto; }
.pv-devices { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--ink); }
.pv-devices button { min-height: 38px; padding: 6px 14px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; font-family: var(--font-body); }
.pv-devices button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.pv-tools { display: flex; align-items: center; gap: 8px; }
.pv-open { min-height: 42px; padding: 8px 16px; }
.pv-close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--ink); color: var(--white); cursor: pointer; }
.pv-close svg { width: 20px; height: 20px; }
.pv-stage { flex: 1; display: grid; place-items: center; min-height: 0; overflow: auto; }
.pv-frame { height: 100%; max-height: 100%; border-radius: 28px; border: 10px solid #1b2134; background: #000; overflow: hidden; box-shadow: 0 40px 100px -30px rgba(37, 99, 255, .5); transition: width .35s ease, border-radius .35s ease; max-width: 100%; }
.pv-frame[data-size="phone"] { width: 410px; max-height: 860px; }
.pv-frame[data-size="tablet"] { width: 788px; border-radius: 22px; }
.pv-frame[data-size="desktop"] { width: 100%; border-radius: 12px; border-width: 8px; }
.pv-frame iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }

/* keep the menu on one line on small laptops */
.site-nav a { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1140px) {
  .header-inner { gap: 12px; }
  .site-nav a { padding: 10px 9px; font-size: .9rem; }
  .site-nav .nav-cta a { padding: 10px 14px; }
  .nav-cta { margin-left: 4px; }
  .brand-word { font-size: .95rem; }
  .brand img { width: 42px; }
}

/* five demos: two large on top, three below */
@media (min-width: 1100px) {
  .demo-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .demo-card { grid-column: span 2; }
  .demo-card:nth-child(-n+2) { grid-column: span 3; }
}
@media (min-width: 861px) and (max-width: 1099px) {
  .demo-card:last-child { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .demo-card:last-child .demo-shot { aspect-ratio: auto; min-height: 100%; }
}
.shot-photo { background: #0e0e0d; }
.shot-photo .ds-body { background: #171715; }
.ds-masonry { columns: 3; column-gap: 6px; }
.ds-masonry span { display: block; margin-bottom: 6px; border-radius: 3px; break-inside: avoid; }
.ds-masonry span:nth-child(1) { height: 60px; background: linear-gradient(#f2c6a0, #6d5a6e); }
.ds-masonry span:nth-child(2) { height: 34px; background: radial-gradient(circle at 40% 40%, #ffb347 0 10%, #20131f 60%); }
.ds-masonry span:nth-child(3) { height: 40px; background: linear-gradient(#cfd8dc, #40594f); }
.ds-masonry span:nth-child(4) { height: 50px; background: radial-gradient(circle at 50% 35%, #c9a27e, #3b2a22); }
.ds-masonry span:nth-child(5) { height: 30px; background: linear-gradient(#d8cfc3 60%, #a8927b 60%); }

/* =========================================================
   Portfolio
   ========================================================= */
.cs-head { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: end; margin-bottom: 32px; }
.cs-intro { display: grid; gap: 16px; }
.cs-intro h2 { font-size: var(--fs-2xl); }
.cs-intro p { color: var(--muted); font-size: var(--fs-lg); max-width: 60ch; }
.cs-facts { margin: 0; display: grid; border-top: 1px solid var(--line); }
.cs-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cs-facts dt { color: var(--dim); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.cs-facts dd { margin: 0; text-align: right; font-weight: 600; }
.cs-mock .mock-body { min-height: 300px; }
.cs-bars { display: grid; gap: 12px; margin-top: 6px; }
.cs-bars span { position: relative; height: 30px; border-radius: 6px; background: var(--ink-3); overflow: hidden; }
.cs-bars span::before { content: ""; position: absolute; inset: 0; width: var(--w); background: linear-gradient(90deg, var(--red), var(--blue)); opacity: .85; }
.cs-bars i { position: relative; font-style: normal; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 30px; padding-left: 12px; color: #fff; }
.cs-sub { font-size: var(--fs-xl); margin: 48px 0 20px; }
.cs-grid .service h3 { font-size: 1.1rem; }
@media (max-width: 860px) { .cs-head { grid-template-columns: 1fr; } }

.pd-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pd-card { display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink); text-decoration: none; color: var(--white); transition: border-color .2s ease, transform .2s ease; }
.pd-card:hover { border-color: #2c3a66; transform: translateY(-2px); }
.pd-swatch { width: 44px; height: 44px; flex: none; border-radius: 10px; }
.pd-txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.pd-txt b { font-weight: 700; }
.pd-txt small { color: var(--muted); font-size: var(--fs-sm); }
.pd-go { color: var(--blue-soft); font-weight: 700; }

/* =========================================================
   About
   ========================================================= */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.about-card { position: sticky; top: calc(var(--header-h-small) + 24px); display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 30% 30%, rgba(232,35,43,.18), transparent 60%), radial-gradient(circle at 75% 70%, rgba(37,99,255,.22), transparent 60%), var(--ink-2); }
.about-card picture { padding: 40px 32px 24px; }
.about-card-name { display: grid; gap: 2px; padding: 18px 24px; border-top: 1px solid var(--line); background: var(--ink); }
.about-card-name b { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.about-card-name span { color: var(--muted); font-size: var(--fs-sm); }
.about-copy { display: grid; gap: 18px; max-width: 64ch; }
.about-copy h2 { font-size: var(--fs-2xl); margin-bottom: 4px; }
.about-copy p { color: var(--muted); font-size: 1.08rem; }
.values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-card { position: static; max-width: 420px; } }
@media (max-width: 580px) { .values-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Device frames + screenshot galleries
   ========================================================= */
.frame-browser { border: 1px solid #26314f; border-radius: 10px; overflow: hidden; background: var(--ink-2); box-shadow: 0 30px 70px -40px rgba(37, 99, 255, .55); }
.fb-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #0e1424; border-bottom: 1px solid #1c2540; }
.fb-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a3554; }
.fb-bar i:first-child { background: #e8232b; opacity: .8; } .fb-bar i:nth-child(2) { background: #f5b301; opacity: .7; } .fb-bar i:nth-child(3) { background: #22c55e; opacity: .7; }
.fb-bar span { margin-left: 10px; flex: 1; max-width: 340px; padding: 3px 10px; border-radius: 6px; background: #060a14; color: var(--dim); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame-browser img, .frame-phone img { display: block; width: 100%; height: auto; }
.frame-phone { border: 7px solid #141a2c; border-radius: 26px; overflow: hidden; background: #000; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8), 0 0 0 1px #2a3554; }

.cs-showcase { position: relative; padding-right: 9%; padding-bottom: 6%; }
.cs-showcase > .frame-phone { position: absolute; right: 0; bottom: 0; width: 23%; max-height: 92%; }
.cs-live { margin: 18px 0 0; }
.home-showcase { padding-right: 12%; }
.home-showcase > .frame-phone { width: 27%; }

.cs-note { color: var(--dim); font-size: var(--fs-sm); margin: -10px 0 18px; }
.shots-desktop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.shots-phone { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.shots-desktop figure, .shots-phone figure { margin: 0; display: grid; gap: 10px; align-content: start; }
.shots-phone .frame-phone { max-width: 240px; justify-self: center; width: 100%; }
figcaption { color: var(--muted); font-size: var(--fs-sm); }
.shots-phone figcaption { text-align: center; }
[data-zoom] { cursor: zoom-in; transition: opacity .2s ease; }
[data-zoom]:hover { opacity: .9; }
@media (max-width: 860px) {
  .shots-desktop { grid-template-columns: 1fr; }
  .shots-phone { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
}

/* Image viewer */
.zoom { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 20px; padding-top: calc(56px + env(safe-area-inset-top, 0px)); background: rgba(3, 5, 10, .94); animation: zoomFade .2s ease both; cursor: zoom-out; }
@keyframes zoomFade { from { opacity: 0; } }
.zoom img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 8px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); }
.zoom button { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--ink); color: var(--white); font-size: 1.6rem; line-height: 1; cursor: pointer; }

.shots-phone .frame-phone img { aspect-ratio: 560 / 966; object-fit: cover; object-position: top; }

.about-card-photo picture { padding: 0; }
.about-card-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

/* comfortable tap height for text links */
.link-arrow { padding-block: 10px 4px; }
.small-link { padding-block: 8px; }

/* very small phones (320–359px): keep logo and menu button inside the screen */
@media (max-width: 359px) {
  .header-inner { gap: 10px; }
  .brand { gap: 8px; }
  .brand img, .site-header.scrolled .brand img { width: 36px; }
  .brand-word { font-size: .86rem; }
  .nav-toggle { flex: none; width: 44px; height: 44px; }
}

/* portfolio demo swatches */
.sw-cafe { background: linear-gradient(135deg,#1d3b2f 60%,#f0b429 60%); }
.sw-clinic { background: linear-gradient(135deg,#4a3c37 60%,#c98b7f 60%); }
.sw-club { background: linear-gradient(135deg,#0b3d91 60%,#ffd400 60%); }
.sw-shop { background: linear-gradient(135deg,#111 60%,#ff5a36 60%); }
.sw-photo { background: linear-gradient(135deg,#0e0e0d 60%,#c9a96e 60%); }

/* =========================================================
   AI chat assistant
   ========================================================= */
.chat-launch {
  position: fixed; z-index: 61;
  right: 86px; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  height: 56px; padding: 0 22px 0 18px;
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px; border: 1px solid #2c3a66;
  background: var(--ink-2); color: var(--white);
  font: 700 0.95rem/1 var(--font-body); cursor: pointer;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6);
  transition: border-color .18s ease, transform .18s ease;
}
.chat-launch:hover { border-color: var(--blue-soft); transform: translateY(-1px); }
.chat-launch svg { width: 24px; height: 24px; color: var(--blue-soft); }
.chat-launch[aria-expanded="true"] { border-color: var(--blue); }

.chat-panel {
  position: fixed; z-index: 70;
  right: 18px; bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  width: min(390px, calc(100vw - 36px));
  height: min(600px, calc(100vh - 120px));
  display: flex; flex-direction: column;
  background: var(--ink-2); color: var(--white);
  border: 1px solid #2c3a66; border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9);
  overflow: hidden;
  opacity: 0; transform: translateY(12px) scale(.98); transform-origin: 100% 100%;
  transition: opacity .18s ease, transform .18s ease;
}
.chat-panel.is-open { opacity: 1; transform: none; }
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #0d1426, var(--ink-2));
}
.chat-avatar { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink); border: 1px solid var(--line); }
.chat-head h2 { font-family: var(--font-display); font-size: 1rem; letter-spacing: .02em; }
.chat-head p { font-size: var(--fs-xs); color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.chat-head p i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.chat-close { margin-left: auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.chat-close:hover { color: var(--white); border-color: var(--line); }
.chat-close svg { width: 20px; height: 20px; }

.chat-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; }
.chat-msg.from-bot { align-self: flex-start; background: var(--ink-3); border-bottom-left-radius: 6px; }
.chat-msg.from-user { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.chat-msg a { color: var(--blue-soft); font-weight: 700; text-underline-offset: 3px; }
.chat-msg strong { color: #fff; }
.chat-li { display: block; padding-left: 14px; position: relative; }
.chat-li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--red-soft); }
.chat-dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.chat-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: chatDot 1s infinite ease-in-out; }
.chat-dots i:nth-child(2) { animation-delay: .15s; } .chat-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }

.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.chat-chips button { min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid #2c3a66; background: transparent; color: var(--white); font: 600 .85rem/1.2 var(--font-body); cursor: pointer; text-align: left; }
.chat-chips button:hover { border-color: var(--blue-soft); background: rgba(37, 99, 255, .1); }

.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form textarea {
  flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 11px 14px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--ink); color: var(--white);
  font: 16px/1.4 var(--font-body);
}
.chat-form textarea::placeholder { color: var(--dim); }
.chat-form textarea:focus { outline: none; border-color: var(--blue-soft); }
.chat-send { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; border: 0; background: var(--red); color: #fff; cursor: pointer; }
.chat-send:hover { background: var(--red-deep); }
.chat-send:disabled { opacity: .5; cursor: default; }
.chat-send svg { width: 20px; height: 20px; }
.chat-note { padding: 0 16px 12px; font-size: .75rem; color: var(--dim); }
.chat-note a { color: var(--muted); text-underline-offset: 2px; }

body.chat-open .to-top { opacity: 0; visibility: hidden; }

@media (max-width: 760px) {
  .chat-launch { right: 14px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; padding: 0; justify-content: center; }
  .chat-launch span { display: none; }
  .chat-launch svg { width: 26px; height: 26px; }
  .to-top { bottom: calc(138px + env(safe-area-inset-bottom, 0px)); }
  body.builder-active .chat-launch { opacity: 0; visibility: hidden; }
  .chat-panel {
    left: 0; right: 0; bottom: 0; width: 100%;
    height: 88vh; height: 88dvh;
    border-radius: 18px 18px 0 0; border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform-origin: 50% 100%;
  }
  body.chat-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-panel, .chat-launch { transition: none; }
  .chat-dots i { animation: none; opacity: .7; }
}
