/* ============================================================
   E-SAF · Signal One Safe Ltd
   Marketing site stylesheet
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --paper:        #FAF8F4;
  --paper-soft:   #F2EEE6;
  --paper-deep:   #EAE5DA;

  /* Ink */
  --ink:          #0F1B2D;
  --ink-muted:    #5B6B7E;
  --ink-faint:    #94A0AE;

  /* Brand blues (derived from Seren shield) */
  --navy:         #1E3A5F;
  --navy-deep:    #0A2240;
  --navy-bright:  #2E5C90;

  /* E-SAF wordmark red — used only inside the wordmark itself */
  --esaf-red:     #D72A2A;

  /* Lines */
  --rule:         rgba(15, 27, 45, 0.08);
  --rule-strong:  rgba(15, 27, 45, 0.18);

  /* Type scale */
  --fs-xs:    0.75rem;     /* 12 */
  --fs-sm:    0.8125rem;   /* 13 */
  --fs-base:  1rem;        /* 16 */
  --fs-lg:    1.125rem;    /* 18 */
  --fs-xl:    1.375rem;    /* 22 */
  --fs-2xl:   1.75rem;     /* 28 */
  --fs-3xl:   2.25rem;     /* 36 */
  --fs-4xl:   3rem;        /* 48 */
  --fs-5xl:   4rem;        /* 64 */
  --fs-6xl:   5rem;        /* 80 */

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: 'ss01', 'ss02', 'cv11';
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  overflow-x: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

@media (min-width: 768px) {
  .container,
  .container-narrow {
    padding: 0 var(--sp-8);
  }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--rule);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav-brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.nav-brand-mark .e {
  color: var(--esaf-red);
}

.nav-brand-mark .saf {
  color: var(--navy-deep);
}

.nav-brand-tag {
  display: none;
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-left: 0.5rem;
  padding-left: 0.625rem;
  border-left: 1px solid var(--rule-strong);
}

@media (min-width: 768px) {
  .nav-brand-tag {
    display: inline-block;
  }
}

.nav-links {
  display: none;
  gap: var(--sp-8);
  list-style: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 160ms var(--ease);
  position: relative;
}

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

.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 2px;
  background: var(--ink);
}

.nav-cta {
  display: none;
}

@media (min-width: 768px) {
  .nav-cta {
    display: inline-flex;
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  padding: var(--sp-4) var(--sp-6);
}

.mobile-menu li {
  border-bottom: 1px solid var(--rule);
}

.mobile-menu a {
  display: block;
  padding: var(--sp-4) 0;
  font-size: 1rem;
  font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 160ms var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}

.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--paper-soft);
}

.btn-arrow::after {
  content: '→';
  font-weight: 400;
  transition: transform 160ms var(--ease);
}

.btn-arrow:hover::after {
  transform: translateX(2px);
}

/* ---------- Eyebrow / mono labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--ink-muted);
}

.eyebrow-plain {
  display: inline-block;
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- Typography ---------- */
.h-display {
  font-size: clamp(2.25rem, 6vw + 0.5rem, 5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--ink);
}

