:root {
  --white: #fff;
  --charcoal: #151515;
  --charcoal-2: #242424;
  --muted: #636363;
  --soft: #8a8a8a;
  --line: rgba(21, 21, 21, .12);
  --line-strong: rgba(21, 21, 21, .22);
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, .08);
  --accent-line: rgba(37, 99, 235, .28);
  --panel: #fbfbfb;
  --shadow: 0 18px 50px rgba(21, 21, 21, .07);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
  color: var(--charcoal);
  line-height: 1.62;
  overflow-x: hidden
}

h1,
h2,
h3,
.brand-mark,
.editorial {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 500;
  letter-spacing: -.04em
}

a {
  color: inherit;
  text-decoration: none
}

img {
  display: block;
  width: 100%
}

p {
  color: var(--muted)
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line)
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px
}

.brand-mark {
  width: 42px;
  height: 42px;
  /* border: 1px solid var(--charcoal); */
  /* border-radius: 999px; */
  display: grid;
  place-items: center;
  font-size: 17px;
  background: #fff
}

.brand-name {
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px
}

.nav-links a {
  position: relative;
  padding: 8px 0
}

.nav-links a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .24s ease
}

.nav-links a:hover:after,
.nav-links a.active:after {
  width: 100%
}

.nav-cta {
  border: 1px solid var(--charcoal);
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--charcoal);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  transition: transform .24s ease, background .24s ease
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: var(--accent);
  border-color: var(--accent)
}

.mobile-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 800
}

.hero {
  padding: 88px 0 70px;
  background: #fff;
  position: relative
}

.hero:before,
.page-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to right, rgba(21, 21, 21, .035) 1px, transparent 1px), linear-gradient(to bottom, rgba(21, 21, 21, .025) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .30), transparent 70%)
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, .94fr);
  gap: 58px;
  align-items: center
}

.identity-band {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px
}

.identity-band span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 800;
  background: #fff
}

.identity-band span:first-child {
  background: var(--charcoal);
  color: #fff;
  border-color: var(--charcoal)
}

h1 {
  font-size: clamp(52px, 8vw, 94px);
  line-height: .94;
  max-width: 930px;
  margin-bottom: 26px
}

.hero-lede {
  max-width: 780px;
  font-size: clamp(20px, 2vw, 25px);
  color: #2c2c2c;
  line-height: 1.42;
  margin-bottom: 24px
}

.hero-copy {
  max-width: 740px;
  font-size: 17px;
  margin-bottom: 34px
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 19px;
  border-radius: 999px;
  border: 1px solid var(--charcoal);
  font-size: 14px;
  font-weight: 850;
  transition: transform .24s ease, box-shadow .24s ease, background .24s ease
}

.button.primary {
  background: var(--charcoal);
  color: #fff;
  box-shadow: 0 14px 34px rgba(21, 21, 21, .12)
}

.button.secondary {
  background: #fff;
  color: var(--charcoal)
}

.button.ghost {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--charcoal)
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(21, 21, 21, .10)
}

.command-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
  overflow: hidden
}

.portrait-wrap {
  height: 430px;
  position: relative;
  overflow: hidden;
  background: #f4f4f4;
  border-bottom: 1px solid var(--line)
}

.portrait-wrap img {
  height: 430px;
  object-fit: cover;
  object-position: center top
}

.image-fallback {
  display: none;
  height: 100%;
  place-items: center;
  text-align: center;
  color: var(--soft);
  padding: 28px;
  background: linear-gradient(135deg, #fff, #f5f5f5);
  font-size: 14px
}

.command-body {
  padding: 24px
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px
}

.signal {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
  min-height: 86px
}

.signal strong {
  display: block;
  font-family: Inter, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
  line-height: 1;
  margin-bottom: 7px;
  letter-spacing: -.03em
}

.signal span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  display: block
}

.live-note {
  border-left: 3px solid var(--accent);
  padding-left: 14px
}

.live-note strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px
}

.live-note p {
  font-size: 14px
}

.proof-strip {
  padding: 0 0 76px;
  background: #fff
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: #fff
}

.proof {
  padding: 24px;
  min-height: 140px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between
}

.proof:last-child {
  border-right: 0
}

