/* Swiss Group Solutions - Cloudflare rebuild of Squarespace site
   Palette mirrors live theme: near-white surfaces, near-black type, pill CTAs, Roboto. */

:root {
  --white: #fafafa;
  --paper: #ffffff;
  --ink: #000000;
  --ink-soft: #1c1c1c;
  --muted: #555555;
  --line: #e0e0e0;
  --accent: #dcdcdc;
  --dark: #1c1c1c;
  --max: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 5.25rem;
  --radius-pill: 999px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  --font: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  opacity: 0.78;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.15rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.25rem);
}

h3,
h4 {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
}

p {
  margin: 0 0 1rem;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 0.85rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand picture { display: block; }
.brand img {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: contain;
}
.footer-brand { display: inline-block; margin-bottom: 0.75rem; }
.footer-brand img { display: block; width: 112px; height: 112px; object-fit: contain; }
@media (max-width: 640px) { .brand img { width: 88px; height: 88px; } }

.nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 450;
  letter-spacing: 0.01em;
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0.55rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 0.35rem 0;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 var(--pad) 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-nav a {
  text-decoration: none;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.55rem;
  border-radius: var(--radius-pill);
  background: var(--dark);
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--dark);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  opacity: 0.88;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

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

button.btn {
  font: inherit;
}

/* Layout helpers */
.hero-photo {
  width: 100%;
  max-height: min(68vh, 640px);
  object-fit: cover;
  background: #111;
}

.section {
  padding: clamp(2.75rem, 6vw, 5rem) var(--pad);
}

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

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

.intro {
  text-align: left;
}

.intro .lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 46rem;
  color: var(--ink-soft);
}

.intro .support {
  max-width: 46rem;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split.reverse .split-media {
  order: 2;
}

.split.reverse .split-copy {
  order: 1;
}

.split-media img {
  width: 100%;
  border-radius: 4px;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.split-copy h2,
.split-copy h3 {
  margin-bottom: 0.9rem;
}

.ventures-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 1.1rem;
}

.ventures-list a {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.ventures-list p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.cta-band {
  background: var(--dark);
  color: var(--white);
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.cta-band .btn {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.cta-band .btn:hover {
  color: var(--ink);
}

.page-hero {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.page-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad) clamp(3rem, 7vw, 5rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--pad) clamp(3rem, 7vw, 5rem);
}

.contact-details a {
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-meta {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.65rem;
  color: var(--muted);
}

.contact-meta strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 0.1rem;
}

/* Form */
.contact-form {
  display: grid;
  gap: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.92rem;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.1rem;
  outline: none;
}

.field textarea {
  border-radius: 1.25rem;
  min-height: 9rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.field .error {
  color: #8a1f1f;
  font-size: 0.85rem;
}

.hp {
  position: absolute;
  left: -10000px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-status {
  margin: 0;
  font-size: 0.95rem;
}

.form-status.ok {
  color: #1b5e20;
}

.form-status.err {
  color: #8a1f1f;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--pad);
  font-size: 0.95rem;
  color: var(--muted);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

.footer-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
  color: var(--ink);
}

.footer-copy {
  color: var(--ink-soft);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .mobile-nav.is-open {
    display: flex;
  }

  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media,
  .split.reverse .split-copy {
    order: initial;
  }

  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    max-height: 46vh;
  }
}

/* Founder section */
.founder-layout{display:grid;grid-template-columns:minmax(160px,240px) minmax(0,1fr);gap:2rem;align-items:start}.founder-layout img{width:100%;height:auto;border-radius:8px}.founder-layout h3{margin-top:0}@media(max-width:640px){.founder-layout{grid-template-columns:1fr}.founder-layout img{max-width:240px}}
