/* ================================================================
   YARDENAH PQ — v2
   Theme: mint (#edf9f8) + teal (#1a8c8a) — extracted from logo
   Fonts: Space Grotesk (display) · DM Mono (technical)
================================================================ */
:root {
  --mint:      #edf9f8;
  --white:     #ffffff;
  --teal:      #1a8c8a;
  --teal-d:    #0d5554;
  --teal-m:    #2aacaa;
  --teal-hi:   #40c9c6;
  --text:      #0b1c1c;
  --body:      #1e3838;
  --muted:     #4c7270;
  --border:    rgba(26,140,138,.13);
  --f:         'Space Grotesk', system-ui, sans-serif;
  --mono:      'DM Mono', 'Fira Mono', monospace;
  --nav-h:     60px;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  font-family: var(--f);
  background: var(--mint);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── SKIP LINK (accessibility) ───────────────────────────────── */
.skip {
  position: absolute; top: -100%; left: 1rem;
  background: var(--teal-d); color: #fff;
  padding: .5rem 1rem; border-radius: 0 0 6px 6px;
  font-size: 13px; font-weight: 600; z-index: 9999;
  text-decoration: none; transition: top .15s;
}
.skip:focus { top: 0; }

/* ── FOCUS STYLES ────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── NAV ─────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0; right: 0; height: var(--nav-h);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 5vw, 3.5rem);
  z-index: 300;
  transition: background .25s, box-shadow .25s;
}
#nav.solid {
  background: rgba(237,249,248,.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-brand {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none;
  min-height: 44px;          /* touch target */
  padding: .25rem 0;
}
.nav-logo {
  width: 34px; height: 34px;
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.nav-name {
  display: flex; flex-direction: column; gap: 1px;
}
.nav-name-main {
  font-size: 14px; font-weight: 700;
  color: var(--teal-d); line-height: 1; letter-spacing: -.01em;
}
.nav-name-sub {
  font-size: 9px; font-weight: 400;
  color: var(--muted); line-height: 1; letter-spacing: .04em;
}
.nav-links {
  display: flex; align-items: center; gap: 1.75rem;
}
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--muted);
  text-decoration: none; transition: color .18s;
  min-height: 44px; display: flex; align-items: center;
}
.nav-links a:hover { color: var(--teal); }
.nav-cta {
  font-family: var(--mono); font-size: 12px !important;
  color: var(--teal) !important;
  border: 1px solid var(--teal); padding: .35rem .85rem;
  border-radius: 5px;
  transition: background .18s, color .18s !important;
}
.nav-cta:hover { background: var(--teal) !important; color: #fff !important; }
/* Hamburger */
.nav-burger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px; min-width: 44px; min-height: 44px;
  flex-direction: column; align-items: center;
  justify-content: center; gap: 5px;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--teal-d); border-radius: 2px;
  transition: transform .22s, opacity .22s;
  pointer-events: none;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
/* Mobile dropdown */
#nav-mobile {
  position: fixed;
  top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  left: 0; right: 0;
  background: rgba(237,249,248,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(1.25rem, 5vw, 3.5rem);
  z-index: 290;
  max-height: 0; overflow: hidden;
  transition: max-height .28s ease, padding .28s ease;
}
#nav-mobile.open {
  max-height: 320px;
  padding: 1rem clamp(1.25rem, 5vw, 3.5rem) 1.5rem;
}
#nav-mobile a {
  display: flex; align-items: center; min-height: 44px;
  font-size: 15px; font-weight: 500; color: var(--body);
  text-decoration: none; border-bottom: 1px solid var(--border);
  transition: color .18s;
}
#nav-mobile a:last-child { border-bottom: none; }
#nav-mobile a:hover { color: var(--teal); }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
  padding: calc(var(--nav-h) + 3rem) clamp(1.25rem, 6vw, 4rem) 4rem;
}
#lattice {
  position: absolute; inset: 0;
  width: 100%; height: 100%; pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 10;
  display: grid;
  grid-template-columns: clamp(160px,20vw,260px) 1fr;
  gap: clamp(2.5rem,5vw,5rem);
  align-items: center;
  max-width: 1100px; width: 100%; margin: 0 auto;
}
.hero-logo-wrap { display: flex; justify-content: center; }
.hero-logo {
  width: clamp(160px, 20vw, 260px);
  height: clamp(160px, 20vw, 260px);
  border-radius: 50%; object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(26,140,138,.2),
    0 0 48px rgba(26,140,138,.12),
    0 24px 64px rgba(13,85,84,.1);
}
.hero-text { display: flex; flex-direction: column; gap: 1.3rem; }
.hero-kicker {
  font-family: var(--mono); font-size: 11px; color: var(--teal);
  letter-spacing: .06em; display: flex; align-items: center; gap: .5rem;
}
.hero-kicker::before {
  content: ''; display: block; width: 20px; height: 1px; background: var(--teal);
}
/* PRIMARY brand h1 */
.hero-title {
  line-height: 1; letter-spacing: -.03em;
  color: var(--teal-d);
}
.hero-brand {
  display: block;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
}
.hero-lab {
  display: block;
  font-size: clamp(1.1rem, 2.8vw, 2rem);
  font-weight: 300;
  color: var(--muted);
  letter-spacing: -.01em;
  margin-top: .3rem;
}
.hero-tagline {
  font-size: clamp(.9rem, 1.8vw, 1.05rem);
  font-weight: 300; color: var(--muted);
  line-height: 1.75; max-width: 48ch;
}
.hero-stats {
  display: flex; gap: 1.75rem; flex-wrap: wrap;
  padding-top: .6rem; border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: .1rem; }
