@font-face {
  font-family: "Mallory";
  src: url("../fonts/mallory/Mallory-Light.woff2") format("woff2"),
       url("../fonts/mallory/Mallory-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mallory";
  src: url("../fonts/mallory/Mallory-Medium.woff2") format("woff2"),
       url("../fonts/mallory/Mallory-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mallory";
  src: url("../fonts/mallory/Mallory-Black.woff2") format("woff2"),
       url("../fonts/mallory/Mallory-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0f1115;
  --bg-2: #161922;
  --text: #eef0f4;
  --muted: #9aa0b2;
  --accent: #6b8cff;
  --border: rgba(255,255,255,0.08);
  --max-width: 720px;
  --hero-ink: #1a1c22;
  --nav-cta: #94cbff;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafafa;
    --bg-2: #ffffff;
    --text: #1a1c22;
    --muted: #6b7280;
    --accent: #3f5fe0;
    --border: rgba(0,0,0,0.08);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Floating pill nav: logo left, links and button right */
.float-nav {
  position: fixed;
  z-index: 20;
  top: 20px;
  left: clamp(12px, 2vw, 40px);
  right: clamp(12px, 2vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 12px 24px;
  background: #ffffff;
  border-radius: 48px;
  color: #000000;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
}
.float-nav .logo { position: relative; z-index: 2; display: block; flex-shrink: 0; }
.float-nav .logo img { display: block; width: auto; height: 72px; margin: -14px 0; } /* overhangs so the bar stays 44px tall inside */
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.2vw, 50px);
  margin: 0 clamp(28px, 3.2vw, 50px) 0 auto;
}
.nav-links a {
  font-size: 18px;
  font-weight: 500;
  color: #000000;
  text-decoration: none;
  padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1.5px no-repeat;
  transition: background-size 0.3s ease;
}
.nav-links a:hover { background-size: 100% 1.5px; }
.nav-cta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 26px;
  background: var(--nav-cta);
  border-radius: 999px;
  color: #000000;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease;
}
.nav-cta:hover { transform: translateY(-2px); }
.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1.5px solid #000000;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #000000;
  border-radius: 2px;
  transition: transform 0.3s ease, top 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 24px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

@media (max-width: 760px) {
  .float-nav { top: 12px; padding: 8px 8px 8px 20px; }
  .float-nav .logo img { height: 52px; margin: -6px 0; }
  .nav-cta { min-height: 40px; padding: 0 18px; font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    margin: 0;
    padding: 0 28px;
    background: var(--nav-cta);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: clamp(40px, 12vw, 64px); font-weight: 800; letter-spacing: -0.04em; }
  body.menu-open { overflow: hidden; }
}

/* Hero: illustration, then name and intro copy below it. */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 140px clamp(20px, 4.75vw, 64px) clamp(48px, 6vw, 80px);
  background: #F2FAFF;
  color: var(--hero-ink);
  text-align: center;
}
.hero-image {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  mix-blend-mode: multiply; /* lets the illustration's white background take on the hero colour */
}

.hero-copy {
  width: 100%;
  max-width: 1186px;
  margin-top: 6px;
  color: #000000;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(20px, 2.75vw, 37px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-align: left;
}
.hero-copy p { margin: 0; }
.hero-name {
  margin: 0 0 0.36em;
  font-family: "Mallory", "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(40px, 6.25vw, 84px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
}
.hero-copy p + p { margin-top: 1.12em; }

/* Keep anchored sections clear of the fixed nav */
section { scroll-margin-top: 96px; }

/* Sections */
section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
section h2 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
}
section .body {
  color: var(--text);
  font-size: 16px;
}
section .body p { margin: 0 0 16px; }

/* Focus areas grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.grid .item {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.grid .item h3 {
  font-size: 15px;
  margin: 0 0 8px;
  font-weight: 600;
}
.grid .item p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Contact */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.contact-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 15px;
}
.contact-links a:hover {
  text-decoration: underline;
}

footer {
  padding: 32px 0 64px;
  color: var(--muted);
  font-size: 13px;
}
