/* =========================================================
   ISPL — design system v5
   Direction: dark tech-studio theme. The header is the one
   deliberate light island (for logo legibility) — everything
   below it is dark, with neon violet/cyan/pink glow accents,
   circuit-grid textures, and glass surfaces. No more all-white
   body. Blue is no longer the dominant color; header still uses
   blue only because the logo itself is blue.
   ========================================================= */

:root {
  /* ---- dark canvas (body default) ---- */
  --bg: #060710;
  --bg-soft: #0c0e1a;
  --bg-soft-2: #12142380;
  --surface: #11131f;
  --surface-2: #171a2b;
  --text: #eef0fb;
  --text-muted: #9599b5;
  --border: rgba(255,255,255,.10);
  --border-strong: rgba(255,255,255,.20);

  /* ---- neon accents (violet / cyan / pink — blue demoted) ---- */
  --violet: #8b5cf6;
  --violet-600: #7440e0;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --mint: #2dd4bf;
  --blue: #5b8dff;
  --blue-50: rgba(91,141,255,.12);
  --blue-600: #7fa4ff;

  --grad-brand: linear-gradient(135deg, var(--violet) 0%, var(--cyan) 60%, var(--pink) 100%);
  --grad-mesh:
    radial-gradient(1000px 640px at 12% -6%, rgba(139,92,246,.42), transparent 55%),
    radial-gradient(900px 620px at 92% 6%, rgba(34,211,238,.32), transparent 55%),
    radial-gradient(900px 660px at 46% 110%, rgba(244,114,182,.22), transparent 55%),
    linear-gradient(180deg, var(--bg), #030308);

  /* ---- header stays a deliberate LIGHT island — its own tokens, never flipped ---- */
  --header-bg: #ffffff;
  --header-ink: #10121c;
  --menu-blue: #1f5eff;
  --header-muted: #5b5f73;
  --header-border: #e6e8f0;
  --header-hover-bg: #eef1ff;
  --header-blue: #2f5cff;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow-sm: 0 10px 26px -14px rgba(0,0,0,.5);
  --shadow: 0 26px 54px -20px rgba(0,0,0,.6);
  --shadow-lg: 0 34px 74px -22px rgba(0,0,0,.7);
  --shadow-glow: 0 0 0 1px rgba(139,92,246,.25), 0 18px 46px -14px rgba(139,92,246,.55);

  --font-display: "Marcellus", Georgia, serif;
  --font-body: "Marcellus", Georgia, serif;
  --font-mono: "Marcellus", Georgia, serif;

  --maxw: 1240px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

* { box-sizing: border-box; }
button, input, select, textarea { font-family: inherit; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg);
  /* Marcellus has a single (regular) weight: show it as designed rather than
     letting the browser fake a bold, which smears its flared strokes. */
  font-synthesis: style;
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; position: relative;
}
/* faint circuit-grid wash across the whole dark canvas */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 52px 52px;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--text); margin: 0 0 .5em; line-height: 1.14; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 800; }
h1 span.accent, h2 span.accent {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto; animation: gradSweep 6s ease-in-out infinite;
}
@keyframes gradSweep { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--violet); color: #fff; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .74rem;
  letter-spacing: .08em; text-transform: uppercase; color: #c9c3ff; font-weight: 600;
  background: rgba(139,92,246,.14); border: 1px solid rgba(139,92,246,.28); border-radius: var(--radius-pill); padding: 7px 14px; margin-bottom: 20px;
}

/* ---------- Icon system (replaces emoji site-wide with stroke SVGs) ---------- */
.icon-svg { display: inline-flex; }
.icon-svg svg { width: 100%; height: 100%; display: block; }

.icon svg { width: 24px; height: 24px; }
.stat-icon svg { width: 22px; height: 22px; }
.ico .icon-svg, .ico svg { width: 15px; height: 15px; }
.hero-visual .float-card .ico { display: inline-flex; align-items: center; justify-content: center; }

.node-ico { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--text); }
.node-ico svg { width: 26px; height: 26px; }

.inline-ico { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; vertical-align: -3px; margin-right: 7px; }
.inline-ico svg { width: 100%; height: 100%; }

