/* ============================================================
   SOMABASE — style.css
   "Architectural Warmth" Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --bone: #F0F0ED;
  --sand: #E4E2DC;
  --warm-gray: #B8AFA6;
  --charcoal: #2C2824;
  --deep-charcoal: #1A1714;
  --terracotta: #A0735A;
  --steel: #6B7280;
  --dark-bg: #141210;
  --white: #FFFFFF;

  --font-display: 'Syne', system-ui, sans-serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;

  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;
  --radius-card: 2px;

  --max-width: 1200px;
  --section-padding: 100px 40px;
  --section-padding-mobile: 64px 24px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bone);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-sans);
}

input, textarea, select {
  font-family: var(--font-sans);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--deep-charcoal);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(42px, 6vw, 72px); }
h2 { font-size: clamp(32px, 4vw, 52px); }
h3 { font-size: clamp(22px, 2.5vw, 32px); }
h4 { font-size: clamp(18px, 2vw, 24px); }

p {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.8;
  color: var(--charcoal);
}

.label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

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

.section--white {
  background-color: var(--white);
}

.section--sand {
  background-color: var(--sand);
}

.section-divider {
  width: 100%;
  height: 1px;
  background-color: var(--warm-gray);
  opacity: 0.4;
}

/* ============================================================
   FADE-IN ANIMATION (IntersectionObserver)
   ============================================================ */
.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

/* JS adds this class to body once loaded, activating animations */
body.animate-ready .fade-in:not(.visible) {
  opacity: 0;
  transform: translateY(20px);
}

.fade-in.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   PAGE TRANSITION
   ============================================================ */
#app {
  transition: opacity 0.3s ease;
}

#app.transitioning {
  opacity: 0;
}

/* ============================================================
   GRAIN TEXTURE OVERLAY
   ============================================================ */
.grain-overlay {
  position: relative;
}

.grain-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  z-index: 0;
}

/* ============================================================
   GEOMETRIC GRID DECORATION
   ============================================================ */
.topo-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  overflow: hidden;
  z-index: 0;
}

.topo-decoration svg {
  width: 100%;
  height: 100%;
}

.section-inner {
  position: relative;
  z-index: 1;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(240, 240, 237, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107, 114, 128, 0.2);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 2px 24px rgba(26, 23, 20, 0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--deep-charcoal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding: 6px 8px;
  border-radius: 2px;
  transition: color var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 8px;
  right: 8px;
  height: 1px;
  background-color: var(--terracotta);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: var(--deep-charcoal);
}

.nav-link.active {
  color: var(--terracotta);
}

.nav-link.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Apply Dropdown */
.apply-dropdown {
  position: relative;
}

.apply-dropdown-toggle {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding: 8px 16px;
  border: 1px solid rgba(44, 40, 36, 0.3);
  border-radius: 2px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.apply-dropdown-toggle:hover {
  border-color: var(--charcoal);
  color: var(--deep-charcoal);
}

.apply-dropdown-toggle .chevron {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 9px;
}

.apply-dropdown.open .chevron {
  transform: rotate(180deg);
}

.apply-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid rgba(184, 175, 166, 0.4);
  border-radius: 2px;
  box-shadow: 0 8px 40px rgba(26, 23, 20, 0.10);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.apply-dropdown.open .apply-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.apply-dropdown-menu a {
  display: block;
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  transition: background var(--transition-base), color var(--transition-base);
  border-bottom: 1px solid rgba(184, 175, 166, 0.25);
  cursor: pointer;
}

.apply-dropdown-menu a:last-child {
  border-bottom: none;
}

.apply-dropdown-menu a:hover {
  background: var(--sand);
  color: var(--deep-charcoal);
}

/* Schedule Consult Button */
.btn-consult {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background-color: var(--terracotta);
  padding: 8px 16px;
  border-radius: 2px;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-consult:hover {
  background-color: #8a6249;
  transform: translateY(-1px);
}

/* Mobile Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: var(--charcoal);
  transition: all 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* Mobile Menu */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bone);
  border-bottom: 1px solid rgba(184, 175, 166, 0.4);
  padding: 24px 24px 32px;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.nav-mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.nav-mobile-menu .nav-link {
  padding: 12px 0;
  border-bottom: 1px solid rgba(184, 175, 166, 0.25);
  font-size: 13px;
}

.nav-mobile-menu .nav-link::after {
  display: none;
}

.nav-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.nav-mobile-actions .apply-dropdown-toggle {
  justify-content: center;
}

.nav-mobile-actions .btn-consult {
  text-align: center;
  padding: 12px 16px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--terracotta);
  color: var(--white);
  border: 1.5px solid var(--terracotta);
  letter-spacing: 0.12em;
}

.btn-primary:hover {
  background-color: #8a6249;
  border-color: #8a6249;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(160, 115, 90, 0.25);
}

.btn-outline {
  background-color: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal);
}

