:root {
  --bg: #0f0e0d;
  --surface: #171514;
  --raised: #22201d;
  --text: #efe9de;
  --muted: #aaa398;
  --subtle: #8f887d;
  --accent: #e59a3c;
  --accent-hover: #efa84d;
  --hairline: rgba(239, 233, 222, 0.1);
  --radius: 12px;
  --font-heading: 'Rethink Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Rethink Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(15, 14, 13, 0.78);
  border-bottom: 1px solid rgba(239, 233, 222, 0.06);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
}

.brand:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  transition: color 150ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.header-cta {
  display: flex;
  align-items: center;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 16px;
  color: var(--text);
}

p {
  margin: 0 0 16px;
  max-width: 68ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 150ms cubic-bezier(0.22, 1, 0.36, 1), border-color 150ms cubic-bezier(0.22, 1, 0.36, 1), color 150ms cubic-bezier(0.22, 1, 0.36, 1), transform 120ms ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.btn-nav {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.btn-amber {
  background: var(--accent);
  color: #12100e;
}

.btn-amber:hover {
  background: var(--accent-hover);
}

.btn-ivory {
  background: var(--text);
  color: #12100e;
}

.btn-ivory:hover {
  background: #ffffff;
}

.btn-surface {
  background: var(--raised);
  color: var(--text);
  border-color: rgba(239, 233, 222, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 248, 238, 0.08);
}

.btn-surface:hover {
  background: #2b2824;
  border-color: rgba(239, 233, 222, 0.24);
}

/* Hero Stage */
.hero-stage {
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 68% 52% at 50% -6%, rgba(168, 102, 34, 0.24), transparent 72%),
    radial-gradient(ellipse 40% 42% at 12% 28%, rgba(132, 76, 26, 0.14), transparent 68%),
    radial-gradient(ellipse 40% 42% at 88% 28%, rgba(132, 76, 26, 0.14), transparent 68%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 196px 1fr 196px;
  align-items: center;
  gap: 24px;
}

.hero-grid:has(.vr-workspace:not([hidden])) {
  grid-template-columns: 1fr;
}

.hero-grid:has(.vr-workspace:not([hidden])) .studio-card {
  display: none;
}

.hero-grid:has(.vr-workspace:not([hidden])) .engage-bar {
  max-width: 960px;
}

.hero-center {
  text-align: center;
  min-width: 0;
}

.hero-h1 {
  font-size: 60px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin: 0 auto 20px;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto 32px;
}

.tool-mount {
  width: 100%;
}

/* Studio Flanking Photography Cards */
.studio-card {
  margin: 0;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(239, 233, 222, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.studio-card-left {
  transform: rotate(-4deg) translateY(12px);
}

.studio-card-right {
  transform: rotate(4deg) translateY(-4px);
}

.studio-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: contrast(1.03) brightness(0.92);
}

.studio-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 14px 12px;
  background: linear-gradient(180deg, rgba(15, 14, 13, 0) 0%, rgba(15, 14, 13, 0.88) 72%, rgba(15, 14, 13, 0.96) 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* Quiet Engagement Bar */
.engage-bar {
  max-width: 600px;
  margin: 28px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(239, 233, 222, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.engage-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.engage-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(239, 233, 222, 0.11);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.engage-btn:hover {
  color: var(--text);
  border-color: rgba(239, 233, 222, 0.24);
}

.engage-btn[data-gf-liked],
.engage-btn[aria-pressed="true"] {
  background: rgba(229, 154, 60, 0.14);
  border-color: rgba(229, 154, 60, 0.45);
  color: var(--accent);
}

.engage-count {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.engage-msg {
  font-size: 13px;
  color: var(--accent);
}

.engage-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--subtle);
}

.engage-link:hover {
  color: var(--text);
  text-decoration: none;
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-hairline {
  border-top: 1px solid var(--hairline);
}

.display-h2 {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 22ch;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 12px;
}

.section-head {
  margin-bottom: 40px;
}

.section-split-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.quiet-action {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(239, 233, 222, 0.28);
}

.quiet-action:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* Section 2: Analog Signal Path Frame */
.signal-frame {
  background: #141311;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 56px;
}

.signal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(239, 233, 222, 0.08);
}

.signal-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.mono-dim {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--subtle);
}

.signal-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mono-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(239, 233, 222, 0.1);
  background: rgba(239, 233, 222, 0.03);
}

.signal-body {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 24px;
  padding: 24px 20px;
  align-items: stretch;
}

.signal-bands {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.band-row {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(239, 233, 222, 0.08);
  background: rgba(239, 233, 222, 0.02);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.band-row-active {
  border-color: rgba(229, 154, 60, 0.42);
  background: rgba(229, 154, 60, 0.06);
}

.band-freq {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--subtle);
}

.band-row-active .band-freq {
  color: var(--accent);
}

.band-desc {
  font-size: 14px;
  color: var(--text);
}

.band-footnote {
  margin: auto 0 0;
  padding-top: 8px;
  font-size: 13px;
  color: var(--subtle);
}

.signal-preview {
  background: #0f0e0d;
  border: 1px solid rgba(239, 233, 222, 0.08);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mono-time {
  font-family: var(--font-mono);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.preview-track {
  display: grid;
  grid-template-columns: 104px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(239, 233, 222, 0.02);
  border: 1px solid rgba(239, 233, 222, 0.06);
}

.preview-track-vocals {
  border-color: rgba(229, 154, 60, 0.25);
  background: rgba(229, 154, 60, 0.04);
}

.preview-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.preview-track-vocals .preview-label {
  color: var(--accent);
}

.preview-bars {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.preview-bars span {
  flex: 1;
  max-width: 5px;
  border-radius: 2px;
  background: rgba(226, 219, 208, 0.55);
}

.preview-track-vocals .preview-bars span {
  background: var(--accent);
}

.preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid rgba(239, 233, 222, 0.07);
}

/* 3-Step Hairline Strip */
.step-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-item {
  border-top: 1px solid rgba(239, 233, 222, 0.16);
  padding-top: 16px;
}

.step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--subtle);
  margin-bottom: 12px;
}

.step-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Parameter Hairline Table */
.param-table {
  border-top: 1px solid var(--hairline);
}

.param-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}

.param-meta h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.param-range {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

.param-desc p {
  color: var(--muted);
  margin: 0;
}

/* 2x2 Use-Case Editorial Grid */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
}

.editorial-item {
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
}

.editorial-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.editorial-item p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

/* Prose + Spec Sheet Split */
.prose-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.prose-article h2 {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-top: 32px;
  margin-bottom: 14px;
}

.prose-article h2:first-child {
  margin-top: 0;
}

.prose-article h3 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 8px;
}

.prose-article p,
.prose-article li {
  color: var(--muted);
  font-size: 15px;
}

.prose-article strong {
  color: var(--text);
  font-weight: 500;
}

.prose-article ul,
.prose-article ol {
  margin: 0 0 16px;
  padding-left: 20px;
  max-width: 64ch;
}

.prose-article li {
  margin-bottom: 8px;
}

.specs-aside {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 24px;
}

.specs-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 16px;
}

/* Tool Breadcrumb & Related Tools */
.tool-breadcrumb {
  justify-content: center;
  margin-bottom: 16px;
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.related-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}

.related-link {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}

.related-link:hover {
  color: var(--accent);
}

.related-desc {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.spec-sheet {
  margin: 0;
}

.spec-row {
  padding: 12px 0;
  border-top: 1px solid rgba(239, 233, 222, 0.08);
}

.spec-row dt {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--subtle);
  margin-bottom: 4px;
}

.spec-row dd {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

/* FAQ Hairline Accordion */
.faq-list {
  max-width: 820px;
  border-top: 1px solid var(--hairline);
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
  padding: 20px 0;
}

.faq-item summary {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--subtle);
}

.faq-item[open] summary::after {
  content: "\2212";
  color: var(--accent);
}

.faq-item p {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--muted);
}

