/* Crafts Software: premium theme layer. Loads after site.css and restyles it (midnight + gold, Bricolage Grotesque + Inter). */
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-grotesque-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --midnight: #060a14;
  --navy: #070c18;
  --navy-2: #0f1730;
  --panel: #131c36;
  --ink: #0a0f1d;
  --gold: #dcb877;
  --gold-deep: #b98f45;
  --gold-text: #7a5a1c;          /* gold as text on light surfaces (6.4:1 on white) */
  --pearl: #f4f6fa;
  --blue: #dcb877;               /* legacy "fill" colour is now gold */
  --blue-text: #7a5a1c;
  --cyan: #e9cc97;               /* legacy accent on dark is now light gold */
  --electric: #6f8dff;
  --on-dark: #eef1f8;
  --on-dark-dim: #a3b0cb;
  --line-dark: rgba(180, 196, 232, .16);
  --radius: 18px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Bricolage Grotesque", Inter, ui-sans-serif, system-ui, sans-serif;
}

body { font-family: var(--font); font-feature-settings: "cv11", "ss03"; background: #fff; }
h1, h2, h3, h4, .brand { font-family: var(--display); }
h1 { font-weight: 700; letter-spacing: -.035em; line-height: 1.02; font-size: clamp(2.3rem, 6vw, 4.8rem); }
h2 { font-weight: 650; letter-spacing: -.03em; line-height: 1.06; font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-weight: 600; letter-spacing: -.015em; }
.lead { font-size: 1.18rem; line-height: 1.65; }

/* Eyebrow: quiet sentence-case line with a gold rule */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; text-transform: none; letter-spacing: .01em; font-size: .92rem; font-weight: 600; color: var(--gold-text); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.dark .eyebrow, .on-dark .eyebrow { color: var(--gold); }

/* Buttons */
.btn { border-radius: 999px; padding: 14px 26px; font-weight: 600; letter-spacing: -.005em; }
.btn-primary { background: linear-gradient(180deg, #e8c987, #d2a95d); color: #1a1303; box-shadow: 0 10px 30px -12px rgba(220, 184, 119, .65), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-primary:hover { background: linear-gradient(180deg, #f0d49a, #dcb877); transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(220, 184, 119, .8), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-ghost { border-color: rgba(10, 15, 29, .22); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(10, 15, 29, .04); }
.on-dark .btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.on-dark .btn-ghost:hover { border-color: var(--gold); background: rgba(220, 184, 119, .08); }
:focus-visible { outline-color: var(--gold-text); }
.site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .section.dark :focus-visible, .search-overlay :focus-visible, .on-dark :focus-visible { outline-color: var(--gold); }

/* Header: floating glass bar */
.site-header { background: rgba(6, 10, 20, .93); backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid rgba(180, 196, 232, .1); }
.site-header .bar { min-height: 74px; }
.brand { font-weight: 700; font-size: 1.22rem; letter-spacing: -.03em; }
.brand-mark rect { stroke: var(--gold); }
.brand-mark path { stroke: #fff; }
.nav a { color: #b7c2dc; font-size: .93rem; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .07); }
.nav .btn { color: #1a1303; background: linear-gradient(180deg, #e8c987, #d2a95d); }
.nav .btn:hover { color: #1a1303; background: linear-gradient(180deg, #f0d49a, #dcb877); }
.menu-panel { background: rgba(13, 20, 40, .96); backdrop-filter: blur(16px); border-radius: 16px; }
.menu-panel .menu-all { color: var(--gold); }

/* Hero */
.hero { background: radial-gradient(1200px 600px at 78% -10%, rgba(111, 141, 255, .22), transparent 60%), radial-gradient(900px 500px at 8% 110%, rgba(220, 184, 119, .16), transparent 60%), var(--midnight); padding: clamp(64px, 9vw, 128px) 0 clamp(64px, 8vw, 112px); }
.hero::before { background-size: 72px 72px; opacity: .35; mask-image: radial-gradient(ellipse at 60% 30%, #000 10%, transparent 70%); }
.hero h1 { background: linear-gradient(180deg, #fff 30%, #c8d2ea); -webkit-background-clip: text; background-clip: text; color: transparent; max-width: 15ch; }
.hero .lead { max-width: 52ch; }
.hero .grid { grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); }
.hero-note { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--on-dark-dim); font-size: .92rem; }
.hero-note span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 9px; vertical-align: 2px; }

/* Console: illustrative product UI, the one memorable thing on the page */
.console-wrap { position: relative; padding: 26px 0 56px 28px; }
.console { position: relative; background: linear-gradient(160deg, rgba(23, 33, 64, .92), rgba(11, 17, 36, .96)); border: 1px solid rgba(180, 196, 232, .2); border-radius: 22px; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 -1px 0 rgba(255, 255, 255, .06) inset; overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line-dark); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.console-bar b { margin-left: 10px; font-weight: 600; font-size: .82rem; color: var(--on-dark-dim); letter-spacing: .01em; }
.console-body { padding: 22px; display: grid; gap: 18px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); border-radius: 14px; padding: 14px; }
.kpi small { display: block; color: var(--on-dark-dim); font-size: .74rem; margin-bottom: 6px; }
.kpi strong { font-family: var(--display); font-size: 1.35rem; letter-spacing: -.02em; color: #fff; }
.kpi em { display: block; font-style: normal; font-size: .72rem; color: #86e3b3; margin-top: 2px; }
.chart { background: rgba(255, 255, 255, .03); border: 1px solid var(--line-dark); border-radius: 14px; padding: 14px 14px 6px; }
.chart svg { width: 100%; height: 120px; overflow: visible; }
.chart .area { fill: url(#cArea); opacity: 0; animation: fadeIn 1s .9s forwards; }
.chart .line { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.8s .3s cubic-bezier(.4, .1, .2, 1) forwards; filter: drop-shadow(0 6px 10px rgba(220, 184, 119, .45)); }
.chart .line2 { fill: none; stroke: var(--electric); stroke-width: 1.5; stroke-dasharray: 3 5; opacity: .7; }
.chart .dot { fill: #fff; stroke: var(--gold); stroke-width: 2; opacity: 0; animation: fadeIn .4s 2s forwards; }
.rows { display: grid; gap: 8px; }
.row-i { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); font-size: .86rem; color: var(--on-dark); }
.row-i span:last-child { color: var(--on-dark-dim); font-size: .78rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; padding: 3px 10px; border-radius: 999px; background: rgba(134, 227, 179, .12); color: #86e3b3; }
.pill.warn { background: rgba(220, 184, 119, .14); color: var(--gold); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.float-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 11px 16px 11px 12px; border-radius: 14px; background: rgba(20, 29, 56, .88); backdrop-filter: blur(12px); border: 1px solid rgba(220, 184, 119, .35); color: #fff; font-size: .83rem; font-weight: 600; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .8); animation: bob 7s ease-in-out infinite; }
.float-chip svg { width: 22px; height: 22px; flex: none; }
.float-chip.a { right: 24px; top: -14px; }
.float-chip.b { right: -14px; bottom: 28px; animation-delay: -3.5s; }
.console-caption { text-align: left; margin: 14px 0 0 4px; font-size: .75rem; color: var(--on-dark-dim); opacity: .8; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Sections */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section.alt { background: var(--pearl); }
.section-head { margin-bottom: 52px; max-width: 760px; }
.section.dark { background: radial-gradient(900px 480px at 85% 0%, rgba(111, 141, 255, .16), transparent 60%), radial-gradient(700px 420px at 0% 100%, rgba(220, 184, 119, .12), transparent 60%), var(--midnight); position: relative; }

/* Cards */
.card { border-radius: var(--radius); border: 1px solid rgba(10, 15, 29, .08); padding: 30px; background: #fff; box-shadow: 0 1px 2px rgba(10, 15, 29, .04); position: relative; overflow: hidden; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(420px 200px at var(--mx, 85%) -20%, rgba(220, 184, 119, .22), transparent 65%); opacity: 0; transition: opacity var(--std); pointer-events: none; }
.card:hover { border-color: rgba(185, 143, 69, .55); transform: translateY(-5px); box-shadow: 0 30px 60px -30px rgba(10, 15, 29, .35); }
.card:hover::after { opacity: 1; }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { font-size: .98rem; line-height: 1.65; }
.card .more { color: var(--gold-text); font-weight: 650; }
.card.dark { background: linear-gradient(160deg, rgba(23, 33, 64, .8), rgba(12, 18, 38, .85)); border-color: var(--line-dark); box-shadow: none; }
.card.dark:hover { border-color: rgba(220, 184, 119, .5); }
.shot { border-radius: 12px; border-color: rgba(10, 15, 29, .08); }
.tag { background: rgba(10, 15, 29, .06); }
.tag.cat { background: rgba(185, 143, 69, .14); color: var(--gold-text); }

/* Services bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento .card { grid-column: span 2; display: flex; flex-direction: column; min-height: 230px; }
.bento .card:nth-child(1) { grid-column: span 4; background: linear-gradient(135deg, #0c1328, #1a2447 70%, #2a2a3d); color: #fff; border-color: rgba(220, 184, 119, .25); min-height: 280px; }
.bento .card:nth-child(1) h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); max-width: 18ch; }
.bento .card:nth-child(1) p { color: var(--on-dark-dim); max-width: 46ch; font-size: 1.05rem; }
.bento .card:nth-child(1) .more { color: var(--gold); }
.bento .card:nth-child(4) { grid-column: span 4; }
.bento .card:nth-child(4) { background: var(--pearl); }
.bento .card:nth-child(5), .bento .card:nth-child(6) { grid-column: span 3; }
.bento .card .more { margin-top: auto; }
.glyph { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; background: linear-gradient(135deg, rgba(220, 184, 119, .28), rgba(220, 184, 119, .08)); border: 1px solid rgba(185, 143, 69, .35); color: var(--gold-deep); }
.bento .card:nth-child(1) .glyph { background: rgba(220, 184, 119, .14); color: var(--gold); }
.glyph svg { width: 22px; height: 22px; }

/* Process: a real sequence, so numbered */
.steps { gap: 0; counter-reset: s; border-top: 1px solid rgba(10, 15, 29, .12); }
.steps li { border-top: 0; padding: 30px 26px 8px 0; position: relative; }
.steps li::before { content: counter(s); font-family: var(--display); font-size: clamp(3rem, 5vw, 4.4rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-bottom: 18px; background: linear-gradient(180deg, var(--gold-deep), rgba(185, 143, 69, .25)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps strong { font-family: var(--display); font-size: 1.3rem; letter-spacing: -.02em; }
.steps span { font-size: .98rem; line-height: 1.6; }

/* UAE strip: pills on dark */
.dark .grid-4 .card.dark { padding: 22px 24px; }
.dark .grid-4 .card.dark h3 { font-size: 1rem; font-weight: 600; }

/* Industries as pills */
.filters { gap: 10px; }
.filters a { border-radius: 999px; padding: 12px 22px; font-size: .98rem; background: #fff; border-color: rgba(10, 15, 29, .14); transition: all var(--std) var(--ease); }
.filters a:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.filters a[aria-current="true"], .chip[aria-pressed="true"], .pagination a[aria-current="page"] { background: var(--ink); border-color: var(--ink); }

/* Final CTA */
.section.dark .section-head h2 { color: #fff; }

/* Footer */
.site-footer { background: #04070f; border-top: 1px solid rgba(220, 184, 119, .2); }
.site-footer .foot-title { text-transform: none; letter-spacing: -.01em; font-family: var(--display); font-size: 1.02rem; color: #fff; }
.site-footer a:hover { color: var(--gold); }
.foot-sub-row button { background: linear-gradient(180deg, #e8c987, #d2a95d); color: #1a1303; border-radius: 999px; padding: 10px 18px; }
.foot-sub-row input { border-radius: 999px; padding: 10px 16px; }

/* Forms and misc that used blue */
.field input:focus, .field select:focus, .field textarea:focus { outline-color: var(--gold-deep); border-color: var(--gold-deep); }
.choice input:checked + span, .method input:checked + span { border-color: var(--gold-deep); background: rgba(220, 184, 119, .16); }
.list-check li::before { border-color: var(--gold-deep); }
.stepper i.on { background: var(--gold-deep); }
.metric { border-top-color: var(--gold-deep); }
.metric strong { font-family: var(--display); font-size: 2.2rem; }
.prose a, .article-body a { color: var(--gold-text); }
.toc a:hover, .toc a.on { border-left-color: var(--gold-deep); color: var(--gold-text); }
.contact-split { border-radius: 26px; }
.page-hero-glow { display: none; }
.search-results [role="option"][aria-selected="true"] a, .search-results [role="option"] a:hover { background: rgba(220, 184, 119, .16); }
.sr-title mark, .search-group, .ch-label { color: var(--gold); }

@media (max-width: 1040px) { .nav { background: #070c18; } }
@media (max-width: 920px) {
  .hero .grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: none; }
  .console-wrap { max-width: 560px; margin-inline: auto; width: 100%; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .card:nth-child(n) { grid-column: span 2; }
  .console-wrap { padding: 20px 0 32px 0; }
  .float-chip.a { right: 24px; top: -14px; }
  .float-chip.b { right: 8px; }
  .steps { border-top: 0; }
  .steps li { border-top: 1px solid rgba(10, 15, 29, .12); }
}
@media (max-width: 560px) {
  .bento .card:nth-child(n) { grid-column: span 2; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis .kpi:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .chart .line { stroke-dashoffset: 0; animation: none; }
  .chart .area, .chart .dot { opacity: 1; animation: none; }
  .float-chip { animation: none; }
}

/* ---------- Motion: staggered reveal, hero entrance, slow background drift ---------- */
.reveal-hide { transform: translateY(26px) scale(.985); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal-hide.in { transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero .wrap.grid > div:first-child > * { animation: rise .8s var(--ease) both; }
.hero .wrap.grid > div:first-child > :nth-child(1) { animation-delay: .05s; }
.hero .wrap.grid > div:first-child > :nth-child(2) { animation-delay: .15s; }
.hero .wrap.grid > div:first-child > :nth-child(3) { animation-delay: .28s; }
.hero .wrap.grid > div:first-child > :nth-child(4) { animation-delay: .4s; }
.hero .wrap.grid > div:first-child > :nth-child(5) { animation-delay: .52s; }
.console-wrap { animation: rise 1s .25s var(--ease) both; }
.hero::after { content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(220, 184, 119, .16), transparent 65%); animation: drift 18s ease-in-out infinite alternate; pointer-events: none; will-change: transform; }
@keyframes drift { to { transform: translate3d(-140px, 120px, 0) scale(1.15); } }
.hero > .wrap { position: relative; z-index: 1; }

/* ---------- Cards for solutions and projects ---------- */
.shot { position: relative; margin: -10px -10px 20px; border-radius: 14px; background: linear-gradient(135deg, #0c1328, #1d2a52 60%, #3a3326); border: 0; }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6, 10, 20, .28)); pointer-events: none; }
.shot img { transition: transform .8s var(--ease); }
.card:hover .shot img { transform: scale(1.06); }
.card h3 { transition: color var(--std); }
.card:hover h3 { color: var(--gold-text); }
.card.dark:hover h3 { color: var(--gold); }

/* ---------- Forms ---------- */
.field input, .field select, .field textarea { border-radius: 14px; border: 1px solid rgba(10, 15, 29, .16); background: #fff; padding: 14px 16px; transition: border-color var(--fast), box-shadow var(--fast); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--gold-deep); box-shadow: 0 0 0 4px rgba(220, 184, 119, .28); }
.field label { font-weight: 600; font-size: .88rem; color: var(--ink); }
.contact-form-card .btn-primary, .form .btn-primary { width: 100%; justify-content: center; padding: 16px; font-size: 1rem; }
@media (min-width: 640px) { .contact-form-card .btn-primary, .form .btn-primary { width: auto; } }

/* ---------- Mobile: app-like ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .site-header .bar { min-height: 60px; }
  .nav { top: 60px; padding: 12px 16px 24px; max-height: calc(100dvh - 60px); animation: sheet .28s var(--ease); }
  .nav a { padding: 16px 14px; font-size: 1.08rem; border-radius: 14px; font-family: var(--display); font-weight: 600; color: #fff; }
  .menu-panel a { font-family: var(--font); font-weight: 450; font-size: .98rem; color: #b7c2dc; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  h2 { font-size: 1.85rem; }
  .lead { font-size: 1.04rem; }
  .btn { padding: 15px 24px; }
  .hero { padding: 44px 0 36px; }
  .hero .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .hero-note { margin-top: 24px; font-size: .86rem; }
  .sticky-cta { display: none !important; }
  body.has-sticky { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }

  /* Swipeable rails (home page sections opt in with .swipe) */
  .swipe { display: flex !important; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 4px 16px 18px; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { flex: 0 0 82%; scroll-snap-align: center; min-width: 0; }
  .swipe.chips > * { flex-basis: 70%; }

  /* Bottom tab bar */
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 45; background: rgba(8, 13, 28, .92); backdrop-filter: blur(18px) saturate(1.4); border: 1px solid rgba(180, 196, 232, .18); border-radius: 22px; padding: 6px; box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .65); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border-radius: 16px; text-decoration: none; color: #9fb0cc; font-size: .68rem; font-weight: 600; transition: background var(--fast), color var(--fast); }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--gold); background: rgba(220, 184, 119, .12); }
  .tabbar a.go { color: #1a1303; background: linear-gradient(180deg, #e8c987, #d2a95d); box-shadow: 0 8px 22px -8px rgba(220, 184, 119, .8); }
  .foot-grid { gap: 28px 18px; }
  .site-footer { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .wrap.grid > div:first-child > *, .console-wrap, .hero::after, .nav { animation: none !important; }
  .reveal-hide { transform: none; }
}
@keyframes sheet { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (max-width: 1040px) {
  .nav { background: #070c18; }
  .menu-panel { display: none !important; }   /* the parent link opens the full section page; keeps the sheet short */
  .has-menu > a { display: flex; }
}

/* ================= Polish pass ================= */
::selection { background: rgba(220, 184, 119, .45); color: #0a0f1d; }
html { scrollbar-color: #b98f45 #0a0f1d; scrollbar-width: thin; }

/* Smooth page-to-page fade (browsers that support cross-document view transitions) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Reading progress line under the header (scroll-driven; ignored where unsupported) */
@supports (animation-timeline: scroll()) {
  .site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--gold-deep), #f3dcaa); transform-origin: 0 50%; transform: scaleX(0); animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* Primary button: light sweep on hover */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); z-index: -1; }
.btn-primary:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }

/* Inner-page hero */
.hero .breadcrumb { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark); font-size: .8rem; margin-bottom: 22px; }
.hero .breadcrumb a:hover { color: var(--gold); }
.hero h1[style] { max-width: 22ch !important; }
.hero + .section, .hero + section { position: relative; }
.hero + .section::before, .hero + section::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(220, 184, 119, .6), transparent); }

/* Listing controls: filters become a swipeable row on phones */
.filters a { font-weight: 500; }
.filters a[aria-current="true"] { box-shadow: 0 8px 20px -10px rgba(10, 15, 29, .6); }
@media (max-width: 760px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .filters::-webkit-scrollbar { display: none; }
  .filters a, .filters .chip { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }
  .filters.cloud { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding: 0; }  /* home industries stay a wrapped cloud */
}

/* Product-style frames and device mockups */
.frame { border-radius: 18px; border: 1px solid rgba(10, 15, 29, .1); box-shadow: 0 50px 90px -40px rgba(10, 15, 29, .55), 0 0 0 6px rgba(220, 184, 119, .08); }
.frame-bar { background: #eef1f7; }
.frame-bar i:nth-child(1) { background: #f2a6a0; } .frame-bar i:nth-child(2) { background: #f0d28a; } .frame-bar i:nth-child(3) { background: #9ad8b2; }
.device { border-color: #0a0f1d; box-shadow: 0 40px 70px -30px rgba(10, 15, 29, .7); }

/* Metrics, FAQ, prose */
.metric { border-top: 0; padding: 18px 20px; border-radius: 16px; background: linear-gradient(160deg, #fff, var(--pearl)); border: 1px solid rgba(10, 15, 29, .08); }
.metric strong { background: linear-gradient(180deg, var(--gold-deep), #8a6a2b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.faq details { border: 1px solid rgba(10, 15, 29, .1); border-radius: 16px; padding: 18px 22px; margin-bottom: 12px; background: #fff; transition: box-shadow var(--std), border-color var(--std); }
.faq details[open] { border-color: rgba(185, 143, 69, .6); box-shadow: 0 20px 40px -28px rgba(10, 15, 29, .4); }
.faq summary { font-family: var(--display); font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--gold-deep); transition: transform var(--std); }
.faq details[open] summary::after { transform: rotate(45deg); }
.prose blockquote, .article-body blockquote { border-left-color: var(--gold-deep); background: var(--pearl); padding: 14px 18px; border-radius: 0 12px 12px 0; }
.toc, .side-related { border-radius: 16px; }
.side-cta { background: linear-gradient(160deg, #0c1328, #1a2447); border: 1px solid rgba(220, 184, 119, .3); border-radius: 18px; }
.post-figure img, .article-body img { border-radius: 16px; }

/* Lists with ticks */
.list-check li::before { width: 14px; height: 8px; }

/* Footer */
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .7; }
.site-footer .brand { font-size: 1.4rem; }
.foot-bottom { font-size: .84rem; }
.search-btn, .menu-btn { border-radius: 12px; }
.search-box { border-radius: 20px; }

/* Larger screens: more air */
@media (min-width: 1280px) {
  :root { --max: 1240px; }
  .section { padding: 136px 0; }
}
/* Tablet */
@media (min-width: 761px) and (max-width: 1040px) {
  .hero .grid { gap: 40px; }
  .console-wrap { max-width: 620px; margin-inline: auto; }
  .bento { gap: 14px; }
}
/* Small phones */
@media (max-width: 380px) {
  .wrap { width: min(100% - 24px, var(--max)); }
  .swipe { margin-inline: -12px; padding-inline: 12px; }
  .tabbar a { font-size: .62rem; }
  .btn { padding-inline: 18px; }
}
/* Print: plain */
@media print { .site-header, .tabbar, .site-footer, .search-overlay { display: none !important; } }

/* ================= Motion pass 2 (all CSS-driven, transform/opacity only) ================= */
.marquee { overflow: hidden; background: #04070f; border-block: 1px solid rgba(220, 184, 119, .18); padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 14px; animation: scrollx 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { flex: none; padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .04); color: #c9d3ea; font-family: var(--display); font-size: .98rem; letter-spacing: -.01em; white-space: nowrap; }
.marquee span:nth-child(3n) { border-color: rgba(220, 184, 119, .4); color: var(--gold); }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* Final call-to-action band: rotating gold edge + soft orbs */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.section.dark:last-of-type .wrap { position: relative; padding: clamp(32px, 5vw, 64px); border-radius: 28px; background: linear-gradient(160deg, rgba(20, 29, 58, .85), rgba(8, 13, 28, .9)); isolation: isolate; }
.section.dark:last-of-type .wrap::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--ang), transparent 0 55%, var(--gold) 75%, transparent 90%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 7s linear infinite; z-index: -1; }
@keyframes spin { to { --ang: 360deg; } }

/* Spotlight on cards (position set by site.js on fine pointers) */
.card::after { background: radial-gradient(360px 220px at var(--mx, 85%) var(--my, -20%), rgba(220, 184, 119, .26), transparent 65%); }

/* Console parallax and header hide */
.console { transform: perspective(1200px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .25s ease-out; will-change: transform; }
.site-header { transition: transform .35s var(--ease), background .3s; }
.site-header.hide { transform: translateY(-100%); }
.nav.open ~ *, body.menu-open .site-header { transform: none; }

/* Image placeholders shimmer briefly while loading */
.shot { background-size: 200% 100%; animation: shimmer 1.8s ease-in-out 3; }
@keyframes shimmer { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }

/* Cheaper rendering for sections below the first screen */

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .section.dark:last-of-type .wrap::before, .shot { animation: none; }
  .console { transform: none !important; }
}
@media (max-width: 760px) { .marquee { padding: 14px 0; } .marquee span { font-size: .9rem; padding: 8px 16px; } .console { transform: none !important; } }

/* ================= Artwork (original SVG, self-hosted) ================= */
.hero { background-image: url("/assets/img/skyline.svg"), radial-gradient(1200px 600px at 78% -10%, rgba(111, 141, 255, .22), transparent 60%), radial-gradient(900px 500px at 8% 110%, rgba(220, 184, 119, .16), transparent 60%); background-repeat: no-repeat; background-position: center bottom, 0 0, 0 0; background-size: max(100%, 1300px) auto, auto, auto; background-color: var(--midnight); }
.section.dark:last-of-type { background-image: url("/assets/img/skyline.svg"), radial-gradient(900px 480px at 85% 0%, rgba(111, 141, 255, .16), transparent 60%); background-repeat: no-repeat; background-position: center bottom, 0 0; background-size: max(100%, 1300px) auto, auto; padding-bottom: clamp(120px, 14vw, 220px); }

/* Industry tiles */
.ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.ind { display: flex; flex-direction: column; gap: 14px; padding: 22px 20px; border-radius: 20px; text-decoration: none; background: #fff; border: 1px solid rgba(10, 15, 29, .09); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; position: relative; overflow: hidden; transition: transform var(--std) var(--ease), border-color var(--std), box-shadow var(--std), background var(--std), color var(--std); }
.ind svg { width: 34px; height: 34px; color: var(--gold-deep); transition: transform .5s var(--ease), color var(--std); }
.ind::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(220, 184, 119, .35), transparent 70%); transition: transform .6s var(--ease); }
.ind:hover { transform: translateY(-6px); background: linear-gradient(160deg, #0c1328, #1a2447); color: #fff; border-color: rgba(220, 184, 119, .45); box-shadow: 0 30px 50px -28px rgba(10, 15, 29, .7); }
.ind:hover svg { color: var(--gold); transform: scale(1.12) rotate(-4deg); }
.ind:hover::after { transform: scale(2.2); }
@media (max-width: 760px) { .ind-grid { grid-template-columns: repeat(2, 1fr); } .ind { padding: 18px 16px; } }
.hero { padding-bottom: clamp(120px, 15vw, 210px); }
.hero[style] { padding-bottom: clamp(100px, 12vw, 180px) !important; }

/* ---- Tighter vertical rhythm (overrides earlier, larger values) ---- */
.section { padding: clamp(44px, 5.5vw, 76px) 0; }
.section-head { margin-bottom: clamp(24px, 3vw, 36px); }
.section.dark:last-of-type { padding-bottom: clamp(96px, 11vw, 160px); }
.hero { padding-bottom: clamp(104px, 12vw, 170px); }
.hero[style] { padding-bottom: clamp(96px, 10vw, 150px) !important; }
.marquee { padding: 14px 0; }
.steps li { padding-top: 22px; }
@media (min-width: 1280px) { .section { padding: 88px 0; } }
@media (max-width: 760px) {
  .section { padding: 36px 0; }
  .section-head { margin-bottom: 20px; }
  .hero { padding: 36px 0 96px; }
  .section.dark:last-of-type { padding-bottom: 96px; }
}
.section.alt + .section.alt { padding-top: 0; }

/* Two-column content blocks on detail pages: proportionate headings, soft panels */
.section > .wrap.grid-2 { gap: 22px; align-items: stretch; }
.section > .wrap.grid-2 > div.reveal:not(.card) { background: linear-gradient(160deg, #fff, var(--pearl)); border: 1px solid rgba(10, 15, 29, .08); border-radius: 22px; padding: clamp(24px, 3vw, 40px); }
.section > .wrap.grid-2 > div.reveal:not(.card) > h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-bottom: 16px; }
.section > .wrap.grid-2 > div.reveal:not(.card) > .lead { font-size: 1.08rem; color: var(--slate-700); }
.section > .wrap.grid-2 > div.reveal:not(.card) .list-check li { margin-bottom: 12px; font-size: 1.02rem; }

/* Long-form body on service and industry pages */
.longform { max-width: 800px; margin-inline: auto; background: #fff; border: 1px solid rgba(10, 15, 29, .08); border-radius: 24px; padding: clamp(24px, 4vw, 56px); box-shadow: 0 30px 60px -45px rgba(10, 15, 29, .4); }
.longform h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 2rem 0 .8rem; }
.longform > h2:first-child { margin-top: 0; }
.longform h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; font-family: var(--display); }
.longform ul { padding-left: 1.2rem; }
.longform li { margin-bottom: .55rem; }
.longform a { font-weight: 600; text-underline-offset: 3px; }

/* ================= Gap fixes: WhatsApp button, new home sections, page intros ================= */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 44; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border-radius: 999px; background: #1fb455; color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 16px 36px -10px rgba(31, 180, 85, .7); transition: transform var(--std) var(--ease), box-shadow var(--std); }
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -10px rgba(31, 180, 85, .85); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #1fb455; animation: ping 3s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.25); opacity: 0; } }
@media (max-width: 760px) { .wa-float { right: 14px; bottom: calc(92px + env(safe-area-inset-bottom)); width: 54px; height: 54px; padding: 0; justify-content: center; } .wa-float span { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; display: none; } }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why { padding: 28px; border-radius: 20px; background: #fff; border: 1px solid rgba(10, 15, 29, .08); transition: transform var(--std) var(--ease), box-shadow var(--std), border-color var(--std); }
.why:hover { transform: translateY(-4px); border-color: rgba(185, 143, 69, .5); box-shadow: 0 28px 50px -34px rgba(10, 15, 29, .5); }
.why .glyph { margin-bottom: 18px; }
.why h3 { font-size: 1.15rem; margin-bottom: 8px; }
.why p { margin: 0; color: var(--slate-500); font-size: .96rem; line-height: 1.65; }
@media (max-width: 920px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

.ads-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.ads-points { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ads-points li { padding: 16px 18px 16px 52px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); color: #dfe6f5; position: relative; }
.ads-points li::before { content: ""; position: absolute; left: 20px; top: 20px; width: 14px; height: 8px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
@media (max-width: 920px) { .ads-band { grid-template-columns: 1fr; } }

.faq-wrap { max-width: 860px; }
.page-intro { max-width: 760px; margin: 0 auto 36px; text-align: left; }
.page-intro p { color: var(--slate-700); font-size: 1.06rem; line-height: 1.75; }
.steps-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: st; list-style: none; padding: 0; margin: 0; }
.steps-3 li { counter-increment: st; padding: 24px; border-radius: 18px; background: #fff; border: 1px solid rgba(10, 15, 29, .08); }
.steps-3 li::before { content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(180deg, #e8c987, #d2a95d); color: #1a1303; font-weight: 700; margin-bottom: 12px; }
.steps-3 strong { display: block; font-family: var(--display); margin-bottom: 4px; }
.steps-3 span { color: var(--slate-500); font-size: .95rem; }
@media (max-width: 760px) { .steps-3 { grid-template-columns: 1fr; } }

/* Social icons and share links */
.social-row { display: flex; flex-wrap: wrap; gap: 10px; }
.social-row a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-dark); color: #c9d3ea; background: rgba(255, 255, 255, .05); transition: transform var(--std) var(--ease), background var(--std), color var(--std), border-color var(--std); }
.social-row a:hover { transform: translateY(-3px); background: linear-gradient(180deg, #e8c987, #d2a95d); color: #1a1303; border-color: transparent; }
.social-row svg { width: 19px; height: 19px; }
.social-row.big a { width: 54px; height: 54px; background: #fff; color: var(--ink); border-color: rgba(10, 15, 29, .12); }
.social-row.big svg { width: 23px; height: 23px; }
.social-row.big a:hover { background: linear-gradient(160deg, #0c1328, #1a2447); color: var(--gold); border-color: transparent; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 28px 0; padding-top: 18px; border-top: 1px solid rgba(10, 15, 29, .1); font-size: .92rem; color: var(--slate-500); }
.share-row a { padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(10, 15, 29, .14); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .86rem; transition: all var(--fast); }
.share-row a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.contact-aside .ch-social a { text-decoration: none; }

/* Click-to-play video */
.yt-lite { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: radial-gradient(800px 400px at 70% 0%, rgba(111, 141, 255, .3), transparent 60%), linear-gradient(135deg, #0a1020, #1a2447 60%, #3a3326); border: 1px solid rgba(220, 184, 119, .35); box-shadow: 0 40px 80px -40px rgba(10, 15, 29, .7); }
.yt-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: transparent; border: 0; color: #fff; cursor: pointer; font: inherit; text-align: center; padding: 20px; }
.yt-icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(180deg, #e8c987, #d2a95d); color: #1a1303; box-shadow: 0 18px 40px -10px rgba(220, 184, 119, .8); transition: transform var(--std) var(--ease); }
.yt-icon svg { width: 34px; height: 34px; margin-left: 4px; }
.yt-play:hover .yt-icon { transform: scale(1.1); }
.yt-label { font-family: var(--display); font-size: 1.3rem; font-weight: 600; margin-top: 10px; }
.yt-sub { color: var(--on-dark-dim); font-size: .92rem; max-width: 40ch; }

/* Phones: footer link columns move into the menu (see .nav-more in the layout); desktop footer is unchanged */
.nav-more { display: none; }
@media (max-width: 760px) {
  .foot-grid > div:not(:first-child) { display: none; }
  .foot-grid { margin-bottom: 24px; }
  .site-footer { padding-bottom: 8px; }
  .nav-more { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(180, 196, 232, .16); }
  .nav-more > div { min-width: 0; }
  .nav-more-title { margin: 0 0 4px; padding: 0 4px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
  .nav .nav-more a { display: block; padding: 8px 4px; font-size: .92rem; font-family: var(--font); font-weight: 450; color: #b7c2dc; border-radius: 8px; white-space: normal; }
  .nav .nav-more a:hover { color: #fff; }
}
@media (max-width: 760px) { .nav { padding-bottom: calc(110px + env(safe-area-inset-bottom)); } }
