/* ==========================================================================
   Axion (Saksham) — Personal Portfolio Stylesheet
   Zero-framework, high-performance, accessible, mobile-first design system
   ========================================================================== */

/* --- Self-Hosted Fonts --- */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/InstrumentSerif-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/InstrumentSerif-Italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/HankenGrotesk-Variable.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/IBMPlexMono-Regular.woff2') format('woff2');
}

/* --- Design Tokens --- */
:root {
  --ink: #0B0A09;
  --coal: #12100F;
  --soot: #1A1816;
  --line: #2A2723;
  --chalk: #EDE7DB;
  --ash: #A59F94;
  --ember: #D7924B;
  --night: #12100F;
  --night-line: #2A2723;
  --glass: #A59F94;

  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', Menlo, Consolas, monospace;

  --gutter: 20px;
  --content-max-width: 1200px;
  --section-padding: clamp(72px, 14vw, 140px);
}

@media (min-width: 768px) {
  :root {
    --gutter: 40px;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 64px;
  }
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--ink);
  color: var(--chalk);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  background-color: var(--ink);
  color: var(--chalk);
  overflow-x: hidden;
  position: relative;
}

@media (min-width: 1024px) {
  body {
    font-size: 18px;
  }
}

[id] {
  scroll-margin-top: 72px;
}

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 9999;
  background: var(--ember);
  color: var(--ink);
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--chalk);
}

h1 {
  font-size: clamp(38px, 10.5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  word-break: normal;
  overflow-wrap: normal;
}

@media (min-width: 1024px) {
  h1 {
    font-size: clamp(76px, 7.5vw, 112px);
  }
}

h2 {
  font-size: clamp(32px, 8vw, 54px);
  line-height: 1.05;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--ash);
  display: block;
}

p {
  max-width: 62ch;
}

/* --- Buttons & Links --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  min-height: 48px;
  min-width: 48px;
  padding: 0 28px;
  background-color: var(--ember);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.92;
}

.link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  color: var(--chalk);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 6px;
  cursor: pointer;
  background: none;
  border: none;
}

.link-secondary:hover {
  color: var(--ember);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  background: transparent;
  color: var(--chalk);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
  border-color: var(--ash);
}

/* --- Layout & Containers --- */
.container {
  width: 100%;
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  position: relative;
}

.bg-ink {
  background-color: var(--ink);
}

.bg-coal {
  background-color: var(--coal);
}

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

.hairline-bottom {
  border-bottom: 1px solid var(--line);
}

/* --- Motion & Scroll Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 450ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background-color: rgba(11, 10, 9, 0.95);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--chalk);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand-ring {
  width: 18px;
  height: 18px;
  color: var(--ember);
  flex-shrink: 0;
}

.brand-sun {
  width: 22px;
  height: 22px;
  color: var(--ember);
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.brand:hover .brand-sun {
  transform: rotate(45deg);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--ash);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--chalk);
}

.nav-cta {
  display: none;
}

.menu-toggle {
  background: transparent;
  border: none;
  color: var(--chalk);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 14px;
  min-height: 48px;
  min-width: 48px;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
  .nav-links {
    display: flex;
  }
  .nav-cta {
    display: inline-flex;
  }
}

/* --- Mobile Menu Overlay --- */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: var(--ink);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 24px var(--gutter);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--chalk);
  font-family: var(--font-sans);
  font-size: 15px;
  cursor: pointer;
  padding: 12px;
  min-height: 48px;
  min-width: 48px;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
  gap: 24px;
}

.mobile-menu-nav a {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--chalk);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-menu-nav a:hover {
  color: var(--ember);
}

.mobile-menu-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.mobile-menu-footer a {
  color: var(--ash);
  text-decoration: none;
  font-size: 15px;
}

/* ==========================================================================
   1. Hero Section & The Sun-Ring
   ========================================================================== */
.hero-section {
  padding-top: 20px;
  padding-bottom: 48px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero-section {
    padding-top: 60px;
    padding-bottom: 84px;
  }
}

.hero-grid {
  display: flex;
  flex-direction: column;
}

