/* ==========================================================================
   VX Framework: Design System
   ========================================================================== */

:root {
  --color-bg:          #FAFAF8;
  --color-surface:     #F3F1F8;
  --color-border:      #DDD9EC;
  --color-accent:      #7B6EA6;
  --color-accent-deep: #4A3F75;
  --color-accent-soft: #C5BCE0;
  --color-warm:        #E8B89A;
  --color-text:        #1C1A2E;
  --color-text-muted:  #6B6580;
  --color-white:       #FFFFFF;

  --font-display: 'DM Serif Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'DM Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --max-width: 1180px;
  --nav-height: 72px;

  --shadow-card: 0 4px 20px rgba(28, 26, 46, 0.06);
  --shadow-card-hover: 0 8px 28px rgba(28, 26, 46, 0.10);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

img { max-width: 100%; display: block; }
a { color: var(--color-accent-deep); }
a:not([class]) { text-decoration-color: var(--color-accent-soft); text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-accent-deep);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 400;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.25em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Visible keyboard focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-accent-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent-deep);
  color: var(--color-white);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.9em;
}

.text-muted { color: var(--color-text-muted); }
.text-small { font-size: 14px; }
.text-xs { font-size: 12px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--color-accent-deep);
  color: var(--color-white);
}
.btn-primary:hover { background: #3a3160; color: var(--color-white); }

.btn-secondary {
  background: transparent;
  border-color: var(--color-accent-deep);
  color: var(--color-accent-deep);
}
.btn-secondary:hover { background: var(--color-accent-deep); color: var(--color-white); }

.btn-small {
  padding: 8px 18px;
  font-size: 14px;
}

.btn-block { width: 100%; }

/* ---- Nav ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--color-accent-deep);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--color-accent);
  color: var(--color-accent-deep);
}

.nav-links a.btn,
.nav-links a.btn:hover,
.nav-links a.btn[aria-current="page"] {
  color: var(--color-white);
  border-bottom-color: transparent;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---- Hero ---- */
.hero {
  padding: 80px 0 64px;
}

.hero-inner {
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  margin-bottom: 0.4em;
}

.hero .subhead {
  font-size: 19px;
  color: var(--color-text-muted);
  max-width: 620px;
  margin-bottom: 2em;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- Sections ---- */
section { padding: 64px 0; }
section.tight { padding: 40px 0; }

.section-heading {
  font-size: clamp(26px, 3.4vw, 32px);
  margin-bottom: 0.6em;
}

.surface-band {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* ---- Journey Rail ---- */
.journey-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  margin: 0 -4px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.journey-rail::-webkit-scrollbar { height: 8px; }
.journey-rail::-webkit-scrollbar-track { background: transparent; }
.journey-rail::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 8px; }

.journey-card {
  scroll-snap-align: start;
  flex: 0 0 240px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.journey-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.journey-card .stage-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-warm);
  background: var(--color-accent-deep);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
  color: var(--color-white);
}

.journey-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.journey-card p {
  font-size: 14.5px;
  color: var(--color-text-muted);
  margin: 0;
}

.journey-rail.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.journey-rail.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Credibility band / quote ---- */
.quote-block {
  max-width: 720px;
}
.quote-block blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 3vw, 28px);
  color: var(--color-accent-deep);
  margin: 0 0 0.6em;
}
.quote-block cite {
  font-style: normal;
  font-size: 14px;
  color: var(--color-text-muted);
}

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

.resource-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-decoration: none;
  color: var(--color-text);
  display: block;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.resource-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.resource-card .resource-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 10px;
}
.resource-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.resource-card p {
  font-size: 14.5px;
  color: var(--color-text-muted);
}

/* ---- Newsletter ---- */
.newsletter-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.newsletter-card h2 { margin-bottom: 0.3em; }
.newsletter-card .subhead {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}
.newsletter-embed {
  display: flex;
  justify-content: center;
}
.newsletter-embed iframe {
  border: 1px solid var(--color-border) !important;
  background: var(--color-white) !important;
  border-radius: var(--radius-sm);
  max-width: 480px;
  width: 100%;
  height: 320px;
}

/* ---- Download / kit card ---- */
.kit-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-card);
}
.kit-card .version-line {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}
.kit-card h2 { font-size: 26px; margin-bottom: 6px; }
.kit-card-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.info-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}
.info-columns h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.info-columns p { color: var(--color-text-muted); font-size: 15.5px; }

.note-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 32px;
  font-size: 15px;
  color: var(--color-text-muted);
}

/* ---- Gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.gallery-card figcaption {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--color-text-muted);
  padding: 14px 18px;
  line-height: 1.5;
}
.gallery-card.placeholder-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border-style: dashed;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: center;
  padding: 24px;
}

/* ---- Callout ---- */
.callout-band {
  text-align: center;
}
.callout-band .callout-text {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  color: var(--color-accent-deep);
  max-width: 820px;
  margin: 0 auto 0.5em;
  line-height: 1.3;
}
.callout-band .callout-attribution {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---- Forms ---- */
.form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 640px;
  box-shadow: var(--shadow-card);
}

.form-field {
  margin-bottom: 22px;
}
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
}
.form-field .field-helper {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 6px;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="url"],
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: var(--color-white);
}
.form-field textarea { resize: vertical; min-height: 100px; }

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15.5px;
}
.radio-option input { margin-top: 4px; }

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--color-text-muted);
}
.checkbox-field input { margin-top: 4px; }

.form-status {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.success {
  background: #EFF6EA;
  color: #3A5A2A;
  border: 1px solid #CBDFC0;
}
.form-status.error {
  background: #FBEAEA;
  color: #7A2E2E;
  border: 1px solid #EAC5C5;
}

/* ---- Team bios ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.team-card h3 {
  font-size: 19px;
  margin-bottom: 4px;
}
.team-card .role {
  font-size: 14px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  display: block;
  margin-bottom: 14px;
  line-height: 1.5;
}
.team-card p {
  font-size: 15px;
  color: var(--color-text-muted);
}

.team-photo-wrap {
  max-width: 800px;
  margin: 0 auto 40px;
}
.team-photo-wrap img {
  border-radius: var(--radius-lg);
  width: 100%;
}
.team-photo-wrap figcaption {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 14px;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 56px 0 40px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--color-accent-deep);
  margin-bottom: 8px;
}
.footer-desc {
  color: var(--color-text-muted);
  font-size: 14.5px;
  max-width: 320px;
}
.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin: 0 0 14px;
  font-weight: 400;
}
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a, .footer-contact a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 15px;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--color-accent-deep); }
.footer-contact p { font-size: 14.5px; color: var(--color-text-muted); }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .card-grid,
  .gallery-grid,
  .team-grid,
  .info-columns {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-links .btn { margin: 12px 0 4px; }
  .nav-toggle { display: block; }

  .hero { padding: 48px 0 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  section { padding: 48px 0; }

  .card-grid,
  .gallery-grid,
  .team-grid,
  .info-columns,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .kit-card, .form-card { padding: 28px 22px; }
  .newsletter-card { padding: 28px 22px; }
}

@media (max-width: 400px) {
  .journey-card { flex-basis: 210px; }
}