.btn-outline:hover {
  background-color: var(--charcoal);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-terra {
  background-color: transparent;
  color: var(--terracotta);
  border: 1.5px solid var(--terracotta);
}

.btn-outline-terra:hover {
  background-color: var(--terracotta);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-text {
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  transition: gap 0.2s ease, opacity 0.2s ease;
  text-transform: none;
  border-radius: 0;
}

.btn-text:hover {
  gap: 12px;
  opacity: 0.8;
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero {
  padding: 160px 40px 100px;
  background-color: var(--bone);
  position: relative;
  overflow: hidden;
}

.hero-home {
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

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

.hero h1 {
  max-width: 800px;
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: normal;
  color: inherit;
}

.hero-sub {
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--charcoal);
  max-width: 560px;
  margin-bottom: 48px;
  font-weight: 300;
  line-height: 1.7;
}

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

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--sand);
  padding: 48px 40px;
  border-radius: var(--radius-card);
  border-top: 2px solid var(--steel);
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(26, 23, 20, 0.10);
}

.card--white {
  background: var(--white);
  border-top: 2px solid var(--terracotta);
  box-shadow: 0 2px 24px rgba(26, 23, 20, 0.05);
}

.card h3 {
  margin-bottom: 16px;
}

.card p {
  margin-bottom: 24px;
  color: var(--charcoal);
}

.card-label {
  margin-bottom: 20px;
}

/* ============================================================
   TWO COLUMN GRID
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  margin-bottom: 56px;
}

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

.section-header p {
  max-width: 600px;
}

/* ============================================================
   FEATURE BLOCKS
   ============================================================ */
.feature-block {
  padding: 32px 0;
  border-top: 1px solid rgba(184, 175, 166, 0.4);
}

.feature-block h4 {
  margin-bottom: 8px;
  font-size: 18px;
}

/* ============================================================
   OUTCOMES LIST
   ============================================================ */
.outcomes-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.outcome-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(184, 175, 166, 0.3);
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--deep-charcoal);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.outcome-item:hover {
  color: var(--terracotta);
  transform: translateX(8px);
}

/* ============================================================
   ACCORDION
   ============================================================ */
.accordion {
  border-top: 1px solid rgba(184, 175, 166, 0.4);
}

.accordion-item {
  border-bottom: 1px solid rgba(184, 175, 166, 0.4);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-align: left;
  transition: color 0.2s ease;
}

.accordion-trigger:hover {
  color: var(--terracotta);
}

.accordion-trigger .week-num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--steel);
  min-width: 48px;
  letter-spacing: 0.05em;
}

.accordion-trigger .week-title {
  flex: 1;
  margin: 0 16px;
}

.accordion-icon {
  font-size: 20px;
  line-height: 1;
  color: var(--warm-gray);
  transition: transform 0.25s ease;
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
  color: var(--terracotta);
}

.accordion-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.accordion-content-inner {
  padding: 0 0 24px 64px;
  color: var(--charcoal);
  font-size: 15px;
  line-height: 1.8;
}

/* ============================================================
   CONTRAST CARDS (amplification section)
   ============================================================ */
.contrast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contrast-card {
  padding: 36px 32px;
  border-radius: 2px;
}

.contrast-card--positive {
  background: var(--white);
  border-left: 3px solid #8FAD88;
}

.contrast-card--negative {
  background: var(--sand);
  border-left: 3px solid var(--warm-gray);
}

.contrast-card .arrow {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--warm-gray);
  margin-bottom: 8px;
}

.contrast-card h4 {
  font-size: 20px;
  margin-bottom: 4px;
}

.contrast-card .vs {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-gray);
  display: block;
  margin-bottom: 6px;
}

