/* ============================================================
   SOFTVIX SOLUTION — Design System v3
   Light warm real-estate editorial: cream/off-white grounds,
   ink text, navy headings, real-estate green accent,
   soft warm shadows, hairline borders, quiet motion.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #FBFAF7;
  --bg-2: #F3F0EA;
  --surface: #FFFFFF;
  --surface-2: #F7F4EE;
  --line: rgba(28, 25, 20, 0.10);
  --line-strong: rgba(28, 25, 20, 0.18);
  --text: #22201C;
  --text-2: #5F5B53;
  --text-3: #8A857B;
  --ink: #142033;
  --accent: #1F9D57;
  --accent-2: #17773F;
  --accent-navy: #1E3A6E;
  --accent-ink: #FFFFFF;
  --glow: rgba(31, 157, 87, 0.09);
  --shadow-1: 0 12px 30px -14px rgba(40, 34, 24, 0.20);
  --shadow-2: 0 26px 60px -28px rgba(40, 34, 24, 0.26);
  --shadow-3: 0 40px 90px -44px rgba(40, 34, 24, 0.30);
  --scrim: linear-gradient(180deg, rgba(20,16,10,0) 24%, rgba(20,16,10,0.28) 46%, rgba(18,14,9,0.72) 72%, rgba(14,11,7,0.92) 100%);

  --font-display: "Sora", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 18px;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.018em; color: var(--ink); }
p { margin: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* Fine technical grid — very subtle */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(28,25,20,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,25,20,0.028) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, black, transparent 72%);
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 72%);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
.section { position: relative; padding-block: clamp(32px, 3.4vw, 52px); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(28, 25, 20, 0.03);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  position: relative;
  top: -0.5px;
}
.eyebrow.muted { color: var(--text-3); }
.eyebrow.muted::before { background: var(--text-3); }
.display-hero { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -0.028em; font-weight: 600; }
.display-lg { font-size: clamp(26px, 3vw, 40px); }
.display-md { font-size: clamp(23px, 2.6vw, 34px); }
.lead { color: var(--text-2); font-size: clamp(16px, 1.3vw, 17.5px); line-height: 1.75; max-width: 60ch; }
.mono-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: end;
  margin-bottom: clamp(26px, 3vw, 42px);
}
.section-head > .section-head-right { justify-self: end; max-width: 44ch; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  position: relative;
  transition: border-color 350ms var(--ease), color 350ms var(--ease), background 350ms var(--ease), transform 350ms var(--ease);
  white-space: nowrap;
}
.btn .btn-arrow { display: inline-block; transition: transform 350ms var(--ease); font-size: 14px; }
.btn:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost:hover { background: rgba(28, 25, 20, 0.05); }
.btn-lg { padding: 16px 28px; font-size: 13.5px; }
.btn--sm { padding: 10px 18px; font-size: 12px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 450ms var(--ease), border-color 450ms var(--ease), backdrop-filter 450ms var(--ease);
  border-bottom: 1px solid transparent;
}
.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-inline: var(--gutter);
}
.nav.scrolled {
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: 0.02em;
}
.nav-logo .mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--accent);
  display: grid; place-items: center; color: var(--accent-ink); font-size: 14px; font-weight: 800;
  transition: transform 350ms var(--ease);
}
.nav-logo:hover .mark { transform: rotate(-8deg); }
.nav-logo em { font-style: normal; opacity: 0.55; font-weight: 500; }
.nav-logo .logo-img { display: block; height: 48px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > li { position: relative; }

/* Mega-menu */
.nav-mega {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: min(700px, 88vw);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  box-shadow: 0 44px 100px -34px rgba(40, 34, 24, 0.24);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease), visibility 300ms;
}
.nav-mega::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav-link[aria-expanded="true"] + .nav-mega,
.nav-link:hover + .nav-mega,
.nav-mega:hover,
.nav-link:focus-within + .nav-mega {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-mega-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px 26px;
  padding: 24px 26px 20px;
}
.nav-mega-col h5 {
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
  margin: 0 0 12px;
}
.nav-mega-col a {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 8px 8px; margin-inline: -8px; border-radius: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px;
  letter-spacing: -0.01em; color: var(--text);
  transition: color 200ms var(--ease), background 200ms var(--ease);
}
.nav-mega-ico {
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(31, 157, 87, 0.08);
  color: var(--accent);
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.nav-mega-ico svg { width: 16px; height: 16px; display: block; }
.nav-mega-col a .nmm-t { display: block; }
.nav-mega-col a .nmm-d {
  display: block; margin-top: 2px;
  font-family: var(--font-body); font-weight: 400; font-size: 11.5px; line-height: 1.4;
  color: var(--text-3);
  transition: color 200ms var(--ease);
}
.nav-mega-col a:hover { color: var(--accent); background: rgba(31, 157, 87, 0.06); }
.nav-mega-col a:hover .nmm-d { color: var(--text-2); }
.nav-mega-col a:hover .nav-mega-ico { background: var(--accent); color: #fff; }
.nav-mega-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 26px;
  border-top: 1px solid var(--line);
  background: rgba(28, 25, 20, 0.028);
  border-radius: 0 0 calc(var(--radius-l) - 1px) calc(var(--radius-l) - 1px);
}
.nav-mega-cta > span { font-size: 12.5px; color: var(--text-3); }
.nav-mega-cta a {
  font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.02em;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.nav-mega-cta a span { transition: transform 220ms var(--ease); }
.nav-mega-cta a:hover span { transform: translateX(3px); }

.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600;
  color: var(--text-2);
  padding: 9px 13px; border-radius: 8px;
  transition: color 280ms var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); }
.nav-link .caret { font-size: 9px; transition: transform 280ms var(--ease); }
.nav-link[aria-expanded="true"] .caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 300px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease), visibility 300ms;
  box-shadow: 0 24px 60px -24px rgba(40, 34, 24, 0.20);
}
.nav-link[aria-expanded="true"] + .nav-dropdown,
.nav-link:hover + .nav-dropdown,
.nav-dropdown:hover,
.nav-link:focus-within + .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-dropdown a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
  transition: background 220ms var(--ease), color 220ms var(--ease), padding-left 220ms var(--ease);
}
.nav-dropdown a:hover { background: var(--surface-2); color: var(--text); padding-left: 16px; }
.nav-dropdown a i { font-style: normal; font-size: 12px; opacity: 0; transition: opacity 220ms var(--ease), transform 220ms var(--ease); transform: translateX(-4px); }
.nav-dropdown a:hover i { opacity: 0.7; transform: translateX(0); }
.nav-cta { margin-left: 6px; }
.nav-burger { display: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(22px);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  opacity: 0; visibility: hidden;
  transition: opacity 400ms var(--ease), visibility 400ms;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 32px; }
.mobile-menu a.mm-link {
  font-family: var(--font-display);
  font-size: clamp(30px, 7vw, 46px);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.2;
  padding: 6px 0; color: var(--text-2);
  display: flex; align-items: center; gap: 16px;
  transition: color 280ms var(--ease), transform 280ms var(--ease);
  transform: translateY(16px); opacity: 0;
}
.mobile-menu.open a.mm-link { transform: translateY(0); opacity: 1; transition: color 280ms var(--ease), transform 500ms var(--ease), opacity 500ms var(--ease); }
.mobile-menu a.mm-link:hover { color: var(--text); }
.mobile-menu a.mm-link .idx { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); opacity: 0; width: 22px; height: 22px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.mobile-menu a.mm-link .idx svg { width: 17px; height: 17px; }
.mobile-menu.open a.mm-link .idx { opacity: 1; transition: opacity 500ms var(--ease) 0.2s; }
.mobile-menu a.mm-link[aria-current="page"] { color: var(--text); }
.mobile-menu a.mm-link[aria-current="page"] .idx { color: var(--accent); }

/* Mobile menu submenus (expandable groups) */
.mobile-menu nav { clear: both; }
.mobile-menu .mm-group { width: 100%; }
.mobile-menu .mm-toggle {
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(30px, 7vw, 46px);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.2;
  padding: 6px 0; color: var(--text-2);
  display: flex; align-items: center; gap: 16px; text-align: left;
  transition: color 280ms var(--ease), transform 280ms var(--ease);
  transform: translateY(16px); opacity: 0;
}
.mobile-menu.open .mm-toggle { transform: translateY(0); opacity: 1; transition: color 280ms var(--ease), transform 500ms var(--ease), opacity 500ms var(--ease); }
.mobile-menu .mm-toggle:hover { color: var(--text); }
.mobile-menu .mm-toggle .idx { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); opacity: 0; width: 22px; height: 22px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.mobile-menu .mm-toggle .idx svg { width: 17px; height: 17px; }
.mobile-menu.open .mm-toggle .idx { opacity: 1; transition: opacity 500ms var(--ease) 0.2s; }
.mobile-menu .mm-caret {
  margin-left: auto;
  width: 26px; height: 26px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 8px;
  font-family: var(--font-body); font-size: 18px; font-weight: 500; line-height: 1;
  color: var(--text-2); transition: transform 320ms var(--ease), color 280ms var(--ease), border-color 280ms var(--ease);
}
.mobile-menu .mm-group.open .mm-caret { transform: rotate(45deg); color: var(--accent); border-color: var(--accent); }
.mobile-menu .mm-sub {
  overflow: hidden;
  max-height: 0; opacity: 0;
  transition: max-height 420ms var(--ease), opacity 320ms var(--ease);
  padding-left: 26px;
}
.mobile-menu .mm-group.open .mm-sub { max-height: 1200px; opacity: 1; }
.mobile-menu .mm-sub a {
  display: flex; align-items: center; gap: 11px;
  font-size: 15px; font-weight: 600; color: var(--text-2);
  padding: 8px 4px; line-height: 1.5;
  border-bottom: 1px solid var(--line);
  transition: color 220ms var(--ease), padding-left 220ms var(--ease);
}
.mobile-menu .mm-sub a svg { width: 14px; height: 14px; flex: none; color: var(--text-3); transition: color 220ms var(--ease); }
.mobile-menu .mm-sub a:hover svg { color: var(--accent); }
.mobile-menu .mm-sub a:last-child { border-bottom: none; }
.mobile-menu .mm-sub a:hover { color: var(--text); padding-left: 8px; }

