/* General hirerumi.com homepage — Sternify-inspired structure,
   Rumi identity (blue / white / black, Fraunces + Sora, The Hold). */

.home, .maxie {
  --wrap: 1280px;
  --nav-float-top: 10px;
  --nav-capsule-h: 56px;
  --nav-stack: calc(var(--nav-float-top) + var(--nav-capsule-h));
}


/* Light page sits on a soft gray wash, like a system site; dark stays black. */
html[data-theme="light"] .home { background: #F4F5F7; }

/* Floating capsule nav — shrink-wrapped and overlapped on the hero, so
   only the pill floats. No full-width sticky band, no page-bg sliver. */
.home .nav, .maxie .nav {
  position: sticky;
  top: var(--nav-float-top);
  z-index: 40;
  width: min(var(--wrap), calc(100% - 32px));
  margin: var(--nav-float-top) auto calc(-1 * var(--nav-stack));
  padding: 0;
  background: transparent;
  border: 0;
  pointer-events: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}
.home .nav-row, .maxie .nav-row {
  position: relative;
  pointer-events: none;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.home .nav-in, .maxie .nav-in {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 56px;
  min-height: 56px;
  margin: 0;
  padding: 0 8px 0 18px;
  border-radius: 999px;
  color: #fff;
  background: #141414;
  border: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    inset 0 1px rgba(255, 255, 255, 0.08),
    0 12px 32px -12px rgba(0, 0, 0, 0.55);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  isolation: isolate;
}
html[data-theme="light"] .home .nav-in,
html[data-theme="light"] .maxie .nav-in {
  color: #0A0A0A;
  background: #FFFFFF;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.10),
    0 10px 28px -8px rgba(0, 0, 0, 0.42);
}

.home .nav-in .brand, .maxie .nav-in .brand {
  flex: none;
  color: #fff;
  z-index: 1;
}
html[data-theme="light"] .home .nav-in .brand,
html[data-theme="light"] .maxie .nav-in .brand { color: #0A0A0A; }

.home .nav-links, .maxie .nav-links {
  display: none;
  position: relative;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 2px;
}
.home .nav-links a, .maxie .nav-links a {
  position: relative;
  z-index: 1;
  display: flex;
  height: 36px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.home .nav-links a:hover,
.home .nav-links a:focus-visible,
.home .nav-links a[aria-current="page"],
.maxie .nav-links a:hover,
.maxie .nav-links a:focus-visible,
.maxie .nav-links a[aria-current="page"] { color: #fff; }
html[data-theme="light"] .home .nav-links a,
html[data-theme="light"] .maxie .nav-links a { color: #5C5C5C; }
html[data-theme="light"] .home .nav-links a:hover,
html[data-theme="light"] .home .nav-links a:focus-visible,
html[data-theme="light"] .home .nav-links a[aria-current="page"],
html[data-theme="light"] .maxie .nav-links a:hover,
html[data-theme="light"] .maxie .nav-links a:focus-visible,
html[data-theme="light"] .maxie .nav-links a[aria-current="page"] { color: #0A0A0A; }

/* Liquid hover pill — position driven by nav.js */
.nav-glide {
  position: absolute;
  top: 0; left: 0;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
  will-change: transform, width, opacity;
  z-index: 0;
}
html[data-theme="light"] .nav-glide { background: rgba(0, 0, 0, 0.06); }
.nav-glide.is-on { opacity: 1; }

.home .nav-r, .maxie .nav-r {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  z-index: 1;
}
.home .nav-in .login, .maxie .nav-in .login {
  display: none;
  height: 40px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.70);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.home .nav-in .login:hover, .maxie .nav-in .login:hover {
  color: #fff; background: rgba(255, 255, 255, 0.08);
}
html[data-theme="light"] .home .nav-in .login,
html[data-theme="light"] .maxie .nav-in .login { color: #5C5C5C; }
html[data-theme="light"] .home .nav-in .login:hover,
html[data-theme="light"] .maxie .nav-in .login:hover {
  color: #0A0A0A; background: rgba(0, 0, 0, 0.05);
}

.home .nav-cta, .maxie .nav-cta {
  display: none;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  background: var(--blue);
  color: #fff;
  box-shadow: none;
}
.home .nav-cta:hover, .maxie .nav-cta:hover { background: var(--blue-2); }

.nav-toggle {
  position: relative;
  display: grid;
  width: 40px; height: 40px;
  place-items: center;
  border: 0; border-radius: 999px;
  background: transparent;
  cursor: pointer;
  color: inherit;
}
.nav-toggle span {
  position: absolute;
  width: 16px; height: 1.6px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s ease;
}
html[data-theme="light"] .nav-toggle span { background: #0A0A0A; }
.nav-toggle span:first-child { transform: translateY(-3.5px); }
.nav-toggle span:last-child { transform: translateY(3.5px); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.home .nav-menu, .maxie .nav-menu {
  pointer-events: auto;
  display: none;
  width: 100%;
  margin: 8px 0 0;
  flex-direction: column;
  border-radius: 24px;
  padding: 8px;
  background: #101010;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    0 24px 48px -16px rgba(0, 0, 0, 0.70);
  backdrop-filter: none;
}
.home .nav-menu.is-open, .maxie .nav-menu.is-open { display: flex; }
.home .nav-menu a, .maxie .nav-menu a {
  display: flex;
  min-height: 52px;
  align-items: center;
  border-radius: 16px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  font-weight: 500;
}
.home .nav-menu a:hover, .maxie .nav-menu a:hover,
.home .nav-menu a:focus-visible, .maxie .nav-menu a:focus-visible { background: rgba(255, 255, 255, 0.06); color: #fff; }
.home .nav-menu .login, .maxie .nav-menu .login {
  color: rgba(255, 255, 255, 0.55); font-size: 15px;
}
.home .nav-menu .nav-cta, .maxie .nav-menu .nav-cta {
  display: flex;
  margin-top: 6px;
  min-height: 52px;
  justify-content: center;
  border-radius: 16px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
html[data-theme="light"] .home .nav-menu,
html[data-theme="light"] .maxie .nav-menu {
  background: #FFFFFF;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.08),
    0 24px 48px -16px rgba(0, 0, 0, 0.25);
}
html[data-theme="light"] .home .nav-menu a,
html[data-theme="light"] .maxie .nav-menu a { color: #262626; }
html[data-theme="light"] .home .nav-menu a:hover,
html[data-theme="light"] .maxie .nav-menu a:hover { background: rgba(0, 0, 0, 0.04); color: #0A0A0A; }
html[data-theme="light"] .home .nav-menu .login,
html[data-theme="light"] .maxie .nav-menu .login { color: #6B6B6B; }

.home .btn-ghost, .hero-cinema .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28); }
.home .btn-ghost:hover, .hero-cinema .btn-ghost:hover { background: rgba(255,255,255,0.06); }
.login, .home .btn, .maxie .btn { white-space: nowrap; }

/* Cinematic dark hero (both themes). Product window is the light app. */
.hero-cinema {
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(255,255,255,0.07), transparent 60%),
    #000000;
  color: #fff;
  padding: calc(20px + var(--nav-stack, 66px)) 0 0;
  overflow: hidden;
}
.home .hero-cinema, .maxie .hero-cinema {
  padding-top: calc(20px + var(--nav-stack, 66px));
}
.hero-cinema .hero-copy {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-cinema h1 {
  max-width: 16ch;
  color: #fff;
  text-wrap: balance;
}
.hero-cinema .lead {
  max-width: 38em;
  color: #B8BDC6;
  margin-left: auto; margin-right: auto;
}
.hero-cinema .cta-row { justify-content: center; }
.hero-cinema .presenter { margin-top: 18px; justify-content: center; }
.hero-preview {
  width: min(1360px, calc(100% - 20px));
  margin: 28px auto 0;
  position: relative;
  z-index: 2;
  padding-bottom: 0;
}
/* Product window overlaps the next band, Sternify-style. */
.hero-cinema .hero-preview { margin-bottom: -56px; }

.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px;
  width: min(var(--wrap), calc(100% - 36px));
  margin: 80px auto 0;
  padding: 18px 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--mute);
  font-size: 13.5px; font-weight: 500;
}
.trust-strip li { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip li::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.home section { padding: 72px 0; }
.home .hero-cinema + .trust-strip + section,
.home section.band-start { padding-top: 72px; }
.home .close { padding-bottom: 88px; }

/* Section heading: title left, supporting copy right */
.home .sec-h {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
  margin-bottom: 36px;
}
.home .sec-h h2 { margin: 0; max-width: 16ch; }
.home .sec-h p { margin: 0; max-width: 28em; color: var(--mute); }

.work-split, .apps-split, .safe-split, .team-split {
  display: grid;
  gap: 28px;
  align-items: start;
}

.work-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.work-list button, .work-list li {
  display: block; width: 100%; text-align: left;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  background: none;
}
.work-list h3 {
  font-family: var(--display); font-weight: 500;
  font-size: 1.35rem; letter-spacing: -0.03em;
}
.work-list p { margin-top: 6px; color: var(--mute); font-size: 14.5px; max-width: 42em; }
.work-list button:hover h3, .work-list button[aria-selected="true"] h3 { color: var(--paper); }
.work-list button[aria-selected="true"] {
  box-shadow: inset 3px 0 0 var(--blue);
  padding-left: 14px;
}

.roles { display: grid; gap: 24px; }
.roles h3 {
  font-family: var(--display); font-weight: 500;
  font-size: 1.45rem; letter-spacing: -0.03em;
}
.roles p { margin-top: 8px; color: var(--mute); font-size: 15px; max-width: 36em; }

.plan-view .tag { margin-top: 8px; font-size: 13px; color: var(--mute); }

/* Close: typographic, centered, a little more air */
.home .close { text-align: center; }
.home .close .close-box { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.home .close h2 { max-width: 16ch; }
.home .close p { margin-left: auto; margin-right: auto; }

/* Word reveal on the hero heading */
.hero-cinema h1 .hw {
  display: inline-block;
  animation: hw-in 0.9s var(--ease) both;
}
.hero-cinema h1 .hw:nth-child(1) { animation-delay: 0.02s; }
.hero-cinema h1 .hw:nth-child(2) { animation-delay: 0.08s; }
.hero-cinema h1 .hw:nth-child(3) { animation-delay: 0.14s; }
.hero-cinema h1 .hw:nth-child(4) { animation-delay: 0.20s; }
.hero-cinema h1 .hw:nth-child(5) { animation-delay: 0.26s; }
.hero-cinema h1 .hw:nth-child(6) { animation-delay: 0.32s; }
.hero-cinema h1 .hw:nth-child(7) { animation-delay: 0.38s; }
@keyframes hw-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 799px) {
  .home, .maxie { --nav-float-top: 8px; --nav-capsule-h: 52px; }
  .home .nav, .maxie .nav { width: min(var(--wrap), calc(100% - 24px)); }
  .home .nav-in, .maxie .nav-in { height: 52px; min-height: 52px; padding: 0 6px 0 16px; }
  .home .brand .wordmark, .maxie .brand .wordmark { width: 96px; }
  .home .brand .appicon, .maxie .brand .appicon { width: 24px; height: 24px; border-radius: 5.5px; }
  .home .hero-cinema, .maxie .hero-cinema { padding-top: calc(28px + var(--nav-stack, 60px)); }
  .hero-cinema h1 { font-size: clamp(2.2rem, 11vw, 3.1rem); }
  .hero-cinema .hero-preview { margin-top: 28px; margin-bottom: -48px; }
  .trust-strip { margin-top: 72px; gap: 10px 16px; font-size: 13px; }
  .home .sec-h { flex-direction: column; align-items: flex-start; gap: 12px; }
  .home .sec-h p { max-width: none; }
  .home section { padding: 56px 0; }
}

@media (min-width: 640px) {
  .home .nav-in .nav-cta, .maxie .nav-in .nav-cta { display: inline-flex; }
}
@media (min-width: 900px) {
  .home .nav-in, .maxie .nav-in {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    height: 56px;
  }
  .home .nav-links, .maxie .nav-links { display: flex; }
  .home .nav-r, .maxie .nav-r { justify-self: end; margin-left: 0; }
  .home .nav-in .login, .maxie .nav-in .login { display: inline-flex; }
  .home .nav-toggle, .maxie .nav-toggle { display: none; }
  .home .nav-menu, .maxie .nav-menu { display: none !important; }
}
@media (min-width: 800px) {
  .home .hero-cinema, .maxie .hero-cinema { padding-top: calc(28px + var(--nav-stack, 66px)); }
  .hero-cinema h1 { font-size: clamp(2.8rem, 4.6vw, 4.25rem); }
  .hero-cinema .lead { font-size: 18px; }
  .home section { padding: 80px 0; }
  .home .hero-cinema + .trust-strip + section { padding-top: 56px; }
  .home #safety { padding: 112px 0; }
  .work-split { grid-template-columns: minmax(240px, 0.92fr) minmax(280px, 1.08fr); gap: 48px; }
  .work-vignette { position: sticky; top: 84px; }
  .apps-split { grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.05fr); gap: 56px; align-items: start; }
  .team-split { grid-template-columns: 1fr; }
  .safe-split { grid-template-columns: minmax(240px, 1.05fr) minmax(260px, 0.9fr); gap: 56px; align-items: center; }
  .roles { grid-template-columns: 1fr 1fr 1fr; gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cinema h1 .hw { animation: none; }
  .nav-glide, .nav-toggle span { transition: none !important; }
}
