@font-face {
  font-family: Francy;
  src: url("../public/fonts/Francy.woff2") format("woff2"),
       url("../public/fonts/Francy.woff") format("woff"),
       url("../public/fonts/Francy.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --rail: 1280px;
  --gutter: 1.25rem;
  --bg: #0c0b10;
  --bg-2: #121118;
  --fg: #f3f1ee;
  --muted: #9a968e;
  --line: rgba(255, 255, 255, 0.08);
  --card: #16141c;
  --card-border: rgba(255, 255, 255, 0.08);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  --brand: #1e0a32;
  --accent: #8fa82e;
  --accent-ink: #111;
  --purple: #5a3a72;
  --wash: rgba(30, 10, 50, 0.35);
  --header-bg: rgba(12, 11, 16, 0.86);
  --topbar-bg: #09080c;
  --input-bg: rgba(255, 255, 255, 0.04);
  --logo-invert: none;
  --footer-logo: brightness(0) invert(1);
  --hero-shadow: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.42));
  --marquee-fade: var(--bg);
  --radius: 0.7rem;
  --font: Inter, "Segoe UI", system-ui, sans-serif;
  --heading: Francy, Inter, system-ui, sans-serif;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #efe2f7;
  --bg-2: #e6d4f2;
  --fg: #1b1622;
  --muted: #5f5866;
  --line: rgba(27, 22, 34, 0.1);
  --card: #ffffff;
  --card-border: rgba(27, 22, 34, 0.08);
  --shadow: 0 10px 28px rgba(40, 28, 18, 0.08);
  --accent: #6f8a1c;
  --accent-ink: #fff;
  --purple: #4a2a5e;
  --wash: rgba(239, 226, 247, 0.9);
  --header-bg: rgba(239, 226, 247, 0.9);
  --topbar-bg: #1b1622;
  --input-bg: #fff;
  --logo-invert: none;
  --footer-logo: none;
  --hero-shadow: drop-shadow(0 26px 32px rgba(40, 20, 55, 0.28));
  --marquee-fade: var(--bg);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, a, [role="button"] { cursor: pointer; }
button { font-family: inherit; border: none; background: none; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--heading);
  letter-spacing: 0.01em;
  line-height: 1.18;
  font-weight: 700;
  color: var(--fg);
}

.orbs { display: none; }

.wrap { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; }
.container,
.nav-row,
.topbar-inner {
  width: min(var(--rail), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}
.container-wide { width: min(var(--rail), calc(100% - (var(--gutter) * 2))); margin-inline: auto; }
.container-narrow { width: min(680px, calc(100% - (var(--gutter) * 2))); margin-inline: auto; }

@media (min-width: 1320px) {
  :root { --gutter: 2rem; }
}

.glass,
.card,
.service-block,
.project,
.work-card,
.price-card,
.founder-card,
.product {
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: none;
  backdrop-filter: none;
}
.glass { border-radius: var(--radius); }
.service-block {
  padding: 2.5rem 2.6rem 2.6rem;
  border-radius: var(--radius);
}
.service-block h2 { margin-bottom: 0.5rem; }
.service-block .sub { margin-bottom: 0.35rem; }
.service-block .svc-cols { margin-top: 1.75rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.service-block .svc-cols > div { padding-right: 1rem; }
.service-block .hero-actions { margin-top: 1.75rem; }

.text-gradient {
  color: var(--accent);
  background: none;
  -webkit-text-fill-color: unset;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
  border: 1px solid transparent;
}
.btn:hover { transform: none; opacity: 0.92; }
.btn-primary { background: var(--purple); color: #fff; }
.btn-lime { background: var(--accent); color: var(--accent-ink); }
.btn-outline {
  border-color: var(--line);
  color: var(--fg);
  background: transparent;
}
.btn-outline:hover { border-color: var(--fg); }
.btn-ghost {
  border-color: var(--line);
  color: var(--fg);
}
.btn-ghost:hover { background: var(--bg-2); }
.btn-full { width: 100%; }

.theme-toggle {
  width: 36px;
  height: 36px;
  border: 0;
  outline: none;
  box-shadow: none;
  border-radius: 0;
  display: grid;
  place-items: center;
  color: var(--fg);
  background: transparent;
}
.theme-toggle:hover,
.theme-toggle:focus,
.theme-toggle:focus-visible {
  background: transparent;
  border: 0;
  outline: none;
  box-shadow: none;
  opacity: 0.75;
}
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: block; }

.topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--topbar-bg);
  color: #d7d2c8;
  border-bottom: 0;
}
.topbar.hide { transform: translateY(-100%); }
.topbar-inner {
  padding: 0.35rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}
