/* ===========================================================
   UNI SIM — styles.css
   Single file, no build step. Mobile-first.
   =========================================================== */

:root {
  --orange:        #e05504;
  --orange-dark:   #b94403;
  --orange-light:  #f97b3d;
  --orange-tint:   #fff5ed;
  --orange-tint-2: #ffe6d3;

  --ink:           #0e0e10;
  --ink-2:         #1f1f24;
  --muted:         #5b5b66;
  --line:          #ececef;
  --bg:            #ffffff;
  --bg-alt:        #faf8f6;
  --bg-dark:       #0e0e10;

  --radius:        14px;
  --radius-lg:     22px;
  --shadow-sm:     0 1px 2px rgba(14,14,16,.06), 0 2px 8px rgba(14,14,16,.04);
  --shadow-md:     0 10px 30px rgba(14,14,16,.08);
  --shadow-lg:     0 30px 60px rgba(224,85,4,.18);

  --container:     1180px;
  --font-sans:     'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  --ease:          cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1em; color: var(--muted); }

.container { width: min(100% - 2.2rem, var(--container)); margin-inline: auto; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 999; }
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .9rem;
}
.eyebrow--dark { color: var(--orange-dark); }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 56ch; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--orange); font-weight: 600; transition: color .2s var(--ease);
}
.link-arrow:hover { color: var(--orange-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: -.005em;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-primary,
a.btn-primary {
  background: var(--orange-dark);
  color: #fff !important;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover,
a.btn-primary:hover { background: #8c3402; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--orange);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--orange-dark);
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 0;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: transform .25s var(--ease), filter .25s var(--ease);
}
.brand:hover .brand-logo { transform: translateY(-1px); filter: brightness(0) invert(1) drop-shadow(0 4px 14px rgba(0,0,0,.25)); }
@media (max-width: 520px) {
  .brand-logo { height: 32px; }
  /* Stagger the two bottom hero cards vertically so they don't overlap on narrow screens */
  .hero-card--industry { bottom: 24%; }
  .hero-card--saas     { bottom: 3%;  }
}

.nav-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: transparent;
  transition: background .2s var(--ease);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.menu-toggle:hover,
.nav-menu:hover .menu-toggle,
.nav-menu:focus-within .menu-toggle { background: rgba(255,255,255,.18); }
.menu-toggle .bar {
  display: block; width: 18px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .15s var(--ease);
}
.menu-toggle .bar + .bar { margin-top: 4px; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(1),
.nav-menu:hover .menu-toggle .bar:nth-child(1),
.nav-menu:focus-within .menu-toggle .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }

.menu-toggle[aria-expanded="true"] .bar:nth-child(2),
.nav-menu:hover .menu-toggle .bar:nth-child(2),
.nav-menu:focus-within .menu-toggle .bar:nth-child(2) { opacity: 0; }

.menu-toggle[aria-expanded="true"] .bar:nth-child(3),
.nav-menu:hover .menu-toggle .bar:nth-child(3),
.nav-menu:focus-within .menu-toggle .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-list {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  margin: 0;
  padding: .5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 220px;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  z-index: 60;
}
/* Invisible hover bridge so the menu stays open while the cursor travels from the button down into the dropdown */
.nav-list::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0; right: 0;
  height: 14px;
}
.nav-menu:hover .nav-list,
.nav-menu:focus-within .nav-list,
.nav-list.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear 0s;
}
.nav-list a:not(.btn) {
  display: block;
  padding: .55rem .8rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-2);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-list a:not(.btn):hover {
  background: var(--orange-tint);
  color: var(--orange-dark);
}

.header-cta { flex-shrink: 0; }
.site-header .btn-primary,
.site-header a.btn-primary {
  background: #fff;
  color: var(--orange-dark) !important;
}
.site-header .btn-primary:hover,
.site-header a.btn-primary:hover {
  background: var(--orange-tint);
  color: var(--orange-dark) !important;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; max-width: 720px; aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--orange-tint-2), transparent 70%);
  z-index: -1;
}
.hero-grid {
  display: grid; gap: 3rem;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
}
.hero-copy h1 { margin-bottom: 1rem; }
.hero-copy .lead { margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.4rem; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  list-style: none; margin: 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line);
}
.hero-stats li { display: flex; flex-direction: column; gap: .15rem; }
.hero-stats strong { font-size: 1.15rem; color: var(--ink); font-weight: 800; }
.hero-stats span { font-size: .85rem; color: var(--muted); }