/* Mobile menu scroll behaviour */
body.menu-open { overflow: hidden; }
.mobile-menu { overflow-y: auto; -webkit-overflow-scrolling: touch; justify-content: flex-start; padding-top: calc(var(--header-h) + 18px); }
.mobile-menu .btn { margin-top: 6px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--header-h);
  position: relative; overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 5vw, 72px); align-items: center;
  padding-top: clamp(20px, 4vh, 44px); padding-bottom: clamp(20px, 4vh, 44px);
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 { margin: 20px 0 22px; max-width: 16ch; }
.hero h1 .h1-br { display: none; }
@media (min-width: 1081px) { .hero h1 .h1-br { display: inline; } }
.hero-sub { max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* Hero visual — auto-scrolling site preview inside a fanned deck */
.hero-visual { position: relative; z-index: 1; }
.hero-deck {
  --hf-h: clamp(300px, 44vh, 400px);
  position: relative;
  perspective: 1500px;
  perspective-origin: 52% 44%;
  transform: translateX(-11%) scale(0.9);
}

/* Fanned cards — same size as the front card, fanning to the right */
.hero-deck .hd-card {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: calc(var(--hf-h) + 2px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 36px 74px -40px rgba(40, 34, 24, 0.26);
  transform-origin: 8% 42%;
  transition: transform 820ms var(--ease), opacity 820ms var(--ease);
}
.hero-deck .hd-card {
  background: #FFFFFF;
}
.hero-deck .hd-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  filter: saturate(1) brightness(1);
}
.hero-deck .hd-card--1 { z-index: 1; opacity: 0.92; transform: translateX(10%) translateY(2.5%) rotate(2.4deg) scale(0.955); }
.hero-deck .hd-card--2 { z-index: 1; opacity: 0.7;  transform: translateX(19%) translateY(5.5%) rotate(4.6deg) scale(0.91); }
.hero-deck .hd-card--3 { z-index: 1; opacity: 0.45; transform: translateX(28%) translateY(9%)   rotate(6.6deg) scale(0.865); }
/* deck edges a notch forward while the front card swaps */
.hero-deck.is-switching .hd-card--1 { transform: translateX(5%)  translateY(1%)   rotate(1.3deg) scale(0.99);  opacity: 1; }
.hero-deck.is-switching .hd-card--2 { transform: translateX(15%) translateY(3.5%) rotate(3.4deg) scale(0.94);  opacity: 0.82; }
.hero-deck.is-switching .hd-card--3 { transform: translateX(26%) translateY(7%)   rotate(5.6deg) scale(0.895); opacity: 0.56; }

.hero-frame {
  position: relative;
  z-index: 2;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 46px 104px -44px rgba(40, 34, 24, 0.28);
  transform: rotateY(-14deg) rotateX(4deg) rotateZ(-1.2deg);
  transform-style: preserve-3d;
  animation: heroFloat 9s var(--ease-soft) infinite;
}
@keyframes heroFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}
.hero-frame .hf-view {
  position: relative;
  height: var(--hf-h);
  overflow: hidden;
  background: var(--bg-2);
}

/* Site-swap animation: incoming rises from the deck, outgoing lifts away */
.hero-frame .hf-slot {
  position: absolute; inset: 0;
  z-index: 1;
  opacity: 0;
  transform: translate3d(10%, 8%, 0) scale(0.86) rotate(1.5deg);
  transform-origin: 62% 56%;
  transition: opacity 620ms var(--ease), transform 860ms var(--ease-soft);
}
.hero-frame .hf-slot.is-active { z-index: 2; opacity: 1; transform: none; }
.hero-frame .hf-slot.is-leaving { z-index: 3; opacity: 0; transform: translateY(-4%) scale(1.06); }
.hero-frame .hf-view { background: #FFFFFF; }
.hero-frame .hf-page {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top left;
  will-change: transform;
}
.hero-frame .hf-view::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4;
  box-shadow: inset 0 -32px 42px -28px rgba(40, 34, 24, 0.14), inset 0 26px 34px -28px rgba(40, 34, 24, 0.10);
}
.hero-frame .hf-progress {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; z-index: 5;
  background: rgba(28, 25, 20, 0.05);
}
.hero-frame .hf-progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
@media (max-width: 640px) {
  .hero-deck { --hf-h: clamp(300px, 66vw, 380px); }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative; overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 14%, black 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 14%, black 86%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track > div { display: flex; align-items: center; gap: 80px; padding-right: 80px; }
.marquee img { height: 26px; width: auto; opacity: 0.45; filter: grayscale(1); transition: opacity 350ms var(--ease), filter 350ms var(--ease); }
.marquee img:hover { opacity: 1; filter: grayscale(0); }

/* ---------- Services rail (auto-looping) ---------- */
.svc-section { overflow: hidden; padding-top: clamp(20px, 2.2vw, 32px); }
.svc-head {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.svc-head .eyebrow { justify-content: center; }
.svc-head h2 { margin-top: 16px; }
.svc-head .lead { margin-top: 16px; max-width: 56ch; }
/* keep this specific heading on one line on wider screens */
.svc-head:has(> .svc-head-wide) { max-width: 940px; }
.svc-head:has(> .svc-head-wide) .lead { max-width: 74ch; }
@media (min-width: 960px) { .svc-head-wide { white-space: nowrap; } }
.svc-rail-wrap { margin-top: clamp(24px, 2.8vw, 38px); }

/* ---------- Services carousel — continuous marquee (desktop) + swipe (mobile) ---------- */
.svc-carousel {
  position: relative;
  margin-top: clamp(24px, 2.8vw, 38px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.svc-track {
  display: flex;
  gap: clamp(16px, 1.6vw, 24px);
  width: max-content;
  padding-inline: var(--gutter);
  padding-block: 8px 6px;
  animation: svcMarquee 60s linear infinite;
  will-change: transform;
}
.svc-carousel:hover .svc-track,
.svc-carousel:focus-within .svc-track { animation-play-state: paused; }
@keyframes svcMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Mobile / touch: no animation, native horizontal swipe */
.svc-carousel.is-swipe {
  -webkit-mask-image: none;
  mask-image: none;
}
.svc-carousel.is-swipe .svc-track {
  width: auto;
  animation: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.svc-carousel.is-swipe .svc-track::-webkit-scrollbar { display: none; }
.svc-carousel.is-swipe .svc-card { scroll-snap-align: center; }

@media (prefers-reduced-motion: reduce) {
  .svc-track { animation: none; }
}


.svc-card {
  position: relative;
  flex: 0 0 clamp(244px, 24vw, 300px);
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--surface);
  isolation: isolate;
  transition: border-color 400ms var(--ease), transform 450ms var(--ease), box-shadow 450ms var(--ease);
}
.svc-card:hover, .svc-card:focus-visible {
  border-color: var(--line-strong);
  transform: translateY(-6px);
  box-shadow: 0 44px 84px -48px rgba(40, 34, 24, 0.26);
}
.svc-card-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.98) brightness(0.9) contrast(1.02);
  transition: transform 900ms var(--ease), filter 500ms var(--ease);
}
.svc-card:hover .svc-card-img, .svc-card:focus-visible .svc-card-img { transform: scale(1.06); filter: saturate(1.02) brightness(0.96) contrast(1.02); }
.svc-card-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,12,16,0.30) 0%, rgba(10,12,16,0.05) 30%, rgba(10,12,16,0.55) 58%, rgba(8,10,14,0.86) 80%, rgba(6,8,11,0.96) 100%);
}
.svc-card-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px clamp(18px, 2vw, 24px) 24px;
  z-index: 2;
  transition: transform 450ms var(--ease);
}
.svc-card:hover .svc-card-body, .svc-card:focus-visible .svc-card-body { transform: translateY(-6px); }
.svc-card-num {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em;
  color: var(--accent-2);
}
.svc-card-name {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 19px); font-weight: 700;
  letter-spacing: -0.01em; line-height: 1.25;
  margin: 9px 0 7px;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.svc-card-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.72); line-height: 1.6;
}
.svc-card-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  font-family: var(--font-display); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-2);
  opacity: 0; transform: translateY(8px);
  transition: opacity 350ms var(--ease) 60ms, transform 350ms var(--ease) 60ms;
}
.svc-card-cta i { font-style: normal; transition: transform 260ms var(--ease); }
.svc-card:hover .svc-card-cta, .svc-card:focus-visible .svc-card-cta { opacity: 1; transform: none; }
.svc-card:hover .svc-card-cta i { transform: translateX(3px); }
/* button reset (cards are <button> so they can open the dialog) */
.svc-card { appearance: none; -webkit-appearance: none; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }

/* ---------- Services — detail dialog ---------- */
.svc-modal {
  width: min(880px, 92vw);
  max-height: 88vh;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
}
.svc-modal::backdrop { background: rgba(30, 26, 20, 0.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.svc-modal[open] { display: grid; grid-template-columns: 300px 1fr; align-items: stretch; }
@media (max-width: 720px) { .svc-modal[open] { grid-template-columns: 1fr; grid-template-rows: 190px 1fr; max-height: 92vh; } }
body.svc-modal-open { overflow: hidden; }

.svc-modal-x {
  position: absolute; top: 12px; right: 14px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 22px; line-height: 1; color: var(--text-2);
  background: rgba(255, 255, 255, 0.65); border: 1px solid var(--line);
  transition: color 200ms var(--ease), background 200ms var(--ease);
}
.svc-modal-x:hover { color: var(--text); background: rgba(255, 255, 255, 0.85); }

.svc-modal-media {
  position: relative;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  min-height: 220px;
  overflow: hidden;
}
@media (max-width: 720px) { .svc-modal-media { border-right: 0; border-bottom: 1px solid var(--line); } }
.svc-modal-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 34px;
  display: flex; align-items: center; gap: 6px; padding-inline: 14px;
  border-bottom: 1px solid var(--line); z-index: 2;
  background: rgba(247, 244, 238, 0.72);
}
.svc-modal-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.svc-modal-bar span:nth-child(1) { background: #FF5F57; }
.svc-modal-bar span:nth-child(2) { background: #FEBC2E; }
.svc-modal-bar span:nth-child(3) { background: #28C840; }
.svc-modal-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: left top;
}

.svc-modal-body {
  padding: clamp(26px, 3vw, 40px);
  overflow-y: auto;
}
.svc-modal-body .eyebrow { border: 0; padding: 0; background: none; }
.svc-modal-body .eyebrow::before { display: none; }
.svc-modal-body h3 { margin: 14px 0 16px; }
.svc-modal-body .lead { max-width: 52ch; }
.svc-modal-sub {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-3);
  margin: 26px 0 14px;
}
.svc-modal-list { display: flex; flex-direction: column; gap: 12px; }
.svc-modal-list li {
  position: relative; padding-left: 26px;
  font-size: 14.5px; line-height: 1.6; color: var(--text-2);
}
.svc-modal-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 12px; height: 12px; border-radius: 3px;
  background: var(--accent); opacity: 0.9;
}
.svc-modal-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 30px;
}

