/* ============================================================
   SOVEREIGNMIND.CH — style.css  v2
   Stack: Pure HTML5 + CSS3, no frameworks
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Dark theme */
  --dark-bg:        #1A1A1A;
  --dark-text:      #F5F5F7;
  --accent-warm:    #E67E22;   /* orange — used sparingly for emphasis */

  /* Light theme */
  --light-bg:       #F5F5F7;
  --white-bg:       #FFFFFF;
  --text-primary:   #1A1A1A;
  --text-secondary: #555555;
  --accent-cool:    #2C3E50;   /* blue-grey — structure, borders, labels */

  /* Typography */
  --font-head: 'Raleway', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', Helvetica, Arial, sans-serif;

  /* Layout */
  --max-w:      1100px;
  --section-v:  6rem;
  --section-h:  2rem;
}

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

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

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--light-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ol, ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ============================================================
   3. UTILITIES
   ============================================================ */
.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;
}

.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-v) var(--section-h);
}

.section__label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cool);
  margin-bottom: 0.65rem;
}

.section__label--warm { color: var(--accent-warm); }

.section__header { margin-bottom: 3.5rem; }

.section__header h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.15;
}

/* ============================================================
   4. SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* ============================================================
   5. LOGO — horizontal lock-up (mark + text)
   ============================================================ */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: currentColor;
  text-decoration: none;
}

.logo__mark {
  flex-shrink: 0;
  color: currentColor;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0.1em;
}

.logo__sovereign {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: currentColor;
}

/* S and N: outline (filled with nothing, stroked with currentColor) */
.logo__ol {
  -webkit-text-stroke: 1.5px currentColor;
  color: transparent;
}

.logo__mind {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.32em;
  color: currentColor;
  padding-left: 0.05em; /* visual optical alignment */
}

/* Nav size */
.nav__logo .logo__sovereign { font-size: 1.05rem; }
.nav__logo .logo__mind      { font-size: 0.6rem; }

/* Hero size */
.logo--hero {
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.logo--hero .logo__sovereign { font-size: 2.4rem; }
.logo--hero .logo__mind      { font-size: 1.35rem; }

/* Hero image logo */
.logo--hero-img {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}
.logo--hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: circle(50%);
  background: linear-gradient(to top, rgba(14, 14, 18, 0.82) 0%, transparent 52%);
  pointer-events: none;
}
.hero__logo-img {
  width: 280px;
  max-width: 80vw;
  height: auto;
  display: block;
  clip-path: circle(50%);
  filter: drop-shadow(0 0 32px rgba(255, 255, 255, 0.38))
          drop-shadow(0 0 8px rgba(255, 255, 255, 0.22))
          drop-shadow(0 12px 40px rgba(0, 0, 0, 0.55));
}

/* Nav image logo */
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}
.nav__symbol {
  height: 38px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.nav__text-sovereign,
.nav__text-mind {
  height: 18px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.nav__text-sovereign {
  margin-right: -0.15rem; /* close the gap between SOVEREIGN and MIND */
}

/* ============================================================
   6. BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer;
}

.btn--hero {
  background: var(--dark-text);
  color: var(--dark-bg);
}
.btn--hero:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.btn--form {
  background: var(--accent-warm);
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn--form:hover {
  background: #cf6d17;
  transform: translateY(-1px);
}

.btn--project-dark {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-warm);
  border: 1.5px solid var(--accent-warm);
  padding: 0.65rem 1.5rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.btn--project-dark:hover {
  background: var(--accent-warm);
  color: var(--dark-bg);
}

/* ============================================================
   7. SECTION THEMES
   ============================================================ */
.section--dark {
  background: var(--dark-bg);
  color: var(--dark-text);
}
.section--light { background: var(--light-bg); }
.section--white { background: var(--white-bg); }

/* ============================================================
   8. NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  color: var(--dark-text);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.nav.nav--solid {
  background: var(--dark-bg);
  box-shadow: 0 1px 0 rgba(255,255,255,0.07);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo { color: var(--dark-text); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--dark-text);
  opacity: 0.72;
  transition: opacity 0.2s;
}
.nav__links a:hover { opacity: 1; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px 4px;
  color: var(--dark-text);
  z-index: 210;
}
.nav__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   9. HERO
   Background: CSS atmospheric gradient (no image required).
   To add a real image: place images/hero-bg.webp in the project
   folder — the CSS will pick it up automatically via the
   background-image declaration below.
   Recommended: abstract macro texture, dark-toned, < 300 KB WebP.
   Unsplash search: "abstract stone texture", "mineral macro",
   "geological pattern", "concrete texture abstract"
   ============================================================ */
.section--hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;

  /* Fallback solid colour */
  background-color: var(--dark-bg);

  /* Uncomment after placing images/hero-bg.webp: */
  /* background-image: url('images/hero-bg.webp');
     background-size: cover;
     background-position: center; */
}

/* Atmospheric overlay — works as pure gradient AND as image darkener */
.section--hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(60,40,20,0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 65%, rgba(20,30,55,0.28) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.5) 0%, transparent 60%),
    rgba(26,26,26,0.68);
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8rem 2rem 7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  width: 100%;
  color: var(--dark-text);
}