.proof strong {
  font-family: Inter, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.04em
}

.proof span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35
}

section {
  padding: 92px 0;
  background: #fff
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 42px
}

.kicker {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 900;
  margin-bottom: 12px
}

h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02
}

.section-head p {
  font-size: 17px;
  max-width: 700px
}

.architecture {
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 12px 42px rgba(21, 21, 21, .045)
}

.architecture-core {
  border: 1px solid var(--charcoal);
  border-radius: 24px;
  padding: 30px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 28px;
  align-items: center;
  background: #fff
}

.architecture-core h3 {
  font-size: 38px;
  line-height: 1.05
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px
}

.module {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  min-height: 210px;
  background: #fff;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease
}

.module:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: 0 18px 42px rgba(21, 21, 21, .07)
}

.module small {
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900;
  display: block;
  margin-bottom: 30px
}

.module h3 {
  font-size: 28px;
  line-height: 1.12;
  margin-bottom: 10px
}

.module p {
  font-size: 15px
}

.feature-split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: stretch
}

.feature-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px;
  background: #fff;
  box-shadow: var(--shadow)
}

.feature-panel h3 {
  font-size: 42px;
  line-height: 1.05;
  margin-bottom: 18px
}

.feature-panel p+p {
  margin-top: 14px
}

.quote-panel {
  background: var(--charcoal);
  color: #fff;
  border-radius: 28px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px
}

.quote-panel p {
  color: rgba(255, 255, 255, .78)
}

.quote-panel blockquote {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 34px;
  line-height: 1.14;
  letter-spacing: -.04em;
  margin-top: 80px
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px
}

.card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(21, 21, 21, .045);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(21, 21, 21, .075);
  border-color: var(--accent-line)
}

.card-image {
  height: 190px;
  border-bottom: 1px solid var(--line);
  background: #f5f5f5;
  overflow: hidden
}

.card-image img {
  height: 190px;
  object-fit: cover
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 240px
}

.card small {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900
}

.card h3 {
  font-size: 28px;
  line-height: 1.12
}

.card a.read {
  margin-top: auto;
  color: var(--accent);
  font-weight: 900
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px
}

.filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--charcoal);
  color: #fff;
  border-color: var(--charcoal)
}

.book-row {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 22px;
  align-items: stretch
}

.book-intro {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px;
  background: #fff;
  box-shadow: var(--shadow)
}

.book-intro h3 {
  font-size: 44px;
  line-height: 1.04;
  margin-bottom: 18px
}

.book-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

.book-cover-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  padding: 14px
}

.book-cover {
  height: 330px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #f5f5f5
}

.book-cover img {
  height: 330px;
  object-fit: cover
}

.book-cover-card h3 {
  font-size: 22px;
  line-height: 1.12;
  margin: 14px 0 6px
}

.compass {
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow)
}

.compass-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px
}

.compass-main {
  border: 1px solid var(--charcoal);
  border-radius: 24px;
  padding: 32px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between
}

.compass-main blockquote {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -.04em
}

.gem-list {
  display: grid;
  gap: 12px
}

.gem-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #fff
}

.gem-item small {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900
}

.gem-item p {
  font-size: 15px;
  margin-top: 6px
}

.page-hero {
  position: relative;
  padding: 88px 0 62px;
  background: #fff;
  border-bottom: 1px solid var(--line)
}

.page-hero .container {
  position: relative
}

.page-hero h1 {
  max-width: 960px
}

.page-hero p {
  font-size: 20px;
  max-width: 820px;
  color: #333
}

.two-col {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 38px
}

.toc {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  position: sticky;
  top: 100px;
  height: max-content
}

.toc a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700
}

.toc a:last-child {
  border-bottom: 0
}

.longform {
  max-width: 840px
}

.longform h2 {
  font-size: 42px;
  margin: 34px 0 16px
}

.longform h3 {
  font-size: 28px;
  margin: 28px 0 10px
}

.longform p+p {
  margin-top: 16px
}

.longform ul {
  margin: 16px 0 0 22px;
  color: var(--muted)
}

.longform li {
  margin: 8px 0
}

.article-list {
  display: grid;
  gap: 14px
}