/* ---------- Industries — project-style cards ---------- */
.inds-grid {
  margin-top: clamp(24px, 2.8vw, 38px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 1.8vw, 22px);
}
.ind-card {
  flex: 1 1 320px;
  max-width: 400px;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--bg-2);
  transition: border-color 400ms var(--ease), transform 400ms var(--ease), box-shadow 400ms var(--ease);
}
.ind-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -46px rgba(40, 34, 24, 0.22);
}
.ind-card-bar {
  display: flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 13px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.ind-card-bar span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.ind-card-bar span:nth-child(1) { background: #FF5F57; }
.ind-card-bar span:nth-child(2) { background: #FEBC2E; }
.ind-card-bar span:nth-child(3) { background: #28C840; }
.ind-card-shot {
  position: relative;
  height: clamp(150px, 17vw, 190px);
  overflow: hidden;
  background: var(--surface);
}
.ind-card-shot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1) brightness(1);
  transition: transform 700ms var(--ease), filter 500ms var(--ease);
}
.ind-card:hover .ind-card-shot img { transform: scale(1.025); filter: saturate(1.03) brightness(1.02); }
.ind-card-body {
  flex: 1;
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px 20px 20px;
}
.ind-card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ind-card-badge {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 4px 10px;
}
.ind-card-badge i { width: 5px; height: 5px; border-radius: 50%; background: #28C840; flex: none; }
.ind-card-cat {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-3);
}
.ind-card-name {
  font-family: var(--font-display); font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 700; letter-spacing: -0.015em;
  margin-top: 4px;
}
.ind-card-lead {
  font-size: 13.5px; line-height: 1.55; color: var(--ink); font-weight: 500;
  margin-top: 2px;
}
.ind-card-desc {
  font-size: 13px; line-height: 1.6; color: var(--text-2); flex: 1;
  margin-top: 2px;
}
.ind-card-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.ind-card-pills span {
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 10px;
  transition: border-color 260ms var(--ease), color 260ms var(--ease);
}
.ind-card:hover .ind-card-pills span { border-color: var(--line-strong); color: var(--text-2); }
.ind-card-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 6px;
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-2);
  transition: color 260ms var(--ease);
}
.ind-card-link span { transition: transform 260ms var(--ease); }
.ind-card:hover .ind-card-link { color: var(--accent); }
.ind-card:hover .ind-card-link span { transform: translate(2px, -2px); }

@media (max-width: 520px) {
  .ind-card { flex-basis: 100%; max-width: 460px; }
}



/* ---------- Process — vertical alternating timeline ---------- */
.proc-line {
  position: relative;
  margin: clamp(48px, 5.5vw, 74px) auto 0;
  max-width: 940px;
  list-style: none; padding: 0;
  display: flex; flex-direction: column;
}
.proc-line::before {
  content: "";
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg,
    rgba(34, 167, 90, 0) 0%,
    rgba(28, 25, 20, 0.14) 5%,
    rgba(28, 25, 20, 0.14) 95%,
    rgba(34, 167, 90, 0) 100%);
  transform: translateX(-1px);
  border-radius: 2px;
}
.proc-step {
  position: relative;
  width: calc(50% - 50px);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--bg-2);
  padding: clamp(22px, 2.4vw, 30px);
  margin-bottom: clamp(20px, 2.8vw, 38px);
  transition: border-color 400ms var(--ease), background 400ms var(--ease), transform 400ms var(--ease);
}
.proc-step:last-child { margin-bottom: 0; }
.proc-step:nth-child(odd) { align-self: flex-start; }
.proc-step:nth-child(even) { align-self: flex-end; }
.proc-step:hover { border-color: var(--line-strong); background: var(--surface); transform: translateY(-3px); }
.proc-step::after {
  content: ""; position: absolute; top: 26px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 4px rgba(34, 167, 90, 0.22);
  z-index: 2;
}
.proc-step::before {
  content: ""; position: absolute; top: 32px; width: 46px; height: 2px;
  background: linear-gradient(90deg, var(--line-strong), rgba(34, 167, 90, 0.4));
}
.proc-step:nth-child(odd)::after { right: -57px; }
.proc-step:nth-child(odd)::before { right: -51px; }
.proc-step:nth-child(even)::after { left: -57px; }
.proc-step:nth-child(even)::before { left: -51px; transform: scaleX(-1); }
.proc-num { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; color: var(--accent); }
.proc-stat {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(34px, 3.6vw, 48px); line-height: 1;
  display: flex; align-items: baseline; gap: 2px;
  margin: 12px 0 4px;
}
.proc-stat .plus, .proc-stat .pct { color: var(--accent); font-size: 0.5em; }
.proc-title { font-family: var(--font-display); font-size: clamp(14.5px, 1.4vw, 16px); font-weight: 600; letter-spacing: 0.01em; text-transform: none; color: var(--text); margin: 8px 0 8px; }
.proc-desc { font-size: 12.5px; line-height: 1.6; color: var(--text-3); }

@media (max-width: 760px) {
  .proc-line { max-width: 100%; }
  .proc-line::before { left: 7px; transform: none; }
  .proc-step { width: 100%; align-self: stretch; padding-left: 34px; }
  .proc-step::after { left: 1px; right: auto; top: 24px; }
  .proc-step:nth-child(odd)::after, .proc-step:nth-child(even)::after { left: 1px; right: auto; }
  .proc-step::before { display: none; }
}

/* ---------- Testimonials — auto-looping wall ---------- */
.tst-rail {
  margin-top: clamp(28px, 3.2vw, 44px);
  display: flex; flex-direction: column;
  gap: clamp(14px, 1.6vw, 20px);
}
.tst-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.tst-row-track {
  display: flex; width: max-content;
  padding-block: 6px;
  animation: tstMarquee 64s linear infinite;
}
.tst-row-track[data-dir="-1"] { animation-direction: reverse; }
.tst-row:hover .tst-row-track { animation-play-state: paused; }
@keyframes tstMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tst-row-track { animation: none; } }

.tst-mini {
  flex: 0 0 clamp(300px, 30vw, 384px);
  margin-right: clamp(14px, 1.6vw, 20px);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--bg-2);
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color 350ms var(--ease), background 350ms var(--ease);
}
.tst-mini:hover { border-color: var(--line-strong); background: var(--surface); }
.tst-mini-stars { color: var(--accent); font-size: 11px; letter-spacing: 3px; }
.tst-mini blockquote {
  margin: 0;
  font-family: var(--font-display); font-size: 14px; line-height: 1.55; font-weight: 500;
  color: var(--text); letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.tst-mini figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tst-mini figcaption > img, .tst-mini-av {
  width: 40px; height: 40px; flex: none;
  border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line); background: var(--surface);
}
.tst-mini-av { display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--accent); background: var(--surface-2); }
.tst-mini figcaption b { font-family: var(--font-display); font-size: 12.5px; display: block; letter-spacing: -0.01em; }
.tst-mini figcaption > span > span { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 640px) { .tst-row-track { animation-duration: 95s; } }

/* ---------- Why / principles (reuses .ind-card) ---------- */

/* ---------- Portfolio (home) ---------- */
.work-grid {
  margin-top: clamp(28px, 3.2vw, 44px);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(16px, 1.8vw, 22px);
}
.work-item {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 400ms var(--ease), transform 400ms var(--ease), box-shadow 400ms var(--ease);
}
.work-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-5px);
  box-shadow: 0 44px 84px -50px rgba(40, 34, 24, 0.26);
}
.work-item .thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.work-item .thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  filter: saturate(1) brightness(1);
  transition: transform 900ms var(--ease), filter 500ms var(--ease);
}
.work-item:hover .thumb img { transform: scale(1.06); filter: saturate(1.03) brightness(1.02); }
.work-item .shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(18,14,9,0.78) 74%, rgba(14,11,7,0.92));
}
.work-item .meta {
  position: absolute; inset: auto 0 0 0;
  padding: 22px 22px 22px;
  transition: transform 400ms var(--ease);
}
.work-item:hover .meta { transform: translateY(-4px); }
.work-item .meta small {
  display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 7px;
}
.work-item .meta h3 { font-family: var(--font-display); font-size: clamp(17px, 1.7vw, 20px); font-weight: 600; letter-spacing: -0.015em; }
.work-item .meta h3::after {
  content: ""; display: block; height: 2px; width: 0;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 400ms var(--ease);
}
.work-item:hover .meta h3::after, .work-item:focus-visible .meta h3::after { width: 40px; }
.work-cta { margin-top: clamp(24px, 2.8vw, 36px); display: flex; justify-content: center; }

/* ---------- About (home) ---------- */
.about-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-split .stats { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.about-split .stats div { background: var(--bg-2); padding: 20px; }
.about-split .stats b { font-family: var(--font-display); font-size: 24px; color: var(--accent); }
.about-split .stats span { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-top: 5px; }
.about-visual { position: relative; }
.about-visual .a-img { border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); }
.about-visual .a-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(0.3) contrast(1.04); }
.about-visual .a-chip { position: absolute; bottom: 22px; left: -4%; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 16px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; color: var(--text-2); box-shadow: 0 16px 40px -16px rgba(40, 34, 24, 0.26); }
.about-visual .a-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: clamp(38px, 4.5vw, 58px) auto 0; }
.faq-item { position: relative; border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item::before {
  content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  transform: scaleY(0); transform-origin: top;
  transition: transform 420ms var(--ease);
}
.faq-item.open::before { transform: scaleY(1); }
.faq-q {
  width: 100%;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  padding: 24px 8px 24px 22px;
  text-align: left;
  color: var(--text-3);
  transition: background 320ms var(--ease);
}
.faq-q:hover, .faq-item.open .faq-q { background: linear-gradient(90deg, rgba(34, 167, 90, 0.045), transparent 62%); }
.faq-n {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--text-3);
  transition: color 300ms var(--ease);
}
.faq-item.open .faq-n { color: var(--accent); }
.faq-qt {
  font-family: var(--font-display); font-size: clamp(15.5px, 1.35vw, 18px);
  font-weight: 600; letter-spacing: -0.01em;
  color: var(--text-2);
  transition: color 260ms var(--ease);
}
.faq-q:hover .faq-qt, .faq-item.open .faq-qt { color: var(--text); }
.faq-ico {
  position: relative; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  transition: background 320ms var(--ease), border-color 320ms var(--ease), color 320ms var(--ease), transform 420ms var(--ease);
}
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.faq-ico::before { width: 11px; height: 1.5px; }
.faq-ico::after { width: 1.5px; height: 11px; transition: transform 420ms var(--ease); }
.faq-item.open .faq-ico { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(180deg); }
.faq-item.open .faq-ico::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 520ms var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p {
  color: var(--text-2); font-size: 14px; line-height: 1.75; max-width: 64ch;
  padding: 0 40px 26px 62px;
}
.faq-more { text-align: center; margin-top: clamp(28px, 3.5vw, 42px); font-size: 14px; color: var(--text-3); }
.faq-more a { color: var(--accent); font-weight: 600; }
.faq-more a span { display: inline-block; transition: transform 260ms var(--ease); }
.faq-more a:hover span { transform: translateX(3px); }
@media (max-width: 560px) {
  .faq-q { padding-left: 18px; grid-template-columns: 1fr auto; }
  .faq-n { display: none; }
  .faq-a p { padding: 0 12px 24px 18px; }
}

