:root {
  color-scheme: light;
  --ink: #0a1724;
  --navy: #071421;
  --navy-2: #102338;
  --warm: #f7f1e8;
  --warm-2: #fffaf2;
  --line: rgba(10, 23, 36, 0.14);
  --line-dark: rgba(255, 250, 242, 0.16);
  --blue: #7bd7ff;
  --blue-2: #2f8fc1;
  --moss: #8fa58a;
  --terracotta: #b96d58;
  --gold: #d8bd82;
  --muted: #617081;
  --muted-dark: #b8c3ce;
  --shadow: 0 24px 70px rgba(7, 20, 33, 0.18);
  --focus: 0 0 0 3px rgba(123, 215, 255, 0.36);
  --max: 1180px;
  --nav-height: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--warm);
  line-height: 1.55;
  overflow-x: hidden;
}

body.nav-open,
body.cookie-lock {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 2000;
  transform: translateY(-150%);
  background: var(--blue);
  color: var(--navy);
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  color: var(--warm-2);
  background:
    radial-gradient(circle at 50% 56%, rgba(123, 215, 255, .12), transparent 34%),
    linear-gradient(145deg, #050e18, #071421 54%, #102338);
  opacity: 1;
  visibility: visible;
  transition: opacity .42s var(--ease), visibility .42s var(--ease);
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  display: grid;
  justify-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 4.8rem);
  line-height: 1;
}

.loader-light {
  width: min(420px, 70vw);
  height: 78px;
  overflow: visible;
}

.loader-light path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 720;
  stroke-dashoffset: 720;
  filter: drop-shadow(0 0 12px rgba(123, 215, 255, .5));
  animation: light-draw .8s var(--ease) forwards;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(7, 20, 33, 0.86);
  color: var(--warm-2);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(123, 215, 255, 0.44);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(123,215,255,.12));
  box-shadow: inset 0 0 18px rgba(123, 215, 255, 0.14);
}

.brand-mark::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  border-left-color: transparent;
  transform: rotate(-22deg);
}

.brand-word {
  letter-spacing: 0;
}

.nav-menu {
  position: fixed;
  inset: var(--nav-height) 12px auto;
  display: grid;
  gap: 4px;
  padding: 14px;
  background: rgba(7, 20, 33, 0.98);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow);
}

body.nav-open .nav-menu {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-link {
  position: relative;
  padding: 10px 12px;
  color: rgba(255, 250, 242, 0.78);
  border-radius: 6px;
  font-size: 0.94rem;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--warm-2);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 3px;
}

.language-switch a {
  min-width: 34px;
  padding: 5px 8px;
  border-radius: 999px;
  color: rgba(255, 250, 242, 0.7);
  font-size: 0.78rem;
  text-align: center;
}

.language-switch a[aria-current="true"] {
  color: var(--navy);
  background: var(--blue);
}

.nav-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  color: var(--warm-2);
  background: transparent;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(4px);
}

body.nav-open .nav-toggle span {
  transform: rotate(45deg);
}

body.nav-open .nav-toggle span::before {
  transform: translateY(0) rotate(90deg);
}

body.nav-open .nav-toggle span::after {
  opacity: 0;
}

.mobile-actions {
  display: grid;
  gap: 12px;
  padding: 8px 0 2px;
}

.mobile-actions .language-switch,
.mobile-actions .button {
  justify-self: start;
}

.button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  transition: transform .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease);
}

.button {
  padding: 12px 18px;
  color: var(--navy);
  background: var(--blue);
  box-shadow: 0 0 24px rgba(123, 215, 255, 0.22);
}

.button:hover,
.text-button:hover {
  transform: translateY(-2px);
}

.button.secondary {
  color: var(--warm-2);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-dark);
  box-shadow: none;
}

.button.danger {
  color: var(--warm-2);
  background: #7b241d;
  box-shadow: none;
}

.button.warm {
  background: var(--warm-2);
  color: var(--navy);
}

.text-button {
  padding: 10px 0;
  color: var(--blue-2);
}

.section {
  position: relative;
  padding: 72px 18px;
}

.section.dark {
  color: var(--warm-2);
  background: var(--navy);
}

.section.light {
  background: var(--warm);
}

.section.white {
  background: var(--warm-2);
}

