@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/source-serif-4-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/source-serif-4-latin-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/source-serif-4-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/source-sans-3-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/source-sans-3-latin-600.woff2") format("woff2");
}

:root {
  --navy: #0e1c33;
  --navy-2: #16304f;
  --ink: #162033;
  --muted: #5c6774;
  --gold: #c6a56a;
  --gold-deep: #8d6a32;
  --gold-soft: #d9c7a2;
  --line: #e4e7ee;
  --paper: #f4f6f8;
  --white: #fff;
  --serif: "Source Serif 4", Georgia, "Liberation Serif", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --wrap: 1120px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--navy);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold-deep);
}

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 5;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 0.8rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.7rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.6rem;
}

.brand {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.brand img {
  width: min(210px, 46vw);
  height: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 1rem;
  height: 1px;
  background: var(--ink);
  content: "";
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before {
  top: -0.32rem;
}

.nav-toggle-lines::after {
  top: 0.32rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--ink);
  font-size: 1.02rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

.preview-badge svg {
  width: 1rem;
  height: 1rem;
}

.hero {
  background: var(--navy);
  color: #f7f4ee;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: center;
  padding: 4.2rem 0 3.6rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 4.7rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.gold-italic {
  display: block;
  margin-top: 0.15rem;
  color: var(--gold-soft);
  font-style: italic;
  font-weight: 400;
}

.hero-lead {
  max-width: 34rem;
  margin: 1.4rem 0 0;
  color: #d5dbe4;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
}

.btn-gold {
  background: #d2c1a2;
  color: var(--navy);
}

.btn-gold:hover {
  background: #e3d4b8;
  color: var(--navy);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
  background: transparent;
}

.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

.btn-navy {
  width: 100%;
  background: var(--navy);
  color: #fff;
}

.btn-navy:hover {
  background: var(--navy-2);
  color: #fff;
}

.btn svg {
  width: 1.05rem;
  height: 1.05rem;
  margin-right: 0.45rem;
}

.hero-art {
  min-height: 320px;
}

.hero-art svg {
  display: block;
  width: 100%;
  height: auto;
}

.strip {
  background: #f6f7f9;
  border-bottom: 1px solid var(--line);
}

.strip-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.15rem 0;
}

.strip-lead {
  margin: 0;
  min-width: 11rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

.strip-lead strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.strip ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.strip li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.2rem 1.3rem;
  border-left: 1px solid #d5dae2;
  color: var(--ink);
}

.strip li span {
  color: var(--gold-deep);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.section {
  padding: 4.2rem 0;
}

.portfolio-head {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.8rem;
}

.portfolio-head h2,
.behind h2,
.cta h2,
.page-intro h1,
.profile-band h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.portfolio-head h2,
.behind h2,
.cta h2 {
  font-size: clamp(2.3rem, 4.5vw, 3.5rem);
}

.portfolio-side {
  margin: 0;
  color: var(--muted);
}

.portfolio-side a {
  display: inline-block;
  margin-top: 0.7rem;
  font-weight: 600;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.company-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.2rem 1.15rem 1.1rem;
  border: 1px solid #e7ebf1;
  border-top-width: 4px;
  background: var(--white);
  color: inherit;
  text-decoration: none;
}

.company-card:hover {
  border-color: #c9d0da;
  color: inherit;
}

.card-luna { border-top-color: #b7a6d4; }
.card-moon { border-top-color: #c6a56a; }
.card-light { border-top-color: #2aa7b8; }
.card-gear { border-top-color: #1d3e66; }

.card-num {
  position: absolute;
  top: 0.85rem;
  right: 0.95rem;
  color: #b0b7c2;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.company-card img,
.about-logo {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0.4rem auto 0.8rem;
  object-fit: contain;
}

.company-card img {
  height: 118px;
}

.logo-dark {
  display: grid;
  place-items: center;
  width: min(100%, 210px);
  margin: 0.2rem auto 0.55rem;
  padding: 0.45rem;
  background: #10141c;
  border-radius: 14px;
}

.logo-dark img {
  height: 108px;
  width: auto;
  margin: 0;
}

.about-row .logo-dark {
  width: 150px;
  margin: 0;
}

.about-row .logo-dark img {
  width: 132px;
  height: 120px;
}

.cat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.2rem 0 0.45rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cat svg {
  width: 0.95rem;
  height: 0.95rem;
}

.company-card h3,
.about-copy h2,
.products h3,
.stage-callout h2,
.glance h2,
.contact-card h2 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
}

.company-card h3 {
  margin: 0;
  font-size: 1.7rem;
}

.company-card .desc,
.muted {
  color: var(--muted);
}

.company-card .desc {
  margin: 0.7rem 0 0;
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.more {
  font-weight: 600;
}

.pill {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
}

.pill-products { background: #efe8f6; color: #5d4b78; }
.pill-launch { background: #f4ead4; color: #7a5b28; }
.pill-pre { background: #e6eef6; color: #35516d; }
.pill-dev { background: #e7eef6; color: #1d3e66; }
.pill-soon { background: #f3eee6; color: #6d5640; }
.pill-available { background: #f1eaf8; color: #645484; }

.behind {
  background: #eef2f6;
}

.behind-grid,
.cta-grid,
.company-layout {
  display: grid;
  gap: 2.5rem;
}

.behind-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
}

.behind p,
.points p,
.about-copy p,
.products p,
.stage-callout p,
.contact-card p {
  margin: 0.75rem 0 0;
}

.owner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.owner-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid #c5ced8;
  background: var(--white);
  font-family: var(--serif);
  font-weight: 600;
}

.owner strong,
.owner span {
  display: block;
  line-height: 1.25;
}

.owner span span {
  color: var(--muted);
  font-size: 0.95rem;
}

.points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.points li {
  padding: 1rem 0;
  border-top: 1px solid #d5dde6;
}

.points li:last-child {
  border-bottom: 1px solid #d5dde6;
}

.points h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.point-num {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--gold-deep);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.cta-grid {
  grid-template-columns: 1.4fr auto;
  align-items: center;
}

.cta h2 {
  max-width: 16ch;
}

.cta-actions {
  display: grid;
  justify-items: end;
  gap: 0.85rem;
}

.btn-solid {
  background: var(--navy);
  color: #fff;
  min-width: 11rem;
}

.btn-solid:hover {
  background: var(--navy-2);
  color: #fff;
}

.site-footer {
  background: var(--navy);
  color: #d5dbe3;
  padding: 2.2rem 0 1.4rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}

.footer-logo {
  display: inline-block;
  padding: 0.7rem 0.9rem 0.55rem;
  background: #fff;
  line-height: 0;
}

.footer-logo img {
  width: 180px;
  height: auto;
}

.footer-tag {
  margin: 0.9rem 0 0;
}

.site-footer a {
  color: #e7edf4;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a[aria-current="page"] {
  color: var(--gold-soft);
  text-decoration: underline;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #b7c1ce;
  font-size: 0.95rem;
}

.footer-bottom p {
  margin: 0;
}

.profile-band {
  background: var(--navy);
  color: #f4f1ea;
  padding: 3.4rem 0 2.8rem;
}

.profile-band h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: #fff;
}

.profile-band .one-liner {
  max-width: 40rem;
  margin: 0.9rem 0 0;
  color: #d5dbe4;
  font-size: 1.15rem;
}

.company-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.7fr);
  align-items: start;
  padding-top: 2rem;
  padding-bottom: 3.5rem;
}

.back {
  margin: 0 0 1.6rem;
}

.back a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.28em;
}

.about-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
}

.about-logo {
  width: 150px;
  height: 130px;
  margin: 0;
}

.about-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.products {
  margin-top: 2.4rem;
}

.products h2 {
  margin: 0.2rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.product-card,
.stage-callout,
.glance,
.contact-card,
.empty-state,
.directory-card {
  border: 1px solid var(--line);
  background: var(--white);
}

.product-card,
.directory-card {
  padding: 1.1rem 1.15rem 1.15rem;
}

.product-card h3,
.directory-card h2 {
  margin: 0.7rem 0 0;
  font-size: 1.45rem;
}

.stage-callout {
  margin-top: 1rem;
  padding: 1.15rem 1.2rem;
  border-left: 3px solid var(--gold);
  background: #f4f6f8;
}

.stage-callout h2,
.glance h2,
.contact-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.glance,
.contact-card {
  padding: 1.15rem 1.15rem 1.25rem;
  background: #f5f7fa;
}

.contact-card {
  margin-top: 0.9rem;
  background: var(--white);
}

.glance dl {
  margin: 0.4rem 0 0;
}

.glance dt {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.glance dd {
  margin: 0.15rem 0 0;
}

.mail-icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.8rem;
  background: #eef2f6;
  color: var(--navy);
}

.mail-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.contact-card .email {
  display: inline-block;
  margin: 0.45rem 0 0.9rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-links {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.contact-links a {
  font-weight: 600;
}

.todo {
  margin-top: 0.8rem;
  padding: 0.75rem 0.85rem;
  border-left: 3px solid var(--gold);
  background: #f8f4ec;
}

.page-intro {
  padding: 3rem 0 0.5rem;
}

.page-intro h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.3rem 0 1.2rem;
}

.filter {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid #d5dbe4;
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
}

.filter input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.filter:has(input:checked) {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.filter:has(input:focus-visible) {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.result { display: none; }

.careers:has(input[value="all"]:checked) #result-all,
.careers:has(input[value="young-management"]:checked) #result-young-management,
.careers:has(input[value="gear-spark"]:checked) #result-gear-spark,
.careers:has(input[value="luna-publishing"]:checked) #result-luna-publishing,
.careers:has(input[value="moonlight-treasures"]:checked) #result-moonlight-treasures,
.careers:has(input[value="lightning-tech"]:checked) #result-lightning-tech {
  display: block;
}

.empty-state {
  padding: 2.4rem 1.2rem;
  text-align: center;
}

.empty-state h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
}

.opening-list {
  display: grid;
  gap: 0.8rem;
}

.opening-list:empty { display: none; }

.opening {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
}

.directory {
  display: grid;
  gap: 0.8rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .portfolio-head,
  .behind-grid,
  .cta-grid,
  .company-layout,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-actions {
    justify-items: start;
  }

  .hero-art {
    max-width: 520px;
  }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  .header-inner { position: relative; }

  .site-nav {
    display: none;
    position: absolute;
    z-index: 4;
    top: calc(100% + 0.25rem);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.8rem 1rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
  }

  .site-nav.is-open { display: flex; }

  .site-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
  }

  .strip-row,
  .footer-top,
  .footer-bottom,
  .about-row {
    display: grid;
  }

  .strip li {
    padding-left: 0;
    border-left: 0;
    min-height: 2.4rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