/* ============================================================
   Pricing — premium B2B SaaS
   ============================================================ */
.pricing-section { padding-bottom: clamp(44px, 5vw, 72px); }
.pricing-section .svc-head { max-width: 760px; }

/* billing legend */
.pricing-legend {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 10px 18px;
  margin: clamp(28px, 3.6vw, 44px) auto 0;
}
.pl-key {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(31, 157, 87, 0.06);
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-2);
}
.pl-key i {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--accent);
}

/* grid — Marketplace slightly larger / emphasized */
.pricing-grid {
  margin-top: clamp(28px, 3.5vw, 44px);
  padding-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: clamp(16px, 1.8vw, 24px);
  align-items: center;
}

.price-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(24px, 2.6vw, 34px);
  box-shadow: var(--shadow-1);
  transition: transform 420ms var(--ease), box-shadow 420ms var(--ease), border-color 420ms var(--ease);
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-strong);
}
.price-card--featured {
  border-color: var(--accent);
  box-shadow: 0 30px 70px -34px rgba(31, 157, 87, 0.32), var(--shadow-2);
}
@media (min-width: 981px) {
  .price-card--featured {
    margin-block: -16px -8px;
    padding-block: clamp(30px, 3vw, 42px);
  }
  .price-card--featured:hover { transform: translateY(-4px); }
}
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display); font-weight: 700;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 12px 28px -12px rgba(31, 157, 87, 0.5);
}

.price-card-head { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.price-tier {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-3);
}
.price-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 2.2vw, 27px); color: var(--ink);
  margin: 8px 0 4px;
}
.price-sub { font-size: 13.5px; color: var(--text-2); }

/* price figure — one flat, fixed fee */
.price-figure {
  margin-top: 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.price-amt {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 3.4vw, 42px); color: var(--ink);
  letter-spacing: -0.03em; line-height: 1.05;
}
.price-per {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-3);
}

.price-bestfor {
  margin-top: 22px;
  font-size: 13px; line-height: 1.55; color: var(--text-2);
}
.price-bestfor span {
  display: block;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 5px;
}

.price-cta { width: 100%; justify-content: center; margin-top: 22px; }

.price-feats {
  margin-top: 26px;
  display: flex; flex-direction: column; gap: 11px;
}
.price-feats li {
  position: relative; padding-left: 26px;
  font-size: 13.5px; line-height: 1.5; color: var(--text-2);
}
.price-feats li strong { color: var(--ink); font-weight: 600; }
.price-feats li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 15px; height: 15px; border-radius: 5px;
  background: var(--glow);
  background: rgba(31, 157, 87, 0.14);
}
.price-feats li::after {
  content: ""; position: absolute; left: 4.5px; top: 8px;
  width: 6px; height: 3.5px;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg);
}
.price-feats-lead {
  padding-left: 0 !important;
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  color: var(--ink) !important;
  margin-bottom: 2px;
}
.price-feats-lead::before, .price-feats-lead::after { display: none; }

.pricing-fineprint {
  max-width: 780px; margin: clamp(24px, 3vw, 38px) auto 0;
  text-align: center;
  font-size: 13px; line-height: 1.7; color: var(--text-3);
}

/* Founding Brokerage Program */
.founding {
  margin-top: clamp(26px, 3.2vw, 42px);
  border-radius: var(--radius-l);
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(31, 157, 87, 0.28), transparent 55%),
    linear-gradient(135deg, #142033, #1b2f4f);
  box-shadow: var(--shadow-2);
}
.founding-inner {
  display: grid; grid-template-columns: 1.6fr 1fr;
  gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(30px, 4.5vw, 52px);
}
.founding-title {
  color: #fff;
  font-size: clamp(21px, 2.4vw, 30px);
  margin: 16px 0 12px;
  max-width: 22ch;
}
.founding-text { color: rgba(255, 255, 255, 0.78); font-size: 15px; line-height: 1.7; max-width: 52ch; }
.founding-text strong { color: #fff; font-weight: 700; }
.founding-action { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.founding-note {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .price-card--featured { order: -1; }
  .founding-inner { grid-template-columns: 1fr; }
  .founding-action { align-items: stretch; }
  .founding-action .btn { justify-content: center; }
}

/* ---------- Final CTA ---------- */
.cta { position: relative; overflow: hidden; padding-block: 0; }
.faq-section { padding-bottom: clamp(30px, 4vw, 48px); }
.cta-grid { position: absolute; inset: 0; background: radial-gradient(60% 90% at 50% 120%, var(--glow), transparent 60%); }
.cta-inner { position: relative; text-align: center; padding-block: clamp(44px, 6vw, 76px); }
.cta-inner .display-hero { display: block; }
.cta-inner .cta-sub { color: var(--text-2); max-width: 44ch; margin: 18px auto 0; }
.cta-inner .cta-actions { display: flex; gap: 14px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { position: relative; border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 96px) 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.9fr 1fr 1.2fr; gap: 52px; }
.footer h4 { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.08em; margin-bottom: 18px; color: var(--text); text-transform: uppercase; }
.footer .nav-logo .logo-img { height: 44px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: var(--text-3); font-size: 14px; transition: color 240ms var(--ease); display: inline-block; }
.footer-links a:hover { color: var(--accent); }
.footer .footer-links a svg { width: 15px; height: 15px; flex: none; vertical-align: -2px; margin-right: 8px; }
.footer-word { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
.footer-word .acc { color: var(--accent); }
.footer-brand p { color: var(--text-3); font-size: 14px; margin: 16px 0 24px; max-width: 32ch; }
.newsletter { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: var(--bg-2); max-width: 360px; }
.newsletter input { flex: 1; background: none; border: 0; outline: 0; padding: 14px 20px; color: var(--text); font-family: var(--font-body); font-size: 14px; min-width: 0; }
.newsletter input::placeholder { color: var(--text-3); }
.newsletter button { flex: none; background: var(--accent); color: #fff; border-radius: 999px; margin: 4px; padding: 0 20px; font-family: var(--font-display); font-weight: 600; font-size: 12.5px; letter-spacing: 0.04em; transition: background 280ms var(--ease); }
.newsletter button:hover { background: var(--accent-2); }
.footer-note { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--text-3); }
.footer-bar { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: var(--text-3); font-size: 13px; }
.footer-bar .legal { display: flex; gap: 22px; }
.footer-bar a:hover { color: var(--accent); }

/* ---------- Preloader — brand mark draw-in ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(31, 157, 87, 0.07), transparent 60%),
    radial-gradient(100% 70% at 50% 110%, rgba(30, 58, 110, 0.06), transparent 60%),
    var(--bg);
  transition: opacity 520ms var(--ease), visibility 520ms;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
body.loading { overflow: hidden; }

.preloader .pl-veil {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(28,25,20,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,25,20,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 42%, black, transparent 62%);
  mask-image: radial-gradient(circle at 50% 42%, black, transparent 62%);
}

.preloader .pl-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  gap: 20px;
  padding: 24px;
  text-align: center;
  transition: opacity 320ms var(--ease), transform 420ms var(--ease);
}
.preloader.done .pl-inner { opacity: 0; transform: translateY(-10px) scale(0.98); }

/* animated logo mark */
.preloader .pl-mark {
  width: 88px; height: 88px;
  display: grid; place-items: center;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}
.preloader .pl-mark svg { overflow: visible; }
.preloader .pl-roof, .preloader .pl-ground {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: plDraw 700ms var(--ease) 120ms forwards;
}
.preloader .pl-ground { animation-delay: 360ms; }
.preloader .pl-bar {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: bottom;
  transform: scaleY(0);
  animation: plGrow 520ms var(--ease) forwards;
}
.preloader .pl-bar-3 { fill: var(--accent-2); }
.preloader .pl-bar-1 { animation-delay: 520ms; }
.preloader .pl-bar-2 { animation-delay: 620ms; }
.preloader .pl-bar-3 { animation-delay: 720ms; }

.preloader .pl-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 20px; letter-spacing: -0.01em; color: var(--ink);
  opacity: 0;
  animation: plFade 500ms var(--ease) 640ms forwards;
}
.preloader .pl-name span { font-weight: 400; color: var(--text-3); }

.preloader .pl-track {
  position: relative;
  width: min(220px, 58vw); height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
  opacity: 0;
  animation: plFade 500ms var(--ease) 760ms forwards;
}
.preloader .pl-track i {
  position: absolute; inset: 0 auto 0 0;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 300ms var(--ease);
}
.preloader .pl-tag {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--text-3);
  opacity: 0;
  animation: plFade 520ms var(--ease) 860ms forwards;
}

@keyframes plFade { to { opacity: 1; transform: none; } }
@keyframes plDraw { to { stroke-dashoffset: 0; } }
@keyframes plGrow { to { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  .preloader .pl-roof, .preloader .pl-ground { stroke-dashoffset: 0; animation: none; }
  .preloader .pl-bar { transform: scaleY(1); animation: none; }
  .preloader .pl-name, .preloader .pl-track, .preloader .pl-tag { opacity: 1; animation: none; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 750ms var(--ease), transform 750ms var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ---------- Keyframes ---------- */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(30px, 5vh, 68px)); padding-bottom: clamp(24px, 4vw, 48px); }

/* ---------- Portfolio page ---------- */
/* ---------- Portfolio — premium browser-frame grid + pagination ---------- */
.pf-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 38px);
}
.pf-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-filter {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3);
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: color 260ms var(--ease), border-color 260ms var(--ease), background 260ms var(--ease);
}
.pf-filter:hover { color: var(--text-2); border-color: var(--line-strong); }
.pf-filter.is-active { color: #fff; background: var(--accent); border-color: var(--accent); }
.pf-count {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; color: var(--text-3); white-space: nowrap;
}

.pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: clamp(18px, 2vw, 26px);
}
.pf-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--bg-2);
  transition: border-color 340ms var(--ease), transform 340ms var(--ease), box-shadow 340ms var(--ease);
}
.pf-card:hover, .pf-card:focus-visible {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 30px 62px -46px rgba(40, 34, 24, 0.22);
}
.pf-card-frame { display: block; background: var(--surface); }
.pf-card-bar {
  display: flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 13px;
  border-bottom: 1px solid var(--line);
}
.pf-card-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex: none; }
.pf-card-bar i:nth-child(1) { background: #FF5F57; }
.pf-card-bar i:nth-child(2) { background: #FEBC2E; }
.pf-card-bar i:nth-child(3) { background: #28C840; }
.pf-card-bar em {
  margin-left: 8px;
  font-family: var(--font-mono); font-style: normal; font-size: 9.5px;
  letter-spacing: 0.03em; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pf-card-shot { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.pf-card-shot img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  filter: saturate(1) brightness(1);
  transition: transform 700ms var(--ease), filter 460ms var(--ease);
}
.pf-card:hover .pf-card-shot img, .pf-card:focus-visible .pf-card-shot img {
  transform: scale(1.03); filter: saturate(1.03) brightness(1.02);
}
.pf-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; }
.pf-card-meta { display: flex; align-items: center; gap: 10px; }
.pf-card-idx { font-family: var(--font-mono); font-size: 10px; color: var(--accent); letter-spacing: 0.1em; }
.pf-card-cat {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
}
.pf-card-name {
  font-family: var(--font-display); font-size: clamp(15.5px, 1.5vw, 18px);
  font-weight: 600; letter-spacing: -0.01em; color: var(--text);
}
.pf-card-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3);
  transition: color 260ms var(--ease);
}
.pf-card-cta i { transition: transform 260ms var(--ease); }
.pf-card:hover .pf-card-cta, .pf-card:focus-visible .pf-card-cta { color: var(--accent); }
.pf-card:hover .pf-card-cta i, .pf-card:focus-visible .pf-card-cta i { transform: translateX(3px); }

.pf-empty { text-align: center; color: var(--text-3); margin-top: 40px; }

.pf-pager {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
  margin-top: clamp(26px, 3vw, 42px);
}
.pf-pager:empty { display: none; }
.pf-page-btn {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: transparent;
  cursor: pointer;
  transition: color 240ms var(--ease), border-color 240ms var(--ease), background 240ms var(--ease);
}
.pf-page-btn:hover:not(:disabled) { color: var(--text); border-color: var(--line-strong); }
.pf-page-btn.is-active { color: #fff; background: var(--accent); border-color: var(--accent); }
.pf-page-btn:disabled { opacity: 0.35; cursor: default; }
.pf-page-gap { color: var(--text-3); padding: 0 4px; }

@media (max-width: 620px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-head { align-items: flex-start; }
}

/* ============================================================
   Contact — light, editorial
   ============================================================ */
.cx {
  position: relative; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(26px, 5vh, 56px));
  padding-bottom: clamp(40px, 6vw, 84px);
}
.cx-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(46% 42% at 84% -6%, rgba(31, 157, 87, 0.10), transparent 62%),
    radial-gradient(44% 44% at 4% 108%, rgba(30, 58, 110, 0.08), transparent 62%);
}
.cx-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(28,25,20,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,25,20,0.03) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(circle at 78% 8%, black, transparent 58%);
  mask-image: radial-gradient(circle at 78% 8%, black, transparent 58%);
}
.cx .container { position: relative; z-index: 1; }