/* Comments */
.comments-wrap {
  max-width: 780px;
}

.comment-form {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid rgba(239, 233, 222, 0.14);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
}

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

.comment-msg {
  font-size: 13px;
  color: var(--accent);
}

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

.comment-empty-note {
  display: none;
  font-size: 14px;
  color: var(--subtle);
}

.comment-list[data-gf-empty] .comment-empty-note {
  display: block;
}

.comment-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 16px 20px;
}

.comment-card[data-gf-owner] {
  border-color: rgba(229, 154, 60, 0.45);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--subtle);
  margin-bottom: 8px;
}

.comment-meta strong {
  color: var(--text);
  font-weight: 500;
}

.owner-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #12100e;
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
}

.comment-body {
  margin: 0 0 10px;
  font-size: 15px;
}

.reply-to-tag {
  color: var(--accent);
  margin-right: 6px;
}

.reply-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  padding: 4px 0;
  cursor: pointer;
}

.reply-btn:hover {
  color: var(--text);
}

.comment-replies {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 1px solid var(--hairline);
  display: grid;
  gap: 12px;
}

/* Inner & Legal Pages */
.page-top {
  padding-top: 64px;
}

.page-narrow {
  max-width: 760px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--subtle);
  margin-bottom: 20px;
}

.page-h1 {
  font-size: 40px;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.page-lead {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 32px;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--subtle);
  margin-bottom: 32px;
}

.page-faq {
  margin-top: 48px;
}

.back-cta {
  margin-top: 32px;
}

.not-found {
  padding: 48px 0;
}

.nf-code {
  font-family: var(--font-mono);
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 36px;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--subtle);
  margin: 8px 0 0;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 14px;
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid rgba(239, 233, 222, 0.06);
  padding-top: 20px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--subtle);
  margin: 0;
}

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .studio-card {
    display: none;
  }
}

@media (max-width: 860px) {
  .signal-body,
  .step-strip,
  .param-row,
  .related-row,
  .editorial-grid,
  .prose-layout {
    grid-template-columns: 1fr;
  }
  .header-cta {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
  .hero-stage {
    padding: 48px 0 40px;
  }
  .hero-h1 {
    font-size: 36px;
  }
  .display-h2,
  .page-h1 {
    font-size: 28px;
  }
  .section {
    padding: 56px 0;
  }
  .site-nav {
    gap: 16px;
  }
  .preview-track {
    grid-template-columns: 1fr;
  }
  .back-cta .btn {
    width: 100%;
  }
}