/* Mobile & Tablet Ordering (< 1024px) */
@media (max-width: 1023px) {
  .hero-text {
    display: contents;
  }
  .hero-header-block {
    order: 1;
    margin-bottom: 8px;
  }
  .hero-visual-wrapper {
    order: 2;
    position: relative;
    width: 100%;
    height: 310px;
    margin: 4px auto 16px auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
  }
  .hero-sub {
    order: 3;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--chalk);
    margin-bottom: 16px;
  }
  .hero-actions {
    order: 4;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
  }
  .hero-note {
    order: 5;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--ash);
    line-height: 1.4;
  }
}

@media (min-width: 480px) and (max-width: 1023px) {
  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
  .hero-visual-wrapper {
    height: 360px;
  }
}

/* Desktop Grid (>= 1024px) */
@media (min-width: 1024px) {
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
    gap: 64px;
    align-items: flex-end;
  }
  .hero-visual-wrapper {
    order: 1;
    position: relative;
    width: 100%;
    height: 560px;
    max-height: 600px;
    margin: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
    min-width: 0;
  }
  .hero-text {
    order: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 24px;
    min-width: 0;
  }
  .hero-header-block {
    margin-bottom: 20px;
  }
  .hero-sub {
    font-size: 18.5px;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 52ch;
  }
  .hero-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    margin-bottom: 18px;
  }
  .hero-note {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--ash);
    line-height: 1.4;
  }
}

.hero-label {
  margin-bottom: 8px;
}

.hero-headline {
  margin-bottom: 0;
}

.hero-headline span {
  display: block;
}

/* Portrait & Visual Container Rules */
.hero-visual-wrapper picture {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.hero-portrait {
  position: relative;
  z-index: 2;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  animation: portrait-reveal 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes portrait-reveal {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-portrait {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   2. Paths Section
   ========================================================================== */
.paths-section .mono-label {
  margin-bottom: 16px;
}

.paths-section h2 {
  margin-bottom: 48px;
}

.paths-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

@media (min-width: 1024px) {
  .paths-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
  }
}

.path-row {
  display: flex;
  align-items: center;
  min-height: 88px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  gap: 20px;
  transition: background-color 0.2s ease;
}

@media (min-width: 1024px) {
  .path-row:nth-child(odd) {
    padding-right: 32px;
    border-right: 1px solid var(--line);
  }
  .path-row:nth-child(even) {
    padding-left: 32px;
  }
}

.path-number {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ember);
  flex-shrink: 0;
}

.path-content {
  flex: 1;
}

.path-title {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.2;
  color: var(--chalk);
  margin-bottom: 4px;
}

.path-sub {
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--ash);
  line-height: 1.4;
}

.path-arrow {
  color: var(--ash);
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.path-row:hover .path-arrow {
  color: var(--ember);
  transform: translateX(4px);
}

/* ==========================================================================
   3. Build Section
   ========================================================================== */
.build-section .mono-label {
  margin-bottom: 16px;
}

.build-section h2 {
  margin-bottom: 24px;
}

.section-intro {
  font-size: 18px;
  line-height: 1.6;
  color: var(--chalk);
  margin-bottom: 48px;
}

.services-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  margin-bottom: 48px;
}

.service-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .service-item {
    grid-template-columns: 48px 1fr;
    gap: 24px;
  }
}

.service-num {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ember);
}

.service-body {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--chalk);
}

.service-title {
  font-weight: 600;
  color: var(--chalk);
}

.service-desc {
  color: var(--ash);
}

.tools-block {
  margin-bottom: 48px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tools-label {
  margin-bottom: 8px;
}

.tools-list {
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--ash);
  line-height: 1.5;
}

.why-hire-block {
  margin-bottom: 48px;
}

.why-hire-title {
  font-family: var(--font-serif);
  font-size: 28px;
  margin-bottom: 24px;
}

.why-hire-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .why-hire-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.why-item-title {
  font-weight: 600;
  color: var(--chalk);
  margin-bottom: 8px;
}

.why-item-desc {
  color: var(--ash);
  font-size: 15.5px;
  line-height: 1.55;
}

.section-cta-wrap {
  margin-top: 32px;
}

/* ==========================================================================
   4. How It Works Section
   ========================================================================== */
.how-section .mono-label {
  margin-bottom: 16px;
}

.how-section h2 {
  margin-bottom: 48px;
}

.timeline-list {
  position: relative;
  margin-left: 12px;
  padding-left: 28px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-bottom: 40px;
}