.stat-num {
  font-size: 1.45rem; font-weight: 700;
  color: var(--teal-d); line-height: 1;
}
.stat-lbl {
  font-family: var(--mono); font-size: 10px;
  color: var(--muted); letter-spacing: .04em;
}
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.btn-p {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--teal); color: #fff;
  font-size: 13px; font-weight: 600;
  padding: .65rem 1.4rem; border-radius: 6px;
  text-decoration: none; transition: background .18s, transform .15s;
  min-height: 44px;
}
.btn-p:hover { background: var(--teal-d); transform: translateY(-1px); }
.btn-g {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid rgba(26,140,138,.4); color: var(--teal);
  font-size: 13px; font-weight: 600;
  padding: .65rem 1.4rem; border-radius: 6px;
  text-decoration: none;
  transition: background .18s, border-color .18s;
  min-height: 44px;
}
.btn-g:hover { background: rgba(26,140,138,.07); border-color: var(--teal); }
.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, transparent, var(--teal));
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue {
  0%,100%{ transform:scaleY(.45);opacity:.35; }
  50%{ transform:scaleY(1);opacity:1; }
}

/* ── SECTION SHELL ───────────────────────────────────────────── */
.section {
  max-width: 1100px; margin: 0 auto;
  padding: clamp(3.5rem,8vw,7rem) clamp(1.25rem,5vw,3.5rem);
}
.section-rule { width:100%;height:1px;background:var(--border);border:none;margin:0; }
.section-hd {
  display: flex; align-items: baseline;
  justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-bottom: 3rem;
}
.section-title {
  font-size: clamp(1.4rem,3vw,1.9rem);
  font-weight: 700; letter-spacing: -.025em; color: var(--teal-d);
}
.section-meta {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}

/* ── PACKAGE GROUPS ──────────────────────────────────────────── */
.pkg-group-lbl {
  font-family: var(--mono); font-size: 11px;
  color: var(--teal); padding: 2rem 0 .6rem 1.5rem;
  display: flex; align-items: center; gap: .5rem;
}
.pkg-group-lbl::before {
  content: ''; display: block;
  width: 16px; height: 1px; background: var(--teal); opacity: .5;
}
.pkg-group-lbl:first-child { padding-top: 0; }

/* ── PACKAGES ────────────────────────────────────────────────── */
.pkg-list { display: flex; flex-direction: column; }
.pkg {
  padding: 2.25rem 0 2.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  border-left: 2px solid transparent;
  transition: border-left-color .2s;
}
.pkg:first-of-type { border-top: 1px solid var(--border); }
.pkg:hover { border-left-color: var(--teal); }
.pkg-dev:hover { border-left-color: var(--teal-m); }
.pkg-top {
  display: flex; align-items: center;
  gap: .75rem; flex-wrap: wrap; margin-bottom: .7rem;
}
.pkg-name {
  font-family: var(--mono);
  font-size: clamp(1.25rem,2.8vw,1.75rem);
  font-weight: 400; color: var(--teal-d);
  line-height: 1; letter-spacing: -.02em;
  transition: color .18s;
}
.pkg:hover .pkg-name { color: var(--teal); }
.pkg-dev .pkg-name { color: var(--muted); }
.pkg-dev:hover .pkg-name { color: var(--teal-m); }
.pkg-ver {
  font-family: var(--mono); font-size: 10px;
  background: rgba(26,140,138,.1); color: var(--teal);
  padding: 3px 7px; border-radius: 3px; white-space: nowrap;
}
.pkg-ver-dev {
  background: rgba(76,114,112,.08); color: var(--muted);
}
.pkg-chips {
  display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem;
}
.chip {
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  border: 1px solid var(--border); padding: 2px 8px;
  border-radius: 99px; letter-spacing: .02em;
}
.chip-new {
  background: rgba(64,201,198,.1); border-color: rgba(26,140,138,.28); color: var(--teal);
}
.chip-gh {
  background: rgba(76,114,112,.08); border-color: rgba(76,114,112,.2);
  color: var(--muted);
}
.pkg-desc {
  font-size: .91rem; line-height: 1.8; color: var(--body);
  max-width: 74ch; margin-bottom: .9rem;
}
.pkg-dev .pkg-desc { color: var(--muted); }
.platforms {
  display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: .65rem;
}
.platform {
  font-family: var(--mono); font-size: 9px; color: var(--muted);
  border: 1px solid var(--border); padding: 1px 6px; border-radius: 3px;
}
.pkg-foot {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: .65rem;
}
.pkg-meta {
  display: flex; gap: 1.1rem; flex-wrap: wrap; align-items: center;
}
.pkg-stat {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  display: flex; align-items: center; gap: .3rem;
}
.pkg-stat svg {
  width: 12px; height: 12px; fill: none;
  stroke: currentColor; stroke-width: 2; flex-shrink: 0;
}
.pkg-link {
  font-family: var(--mono); font-size: 11px; color: var(--teal);
  text-decoration: none; display: flex; align-items: center; gap: .25rem;
  border-bottom: 1px solid transparent; transition: border-color .18s;
  min-height: 44px;
}
.pkg-link:hover { border-bottom-color: var(--teal); }
.pkg-dev .pkg-link { color: var(--muted); }
.pkg-dev:hover .pkg-link { color: var(--teal-m); }