.h-1 {
  font-size: clamp(2rem, 4vw + 0.5rem, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}

.h-2 {
  font-size: clamp(1.625rem, 2.4vw + 0.5rem, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
}

.h-3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
}

.lede {
  font-size: clamp(1.0625rem, 0.5vw + 1rem, 1.25rem);
  line-height: 1.5;
  color: var(--ink-muted);
  font-weight: 400;
}

.body {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.body-tight {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--sp-20) 0 var(--sp-24);
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding: var(--sp-32) 0;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: var(--sp-20);
  }
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-meta span:not(:last-child)::after {
  content: '·';
  margin-left: var(--sp-6);
  color: var(--rule-strong);
}

.hero-headline {
  margin-bottom: var(--sp-6);
}

.hero-subhead {
  margin-bottom: var(--sp-10);
  max-width: 32em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* Hero visual: signal/coordinate motif */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 500px;
  margin: 0 auto;
}

/* ---------- Section helpers ---------- */
.section {
  padding: var(--sp-20) 0;
  border-top: 1px solid var(--rule);
}

@media (min-width: 768px) {
  .section {
    padding: var(--sp-24) 0;
  }
}

.section-soft {
  background: var(--paper-soft);
}

.section-ink {
  background: var(--navy-deep);
  color: var(--paper);
}

.section-ink .h-1,
.section-ink .h-2,
.section-ink .h-3 {
  color: var(--paper);
}

.section-ink .lede,
.section-ink .body {
  color: rgba(250, 248, 244, 0.72);
}

.section-ink .eyebrow {
  color: rgba(250, 248, 244, 0.6);
}

.section-ink .eyebrow::before {
  background: rgba(250, 248, 244, 0.5);
}

.section-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-16);
  align-items: end;
}

@media (min-width: 1024px) {
  .section-header {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-12);
  }
}

.section-header-text {
  max-width: 38em;
}

.section-header .lede {
  margin-top: var(--sp-4);
}

/* ---------- Pillars (Connection / Coordination / Continuity) ---------- */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-1);
  border-top: 1px solid var(--rule);
}

@media (min-width: 768px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
}

.pillar {
  padding: var(--sp-10) 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

@media (min-width: 768px) {
  .pillar {
    padding: var(--sp-12) var(--sp-8) var(--sp-12) 0;
    border-bottom: none;
  }
  .pillar:not(:first-child) {
    padding-left: var(--sp-8);
    border-left: 1px solid var(--rule);
  }
}

.pillar-num {
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-4);
}

.pillar-title {
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
  color: var(--ink);
}

.pillar-body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.pillar-icon {
  width: 36px;
  height: 36px;
  margin-bottom: var(--sp-6);
  color: var(--navy);
}

/* ---------- Audience grid ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-1);
}

@media (min-width: 768px) {
  .audience-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.audience-card {
  padding: var(--sp-8);
  background: var(--paper);
  border: 1px solid var(--rule);
  position: relative;
  transition: all 200ms var(--ease);
}

.audience-card:hover {
  border-color: var(--rule-strong);
  background: var(--paper-soft);
}

.audience-card-num {
  position: absolute;
  top: var(--sp-6);
  right: var(--sp-6);
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: var(--fs-xs);
  color: var(--ink-faint);
}

.audience-card h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: var(--sp-3);
  color: var(--ink);
}

.audience-card p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* ---------- Component panels (Platform page: Seren/CR/Analytics) ---------- */
.panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  align-items: center;
  padding: var(--sp-16) 0;
  border-top: 1px solid var(--rule);
}

@media (min-width: 1024px) {
  .panel {
    grid-template-columns: 1fr 1.05fr;
    gap: var(--sp-20);
    padding: var(--sp-20) 0;
  }
  .panel-reverse {
    direction: rtl;
  }
  .panel-reverse > * {
    direction: ltr;
  }
}

.panel-title {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}

.panel-mark {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: contain;
}

.panel-name {
  font-size: var(--fs-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.panel-name-seren {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--navy);
}

.panel-name-esaf {
  font-weight: 800;
  letter-spacing: -0.04em;
}

.panel-name-esaf .e { color: var(--esaf-red); }
.panel-name-esaf .saf { color: var(--navy-deep); }

.panel-role {
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.panel-lede {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink-muted);
  margin-bottom: var(--sp-8);
  max-width: 32em;
}

.capability-list {
  list-style: none;
  display: grid;
  gap: var(--sp-3);
}

.capability-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: baseline;
  gap: var(--sp-3);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
}

.capability-list li::before {
  content: '';
  display: block;
  width: 12px;
  height: 1px;
  background: var(--ink-muted);
  margin-top: 11px;
}