.article-row {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  background: #fff;
  display: grid;
  grid-template-columns: 200px auto 120px;
  gap: 18px;
  align-items: center
} 
.article-row img {
  border-radius: 10px;
  height: 160px;
  object-fit: contain;
  border: 1px #ebebeb solid;
  background: #f7f7f7;
}

.article-row h3 {
  font-size: 25px;
  line-height: 1.15
}

.article-row small {
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em
}

.contact-box {
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 36px;
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 34px
}

.contact-form {
  display: grid;
  gap: 14px
}

.contact-form label {
  font-weight: 800;
  font-size: 14px
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  background: #fff
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical
}

.privacy-note {
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin-top: 18px
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px
}

.social-row a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 13px;
  font-weight: 800;
  color: var(--muted)
}

.social-row a:hover {
  border-color: var(--accent);
  color: var(--accent)
}

footer {
  border-top: 1px solid var(--line);
  padding: 38px 0;
  background: #fff
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  color: var(--muted);
  font-size: 14px
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap
}

.note {
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  margin-top: 20px
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em
}

.breadcrumb a {
  color: var(--accent)
}

@media(max-width:1080px) {
  .nav-links {
    display: none
  }

  .mobile-toggle {
    display: inline-flex
  }

  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 18px 20px;
    flex-direction: column;
    align-items: flex-start
  }

  .hero-grid,
  .section-head,
  .feature-split,
  .book-row,
  .compass-grid,
  .two-col,
  .contact-box {
    grid-template-columns: 1fr
  }

  .proof-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .proof:nth-child(3) {
    border-right: 0
  }

  .proof:nth-child(n+4) {
    border-top: 1px solid var(--line)
  }

  .module-grid,
  .cards-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .toc {
    position: relative;
    top: auto
  }

  .book-covers {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:700px) {
  .container {
    width: min(var(--max), calc(100% - 28px))
  }

  .hero,
  .page-hero {
    padding: 58px 0 48px
  }

  h1 {
    font-size: clamp(44px, 15vw, 64px)
  }

  section {
    padding: 64px 0
  }

  .proof-grid,
  .module-grid,
  .cards-grid,
  .book-covers,
  .signal-row {
    grid-template-columns: 1fr
  }

  .proof {
    border-right: 0;
    border-top: 1px solid var(--line)
  }

  .proof:first-child {
    border-top: 0
  }

  .architecture,
  .architecture-core,
  .feature-panel,
  .quote-panel,
  .compass,
  .contact-box {
    border-radius: 12px;
    padding: 16px
  }

  .architecture-core {
    grid-template-columns: 1fr
  }

  .compass-main blockquote {
    font-size: 32px
  }

  .quote-panel blockquote {
    font-size: 28px;
    margin-top: 42px
  }

  .article-row {
    grid-template-columns: 1fr
  }

  .footer-grid {
    grid-template-columns: 1fr
  }

  .nav-cta {
    display: none
  }
}


.career-detail {
  display: grid;
  gap: 14px;
  margin-top: 18px
}

.career-detail-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  background: #fff;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px
}

.career-detail-item .period {
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 13px
}

.career-detail-item h3 {
  font-size: 26px;
  line-height: 1.15;
  margin: 0 0 8px
}

.career-detail-item p {
  margin: 0
}

.career-detail-item ul {
  margin-top: 10px
}

@media(max-width:700px) {
  .career-detail-item {
    grid-template-columns: 1fr
  }
}


.story-intro {
  font-size: 17px;
  color: #333;
  margin-bottom: 18px
}

.story-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(21, 21, 21, .045);
  margin: 18px 0 10px
}

.story-panel p {
  font-size: 17px;
  line-height: 1.75
}

.story-panel p+p {
  margin-top: 16px
}

.story-panel strong {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 25px;
  line-height: 1.24;
  color: var(--charcoal);
  font-weight: 500;
  letter-spacing: -.03em
}


/* Wise & Restless Guide prototype */
.guide-section {
  padding: 92px 0;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.guide-shell {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 30px;
  background: #fff;
  box-shadow: var(--shadow)
}

.guide-copy h2 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.02;
  margin-bottom: 18px
}

