/* PSippr company (5 Oct 2026): layout of mjdev.org, colours of the PSippr sites (black, #141414 cards, #00e676 accent). */
:root { --bg: #000; --surface: #141414; --surface2: #1c1c1c; --accent: #00e676; --text: #e0e0e0; --muted: #9e9e9e; --line: #262626; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.dim { color: var(--muted); }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 12px clamp(16px, 4vw, 48px); background: rgba(0, 0, 0, .85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 20px; text-decoration: none; }
.brand img { width: 32px; height: 32px; }
nav { margin-left: auto; display: flex; gap: clamp(10px, 3vw, 28px); flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
nav a:hover { color: var(--accent); }
main { width: min(1100px, 100%); margin: 0 auto; padding: 0 16px; }
section { padding: clamp(40px, 8vw, 88px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 64px; }
/* .hero { padding-top: clamp(56px, 12vw, 128px); }  until 6 Oct 2026 (text only) */
/* hero like mjdev.org (6 Oct 2026): text left, portal with the white bunny right; stacked on narrow screens */
.hero { padding-top: clamp(40px, 8vw, 96px); display: grid; grid-template-columns: 53% 47%; align-items: center; gap: 12px; }
.visual { position: relative; height: 480px; overflow: hidden; isolation: isolate; }
.visual::before { content: ""; position: absolute; z-index: -1; width: 100%; height: 100%; left: 50%; top: 50%;
  transform: translate(-50%, -50%); border-radius: 50%; filter: blur(19px);
  /* fades out inside the box, so no edge of the glow is ever visible */
  background: radial-gradient(ellipse closest-side, rgba(0, 230, 118, .22), rgba(0, 200, 100, .12) 50%, rgba(0, 120, 60, .05) 75%, transparent 100%); }
.visual .bunny { position: absolute; z-index: 2; left: 50%; top: 50%; width: 90%; max-width: 420px; transform: translate(-50%, -50%);
  mix-blend-mode: screen; filter: drop-shadow(0 0 26px rgba(0, 230, 118, .35)); animation: float 6s ease-in-out infinite; }
.visual .ring { position: absolute; z-index: 3; left: 50%; top: 50%; width: 320px; height: 440px; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none; border: 5px solid rgba(150, 255, 200, .9);
  box-shadow: inset 0 0 6px rgba(220, 255, 235, .7), 0 0 5px #d8ffe9, 0 0 14px #00e676, 0 0 34px rgba(0, 230, 118, .55); }
.visual .ring::before { content: ""; position: absolute; inset: -11px; border-radius: 50%; border: 8px solid rgba(0, 230, 118, .22);
  filter: blur(4px); box-shadow: 0 0 22px rgba(0, 230, 118, .7), 0 0 46px rgba(0, 160, 80, .42); }
.sparkles { position: absolute; z-index: 4; inset: 0; pointer-events: none; }
.spark { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #b9ffd9;
  box-shadow: 0 0 3px #e9fff2, 0 0 8px #6dffb0, 0 0 15px rgba(0, 230, 118, .82); animation: twinkle 2.8s ease-in-out infinite; }
.spark.big { width: 5px; height: 5px; }
.spark.tiny { width: 2px; height: 2px; }
@keyframes twinkle { 0%, 100% { opacity: .18; transform: scale(.55); } 50% { opacity: 1; transform: scale(1.25); } }
@keyframes float { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -54%); } }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .visual { height: 360px; }
  .visual .ring { width: 230px; height: 320px; }
}
@media (prefers-reduced-motion: reduce) { .spark, .visual .bunny { animation: none; } }
/* until 8 Oct 2026 (a block under the text, owner: "not below as a layer ... bad"):
 event flow diagram under the hero text (8 Oct 2026): full width, 16:9, fades into the black page on the left 
.hero .flow { grid-column: 1 / -1; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 24px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%); mask-image: linear-gradient(to right, transparent 0%, #000 45%); }
*/
/* event flow diagram as a background LAYER of the hero (8 Oct 2026, owner): 16:9, behind text and stars, fading out to
   the left so the text stays readable; ends at the hero's divider */
.hero { position: relative; isolation: isolate; }
/* .hero .flow until 8 Oct 2026 evening (owner: "should be cropped and resized, faded, to be nice background"):
.hero .flow { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 25%, #000 75%); mask-image: linear-gradient(to right, transparent 0%, transparent 25%, #000 75%); } */
/* subtle background: dimmed, right part of the box, fades out to the left and at the top and bottom edges */
.hero .flow { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center;
  opacity: .45; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 15%, #000 80%), linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 15%, #000 80%), linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-composite: intersect; }
.kicker, .eyebrow { color: var(--accent); font-size: 13px; letter-spacing: .14em; font-weight: 700; }
h1 { margin: 10px 0; font-size: clamp(44px, 10vw, 96px); font-weight: 800; letter-spacing: -2px; line-height: 1; }
h2 { margin: 8px 0 20px; font-size: clamp(26px, 5vw, 40px); font-weight: 800; }
.lead { max-width: 640px; font-size: clamp(17px, 2.4vw, 21px); }
.text { max-width: 760px; color: var(--muted); font-size: 17px; }
.cta { display: inline-block; margin-top: 16px; padding: 12px 22px; border-radius: 24px; background: var(--accent); color: #000; font-weight: 700; text-decoration: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; color: var(--text); text-decoration: none; transition: border-color .2s; }
a.card:hover { border-color: var(--accent); }
.card b { display: block; margin-bottom: 6px; font-size: 18px; }
.card span, .card p { color: var(--muted); font-size: 14px; margin: 0; }
.person { display: grid; gap: 10px; }
.person .head { display: flex; align-items: center; gap: 12px; }
.person img, .person .initials { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.person .initials { display: grid; place-items: center; background: var(--surface2); color: var(--accent); font-weight: 800; border: 1px solid var(--line); }
.person .role { color: var(--accent); font-size: 14px; }
.person ul { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--muted); }
.contact { display: grid; gap: 6px; font-size: 17px; }
.foot { text-align: center; padding: 24px 16px; font-size: 13px; }
@media (max-width: 560px) { nav a { font-size: 12px; } .brand span { display: none; } }

/* sites list and open source note (6 Oct 2026) */
.site .state { display: block; width: fit-content; margin-top: 10px; font-size: 12px; padding: 1px 8px; border-radius: 10px; border: 1px solid var(--line); }
.site .state.live { color: var(--accent); border-color: var(--accent); }
.site .state.soon { color: var(--muted); }
.oss { margin-top: 14px; }
.oss p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 13px; padding: 2px 10px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); color: var(--text); }

/* business, product scope and company identity (6 Oct 2026, owner: "make company site more professional") */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.actions .cta { margin-top: 0; }
.cta.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.cta.ghost:hover { background: rgba(0, 230, 118, .1); }
#about .text + .text { margin-top: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 28px; }
.fact { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; }
.fact b { display: block; font-size: 24px; font-weight: 800; color: var(--text); }
.fact span { color: var(--muted); font-size: 14px; }
.scope .boundary { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--text); font-size: 13px; }
/* .scope .boundary::before { content: "Safety boundary: "; color: var(--accent); font-weight: 700; }  until 6 Oct 2026: label in the markup, translated */
.scope .boundary-label { display: inline; margin: 0; font-size: 13px; color: var(--accent); font-weight: 700; }
.identity { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.identity dt, .identity dd { margin: 0; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.identity dt { color: var(--muted); background: var(--surface2); }
.identity dd { overflow-wrap: anywhere; }
.identity dt:nth-last-of-type(1), .identity dd:last-child { border-bottom: 0; }
.policies-title { margin: 28px 0 10px; }
.chips.links a { font-size: 14px; padding: 4px 12px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); text-decoration: none; }
.chips.links a:hover { border-color: var(--accent); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 0 0 10px; }
.foot-links a { color: var(--muted); text-decoration: none; text-transform: none; letter-spacing: 0; font-size: 13px; }
.foot-links a:hover { color: var(--accent); }
@media (max-width: 560px) { .identity { grid-template-columns: 1fr; } .identity dt { border-bottom: 0; padding-bottom: 2px; } }
#scope-list { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
/* site state marker always at the bottom left of its card, same card padding (6 Oct 2026, owner) */
.card.site { display: flex; flex-direction: column; align-items: flex-start; }
.site .state { margin-top: auto; }
.site span:not(.state) { margin-bottom: 12px; }
/* open source list like the app's About (6 Oct 2026): balanced columns, 3 wide, 2 medium, 1 on phones */
.oss-head { margin: 18px 0 8px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.libs { list-style: none; margin: 0; padding: 0; columns: 3 220px; column-gap: 28px; column-fill: balance; }
.libs li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line); }
.libs li a { display: block; color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; }
.libs li a:hover { color: var(--accent); }
.libs li span { display: block; color: var(--muted); font-size: 12px; }
.oss .chips { margin-top: 0; }
/* Material icons and people like items in the PSippr app (6 Oct 2026, owner): photo left, text, more icon right */
.icon { width: 24px; height: 24px; fill: currentColor; flex: none; }
.icon.inline { width: 18px; height: 18px; vertical-align: -3px; margin-left: 4px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.person-item { display: flex; align-items: center; gap: 14px; padding: 14px; }
.person-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.person-photo.initials, .profile-photo.initials { display: grid; place-items: center; background: var(--surface2); color: var(--accent); font-weight: 800; border: 1px solid var(--line); }
.person-text { flex: 1; min-width: 0; }
.person-text b { margin-bottom: 0; }
.person-text .role, .profile .role { color: var(--accent); font-size: 14px; }
.person-text p { margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.person-item .more { color: var(--muted); transition: color .2s, transform .2s; }
.person-item:hover .more { color: var(--accent); transform: translateX(3px); }
/* profile page */
.profile { border-bottom: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 24px; }
.back:hover { color: var(--accent); }
.profile-head { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; }
.profile-photo { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--accent); }
.profile-photo.initials { font-size: 40px; }
.profile-name { font-size: clamp(30px, 6vw, 48px); letter-spacing: -1px; margin: 0 0 6px; }
.profile-contact { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 16px; color: var(--text); }
@media (max-width: 560px) { .profile-head { flex-direction: column; align-items: flex-start; } }
/* person text block (6 Oct 2026, owner): name bold, function small normal, short bio */
.person-text b { font-size: 17px; font-weight: 700; }
.person-text .role { color: var(--text); font-size: 13px; font-weight: 400; opacity: .85; }
/* optional profile sections (6 Oct 2026) */
.profile-location { color: var(--muted); font-size: 14px; margin-top: 2px; }
.profile-blocks { display: grid; gap: 18px; margin: 18px 0; }
.profile-block .eyebrow { margin-bottom: 8px; }
.profile-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; color: var(--text); }
/* safety boundary block always at the bottom of its scope card (6 Oct 2026, owner) */
.card.scope { display: flex; flex-direction: column; }
.scope .boundary { margin-top: auto; }
.scope > span { margin-bottom: 12px; }
/* language picker in the header, as on the other PSippr sites (6 Oct 2026) */
.lang { background: var(--surface2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font: inherit; font-size: 13px; }

/* event flow diagram as the background of the hero box (8 Oct 2026 night, owner: "make that image as a background of hero
   box"): fills the box under the glow's stars, fades out to the left and softly at the top and bottom */
.visual .flow-bg { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: .7; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 45%), linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 45%), linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
  mask-composite: intersect; }
