/* Dijar Vrella personal site. No build step, no external dependencies. */
:root {
  --bg: #f7f8fa;
  --bg-alt: #eef1f5;
  --surface: #ffffff;
  --surface-2: #f3f5f8;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --border: #e2e8f0;
  --accent: #0b6bcb;
  --accent-2: #0e9488;
  --accent-ink: #ffffff;
  --accent-soft: #e6f0fb;
  --new: #0f766e;
  --new-bg: #e6f6f3;
  --star: #b45309;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --radius: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f14;
    --bg-alt: #0f151c;
    --surface: #131a23;
    --surface-2: #18212c;
    --text: #e6edf5;
    --text-2: #a7b3c2;
    --text-3: #8592a3;
    --border: #233040;
    --accent: #4ea3f5;
    --accent-2: #2dd4bf;
    --accent-ink: #06121f;
    --accent-soft: #10243a;
    --new: #5eead4;
    --new-bg: #0e2a28;
    --star: #fbbf24;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.muted { color: var(--text-2); font-weight: 600; }

/* Nav */
/* Fixed bar with a constant 60px box, so compacting never moves the page.
   The backdrop layer scales to 52px and the content lifts 4px, both with transforms. */
body { padding-top: 60px; }
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform-origin: top;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform .35s var(--ease), background-color .35s, border-color .35s, box-shadow .35s;
}
.nav.scrolled::before {
  transform: scaleY(.8667); background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom-color: var(--border); box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .35);
}
.nav-inner { display: flex; align-items: center; gap: 16px; height: 60px; transition: transform .35s var(--ease); }
.nav.scrolled .nav-inner { transform: translateY(-4px); }
.nav nav { margin-left: -10px; min-width: 0; }
.nav .btn { margin-left: auto; flex: none; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-ic { width: 17px; height: 17px; fill: currentColor; }
.btn-sm { padding: 7px 13px; font-size: 14px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-3); }

/* Hero */
.hero { padding: 56px 0 40px; position: relative; isolation: isolate; }
/* Hero backdrop: two soft colour fields that drift slowly, plus a faint grid.
   main.js moves the whole layer at a fraction of the scroll speed (parallax). */