.timeline-item {
  position: relative;
}

.timeline-num {
  position: absolute;
  left: -40px;
  top: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ember);
  background: var(--coal);
  padding: 2px 0;
}

.timeline-title {
  font-weight: 600;
  color: var(--chalk);
}

.timeline-desc {
  color: var(--ash);
}

.section-note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ash);
  max-width: 62ch;
}

/* ==========================================================================
   5. About My Work Section
   ========================================================================== */
.about-work-section .mono-label {
  margin-bottom: 16px;
}

.about-work-section h2 {
  margin-bottom: 32px;
}

.work-body {
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.work-lead {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
}

.work-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.work-list li {
  position: relative;
  padding-left: 20px;
  color: var(--ash);
  font-size: 16.5px;
  line-height: 1.55;
}

.work-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--ember);
}

/* ==========================================================================
   6. Partner Section
   ========================================================================== */
.partner-section .mono-label {
  margin-bottom: 16px;
}

.partner-section h2 {
  margin-bottom: 24px;
}

.partner-body {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 48px;
}

.partner-columns-top {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 1024px) {
  .partner-columns-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.partner-block-title {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--ash);
  margin-bottom: 16px;
}

.partner-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.partner-list li {
  position: relative;
  padding-left: 18px;
  color: var(--chalk);
  font-size: 16px;
  line-height: 1.5;
}

.partner-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--ember);
}

.partner-band-bottom {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  margin-bottom: 40px;
}

@media (min-width: 1024px) {
  .partner-band-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

/* ==========================================================================
   7. Collaborate Section
   ========================================================================== */
.collab-section .mono-label {
  margin-bottom: 16px;
}

.collab-section h2 {
  margin-bottom: 48px;
}

.collab-two-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .collab-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 48px;
  }
}

.collab-card-title {
  font-family: var(--font-serif);
  font-size: 26px;
  margin-bottom: 12px;
}

.collab-card-desc {
  color: var(--ash);
  margin-bottom: 16px;
}

.collab-ways-block {
  margin-bottom: 36px;
}

.collab-ways-title {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--ash);
  margin-bottom: 16px;
}

.collab-honest-line {
  font-size: 16px;
  color: var(--chalk);
  margin-bottom: 36px;
}

/* ==========================================================================
   8. Cosmos Section
   ========================================================================== */
.cosmos-section {
  background-color: var(--coal);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.cosmos-content {
  position: relative;
  z-index: 2;
}

.cosmos-section .mono-label {
  color: var(--ash);
  margin-bottom: 16px;
}

.cosmos-section h2 {
  margin-bottom: 32px;
}

.cosmos-body-p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--chalk);
  margin-bottom: 24px;
}

.cosmos-body-p strong {
  color: var(--chalk);
  font-weight: 600;
}

.cosmos-invite-card {
  background-color: rgba(20, 19, 17, 0.7);
  border: 1px solid var(--night-line);
  border-left: 3px solid var(--ember);
  padding: 22px 24px;
  border-radius: 6px;
  margin: 32px 0;
  backdrop-filter: blur(4px);
}

.cosmos-invite-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ember);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cosmos-invite-card p {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--chalk);
  margin: 0;
}

.cosmos-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 28px;
}

.cosmos-link-external {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--glass);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.cosmos-link-external:hover {
  color: var(--ember);
}

/* ==========================================================================
   Cosmos Theory Modal Pop-up
   ========================================================================== */
.cosmos-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  background: transparent;
  border: none;
  z-index: 1000;
  max-width: 100vw;
  max-height: 100vh;
  overflow: visible;
  display: none;
}

.cosmos-dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cosmos-dialog::backdrop {
  background-color: rgba(11, 10, 9, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cosmos-dialog-panel {
  background-color: var(--soot);
  border: 1px solid var(--night-line);
  border-radius: 12px;
  width: min(780px, 94vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  box-sizing: border-box;
}

.cosmos-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--night-line);
  background-color: var(--soot);
  flex-shrink: 0;
}

.cosmos-dialog-header-meta .mono-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--glass);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.cosmos-dialog-title {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.25;
  color: var(--chalk);
  margin: 0;
  font-weight: 400;
}