.section.split {
  background: linear-gradient(180deg, var(--navy) 0 48%, var(--warm) 48% 100%);
}

.container {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-2);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.dark .eyebrow,
.hero .eyebrow {
  color: var(--blue);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
.hero-title {
  max-width: 860px;
  font-family: var(--serif);
  font-size: 3.15rem;
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 500;
}

h2 {
  max-width: 820px;
  font-family: var(--serif);
  font-size: 2.25rem;
  line-height: 1.05;
  font-weight: 500;
}

h3 {
  font-size: 1.22rem;
  line-height: 1.2;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.hero {
  min-height: calc(100svh - var(--nav-height));
  padding: 58px 18px 36px;
  color: var(--warm-2);
  background:
    linear-gradient(145deg, rgba(7,20,33,1) 0%, rgba(15,36,54,1) 52%, rgba(29,43,50,1) 100%);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  gap: 34px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-actions,
.cta-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 28px;
}

.hero-visual,
.visual-panel {
  position: relative;
}

.gostivo-light {
  position: absolute;
  inset: -22px -8px auto;
  height: 220px;
  pointer-events: none;
  opacity: 0.86;
  overflow: visible;
}

.gostivo-light path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 720;
  stroke-dashoffset: 720;
  filter: drop-shadow(0 0 10px rgba(123, 215, 255, .55));
  animation: light-draw 1.8s var(--ease) .35s forwards;
}

@keyframes light-draw {
  to { stroke-dashoffset: 0; }
}

.browser-frame,
.phone-frame,
.mini-interface,
.project-preview,
.lab-stage,
.form-panel,
.legal-card,
.article-card,
.service-module {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.78);
  box-shadow: var(--shadow);
}

.dark .browser-frame,
.dark .phone-frame,
.dark .mini-interface,
.dark .project-preview,
.dark .lab-stage {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.06);
}

.browser-frame {
  overflow: hidden;
}

.browser-top {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.dark .browser-top {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.08);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--terracotta);
}

.dot:nth-child(2) {
  background: var(--gold);
}

.dot:nth-child(3) {
  background: var(--moss);
}

