/* ── Global navigation (gnav) ── */
:root {
  --gnav-h: 72px;
}
.gnav.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #ececec;
  transition: background 0.18s ease, border-color 0.18s ease;
}
html[data-newon-shell-theme="dark"] .gnav.site-header {
  background: rgba(10, 10, 10, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.gnav--scrolled {
  border-bottom-color: #e0e0e0;
}
html[data-newon-shell-theme="dark"] .gnav--scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
.gnav__bar { width: 100%; }
.gnav__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  min-height: var(--gnav-h);
}
.gnav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  justify-self: start;
  min-width: 0;
  color: #111;
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
}
html[data-newon-shell-theme="dark"] .gnav__brand { color: #f5f5f5; }
.gnav__logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
}
.gnav__wordmark { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gnav__nav {
  display: none;
  align-items: center;
  justify-self: center;
  gap: clamp(1.25rem, 2.2vw, 2rem);
}
.gnav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.16s ease, opacity 0.16s ease;
  white-space: nowrap;
}
html[data-newon-shell-theme="dark"] .gnav__link { color: #aaa; }
.gnav__link:hover,
.gnav__link[aria-current="page"],
.gnav-dd--active > .gnav__link {
  color: #111;
}
html[data-newon-shell-theme="dark"] .gnav__link:hover,
html[data-newon-shell-theme="dark"] .gnav__link[aria-current="page"],
html[data-newon-shell-theme="dark"] .gnav-dd--active > .gnav__link {
  color: #fff;
}
.gnav__link[aria-current="page"],
.gnav-dd--active > .gnav__link {
  font-weight: 600;
}
.gnav__util {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  justify-self: end;
}
.gnav__cta {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 0.85rem;
  margin-right: 0.35rem;
  border-radius: 9px;
  background: #111;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.16s ease;
  white-space: nowrap;
}
.gnav__cta:hover { opacity: 0.88; color: #fff; }
html[data-newon-shell-theme="dark"] .gnav__cta { background: #fff; color: #111; }
.gnav__lang { position: relative; }
.gnav__lang-select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: #666;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 1.1rem 0.35rem 0.35rem;
  cursor: pointer;
  max-width: 4.5rem;
  transition: color 0.16s ease;
}
html[data-newon-shell-theme="dark"] .gnav__lang-select { color: #aaa; }
.gnav__lang-select:hover { color: #111; }
html[data-newon-shell-theme="dark"] .gnav__lang-select:hover { color: #fff; }
.gnav__lang::after {
  content: "";
  position: absolute;
  right: 0.15rem;
  top: 50%;
  width: 0.35rem;
  height: 0.35rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  opacity: 0.45;
  pointer-events: none;
}
.gnav__theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #666;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}
.gnav__theme:hover { background: rgba(0, 0, 0, 0.05); color: #111; }
html[data-newon-shell-theme="dark"] .gnav__theme { color: #aaa; }
html[data-newon-shell-theme="dark"] .gnav__theme:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.gnav__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: background 0.16s ease;
}
.gnav__menu-btn:hover { background: rgba(0, 0, 0, 0.05); }
html[data-newon-shell-theme="dark"] .gnav__menu-btn:hover { background: rgba(255, 255, 255, 0.08); }
.gnav__menu-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}
.gnav__menu-icon span {
  display: block;
  height: 1.5px;
  background: #111;
  border-radius: 1px;
}
html[data-newon-shell-theme="dark"] .gnav__menu-icon span { background: #f5f5f5; }

/* Dropdown */
.gnav-dd { position: relative; }
.gnav-dd__chev {
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  margin-left: 0.15rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.5;
}
.gnav-dd__panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 17.5rem;
  max-width: 21rem;
  padding: 0.65rem;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  z-index: 120;
}
html[data-newon-shell-theme="dark"] .gnav-dd__panel {
  background: #141414;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
.gnav-dd__panel--rich { width: min(21rem, 88vw); padding: 0.75rem; }
.gnav-dd__kicker {
  margin: 0 0 0.35rem;
  padding: 0.35rem 0.65rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  color: #999;
}
.gnav-dd__item {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.14s ease;
}
.gnav-dd__item:hover { background: #f5f5f5; }
html[data-newon-shell-theme="dark"] .gnav-dd__item:hover { background: rgba(255, 255, 255, 0.06); }
.gnav-dd__item-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111;
  letter-spacing: -0.01em;
}
html[data-newon-shell-theme="dark"] .gnav-dd__item-title { color: #f5f5f5; }
.gnav-dd__item-desc {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #777;
}
html[data-newon-shell-theme="dark"] .gnav-dd__item-desc { color: #999; }

/* Mobile drawer */
.gnav-mobile[hidden] { display: none !important; }
.gnav-mobile {
  position: fixed;
  inset: 0;
  z-index: 150;
}
.gnav-mobile__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.gnav-mobile__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 22rem);
  height: 100%;
  background: var(--bg, #fff);
  border-left: 1px solid #ececec;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
html[data-newon-shell-theme="dark"] .gnav-mobile__panel {
  border-left-color: rgba(255, 255, 255, 0.08);
}
.gnav-mobile__scroll {
  height: 100%;
  overflow: auto;
  padding: calc(var(--gnav-h) + 0.5rem) 1.25rem 2rem;
  -webkit-overflow-scrolling: touch;
}
.gnav-mobile__label {
  margin: 1.25rem 0 0.35rem;
  padding: 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: #999;
  text-transform: uppercase;
}
.gnav-mobile__link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 44px;
  padding: 0.65rem 0.25rem;
  border-bottom: 1px solid #f0f0f0;
  color: #111;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
html[data-newon-shell-theme="dark"] .gnav-mobile__link {
  color: #eee;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.gnav-mobile__desc {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #777;
}
.gnav-mobile__cta {
  display: flex;
  margin-top: 1.5rem;
  width: 100%;
  justify-content: center;
}
html.gnav-open,
body.gnav-open { overflow: hidden; }

@media (min-width: 901px) {
  .gnav__nav { display: flex; }
  .gnav__menu-btn { display: none; }
  .gnav__cta { display: inline-flex; }
}
@media (min-width: 1100px) {
  .gnav__inner { grid-template-columns: 1fr auto 1fr; }
}
@media (max-width: 900px) {
  .gnav__inner { grid-template-columns: 1fr auto; }
  .gnav__nav { display: none; }
  .gnav__cta { display: none; }
  .gnav__wordmark { display: inline; }
}
@media (max-width: 420px) {
  .gnav__wordmark { display: none; }
}

.hub-page { padding-top: var(--gnav-h, var(--header-h)); min-height: 60vh; }
.hub-inner { width: min(var(--max, 1120px), calc(100% - var(--space) * 2)); margin: 0 auto; }
.hub-section { padding: clamp(3.5rem, 8vw, 6rem) 0; border-top: 1px solid var(--border); }
.hub-section:first-child { border-top: 0; }
.hub-eyebrow { margin: 0 0 0.85rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-soft); }
.hub-title { margin: 0 0 1rem; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.15; white-space: pre-line; }
.hub-lead { margin: 0; max-width: 40rem; font-size: 1.05rem; line-height: 1.7; color: var(--text-muted); }
.hub-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); }
.hub-hero__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.75rem; }

/* Nav dropdown — legacy snav (app sections) */
.snav-header--studio .snav-nav--studio { display: none; }

/* Footer grid */
.studio-footer { padding: 3rem 0 1.5rem; border-top: 1px solid var(--border); margin-top: 2rem; }
.studio-footer__grid {
  display: grid; gap: 2rem 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) { .studio-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .studio-footer__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.studio-footer__title { margin: 0 0 0.75rem; font-size: 0.7rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft); }
.studio-footer__list { list-style: none; margin: 0; padding: 0; }
.studio-footer__list a { display: block; padding: 0.3rem 0; font-size: 0.875rem; color: var(--text-muted); text-decoration: none; }
.studio-footer__list a:hover { color: var(--text); }
.studio-footer__email { font-size: 0.95rem; font-weight: 600; color: var(--text); text-decoration: none; }
.studio-footer__tagline { margin: 0.75rem 0 0; font-size: 0.8125rem; line-height: 1.55; color: var(--text-soft); }
.studio-footer__bottom { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: 0.8125rem; color: var(--text-soft); }

/* Cards & grids */
.hub-grid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (min-width: 640px) { .hub-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .hub-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hub-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hub-card {
  display: flex; flex-direction: column; gap: 0.65rem; min-height: 100%;
  padding: 1.35rem 1.25rem 1.4rem; background: var(--bg); color: inherit; text-decoration: none;
  transition: background 0.2s ease;
}
a.hub-card:hover { background: var(--surface); }
.hub-card__num { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; color: var(--text-soft); }
.hub-card__title { margin: 0; font-size: 1.05rem; font-weight: 650; letter-spacing: -0.02em; }
.hub-card__body { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--text-muted); }
.hub-card__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: 0.5rem; font-size: 0.75rem; color: var(--text-soft); }
.hub-card__icon { width: 2.5rem; height: 2.5rem; object-fit: contain; }

.hub-badge {
  display: inline-block; padding: 0.2rem 0.5rem; font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--border); border-radius: 4px;
}
.hub-badge--live { color: var(--text); border-color: var(--text); }
.hub-badge--beta { color: var(--text-muted); }
.hub-badge--building, .hub-badge--concept { color: var(--text-soft); }

.hub-filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.75rem 0 1.25rem; }
.hub-filter {
  padding: 0.45rem 0.85rem; border: 1px solid var(--border); border-radius: 999px;
  background: transparent; font: inherit; font-size: 0.8125rem; color: var(--text-muted); cursor: pointer;
}
.hub-filter.is-active, .hub-filter:hover { border-color: var(--text); color: var(--text); }

.hub-strip {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; justify-content: center;
  margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
}
.hub-strip a { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); text-decoration: none; }
.hub-strip a:hover { color: var(--text); }