.cosmos-dialog-close-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ash);
  width: 38px;
  height: 38px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.cosmos-dialog-close-btn:hover,
.cosmos-dialog-close-btn:focus-visible {
  color: var(--chalk);
  border-color: var(--chalk);
  background-color: rgba(255, 255, 255, 0.05);
}

.cosmos-dialog-scroll {
  padding: 28px 32px 36px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  flex: 1;
}

.cosmos-dialog-scroll::-webkit-scrollbar {
  width: 6px;
}

.cosmos-dialog-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.cosmos-dialog-scroll::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}

.cosmos-chapter {
  display: flex;
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cosmos-chapter:first-child {
  padding-top: 4px;
}

.cosmos-chapter.cosmos-epilogue {
  border-bottom: none;
  padding-bottom: 8px;
}

.chapter-number {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ember);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  padding-top: 4px;
}

.chapter-content {
  flex: 1;
}

.chapter-content h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--chalk);
  margin: 0 0 14px 0;
  font-weight: 400;
  line-height: 1.3;
}

.chapter-lead {
  font-style: italic;
  color: var(--chalk) !important;
  font-size: 16.5px !important;
  margin-bottom: 16px !important;
  border-left: 2px solid var(--ember);
  padding-left: 14px;
}

.chapter-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ash);
  margin-bottom: 14px;
}

.chapter-content p:last-child {
  margin-bottom: 0;
}

.chapter-content strong {
  color: var(--chalk);
  font-weight: 600;
}

.cosmos-quote {
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1.35;
  color: var(--ember) !important;
  font-style: italic;
  margin: 18px 0 !important;
}

.cosmos-callout {
  background: rgba(216, 147, 81, 0.06);
  border: 1px solid rgba(216, 147, 81, 0.2);
  border-radius: 6px;
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--chalk);
}

.cosmos-callout strong {
  color: var(--ember);
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.cosmos-highlight {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ember) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 14px 0 !important;
}

.cosmos-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
}

.cosmos-dialog-dismiss {
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 14px;
}

@media (max-width: 600px) {
  .cosmos-dialog-panel {
    width: 95vw;
    max-height: 90vh;
  }

  .cosmos-dialog-header {
    padding: 18px 20px 14px;
  }

  .cosmos-dialog-title {
    font-size: 22px;
  }

  .cosmos-dialog-scroll {
    padding: 20px 18px 28px;
  }

  .cosmos-chapter {
    flex-direction: column;
    gap: 8px;
    padding: 22px 0;
  }

  .chapter-content h3 {
    font-size: 21px;
  }

  .chapter-content p {
    font-size: 15px;
  }

  .cosmos-quote {
    font-size: 21px;
  }

  .cosmos-callout {
    padding: 14px 16px;
    font-size: 14px;
  }

  .cosmos-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cosmos-actions button,
  .cosmos-actions a {
    text-align: center;
    justify-content: center;
  }
}

/* ==========================================================================
   10. FAQ Section
   ========================================================================== */
.faq-section h2 {
  margin-bottom: 36px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

details.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  cursor: pointer;
}

details.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--chalk);
  min-height: 48px;
  cursor: pointer;
  user-select: none;
}

details.faq-item summary::-webkit-details-marker,
details.faq-item summary::marker {
  display: none !important;
  content: "" !important;
}

details.faq-item .summary-marker {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--ash);
  transition: transform 0.25s ease, color 0.2s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

details.faq-item[open] .summary-marker {
  transform: rotate(45deg);
  color: var(--ember);
}

details.faq-item .details-content {
  padding-top: 14px;
  padding-bottom: 4px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ash);
  max-width: 760px;
}

@media (max-width: 600px) {
  details.faq-item summary {
    font-size: 20px;
  }
  details.faq-item .details-content {
    font-size: 15px;
  }
}

/* ==========================================================================
   11. Final CTA & Footer
   ========================================================================== */
.cta-section {
  padding-top: var(--section-padding);
  padding-bottom: 48px;
}

.cta-section h2 {
  margin-bottom: 20px;
}

.cta-body {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 64px;
}

@media (min-width: 480px) {
  .cta-actions {
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }
}

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ash);
}