/* banner: text + real-estate image */
.cx-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.cx-banner-media {
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  aspect-ratio: 16 / 11;
}
.cx-banner-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 860px) {
  .cx-banner { grid-template-columns: 1fr; }
  .cx-banner-media { aspect-ratio: 16 / 9; max-height: 300px; }
}

.cx-head { max-width: 640px; }
.cx-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-2);
  padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(28, 25, 20, 0.02);
}
.cx-kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.cx-title {
  margin-top: 18px;
  font-size: clamp(28px, 3.4vw, 46px); line-height: 1.08; color: var(--ink);
  letter-spacing: -0.02em;
}
.cx-title span { color: var(--accent); }
.cx-intro {
  margin-top: 18px;
  font-size: clamp(15px, 1.3vw, 16.5px); line-height: 1.7; color: var(--text-2);
  max-width: 56ch;
}

.cx-shell {
  margin-top: clamp(28px, 4vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}

/* left rail */
.cx-rail { display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 28px); }

.cx-email {
  display: flex; align-items: center; gap: 15px;
  padding: 18px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: border-color 260ms var(--ease), transform 260ms var(--ease), box-shadow 260ms var(--ease);
}
.cx-email:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.cx-email-ico {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
}
.cx-email-ico svg { width: 22px; height: 22px; }
.cx-email-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cx-email-label {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3);
}
.cx-email-val {
  font-family: var(--font-display); font-size: clamp(14px, 1.4vw, 16px); font-weight: 600;
  letter-spacing: -0.01em; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cx-email-arrow { margin-left: auto; color: var(--text-3); flex: none; transition: color 220ms var(--ease), transform 220ms var(--ease); }
.cx-email-arrow svg { width: 16px; height: 16px; display: block; }
.cx-email:hover .cx-email-arrow { color: var(--accent); transform: translate(2px, -2px); }

.cx-how {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--bg-2);
  padding: clamp(20px, 2.6vw, 28px);
}
.cx-how-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
.cx-how-list { display: flex; flex-direction: column; }
.cx-how-list li {
  display: flex; gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.cx-how-list li:first-child { border-top: 0; padding-top: 0; }
.cx-how-list li:last-child { padding-bottom: 0; }
.cx-how-n {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--accent); background: rgba(31, 157, 87, 0.1);
}
.cx-how-t { font-size: 13px; line-height: 1.6; color: var(--text-2); }
.cx-how-t b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 3px; }

.cx-badges {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.cx-badges span {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(28, 25, 20, 0.02);
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3);
}
.cx-badges span b {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: -0.01em; color: var(--accent); text-transform: none;
}

/* right form card */
.cx-form {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: var(--surface);
  padding: clamp(24px, 3vw, 40px);
  display: grid; gap: 18px;
  box-shadow: var(--shadow-2);
}
.cx-form-title {
  font-family: var(--font-display); font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 700; letter-spacing: -0.015em; color: var(--ink);
  margin-bottom: 2px;
}

@media (max-width: 900px) {
  .cx-shell { grid-template-columns: 1fr; }
  .cx-rail { order: 2; }
}
@media (max-width: 480px) {
  .cx-form { padding: 22px; }
}

.c-opt { color: var(--text-3); text-transform: none; letter-spacing: 0; font-size: 10px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.field input, .field select, .field textarea { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); color: var(--text); font-family: var(--font-body); font-size: 15px; padding: 14px 16px; outline: none; width: 100%; transition: border-color 280ms var(--ease), box-shadow 280ms var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path d="M1 1l5 5 5-5" stroke="%23F0F0F2" stroke-width="1.5" fill="none"/></svg>'); background-repeat: no-repeat; background-position: right 18px center; }
.form-note { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; color: var(--text-3); }
.form-msg { min-height: 18px; font-size: 14px; }
.form-msg.ok { color: var(--accent); }
.form-msg.err { color: #FF6B6B; }

/* ---------- About / blog / legal ---------- */
.prose { display: grid; gap: 15px; }
.prose p { color: var(--text-2); line-height: 1.8; max-width: 68ch; }
.prose h2, .prose h3, .faqly h3 { font-size: 22px; margin-top: 10px; }
.legal-ol { counter-reset: item; display: grid; gap: 30px; }
.legal-ol h2 { font-family: var(--font-display); font-size: clamp(18px, 1.8vw, 21px); font-weight: 600; display: flex; gap: 14px; align-items: baseline; }
.legal-ol h2::before { counter-increment: item; content: "0" counter(item); font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; }
.legal-ol p { color: var(--text-2); line-height: 1.8; max-width: 70ch; }

.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.stack-cell { background: var(--bg-2); padding: 24px 20px; }
.stack-cell .mono-label { display: block; margin-bottom: 8px; color: var(--accent); }
.stack-cell b { font-family: var(--font-display); font-size: 17px; font-weight: 600; }

/* ---------- About — values grid + tech marquee ---------- */
.values-grid {
  margin-top: clamp(28px, 3.2vw, 44px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.8vw, 22px);
}
.value-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--bg-2);
  position: relative; overflow: hidden;
  transition: border-color 340ms var(--ease), transform 340ms var(--ease), box-shadow 340ms var(--ease);
}
.value-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform 420ms var(--ease);
}
.value-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 30px 60px -46px rgba(40, 34, 24, 0.22); }
.value-card:hover::before { transform: scaleY(1); }
.value-n { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--accent); }
.value-card h3 { font-family: var(--font-display); font-size: clamp(19px, 2vw, 23px); font-weight: 600; letter-spacing: -0.01em; }
.value-card p { color: var(--text-2); font-size: 14.5px; line-height: 1.7; flex: 1; }
.value-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.value-tags span {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3);
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px;
}

/* Tech marquee — same visual language as the home brand marquee */
.tech-marq {
  margin-top: clamp(24px, 3vw, 40px);
  position: relative; overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.tech-marq-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.tech-marq:hover .tech-marq-track { animation-play-state: paused; }
.tech-marq-row { display: flex; align-items: center; gap: clamp(30px, 4.4vw, 68px); padding-right: clamp(30px, 4.4vw, 68px); }
.tech-chip {
  display: inline-flex; align-items: center; gap: 11px;
  white-space: nowrap;
}
.tech-chip img {
  width: 26px; height: 26px; flex: none;
  border-radius: 6px;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 340ms var(--ease), opacity 340ms var(--ease), background 340ms var(--ease), padding 340ms var(--ease);
}
.tech-chip .tc-ico {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--accent-navy);
  transition: color 300ms var(--ease), border-color 300ms var(--ease), background 300ms var(--ease), transform 300ms var(--ease);
}
.tech-chip .tc-ico svg { width: 18px; height: 18px; display: block; }
.tech-chip b {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  letter-spacing: -0.005em; color: var(--text-2);
  transition: color 300ms var(--ease);
}
.tech-chip:hover img { filter: none; opacity: 1; }
.tech-chip:hover b { color: var(--ink); }
.tech-chip:hover .tc-ico { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  .tech-marq-track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 20px; }
}

@media (max-width: 860px) {
  .values-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}

.card-g { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--bg-2); padding: clamp(26px, 3vw, 40px); position: relative; overflow: hidden; transition: border-color 350ms var(--ease), transform 350ms var(--ease); }
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card .n { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.14em; }
.card h3 { font-family: var(--font-display); font-size: 24px; margin: 14px 0 10px; }
.card p { color: var(--text-2); font-size: 14.5px; }