.hero__headline {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.06em;
  max-width: 760px;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(245,245,247,0.62);
  max-width: 520px;
  line-height: 1.8;
}

/* ============================================================
   10. FRAMEWORK — PRINCIPLE 0 BAND
   Full-width dark band bridging hero → principles
   ============================================================ */
#framework {
  padding-top: 0;
}

.p0-band {
  background: var(--dark-bg);
  color: var(--dark-text);
  padding: 5rem 2rem;
  text-align: center;
}

.p0-band__inner {
  max-width: 680px;
  margin: 0 auto;
}

.p0-band__title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.p0-band__rule {
  width: 48px;
  height: 1px;
  border: none;
  background: rgba(245,245,247,0.25);
  margin: 1.75rem auto;
}

.p0-band__hook {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-style: italic;
  color: var(--accent-warm);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.p0-band__body {
  font-size: 1rem;
  color: rgba(245,245,247,0.6);
  line-height: 1.85;
}

/* ============================================================
   11. FRAMEWORK — PRINCIPLES 3-COLUMN GRID
   Body text hidden by default, revealed on hover.
   On touch devices (no hover), text is always visible.
   ============================================================ */
.principles-header {
  text-align: center;
  margin-bottom: 3rem;
}

.principles-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.principles-header__sub {
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.principle-card {
  background: var(--white-bg);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 8px;
  padding: 1.75rem 1.75rem 1.75rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.principle-card:hover {
  box-shadow: 0 8px 36px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.principle-card:hover .principle-card__body {
  max-height: 240px;
  opacity: 1;
  margin-top: 1rem;
}

.principle-card:hover .principle-card__tags {
  opacity: 1;
  transform: translateY(0);
}

.principle-card__number {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-warm);
  margin-bottom: 0.7rem;
}

.principle-card__title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.principle-card__subtitle {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

/* Body text: hidden by default, revealed on hover */
.principle-card__body {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.4s ease, opacity 0.35s ease, margin-top 0.35s ease;
}

/* Always show body text on touch devices (no hover available) */
@media (hover: none) {
  .principle-card__body {
    max-height: 300px;
    opacity: 1;
    margin-top: 1rem;
  }
  .principle-card__tags {
    opacity: 1;
    transform: translateY(0);
  }
}

.principle-card__tags {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--accent-cool);
  color: #ffffff;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  padding: 0.55rem 1.75rem;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* ============================================================
   12. THE PATH — ACCORDION TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 3.5rem;
}

/* Connecting vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 1.1rem;
  top: 1.35rem;
  bottom: 1.35rem;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--accent-cool) 0%,
    rgba(44,62,80,0.1) 100%
  );
}

.timeline__item {
  position: relative;
  margin-bottom: 0.5rem;
}

.timeline__item:last-child { margin-bottom: 0; }

/* Connector: positions the circle marker relative to the connecting line */
.timeline__connector {
  position: absolute;
  left: -3.5rem;
  top: 0;
}

.timeline__marker {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--white-bg);
  border: 1.5px solid var(--accent-cool);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.timeline__item.is-open .timeline__marker {
  background: var(--accent-cool);
  border-color: var(--accent-cool);
}

.timeline__item.is-open .timeline__marker span {
  color: #ffffff;
}

.timeline__marker span {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cool);
  transition: color 0.2s;
}

/* The panel contains button + body */
.timeline__panel {
  background: var(--white-bg);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.timeline__item.is-open .timeline__panel {
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

/* Toggle button — the visible clickable header */
.timeline__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: none;
  cursor: pointer;
  transition: background 0.15s;
}

.timeline__btn:hover {
  background: rgba(0,0,0,0.02);
}

.timeline__heading h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.timeline__sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

/* + / − toggle icon */
.timeline__icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border: 1.5px solid var(--accent-cool);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--accent-cool);
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}

.timeline__icon::before { content: '+'; }
.timeline__item.is-open .timeline__icon::before { content: '−'; }
.timeline__item.is-open .timeline__icon {
  background: var(--accent-cool);
  color: #ffffff;
}

/* Body: collapsed by default, expanded when .is-open */
.timeline__body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.timeline__item.is-open .timeline__body {
  max-height: 200px;
  opacity: 1;
}

.timeline__body p {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

/* ============================================================
   13. ABOUT
   ============================================================ */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 5rem;
  align-items: start;
  padding-bottom: 2rem;
}

.about__text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.2;
  margin-bottom: 1.75rem;
  color: var(--text-primary);
}