/* ---------- Phone & screenshot frames ---------- */
.phone-frame {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
  padding: 16px;
  background: var(--ink);
  border-radius: 38px;
  box-shadow:
    0 1px 1px rgba(15, 27, 45, 0.05),
    0 4px 8px rgba(15, 27, 45, 0.06),
    0 24px 48px rgba(15, 27, 45, 0.12);
}

.phone-frame img {
  width: 100%;
  border-radius: 24px;
  display: block;
}

.phone-frame::after {
  /* notch / bezel hint */
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  background: rgba(250, 248, 244, 0.15);
  border-radius: 2px;
}

.screenshot-frame {
  position: relative;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--ink);
  box-shadow:
    0 1px 1px rgba(15, 27, 45, 0.05),
    0 4px 12px rgba(15, 27, 45, 0.08),
    0 32px 64px -8px rgba(15, 27, 45, 0.16);
}

.screenshot-frame img {
  width: 100%;
  display: block;
}

.screenshot-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-4);
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Stack two screenshots */
.screenshot-stack {
  display: grid;
  gap: var(--sp-6);
}

.phone-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .phone-stack {
    grid-template-columns: 1fr;
  }
}

.phone-stack .phone-frame {
  max-width: 100%;
}

/* ---------- Compliance bullets ---------- */
.compliance {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-1);
  border-top: 1px solid var(--rule);
}

@media (min-width: 768px) {
  .compliance {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
}

.compliance-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 768px) {
  .compliance-item {
    padding: var(--sp-6) var(--sp-6) var(--sp-6) 0;
  }
  .compliance-item:nth-child(even) {
    padding-left: var(--sp-6);
    border-left: 1px solid var(--rule);
  }
}

.compliance-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--navy);
}

.compliance-text {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
}

/* ---------- Architecture diagram (Platform page) ---------- */
.arch-diagram {
  position: relative;
  margin: var(--sp-12) auto 0;
  max-width: 880px;
  padding: var(--sp-8);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}

.arch-svg {
  width: 100%;
  height: auto;
}

/* ---------- Quote / pull-out ---------- */
.pull-quote {
  max-width: 36em;
  margin: 0 auto;
  text-align: center;
}

.pull-quote p {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 400;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  padding: var(--sp-20) 0;
  background: var(--navy-deep);
  color: var(--paper);
  border-top: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}

.cta-banner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: center;
}

@media (min-width: 1024px) {
  .cta-banner-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

.cta-banner h2 {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--paper);
  margin-bottom: var(--sp-4);
}

.cta-banner p {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: rgba(250, 248, 244, 0.72);
  max-width: 32em;
}

.cta-banner-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

@media (min-width: 1024px) {
  .cta-banner-actions {
    align-items: flex-end;
  }
}

.cta-banner .btn-primary {
  background: var(--paper);
  color: var(--ink);
}

.cta-banner .btn-primary:hover {
  background: var(--paper-soft);
}

.cta-banner .btn-secondary {
  border-color: rgba(250, 248, 244, 0.25);
  color: var(--paper);
}

.cta-banner .btn-secondary:hover {
  border-color: var(--paper);
  background: rgba(250, 248, 244, 0.04);
}

.cta-banner-meta {
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.5);
  margin-top: var(--sp-6);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: var(--sp-16) 0 var(--sp-10);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--sp-8);
  }
}

.footer-brand-block .nav-brand-mark {
  font-size: 1.5rem;
}

.footer-tagline {
  margin-top: var(--sp-3);
  font-size: 0.9375rem;
  color: var(--ink-muted);
  max-width: 24em;
  line-height: 1.5;
}

.footer-col h4 {
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--sp-4);
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: var(--sp-3);
}

.footer-col a,
.footer-col span {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  transition: color 160ms var(--ease);
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--rule);
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-bottom-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
}