.site-footer a {
  color: var(--ash);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer a:hover {
  color: var(--chalk);
}

.footer-disclaimer {
  margin-top: 8px;
}

/* --- Sticky Bottom CTA Bar (Mobile Only) --- */
.sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px var(--gutter);
  background-color: rgba(11, 10, 9, 0.98);
  border-top: 1px solid var(--line);
  z-index: 90;
  display: flex;
  transition: transform 240ms ease, opacity 240ms ease;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

.sticky-bottom-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-bottom-bar .btn-primary {
  width: 100%;
}

@media (min-width: 1024px) {
  .sticky-bottom-bar {
    display: none !important;
  }
}

/* ==========================================================================
   Contact Sheet Modal (<dialog>)
   ========================================================================== */
.contact-dialog {
  border: none;
  background-color: transparent;
  padding: 0;
  margin: auto;
  max-width: 100%;
  width: 100%;
  height: 100%;
  max-height: 100%;
  color: var(--chalk);
  overflow: hidden; /* Hides native browser dialog scrollbar */
}

.contact-dialog::backdrop {
  background-color: rgba(11, 10, 9, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dialog-panel {
  background-color: var(--ink);
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px var(--gutter) 40px var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.dialog-panel::-webkit-scrollbar {
  width: 6px;
}

.dialog-panel::-webkit-scrollbar-track {
  background: transparent;
}

.dialog-panel::-webkit-scrollbar-thumb {
  background-color: var(--line);
  border-radius: 9999px;
}

.dialog-panel::-webkit-scrollbar-thumb:hover {
  background-color: var(--ash);
}

@media (min-width: 768px) {
  .contact-dialog {
    width: 560px;
    height: auto;
    max-height: 88vh;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin: auto;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
  }
  .dialog-panel {
    min-height: auto;
    height: auto;
    max-height: 88vh;
    padding: 32px 36px 36px 36px;
    border-radius: 12px;
  }
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dialog-step-indicator {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ember);
  letter-spacing: 0.04em;
}

.dialog-close-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--ash);
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dialog-close-btn:hover {
  color: var(--chalk);
  background-color: var(--soot);
  border-color: var(--line);
  transform: rotate(90deg);
}

.dialog-close-btn:focus-visible {
  outline: 2px solid var(--chalk);
  outline-offset: 2px;
}

.dialog-title {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.1;
  margin-bottom: 22px;
}

.step-paths-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}

#sheet-step-1,
#sheet-step-2,
#sheet-step-3 {
  width: 100% !important;
  box-sizing: border-box;
}

.btn-path-option {
  width: 100% !important;
  box-sizing: border-box;
  min-height: 52px;
  background-color: var(--soot);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--chalk);
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 500;
  text-align: left;
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.btn-path-option:hover {
  border-color: var(--ember);
  background-color: #22201d;
  transform: translateX(2px);
}

.contact-form {
  width: 100% !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  width: 100% !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ash);
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.form-label .req {
  color: var(--ember);
}

.form-label .label-opt {
  color: var(--ash);
  font-size: 11px;
  font-weight: 400;
  opacity: 0.75;
}

.form-input,
.form-textarea,
.form-select {
  background-color: var(--soot);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--chalk);
  font-family: var(--font-sans);
  font-size: 15.5px;
  padding: 11px 15px;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  display: block;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--ember);
  box-shadow: 0 0 0 1px var(--ember), 0 0 12px rgba(215, 146, 75, 0.15);
  background-color: #1c1917;
}

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

.form-error {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #E06C75;
  display: none;
}

.form-error.is-active {
  display: block;
}

.char-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ash);
  text-align: right;
}

.form-actions {
  width: 100% !important;
  box-sizing: border-box;
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.form-actions .btn-outline,
.form-actions .btn-primary {
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  justify-content: center;
}

.preview-box {
  background-color: var(--soot);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--chalk);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.step3-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

@media (min-width: 480px) {
  .step3-actions {
    flex-direction: row;
    align-items: center;
  }
}

.step3-helper {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ash);
  margin-bottom: 12px;
}

.step3-fallback {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ember);
  padding: 12px;
  background-color: var(--soot);
  border-radius: 4px;
  border: 1px solid var(--line);
  display: none;
}

.step3-fallback.is-visible {
  display: block;
}

/* --- Accessibility: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-ring-svg {
    animation: none !important;
  }
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}