.about__text p {
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}
.about__text p:last-child { margin-bottom: 0; }

.about__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 8px;
  margin-top: 7rem;
}

/* Pull-quote */
.pull-quote-wrap { padding-top: 0; padding-bottom: 1rem; }

.pull-quote {
  border-left: 3px solid var(--accent-warm);
  padding-left: 1.75rem;
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 500;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.5;
  max-width: 720px;
}

/* Testimonials */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 0;
}

.testimonial {
  background: var(--white-bg);
  border-left: 3px solid var(--accent-cool);
  border-radius: 0 8px 8px 0;
  padding: 1.75rem 2rem;
}

.testimonial p {
  font-size: 0.93rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0.85rem;
}

.testimonial cite {
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
  color: var(--accent-cool);
  letter-spacing: 0.04em;
}

/* ============================================================
   14. PROJECTS — dark card vs upcoming card
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  border-radius: 8px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.project-card__inner { padding: 2.25rem; }

.project-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.project-card p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Dark / active project card */
.project-card--dark {
  background: var(--dark-bg);
  color: var(--dark-text);
}

.project-card--dark:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  transform: translateY(-3px);
}

.project-card--dark h3 {
  color: var(--accent-warm);
}

.project-card--dark p {
  color: rgba(245,245,247,0.65);
}

.project-card__live {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm);
  border: 1px solid rgba(230,126,34,0.4);
  border-radius: 20px;
  padding: 0.28rem 0.8rem;
  margin-bottom: 1rem;
}

/* Upcoming / placeholder card */
.project-card--upcoming {
  background: var(--white-bg);
  border: 1.5px dashed rgba(44,62,80,0.25);
  opacity: 0.75;
}

.project-card--upcoming:hover {
  opacity: 0.9;
}

.project-card--upcoming h3 {
  color: var(--text-primary);
}

.project-card--upcoming p {
  color: var(--text-secondary);
}

.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-warm);
  border: 1px solid rgba(230,126,34,0.5);
  border-radius: 20px;
  padding: 0.28rem 0.8rem;
  margin-bottom: 1rem;
}

/* ============================================================
   15. COMMUNITY
   ============================================================ */
