/* ---------- Fonts ----------
   Titles: Cambria  (fallback: Gelasio / Georgia — serif)
   Body:   Calibri  (fallback: Carlito / Segoe UI — sans-serif)
   Cambria & Calibri render natively on Windows / Office devices.
   We can later self-host Gelasio + Carlito so every visitor matches exactly. */
:root {
  --font-title: "Cambria", "Gelasio", Georgia, "Times New Roman", serif;
  --font-body:  "Calibri", "Carlito", "Segoe UI", Candara, "Helvetica Neue", Arial, sans-serif;

  --bg:    #ffffff;
  --ink:   #0c0c0d;
  --muted: #6a6a70;
  --line:  #e6e6e8;

  --maxw: 1080px;
  --pad:  clamp(1.25rem, 4vw, 2.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }  /* guard against 100vw full-bleed scrollbars */
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.75rem var(--pad);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  height: 78px;
  width: auto;
  display: block;
}
.nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.95rem;
}
.nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 6rem) var(--pad) clamp(3rem, 8vw, 7rem);
  text-align: center;
}
.hero-title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(1.15rem, 4.2vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap; /* keep it all on one line, scaling down on narrow screens */
  margin: 0 auto;
}

/* ---------- Interactive mesh (full-bleed, edge to edge) ---------- */
.mesh-wrap {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: clamp(380px, 60vh, 680px);
  margin-top: clamp(1rem, 2.5vw, 1.75rem);
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
  cursor: crosshair;
  touch-action: pan-y;
}
#mesh {
  display: block;
  width: 100%;
  height: 100%;
}
.mesh-fallback {
  position: absolute;
  inset: 0;
  display: none;               /* shown only if WebGL is unavailable */
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: clamp(2rem, 8vw, 4rem);
  color: var(--ink);
}
.no-webgl #mesh { display: none; }
.no-webgl .mesh-fallback { display: flex; }

/* ---------- Hero copy (alineas below the graphic) ---------- */
.hero-copy {
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}
.hero-copy p {
  color: #2a2a2e;
  font-size: 1.22rem;
  line-height: 1.72;
}
.hero-copy p + p { margin-top: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem var(--pad) 3.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 560px) {
  .nav { gap: 1.1rem; font-size: 0.85rem; }
  .hero-copy { text-align: left; }
}