/* ---------- Blog — premium browser-frame cards + article ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 400px));
  justify-content: center;
  gap: clamp(18px, 2vw, 28px);
}
.blog-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--bg-2);
  transition: border-color 340ms var(--ease), transform 340ms var(--ease), box-shadow 340ms var(--ease);
}
.blog-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 30px 62px -46px rgba(40, 34, 24, 0.22); }
.blog-card-frame { display: block; background: var(--surface); }
.blog-card-bar {
  display: flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 13px;
  border-bottom: 1px solid var(--line);
}
.blog-card-bar i { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--text-3); }
.blog-card-bar i:nth-child(1) { background: #FF5F57; }
.blog-card-bar i:nth-child(2) { background: #FEBC2E; }
.blog-card-bar i:nth-child(3) { background: #28C840; }
.blog-card-bar em {
  margin-left: 8px; font-family: var(--font-mono); font-style: normal;
  font-size: 9.5px; letter-spacing: 0.03em; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.blog-card-shot { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.blog-card-shot img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1) brightness(1);
  transition: transform 700ms var(--ease), filter 460ms var(--ease);
}
.blog-card:hover .blog-card-shot img { transform: scale(1.03); filter: saturate(1.03) brightness(1.02); }
.blog-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.blog-card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.blog-card-cat {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  padding: 4px 9px; border: 1px solid var(--line-strong); border-radius: 999px;
}
.blog-card-date { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.06em; }
.blog-card .body h3 {
  font-family: var(--font-display); font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; color: var(--text);
}
.blog-card .body p { color: var(--text-2); font-size: 14px; line-height: 1.7; flex: 1; }
.blog-card .body .read-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-3);
  transition: color 260ms var(--ease);
}
.blog-card .body .read-more i { font-style: normal; transition: transform 260ms var(--ease); }
.blog-card:hover .body .read-more { color: var(--accent); }
.blog-card:hover .body .read-more i { transform: translateX(3px); }

/* Article detail — editorial layout */
.article-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  background: transparent;
}
.article-progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 90ms linear;
}
.article-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(36px, 6vh, 72px));
  padding-bottom: clamp(32px, 4.5vw, 60px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.article-hero::after {
  content: ""; position: absolute; z-index: 0;
  top: -32%; right: -12%; width: 62vw; height: 62vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, var(--glow), transparent 66%);
  pointer-events: none;
}
.article-hero .sd-hero-grid {
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(130% 96% at 86% 2%, #000 0%, transparent 66%);
  mask-image: radial-gradient(130% 96% at 86% 2%, #000 0%, transparent 66%);
}
.article-hero.container {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(30px, 4.5vw, 64px);
  align-items: center;
}
.article-hero > .sd-hero-grid {
  position: absolute; inset: 0; z-index: 0;
}
.article-hero-inner { position: relative; z-index: 1; max-width: 560px; }
.article-figure { position: relative; z-index: 1; }
.article-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
  padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
}
.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1;
  letter-spacing: -0.03em; font-weight: 600;
  margin-top: 20px;
}
.article-hero .lead { margin-top: 18px; max-width: 46ch; font-size: clamp(15px,1.35vw,16.5px); }
.article-meta {
  display: flex; align-items: center;
  gap: 10px; flex-wrap: wrap;
  margin-top: 22px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--text-3);
}
.article-meta .dot { color: var(--line-strong); }

.article-figure {
  position: relative; z-index: 1;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 46px 92px -52px rgba(40, 34, 24, 0.26);
  transform: rotate(1.2deg);
}
.article-figure-bar {
  display: flex; gap: 6px; padding: 10px 13px;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.article-figure-bar span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.article-figure-bar span:nth-child(1) { background: #FF5F57; }
.article-figure-bar span:nth-child(2) { background: #FEBC2E; }
.article-figure-bar span:nth-child(3) { background: #28C840; }
.article-figure img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: saturate(1) brightness(1); }

/* two-column: sticky TOC rail + reading column */
.article-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  max-width: 1000px; margin-inline: auto;
  align-items: start;
}
.article-toc {
  position: sticky; top: calc(var(--header-h) + 28px);
  display: flex; flex-direction: column; gap: 4px;
}
.article-toc-label {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3);
  margin-bottom: 8px;
}
.article-toc a {
  font-size: 12.5px; line-height: 1.5; color: var(--text-3);
  padding: 6px 0 6px 12px; border-left: 2px solid var(--line);
  transition: color 220ms var(--ease), border-color 220ms var(--ease);
}
.article-toc a:hover { color: var(--text-2); }
.article-toc a.is-active { color: var(--text); border-color: var(--accent); }

.article-body { max-width: 680px; }
.article-body > p:first-of-type { font-size: clamp(16px, 1.45vw, 18.5px); color: var(--text); line-height: 1.8; }
.article-body > p:first-of-type::first-letter {
  float: left; font-family: var(--font-display); font-weight: 600;
  font-size: 3.4em; line-height: 0.82; padding: 6px 12px 0 0; color: var(--accent);
}
.article-body p { color: var(--text-2); line-height: 1.85; font-size: 15.5px; margin-bottom: 6px; }
.article-body h3 {
  font-family: var(--font-display); font-size: clamp(19px, 2vw, 25px);
  font-weight: 600; letter-spacing: -0.015em; color: var(--text);
  margin-top: clamp(26px, 3vw, 40px); margin-bottom: 4px;
  scroll-margin-top: calc(var(--header-h) + 24px);
  display: flex; align-items: baseline; gap: 14px;
}
.article-body h3 .h3-n {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  letter-spacing: 0.1em; flex: none;
}
.article-body p a { color: var(--accent); }
.article-body a.btn-primary { color: #FFFFFF; }
.article-body a.btn-ghost { color: var(--text); }
.article-body .article-cta {
  margin-top: clamp(26px, 3.4vw, 40px);
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, var(--bg-2), var(--surface));
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
}
.article-body .article-cta::before {
  content: ""; position: absolute; right: -20%; top: -60%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--glow), transparent 66%);
  pointer-events: none;
}
.article-body .article-cta p {
  margin: 0 0 16px; color: var(--text); position: relative;
  font-size: clamp(15px, 1.5vw, 16.5px); font-weight: 500; line-height: 1.6;
}
.article-body .article-cta .btn { position: relative; }

.article-more { border-top: 1px solid var(--line); }
.article-more .blog-grid { max-width: 400px; margin-inline: auto; }

@media (max-width: 960px) {
  .article-hero.container { grid-template-columns: 1fr; gap: clamp(32px, 7vw, 48px); }
  .article-hero-inner { max-width: 640px; }
  .article-figure { transform: none; max-width: 560px; }
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-toc { display: none; }
  .article-body { max-width: 680px; margin-inline: auto; }
}

@media (max-width: 620px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ===================================================================
   Service detail pages (.sd-*) — Web & SEO sub-service template
   =================================================================== */
.sd-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(26px, 5vh, 60px));
  padding-bottom: clamp(34px, 5vw, 68px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.sd-hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 82% 4%, #000 0%, transparent 68%);
  mask-image: radial-gradient(120% 90% at 82% 4%, #000 0%, transparent 68%);
  opacity: 0.55;
}
.sd-hero::after {
  content: ""; position: absolute; z-index: 0;
  top: -32%; right: -12%; width: 62vw; height: 62vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, var(--glow), transparent 66%);
  pointer-events: none;
}
.sd-hero .container {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.sd-hero-inner { max-width: 560px; }
.sd-hero-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.9vw, 50px);
  line-height: 1.06; letter-spacing: -0.03em; font-weight: 600;
  margin-top: 22px;
}
.sd-hero-title .hl { color: var(--accent); }
.sd-hero-body { margin-top: 18px; max-width: 46ch; font-size: 15px; }
.sd-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.sd-hero-stats {
  display: flex; flex-wrap: wrap;
  margin-top: clamp(28px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  max-width: 480px;
}
.sd-hero-stat {
  flex: 1 1 33%;
  padding: 16px clamp(12px, 1.6vw, 20px);
  text-align: center;
}
.sd-hero-stat + .sd-hero-stat { border-left: 1px solid var(--line); }
.sd-hero-stat b {
  display: block;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(19px, 2vw, 25px); letter-spacing: -0.02em;
  white-space: nowrap;
}
.sd-hero-stat b .plus, .sd-hero-stat b .pct {
  color: var(--accent); font-size: 0.62em; margin-left: 1px;
}
.sd-hero-stat > span {
  display: block; margin-top: 7px;
  font-family: var(--font-mono); font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3);
}

/* --- floating browser-window visual --- */
.sd-hero-visual {
  position: relative;
  min-height: clamp(320px, 34vw, 440px);
  perspective: 1600px;
}
.sd-hero-visual::before {
  content: ""; position: absolute; z-index: 0;
  inset: 4% -6% -10% 4%;
  background: radial-gradient(60% 55% at 60% 45%, var(--glow), transparent 72%);
  opacity: 0; transition: opacity 700ms var(--ease);
  pointer-events: none;
}
.sd-hero-visual.in::before { opacity: 1; }
.sd-hero-visual:hover::before { opacity: 1.35; }

.sd-win {
  --tx: 0px; --ty: 0px; --rx: 0deg; --ry: 0deg;
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 48px 100px -46px rgba(40, 34, 24, 0.28);
  opacity: 0;
  transform: translateY(28px) rotate(var(--rot));
  transition: opacity 900ms var(--ease), transform 820ms var(--ease), box-shadow 520ms var(--ease), border-color 400ms var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.sd-win-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 13px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.sd-win-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.sd-win-bar i:nth-child(1) { background: #FF5F57; }
.sd-win-bar i:nth-child(2) { background: #FEBC2E; }
.sd-win-bar i:nth-child(3) { background: #28C840; }
.sd-win-bar span {
  margin-left: 9px;
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.06em; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sd-win-shot { position: relative; overflow: hidden; height: calc(100% - 39px); }
.sd-win-shot img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1) brightness(1);
  transition: transform 900ms var(--ease), filter 520ms var(--ease);
}
.sd-win-shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(76,122,255,0.10), transparent 46%);
  opacity: 0; transition: opacity 460ms var(--ease);
}
.sd-win-1 {
  --rot: -1.4deg;
  z-index: 2; top: 0; left: 0;
  width: 78%; aspect-ratio: 16 / 10;
}
.sd-win-2 {
  --rot: 1.8deg;
  z-index: 3; bottom: 0; right: 0;
  width: 63%; aspect-ratio: 16 / 11;
}
.sd-hero-visual.in .sd-win-1 { opacity: 1; transform: translateY(0) rotate(var(--rot)); }
.sd-hero-visual.in .sd-win-2 { opacity: 1; transform: translateY(0) rotate(var(--rot)); transition-delay: 130ms; }

/* group hover — subtle, professional lift */
.sd-hero-visual.in:hover .sd-win-1 {
  transform: translateY(-6px) rotate(var(--rot));
  box-shadow: 0 60px 118px -46px rgba(40, 34, 24, 0.30);
}
.sd-hero-visual.in:hover .sd-win-2 {
  transform: translateY(-6px) rotate(var(--rot));
  box-shadow: 0 66px 128px -46px rgba(40, 34, 24, 0.30);
}
.sd-hero-visual.in:hover .sd-win-shot img { transform: scale(1.03); filter: saturate(1.04) brightness(1.02); }
.sd-hero-visual.in:hover .sd-win-shot::after { opacity: 0.6; }

.sd-tag {
  position: absolute; z-index: 4;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.03em; color: var(--text-2);
  box-shadow: 0 16px 36px -18px rgba(40, 34, 24, 0.20);
  opacity: 0; transform: translateY(12px) scale(0.92);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease);
}
.sd-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--glow);
  transition: box-shadow 400ms var(--ease);
}
.sd-hero-visual.in .sd-tag { opacity: 1; transform: translateY(0) scale(1); }
.sd-tag-1 { top: 2%; left: -3%; transition-delay: 300ms; }
.sd-tag-2 { top: 46%; right: 2%; transition-delay: 420ms; }
.sd-tag-3 { bottom: 3%; left: 14%; transition-delay: 540ms; }
.sd-hero-visual.in:hover .sd-tag { color: var(--text-2); }
.sd-hero-visual.in:hover .sd-tag::before { box-shadow: 0 0 0 3px var(--glow); }