.topbar a { color: #d7d2c8; }
.topbar a:hover { color: #fff; }
.dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

header.site {
  position: fixed;
  left: 0; right: 0;
  z-index: 40;
  padding: 0.7rem 0;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
header.site.scrolled { padding: 0.55rem 0; }
.nav-row { display: flex; align-items: center; gap: 1rem; }
.nav-row .brand { flex: 1; display: flex; align-items: center; min-width: 0; }
.nav-row .brand img {
  height: 40px;
  width: auto;
  filter: var(--logo-invert);
}
nav.desktop { display: none; gap: 1.35rem; }
nav.desktop a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
}
nav.desktop a:hover, nav.desktop a.active { color: var(--fg); border-bottom-color: var(--accent); }
.nav-right { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 0.5rem; }
.nav-cta { display: none; padding: 0.55rem 1.05rem; font-size: 0.8rem; }
.menu-btn { display: flex; color: var(--fg); padding: 0.25rem; }
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem var(--gutter) 1.1rem;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1rem; padding: 0.55rem 0; color: var(--muted); }
.mobile-nav a.active { color: var(--fg); }

main { flex: 1; padding-top: 4.6rem; }

footer.site {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  margin-top: 0;
}
.footer-grid { display: grid; gap: 2rem; padding: 3rem 0 1.5rem; }
.footer-brand img { height: 42px; margin-bottom: 1rem; filter: var(--footer-logo); }
.footer-brand p { color: var(--muted); max-width: 26rem; margin-bottom: 1rem; font-size: 0.92rem; }
footer h4 { margin-bottom: 0.8rem; font-size: 0.9rem; }
footer ul { list-style: none; display: grid; gap: 0.55rem; color: var(--muted); font-size: 0.9rem; }
footer ul a:hover { color: var(--fg); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}
.footer-bottom .legal { display: flex; gap: 1.1rem; }

.socials { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.socials a {
  width: 34px; height: 34px; border-radius: 8px;
  background: transparent;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--muted);
}
.socials a:hover { color: var(--fg); border-color: var(--fg); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 0 0;
  min-height: unset;
}
.hero-grid { display: grid; gap: 1.5rem; align-items: stretch; min-height: unset; }
.hero .reveal { align-self: center; padding: 0; }
.hero h1 { font-size: clamp(2.15rem, 4.6vw, 3.35rem); margin: 0.9rem 0 0.9rem; }
.hero .lead { font-size: 1.02rem; color: var(--muted); max-width: 34rem; margin-bottom: 0; line-height: 1.65; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-top: 1.75rem;
  margin-bottom: 0;
}
.stats { display: flex; flex-wrap: wrap; gap: 1.75rem; padding-top: 1.35rem; border-top: 1px solid var(--line); }
.stats strong { display: block; font-size: 1.35rem; margin-bottom: 0.15rem; font-family: var(--heading); }
.stats span { color: var(--muted); font-size: 0.8rem; }
.hero-visual {
  display: none;
  position: relative;
  min-height: 640px;
  overflow: hidden;
  align-self: stretch;
}
.hero-ring {
  position: absolute; bottom: 6%; left: 50%; transform: translateX(-50%);
  width: 300px; height: 300px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--line); filter: none;
}
[data-theme="light"] .hero-ring { display: none; }
.hero-visual img {
  position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
  height: min(100%, 860px); width: auto; max-width: min(100%, 640px);
  object-fit: contain;
  object-position: bottom;
  filter: var(--hero-shadow);
}

.section { padding: 3.5rem 0; }
.section.dim { background: var(--bg-2); }
.section-head { margin-bottom: 1.75rem; }
.kicker {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.section h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); margin-bottom: 0.45rem; }
.section .sub, .sub { color: var(--muted); font-size: 0.98rem; }

