:root {
  --bg: #fbf3e8;
  --ink: #2b1a12;
  --muted: #7a5f50;
  --card: rgba(255, 255, 255, 0.62);
  --line: rgba(43, 26, 18, 0.1);
  --coral: #ff6a3d;
  --amber: #ffb23f;
  --rose: #e8487f;
  --plum: #7b3fa0;
  --grad: linear-gradient(120deg, var(--coral), var(--rose) 55%, var(--plum));
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { width: min(1120px, 100% - 3rem); margin-inline: auto; position: relative; }

/* Background blobs */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: 0.55;
  animation: float 18s ease-in-out infinite alternate;
}
.b1 { width: 520px; height: 520px; background: var(--amber); top: -140px; right: -120px; }
.b2 { width: 440px; height: 440px; background: var(--coral); top: 38%; left: -180px; animation-delay: -6s; opacity: 0.35; }
.b3 { width: 380px; height: 380px; background: var(--rose); bottom: -160px; right: 18%; animation-delay: -12s; opacity: 0.3; }
@keyframes float {
  to { transform: translate(40px, 60px) scale(1.08); }
}

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand small { color: var(--muted); font-size: 0.85em; }
.nav-link {
  text-decoration: none; font-size: 0.92rem; color: var(--muted);
  padding: 0.5rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); backdrop-filter: blur(8px);
  transition: color .2s, border-color .2s;
}
.nav-link:hover { color: var(--ink); border-color: var(--coral); }

/* Hero */
.hero { padding: clamp(4rem, 12vw, 8.5rem) 0 clamp(3rem, 8vw, 5rem); max-width: 860px; margin-left: max(1.5rem, calc((100% - 1120px) / 2)); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.6rem;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(255,106,61,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,106,61,0); } 100% { box-shadow: 0 0 0 0 rgba(255,106,61,0); } }
h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1.04; letter-spacing: -0.025em;
}
h1 em { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .1em; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 580px; margin-top: 1.6rem; }
.cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.4rem; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 0.9rem 1.5rem; border-radius: 999px; transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(232, 72, 127, .6); }
.btn-primary:hover { box-shadow: 0 16px 36px -10px rgba(232, 72, 127, .7); }
.btn-ghost { border: 1px solid var(--line); background: var(--card); backdrop-filter: blur(8px); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; padding-bottom: 5rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 2rem; backdrop-filter: blur(12px);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(43, 26, 18, .35); }
.icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.3rem; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i1 { background: linear-gradient(135deg, var(--amber), var(--coral)); }
.i2 { background: linear-gradient(135deg, var(--coral), var(--rose)); }
.i3 { background: linear-gradient(135deg, var(--rose), var(--plum)); }
.card h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin-bottom: 0.4rem; }
.card p { color: var(--muted); }

/* Lab */
.lab { padding-bottom: 6rem; }
.lab-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.lab-head h2 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; letter-spacing: -0.02em; }
.lab-head p { color: var(--muted); max-width: 420px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.tile {
  position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden;
  border: 1px dashed rgba(43, 26, 18, .22);
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.35) 0 12px, rgba(255,255,255,.12) 12px 24px),
    var(--card);
  display: flex; flex-direction: column; justify-content: space-between; padding: 1.4rem;
}
.tag {
  align-self: flex-start; font-size: 0.78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .35rem .8rem; border-radius: 999px; background: #fff; color: var(--coral);
}
.num { font-family: var(--serif); font-size: 4rem; line-height: 1; align-self: flex-end; color: rgba(43, 26, 18, .12); }

/* Footer */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  padding: 2rem 0 2.5rem; border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--muted);
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--coral); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