.page-title-row { display: flex; align-items: center; gap: 18px; }
.title-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: var(--grad-brand); color: #fff; flex-shrink: 0; box-shadow: var(--shadow-glow); }
.title-icon svg { width: 28px; height: 28px; }
@media (max-width: 600px) { .title-icon { width: 46px; height: 46px; border-radius: 13px; } .title-icon svg { width: 22px; height: 22px; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px; font-weight: 600;
  padding: 14px 25px; border-radius: var(--radius-pill); border: 1px solid transparent;
  cursor: pointer; font-family: var(--font-body); font-size: .93rem;
  white-space: nowrap; flex-shrink: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), background-position .35s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-primary { background: var(--grad-brand); background-size: 200% auto; background-position: 0% 50%; color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { background-position: 100% 50%; transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(34,211,238,.3), 0 24px 54px -14px rgba(34,211,238,.55); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); background: rgba(34,211,238,.08); }
.btn-dark { background: #fff; color: var(--bg); }
.btn-dark:hover { background: var(--grad-brand); color: #fff; transform: translateY(-2px); }

/* ====================================================================
   HEADER — deliberate light island. Uses --header-* tokens ONLY so it
   never inherits the dark body theme. Logo stays crisp on white.
   ==================================================================== */
.site-header { position: sticky; top: 0; z-index: 300; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; transition: border-color .3s ease, box-shadow .3s ease; }
.site-header.scrolled { border-color: var(--header-border); box-shadow: 0 6px 24px -18px rgba(16,18,28,.25); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 28px; max-width: var(--maxw); margin: 0 auto; gap: 20px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--header-ink); flex-shrink: 0; }

.nav-inline { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-inline a, .nav-item > button.nav-link {
  display: inline-flex; align-items: center; gap: 5px; font-size: .89rem; font-weight: 600; color: var(--header-ink);
  padding: 10px 14px; border-radius: var(--radius-sm); background: none; border: none; cursor: pointer; font-family: var(--font-body);
  transition: color .2s ease, background .2s ease;
}
.nav-inline a:hover, .nav-item > button.nav-link:hover, .nav-inline a.active, .nav-item > button.nav-link.active { color: var(--header-blue); background: var(--header-hover-bg); }
.nav-item > button.nav-link .chev { width: 9px; height: 9px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .25s ease; }
.nav-item.open > button.nav-link .chev { transform: rotate(-135deg) translateY(1px); }

.dropdown-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px); min-width: 220px;
  background: #fff; border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(16,18,28,.35); border: 1px solid var(--header-border);
  padding: 10px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s ease, transform .22s var(--ease), visibility 0s linear .22s;
  z-index: 50;
}
.dropdown-panel::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-item.open .dropdown-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: all; transition: opacity .22s ease, transform .22s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .nav-item:hover .dropdown-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: all; transition: opacity .22s ease, transform .22s var(--ease); }
  .nav-item:hover > button.nav-link .chev { transform: rotate(-135deg) translateY(1px); }
}
.dropdown-panel a { display: block; padding: 11px 14px; border-radius: 10px; font-size: .89rem; font-weight: 500; color: var(--header-ink); transition: background .18s ease, color .18s ease, padding-left .18s ease; }
.dropdown-panel a:hover { background: var(--header-hover-bg); color: var(--header-blue); padding-left: 18px; }

.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-cta .btn-primary { padding: 11px 20px; font-size: .86rem; }