.marquee-wrap {
  overflow: hidden;
  position: relative;
  border-block: 1px solid var(--line);
  background: var(--bg);
  padding: 45px 0;
}
.marquee-wrap p {
  text-align: left;
  color: var(--muted);
  letter-spacing: 0.12em;
  font-weight: 500;
  margin-bottom: 20px;
  font-size: 0.72rem;
  text-transform: uppercase;
}
.marquee-track {
  position: relative;
  overflow: hidden;
}
.marquee {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee:hover { animation-play-state: paused; }
.marquee > img {
  height: 52px; width: auto; object-fit: contain;
  filter: grayscale(1) contrast(0.95);
  opacity: 0.72;
  transition: filter 0.25s, opacity 0.25s;
  flex-shrink: 0;
  display: block;
}
.marquee > img:hover,
.marquee .logo-ptq:hover img { filter: none; opacity: 1; }
.logo-ptq {
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
}
.logo-ptq img {
  width: 150%;
  height: 150%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: translate(-16.5%, -16.5%);
  margin: 0;
  filter: grayscale(1) contrast(0.95);
  opacity: 0.72;
  transition: filter 0.25s, opacity 0.25s;
}
.marquee-fade { position: absolute; top: 0; bottom: 0; width: 4rem; z-index: 2; pointer-events: none; }
.marquee-fade.l { left: 0; background: linear-gradient(to right, var(--marquee-fade), transparent); }
.marquee-fade.r { right: 0; background: linear-gradient(to left, var(--marquee-fade), transparent); }
@keyframes marquee { to { transform: translateX(-33.333%); } }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 1rem; }
.card { border-radius: var(--radius); padding: 1.5rem 1.55rem; }
.icon-box {
  width: 2.4rem; height: 2.4rem; border-radius: 0.5rem;
  display: grid; place-items: center;
  background: var(--bg-2);
  color: var(--accent);
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}
.price-card { border-radius: 0.9rem; padding: 1.5rem; }
.price-card.starter { background: var(--card); }
.price-card.pro {
  background: var(--purple);
  color: #f6f3ee;
  border-color: transparent;
}
.price-card.pro h3,
.price-card.pro .price,
.price-card.pro p,
.price-card.pro li { color: inherit; }
.price-card.pro .btn-primary { background: var(--accent); color: #111; }
.price-card.pro .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.25); }
.price-card ul { list-style: none; display: grid; gap: 0.65rem; margin: 1rem 0 1.25rem; color: var(--muted); font-size: 0.9rem; }
.price-card.pro ul { color: rgba(255,255,255,0.82); }
.price { font-size: 1.9rem; font-weight: 750; color: var(--fg); text-shadow: none; }
.price-card.pro .price { color: #fff; }

.toggle-row { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin: 1.4rem 0 1.75rem; font-size: 0.85rem; }
.toggle {
  width: 46px; height: 26px; border-radius: 999px; background: var(--line); position: relative;
}
.toggle.on { background: var(--accent); }
.toggle span {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transition: left 0.2s;
}
.toggle.on span { left: 23px; }

.work-card { border-radius: var(--radius); overflow: hidden; }
.work-card .thumb { height: 12rem; position: relative; overflow: hidden; background: var(--bg-2); }
.work-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.4s; }
.work-card:hover img { transform: scale(1.03); }
.work-card .body { padding: 1rem 1.1rem 1.15rem; }
.tag {
  position: absolute; top: 0.7rem; left: 0.7rem;
  padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.68rem; font-weight: 600;
  background: var(--card); color: var(--fg); border: 1px solid var(--card-border);
}

.process-list { list-style: none; }
.process-list li { display: flex; gap: 0.7rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.check {
  width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--accent);
  background: transparent; display: grid; place-items: center; flex-shrink: 0; margin-top: 3px;
  font-size: 0.65rem; color: var(--accent);
}
.orbit { position: relative; width: min(380px, 100%); aspect-ratio: 1; margin: 0 auto; }
.orbit svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 0.75rem;
  display: grid; place-items: center; color: var(--accent);
  background: var(--card); border: 1px solid var(--card-border);
}
.node { position: absolute; text-align: center; width: 6.5rem; font-size: 0.8rem; }
.node .box {
  width: 44px; height: 44px; border-radius: 10px; margin: 0 auto 0.35rem;
  display: grid; place-items: center; color: var(--fg);
  background: var(--card); border: 1px solid var(--card-border); font-size: 0.75rem;
}
.node.t { top: 4px; left: 50%; transform: translateX(-50%); }
.node.r { top: 50%; right: 4px; transform: translateY(-50%); }
.node.b { bottom: 4px; left: 50%; transform: translateX(-50%); }
.node.l { top: 50%; left: 4px; transform: translateY(-50%); }