@media (prefers-reduced-motion: reduce) {
  .sd-win, .sd-tag { opacity: 1 !important; transition: none !important; }
  .sd-win-1, .sd-win-2 { transform: rotate(var(--rot)) !important; }
}
@media (hover: none) {
  .sd-hero-visual.in:hover .sd-win-1,
  .sd-hero-visual.in:hover .sd-win-2 { transform: translateY(0) rotate(var(--rot)); }
}
@media (max-width: 960px) {
  .sd-hero .container { grid-template-columns: 1fr; gap: clamp(40px, 8vw, 64px); justify-items: center; }
  .sd-hero-inner { max-width: 620px; }
  .sd-hero-visual { min-height: clamp(280px, 62vw, 400px); max-width: min(560px, 100%); margin-inline: auto; width: 100%; }
}
@media (max-width: 560px) {
  .sd-hero-actions .btn { width: 100%; justify-content: center; }
  .sd-tag-1 { left: 2%; }
  .sd-tag-3 { left: 8%; }
}

.sd-why-inner { max-width: 820px; }

/* Web/SEO "why it matters" — image left, text right (reuses .sd-why2 styles) */
.sd-why-media {
  position: relative;
  align-self: center;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 40px 84px -52px rgba(40, 34, 24, 0.26);
}
.sd-why-media .sd-why2-bar { border-bottom: 1px solid var(--line); }
.sd-why-media img {
  display: block; width: 100%; height: 300px;
  object-fit: cover;
  filter: saturate(1) brightness(1);
  transition: transform 800ms var(--ease), filter 520ms var(--ease);
}
.sd-why-media:hover img { transform: scale(1.03); filter: saturate(1.04) brightness(1.02); }
@media (max-width: 1080px) { .sd-why-media img { height: 240px; } }