/* ---------- Menu button (blue circle, grid icon) ---------- */
.menu-grid-btn {
  display: none; align-items: center; justify-content: center; width: 50px; height: 50px; flex-shrink: 0;
  border: 0; border-radius: 50%; background: var(--menu-blue); color: #0b0d14; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.menu-grid-btn svg { transition: transform .5s var(--ease); }
.menu-grid-btn:hover { transform: scale(1.06); box-shadow: 0 10px 26px -10px rgba(31,94,255,.75); }
.menu-grid-btn:hover svg { transform: rotate(90deg); }
.menu-grid-btn:focus-visible { outline: 3px solid var(--menu-blue); outline-offset: 3px; }

/* Phones and tablets: the inline nav is hidden, so the grid button takes over */
@media (max-width: 900px) {
  .nav-inline, .nav-cta .btn-primary { display: none; }
  .menu-grid-btn { display: inline-flex; }
}

/* ---------- Full-screen menu ---------- */
.site-menu {
  position: fixed; inset: 0; z-index: 10000; display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  background: #000; color: #fff; overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.site-menu[hidden] { display: none; }
.site-menu.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }
html.menu-open, html.menu-open body { overflow: hidden; }

.site-menu-main { display: flex; align-items: center; padding: clamp(80px, 10vh, 120px) clamp(24px, 9.5vw, 180px); }
.site-menu-list, .site-menu-sub { list-style: none; margin: 0; padding: 0; }
/* entrance: rows rise in one after another (--i is set by main.js) */
.site-menu-list > li {
  opacity: 0; transform: translateY(40px);
  transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 60ms + 120ms);
}
.site-menu.is-open .site-menu-list > li { opacity: 1; transform: none; }
.site-menu-list > li > a, .site-menu-toggle {
  display: inline-flex; align-items: center; gap: .35em; padding: .08em 0; background: none; border: 0; cursor: pointer;
  color: #fff; font-family: var(--font-display); font-size: clamp(2.3rem, 5.2vw, 4.1rem); line-height: 1.32; letter-spacing: -.01em;
  transition: color .3s ease, opacity .3s ease;
}
/* dim the other links while one is hovered (mouse only — a tap would leave it stuck) */
@media (hover: hover) {
  .site-menu-list:hover > li > a, .site-menu-list:hover > li > .site-menu-toggle { opacity: .45; }
}
.site-menu-list > li > a:hover, .site-menu-list > li > a:focus-visible,
.site-menu-list > li > .site-menu-toggle:hover, .site-menu-list > li > .site-menu-toggle:focus-visible,
.site-menu-toggle[aria-expanded="true"] { opacity: 1 !important; }
.site-menu-list a.active::after { content: ""; width: .16em; height: .16em; border-radius: 50%; background: var(--menu-blue); margin-left: .15em; align-self: center; }
.site-menu-arrow { width: .5em; height: .5em; margin-top: .12em; color: rgba(255,255,255,.55); transition: transform .4s var(--ease); }
.site-menu-toggle[aria-expanded="true"] .site-menu-arrow { transform: rotate(45deg); color: #fff; }
.site-menu-sub { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 6px 36px; padding: 6px 0 18px 4px; }
.site-menu-sub[hidden] { display: none; }
.site-menu-sub a { color: rgba(255,255,255,.62); font-size: 1.08rem; padding: 4px 0; display: inline-block; transition: color .2s ease, transform .2s ease; }
.site-menu-sub a:hover, .site-menu-sub a:focus-visible, .site-menu-sub a.active { color: #fff; transform: translateX(4px); }

.site-menu-info {
  position: relative; background: #1e1f21; padding: clamp(100px, 16vh, 170px) clamp(28px, 3.2vw, 58px) 56px;
  transform: translateX(40px); opacity: 0; transition: transform .7s var(--ease) .1s, opacity .7s var(--ease) .1s;
}
.site-menu.is-open .site-menu-info { transform: none; opacity: 1; }
.site-menu-close {
  position: absolute; top: 22px; right: 26px; width: 52px; height: 52px; display: grid; place-items: center;
  background: none; border: 0; color: #fff; cursor: pointer; border-radius: 50%; transition: transform .4s var(--ease), background .2s;
}
.site-menu-close:hover { transform: rotate(90deg); background: rgba(255,255,255,.06); }
.site-menu-close:focus-visible, .site-menu a:focus-visible, .site-menu-toggle:focus-visible { outline: 2px solid var(--menu-blue); outline-offset: 4px; border-radius: 6px; }
.site-menu-block { margin-bottom: 34px; }
.site-menu-title { font-family: var(--font-display); font-size: 1.65rem; color: #fff; margin: 0 0 16px; }
.site-menu-block p:not(.site-menu-title) { margin: 0 0 10px; color: rgba(255,255,255,.66); font-size: .95rem; line-height: 1.85; }
.site-menu-info a { color: rgba(255,255,255,.75); transition: color .2s ease; }
.site-menu-info a:hover { color: #fff; }
.site-menu-social { display: inline-flex; align-items: center; gap: 10px; }

@media (max-width: 900px) {
  .site-menu { grid-template-columns: 1fr; align-content: start; }
  .site-menu-main { padding: 96px 28px 28px; }
  .site-menu-info { padding: 34px 28px 48px; }
  .site-menu-close { position: fixed; top: 14px; right: 14px; z-index: 2; background: rgba(30,31,33,.9); }
  .site-menu-sub { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .site-menu, .site-menu-info, .site-menu-list > li { transition: none !important; transform: none !important; }
}

/* ====================================================================
   HERO — dark, glowing mesh gradient, particle network
   ==================================================================== */
.hero { position: relative; padding: 90px 0 0; overflow: hidden; isolation: isolate; background: var(--grad-mesh); }
.hero::before {
  content: ""; position: absolute; z-index: -2; top: -260px; left: 50%; transform: translateX(-50%);
  width: 1300px; height: 780px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139,92,246,.4), transparent 68%),
              radial-gradient(closest-side at 70% 60%, rgba(34,211,238,.3), transparent 65%),
              radial-gradient(closest-side at 25% 70%, rgba(244,114,182,.22), transparent 65%);
  filter: blur(6px); animation: heroDrift 14s ease-in-out infinite;
}
@keyframes heroDrift { 0%, 100% { transform: translateX(-50%) translateY(0) scale(1); } 50% { transform: translateX(-50%) translateY(18px) scale(1.05); } }
.hero-net { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; opacity: .7; }
.hero-inner { text-align: center; max-width: 800px; margin: 0 auto; padding: 70px 0 56px; }
.hero h1 { max-width: 15ch; margin-left: auto; margin-right: auto; color: #fff; }
.hero h1 .word { display: inline-block; opacity: 0; transform: translateY(18px); animation: wordRise .7s var(--ease) forwards; }
@keyframes wordRise { to { opacity: 1; transform: translateY(0); } }
.hero p.lead { color: rgba(238,240,251,.88); font-size: 1.15rem; max-width: 46ch; margin: 0 auto; animation: rise .8s .12s var(--ease) both; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; justify-content: center; flex-wrap: wrap; animation: rise .85s .2s var(--ease) both; }
.hero-badges { display: flex; gap: 10px; justify-content: center; margin-top: 28px; flex-wrap: wrap; animation: rise .9s .26s var(--ease) both; }
.hero-badges span { font-family: var(--font-mono); font-size: .74rem; color: rgba(238,240,251,.7); background: rgba(255,255,255,.06); border: 1px solid var(--border); padding: 6px 13px; border-radius: var(--radius-pill); }

.hero-visual { position: relative; max-width: 1080px; margin: 0 auto; padding: 0 28px 0; }
.hero-visual .frame {
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.08); border: 1px solid var(--border);
  animation: rise 1s .18s var(--ease) both; aspect-ratio: 16 / 8.2; background: var(--surface);
}
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-visual .float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; background: rgba(17,19,31,.85); border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px); border-radius: 14px; padding: 13px 18px; box-shadow: var(--shadow); font-size: .82rem; font-weight: 700; color: #fff;
  animation: floatCard 5.5s ease-in-out infinite;
}
.hero-visual .float-card .ico { width: 30px; height: 30px; border-radius: 9px; background: var(--grad-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.hero-visual .card-a { top: 8%; left: -3%; animation-delay: -1s; }
.hero-visual .card-b { bottom: 10%; right: -3%; animation-delay: -3s; }
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 700px) { .hero-visual .float-card { display: none; } }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Page hero (inner pages) — dark, glowing ---------- */
.page-hero { position: relative; background: var(--grad-mesh); padding: 132px 0 60px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--border); }
.page-hero::before {
  content: ""; position: absolute; z-index: -1; top: -220px; right: -160px; width: 760px; height: 560px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139,92,246,.36), transparent 68%), radial-gradient(closest-side at 60% 60%, rgba(34,211,238,.24), transparent 65%);
}
.page-hero h1 { color: #fff; max-width: 18ch; animation: rise .7s .05s var(--ease) both; }
.page-hero > .container > p { animation: rise .75s .1s var(--ease) both; max-width: 56ch; font-size: 1.08rem; color: rgba(238,240,251,.88); }
.page-hero > .container > .btn { animation: rise .8s .15s var(--ease) both; }


/* ---------- Sections ---------- */
section { padding: 100px 0; position: relative; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin: 0 0 42px; text-align: left; max-width: none; }
.bg-mist { background: var(--bg); position: relative; isolation: isolate; }
.bg-ink { background: var(--grad-mesh); color: #fff; position: relative; isolation: isolate; overflow: hidden; }
.bg-ink::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(80% 70% at 50% 30%, #000, transparent);
}
.bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-ink p { color: rgba(255,255,255,.66); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Cards — dark glass, glowing gradient border on hover ---------- */
.grid { display: flex; flex-wrap: wrap; gap: 22px; }
.grid > * { flex: 1 1 320px; }
.grid-3 > * { flex: 1 1 calc(33.333% - 15px); min-width: 260px; }
.grid-4 > * { flex: 1 1 calc(25% - 17px); min-width: 220px; }
.grid-2 > * { flex: 1 1 calc(50% - 11px); min-width: 260px; }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease, background .3s ease;
  isolation: isolate;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(139,92,246,.35); background: var(--surface-2); }
.card::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--angle, 0deg), transparent 0%, transparent 74%, var(--violet) 84%, var(--cyan) 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s ease; animation: spinAngle 3.4s linear infinite; animation-play-state: paused;
}
.card:hover::before { opacity: 1; animation-play-state: running; }
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spinAngle { to { --angle: 360deg; } }
.card .icon { width: 48px; height: 48px; border-radius: 13px; background: rgba(139,92,246,.14); color: #c9c3ff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 22px; font-size: 1.15rem; transition: transform .3s var(--ease), background .3s ease, color .3s ease; }
.card:hover .icon { background: var(--grad-brand); color: #fff; transform: scale(1.06) rotate(-4deg); }
.card h3 { margin-bottom: 8px; }
.card a.more { color: var(--cyan); font-weight: 600; font-size: .89rem; display: inline-flex; gap: 6px; margin-top: 8px; transition: gap .22s ease; }
.card a.more:hover { gap: 10px; }
.card .card-index { position: absolute; top: 24px; right: 26px; font-family: var(--font-mono); font-size: .72rem; color: var(--border-strong); font-weight: 600; }

/* ---------- Client / product chip row ---------- */
.client-row { display: flex; flex-wrap: wrap; gap: 14px; }
.client-chip {
  display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-weight: 700; font-family: var(--font-display); font-size: .95rem; flex: 1 1 200px; color: var(--text);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s ease, color .25s ease;
}
.client-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); border-color: var(--violet); color: #fff; }
.client-chip .tag { white-space: nowrap; flex-shrink: 0; font-family: var(--font-mono); font-size: .68rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Parallax / cinematic image break ---------- */
.parallax-media { position: relative; height: 60vh; min-height: 400px; overflow: hidden; border-radius: 0; }
.parallax-media img { position: absolute; inset: -12% -6%; width: 112%; height: 124%; object-fit: cover; will-change: transform; filter: saturate(1.05); }
.parallax-media .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,7,16,.2), rgba(6,7,16,.82)); }
.parallax-media .media-caption {
  position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); width: min(600px, 90%);
  background: rgba(17,19,31,.85); border: 1px solid var(--border-strong); backdrop-filter: blur(12px);
  border-radius: var(--radius); padding: 26px 30px; text-align: center; box-shadow: var(--shadow-lg);
}
.parallax-media .media-caption p { color: rgba(238,240,251,.72); margin: 0; }
.parallax-media .media-caption .eyebrow { margin-bottom: 10px; }