.founder-card { border-radius: var(--radius); overflow: hidden; }
.quote { border-left: 2px solid var(--accent); padding-left: 0.85rem; font-style: italic; color: var(--muted); }

.cta-frame { position: relative; border-radius: var(--radius); padding: 0; overflow: hidden; box-shadow: none; border: 1px solid var(--card-border); }
.cta-spin { display: none; }
.cta-inner {
  position: relative; z-index: 1; border-radius: var(--radius); overflow: hidden;
  padding: 2.75rem 2rem 2.9rem; text-align: left;
  background: var(--card);
}

.page-hero { text-align: left; padding: 1.5rem 0 1.25rem; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 0.7rem 0 0.7rem; }
.page-hero p { color: var(--muted); font-size: 1.02rem; max-width: 38rem; margin: 0; }
.page-hero .container { text-align: left; }
.page-hero .hero-actions { margin-top: 1.75rem; }
.cta-inner .hero-actions { margin-top: 1.75rem; justify-content: flex-start; }
.actions-under { margin-top: 1.75rem; }
.asset-slot { min-height: 0; }

.form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; }
label { display: block; color: var(--muted); font-size: 0.82rem; margin-bottom: 0.35rem; }
input, select, textarea {
  width: 100%; padding: 0.7rem 0.8rem; border-radius: 0.5rem;
  background: var(--input-bg); border: 1px solid var(--line);
  color: var(--fg); font: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple); }
.error { color: #c24a4a; font-size: 0.78rem; margin-top: 0.25rem; display: none; }
.field.invalid .error { display: block; }
.success-box { text-align: center; padding: 2.5rem 1rem; }

.filter-row { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: flex-start; margin-bottom: 1.5rem; }
.filter-btn {
  padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.8rem;
  border: 1px solid var(--line); color: var(--muted);
}
.filter-btn.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.project-grid { display: grid; gap: 1rem; }
.project { border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.project .thumb { height: 11.5rem; position: relative; overflow: hidden; background: var(--bg-2); }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.project:hover img { transform: scale(1.03); }
.project .info { padding: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip { padding: 0.2rem 0.5rem; border-radius: 0.4rem; background: var(--bg-2); border: 1px solid var(--line); font-size: 0.72rem; color: var(--muted); }

.masonry { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; grid-auto-rows: 200px; }
.tile { position: relative; overflow: hidden; border-radius: 0.55rem; cursor: pointer; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile.wide { grid-column: span 2; }
.tile.tall { grid-row: span 2; }
.tile .cap {
  position: absolute; inset: auto 0 0 0; padding: 0.8rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
  opacity: 1; transform: none;
}

.lightbox {
  display: none; position: fixed; inset: 0; z-index: 80;
  background: rgba(10, 8, 12, 0.72);
  align-items: center; justify-content: center; padding: 1rem;
}
.lightbox.open { display: flex; }
.lb-box {
  width: min(920px, 100%); max-height: 90vh; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--card-border);
}
.lb-img { background: var(--bg-2); position: relative; min-height: 220px; }
.lb-img img { width: 100%; max-height: 50vh; object-fit: contain; margin: 0 auto; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; background: var(--card); color: var(--fg);
  border: 1px solid var(--line);
}
.lb-nav.prev { left: 0.65rem; }
.lb-nav.next { right: 0.65rem; }
.lb-body { padding: 1.1rem; overflow: auto; }
.lb-close { float: right; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); }

.product { border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product .ph { aspect-ratio: 1; cursor: zoom-in; position: relative; background: var(--bg-2); overflow: hidden; }
.product .ph img { width: 100%; height: 100%; object-fit: cover; }
.product .pd { padding: 0.9rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); }
.swatch.on { border-color: var(--fg); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--fg); }
.size { padding: 0.15rem 0.5rem; border-radius: 4px; border: 1px solid var(--line); font-size: 0.7rem; color: var(--muted); }
.size.on { border-color: var(--fg); color: var(--fg); }

.svc-cols { display: grid; gap: 1.1rem; }
.svc-cols h4 { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.svc-cols ul, .svc-cols ol { list-style: none; display: grid; gap: 0.5rem; color: var(--muted); font-size: 0.88rem; }

.legal h2 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.legal section { margin-bottom: 1.6rem; color: var(--muted); line-height: 1.7; }
.legal a { color: var(--purple); }
.legal ul { margin: 0.5rem 0 0 1.2rem; }

.modal-bg { display: none; position: fixed; inset: 0; background: rgba(10,8,12,0.55); z-index: 70; }
.modal-bg.open { display: block; }
.modal {
  display: none; position: fixed; z-index: 71; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(34rem, calc(100% - 1.5rem)); max-height: 85vh; overflow: auto; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--card-border);
}
.modal.open { display: block; }
.modal-h { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); }
.detail-row { display: flex; gap: 1rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); }

