:root { --studio-accent: #148890; --studio-button-text: #fffdf8; }
:root[data-pc-theme="contrast"] { --studio-accent: #53c8ff; --studio-button-text: #050505; }
/* Approved Midnight Studio website palette. Shared product tokens remain unchanged. */
:root[data-pc-theme="dark"] {
  --pc-surface-canvas: #10284c;
  --pc-surface-primary: #142f55;
  --pc-surface-subtle: #0d2343;
  --pc-text-primary: #fffdf8;
  --pc-text-secondary: #bac8da;
  --pc-border-default: #3c5270;
  --pc-action-primary: #1675df;
  --pc-action-primary-hover: #1268ca;
  --pc-action-focus: #fffdf8;
  --studio-accent: #148890;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body {
  margin: 0;
  background: var(--pc-surface-canvas);
  color: var(--pc-text-primary);
  font-family: var(--pc-font-sans, Aptos, "Segoe UI", system-ui, sans-serif);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--pc-action-focus); outline-offset: 6px; }
::selection { color: var(--pc-color-navy); background: var(--pc-color-paper); }
.wrap { width: min(1280px, calc(100% - 128px)); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 30;
  top: 12px;
  left: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  color: var(--pc-color-navy);
  background: var(--pc-color-paper);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  gap: 32px;
  border-bottom: 1px solid var(--pc-border-default);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.wordmark-art { width: 230px; height: auto; }
.wordmark-art-navy { display: none; }
:root[data-pc-theme="light"] .wordmark-art-white { display: none; }
:root[data-pc-theme="light"] .wordmark-art-navy { display: block; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .96rem;
  font-weight: 500;
}
.site-nav a:not(.nav-cta):hover { text-decoration: underline; text-underline-offset: 7px; }
.site-nav .nav-cta {
  justify-content: center;
  gap: 20px;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--pc-border-default);
  border-radius: var(--pc-radius-button, 10px);
}
.site-nav .nav-cta:hover { background: var(--pc-surface-primary); border-color: var(--pc-text-secondary); }
.menu-toggle, .menu-toggle[hidden] { display: none; }
.ui-icon { display: inline-block; width: 1.125rem; height: 1.125rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 16px;
  min-height: 692px;
  padding-block: 56px 64px;
}
.hero-copy { position: relative; z-index: 2; }
.hero-swap {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--pc-surface-canvas);
  clip-path: inset(0 0 0 100%);
  transition: clip-path 700ms cubic-bezier(.22,.7,.25,1);
}
.hero-swap img {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  max-width: none;
  height: auto;
}
#main:has([data-hero-preview="ink"]:is(:hover, :focus-visible)) [data-hero-art="ink"],
#main:has([data-hero-preview="compass"]:is(:hover, :focus-visible)) [data-hero-art="compass"],
#main:has([data-hero-preview="flow"]:is(:hover, :focus-visible)) [data-hero-art="flow"],
#main:has([data-hero-preview="intelligence"]:is(:hover, :focus-visible)) [data-hero-art="intelligence"] { clip-path: inset(0); }
.tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 27px;
  font-size: 1.05rem;
  color: var(--pc-text-secondary);
}
.tagline::before { content: ""; width: 28px; height: 3px; background: var(--studio-accent); }
h1 {
  font-size: clamp(4.2rem, 6.8vw, 6.3rem);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -.065em;
}
h1 span { display: block; white-space: nowrap; }
h1 .keep {
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .99em;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.062em;
}
.hero-description {
  max-width: 490px;
  margin-top: 32px;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--pc-text-secondary);
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 34px; }
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  min-width: 166px;
  gap: 32px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--pc-radius-button, 10px);
  background: var(--pc-action-primary);
  color: var(--studio-button-text);
  font-size: 1.25rem;
  font-weight: 700;
  transition: background 140ms;
}
.button-primary:hover { background: var(--pc-action-primary-hover); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; gap: 18px; font-weight: 500; }
.text-link:hover { text-decoration: underline; text-underline-offset: 6px; }
.mascot-stage { position: relative; z-index: 0; display: grid; place-items: center; align-self: stretch; min-width: 0; }
.mascot {
  width: 100%;
  height: 540px;
  object-fit: contain;
  object-position: center;
}