/* Tools */
.tool-panel { padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.tool-panel textarea, .tool-panel input[type="text"], .tool-panel input[type="number"], .tool-panel input[type="date"], .tool-panel select {
  width: 100%; padding: 0.65rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-sm, 6px);
  background: var(--bg); color: var(--text); font: inherit; font-size: 0.9375rem;
}
.tool-panel label { display: block; margin-bottom: 0.35rem; font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); }
.tool-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tool-output { margin-top: 1rem; padding: 0.85rem; border: 1px dashed var(--border); font-family: ui-monospace, monospace; font-size: 0.875rem; word-break: break-all; }

/* Search modal */
.search-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: 10vh 1rem 1rem; }
.search-modal[hidden] { display: none; }
.search-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.search-modal__panel { position: relative; width: min(32rem, 100%); padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.search-modal__input { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm, 6px); font: inherit; background: var(--surface); color: var(--text); }
.search-modal__results { list-style: none; margin: 0.75rem 0 0; padding: 0; max-height: 50vh; overflow: auto; }
.search-modal__results a { display: block; padding: 0.55rem 0.25rem; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border); }
.search-modal__type { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); }
.search-modal__empty { padding: 0.75rem 0; color: var(--text-soft); font-size: 0.875rem; }

/* Waitlist */
.waitlist-form { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 28rem; }
.waitlist-form input[type="email"] { flex: 1 1 12rem; min-width: 0; padding: 0.65rem 0.85rem; border: 1px solid var(--border); border-radius: var(--radius-sm, 6px); background: var(--bg); color: var(--text); font: inherit; }
.waitlist-form.is-invalid input { border-color: #c44; }
.waitlist-success { font-size: 0.9375rem; color: var(--text-muted); }
.waitlist-success[hidden] { display: none; }

/* Home WHAT WE DO */
.home-what-we-do { padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--border); }
.home-what-grid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: 1.75rem; }
@media (min-width: 640px) { .home-what-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .home-what-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.home-what-card {
  padding: 1.35rem 1.2rem; background: var(--bg); text-decoration: none; color: inherit;
  transition: background 0.2s ease;
}
.home-what-card:hover { background: var(--surface); }
.home-what-card__n { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; color: var(--text-soft); }
.home-what-card__title { display: block; margin: 0.45rem 0 0.35rem; font-size: 1rem; font-weight: 650; }
.home-what-card__body { margin: 0; font-size: 0.875rem; line-height: 1.55; color: var(--text-muted); }

.about-hub-navs--6 { display: grid; gap: 0.65rem; }
@media (min-width: 768px) { .about-hub-navs--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.about-hub-navs-secondary { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.about-hub-navs-secondary a { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); text-decoration: none; }
.about-hub-navs-secondary a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .hub-card, .home-what-card { transition: none; }
}