.wa-fab {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28);
}
.wa-panel {
  display: none; position: fixed; bottom: 5.4rem; right: 1rem; z-index: 60;
  width: min(320px, calc(100vw - 2rem)); border-radius: 0.85rem; overflow: hidden; box-shadow: var(--shadow);
}
.wa-panel.open { display: block; }
.wa-head { background: #075e54; padding: 0.85rem 1rem; display: flex; justify-content: space-between; align-items: center; color: #fff; }
.wa-body { background: #ece5dd; padding: 0.85rem; max-height: 300px; overflow: auto; }
.wa-msg { background: #fff; border-radius: 0.85rem 0.85rem 0.85rem 0.2rem; padding: 0.65rem 0.85rem; font-size: 0.82rem; color: #1f2937; margin-bottom: 0.65rem; }
.wa-opt {
  display: block; background: #fff; border: 1px solid #cde9d6; color: #075e54;
  border-radius: 0.6rem; padding: 0.5rem 0.8rem; font-size: 0.8rem; font-weight: 600; margin: 0.35rem 0 0.35rem 1.6rem;
}
.wa-opt:hover { background: #25d366; color: #fff; }
.wa-foot { background: #f0f0f0; padding: 0.6rem; display: flex; gap: 0.45rem; }
.wa-foot input { flex: 1; border-radius: 999px; padding: 0.45rem 0.8rem; border: 1px solid #ddd; color: #111; background: #fff; }
.wa-send { width: 34px; height: 34px; border-radius: 50%; background: #25d366; color: #fff; }
.wa-bubble {
  display: none; position: fixed; bottom: 5.4rem; right: 1.25rem; z-index: 60; max-width: 190px;
  background: #fff; color: #1f2937; padding: 0.55rem 0.85rem; border-radius: 0.8rem 0.8rem 0.15rem 0.8rem; font-size: 0.8rem;
  box-shadow: var(--shadow);
}
.wa-bubble.show { display: block; }

.cookie {
  display: none; position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%);
  z-index: 90; width: min(var(--rail), calc(100% - 1.5rem));
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 0.9rem 1rem; box-shadow: var(--shadow);
}
.cookie.show { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.cookie p { font-size: 0.78rem; color: var(--muted); }
.cookie p strong { color: var(--fg); display: block; margin-bottom: 0.15rem; }
.cookie a { color: var(--purple); }

.reveal { animation: none; opacity: 1; transform: none; }

@media (max-width: 640px) {
  .service-block { padding: 1.6rem 1.35rem 1.75rem; }
}

@media (min-width: 768px) {
  .topbar { display: block; }
  header.site { top: 1.7rem; }
  header.site.scrolled { top: 0; }
  nav.desktop { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-btn { display: none; }
  main { padding-top: 5.7rem; }
  .hero { padding: 1.75rem 0 0; }
  .section { padding: 4.25rem 0; }
  .page-hero { padding: 2rem 0 1.5rem; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .masonry { grid-template-columns: 1fr 1fr 1fr; grid-auto-rows: 240px; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .lb-box { flex-direction: row; }
  .lb-img { width: 58%; }
  .lb-img img { max-height: 88vh; }
  .svc-cols { grid-template-columns: 1fr 1fr 1fr; }
  .cta-inner { padding: 3rem 2.5rem; }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 1.25rem; min-height: 700px; align-items: stretch; }
  .hero-visual { display: block; min-height: 700px; align-self: stretch; }
  .hero .reveal { align-self: center; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .project-grid { grid-template-columns: 1fr 1fr 1fr; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.75rem; align-items: center; }
  .contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.75rem; }
}