.tools { padding-top: 26px; padding-bottom: 88px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 32px; }
.section-heading h2 { max-width: 520px; font-size: 2.8rem; font-weight: 550; line-height: 1.14; letter-spacing: -.045em; }
.family-note { max-width: 320px; color: var(--pc-text-secondary); font-size: 1rem; }
.family-note strong { color: var(--pc-text-primary); font-weight: 500; }
.product-shelf {
  display: grid;
  grid-template-columns: 1.12fr repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--pc-border-default);
  list-style: none;
  padding: 0;
  margin: 0;
}
.product-shelf li { min-width: 0; }
.product-shelf li + li { border-left: 1px solid var(--pc-border-default); }
.product-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 308px;
  padding: 25px 24px 22px;
  transition: background 140ms;
}
.product-link:hover { background: var(--pc-surface-primary); }
.product-link:focus-visible { position: relative; outline-offset: -4px; }
.product-shelf li:first-child { background: var(--pc-surface-primary); }
.product-shelf li:first-child .product-link { box-shadow: inset 0 3px 0 var(--pc-color-blue); }
.product-icon { width: 64px; height: 64px; object-fit: contain; margin-bottom: 20px; }
.product-link h3 { margin-bottom: 9px; font-size: 1.45rem; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
.product-description { color: var(--pc-text-secondary); font-size: 1rem; line-height: 1.5; }
.product-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 24px; margin-top: auto; font-size: .9rem; }
.product-family { background: var(--pc-surface-primary); box-shadow: inset 0 3px 0 var(--studio-accent); }
.product-family:hover { background: var(--pc-surface-subtle); }
.product-family .product-action { font-weight: 600; }
.product-family .product-action .arrow { width: 1.25rem; height: 1.25rem; }

.principles { background: var(--pc-surface-subtle); border-block: 1px solid var(--pc-border-default); }
.principles-layout { display: grid; grid-template-columns: 1.08fr 1fr; gap: 100px; padding-block: 78px 72px; }
.principles-intro { display: flex; flex-direction: column; align-items: start; }
.principles-intro h2 { max-width: 520px; font-size: clamp(3rem, 4.4vw, 4.25rem); font-weight: 500; line-height: 1.08; letter-spacing: -.055em; }
.principles-intro h2 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.principles-intro > p { max-width: 410px; margin-block: 25px 24px; font-size: 1.1rem; color: var(--pc-text-secondary); }
.principle-list { display: grid; gap: 28px; margin: 0; }
.principle { padding-left: 24px; border-left: 2px solid var(--pc-border-default); }
.principle:first-child { border-color: var(--studio-accent); }
.principle dt { margin-bottom: 6px; font-size: 1.3rem; font-weight: 550; letter-spacing: -.015em; }
.principle dd { max-width: 390px; margin: 0; color: var(--pc-text-secondary); }

.site-footer { padding-block: 38px 24px; }
.footer-main { display: flex; justify-content: space-between; align-items: start; gap: 32px; }
.footer-brand p { color: var(--pc-text-secondary); font-size: .95rem; margin-top: 7px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 30px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .95rem; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.footer-meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--pc-border-default); color: var(--pc-text-secondary); font-size: .8rem; }
.footer-meta a { display: inline-flex; align-items: center; min-height: 44px; gap: 9px; }
.footer-meta a:hover { text-decoration: underline; text-underline-offset: 5px; }