.section--community {
  border-top: 3px solid var(--accent-warm);
  background:
    radial-gradient(ellipse at 75% 20%, rgba(230,126,34,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 25% 80%, rgba(44,62,80,0.08) 0%, transparent 50%),
    var(--dark-bg);
}

.community__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.community__text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.community__text p {
  font-size: 0.97rem;
  color: rgba(245,245,247,0.65);
  line-height: 1.85;
  margin-bottom: 0.75rem;
}

.community__note {
  color: rgba(245,245,247,0.45) !important;
  font-size: 0.85rem !important;
  font-style: italic;
}

.community__form-wrap { padding-top: 0.5rem; }

.access-form {
  display: flex;
  gap: 0;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.access-form:focus-within {
  border-color: var(--accent-warm);
}

.access-form input[type="email"] {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.06);
  border: none;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark-text);
  outline: none;
}

.access-form input[type="email"]::placeholder {
  color: rgba(245,245,247,0.3);
}

.access-form .btn--form {
  border-radius: 0;
  padding: 1rem 1.5rem;
  font-size: 0.88rem;
}

.form-note {
  font-size: 0.78rem;
  color: rgba(245,245,247,0.33);
  line-height: 1.5;
}

.form-success {
  color: #F5F5F7;
  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1.6;
  padding: 1.5rem 0;
  opacity: 0.9;
}

.community__social {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  color: rgba(245,245,247,0.45);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.social-link:hover { color: var(--dark-text); }

/* ============================================================
   16. FOOTER
   ============================================================ */
.footer {
  background: var(--dark-bg);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__links {
  display: flex;
  gap: 2rem;
}

.footer__links a {
  font-size: 0.82rem;
  color: rgba(245,245,247,0.42);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--dark-text); }

.footer__copy {
  font-size: 0.82rem;
  color: rgba(245,245,247,0.28);
}

/* ============================================================
   17. SUBPAGES (privacy, imprint, contact)
   ============================================================ */
.subpage-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.subpage-header {
  background: var(--dark-bg);
  padding: 1.5rem 2rem;
}

.subpage-back {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(245,245,247,0.65);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}
.subpage-back:hover { color: var(--dark-text); }

.subpage-content {
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  width: 100%;
}

.subpage-content h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.subpage-content .last-updated {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.subpage-content h2 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2.5rem 0 0.75rem;
}

.subpage-content p,
.subpage-content address {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1rem;
  font-style: normal;
}

.subpage-content a {
  color: var(--accent-cool);
  text-decoration: underline;
  text-decoration-color: rgba(44,62,80,0.3);
  transition: text-decoration-color 0.2s;
}
.subpage-content a:hover { text-decoration-color: var(--accent-cool); }

/* ============================================================
   18. RESPONSIVE — TABLET (≤ 960px)
   ============================================================ */
@media (max-width: 960px) {
  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about__media { order: -1; }

  .about__photo {
    aspect-ratio: 1 / 1;
    max-width: 220px;
  }

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

  .community__top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

/* ============================================================
   19. RESPONSIVE — MOBILE (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  :root {
    --section-v: 3.5rem;
    --section-h: 1.25rem;
  }

  /* Principles: single column */
  .principles-grid { grid-template-columns: 1fr; }

  /* Mobile nav overlay */
  .nav__links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--dark-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 200;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { font-size: 1.4rem; opacity: 1; }

  .nav__hamburger { display: flex; }

  /* Hero logo smaller */
  .logo--hero .logo__sovereign { font-size: 1.7rem; }
  .logo--hero .logo__mind      { font-size: 0.95rem; }
  .logo--hero .logo__mark { width: 44px; height: 44px; }
  .hero__logo-img { width: 200px; }

  /* P0 band */
  .p0-band__title { font-size: clamp(2rem, 10vw, 3rem); }

  /* Timeline full-width */
  .timeline { padding-left: 2.75rem; }

  /* Community form stacks */
  .access-form { flex-direction: column; border-radius: 6px; }
  .access-form input[type="email"] { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .access-form .btn--form { border-radius: 0 0 5px 5px; width: 100%; justify-content: center; }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
  }
}