.hero-visual {
  position: relative; min-height: 380px;
  display: grid; place-items: center;
  perspective: 1200px;
}
.hero-blob {
  position: absolute; inset: 0; margin: auto; width: 360px; height: 360px; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #ffb380 0%, transparent 55%),
    linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
  filter: blur(.5px);
  box-shadow: var(--shadow-lg);
  animation: float 8s ease-in-out infinite;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .3s var(--ease);
  transform-style: preserve-3d;
  will-change: transform, translate;
}
.hero-blob::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 30%) var(--my, 30%),
              rgba(255,255,255,.55) 0%, rgba(255,255,255,.18) 22%, transparent 55%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
  mix-blend-mode: screen;
}
.hero-visual.is-active .hero-blob {
  box-shadow: 0 40px 80px rgba(224,85,4,.32);
}
.hero-visual.is-active .hero-blob::after { opacity: 1; }
.hero-visual.is-pressed .hero-blob { transform: scale(.97) rotateX(var(--tx,0deg)) rotateY(var(--ty,0deg)); }

.hero-card {
  position: absolute; z-index: 2;
  background: #fff; border-radius: 14px;
  padding: .8rem 1rem;
  display: flex; align-items: center; gap: .7rem;
  box-shadow: var(--shadow-md);
  min-width: 220px;
  left: -8px; top: 30px;
  animation: rise 6s ease-in-out infinite;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
  will-change: transform, translate;
}
.hero-card { text-decoration: none; color: inherit; }
.hero-card-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(224,85,4,.15); }
.hero-card-body { display: flex; flex-direction: column; }
.hero-card-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.hero-card-value { font-size: .92rem; font-weight: 600; }
.hero-card-more  { font-size: .78rem; font-weight: 400; color: var(--muted); }

.hero-card--haptics    { top: 2%;    left: 50%; transform: translateX(-50%); right: auto;              animation-delay: 0s;    }
.hero-card--healthcare { top: 22%;   right: -8px; left: auto;                                         animation-delay: -1.2s; }
.hero-card--saas       { top: auto;  bottom: 10%; right: -8px; left: auto;                            animation-delay: -2.4s; }
.hero-card--oss        { top: 22%;   left: -8px;  right: auto;                                        animation-delay: -3.6s; }
.hero-card--industry   { top: auto;  bottom: 10%; left: -8px;  right: auto;                           animation-delay: -4.8s; }