@media (min-width: 1550px) { h1 { font-size: 6.75rem; } }
@media (max-width: 1150px) {
  .wrap { width: calc(100% - 80px); }
  .hero { min-height: 620px; grid-template-columns: 1.4fr 1fr; }
  h1 { font-size: 7vw; }
  .mascot { height: 470px; }
  .product-link { padding-inline: 18px; min-height: 320px; }
  .product-link h3 { font-size: 1.25rem; }
  .principles-layout { gap: 64px; }
}
@media (max-width: 850px) {
  .wrap { width: calc(100% - 48px); }
  .site-header { min-height: 88px; gap: 20px; }
  .site-nav { gap: 20px; }
  .site-nav a { font-size: .9rem; }
  .hero { min-height: 560px; padding-block: 48px; }
  .tagline { font-size: .95rem; gap: 8px; }
  .tagline::before { width: 18px; }
  h1 { font-size: 7.3vw; }
  .hero-description { font-size: 1.1rem; }
  .mascot { height: 390px; }
  .hero-actions { gap: 12px 20px; }
  .button-primary { min-width: 145px; padding-inline: 20px; }
  .section-heading { gap: 32px; align-items: start; }
  .section-heading h2 { font-size: 2.4rem; }
  .family-note { max-width: 240px; }
  .product-shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-shelf li:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--pc-border-default); }
  .product-shelf li:nth-child(2) { border-left: 0; }
  .product-shelf li:first-child .product-link { display: grid; grid-template-columns: 80px 1fr 110px; column-gap: 22px; min-height: 132px; align-items: center; }
  .product-shelf li:first-child .product-icon { grid-row: 1 / 3; margin: 0; }
  .product-shelf li:first-child h3 { align-self: end; margin-bottom: 5px; }
  .product-shelf li:first-child .product-description { grid-column: 2; align-self: start; }
  .product-shelf li:first-child .product-action { grid-column: 3; grid-row: 1 / 3; margin: 0; padding: 0; }
  .product-link { padding-inline: 16px; min-height: 300px; }
  .principles-layout { gap: 48px; padding-block: 64px; }
  .principles-intro h2 { font-size: 3rem; }
  .footer-links { gap: 5px 22px; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { flex-wrap: wrap; min-height: 80px; gap: 0; padding-block: 16px; }
  .wordmark-art { width: 178px; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--pc-border-default);
    border-radius: 8px;
    color: var(--pc-text-primary);
    background: transparent;
    cursor: pointer;
    font-size: .95rem;
  }
  .menu-symbol { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; }
  .menu-symbol .menu-icon-close { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-icon-open { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-icon-close { display: inline-block; }
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding-top: 16px; }
  .site-nav[hidden] { display: none; }
  .site-nav a { padding-inline: 12px; font-size: 1rem; }
  .site-nav .nav-cta { justify-content: space-between; margin-top: 4px; }
  .hero { grid-template-columns: 1fr; gap: 16px; min-height: auto; padding-block: 42px 24px; }
  .tagline { font-size: .95rem; margin-bottom: 24px; }
  h1 { font-size: clamp(2.75rem, 11.8vw, 4.8rem); letter-spacing: -.06em; }
  h1 .keep { margin-top: 8px; }
  .hero-description { max-width: 440px; margin-top: 24px; font-size: 1.1rem; line-height: 1.6; }
  .hero-actions { margin-top: 26px; gap: 14px 24px; }
  .button-primary { min-height: 54px; }
  .mascot-stage { margin-top: 8px; }
  .mascot { width: 100%; height: 340px; }
  .hero-swap img { width: auto; height: 340px; top: auto; bottom: 24px; right: calc(50% - 165px); transform: none; }
  .tools { padding-block: 26px 56px; }
  .section-heading { display: block; margin-bottom: 24px; }
  .section-heading h2 { max-width: 340px; font-size: 2.5rem; }
  .family-note { max-width: 340px; margin-top: 18px; }
  .product-shelf { display: block; }
  .product-shelf li + li { border-left: 0; border-top: 1px solid var(--pc-border-default); }
  .product-shelf li:first-child { border-bottom: 0; }
  .product-link,
  .product-shelf li:first-child .product-link {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 0 20px;
    min-height: auto;
    padding: 24px 16px;
    align-items: start;
  }
  .product-icon, .product-shelf li:first-child .product-icon { width: 60px; height: 60px; grid-column: 1; grid-row: 1 / 4; margin: 0; }
  .product-link h3, .product-shelf li:first-child h3 { grid-column: 2; font-size: 1.35rem; margin-bottom: 7px; }
  .product-description, .product-shelf li:first-child .product-description { grid-column: 2; }
  .product-action, .product-shelf li:first-child .product-action { grid-column: 2; grid-row: auto; padding-top: 16px; margin: 0; }
  .principles-layout { grid-template-columns: 1fr; gap: 40px; padding-block: 52px; }
  .principles-intro h2 { max-width: 350px; font-size: 3rem; }
  .principles-intro > p { margin-top: 22px; margin-bottom: 18px; }
  .principle-list { gap: 28px; }
  .principle { padding-left: 20px; }
  .site-footer { padding-top: 30px; }
  .footer-main { flex-direction: column; gap: 20px; }
  .footer-links { gap: 4px 26px; }
  .footer-meta { align-items: start; flex-direction: column; gap: 4px; margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  :root[data-pc-theme="dark"] { --pc-action-focus: Highlight; --pc-border-default: CanvasText; }
  .button-primary, .nav-cta, .menu-toggle { border: 1px solid ButtonText; }
  .product-shelf li:first-child .product-link { border-top: 3px solid Highlight; }
}

/* Shared reading surfaces, using the same quiet hierarchy as the home page. */
.theme-control { display: flex; align-items: center; gap: 12px; font-size: .85rem; }
.theme-control select { min-height: 44px; max-width: 100%; border: 1px solid var(--pc-border-default); border-radius: 8px; padding: 8px 12px; background: var(--pc-surface-canvas); color: var(--pc-text-primary); font: inherit; cursor: pointer; }
.eyebrow, .story-kicker, .guide-label { margin-bottom: 18px; color: var(--pc-text-secondary); font-size: .85rem; font-weight: 600; letter-spacing: .05em; }
.reading-main, .learn-main, .guide-main { width: min(1280px, calc(100% - 128px)); margin-inline: auto; }
.reading-main h1, .learn-main h1, .guide-main h1 { font-size: clamp(2.8rem, 5.6vw, 5.5rem); line-height: 1.06; letter-spacing: -.045em; overflow-wrap: anywhere; }
.learn-intro, .guide-hero { padding-block: 88px 72px; }
.learn-intro { max-width: 850px; }
.learn-intro > p:not(.eyebrow), .guide-lede { max-width: 760px; margin-block: 26px 30px; font-size: 1.2rem; line-height: 1.7; color: var(--pc-text-secondary); }
.guide-hero > div { max-width: 940px; }
.guide-hero img { width: 80px; height: 80px; object-fit: contain; margin-bottom: 28px; }
.guide-hero .text-link { margin-left: 24px; }
.guide-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 80px; border-top: 1px solid var(--pc-border-default); border-left: 1px solid var(--pc-border-default); }
.guide-card { display: flex; flex-direction: column; min-width: 0; padding: 32px; border-right: 1px solid var(--pc-border-default); border-bottom: 1px solid var(--pc-border-default); }
.guide-card:hover { background: var(--pc-surface-primary); }
.guide-card img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 24px; }
.guide-card h2 { font-size: 1.6rem; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 16px; }
.guide-card h2 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.guide-card p:not(.eyebrow) { margin-bottom: 24px; color: var(--pc-text-secondary); }
.guide-card .text-link { margin-top: auto; align-self: start; }
.guide-grid, .guide-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid var(--pc-border-default); }
.guide-grid article, .guide-detail > div { padding: 48px 40px 48px 0; }
.guide-grid article + article, .guide-detail > div + div { padding-left: 40px; border-left: 1px solid var(--pc-border-default); }
.guide-grid h2, .guide-detail h2 { font-size: clamp(1.6rem, 2.4vw, 2.3rem); line-height: 1.25; letter-spacing: -.025em; }
.guide-grid p:not(.eyebrow), .guide-detail li { color: var(--pc-text-secondary); font-size: 1.1rem; }
.guide-detail { margin-top: 40px; }
.guide-detail ul { padding-left: 22px; margin-top: 24px; }
.guide-detail li + li { margin-top: 16px; }
.guide-note { max-width: 850px; border-left: 2px solid var(--studio-accent); margin-block: 64px; padding-left: 24px; color: var(--pc-text-secondary); }
.guide-note strong { color: var(--pc-text-primary); }
.reading-main { padding-bottom: 80px; }
.founder-hero { padding-block: 80px 64px; }
.founder-hero-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: 64px; }
.founder-lead { margin-top: 28px; color: var(--pc-text-secondary); font-size: 1.2rem; line-height: 1.7; }
.founder-meta { color: var(--pc-text-secondary); margin-top: 28px; font-size: .95rem; }
.founder-site-link { margin-top: 20px; }
.founder-guide-card { text-align: center; }
.founder-guide-art img { width: 100%; height: 340px; object-fit: contain; }
.founder-guide-card > p { max-width: 340px; margin-inline: auto; margin-top: 12px; color: var(--pc-text-secondary); }
.founder-guide-card strong { color: var(--pc-text-primary); }
.founder-copy { max-width: 780px; border-top: 1px solid var(--pc-border-default); padding-top: 56px; }
.founder-copy p, .legal-copy p { margin-bottom: 24px; font-size: 1.12rem; line-height: 1.85; color: var(--pc-text-secondary); }
.founder-copy .story-kicker { font-size: .85rem; line-height: 1.5; }
.founder-copy strong, .legal-copy strong { color: var(--pc-text-primary); }
.founder-copy .founder-pullquote { margin-block: 44px 24px; color: var(--pc-text-primary); font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.35; }
.founder-quote { margin: 40px 0; border-left: 2px solid var(--studio-accent); padding: 8px 0 8px 28px; }
.founder-quote p { margin-bottom: 12px; color: var(--pc-text-primary); }
.founder-quote cite { color: var(--pc-text-secondary); }
.founder-beliefs-section, .founder-invitation { margin-block: 48px; }
.founder-copy h2 { font-size: 2rem; line-height: 1.25; margin-bottom: 24px; letter-spacing: -.02em; }
.founder-beliefs { list-style: none; padding: 0; }
.founder-beliefs li { display: grid; grid-template-columns: 32px 1fr; gap: 20px; border-bottom: 1px solid var(--pc-border-default); padding-block: 20px; }
.belief-mark { color: var(--pc-text-secondary); font-size: .85rem; padding-top: 4px; }
.founder-signoff { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 32px; border-top: 1px solid var(--pc-border-default); }
.founder-signoff strong, .founder-signoff span { display: block; }
.founder-signoff span { margin-top: 8px; color: var(--pc-text-secondary); }
.legal-copy { max-width: 780px; padding-top: 80px; }
.legal-copy h1 { margin-bottom: 40px; }
.legal-copy h2 { margin-block: 40px 16px; font-size: 1.65rem; line-height: 1.3; }
@media (max-width: 1150px) { .reading-main, .learn-main, .guide-main { width: calc(100% - 80px); } .founder-hero-layout { gap: 40px; } .guide-card { padding: 28px; } }
@media (max-width: 850px) {
  .reading-main, .learn-main, .guide-main { width: calc(100% - 48px); }
  .guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founder-hero-layout { grid-template-columns: 1fr; }
  .founder-guide-card { display: none; }
}
@media (max-width: 650px) {
  .reading-main, .learn-main, .guide-main { width: calc(100% - 40px); }
  .learn-intro, .guide-hero, .founder-hero { padding-block: 48px; }
  .reading-main h1, .learn-main h1, .guide-main h1 { font-size: clamp(2.5rem, 11vw, 3.8rem); }
  .guide-list, .guide-grid, .guide-detail { grid-template-columns: 1fr; }
  .guide-card { padding: 28px 24px; }
  .guide-grid article, .guide-detail > div { padding: 28px 0; }
  .guide-grid article + article, .guide-detail > div + div { border-left: 0; border-top: 1px solid var(--pc-border-default); padding-left: 0; }
  .guide-hero .text-link { margin: 16px 0 0; display: flex; }
  .guide-note { margin-block: 40px; }
  .founder-copy { padding-top: 36px; }
  .legal-copy { padding-top: 48px; }
  .footer-meta { gap: 16px; }
}