.guide-copy p {
  font-size: 17px;
  max-width: 680px
}

.guide-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px
}

.guide-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--charcoal);
  padding: 10px 13px;
  font-weight: 850;
  cursor: pointer
}

.guide-chip:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.guide-demo {
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background: #fff
}

.guide-demo-top {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center
}

.guide-demo-top strong {
  font-size: 15px
}

.guide-demo-top span {
  font-size: 12px;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase
}

.guide-demo-body {
  padding: 20px;
  display: grid;
  gap: 14px
}

.guide-line {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fff
}

.guide-line.user {
  margin-left: 12%;
  background: var(--accent-soft);
  border-color: var(--accent-line)
}

.guide-line p {
  font-size: 15px
}

.guide-open-inline {
  margin-top: 8px;
  width: max-content
}

.guide-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  border: 1px solid var(--charcoal);
  background: var(--charcoal);
  color: #fff;
  border-radius: 999px;
  padding: 13px 17px;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(21, 21, 21, .18);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px
}

.guide-launcher:before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft)
}

.guide-launcher:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px)
}

.guide-panel {
  position: fixed;
  right: 22px;
  bottom: 82px;
  width: min(430px, calc(100vw - 32px));
  max-height: 72vh;
  z-index: 91;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 26px 90px rgba(21, 21, 21, .22);
  display: none;
  overflow: hidden
}

.guide-panel.open {
  display: flex;
  flex-direction: column
}

.guide-panel-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start
}

.guide-panel-title strong {
  display: block;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -.04em
}

.guide-panel-title span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px
}

.guide-close {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-weight: 900
}

.guide-messages {
  padding: 18px;
  display: grid;
  gap: 12px;
  overflow: auto
}

.guide-msg {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px 14px;
  background: #fff
}

.guide-msg.bot {
  border-left: 3px solid var(--accent)
}

.guide-msg.user {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  margin-left: 12%
}

.guide-msg p {
  font-size: 14px;
  color: var(--muted)
}

.guide-msg strong {
  color: var(--charcoal)
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 14px
}

.guide-followups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 14px
}

.guide-quick {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 800;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer
}

.guide-quick:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.guide-input {
  border-top: 1px solid var(--line);
  padding: 14px;
  display: flex;
  gap: 8px
}

.guide-input input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 13px;
  font: inherit
}

.guide-input button {
  border: 1px solid var(--charcoal);
  background: var(--charcoal);
  color: #fff;
  border-radius: 999px;
  padding: 10px 13px;
  font-weight: 900;
  cursor: pointer
}

.guide-input button:hover {
  background: var(--accent);
  border-color: var(--accent)
}

.guide-results {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px
}

.guide-result-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 15px;
  background: #fff
}

.guide-result-card strong {
  display: block;
  color: var(--charcoal);
  font-size: 15px;
  margin-bottom: 8px
}

.guide-result-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0
}

.guide-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px
}

.guide-result-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  font-size: 12px;
  font-weight: 800;
  color: var(--charcoal)
}

@media(max-width:800px) {
  .guide-shell {
    grid-template-columns: 1fr;
    padding: 22px
  }

  .guide-launcher {
    right: 14px;
    bottom: 14px
  }

  .guide-panel {
    right: 14px;
    bottom: 72px
  }

  .guide-section {
    padding: 64px 0
  }
}

/* Gems of Wisdom: The Restless Compass */
.gems-hero {
  padding: 88px 0 76px;
  background: #fff;
  position: relative;
  overflow: hidden
}

.gems-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% 15%, var(--accent-soft), transparent 26rem), linear-gradient(to right, rgba(21, 21, 21, .035) 1px, transparent 1px), linear-gradient(to bottom, rgba(21, 21, 21, .025) 1px, transparent 1px);
  background-size: auto, 88px 88px, 88px 88px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .42), transparent 82%)
}

.gems-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 56px;
  align-items: center
}

.identity-band.compact {
  margin: 20px 0 24px
}

.todays-gem-card {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden
}

.todays-gem-card blockquote {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -.05em;
  color: var(--charcoal);
  position: relative;
  z-index: 2
}

.todays-gem-card p {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px
}