.footer-bottom-meta span:not(:last-child)::after {
  content: '·';
  margin-left: var(--sp-6);
  color: var(--rule-strong);
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding: var(--sp-20) 0 var(--sp-12);
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 768px) {
  .page-header {
    padding: var(--sp-24) 0 var(--sp-16);
  }
}

.page-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.page-header h1 {
  margin-bottom: var(--sp-6);
  max-width: 18em;
}

.page-header .lede {
  max-width: 36em;
}

/* ---------- Placeholder banner (Privacy / Terms) ---------- */
.placeholder-banner {
  background: var(--paper-soft);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  margin-bottom: var(--sp-12);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}

.placeholder-banner-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--navy);
}

.placeholder-banner-text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
}

.placeholder-banner-text strong {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Long-form prose (Privacy / Terms) ---------- */
.prose {
  max-width: 38em;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
}

.prose h2 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: var(--sp-12) 0 var(--sp-4);
  color: var(--ink);
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: var(--sp-8) 0 var(--sp-3);
  color: var(--ink);
}

.prose p {
  margin-bottom: var(--sp-4);
  color: var(--ink-muted);
}

.prose ul,
.prose ol {
  margin: var(--sp-4) 0;
  padding-left: 1.5rem;
  color: var(--ink-muted);
}

.prose li {
  margin-bottom: var(--sp-2);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose a {
  color: var(--navy-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose a:hover {
  color: var(--navy-deep);
}

/* ---------- Founder card (About) ---------- */
.founder-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: start;
  padding: var(--sp-10);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}

@media (min-width: 768px) {
  .founder-card {
    grid-template-columns: 180px 1fr;
    gap: var(--sp-10);
  }
}

.founder-photo {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.founder-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(74, 124, 184, 0.4), transparent 60%);
}

.founder-photo-initials {
  position: relative;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 3rem;
  color: var(--paper);
  letter-spacing: -0.02em;
}

.founder-name {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-2);
}

.founder-role {
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--sp-6);
}

.founder-bio {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.founder-bio p + p {
  margin-top: var(--sp-4);
}

/* ---------- Logo banner ---------- */
.seren-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-block;
}

/* ---------- Brand marks strip (home) ---------- */
.brand-marks-section {
  padding-top: var(--sp-12);
  padding-bottom: var(--sp-12);
  border-top: 1px solid rgba(15, 27, 45, 0.08);
  border-bottom: 1px solid rgba(15, 27, 45, 0.08);
}

.brand-marks {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--sp-12);
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

.brand-mark-block {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.brand-mark-img {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-mark-wordmark {
  width: auto;
  max-width: 140px;
  height: 60px;
}

.brand-mark-meta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.brand-mark-name {
  font-size: var(--fs-2xl);
  line-height: 1;
  margin-top: var(--sp-1);
}

.brand-mark-name-seren {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--navy);
}

.brand-mark-name-esaf {
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy-deep);
}

.brand-mark-desc {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-muted);
  margin-top: var(--sp-2);
  max-width: 24ch;
}

.brand-marks-divider {
  width: 1px;
  height: 80px;
  background: rgba(15, 27, 45, 0.12);
}

@media (max-width: 768px) {
  .brand-marks {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .brand-marks-divider {
    width: 80px;
    height: 1px;
    justify-self: center;
  }
  .brand-mark-block {
    justify-content: flex-start;
  }
  .brand-mark-img {
    width: 72px;
    height: 72px;
  }
  .brand-mark-wordmark {
    max-width: 110px;
    height: 48px;
  }
}

/* ---------- Animated reveal ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: fadeInUp 720ms var(--ease) both;
}

.reveal-delay-1 { animation-delay: 100ms; }
.reveal-delay-2 { animation-delay: 200ms; }
.reveal-delay-3 { animation-delay: 300ms; }
.reveal-delay-4 { animation-delay: 400ms; }

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

.text-muted { color: var(--ink-muted); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }
.mt-8 { margin-top: var(--sp-8); }

.row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}