/* Detailed product guides share the existing Midnight Studio foundations. */
.product-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: .85rem; color: var(--pc-text-secondary); }
.product-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.product-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 5px; }
.product-page .guide-hero { padding-block: 48px 44px; }
.product-page .guide-hero > div { max-width: 1080px; }
.product-heading { display: flex; align-items: center; gap: 22px; margin-bottom: 24px; }
.product-heading .eyebrow { margin: 0; }
.product-page .product-heading img { width: 64px; height: 64px; margin: 0; }
.product-page .guide-hero h1 { font-size: clamp(2.7rem, 5.4vw, 5rem); line-height: 1.08; }
.product-promise { margin-top: 24px; max-width: 1000px; font: italic clamp(1.9rem, 3.7vw, 3.4rem)/1.2 Georgia, serif; color: var(--pc-text-primary); letter-spacing: -.035em; }
.product-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; margin-top: 30px; }
.product-page .guide-hero .text-link { margin: 0; }
.product-hero-actions .button-primary, .product-end .button-primary { font-size: 1.05rem; min-height: 54px; }
.product-audience { display: flex; flex-wrap: wrap; gap: 12px 24px; list-style: none; padding: 0; margin-top: 32px; color: var(--pc-text-secondary); font-size: .92rem; }
.product-audience li { padding-left: 16px; position: relative; }
.product-audience li::before { content: ''; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--studio-accent); }
.product-page .guide-hero { position: relative; isolation: isolate; }
.guide-hero-copy { position: relative; z-index: 1; }
/* Shared hero treatment: a light readability overlay and shadows on the text itself. */
.hero-copy :is(h1, p, li),
.guide-hero-copy :is(h1, p, li) { text-shadow: 2px 2px 2px #000, 4px 4px 4px #000, 0px 0px 3px #000, 2px 2px 4px #000, 0px 0px 2px #000, 0px 0px 6px #000, 0px 0px 4px #000, 0px 0px 1px #000; }
:root[data-pc-theme="light"] .hero-copy :is(h1, p, li),
:root[data-pc-theme="light"] .guide-hero-copy :is(h1, p, li) { text-shadow: none; }
.hero-copy a,
.guide-hero-copy a { text-shadow: none; }
.product-page .has-artwork .guide-hero-copy { max-width: 73%; }
.product-page .guide-hero > .guide-hero-art { position: absolute; z-index: 0; inset: 0; max-width: none; pointer-events: none; }
.product-page .guide-hero-art img { display: block; width: 100%; height: auto; margin: 0; }
.hero-swap::after,
.product-page .guide-hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--pc-surface-canvas) 60%, transparent), color-mix(in srgb, var(--pc-surface-canvas) 47.857143%, transparent) 48%, transparent 76%);
}
.product-scene figcaption { margin-top: 12px; color: var(--pc-text-secondary); font-size: .85rem; line-height: 1.6; }
.product-pager { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: clamp(12px, 3vw, 40px); border-top: 1px solid var(--pc-border-default); padding-block: 10px; }
.product-pager a { display: flex; align-items: center; gap: 12px; min-height: 44px; min-width: 0; padding-block: 6px; font-size: .95rem; line-height: 1.4; }
.product-pager a:hover { color: var(--pc-action-primary); }
.product-pager a:hover strong, .product-pager-all:hover { text-decoration: underline; text-underline-offset: 5px; }
.product-pager-next { justify-content: flex-end; text-align: right; }
.product-pager-copy { min-width: 0; overflow-wrap: anywhere; }
.product-pager-copy > span { display: block; color: var(--pc-text-secondary); font-size: .75rem; margin-bottom: 2px; }
.product-pager-copy strong { font-weight: 600; }
.product-pager-arrow { width: 1.25rem; height: 1.25rem; }
.product-pager-all { justify-content: center; align-self: center; font-weight: 600; white-space: nowrap; }
.product-pager-top { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); border-top: 0; padding-block: 12px; }
.product-pager-top .product-breadcrumb { justify-content: center; align-self: center; min-width: 0; text-align: center; }
.product-pager-top .product-breadcrumb a { font-size: inherit; }
.product-pager-bottom { border-bottom: 1px solid var(--pc-border-default); margin-bottom: 64px; }
@media (max-width: 650px) {
  .product-pager-top { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0; }
  .product-pager-top .product-breadcrumb { grid-column: 1 / -1; grid-row: 1; }
  .product-pager-top > .product-pager-prev { grid-column: 1; grid-row: 2; }
  .product-pager-top > .product-pager-next { grid-column: 2; grid-row: 2; }
}
@media (max-width: 450px) {
  .product-pager { gap: 10px; }
  .product-pager a { gap: 6px; font-size: .82rem; }
  .product-pager-arrow { width: 1rem; height: 1rem; }
}
.product-section-nav { display: flex; flex-wrap: wrap; gap: 8px 30px; padding-block: 14px; border-block: 1px solid var(--pc-border-default); }
.product-section-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .95rem; }
.product-section-nav a:hover { color: var(--studio-accent); text-decoration: underline; text-underline-offset: 7px; }
.product-overview { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 72px; padding-block: 72px; }
.product-overview h2 { font-size: clamp(1.8rem, 2.7vw, 2.6rem); line-height: 1.24; letter-spacing: -.035em; margin-bottom: 28px; }
.product-overview p:not(.eyebrow), .product-section p, .product-example p:not(.eyebrow), .product-foundations li { color: var(--pc-text-secondary); font-size: 1.08rem; line-height: 1.8; }
.product-overview p + p { margin-top: 22px; }
.product-availability { align-self: start; padding: 28px; background: var(--pc-surface-primary); border-top: 3px solid var(--studio-accent); border-radius: 0 0 12px 12px; }
.product-availability h3 { margin-bottom: 18px; font-size: 1.4rem; line-height: 1.3; }
.product-section { padding-block: 64px; border-top: 1px solid var(--pc-border-default); scroll-margin-top: 28px; }
.product-section-heading { max-width: 790px; margin-bottom: 36px; }
.product-section-heading h2, .product-example h2, .product-foundations h2 { font-size: clamp(1.9rem, 3.1vw, 2.9rem); line-height: 1.18; letter-spacing: -.04em; }
.product-section-heading > p:last-child:not(.eyebrow) { margin-top: 20px; }
.capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 64px; }
.capability { padding-block: 30px; border-top: 1px solid var(--pc-border-default); }
.capability h3, .product-workflow h3, .product-outputs h3 { font-size: 1.4rem; line-height: 1.3; margin-bottom: 16px; letter-spacing: -.02em; }
.capability:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 900px; }
.product-scene { margin: 0 0 64px; }
.product-scene > a { display: block; border-radius: 16px; }
.product-scene img { display: block; width: 100%; height: auto; border: 1px solid var(--pc-border-default); border-radius: 16px; }
.product-workflow { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px 64px; list-style: none; padding: 0; }
.product-workflow li { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 18px; }
.workflow-number { font: italic 2.1rem/1.15 Georgia,serif; color: var(--studio-accent); }
.product-example { padding: 48px; background: var(--pc-surface-subtle); border-left: 3px solid var(--studio-accent); border-radius: 0 14px 14px 0; margin-block: 20px 64px; scroll-margin-top: 28px; }
.product-example h2 { max-width: 860px; margin-bottom: 26px; }
.example-copy { max-width: 870px; }
.example-copy p + p { margin-top: 24px; }
.product-outputs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; }
.product-outputs article { border-left: 2px solid var(--pc-border-default); padding-left: 24px; }
.product-foundations { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 64px; padding-block: 56px 64px; border-top: 1px solid var(--pc-border-default); }
.product-foundations h2 { font-size: 1.8rem; }
.product-foundations ul { padding-left: 23px; margin-top: 24px; }
.product-foundations li + li { margin-top: 16px; }
.product-questions { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 70px; }
.product-questions details { border-bottom: 1px solid var(--pc-border-default); }
.product-questions summary { padding-block: 24px; font-size: 1.15rem; font-weight: 600; line-height: 1.5; cursor: pointer; }
.product-questions details p { padding: 0 0 24px; }
.product-questions summary:hover { color: var(--studio-accent); }
.related-products { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-left: 1px solid var(--pc-border-default); border-top: 1px solid var(--pc-border-default); }
.related-product { display: flex; flex-direction: column; padding: 28px; border-right: 1px solid var(--pc-border-default); border-bottom: 1px solid var(--pc-border-default); }
.related-product:hover { background: var(--pc-surface-primary); }
.related-product h3 { font-size: 1.45rem; line-height: 1.3; margin-bottom: 16px; letter-spacing: -.025em; }
.related-product p { margin-bottom: 24px; font-size: 1rem; }
.related-product .text-link { margin-top: auto; }
.product-end { padding-block: 40px 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.product-end > p { flex-basis: 100%; font: italic clamp(1.8rem,3vw,2.7rem)/1.3 Georgia,serif; margin-bottom: 10px; }
.guide-card .guide-thumbnail { width: 100%; height: auto; aspect-ratio: 1280 / 427; object-fit: contain; margin-bottom: 28px; }
.guide-card:hover h2 { text-decoration: underline; text-underline-offset: 5px; }
.guide-card:focus-visible, .related-product:focus-visible { outline-offset: -4px; }
@media (max-width: 1000px) {
  .product-overview { gap: 40px; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); }
  .capability-grid, .product-workflow, .product-foundations { gap: 28px 40px; }
  .product-questions { grid-template-columns: 1fr; gap: 8px; }
  .product-outputs { gap: 22px; }
}
@media (max-width: 700px) {
  .product-page .guide-hero { padding-block: 28px 36px; }
  .product-page .guide-hero h1 { font-size: clamp(2.5rem,10vw,3.8rem); }
  .product-heading { gap: 16px; }
  .product-promise { font-size: 2rem; }
  .product-audience { gap: 10px 18px; }
  .product-page .has-artwork .guide-hero-copy { max-width: 100%; }
  .product-page .guide-hero > .guide-hero-art { position: relative; inset: auto; margin-top: 24px; }
  .product-page .guide-hero-art::after { display: none; }
  .product-section-nav { gap: 0 22px; }
  .product-section-nav a { font-size: .9rem; }
  .product-overview, .capability-grid, .product-workflow, .product-outputs, .product-foundations, .related-products { grid-template-columns: 1fr; }
  .product-overview { gap: 32px; padding-block: 40px; }
  .product-availability { padding: 24px; }
  .product-section { padding-block: 40px; }
  .product-section-heading { margin-bottom: 28px; }
  .capability-grid { gap: 0; }
  .product-scene { margin-bottom: 40px; }
  .product-scene img { border-radius: 8px; }
  .product-workflow { gap: 30px; }
  .product-example { margin-block: 10px 40px; padding: 28px 24px; }
  .product-outputs { gap: 30px; }
  .product-foundations { padding-block: 36px 40px; gap: 36px; }
  .related-product { padding: 24px; }
  .product-end { padding-block: 24px 48px; }
}