.browser-url {
  margin-left: 8px;
  flex: 1;
  min-width: 0;
  height: 22px;
  padding: 3px 10px;
  border-radius: 999px;
  color: rgba(255,255,255,.7);
  background: rgba(7,20,33,.18);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-screen {
  position: relative;
  min-height: 320px;
  padding: 22px;
  overflow: hidden;
}

.scene {
  position: relative;
  min-height: 280px;
  display: grid;
  align-content: end;
  gap: 14px;
  padding: 24px;
  color: var(--warm-2);
  background: linear-gradient(150deg, rgba(7,20,33,.82), rgba(47,143,193,.34)), var(--scene, linear-gradient(135deg, #30566e, #bf8065));
}

.scene > *:not(.scene-image) {
  position: relative;
  z-index: 2;
}

.scene-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .74;
}

.scene.coast {
  --scene: linear-gradient(130deg, #0d3654 0%, #477c8f 48%, #f0c58c 100%);
}

.scene.pine {
  --scene: linear-gradient(130deg, #123728 0%, #597956 55%, #d8bd82 100%);
}

.scene.ember {
  --scene: linear-gradient(130deg, #321817 0%, #9b4b3b 52%, #e4b36f 100%);
}

.scene.apartment {
  --scene: linear-gradient(130deg, #223a4d 0%, #7ea9b3 50%, #e7cfaa 100%);
}

.scene.wellness {
  --scene: linear-gradient(130deg, #1b2c2d 0%, #8fa58a 55%, #f5e8d2 100%);
}

.scene.destination {
  --scene: linear-gradient(130deg, #0b2741 0%, #b96d58 48%, #d8bd82 100%);
}

.scene-title {
  max-width: 420px;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
}

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

.scene-chip {
  min-height: 58px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
}

.phone-frame {
  width: 160px;
  min-height: 306px;
  padding: 10px;
  border-radius: 24px;
  background: var(--navy);
  color: var(--warm-2);
}

.phone-screen {
  min-height: 286px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--warm);
  color: var(--ink);
}

.phone-screen .scene {
  min-height: 286px;
  padding: 16px;
}

.mockup-stack {
  position: relative;
  display: grid;
}

.mockup-stack .phone-frame {
  justify-self: end;
  margin-top: -180px;
  margin-right: 12px;
  z-index: 3;
  transform: rotate(1deg);
}

.problem-grid,
.journey-grid,
.work-grid,
.category-grid,
.services-grid,
.process-grid,
.insights-grid,
.service-list,
.project-detail-grid,
.contact-grid,
.legal-grid {
  display: grid;
  gap: 18px;
}

.problem-grid > *,
.journey-grid > *,
.work-grid > *,
.category-grid > *,
.services-grid > *,
.process-grid > *,
.insights-grid > *,
.service-list > *,
.project-detail-grid > *,
.contact-grid > *,
.legal-grid > * {
  min-width: 0;
}

.before-after {
  display: grid;
  gap: 14px;
}

.compare-panel {
  min-height: 260px;
  padding: 18px;
  display: grid;
  align-content: end;
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.compare-panel.before {
  background: repeating-linear-gradient(0deg, #d8d4ca, #d8d4ca 18px, #ebe5d8 18px, #ebe5d8 36px);
  color: var(--ink);
}

.compare-panel.after {
  background: linear-gradient(150deg, rgba(7,20,33,.75), rgba(123,215,255,.24)), linear-gradient(130deg, #123047, #f0c58c);
  color: var(--warm-2);
  box-shadow: 0 0 0 1px rgba(123,215,255,.18), var(--shadow);
}

.comparison-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: var(--ink);
  font-size: .74rem;
  font-weight: 850;
}

.after .comparison-label {
  background: rgba(123,215,255,.18);
  color: var(--warm-2);
}

.journey-tabs,
.filter-bar,
.service-tabs,
.lab-selector {
  display: flex;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.tab-button,
.filter-button,
.lab-button {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: inherit;
  background: transparent;
  font-weight: 800;
}

.dark .tab-button,
.dark .filter-button,
.dark .lab-button {
  border-color: var(--line-dark);
  color: var(--warm-2);
}

.tab-button.is-active,
.filter-button.is-active,
.lab-button.is-active {
  border-color: rgba(123, 215, 255, .72);
  background: rgba(123, 215, 255, .16);
}

.journey-panel,
.service-visual,
.lab-copy {
  min-width: 0;
  min-height: 240px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--warm-2);
}

.dark .journey-panel,
.dark .service-visual,
.dark .lab-copy {
  border-color: var(--line-dark);
  background: rgba(255,255,255,.06);
}

.journey-panel[data-changing="true"],
.service-visual[data-changing="true"],
.lab-stage[data-changing="true"] {
  animation: panel-in .28s var(--ease);
}

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

.project-card,
.article-card,
.service-module,
.category-item,
.process-step {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.84);
}

.project-card {
  overflow: hidden;
}

.dark .project-card,
.dark .article-card,
.dark .service-module,
.dark .category-item,
.dark .process-step {
  border-color: var(--line-dark);
  background: rgba(255,255,255,.06);
}

.project-preview {
  overflow: hidden;
  margin-bottom: 16px;
}

.project-card[data-filter][hidden] {
  display: none;
}

.meta-row,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}

.dark .pill {
  border-color: var(--line-dark);
  color: var(--muted-dark);
}

.mini-interface {
  min-width: 0;
  min-height: 190px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.mini-row {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 8px;
}

.mini-block,
.mini-line {
  border-radius: 6px;
  background: rgba(123, 215, 255, 0.18);
}

.mini-block {
  min-height: 72px;
}

.mini-line {
  height: 11px;
}

.mini-line.wide {
  width: 82%;
}

.mini-line.short {
  width: 46%;
  background: rgba(185, 109, 88, 0.22);
}

.service-module h3 {
  margin-bottom: 8px;
}

.service-module dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.service-module dt {
  font-weight: 850;
}

.service-module dd {
  margin: 0;
  color: var(--muted);
}

.dark .service-module dd {
  color: var(--muted-dark);
}

.process-track {
  position: relative;
}

.process-track::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--blue), rgba(123,215,255,.04));
  box-shadow: 0 0 18px rgba(123,215,255,.32);
}

.process-step {
  margin-left: 34px;
}

.process-step::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 18px rgba(123,215,255,.62);
}

.lab-stage {
  min-width: 0;
  overflow: hidden;
}

.lab-stage-inner {
  min-width: 0;
  min-height: 380px;
  display: grid;
  gap: 16px;
  padding: 20px;
}

.lab-main {
  display: grid;
  min-width: 0;
  min-height: 270px;
  align-content: end;
  gap: 12px;
  padding: 22px;
  border-radius: 8px;
  color: var(--warm-2);
  background: linear-gradient(145deg, rgba(7,20,33,.78), rgba(123,215,255,.14)), var(--lab-scene, linear-gradient(130deg, #123047, #f0c58c));
}

.lab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lab-actions span {
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,250,242,.16);
  border: 1px solid rgba(255,250,242,.22);
  font-weight: 850;
  font-size: .82rem;
}

.lab-dashboard {
  display: grid;
  min-width: 0;
  grid-template-columns: 1fr;
  gap: 10px;
}

.lab-preview-card,
.lab-phone-preview,
.lab-flow-card {
  min-width: 0;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.12);
  color: var(--warm-2);
  overflow: hidden;
}

.lab-preview-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.lab-phone-preview {
  min-height: 142px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.06)),
    var(--lab-scene, linear-gradient(130deg, #123047, #f0c58c));
}

.lab-phone-preview span {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.42);
}

.lab-phone-preview em {
  font-style: normal;
  color: rgba(255,250,242,.78);
}

.lab-flow-card {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.lab-tile {
  min-width: 0;
  min-height: 68px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.12);
  color: var(--warm-2);
}

.article-layout {
  display: grid;
  gap: 28px;
  max-width: 920px;
}

.toc {
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--warm-2);
}

.toc ol {
  margin: 0;
  padding-left: 18px;
}

.article-body {
  display: grid;
  gap: 28px;
}

.article-body h2 {
  font-family: var(--font);
  font-size: 1.55rem;
  line-height: 1.18;
  font-weight: 850;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--warm-2);
}

.form-panel {
  padding: 18px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

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

.field label {
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(10, 23, 36, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--warm-2);
}

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

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

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0;
  font-weight: 750;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--blue-2);
}

