*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg: #fdfdfb;
  --bg-soft: #f7f6f2;
  --ink: #1c1b17;
  --ink-2: #494740;
  --ink-3: #6f6c65;
  --line: #e9e7e0;
  --line-2: #d9d6cd;

  --orange: #e8814f;
  --orange-deep: #d96f3c;
  --orange-link: #a84f20;
  --blue: #4ba3d3;
  --green: #4b9e68;
  --red: #d9647e;
  --yellow: #ddab3b;
  --blue-soft: #eaf4fa;
  --green-soft: #ebf5ee;
  --red-soft: #fbeef1;
  --yellow-soft: #faf3e2;

  --shadow-sm: 0 1px 2px rgba(28,27,23,0.05), 0 2px 8px rgba(28,27,23,0.04);
  --shadow-md: 0 2px 4px rgba(28,27,23,0.04), 0 12px 28px rgba(28,27,23,0.09);
  --shadow-lg: 0 4px 10px rgba(28,27,23,0.05), 0 30px 60px rgba(28,27,23,0.13);
  --nav-block: 72px; /* set by JS to match nav height */
  --nav-gap: 28px;   /* space between nav and hero chip */
}


body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* decorative EEG / swirls may bleed */
}

.em { font-family: "Faculty Glyphic", Georgia, serif; font-style: normal; font-weight: 400; }
a.plain { color: inherit; text-decoration: none; }
a.plain:hover { text-decoration: none; }

.skip-link {
  position: absolute; top: -48px; left: 0;
  background: var(--orange); color: var(--ink);
  padding: 8px 16px; font-weight: 700; font-size: 14px; z-index: 200;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }
.skip-link:hover { text-decoration: none; }


/* nav */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: center;
  width: 100%;
  padding: 12px clamp(12px, 3.5vw, 28px) 0;
  pointer-events: none;
}
header.nav {
  pointer-events: auto;
  display: flex; align-items: center;
  gap: clamp(8px, 2vw, 16px);
  width: min(92vw, 1040px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: clamp(7px, 1.2vw, 9px) clamp(8px, 1.5vw, 10px) clamp(7px, 1.2vw, 9px) clamp(14px, 2.5vw, 22px);
  box-shadow: var(--shadow-sm);
}
.nav .brand {
  display: flex; align-items: center; gap: 9px;
  font-family: "Faculty Glyphic", Georgia, serif;
  font-weight: 400; font-size: clamp(15px, 2.2vw, 17px); letter-spacing: -0.02em;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.nav .brand img { width: clamp(26px, 4vw, 30px); height: clamp(26px, 4vw, 30px); border-radius: 8px; }
.nav .nav-end {
  display: flex; align-items: center; gap: 14px;
  margin-left: auto; flex-shrink: 0;
}
.nav .nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav .nav-links a {
  font-size: clamp(13px, 1.8vw, 14.5px); font-weight: 500; color: var(--ink-2); text-decoration: none;
  padding: 8px clamp(10px, 2vw, 14px); border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav .nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav .n-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff;
  font-weight: 600; font-size: clamp(12px, 1.7vw, 14px);
  padding: clamp(8px, 1.4vw, 10px) clamp(12px, 2.5vw, 20px);
  border-radius: 999px; text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav .n-cta:hover { background: #000; transform: translateY(-1px); }
.nav .n-cta .cta-short { display: none; }
/* iPhone SE / narrow: keep pill nav on one line */
@media (max-width: 360px) {
  header.nav { gap: 6px; padding-left: 12px; }
  .nav .nav-end { gap: 4px; }
  .nav .nav-links a { padding: 8px 6px; }
  .nav .n-cta { padding: 8px 10px; }
  .nav .n-cta .cta-long { display: none; }
  .nav .n-cta .cta-short { display: inline; }
}

/* footer */
footer { position: relative; background: #fff; overflow: hidden; }
footer .fstripe {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green) 30%, var(--yellow) 62%, var(--red));
}
footer .frow {
  display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center;
  max-width: 1120px; margin: 0 auto;
  padding: 44px clamp(32px, 6vw, 80px); position: relative; z-index: 1;
}
@media (min-width: 760px) {
  footer .frow { flex-direction: row; justify-content: space-between; text-align: left; }
}
footer .fbrand {
  display: flex; align-items: center; gap: 10px;
  font-family: "Faculty Glyphic", Georgia, serif;
  font-weight: 400; font-size: 15.5px; text-decoration: none; color: var(--ink);
}
footer .fbrand img { width: 26px; height: 26px; border-radius: 7px; }
footer .flinks { display: flex; gap: 8px; }
footer .flinks a {
  font-size: 13.5px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  padding: 7px 12px; border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
footer .flinks a:hover { background: var(--bg-soft); color: var(--ink); }
footer .fmeta { font-size: 12.5px; color: var(--ink-3); }