/* One complete, alphabetized software destination in every site header. */
.site-header { position: relative; z-index: 20; }
.software-menu { position: relative; display: flex; align-items: center; gap: 4px; }
.software-menu-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; color: var(--pc-text-primary); background: transparent; border: 1px solid transparent; border-radius: 8px; font: inherit; font-size: 1.4rem; cursor: pointer; }
.software-menu-toggle:hover, .software-menu-toggle[aria-expanded="true"] { background: var(--pc-surface-primary); border-color: var(--pc-border-default); }
.software-menu-toggle > .ui-icon { width: 20px; height: 20px; transition: transform 140ms; }
.software-menu-toggle[aria-expanded="true"] > .ui-icon { transform: rotate(180deg); }
.software-dropdown { position: absolute; z-index: 30; right: 0; top: 100%; width: min(560px, calc(100vw - 40px)); max-height: 75vh; overflow-y: auto; padding: 16px; background: var(--pc-surface-primary); border: 1px solid var(--pc-border-default); border-radius: 12px; box-shadow: 0 18px 50px rgb(0 0 0 / .2); }
.software-dropdown[hidden] { display: none; }
.software-dropdown ul { list-style: none; padding: 8px 0 0; margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px 12px; }
.site-nav .software-dropdown a { padding: 10px 12px; min-height: 44px; display: flex; font-size: .95rem; line-height: 1.4; border-radius: 6px; }
.site-nav .software-dropdown a:hover { background: var(--pc-surface-canvas); }
.software-dropdown .software-all { justify-content: space-between; border-bottom: 1px solid var(--pc-border-default); font-weight: 650; }
@media (max-width: 650px) {
  .software-menu { flex-wrap: wrap; }
  .software-menu > a { flex: 1; }
  .software-menu-toggle { margin-right: 8px; border-color: var(--pc-border-default); }
  .software-dropdown { position: static; width: 100%; max-height: 55vh; margin-block: 6px 12px; padding: 10px; box-shadow: none; }
  .software-dropdown ul { gap: 2px; }
  .site-nav .software-dropdown a { font-size: .9rem; }
}
@media (forced-colors: active) {
  .software-menu-toggle, .software-dropdown { border: 1px solid ButtonText; }
}
