/*
 * A static rebuild of the umbriel.ai Squarespace page. Colours, type and
 * section themes are taken from the live site's CSS:
 *   black       hsl(203.81 100% 12.35%)  hero
 *   (default)   white                    about
 *   black-bold  hsl(200.74 100% 31.76%)  careers, under a cyan gradient image
 *   footer      lightAccent at 25% over white
 */
:root {
  --navy: hsl(203.81 100% 12.35%);
  --blue: hsl(200.74 100% 31.76%);
  --light-accent: hsl(45 11.76% 86.67%);
  --ink: #000;
  --paper: #fff;
  --font: "Lexend", system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 60px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  padding: 8px 14px; background: var(--paper); color: var(--ink);
}
.skip:focus { left: 8px; }

/* ── header: transparent, fixed, over the hero ─────────────────────────── */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 30px clamp(20px, 4vw, 58px);
  color: #fff;
  transition: background-color .3s ease;
}
.header.is-solid { background: var(--navy); }
.logo img { width: auto; height: 47px; }
.nav { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.nav a {
  text-decoration: none;
  font-size: .875rem;
  letter-spacing: .01em;
  padding: 4px 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .25s ease;
}
.nav a:hover, .nav a:focus-visible, .nav a[aria-current] { background-size: 100% 1px; }

/* ── sections ──────────────────────────────────────────────────────────── */
.section { position: relative; overflow: hidden; }
.section > .bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
}
.content {
  position: relative;
  max-width: 1440px; margin: 0 auto;
  padding: clamp(60px, 7vw, 100px) clamp(20px, 11.3vw, 163px);
}
.theme-black { background: var(--navy); color: #fff; }
.theme-black-bold { background: var(--blue); color: #fff; }

h3, h4 { font-weight: 400; letter-spacing: -.02em; line-height: 1.4; margin: 0 0 .6em; }
h3 { font-size: clamp(1.8rem, 2.65vw, 2.4rem); }
h4 { font-size: clamp(1.5rem, 2.5vw, 2.3rem); }
p { margin: 0 0 1em; }

blockquote { margin: 0; }

/* hero */
.hero { min-height: max(480px, 39vw); display: flex; align-items: center; }
.hero .content { width: 100%; padding-top: 120px; padding-bottom: 80px; }
.hero blockquote blockquote { max-width: 760px; padding-left: 8px; }
.hero .eyebrow { font-size: .8rem; letter-spacing: .04em; margin-bottom: 1.6em; }

/* about */
.about .content { padding-top: 100px; padding-right: clamp(20px, 6.6vw, 95px); }
.about p { font-size: 1rem; line-height: 1.6; margin-bottom: .9em; }

/* careers */
.careers { min-height: max(360px, 39vw); display: flex; align-items: center; }
.careers .content { width: 100%; padding-block: 60px; padding-left: clamp(20px, 10.8vw, 156px); }
.careers p { font-size: 1rem; max-width: 800px; margin-bottom: .9em; }
.careers a { text-underline-offset: 3px; }

/* footer */
.footer { background: color-mix(in srgb, var(--light-accent) 25%, #fff); }
.footer-in {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding-block: 50px;
}
.footer-in img { width: min(260px, 60vw); }
.footer-in a { text-decoration: none; font-size: 1rem; }
.footer-in a:hover { text-decoration: underline; }

@media (max-width: 767px) {
  .logo img { height: 32px; }
  .nav { gap: 14px; }
  .nav a { font-size: .9rem; }
  .hero blockquote blockquote { max-width: 100%; }
  .about p, .careers p { font-size: 1.05rem; }
}

/* ── the corruption effect (see glitch.js) ────────────────────────────── */
.mc-layer { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.mc-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.mc-ghost { position: fixed; margin: 0; pointer-events: none; z-index: 49; }
.mc-dump {
  position: fixed; z-index: 51; pointer-events: none; margin: 0;
  font: 12px/1.25 "JetBrains Mono", ui-monospace, monospace;
  white-space: pre; color: #67e8d9; background: rgba(0, 10, 18, .82);
  padding: 2px 4px; text-shadow: 1px 0 #ff2a6d, -1px 0 #05d9e8;
}
.mc-dump.is-red { color: #ff5f7a; }
html.mc-active body { cursor: progress; }
html.mc-active .section,
html.mc-active .header,
html.mc-active .footer { will-change: transform, filter; }
.mc-blackout {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background: #090b0e; opacity: 0; transition: opacity .18s steps(3);
}
.mc-blackout.on { opacity: 1; }