/* ---------- Why-us bento ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why-card { position: relative; padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease; }
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: rgba(139,92,246,.3); }
.why-card .num {
  font-family: var(--font-display); font-weight: 800; font-size: 2rem; margin-bottom: 8px; line-height: 1;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Image collage (Why ISPL visual) ---------- */
.collage { position: relative; }
.collage .collage-main { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; border: 1px solid var(--border); }
.collage .collage-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.collage:hover .collage-main img { transform: scale(1.05); }
.collage .collage-float { position: absolute; width: 44%; aspect-ratio: 1/1; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid var(--bg); bottom: -28px; right: -24px; }
.collage .collage-float img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.collage:hover .collage-float img { transform: scale(1.08); }

/* ---------- Featured work (image cards) ---------- */
.work-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); display: block; border: 1px solid var(--border); }
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), var(--shadow-glow); }
.work-card .work-img { aspect-ratio: 4/3; overflow: hidden; }
.work-card .work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); filter: saturate(1.05); }
.work-card:hover .work-img img { transform: scale(1.08); }
.work-card .work-body { padding: 20px 22px 22px; background: var(--surface); }
.work-card .work-tag { font-family: var(--font-mono); font-size: .7rem; color: var(--cyan); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; display: block; }
.work-card h3 { margin: 0 0 4px; font-size: 1.05rem; color: #fff; }
.work-card .work-arrow { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%; background: rgba(6,7,16,.6); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; transition: background .3s ease, transform .3s var(--ease); }
.work-card:hover .work-arrow { background: var(--grad-brand); transform: rotate(45deg); }
.work-card .work-arrow svg { width: 15px; height: 15px; stroke: #fff; transition: stroke .3s ease; }

/* ---------- Stats band (animated count-up) ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat-block { background: var(--surface); padding: 34px 26px; text-align: center; transition: background .3s ease; }
.stat-block:hover { background: var(--surface-2); }
.stat-block .stat-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--grad-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin: 0 auto 16px; }
.stat-block .stat-num { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: #fff; line-height: 1; margin-bottom: 8px; }
.stat-block .stat-label { font-size: .84rem; color: var(--text-muted); font-weight: 500; }
@media (max-width: 700px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Capabilities orbit ---------- */
.orbit-wrap { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1/1; margin: 0 auto; }
.orbit-ring { position: absolute; border: 1px dashed var(--border-strong); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.orbit-ring.r1 { width: 62%; height: 62%; }
.orbit-ring.r2 { width: 92%; height: 92%; }
.orbit-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 128px; height: 128px; border-radius: 50%;
  background: var(--grad-brand); display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; box-shadow: 0 0 60px -10px rgba(139,92,246,.7); z-index: 3;
  text-align: center;
}
.orbit-hub::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(139,92,246,.4); animation: pulseRing 2.6s ease-out infinite; }
@keyframes pulseRing { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }

.orbit-spin { position: absolute; inset: 0; animation: spin 26s linear infinite; }
.orbit-spin.reverse { animation-direction: reverse; animation-duration: 32s; }
@keyframes spin { to { transform: rotate(360deg); } }

.orbit-node {
  position: absolute; width: 78px; height: 78px; margin: -39px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  animation: counterSpin 26s linear infinite; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
}
.orbit-spin.reverse .orbit-node { animation-duration: 32s; animation-direction: reverse; }
.orbit-node:hover { transform: scale(1.14) !important; box-shadow: var(--shadow-glow); border-color: var(--violet); z-index: 5; }
@keyframes counterSpin { to { transform: rotate(-360deg); } }
.orbit-node .tip {
  position: absolute; top: 108%; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .74rem; font-weight: 700;
  color: #fff; background: var(--surface-2); border: 1px solid var(--border-strong); padding: 5px 11px; border-radius: var(--radius-pill);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; box-shadow: var(--shadow-sm);
}
.orbit-node:hover .tip { opacity: 1; transform: translateX(-50%) translateY(2px); }
@media (max-width: 720px) { .orbit-wrap { max-width: 380px; } .orbit-node { width: 58px; height: 58px; margin: -29px; font-size: 1.15rem; } .orbit-hub { width: 96px; height: 96px; font-size: .92rem; } }
@media (prefers-reduced-motion: reduce) { .orbit-spin, .orbit-node, .orbit-hub::after { animation: none !important; } }
/* The hover labels sit outside the circle; on phones (no hover) they never show,
   and elsewhere they must not widen the page while hidden. */
@media (hover: none), (max-width: 720px) { .orbit-node .tip { display: none; } }
section:has(.orbit-wrap) { overflow-x: clip; }

/* ---------- Terminal snippet ---------- */
.terminal { background: #050609; border-radius: 16px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.06); overflow: hidden; font-family: var(--font-mono); font-size: .84rem; }
.terminal .terminal-bar { display: flex; gap: 7px; padding: 13px 16px; background: #0b0c13; }
.terminal .terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a2c3a; }
.terminal .terminal-bar span:nth-child(1) { background: #ff5f57; }
.terminal .terminal-bar span:nth-child(2) { background: #febc2e; }
.terminal .terminal-bar span:nth-child(3) { background: #28c840; }
.terminal .terminal-body { padding: 20px 22px 26px; color: #9aa4c7; min-height: 132px; }
.terminal .terminal-body .line { color: var(--cyan); margin-bottom: 9px; }
.terminal .terminal-body .line .prompt { color: var(--violet); margin-right: 8px; }
.terminal .caret { display: inline-block; width: 7px; height: 15px; background: var(--cyan); margin-left: 2px; vertical-align: -2px; animation: caretBlink 1s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }

/* ---------- Jobs ---------- */
.job-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; transition: box-shadow .25s ease, transform .25s var(--ease), border-color .25s ease; }
.job-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); border-color: rgba(139,92,246,.3); }
.job-meta { display: flex; gap: 10px; margin-top: 8px; }
.tag { font-size: .74rem; font-family: var(--font-mono); background: rgba(139,92,246,.14); color: #c9c3ff; padding: 4px 11px; border-radius: var(--radius-pill); }

/* ---------- Forms ---------- */
.form-grid { display: flex; flex-wrap: wrap; gap: 0 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; flex: 1 1 calc(50% - 9px); min-width: 220px; }
.field.full { flex-basis: 100%; }
label { font-size: .82rem; font-weight: 600; color: var(--text); }
input, select, textarea {
  font-family: var(--font-body); padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: .95rem; background: var(--surface); color: var(--text); outline: none; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, select:focus, textarea:focus { border-color: var(--violet); background: var(--surface-2); box-shadow: 0 0 0 4px rgba(139,92,246,.16); }
textarea { resize: vertical; min-height: 110px; }
.form-status { margin-top: 15px; font-size: .9rem; padding: 13px 16px; border-radius: var(--radius-sm); display: none; }
.form-status.show { display: block; animation: rise .35s var(--ease) both; }
.form-status.ok { background: rgba(45,212,191,.14); color: #5eead4; }
.form-status.err { background: rgba(244,63,94,.14); color: #fb7185; }

/* ---------- Newsletter ---------- */
.subscribe-box { display: flex; gap: 8px; max-width: 420px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-pill); padding: 5px; }
.subscribe-box input { flex: 1; background: transparent; border: none; color: #fff; padding: 10px 14px; }
.subscribe-box input::placeholder { color: rgba(255,255,255,.4); }
.subscribe-box .btn { padding: 10px 20px; font-size: .85rem; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--grad-mesh); color: rgba(255,255,255,.62); padding: 76px 0 30px; position: relative; isolation: isolate; overflow: hidden; }
footer.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .4;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(70% 60% at 20% 0%, #000, transparent);
}
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 46px; margin-bottom: 46px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-top h2 { color: #fff; margin: 0; max-width: 20ch; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; margin-bottom: 50px; }
.footer-grid > div:nth-child(1) { flex: 1.4 1 260px; }
.footer-grid > div:nth-child(2), .footer-grid > div:nth-child(3) { flex: 1 1 140px; }
.footer-grid > div:nth-child(4) { flex: 1.2 1 220px; }
.footer-grid h4 { color: #fff; font-size: .78rem; margin-bottom: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 11px; }
.footer-grid a { color: rgba(255,255,255,.58); font-size: .91rem; transition: color .2s ease; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .84rem; }
.footer-bottom a:hover { color: var(--cyan); }

/* ---------- Blogs ---------- */
.blog-card { display: block; }
.blog-card img { border-radius: var(--radius-sm); aspect-ratio: 16/10; object-fit: cover; margin-bottom: 16px; transition: transform .4s var(--ease); border: 1px solid var(--border); }
.blog-card:hover img { transform: scale(1.02); }
.blog-card .meta { font-family: var(--font-mono); font-size: .72rem; color: var(--cyan); margin-bottom: 8px; letter-spacing: .04em; text-transform: uppercase; }
.blog-card h3 { color: var(--text); }

/* ---------- Screening test ---------- */
.test-shell { max-width: 720px; margin: 0 auto; }
.progress-bar { height: 6px; background: var(--surface-2); border-radius: var(--radius-pill); overflow: hidden; margin-bottom: 32px; }
.progress-bar span { display: block; height: 100%; background: var(--grad-brand); width: 0%; transition: width .3s ease; }
.q-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; background: var(--surface); }
.q-card .q-count { font-family: var(--font-mono); font-size: .78rem; color: var(--cyan); margin-bottom: 12px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.opt:hover { border-color: var(--violet); }
.opt.selected { border-color: var(--violet); background: rgba(139,92,246,.12); }
.test-nav { display: flex; justify-content: space-between; margin-top: 26px; }
.timer { font-family: var(--font-mono); font-weight: 700; color: var(--cyan); }

/* ---------- Team ---------- */
.team-group { margin-bottom: 44px; }
.team-group h3 { font-family: var(--font-mono); text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; color: var(--cyan); margin-bottom: 18px; font-weight: 600; }
.team-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.team-card { text-align: center; transition: transform .3s var(--ease); flex: 1 1 140px; max-width: 160px; }
.team-card:hover { transform: translateY(-4px); }
.team-card .avatar { width: 100%; height: auto; aspect-ratio: 1; border-radius: 18px; object-fit: cover; background: var(--surface); margin-bottom: 13px; border: 1px solid var(--border); }
.team-card h4 { font-size: .94rem; margin: 0; color: var(--text); }
.team-card span { font-size: .8rem; color: var(--text-muted); }

/* ---------- Admin (kept legible, dark) ---------- */
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-side { background: #050609; color: #fff; padding: 26px 18px; }
.admin-side .brand { color: #fff; margin-bottom: 32px; }
.admin-side nav a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: rgba(255,255,255,.7); font-size: .9rem; margin-bottom: 4px; transition: background .2s ease, color .2s ease; }
.admin-side nav a:hover, .admin-side nav a.active { background: rgba(139,92,246,.16); color: #fff; }
.admin-main { padding: 32px 38px; background: var(--bg); }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: box-shadow .2s ease; }
.stat-card:hover { box-shadow: var(--shadow-sm); }
.stat-card .n { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: #fff; }
table.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
table.data-table th, table.data-table td { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--border); font-size: .87rem; color: var(--text); }
table.data-table th { background: var(--surface-2); font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--grad-mesh); }
.login-card { background: var(--surface); border: 1px solid var(--border); padding: 38px; border-radius: var(--radius); width: 100%; max-width: 380px; box-shadow: var(--shadow); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px 18px; border-radius: 10px; border: 1px solid #dadce0; background: #fff; color: #1f1f1f; font-family: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .15s, box-shadow .15s; }
.btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.btn-google:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }
.badge { font-size: .72rem; padding: 3px 9px; border-radius: var(--radius-pill); font-family: var(--font-mono); }
.badge.new { background: rgba(91,141,255,.16); color: #9db8ff; }
.badge.reviewed { background: rgba(45,212,191,.16); color: #5eead4; }
.badge.rejected { background: rgba(244,63,94,.16); color: #fb7185; }

/* ---------- Scroll-progress bar ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 400; background: transparent; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 0%; background: var(--grad-brand); }

/* ---------- Accessibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .grid-3 > *, .grid-4 > *, .grid-2 > *, .field, .footer-grid > div { flex-basis: 100% !important; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 50px 0 44px; }
  .admin-shell { grid-template-columns: 1fr; }
  .footer-top { display: block; }
  .footer-top .btn { margin-top: 18px; }
  .parallax-media { height: 46vh; min-height: 320px; }
}

/* ---- Content rendered at deploy time by scripts/build.js ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.projects-message { flex-basis: 100%; color: var(--text-muted); text-align: center; padding: 32px 0; }

/* Lettered tile used wherever a project, blog post or person has no image */
.monogram, .avatar-initials, .blog-ph {
  --hue: 262;
  --tile:
    radial-gradient(120% 120% at 0% 0%, hsl(var(--hue) 85% 62% / .55), transparent 60%),
    radial-gradient(120% 120% at 100% 100%, hsl(calc(var(--hue) + 60) 85% 60% / .35), transparent 55%),
    var(--surface-2);
  display: flex; align-items: center; justify-content: center; background: var(--tile);
  color: #fff; font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em;
}

/* Team */
.team-card .avatar.avatar-initials { background: var(--tile); font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* Project cards (Client / In-House pages) */
.project-card { display: flex; flex-direction: column; scroll-margin-top: 120px; }
.project-card:target { border-color: var(--cyan); box-shadow: var(--shadow-glow); }
.project-media { aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 20px; border: 1px solid var(--border); }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-media.monogram span { font-size: clamp(2rem, 4vw, 2.8rem); }
.project-desc p { margin: 0 0 .7em; }
.project-desc.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.project-card .read-more { align-self: flex-start; background: none; border: 0; padding: 0; margin: 0 0 6px; color: var(--text-muted); font: 600 .85rem var(--font-body); cursor: pointer; }
.project-card .read-more:hover { color: var(--text); }
.project-card .more { margin-top: auto; padding-top: 6px; }

/* Homepage highlight cards without an image */
.work-card .work-img.monogram span { font-size: 3rem; }

/* Blog cards */
.blog-ph { aspect-ratio: 16 / 10; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid var(--border); padding: 20px; text-align: center; }
.blog-ph span { font-size: 1.05rem; font-weight: 700; opacity: .92; }
.blog-card time { white-space: nowrap; }

/* Service pages */
.deliver-card h3 { font-size: 1.12rem; }
.deliver-card p { margin: 0; color: var(--text-muted); }
.talk-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 22px; }
.talk-card p { margin: 0; color: var(--text-muted); }
.related-card { display: block; color: var(--text); }
.related-card .work-tag { font-family: var(--font-mono); font-size: .7rem; color: var(--cyan); text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: 6px; }
.related-card p { margin: 0; color: var(--text-muted); }

/* Contact page */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.contact-layout--cards { grid-template-columns: 1fr; }
.contact-layout--cards .contact-side { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; align-items: stretch; }
.contact-side { display: grid; gap: 18px; }
.contact-side .card { padding: 26px; }
.contact-side p { margin: 0 0 .5em; }
.contact-side a { color: var(--cyan); }
.muted, .form-note { color: var(--text-muted); font-size: .88rem; }
.form-note { margin: 14px 0 0; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #fb7185; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

/* =====================================================================
 * Vertex AI Agent chat bubble (Dialogflow Messenger), bottom-right
 * ===================================================================== */
df-messenger {
  z-index: 999;
  position: fixed;
  bottom: 16px;
  right: 16px;
  --df-messenger-font-color: #000;
  --df-messenger-font-family: "Marcellus", Georgia, serif;
  --df-messenger-chat-background: #f3f6fc;
  --df-messenger-message-user-background: #d3e3fd;
  --df-messenger-message-bot-background: #fff;
}

/* ====================================================================
   Client logo ribbons (homepage, below "See all client projects")
   ==================================================================== */
.logo-ribbons { position: relative; overflow: hidden; padding: 0; }
.ribbons { position: relative; height: clamp(230px, 24vw, 420px); outline: none; }
.ribbon { position: absolute; top: 50%; left: -10%; width: 120%; padding: clamp(16px, 1.8vw, 26px) 0; }
.ribbon--blue { background: var(--menu-blue); transform: translateY(-50%) rotate(-5deg); z-index: 2; box-shadow: 0 18px 50px -20px rgba(0,0,0,.6); }
.ribbon--grey { background: #262626; transform: translateY(-50%) rotate(5deg); z-index: 1; }
.ribbon-track { display: flex; width: max-content; animation: ribbon-left 70s linear infinite; }
.ribbon--grey .ribbon-track { animation-name: ribbon-right; animation-duration: 80s; }
.ribbon-set { display: flex; align-items: center; gap: clamp(56px, 6vw, 110px); list-style: none; margin: 0; padding: 0 clamp(28px, 3vw, 55px); }
.ribbon-set li { flex-shrink: 0; display: flex; align-items: center; }
.ribbon-set img { display: block; max-width: none; height: auto; }
.ribbons:focus-visible .ribbon-track { animation-play-state: paused; } /* keyboard users can stop it; hovering does not */
.ribbons:focus-visible { box-shadow: inset 0 0 0 2px var(--menu-blue); }
@keyframes ribbon-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ribbon-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (max-width: 720px) {
  .ribbon-set img { transform: scale(.85); }
  .ribbon--blue { transform: translateY(-50%) rotate(-6deg); }
  .ribbon--grey { transform: translateY(-50%) rotate(6deg); }
}
@media (prefers-reduced-motion: reduce) { .ribbons .ribbon .ribbon-track { animation: none; transform: translateX(-12%); } }

/* ====================================================================
   Headings fade in as their section scrolls into view (js/main.js)
   ==================================================================== */
/* hidden instantly when JS sets it up; the transition only runs on the way in */
.heading-reveal { opacity: 0; transform: translateY(22px); filter: blur(6px); }
.heading-reveal.is-visible {
  opacity: 1; transform: none; filter: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  transition-delay: var(--heading-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) { .heading-reveal { opacity: 1; transform: none; filter: none; transition: none; } }

/* ====================================================================
   Page loader (markup + timing in partials/header.html)
   1. The logo's three chevrons rise out of a floor, top one first, and
      stretch as they travel.
   2. While the page loads, a pulse runs up the stack, bottom to top.
   3. On leaving, the chevrons dip and launch upward; the white curtain
      lifts on an edge cut at the same angle as the chevrons, trailed
      by a blue band, and the page's own entrance animations play.
   ==================================================================== */
.ispl-loader {
  --l-blue: #1554ac;     /* the logo blue */
  --l-blue-hi: #3d7dff;  /* pulse highlight */
  --l-edge: 35vw;        /* curtain edge: the logo chevron's slope (34.9 / 50) across half the screen */
  --l-band: 24.6vw;      /* blue band: the logo chevron's thickness (24.6 / 100) at screen width */
  position: fixed; inset: 0; z-index: 2147483000;
}
.ispl-loader__band, .ispl-loader__panel { position: absolute; inset: 0; }
.ispl-loader__band { background: var(--l-blue); }
.ispl-loader__panel { background: #fff; display: grid; place-items: center; }
.ispl-loader__stage { position: relative; width: clamp(62px, 7.5vw, 92px); }
.ispl-loader__mark { display: block; width: 100%; height: auto; overflow: visible; fill: var(--l-blue); }
.ispl-loader__arrow, .ispl-loader__pulse { transform-box: fill-box; transform-origin: 50% 50%; }

/* 1 — rise */
.ispl-loader__arrow { animation: isplRise .62s cubic-bezier(.22,.9,.3,1) both; animation-delay: calc(.12s + var(--i) * .11s); }
@keyframes isplRise {
  0%   { transform: translateY(var(--from)) scaleY(1.45); }
  72%  { transform: translateY(-4px) scaleY(.96); }
  100% { transform: translateY(0) scaleY(1); }
}
.ispl-loader__floor {
  position: absolute; left: -35%; right: -35%; bottom: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(21,84,172,.38), transparent);
  animation: isplFloor 1.25s ease both;
}
@keyframes isplFloor {
  0%   { transform: scaleX(0); opacity: 0; }
  22%  { transform: scaleX(1); opacity: 1; }
  70%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(.6); opacity: 0; }
}

/* 2 — pulse while loading: bottom chevron first */
.ispl-loader__pulse { animation: isplPulse 1.3s cubic-bezier(.45,0,.55,1) infinite; animation-delay: calc(1.05s + (2 - var(--i)) * .11s); }
@keyframes isplPulse {
  0%, 42%, 100% { transform: translateY(0); fill: var(--l-blue); }
  15%           { transform: translateY(-7px); fill: var(--l-blue-hi); }
}

/* 3 — leave */
.ispl-loader.is-leaving { pointer-events: none; }
.ispl-loader.is-leaving .ispl-loader__arrow { animation: isplLaunch .52s cubic-bezier(.5,0,.75,0) both; animation-delay: calc(var(--i) * 55ms); }
@keyframes isplLaunch {
  0%   { transform: translateY(0) scaleY(1); opacity: 1; }
  22%  { transform: translateY(6px) scaleY(.9); opacity: 1; }
  100% { transform: translateY(-200px) scaleY(1.6); opacity: 0; }
}
.ispl-loader.is-leaving .ispl-loader__panel { animation: isplLiftPanel 1s cubic-bezier(.76,0,.24,1) .16s both; will-change: clip-path; }
.ispl-loader.is-leaving .ispl-loader__band  { animation: isplLiftBand  1s cubic-bezier(.76,0,.24,1) .16s both; will-change: clip-path; }
/* Both edges travel together, one band-width apart, so the blue reads as one giant logo chevron */
@keyframes isplLiftPanel {
  from { clip-path: polygon(0 0, 100% 0, 100% calc(100% + var(--l-edge)), 50% 100%, 0 calc(100% + var(--l-edge))); }
  to   { clip-path: polygon(0 0, 100% 0, 100% calc(0px - var(--l-band)), 50% calc(0px - var(--l-edge) - var(--l-band)), 0 calc(0px - var(--l-band))); }
}
@keyframes isplLiftBand {
  from { clip-path: polygon(0 0, 100% 0, 100% calc(100% + var(--l-edge) + var(--l-band)), 50% calc(100% + var(--l-band)), 0 calc(100% + var(--l-edge) + var(--l-band))); }
  to   { clip-path: polygon(0 0, 100% 0, 100% 0, 50% calc(0px - var(--l-edge)), 0 0); }
}

/* Hold the page's own entrance animations until the curtain starts to lift */
html.ispl-loading .hero h1 .word,
html.ispl-loading .hero p.lead,
html.ispl-loading .hero-actions,
html.ispl-loading .hero-badges,
html.ispl-loading .hero-visual .frame,
html.ispl-loading .page-hero h1,
html.ispl-loading .page-hero > .container > p,
html.ispl-loading .page-hero > .container > .btn { animation-play-state: paused; }
html.ispl-loading .reveal.in-view { opacity: 0; transform: translateY(24px); }
html.ispl-loading .heading-reveal.is-visible { opacity: 0; transform: translateY(22px); filter: blur(6px); transition: none; }

@media (prefers-reduced-motion: reduce) { .ispl-loader { display: none !important; } }