/* --- Why it matters, two-column (image left / text right) --- */
.sd-why2-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(48px, 5.5vw, 80px);
  align-items: center;
}
.sd-why2-media {
  position: relative;
  align-self: center;
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 40px 84px -52px rgba(40, 34, 24, 0.26);
}
.sd-why2-bar {
  display: flex; gap: 6px;
  padding: 10px 13px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.sd-why2-bar span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.sd-why2-bar span:nth-child(1) { background: #FF5F57; }
.sd-why2-bar span:nth-child(2) { background: #FEBC2E; }
.sd-why2-bar span:nth-child(3) { background: #28C840; }
.sd-why2-media img {
  display: block;
  width: 100%; height: 260px;
  object-fit: cover;
  filter: saturate(1) brightness(1);
  transition: transform 800ms var(--ease), filter 520ms var(--ease);
}
.sd-why2-media:hover img { transform: scale(1.03); filter: saturate(1.04) brightness(1.02); }
.sd-why2-body { max-width: 56ch; }
@media (max-width: 1080px) { .sd-why2-media img { height: 220px; } }
@media (max-width: 900px) {
  .sd-why2-grid { grid-template-columns: 1fr; gap: clamp(26px, 6vw, 38px); justify-items: center; }
  .sd-why2-media,
  .sd-why-media { max-width: min(480px, 100%); margin-inline: auto; width: 100%; }
  .sd-why2-body { max-width: 100%; text-align: left; }
}

/* ===== Web / SEO detail-page body — premium ===== */
.sd-why, .sd-why2, .sd-scope, .sd-proc, .sd-stats, .sd-deliv-sec, .sd-faq { position: relative; }
.sd-scope, .sd-stats, .sd-faq { overflow: hidden; }
.sd-scope::before, .sd-stats::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(90% 70% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(90% 70% at 50% 0%, #000, transparent 75%);
  opacity: 0.4; pointer-events: none;
}
.sd-scope .container, .sd-stats .container { position: relative; z-index: 1; }

/* ---- Scope cards ---- */
.sd-scope-grid {
  margin-top: clamp(28px, 3.2vw, 44px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 1.6vw, 20px);
}
.sd-scope-card {
  position: relative;
  display: flex; flex-direction: column;
  flex: 1 1 320px;
  max-width: 384px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color 380ms var(--ease), transform 380ms var(--ease), box-shadow 380ms var(--ease);
}
.sd-scope-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 30px 62px -50px rgba(40, 34, 24, 0.20);
}
.sd-scope-shot { position: relative; background: var(--surface); }
.sd-scope-bar {
  display: flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 12px;
  border-bottom: 1px solid var(--line);
}
.sd-scope-bar span { width: 5.5px; height: 5.5px; border-radius: 50%; background: var(--text-3); }
.sd-scope-bar span:nth-child(1) { background: #FF5F57; }
.sd-scope-bar span:nth-child(2) { background: #FEBC2E; }
.sd-scope-bar span:nth-child(3) { background: #28C840; }
.sd-scope-shot img {
  display: block; width: 100%; height: 132px; object-fit: cover;
  filter: saturate(0.9) brightness(0.84);
  transition: transform 700ms var(--ease), filter 460ms var(--ease);
}
.sd-scope-card:hover .sd-scope-shot img { transform: scale(1.03); filter: saturate(1) brightness(0.94); }
.sd-scope-body {
  padding: 20px clamp(20px, 2.2vw, 24px) 22px;
  display: flex; flex-direction: column;
}
.sd-scope-n {
  display: inline-flex; align-items: center; justify-content: center;
  align-self: flex-start;
  min-width: 28px; height: 24px; padding: 0 7px;
  border: 1px solid var(--line-strong); border-radius: 6px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.1em; color: var(--accent);
}
.sd-scope-card h3 {
  font-family: var(--font-display);
  font-size: clamp(15.5px, 1.5vw, 18px); font-weight: 600;
  letter-spacing: -0.01em; margin: 12px 0 8px;
}
.sd-scope-card p { color: var(--text-2); font-size: 13px; line-height: 1.65; }

/* ---- Process — connected timeline ---- */
.sd-steps {
  position: relative;
  margin-top: clamp(42px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 1.8vw, 22px);
}
.sd-steps::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 22px;
  height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent);
  z-index: 0;
}
.sd-step {
  position: relative; z-index: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--bg-2);
  padding: clamp(26px, 2.8vw, 34px) clamp(20px, 2vw, 26px) clamp(26px, 2.8vw, 32px);
  transition: border-color 380ms var(--ease), transform 380ms var(--ease), box-shadow 380ms var(--ease);
}
.sd-step:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: 0 30px 62px -48px rgba(40, 34, 24, 0.20);
}
.sd-step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; color: var(--accent);
  transition: background 380ms var(--ease), border-color 380ms var(--ease), color 380ms var(--ease);
}
.sd-step:hover .sd-step-n { background: var(--accent); border-color: var(--accent); color: #fff; }
.sd-step-t {
  font-family: var(--font-display);
  font-size: clamp(15.5px, 1.5vw, 18px); font-weight: 600;
  letter-spacing: -0.01em; margin: 16px 0 10px;
}
.sd-step-d { color: var(--text-3); font-size: 13px; line-height: 1.68; }

@media (max-width: 960px) {
  .sd-steps { grid-template-columns: repeat(2, 1fr); }
  .sd-steps::before { display: none; }
}
@media (max-width: 520px) {
  .sd-steps { grid-template-columns: 1fr; }
}

/* ============================================================
   Services page (real-estate-software) — scoped refinements
   ============================================================ */
/* section 2 emphasis line */
.sd-why-emphasis {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--accent);
}
/* section 3 — 6 service cards as a real 3-col grid (2 tablet, 1 mobile) */
.inds-section .inds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}
.inds-section .ind-card { max-width: none; }
/* show the full UI mockup, not a cropped slice */
.inds-section .ind-card-shot { height: clamp(168px, 20vw, 210px); background: #F7F5F0; }
.inds-section .ind-card-shot img { object-fit: cover; object-position: top center; }
@media (max-width: 1080px) {
  .inds-section .inds-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .inds-section .inds-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}
/* section 5 — Why Softvix, soft green-tint band, 4 value cards */
.sd-whysoftfix { background: rgba(31, 157, 87, 0.045); }
.sd-whysoftfix .values-grid { grid-template-columns: repeat(4, 1fr); }
.sd-whysoftfix .value-card { background: var(--surface); }
@media (max-width: 1000px) {
  .sd-whysoftfix .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .sd-whysoftfix .values-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}
/* section 6 — CTA supporting line */
.cta-fineprint {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

/* ---- Stats ---- */
.sd-stats-grid {
  margin-top: clamp(40px, 4.5vw, 58px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--bg-2);
}
.sd-stat {
  padding: clamp(28px, 3.4vw, 44px) clamp(18px, 2vw, 28px);
  text-align: center;
  position: relative;
  transition: background 360ms var(--ease);
}
.sd-stat + .sd-stat { border-left: 1px solid var(--line); }
.sd-stat:hover { background: var(--surface); }
.sd-stat-n {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 50px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1;
  background: linear-gradient(180deg, var(--text), var(--text-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sd-stat-n .plus, .sd-stat-n .pct {
  -webkit-text-fill-color: var(--accent); color: var(--accent);
  font-size: 0.5em; margin-left: 1px;
}
.sd-stat-l {
  margin-top: 14px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3);
}

/* ---- Deliverables ---- */
.sd-deliv-grid {
  margin-top: clamp(40px, 4.5vw, 58px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 1.8vw, 22px);
}
.sd-deliv {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--bg-2);
  padding: clamp(28px, 3vw, 38px) clamp(26px, 3vw, 36px) clamp(26px, 3vw, 34px) clamp(30px, 3.4vw, 40px);
  overflow: hidden;
  transition: border-color 380ms var(--ease), transform 380ms var(--ease), box-shadow 380ms var(--ease);
}
.sd-deliv::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform 460ms var(--ease);
}
.sd-deliv:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: 0 32px 66px -50px rgba(40, 34, 24, 0.20);
}
.sd-deliv:hover::before { transform: scaleY(1); }
.sd-deliv-n {
  font-family: var(--font-mono); font-size: 34px; font-weight: 500;
  letter-spacing: -0.02em; color: var(--line-strong);
  line-height: 1;
  transition: color 380ms var(--ease);
}
.sd-deliv:hover .sd-deliv-n { color: var(--accent); }
.sd-deliv h3 {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 19px); font-weight: 600;
  letter-spacing: -0.01em; margin: 14px 0 9px;
}
.sd-deliv p { color: var(--text-2); font-size: 14px; line-height: 1.72; }

/* ---- FAQ ---- */
.sd-faq .faq-list { max-width: 820px; margin-inline: auto; }
.sd-faq .faq-more { text-align: center; margin-top: clamp(24px, 2.8vw, 36px); }
.sd-faq .faq-more a {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.sd-faq .faq-more a span { transition: transform 240ms var(--ease); }
.sd-faq .faq-more a:hover span { transform: translateX(3px); }

@media (max-width: 860px) {
  .sd-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .sd-stat:nth-child(3) { border-left: none; }
  .sd-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .sd-stats-grid { grid-template-columns: 1fr; }
  .sd-stat + .sd-stat { border-left: none; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .sd-hero-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .svc-card { flex-basis: clamp(230px, 42vw, 280px); }
  .svc-track { animation-duration: 70s; }
  .about-split { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  /* keep the fanned 3D deck + cycling frame (same as desktop), just centered under the copy */
  .hero-deck { margin-inline: auto; max-width: 620px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .section-head > .section-head-right { justify-self: start; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); }
  .nav-burger span { position: relative; width: 16px; height: 2px; background: var(--text); transition: all 300ms var(--ease); }
  .nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: var(--text); transition: all 300ms var(--ease); transform-origin: center; }
  .nav-burger span::before { top: -5px; }
  .nav-burger span::after { top: 5px; }
  body.menu-open .nav-burger span { background: transparent; }
  body.menu-open .nav-burger span::before { top: 0; transform: rotate(45deg); }
  body.menu-open .nav-burger span::after { top: 0; transform: rotate(-45deg); }
  .display-hero { font-size: clamp(30px, 8.5vw, 44px); }
  .tst-card { grid-template-columns: 1fr; padding: 28px 22px; min-height: 0; }
  .tst-mark { display: none; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .card-g { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .svc-card { flex-basis: 68vw; }
  .svc-track { animation-duration: 45s; }
  .tech-marq-track { animation-duration: 46s; }
  .marquee-track { animation-duration: 46s; }
}
@media (max-width: 560px) {
  .svc-track { animation-duration: 45s; }
  .tech-marq-track { animation-duration: 46s; }
  .mobile-menu a.mm-link, .mobile-menu .mm-toggle { font-size: clamp(26px, 8.5vw, 34px); }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .work-grid { grid-template-columns: 1fr; }
  .field.grid-2 { grid-template-columns: 1fr; }
  .cta-inner .cta-actions .btn { width: 100%; justify-content: center; }
}
/* ============================================================
   Mobile app-style UI — bottom tab bar + compact app look
   ============================================================ */

/* Bottom app tab bar — the signature "app" element */
.app-tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  display: none;
  height: calc(62px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 34px -22px rgba(40, 34, 24, 0.22);
}
.app-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-3);
  -webkit-tap-highlight-color: transparent;
  transition: color 240ms var(--ease);
}
.app-tab .app-tab-ico { display: grid; place-items: center; }
.app-tab svg { width: 22px; height: 22px; }
.app-tab.is-active { color: var(--accent); }

/* Show the app bar only on touch / small screens */
@media (max-width: 768px), (hover: none) {
  .app-tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }
  body {
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }
  /* hide the app bar while the full-screen mobile menu is open */
  body.menu-open .app-tabbar { display: none !important; }
  /* keep anchor targets clear of the fixed bar */
  :target, section[id], [id].section-anchor { scroll-margin-top: 80px; }
}

/* Compact app-like content on phones */
@media (max-width: 700px) {
  .section { padding-block: clamp(28px, 7vw, 46px); }
  .display-hero { letter-spacing: -0.02em; }
  .eyebrow { font-size: 9.5px; padding: 6px 12px; }

  /* Larger tap targets for links & buttons */
  .btn { padding-top: 13px; padding-bottom: 13px; }
  .faq-q { padding-block: 16px; }
  .footer-links a { padding: 7px 0; display: inline-block; }

  /* Rounded, tactile cards */
  .ind-card, .work-item, .pf-card, .blog-card,
  .sd-step, .sd-deliv, .value-card, .card, .tst-mini { border-radius: var(--radius-l); }

  /* Stop web-style hover lift / zoom on touch */
  .svc-card:hover, .pf-card:hover, .blog-card:hover,
  .ind-card:hover, .sd-step:hover, .work-item:hover {
    transform: none;
    box-shadow: none;
  }
  .work-item:hover .thumb img,
  .pf-card:hover .pf-card-shot img,
  .svc-card:hover .svc-card-img { transform: none; }
}

/* Hide the loading preloader on mobile → instant app open */
@media (max-width: 768px), (hover: none) {
  .preloader { display: none; }
  body.loading { overflow: auto; }
}

/* Marquees on mobile — normal, lively crawl */
@media (max-width: 700px) {
  .svc-track { animation-duration: 45s; }
  .tst-row-track { animation-duration: 50s; }
  .tech-marq-track { animation-duration: 46s; }
  .marquee-track { animation-duration: 46s; }
}

/* ============================================================
   MOBILE APP POLISH — cohesive native-app feel
   Applies on touch devices and small screens only.
   ============================================================ */

/* --- 1. Slim native top app bar ---------------------------------- */
@media (max-width: 768px), (hover: none) {
  .nav {
    height: calc(var(--header-h) - 16px);
    background: rgba(251, 250, 247, 0.85);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }
  .nav-inner { height: calc(var(--header-h) - 16px); }
  .nav-logo .logo-img { height: 50px; }
  .nav-burger {
    width: 42px; height: 42px;
    border-radius: 12px;
  }
}

/* --- 2. Native bottom tab bar ------------------------------------ */
@media (max-width: 768px), (hover: none) {
  .app-tabbar {
    height: calc(64px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);
  }
  .app-tab {
    position: relative;
    gap: 4px;
    font-size: 10.5px;
    letter-spacing: 0;
    color: var(--text-3);
  }
  .app-tab .app-tab-ico {
    position: relative;
    z-index: 1;
    width: 44px; height: 28px;
    border-radius: 16px;
    transition: background 260ms var(--ease);
  }
  .app-tab svg { width: 22px; height: 22px; }
  .app-tab.is-active { color: var(--accent-2); }
  .app-tab.is-active .app-tab-ico {
    background: rgba(34, 167, 90, 0.14);
  }
}

/* --- 4. Compact, app-dense hero ---------------------------------- */
@media (max-width: 768px) {
  .hero {
    min-height: 0;
    padding-top: calc(var(--header-h) + 10px);
    padding-bottom: 14px;
    justify-content: flex-start;
    overflow: hidden;
  }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-top: 8px;
    padding-bottom: 8px;
    max-width: 100%;
  }
  .hero-copy { min-width: 0; max-width: 100%; }
  .hero-copy > * { max-width: 100%; }
  .hero h1 {
    margin: 12px 0 14px;
    max-width: 100%;
    font-size: clamp(27px, 7.6vw, 38px);
    line-height: 1.1;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
  }
  .hero h1 .h1-br { display: none; }
  .hero-sub { max-width: 100%; font-size: 14.5px; line-height: 1.6; }
  .hero-actions { margin-top: 20px; }
  .hero-actions .btn { width: 100%; max-width: 100%; justify-content: center; }

  /* ---- Mobile hero visual: same fanned deck + cycling/float animation as desktop ---- */
  .hero-visual {
    display: block;
    margin-top: 32px;
    padding-block: 6px 12px;
    overflow: hidden;                 /* clip any fan overhang, never the viewport */
  }
  .hero-deck {
    --hf-h: clamp(224px, 60vw, 340px);
    perspective: 1200px;
    perspective-origin: 55% 44%;
    transform: none;
    margin-inline: auto;
    max-width: min(560px, 100%);
  }
  .hero-deck .hd-card { display: block; }
  /* tighten the fan so the stacked cards stay inside the frame on small screens */
  .hero-deck .hd-card--1 { transform: translateX(6%)  translateY(2%) rotate(2deg)   scale(0.955); }
  .hero-deck .hd-card--2 { transform: translateX(12%) translateY(4%) rotate(3.6deg) scale(0.915); }
  .hero-deck .hd-card--3 { transform: translateX(18%) translateY(6%) rotate(5.2deg) scale(0.875); }
  .hero-frame {
    transform: rotateY(-8deg) rotateX(3deg);
    animation: heroFloat 8s var(--ease-soft) infinite;
  }
}
@media (max-width: 380px) {
  .hero h1 { font-size: clamp(24px, 8vw, 30px); }
  .hero-deck { --hf-h: clamp(200px, 62vw, 280px); }
}

/* --- 5. App-dense typography & spacing ---------------------------- */
@media (max-width: 700px) {
  .section { padding-block: clamp(24px, 6vw, 38px); }
  .section-head { margin-bottom: 20px; }
  h2 { font-size: clamp(24px, 6.4vw, 30px); }
  .display-hero { letter-spacing: -0.02em; }
  .eyebrow { font-size: 10px; padding: 5px 11px; letter-spacing: 0.14em; }
  .btn { padding: 11px 18px; }
}

/* --- 6. Polished, tactile cards ------------------------------------- */
@media (max-width: 700px) {
  .ind-card, .work-item, .pf-card, .blog-card,
  .sd-step, .sd-deliv, .value-card, .card, .tst-mini,
  .faq-item, .tst-card, .svc-card {
    border-radius: var(--radius-l);
  }
  .tst-card { border-radius: var(--radius-l); }
}