.hero-bg { position: absolute; inset: -60px 0 -80px 0; z-index: -1; overflow: hidden; pointer-events: none; will-change: transform; }
.blob { position: absolute; border-radius: 50%; filter: blur(10px); will-change: transform; }
.b1 { width: 640px; height: 420px; right: -120px; top: -80px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); animation: drift1 18s ease-in-out infinite alternate; }
.b2 { width: 560px; height: 380px; left: -160px; top: 0; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent); animation: drift2 22s ease-in-out infinite alternate; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, #000, transparent 75%); }
@keyframes drift1 { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-90px, 50px, 0) scale(1.08); } }
@keyframes drift2 { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(110px, 30px, 0) scale(1.06); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px color-mix(in srgb, #16a34a 25%, transparent); }
h1 { font-size: clamp(34px, 5.2vw, 54px); font-weight: 800; margin: 18px 0 0; letter-spacing: -.025em; }
.h1-role { display: block; font-size: .5em; font-weight: 700; color: var(--text-2); margin-top: 10px; letter-spacing: -.01em; }
.h1-role a { color: var(--accent); text-decoration: none; }
.h1-role a:hover { text-decoration: underline; }
.tagline { margin: 16px 0 18px; font-size: 15px; font-weight: 600; color: var(--text-3); letter-spacing: .01em; }
.lead { font-size: 18px; color: var(--text-2); max-width: 62ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cta-row.center { justify-content: center; }

.hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); text-align: center; }
.avatar-lg { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 4px solid var(--surface); box-shadow: 0 0 0 2px var(--border); }
.hc-role { color: var(--text-2); font-size: 14.5px; font-weight: 600; margin-top: 2px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 0; }
.stats div { background: var(--surface-2); border-radius: 12px; padding: 12px 8px; display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 12px; color: var(--text-3); line-height: 1.35; }
.stats dd { margin: 0 0 2px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.avail { margin-top: 14px; text-align: left; border-top: 1px solid var(--border); padding-top: 14px; }
.avail-h { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; }
.avail-h svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.avail ul { display: grid; gap: 4px; margin-top: 8px; font-size: 14px; color: var(--text-2); }
.avail li { display: flex; justify-content: space-between; }
.avail li span { font: 600 12.5px var(--mono); color: var(--text-3); }
.hc-note { margin-top: 14px; font-size: 13px; color: var(--text-3); }

/* Trusted strip */
.trusted { padding: 28px 0 44px; }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.trusted .kicker { text-align: center; color: var(--text-3); margin-bottom: 18px; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
/* Logos keep their brand colours, so each sits on a fixed tile colour in both themes:
   white for logos drawn for light backgrounds, near-black for the ones drawn for dark. */
.logos li { flex: 0 1 150px; min-width: 0; background: #ffffff; border: 1px solid var(--border); border-radius: 12px; height: 64px; display: grid; place-items: center; padding: 10px 14px; transition: transform .2s; }
/* Greybeam's mark is an app icon with no wordmark, so its name sits beside it. */
.logos li.with-name { display: flex; align-items: center; justify-content: center; gap: 9px; }
.logos li.with-name img { height: 32px; width: 32px; flex: none; }
.logos li.with-name span { font: 700 17px var(--font); color: #161616; letter-spacing: -.01em; }
.logos li.on-dark { background: #1a1a1a; border-color: #1a1a1a; }
@media (prefers-color-scheme: dark) { .logos li.on-dark { border-color: var(--border); } }
.logos li:hover { transform: translateY(-2px); }
.logos img { max-height: 36px; max-width: 100%; width: auto; height: auto; object-fit: contain; }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.sec-head { max-width: 720px; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; margin-top: 8px; }
.sub { color: var(--text-2); margin-top: 10px; font-size: 17px; }

/* Companies */
.companies { display: grid; gap: 20px; }
.company { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.company h3 { font-size: 21px; font-weight: 750; }
.company p { color: var(--text-2); }
.badge { display: inline-block; vertical-align: middle; margin-left: 8px; font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.link-arrow { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; font-size: 15px; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow svg, .p-name svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dd { padding: 24px; }
.dd-head { display: grid; gap: 10px; justify-items: start; }
.dd-head .badge { margin-left: 0; }
.dd-logo { margin: -4px 0 -2px -6px; }
.dd-logo img { height: 84px; width: auto; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 20px; }
.product { display: grid; align-content: start; gap: 4px; height: 100%; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid transparent; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.product:hover { border-color: var(--accent); transform: translateY(-1px); }
.p-name { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
a.product .p-name { color: var(--accent); }
.p-line { color: var(--text-2); font-size: 14.5px; line-height: 1.45; }

/* Expertise cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover, .card:focus-visible, .card.play { transform: translateY(-3px); box-shadow: var(--shadow); }
.card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }
.card h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.card p { color: var(--text-2); font-size: 15px; }
.card-new { border-color: color-mix(in srgb, var(--accent-2) 55%, var(--border)); background: linear-gradient(160deg, color-mix(in srgb, var(--accent-2) 9%, var(--surface)), var(--surface) 60%); }

/* Expertise diagrams. Each card carries a small inline SVG of the kind of system
   built in that area. Drawn faintly at rest; animations run only on hover, keyboard
   focus, or (touch screens) while the card is in view. Fixed strip height, so the
   card never changes size. Only transform, opacity and stroke-dashoffset animate. */
.dg { --dg-line: color-mix(in srgb, var(--text) 30%, transparent); height: 104px; margin: -8px -8px 16px; padding: 6px 8px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 5%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--accent) 10%, var(--border)); }
.dg svg { display: block; width: 100%; height: 100%; overflow: visible; opacity: .6; transition: opacity .35s; }
.card:hover .dg svg, .card:focus-visible .dg svg, .card.play .dg svg { opacity: 1; }
.dg * { animation-play-state: paused; }
.card:hover .dg *, .card:focus-visible .dg *, .card.play .dg * { animation-play-state: running; }
.dg .tx { font: 600 7.5px var(--font); fill: var(--text-3); }
.dg .box { fill: none; stroke: var(--dg-line); stroke-width: 1.2; }
.dg .cl { stroke-dasharray: 5 4; }
.dg .node { fill: none; stroke: var(--dg-line); stroke-width: 1; }
.dg .nd { fill: var(--surface); stroke: var(--accent); stroke-width: 1.3; }
.dg .lb { fill: var(--accent-soft); }
.dg .ln { fill: none; stroke: var(--dg-line); stroke-width: 1.2; }
.dg .flow { stroke: color-mix(in srgb, var(--accent) 65%, var(--dg-line)); stroke-dasharray: 3 4; animation: dg-flow 1.2s linear infinite; }
.dg .ah { fill: var(--accent); }
.dg .dot { fill: var(--accent); opacity: 0; }
.dg .bad { fill: #e5484d; }
.dg .pod { fill: var(--accent); opacity: .85; transform-box: fill-box; transform-origin: center; animation: dg-pop 3.6s ease-in-out infinite; }
.dg .pulse { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: dg-pulse 2.4s ease-out infinite; }
.dg .n-r1, .dg .l-r1 { animation: dg-fail 4.8s ease-in-out infinite; }
.dg .l-r1 { animation: dg-flow 1.2s linear infinite, dg-fail 4.8s ease-in-out infinite; }
.dg .loop { animation: dg-loop 5s linear infinite; }
.dg .ok { animation: dg-ok 4s linear infinite; }
.dg .bad { animation: dg-bad 4s ease-in-out 1.4s infinite; }
.dg .spark { fill: none; stroke: var(--accent-2); stroke-width: 1.5; stroke-linejoin: round; stroke-dasharray: 300; animation: dg-draw 4s ease-in-out infinite; }
.dg .row { stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; opacity: .6; animation: dg-row 1.8s ease-in-out infinite; }
.dg .w1 { animation-delay: .3s; } .dg .w2 { animation-delay: .6s; }
.dg .cell { fill: var(--accent); opacity: .18; animation: dg-cell 2.4s ease-in-out infinite; }
.dg .edge { fill: none; stroke: var(--dg-line); stroke-dasharray: 3 3; }
.dg .pk { animation: 1.6s ease-in infinite; }
.dg .p0 { animation-name: dg-p0; } .dg .p1 { animation-name: dg-p1; animation-delay: .4s; } .dg .p2 { animation-name: dg-p2; animation-delay: .8s; } .dg .p3 { animation-name: dg-p3; animation-delay: 1.2s; }
.dg .ag { transform-box: fill-box; transform-origin: center; animation: dg-agent 2.4s ease-in-out infinite; }
.dg .a1 { animation-delay: .5s; } .dg .a2 { animation-delay: 1s; }
.dg .ai { animation: dg-ai 4.4s linear infinite; }
.dg .check { fill: none; stroke: #16a34a; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; animation: dg-check 4.4s ease-in-out infinite; }
.dg .d0 { animation-delay: 0.00s; }
.dg .d1 { animation-delay: 0.15s; }
.dg .d2 { animation-delay: 0.30s; }
.dg .d3 { animation-delay: 0.45s; }
.dg .d4 { animation-delay: 0.60s; }
.dg .d5 { animation-delay: 0.75s; }
.dg .d6 { animation-delay: 0.90s; }
.dg .d7 { animation-delay: 1.05s; }
.dg .d8 { animation-delay: 1.20s; }
.dg .d9 { animation-delay: 1.35s; }
.dg .d10 { animation-delay: 1.50s; }
.dg .d11 { animation-delay: 1.65s; }
.dg .c0 { animation-delay: 0.00s; }
.dg .c1 { animation-delay: 1.05s; }
.dg .c2 { animation-delay: 2.10s; }
.dg .c3 { animation-delay: 0.75s; }
.dg .c4 { animation-delay: 1.80s; }
.dg .c5 { animation-delay: 0.45s; }
.dg .c6 { animation-delay: 1.50s; }
.dg .c7 { animation-delay: 0.15s; }
.dg .c8 { animation-delay: 1.20s; }
.dg .c9 { animation-delay: 2.25s; }
.dg .c10 { animation-delay: 0.90s; }
.dg .c11 { animation-delay: 1.95s; }
.dg .c12 { animation-delay: 0.60s; }
.dg .c13 { animation-delay: 1.65s; }
.dg .c14 { animation-delay: 0.30s; }
.dg .c15 { animation-delay: 1.35s; }
@keyframes dg-flow { to { stroke-dashoffset: -14; } }
@keyframes dg-pulse { 0% { opacity: 0; transform: scale(.4); } 12% { opacity: .7; } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes dg-fail { 0%, 35%, 78%, 100% { opacity: 1; } 45%, 68% { opacity: .15; } }
@keyframes dg-pop { 0%, 60% { transform: scale(1); opacity: .85; } 68%, 76% { transform: scale(0); opacity: 0; } 88% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); opacity: .85; } }
@keyframes dg-loop { 0% { transform: translate(40px, 28px); opacity: 0; } 3% { opacity: 1; } 22.8% { transform: translate(140px, 28px); } 45.7% { transform: translate(240px, 28px); } 61.4% { transform: translate(190px, 76px); } 84.2% { transform: translate(90px, 76px); } 97% { opacity: 1; } 100% { transform: translate(40px, 28px); opacity: 0; } }
@keyframes dg-ok { 0% { transform: translate(22px, 40px); opacity: 0; } 4% { opacity: 1; } 92% { transform: translate(258px, 40px); opacity: 1; } 100% { transform: translate(258px, 40px); opacity: 0; } }
@keyframes dg-bad { 0% { transform: translate(22px, 40px); opacity: 0; } 6% { opacity: 1; } 30% { transform: translate(60px, 40px); } 50% { transform: translate(28px, 40px); opacity: 1; } 60%, 100% { transform: translate(28px, 40px); opacity: 0; } }
@keyframes dg-draw { 0% { stroke-dashoffset: 0; } 1% { stroke-dashoffset: 300; } 70%, 100% { stroke-dashoffset: 0; } }
@keyframes dg-row { 0%, 100% { opacity: .6; } 30% { opacity: .15; } 60% { opacity: 1; } }
@keyframes dg-cell { 0%, 100% { opacity: .18; } 40% { opacity: .95; } }
@keyframes dg-p0 { 0% { transform: translate(113px, 50px); opacity: 0; } 10% { opacity: 1; } 85% { transform: translate(196px, 14px); opacity: 1; } 100% { transform: translate(196px, 14px); opacity: 0; } }
@keyframes dg-p1 { 0% { transform: translate(113px, 50px); opacity: 0; } 10% { opacity: 1; } 85% { transform: translate(196px, 38px); opacity: 1; } 100% { transform: translate(196px, 38px); opacity: 0; } }
@keyframes dg-p2 { 0% { transform: translate(113px, 50px); opacity: 0; } 10% { opacity: 1; } 85% { transform: translate(196px, 62px); opacity: 1; } 100% { transform: translate(196px, 62px); opacity: 0; } }
@keyframes dg-p3 { 0% { transform: translate(113px, 50px); opacity: 0; } 10% { opacity: 1; } 85% { transform: translate(196px, 86px); opacity: 1; } 100% { transform: translate(196px, 86px); opacity: 0; } }
@keyframes dg-agent { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
@keyframes dg-ai { 0% { transform: translate(86px, 50px); opacity: 0; } 5% { opacity: 1; } 30%, 52% { transform: translate(172px, 50px); } 70% { transform: translate(214px, 50px); } 86% { transform: translate(244px, 50px); opacity: 1; } 95%, 100% { transform: translate(244px, 50px); opacity: 0; } }
@keyframes dg-check { 0% { stroke-dashoffset: 0; } 1%, 34% { stroke-dashoffset: 22; } 48%, 100% { stroke-dashoffset: 0; } }
/* The AI card closes the grid at full width, diagram beside the text. */
.card-new { grid-column: 1 / -1; }
@media (min-width: 721px) {
  .card-new { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 28px; align-items: center; }
  .card-new .dg { grid-row: 1 / span 2; height: 150px; margin: -6px 0; }
  .card-new h3 { align-self: end; }
  .card-new p { align-self: start; }
}

.banner { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 28px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.banner h3 { font-size: 20px; font-weight: 750; }
.banner p { color: var(--text-2); margin-top: 6px; max-width: 64ch; }
.banner .btn { flex: none; }

/* Stack */
/* One chip cloud. With JavaScript, a row of category buttons highlights that
   category's tools in place (others dim), so the block never changes height. */
.stack { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 22px 20px; box-shadow: var(--shadow); }
.stack-filter { display: flex; flex-wrap: wrap; gap: 5px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.stack-filter[hidden] { display: none; }
.stack-filter button { font: 600 12.5px var(--font); color: var(--text-2); background: transparent; border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.stack-filter button:hover { color: var(--text); border-color: var(--text-3); }
.stack-filter button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.cloud li { font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); line-height: 1.6; transition: opacity .25s, background-color .25s, border-color .25s, color .25s; }
.cloud.filtering li { opacity: .28; }
.cloud.filtering li.on { opacity: 1; background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); font-weight: 600; }
.note { margin-top: 22px; color: var(--text-3); font-size: 15px; text-align: center; }

/* Testimonials */
.quotes { columns: 3 300px; column-gap: 16px; }
.quote { break-inside: avoid; margin: 0 0 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: grid; gap: 18px; }
.quote blockquote { margin: 0; color: var(--text); font-size: 15.5px; position: relative; padding-top: 18px; }
.quote blockquote::before { content: "“"; position: absolute; top: -12px; left: -2px; font: 800 44px/1 Georgia, serif; color: var(--accent); opacity: .5; }
.quote figcaption { display: grid; grid-template-columns: 48px 1fr; gap: 4px 12px; align-items: center; border-top: 1px solid var(--border); padding-top: 14px; }
.av { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; grid-row: span 2; position: relative; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; }
/* Initials show whenever there is no photo (missing file or none given). */
.av::before { content: attr(data-initials); color: #fff; font: 700 16px var(--font); letter-spacing: .02em; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.who { display: grid; line-height: 1.35; }
.who strong { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.who > span { color: var(--text-3); font-size: 13.5px; }
.co-logo { width: 16px; height: 16px; border-radius: 4px; background: #fff; padding: 1px; border: 1px solid var(--border); }
.meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--text-3); }
.rating { color: var(--star); font-weight: 700; }

/* Contact */
.contact { text-align: center; }
.contact-inner { max-width: 760px; }
.contact h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; }
.contact p { color: var(--text-2); margin: 12px auto 0; max-width: 56ch; font-size: 17px; }

.footer { border-top: 1px solid var(--border); padding: 26px 0 32px; font-size: 14px; color: var(--text-3); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.footer-left { display: grid; gap: 6px; }
.founder-of { display: flex; align-items: center; gap: 10px; color: var(--text-2); }
.founder-of a { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-weight: 700; }
.founder-of img { height: 22px; width: 22px; }
.footer ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer a { color: var(--text-2); text-decoration: none; }
.footer a:hover { color: var(--text); text-decoration: underline; }

/* Motion */
/* Hidden state exists only when main.js has set .js on <html> (never with reduced motion),
   so the page is fully visible without JavaScript. Delays are set per element by main.js. */
.js .reveal { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 440px; }
  .companies { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero { padding-top: 36px; }
  .section { padding: 56px 0; }
  .banner { flex-direction: column; align-items: flex-start; }
  .products { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .stack { padding: 16px 16px 18px; }
  .cloud li { font-size: 12.5px; padding: 1px 9px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 6px 7px; font-size: 13.5px; }
  .nav nav { margin-left: -7px; }
  .logos li { flex-basis: calc((100% - 20px) / 3); }
}
@media (max-width: 420px) {
  .nav-links li:nth-child(4) { display: none; }
  .nav .btn-sm { padding: 6px 11px; font-size: 13.5px; }
  .cloud { gap: 5px; }
  .cloud li { font-size: 12px; padding: 0 8px; }
  .stack-filter button { padding: 2px 9px; font-size: 12px; }
  .wrap { padding: 0 16px; }
  .lead { font-size: 17px; }
  .logos li { flex-basis: calc((100% - 10px) / 2); }
  .dd-logo img { height: 64px; }
  .cta-row .btn { flex: 1 1 100%; }
}