.hero-card-dot--haptics    { background: #20c997; box-shadow: 0 0 0 4px rgba(32,201,151,.15); }
.hero-card-dot--healthcare { background: #be4bdb; box-shadow: 0 0 0 4px rgba(190,75,219,.15); }
.hero-card-dot--saas       { background: #4263eb; box-shadow: 0 0 0 4px rgba(66,99,235,.15);  }
.hero-card-dot--industry   { background: #f59f00; box-shadow: 0 0 0 4px rgba(245,159,0,.15);  }
.hero-card-dot--oss        { background: #0e0e10; box-shadow: 0 0 0 4px rgba(14,14,16,.15);   }

/* Capability pills around the hero blob */
.hero-pill {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .42rem .8rem .42rem .6rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: .76rem; font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  letter-spacing: -.005em;
  animation: pill-bob 5s ease-in-out infinite;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .3s var(--ease);
  will-change: transform, translate;
}
.hero-pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(224,85,4,.16);
}
@keyframes pill-bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -5px; } }

.hero-pill--haptics     { top: 4%;    right: 4%;   animation-delay: -.4s; }
.hero-pill--healthcare  { top: 28%;   right: -8%;  animation-delay: -1s;  }
.hero-pill--saas        { bottom: 8%; right: -4%;  animation-delay: -1.6s;}
.hero-pill--industry    { bottom: 4%; left: 4%;    animation-delay: -2.2s;}
.hero-pill--oss         { top: 46%;   left: -12%;  animation-delay: -3.4s;}

.hero-pill { text-decoration: none; }
.hero-pill--haptics    .hero-pill-dot { background: #20c997; box-shadow: 0 0 0 3px rgba(32,201,151,.18); }
.hero-pill--healthcare .hero-pill-dot { background: #be4bdb; box-shadow: 0 0 0 3px rgba(190,75,219,.18); }
.hero-pill--saas       .hero-pill-dot { background: #4263eb; box-shadow: 0 0 0 3px rgba(66,99,235,.18); }
.hero-pill--industry   .hero-pill-dot { background: #f59f00; box-shadow: 0 0 0 3px rgba(245,159,0,.18); }
.hero-pill--oss        .hero-pill-dot { background: #0e0e10; box-shadow: 0 0 0 3px rgba(14,14,16,.18); }

/* Keyframes use the `translate` property so JS-driven `transform` can compose with them */
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes rise  { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* ---------- Trust strip ---------- */
.trust { padding: 1.6rem 0; background: var(--bg-alt); border-block: 1px solid var(--line); }
.trust-label { text-align: center; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .9rem; font-weight: 600; }
.trust-logos {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem 2.2rem;
  list-style: none; margin: 0; padding: 0;
  color: var(--ink-2); font-weight: 700; opacity: .75;
}

/* ---------- About ---------- */
.about { padding: clamp(4rem, 8vw, 7rem) 0; }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.about-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.about-cards li {
  padding: 1.2rem 1.3rem; border-radius: var(--radius);
  background: var(--bg-alt); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .25rem;
}
.about-cards strong { font-size: 1.05rem; }
.about-cards span { color: var(--muted); font-size: .96rem; }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 780px; margin: 0 auto 2.8rem; }
.section-head .section-lead { color: var(--muted); }
.section-head--row { text-align: left; max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }

/* ---------- Products ---------- */
.products { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--bg-alt); }
.product-category { margin-top: 3.2rem; }
.product-category:first-of-type { margin-top: 0; }
.category-head {
  display: flex; align-items: baseline; gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.category-head h3 {
  font-size: 1.4rem; margin: 0; letter-spacing: -.02em;
}
.category-head p {
  flex-basis: 100%;
  font-size: .95rem;
  margin: .3rem 0 0;
  color: var(--muted);
}
.category-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(224,85,4,.15);
  flex-shrink: 0;
  align-self: center;
}
.category-dot--care     { background: #be4bdb; box-shadow: 0 0 0 4px rgba(190,75,219,.15); }
.category-dot--saas     { background: #4263eb; box-shadow: 0 0 0 4px rgba(66,99,235,.15); }
.category-dot--industry { background: #f59f00; box-shadow: 0 0 0 4px rgba(245,159,0,.15); }
.pill-pro {
  display: inline-block;
  vertical-align: middle;
  font-size: .58rem; font-weight: 800; letter-spacing: .12em;
  padding: .14rem .42rem; margin-left: .35rem;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
}
.product-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.product-media {
  position: relative;
  aspect-ratio: 16/10;
  background:
    linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
  display: grid; place-items: center;
  overflow: hidden;
}
.product-media::before {
  content: attr(data-letter);
  font-size: 5rem; font-weight: 900;
  color: rgba(255,255,255,.22);
  letter-spacing: -.04em;
}
.product-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

/* Variant for product cards needing a clean white backdrop (e.g. transparent PNGs) */
.product-media--white {
  background: #fff;
}
.product-media--white::before { display: none; }

/* Variant for product cards needing a soft warm orange backdrop */
.product-media--soft {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), transparent 60%),
    linear-gradient(135deg, var(--orange-tint) 0%, var(--orange-tint-2) 100%);
}
.product-media--soft::before { color: rgba(224,85,4,.25); }

/* Variant for product cards needing a soft clinical-blue backdrop */
.product-media--blue {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.7), transparent 60%),
    linear-gradient(135deg, #eaf1fc 0%, #d9e6f7 100%);
}
.product-media--blue::before { display: none; }

/* Variant for SaaS product cards using a square logo/icon SVG */
.product-media--svg {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(135deg, #1a1a1f 0%, #0e0e10 100%);
}
.product-media--svg::before { display: none; }
.product-media--svg img {
  object-fit: contain;
  padding: 2rem;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.35));
  transition: transform .4s var(--ease);
}
.product-card:hover .product-media--svg img { transform: translateY(-3px) scale(1.03); }
.product-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .55rem; }
.product-body h3, .product-body h4 { margin: 0; font-size: 1.25rem; font-weight: 700; }
.product-body p { margin: 0; font-size: .95rem; }
.product-meta {
  list-style: none; padding: 0; margin: .4rem 0 .8rem; display: flex; flex-wrap: wrap; gap: .4rem;
}
.product-meta li {
  font-size: .76rem; font-weight: 600;
  padding: .25rem .6rem; border-radius: 999px;
  background: var(--orange-tint); color: var(--orange-dark);
}

/* (SaaS dark section styles removed — SaaS is now a sub-category inside Products) */

/* ---------- Open Source ---------- */
.opensource { padding: clamp(4rem, 8vw, 7rem) 0; }
.oss-github-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem .9rem;
  margin: .4rem 0 1.2rem;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: .88rem; font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: -.01em;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.oss-github-badge:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.oss-github-badge svg { flex-shrink: 0; }
.oss-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.oss-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  background: #fff;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  display: flex; flex-direction: column; gap: .6rem;
}
.oss-card:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.oss-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; }
.oss-head h3 { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.05rem; }
.oss-tag {
  font-size: .72rem; font-weight: 700;
  padding: .22rem .55rem; border-radius: 6px;
  background: var(--orange-tint); color: var(--orange-dark);
  white-space: nowrap;
}
.oss-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: .4rem; }
.oss-stars { color: var(--muted); font-size: .85rem; }

/* ---------- Founder teaser (homepage) ---------- */
.founder { padding: clamp(4rem, 8vw, 7rem) 0; }
.founder-grid {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) 1.2fr;
  gap: 3rem;
  align-items: center;
}
.founder-photo {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/5;
  position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.founder-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
  display: block;
}
.founder-photo:hover { transform: translateY(-3px); box-shadow: 0 28px 60px rgba(14,14,16,.12); }
.founder-photo:hover img { transform: scale(1.04); }
.founder-role {
  font-size: .95rem; color: var(--orange-dark);
  font-weight: 600;
  margin: -.2rem 0 1rem;
}
@media (max-width: 720px) {
  .founder-grid { grid-template-columns: 1fr; }
  .founder-photo { max-width: 320px; }
}