/* ============================================================
   ENTERPRISE STEPS
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: rgba(184, 175, 166, 0.5);
  z-index: 0;
}

.process-step {
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.step-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: rgba(107, 114, 128, 0.3);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
  letter-spacing: -0.02em;
}

.step-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--deep-charcoal);
  margin-bottom: 12px;
  display: block;
  letter-spacing: -0.01em;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(184, 175, 166, 0.5);
  border-radius: 2px;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(196, 120, 91, 0.1);
}

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

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B8AFA6' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--charcoal);
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1px solid var(--warm-gray);
  border-radius: 2px;
  cursor: pointer;
  accent-color: var(--terracotta);
}

/* Thank you state */
.form-thank-you {
  display: none;
  padding: 48px;
  text-align: center;
  background: var(--sand);
  border-radius: 2px;
}

.form-thank-you.visible {
  display: block;
}

.form-thank-you h3 {
  margin-bottom: 16px;
}

.form-thank-you p {
  margin-bottom: 24px;
  color: var(--charcoal);
}

/* ============================================================
   NEWSLETTER MODULE
   ============================================================ */
.newsletter-module {
  padding: 80px 40px;
  background-color: var(--sand);
  position: relative;
  overflow: hidden;
}

.newsletter-header {
  text-align: center;
  margin-bottom: 56px;
}

.newsletter-header h2 {
  margin-bottom: 12px;
}

.newsletter-forms {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.newsletter-form-card {
  background: var(--white);
  padding: 40px 36px;
  border-radius: 2px;
  box-shadow: 0 2px 16px rgba(26, 23, 20, 0.04);
}

.newsletter-form-card h4 {
  margin-bottom: 8px;
}

.newsletter-form-card > p {
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--warm-gray);
}

.newsletter-inline {
  display: flex;
  gap: 12px;
}

.newsletter-inline .form-input {
  flex: 1;
}

.newsletter-thank-you {
  display: none;
  padding: 24px;
  text-align: center;
  background: var(--sand);
  border-radius: 2px;
}

.newsletter-thank-you.visible {
  display: block;
}

/* ============================================================
   ARTICLE GRID
   ============================================================ */
.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(184, 175, 166, 0.2);
}

.article-card {
  background: var(--white);
  padding: 40px;
  transition: background 0.3s ease;
  cursor: pointer;
}

.article-card:hover {
  background: var(--sand);
}

.article-card .label {
  margin-bottom: 16px;
  display: block;
}

.article-card h3 {
  font-size: clamp(20px, 2vw, 28px);
  margin-bottom: 12px;
}

.article-card > p {
  font-size: 14px;
  color: var(--warm-gray);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ============================================================
   CALLOUT BLOCK
   ============================================================ */
.callout-block {
  padding: 40px 48px;
  border-left: 3px solid var(--terracotta);
  background: var(--sand);
  border-radius: 0 2px 2px 0;
  margin: 40px 0;
}

.callout-block p {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 400;
  font-style: normal;
  color: var(--deep-charcoal);
  line-height: 1.7;
}

/* ============================================================
   INSTABILITY LIST
   ============================================================ */
.instability-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.instability-item {
  padding: 24px 0;
  border-bottom: 1px solid rgba(184, 175, 166, 0.25);
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.6vw, 20px);
  font-style: normal;
  font-weight: 400;
  color: var(--deep-charcoal);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.instability-item::before {
  content: '—';
  margin-right: 16px;
  color: var(--warm-gray);
}

.instability-item:hover {
  color: var(--terracotta);
  padding-left: 8px;
}

/* ============================================================
   NOT LIST (about page)
   ============================================================ */
.not-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.not-item {
  padding: 18px 0;
  border-bottom: 1px solid rgba(184, 175, 166, 0.25);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 16px;
}

.not-item::before {
  content: '×';
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--warm-gray);
  min-width: 20px;
  text-align: center;
}

/* ============================================================
   SCHEDULE MESSAGE
   ============================================================ */
.schedule-message {
  display: none;
  padding: 40px;
  background: var(--sand);
  border-radius: 2px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--deep-charcoal);
  color: rgba(245, 240, 235, 0.8);
  padding: 80px 40px 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .nav-wordmark {
  color: var(--bone);
  display: block;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(245, 240, 235, 0.6);
  max-width: 260px;
  line-height: 1.7;
}

.footer-newsletters h4 {
  color: var(--bone);
  margin-bottom: 32px;
  font-size: 18px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 12px;
  color: rgba(245, 240, 235, 0.4);
  letter-spacing: 0.05em;
}

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

.footer-links a {
  font-size: 12px;
  color: rgba(245, 240, 235, 0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--terracotta);
}