/* ── PHILOSOPHY ──────────────────────────────────────────────── */
.philosophy-bg {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.principles { display: grid; grid-template-columns: repeat(3,1fr); gap: 3.5rem; }
.principle-label {
  font-family: var(--mono); font-size: 11px; color: var(--teal);
  letter-spacing: .04em; margin-bottom: .5rem;
}
.principle-h {
  font-size: 1rem; font-weight: 600; color: var(--teal-d);
  letter-spacing: -.015em; margin-bottom: .7rem;
}
.principle p { font-size: .88rem; line-height: 1.82; color: var(--muted); }

/* ── ABOUT ───────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; }
.about-grid p {
  font-size: .92rem; line-height: 1.82; color: var(--body);
  margin-bottom: 1.1rem;
}
.about-grid p:last-child { margin-bottom: 0; }
.stack-tags {
  display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.4rem;
}
.stack-tag {
  font-family: var(--mono); font-size: 10px; color: var(--teal-d);
  background: rgba(26,140,138,.08);
  border: 1px solid rgba(26,140,138,.2);
  padding: 3px 9px; border-radius: 4px;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
footer { background: #071414; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  padding: clamp(2.5rem,6vw,4rem) clamp(1.25rem,5vw,3.5rem);
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start;
}
.footer-brand { display:flex;align-items:center;gap:.7rem;margin-bottom:.9rem; }
.footer-logo {
  width: 38px; height: 38px;
  border-radius: 50%; object-fit: cover; opacity: .8;
}
.footer-brand-txt { font-size:15px;font-weight:700;color:#c0e4e3;letter-spacing:-.01em; }
.footer-tagline { font-size:.85rem;line-height:1.7;color:#4a7270;max-width:38ch;margin-bottom:1.4rem; }
.footer-legal { font-family:var(--mono);font-size:10px;color:#2d4e4e;letter-spacing:.02em; }
.footer-links { display:flex;flex-direction:column;gap:.6rem;align-items:flex-end; }
.footer-links a {
  font-family:var(--mono);font-size:12px;color:#4a7270;
  text-decoration:none;transition:color .18s; min-height: 44px;
  display: flex; align-items: center;
}
.footer-links a:hover { color:var(--teal-hi); }
.footer-note {
  font-family:var(--mono);font-size:10px;color:#253e3e;
  border-top:1px solid #0f2424;padding-top:1.25rem;margin-top:1.25rem;text-align:right;
  line-height: 1.6;
}
.footer-note a { color:var(--teal);text-decoration:none; }
.footer-note a:hover { text-decoration: underline; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .hero-inner { grid-template-columns:1fr;gap:2rem;text-align:center; }
  .hero-kicker { justify-content:center; }
  .hero-tagline { max-width:none; }
  .hero-stats { justify-content:center; }
  .hero-actions { justify-content:center; }
  .principles { grid-template-columns:1fr;gap:2.25rem; }
  .about-grid { grid-template-columns:1fr;gap:0; }
  .footer-inner { grid-template-columns:1fr; }
  .footer-links { align-items:flex-start;margin-top:1.5rem; }
  .footer-links a { min-height: 36px; }
  .footer-note { text-align:left; }
}
@media (max-width: 520px) {
  .pkg { padding-left:1rem; }
  .pkg-foot { flex-direction:column;align-items:flex-start; }
  .hero-logo { width:140px;height:140px; }
}

/* ── REDUCED MOTION ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .scroll-line { animation:none;opacity:.4; }
  .hero-text > *, .hero-logo-wrap { animation:none;opacity:1;transform:none; }
}

/* ── ENTRY ANIMATION ─────────────────────────────────────────── */
@keyframes enter {
  from{ opacity:0;transform:translateY(18px); }
  to{ opacity:1;transform:translateY(0); }
}
.hero-logo-wrap { animation:enter .9s cubic-bezier(.16,1,.3,1) .04s both; }
.hero-kicker  { animation:enter .9s cubic-bezier(.16,1,.3,1) .09s both; }
.hero-title   { animation:enter .9s cubic-bezier(.16,1,.3,1) .15s both; }
.hero-tagline { animation:enter .9s cubic-bezier(.16,1,.3,1) .21s both; }
.hero-stats   { animation:enter .9s cubic-bezier(.16,1,.3,1) .27s both; }
.hero-actions { animation:enter .9s cubic-bezier(.16,1,.3,1) .33s both; }

/* ── OPEN SOURCE GRID ────────────────────────────────────────── */
.oss-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.oss-card {
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  display: flex; flex-direction: column; gap: .75rem;
}
.oss-card:hover {
  border-color: rgba(26,140,138,.3);
  box-shadow: 0 4px 20px rgba(26,140,138,.06);
}
.oss-card-top {
  display: flex; align-items: center;
  justify-content: space-between; gap: .5rem; flex-wrap: wrap;
}
.oss-name {
  font-family: var(--mono); font-size: 1rem;
  font-weight: 400; color: var(--teal-d);
  letter-spacing: -.01em;
}
.oss-badge {
  font-family: var(--mono); font-size: 9px;
  color: var(--muted); border: 1px solid var(--border);
  padding: 2px 7px; border-radius: 99px;
  white-space: nowrap;
}
.oss-badge-active {
  color: var(--teal); border-color: rgba(26,140,138,.25);
  background: rgba(26,140,138,.06);
}
.oss-badge-dev {
  color: var(--teal-m); border-color: rgba(42,172,170,.25);
  background: rgba(42,172,170,.06);
}
.oss-desc {
  font-size: .85rem; line-height: 1.75; color: var(--muted);
  flex: 1;
}
.oss-link {
  font-family: var(--mono); font-size: 10px;
  color: var(--teal); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .18s; align-self: flex-start;
}
.oss-link:hover { border-bottom-color: var(--teal); }
@media (max-width: 820px) { .oss-grid { grid-template-columns: 1fr; } }

/* ── BLOG ────────────────────────────────────────────────────── */
.blog-section { background: var(--white); }
.blog-soon-badge {
  font-family: var(--mono); font-size: 10px;
  color: var(--teal); border: 1px solid rgba(26,140,138,.25);
  background: rgba(26,140,138,.06);
  padding: 3px 9px; border-radius: 99px;
  align-self: center;
}
.blog-intro {
  font-size: .95rem; line-height: 1.75; color: var(--muted);
  max-width: 60ch; margin-bottom: 2.5rem;
}
.blog-posts-preview {
  display: flex; flex-direction: column;
  gap: 0;
}
.blog-ghost {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.25rem; align-items: start;
}
.blog-ghost:last-child { border-bottom: 1px solid var(--border); }
.blog-ghost-kicker {
  font-family: var(--mono); font-size: 10px;
  color: var(--teal); letter-spacing: .03em;
  padding-top: .15rem;
}
.blog-ghost-title {
  font-size: .95rem; font-weight: 500;
  color: rgba(11,28,28,.35);
  line-height: 1.55; letter-spacing: -.01em;
  max-width: 55ch;
  filter: blur(2.5px);
  user-select: none;
  -webkit-user-select: none;
}
.blog-ghost-meta {
  font-family: var(--mono); font-size: 10px;
  color: var(--muted); white-space: nowrap; opacity: .6;
}
.blog-cta {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .9rem; color: var(--muted);
}
.blog-cta a {
  color: var(--teal); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid rgba(26,140,138,.3);
  transition: border-color .18s;
}
.blog-cta a:hover { border-bottom-color: var(--teal); }
@media (max-width: 680px) {
  .blog-ghost { grid-template-columns: 1fr; gap: .5rem; }
  .blog-ghost-meta { display: none; }
}

/* ── About founder link ──────────────────────────────────────── */
.about-founder-link {
  color: var(--teal); font-weight: 500;
  text-decoration: none; border-bottom: 1px solid rgba(26,140,138,.3);
  transition: border-color .18s;
}
.about-founder-link:hover { border-bottom-color: var(--teal); }