/* ---------- Founder profile page (about-james.html) ---------- */
.founder-hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 5vw, 4rem); position: relative; overflow: hidden; }
.founder-hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; max-width: 720px; aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--orange-tint-2), transparent 70%);
  z-index: -1;
}
.founder-hero-grid {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) 1.1fr;
  gap: 3rem;
  align-items: center;
}
.founder-portrait {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  background: var(--bg-alt);
}
.founder-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder-hero .lead { margin: 1rem 0 1.8rem; }
.founder-cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.founder-bio { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--bg-alt); }
.founder-bio-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}
.founder-bio-copy h2 { font-size: 1.5rem; margin-top: 2rem; }
.founder-bio-copy h2:first-of-type { margin-top: 0; }
.founder-bio-copy p { font-size: 1.05rem; line-height: 1.7; color: var(--ink-2); }
.founder-bio-copy strong { color: var(--ink); }
.founder-bio-copy a { color: var(--orange); font-weight: 600; }
.founder-bio-copy a:hover { color: var(--orange-dark); }

.founder-quote {
  margin: 0 0 2rem;
  padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--orange);
  background: var(--orange-tint);
  border-radius: 0 12px 12px 0;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink);
  font-style: italic;
}

.founder-education {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .8rem;
}
.founder-education li {
  padding: .8rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .98rem;
  color: var(--ink-2);
}
.founder-education strong { color: var(--ink); display: block; margin-bottom: .15rem; }

.founder-facts {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.7rem;
  position: sticky; top: 90px;
}
.founder-facts h3 {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--orange-dark); font-weight: 700;
  margin: 0 0 1rem;
}
.founder-facts ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.founder-facts li { display: flex; flex-direction: column; gap: .15rem; }
.founder-facts strong { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.founder-facts span { font-size: .95rem; color: var(--ink-2); }
.founder-facts a { color: var(--orange); font-weight: 600; }

.press-kit { padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem); }
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.press-thumb {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 4/5;
  background: var(--bg-alt);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.press-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease);
  display: block;
}
.press-thumb:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.press-thumb:hover img { transform: scale(1.05); }

@media (max-width: 820px) {
  .founder-hero-grid, .founder-bio-grid { grid-template-columns: 1fr; }
  .founder-portrait { max-width: 360px; }
  .founder-facts { position: static; }
}