.turnstile-slot {
  min-height: 0;
  margin: 12px 0;
}

.field-error {
  min-height: 18px;
  color: #8f2f25;
  font-size: .86rem;
}

.builder-shell {
  display: grid;
  gap: 16px;
}

.builder-progress {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 5px;
}

.builder-progress span {
  height: 5px;
  border-radius: 99px;
  background: rgba(10, 23, 36, .15);
}

.builder-progress span.is-active {
  background: var(--blue-2);
}

.choice-grid {
  display: grid;
  gap: 8px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--warm-2);
}

.status-message {
  min-height: 24px;
  font-weight: 800;
  color: var(--blue-2);
}

.success-light {
  height: 4px;
  width: 0;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 22px rgba(123, 215, 255, .72);
}

.site-header [data-scroll-progress] {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
}

.success-light.is-active {
  animation: success-line .9s var(--ease) forwards;
}

@keyframes success-line {
  to { width: 100%; }
}

.legal-card {
  padding: 20px;
}

.admin-section {
  min-height: 72vh;
}

.admin-shell {
  display: grid;
  gap: 18px;
}

.admin-head,
.admin-login,
.admin-analytics,
.admin-toolbar,
.admin-list,
.admin-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--warm-2);
  box-shadow: var(--shadow);
}

.admin-head {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
}

.admin-login {
  display: grid;
  gap: 14px;
  max-width: 520px;
  padding: 18px;
}

.admin-dashboard {
  display: grid;
  gap: 16px;
}

.admin-dashboard[hidden],
.admin-login[hidden] {
  display: none;
}

.admin-analytics {
  padding: 16px;
}

.admin-metrics {
  display: grid;
  gap: 10px;
}

.admin-metric,
.admin-metric-list {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, .72);
}

.admin-metric span {
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1;
}

.admin-metric-list p {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 7px;
}

.admin-toolbar {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.admin-grid {
  display: grid;
  gap: 14px;
}

.admin-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 680px;
  overflow: auto;
  padding: 12px;
}

.admin-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  text-align: left;
  color: var(--ink);
  background: rgba(255, 255, 255, .62);
}

.admin-list-item small {
  color: var(--muted);
}