.orbital-lines {
  position: absolute;
  inset: 24px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  transform: rotate(-14deg);
  opacity: .78
}

.orbital-lines:before,
.orbital-lines:after {
  content: "";
  position: absolute;
  inset: 42px;
  border: 1px solid var(--line);
  border-radius: 50%
}

.orbital-lines:after {
  inset: 88px;
  border-color: var(--accent-line);
  transform: rotate(34deg)
}

.gems-draw-section {
  padding: 76px 0;
  background: #fff
}

.draw-panel {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 30px;
  background: #fff;
  box-shadow: 0 16px 54px rgba(21, 21, 21, .06)
}

.draw-panel>div:first-child {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.draw-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, #fff, var(--accent-soft));
  padding: 32px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between
}

.draw-card small {
  color: var(--accent);
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase
}

.draw-card blockquote {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -.045em;
  color: var(--charcoal);
  margin: 26px 0
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px
}

.mood-card {
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 22px;
  padding: 22px;
  min-height: 145px;
  cursor: pointer;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease
}

.mood-card span {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 900;
  font-size: 11px;
  margin-bottom: 18px
}

.mood-card strong {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 500
}

.mood-card:hover,
.mood-card.active {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: 0 14px 40px rgba(21, 21, 21, .07)
}

.mood-card.active {
  background: var(--accent-soft)
}

.constellation-section {
  background: #fff
}

.constellation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(210px, auto);
  gap: 16px
}

.constellation-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 34px rgba(21, 21, 21, .035)
}

.constellation-card.large {
  grid-column: span 2;
  grid-row: span 2
}

.constellation-card.tall {
  grid-row: span 2
}

.constellation-card.accent-card {
  background: var(--charcoal);
  color: #fff
}

.constellation-card.accent-card p,
.constellation-card.accent-card small {
  color: rgba(255, 255, 255, .75)
}

.constellation-card small,
.note-card small,
.archive-gem small {
  color: var(--accent);
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11px
}

.constellation-card h3 {
  font-size: clamp(26px, 2.8vw, 42px);
  line-height: 1.03;
  margin: 16px 0 18px
}

.constellation-card p+p {
  margin-top: 14px
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.note-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  padding: 28px;
  box-shadow: 0 12px 42px rgba(21, 21, 21, .045)
}

.note-card blockquote {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -.04em;
  margin: 22px 0;
  color: var(--charcoal)
}

.archive-section {
  background: #fff
}

.archive-tools {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px
}

.archive-tools input {
  width: min(680px, 100%);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 15px 18px;
  font: inherit;
  background: #fff
}

.archive-tools input:focus {
  outline: 2px solid var(--accent-line);
  border-color: var(--accent-line)
}

.archive-count {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800
}

.gem-archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px
}

.archive-gem {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  padding: 22px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease
}

.archive-gem.wide {
  grid-column: span 2;
  background: var(--accent-soft)
}

.archive-gem:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 38px rgba(21, 21, 21, .07);
  border-color: var(--accent-line)
}

.archive-gem p {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 23px;
  line-height: 1.18;
  letter-spacing: -.035em;
  color: var(--charcoal);
  margin-top: 18px
}

.inline-gems-guide {
  border-top: 1px solid var(--line)
}

@media(max-width:980px) {

  .gems-hero-grid,
  .draw-panel {
    grid-template-columns: 1fr
  }

  .mood-grid,
  .note-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .constellation-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .gem-archive-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:680px) {
  .gems-hero {
    padding: 58px 0
  }

  .todays-gem-card {
    min-height: 390px;
    padding: 26px
  }

  .mood-grid,
  .note-grid,
  .constellation-grid,
  .gem-archive-grid {
    grid-template-columns: 1fr
  }

  .constellation-card.large,
  .constellation-card.tall,
  .archive-gem.wide {
    grid-column: auto;
    grid-row: auto
  }

  .archive-tools {
    align-items: stretch;
    flex-direction: column
  }

  .archive-tools input {
    width: 100%
  }

  .draw-panel {
    padding: 18px
  }

  .draw-panel>div:first-child {
    padding: 12px
  }

  .draw-card {
    padding: 24px
  }
}