/* ---------- Blog teaser ---------- */
.blog-teaser { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--bg-alt); }
.blog-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.blog-card {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.blog-card:hover .blog-media img { transform: scale(1.04); }
.blog-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
  display: grid; place-items: center;
}
.blog-media--alt { background: linear-gradient(135deg, #1f3a5c 0%, #4263eb 100%); }
.blog-media--care { background: linear-gradient(135deg, #6b2c91 0%, #be4bdb 100%); }
.blog-media::before {
  content: attr(data-letter);
  font-size: 5rem; font-weight: 900;
  color: rgba(255,255,255,.22);
  letter-spacing: -.04em;
  line-height: 1;
}
.blog-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.blog-card-body {
  padding: 1.4rem 1.5rem 1.5rem;
  display: flex; flex-direction: column; gap: .55rem;
  flex: 1;
}
.blog-tag {
  align-self: flex-start;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--orange-tint); color: var(--orange-dark);
  padding: .22rem .55rem; border-radius: 6px;
}
.blog-card h3 { margin: .2rem 0 0; }
.blog-card p { font-size: .95rem; margin: 0; }
.blog-meta { font-size: .82rem; color: var(--muted); margin-top: auto; padding-top: .4rem; }

/* ---------- Contact ---------- */
.contact { padding: clamp(4rem, 8vw, 7rem) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.contact-info li { display: flex; flex-direction: column; gap: .15rem; }
.contact-info strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.contact-info a { color: var(--orange); font-weight: 600; }
.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.7rem;
}
.contact-form label { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea {
  padding: .75rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(224,85,4,.18);
}
.contact-form button { grid-column: 1 / -1; justify-self: start; }

/* ---------- Footer (logo-only, interactive) ---------- */
.site-footer {
  background: var(--bg-dark);
  padding: clamp(4rem, 9vw, 7rem) 1.5rem;
  display: grid; place-items: center;
  perspective: 1200px;
  overflow: hidden;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle 420px at var(--mx, 80%) var(--my, 30%),
              rgba(224,85,4,.38), rgba(224,85,4,.08) 40%, transparent 70%);
  pointer-events: none;
  opacity: .55;
  transition: opacity .35s var(--ease);
}
.site-footer:hover::before { opacity: 1; }
.footer-logo {
  display: inline-block;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .35s var(--ease);
  will-change: transform;
  cursor: pointer;
}
.footer-logo:hover { filter: drop-shadow(0 18px 38px rgba(224,85,4,.45)); }
.footer-logo:active { transform: scale(.97); transition-duration: .12s; }
.footer-logo-img {
  width: clamp(220px, 38vw, 360px); height: auto;
  display: block;
  /* Ensure the logo reads well on the dark footer */
  filter: drop-shadow(0 6px 18px rgba(224,85,4,.25));
}

/* ---------- Article / blog post pages ---------- */
.post-hero { padding: clamp(3rem, 6vw, 5rem) 0 2rem; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.post-hero .post-meta { color: var(--muted); font-size: .9rem; }
.post-hero h1 { max-width: 22ch; margin-bottom: .6rem; }
.post-hero .post-lead { font-size: 1.12rem; max-width: 62ch; margin-bottom: 0; }

.post-body { padding: 3rem 0 4rem; }
.post-body .post-content { max-width: 70ch; margin-inline: auto; }
.post-content h2 { margin-top: 2.4rem; font-size: 1.55rem; }
.post-content h3 { margin-top: 1.8rem; font-size: 1.2rem; }
.post-content p, .post-content li { color: var(--ink-2); font-size: 1.04rem; line-height: 1.75; }
.post-content blockquote {
  margin: 1.6rem 0; padding: 1rem 1.2rem;
  border-left: 4px solid var(--orange);
  background: var(--orange-tint);
  border-radius: 0 10px 10px 0;
}
.post-content blockquote p { margin: 0; color: var(--ink); }
.post-content a { color: var(--orange); font-weight: 600; }
.post-content a:hover { color: var(--orange-dark); }
.post-content ul, .post-content ol { padding-left: 1.25rem; }
.post-content code { background: var(--orange-tint); color: var(--orange-dark); padding: .1rem .35rem; border-radius: 4px; font-size: .92em; }

.post-footer { max-width: 70ch; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* Blog index */
.blog-index-hero { padding: clamp(3rem, 6vw, 5rem) 0 2rem; }
.blog-index-hero h1 { max-width: 22ch; }
.blog-index-hero p { max-width: 62ch; }
.blog-index { padding: 1rem 0 5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 340px; }
  .hero-card--industry, .hero-card--saas, .hero-card--oss { display: none; }
}

@media (max-width: 720px) {
  .hero-stats { grid-template-columns: 1fr; gap: .6rem; }
  .hero-card--haptics, .hero-card--healthcare, .hero-card--industry, .hero-card--saas, .hero-card--oss { display: none; }
  .hero-card--haptics, .hero-card--healthcare, .hero-card--industry, .hero-card--saas { display: flex; }
  .hero-card--healthcare { right: -8px; }
  .contact-form { grid-template-columns: 1fr; padding: 1.3rem; }
  .section-head--row { flex-direction: column; align-items: start; }
  .category-head { flex-direction: column; align-items: start; gap: .4rem; }
  .header-cta { display: none; }  /* CTA hides on small screens — accessible inside dropdown via Contact link */
  .nav-list { min-width: 200px; }
  /* Product & OSS carousels */
  .product-grid,
  .oss-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: .25rem;
  }
  .product-grid::-webkit-scrollbar,
  .oss-grid::-webkit-scrollbar { display: none; }
  .product-card,
  .oss-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