.admin-list-item.is-active,
.admin-list-item:hover {
  border-color: rgba(47, 143, 193, .45);
  background: rgba(123, 215, 255, .14);
}

.admin-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(123, 215, 255, .24);
  font-size: .76rem;
  font-weight: 850;
}

.admin-detail {
  min-width: 0;
  padding: 16px;
}

.admin-detail-grid,
.admin-actions,
.admin-edit {
  display: grid;
  gap: 10px;
}

.admin-message {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, .72);
  white-space: pre-wrap;
}

.admin-actions {
  grid-template-columns: repeat(auto-fit, minmax(132px, max-content));
  align-items: center;
  margin: 12px 0;
}

.admin-error {
  color: #8f2f25;
  font-weight: 850;
}

.admin-empty {
  color: var(--muted);
}

.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1600;
  display: none;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  color: var(--warm-2);
  background: rgba(7, 20, 33, .96);
  box-shadow: var(--shadow);
}

.cookie-banner.is-visible {
  display: block;
  animation: panel-in .25s var(--ease);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1700;
  display: none;
  align-items: end;
  justify-content: center;
  padding: 16px;
  background: rgba(7,20,33,.54);
}

.cookie-modal.is-open {
  display: flex;
}

.cookie-dialog {
  width: min(100%, 640px);
  max-height: calc(100svh - 32px);
  overflow: auto;
  padding: 20px;
  border-radius: 8px;
  background: var(--warm-2);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.preference-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.switch {
  position: relative;
  width: 50px;
  height: 30px;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(10,23,36,.2);
}

.switch span::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s var(--ease);
}

.switch input:checked + span {
  background: var(--blue-2);
}

.switch input:checked + span::after {
  transform: translateX(20px);
}

.site-footer {
  padding: 46px 18px;
  color: var(--warm-2);
  background: #050e18;
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a,
.footer-links button {
  width: fit-content;
  color: rgba(255,250,242,.78);
  background: transparent;
  border: 0;
  padding: 0;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--blue);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hide-mobile {
  display: none;
}

@media (min-width: 680px) {
  h1,
  .hero-title {
    font-size: 4.4rem;
  }

  h2 {
    font-size: 3rem;
  }

  .section {
    padding: 92px 24px;
  }

  .hero {
    padding: 72px 24px 46px;
  }

  .before-after,
  .work-grid,
  .category-grid,
  .insights-grid,
  .legal-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid,
  .service-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: .9fr 1.1fr;
  }

  .admin-toolbar {
    grid-template-columns: 1fr minmax(160px, .32fr) minmax(150px, .25fr);
    align-items: end;
  }

  .admin-detail-grid,
  .admin-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .lab-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }

  .cookie-modal {
    align-items: center;
  }

  .hide-mobile {
    display: block;
  }
}

@media (min-width: 980px) {
  .nav-toggle,
  .mobile-actions {
    display: none;
  }

  .nav-menu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .header-actions {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  }

  .problem-grid {
    grid-template-columns: .7fr 1.3fr;
    align-items: center;
  }

  .journey-grid {
    grid-template-columns: .55fr .8fr 1fr;
    align-items: start;
  }

  .journey-tabs,
  .service-tabs,
  .lab-selector {
    flex-direction: column;
    overflow: visible;
    padding-bottom: 0;
  }

  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-detail-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .admin-grid {
    grid-template-columns: minmax(280px, .42fr) minmax(0, 1fr);
    align-items: start;
  }

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

  .process-grid {
    grid-template-columns: .7fr 1.3fr;
  }

  .service-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .lab-stage-inner {
    grid-template-columns: 1.1fr .9fr;
  }

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

@media (min-width: 1180px) {
  h1,
  .hero-title {
    font-size: 5.6rem;
  }
}

@media (max-width: 420px) {
  h1,
  .hero-title {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 2rem;
  }

  .button,
  .text-button {
    width: 100%;
  }

  .hero-actions,
  .cta-actions {
    align-items: stretch;
  }

  .browser-screen {
    padding: 12px;
  }

  .scene {
    padding: 16px;
  }

  .mockup-stack .phone-frame {
    display: none;
  }
}

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

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

  .gostivo-light path {
    stroke-dashoffset: 0;
  }

  .page-loader {
    transition: none;
  }

  .loader-light path {
    stroke-dashoffset: 0;
  }
}