/* Footer newsletter forms */
.footer-newsletter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer-newsletter-form {
  background: rgba(255,255,255,0.05);
  padding: 28px 24px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.08);
}

.footer-newsletter-form h5 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--bone);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.footer-newsletter-form .form-input {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: var(--bone);
  margin-bottom: 10px;
}

.footer-newsletter-form .form-input::placeholder {
  color: rgba(245, 240, 235, 0.35);
}

.footer-newsletter-form .form-input:focus {
  border-color: var(--terracotta);
  background: rgba(255,255,255,0.1);
}

.footer-newsletter-thank-you {
  display: none;
  padding: 20px;
  text-align: center;
  background: rgba(196, 120, 91, 0.15);
  border-radius: 2px;
  color: var(--bone);
  font-size: 14px;
}

.footer-newsletter-thank-you.visible {
  display: block;
}

/* ============================================================
   DARK SECTION
   ============================================================ */
.section--dark {
  background: var(--dark-bg);
  color: #F0F0ED;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #F0F0ED;
}

.section--dark p {
  color: rgba(240, 240, 237, 0.75);
}

.section--dark .label {
  color: var(--steel);
}

.section--dark .section-divider {
  background-color: rgba(255,255,255,0.08);
  opacity: 1;
}

.section--dark .instability-item {
  color: rgba(240, 240, 237, 0.85);
  border-bottom-color: rgba(255,255,255,0.1);
}

.section--dark .instability-item:hover {
  color: #F0F0ED;
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.page {
  display: none;
  padding-top: 64px;
}

.page.active {
  display: block;
}

/* ============================================================
   SECTION WIDTHS
   ============================================================ */
.section .container {
  max-width: var(--max-width);
}

/* ============================================================
   MS360 SPECIFIC
   ============================================================ */
.evidence-note {
  padding: 24px 32px;
  background: rgba(184, 175, 166, 0.15);
  border-radius: 2px;
  border-left: 3px solid var(--warm-gray);
  font-size: 13px;
  color: var(--warm-gray);
  font-style: normal;
  line-height: 1.7;
  margin-top: 24px;
}

/* ============================================================
   COMMUNITY BLOCKS
   ============================================================ */
.community-block {
  padding: 40px;
  background: var(--sand);
  border-radius: 2px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.community-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 23, 20, 0.08);
}

.community-block h3 {
  margin-bottom: 12px;
}

/* ============================================================
   APPLICATION PAGE
   ============================================================ */
.apply-page {
  max-width: 680px;
  margin: 0 auto;
}

.apply-form-wrapper {
  padding: 56px 48px;
  background: var(--white);
  border-radius: 2px;
  box-shadow: 0 4px 40px rgba(26, 23, 20, 0.07);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 72px 32px;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .process-steps::before {
    display: none;
  }

  .contrast-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: var(--section-padding-mobile);
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    padding: 120px 24px 72px;
  }

  .hero-home {
    min-height: auto;
    padding-top: 120px;
  }

  .container {
    padding: 0 24px;
  }

  .two-col,
  .three-col {
    grid-template-columns: 1fr;
  }

  .newsletter-forms {
    grid-template-columns: 1fr;
  }

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

  .newsletter-inline {
    flex-direction: column;
  }

  .form-two-col {
    grid-template-columns: 1fr;
  }

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

  .hero-ctas {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .apply-form-wrapper {
    padding: 32px 24px;
  }

  .footer {
    padding: 56px 24px 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .accordion-content-inner {
    padding-left: 0;
  }

  .callout-block {
    padding: 28px 24px;
  }
}

@media (max-width: 375px) {
  .nav-inner {
    padding: 0 20px;
  }
}

/* ─── Blog Post Styles ──────────────────────────────────── */
.blog-body p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--charcoal);
  margin-bottom: 24px;
}

.blog-body .blog-emphasis {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--terracotta);
  margin: 48px 0;
}

.blog-body blockquote {
  border-left: 3px solid var(--terracotta);
  padding-left: 24px;
  margin: 40px 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-style: italic;
  line-height: 1.75;
  color: var(--charcoal);
}

.article-card--featured {
  background: var(--bone);
  padding: 24px;
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.article-card--featured:hover {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .article-card--featured {
    flex-direction: column !important;
  }
  .article-card--featured img {
    width: 100% !important;
    height: 180px !important;
  }
}
