/* Altimix — static site styles
   Palette and type scale taken from the original Squarespace theme:
   lightAccent hsl(240 10.53% 92.55%)  accent hsl(209.23 52.7% 70.98%)  white, black. */

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/roboto-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/roboto-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/roboto-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/roboto-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --c-bg: hsl(240 10.53% 92.55%);      /* #eaeaee */
  --c-accent: hsl(209.23 52.7% 70.98%); /* #8eb6dc */
  --c-accent-dark: hsl(204.39 79.49% 38.24%);
  --c-white: #fff;
  --c-text: #000;
  --c-control: rgba(60, 60, 64, 0.82);

  --gutter: 6vw;
  --max-width: 2000px;
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Type scale reproduces the original Squarespace formula: size = (scale - 1) * 1.2vw + 1rem
     (scale values read from the live site: h1 4.0, lede 2.1, footer brand 2.5, footer heading 1.4,
     body 1.1, site title 1.7, nav 0.9). A floor keeps the hero legible on very small screens. */
  --fs-title: calc(0.7 * 1.2vw + 1rem);
  --fs-nav: calc(-0.1 * 1.2vw + 1rem);
  --fs-h1: max(1.75rem, calc(3 * 1.2vw + 1rem));
  --fs-lede: max(1.15rem, calc(1.1 * 1.2vw + 1rem));
  --fs-footer-brand: calc(1.5 * 1.2vw + 1rem);
  --fs-footer-heading: calc(0.4 * 1.2vw + 1rem);
  --fs-body: calc(0.1 * 1.2vw + 1rem);
}

@media (min-width: 768px) {
  :root { --gutter: 4vw; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.3;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--c-accent-dark);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0.5rem;
  z-index: 100;
  padding: 0.6em 1em;
  background: var(--c-text);
  color: var(--c-white);
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

main:focus { outline: none; }

/* ---------- Header (transparent, overlays the hero) ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: clamp(1.25rem, 1.9vw, 2.25rem) var(--gutter);
}

.site-title {
  font-size: var(--fs-title);
  line-height: 1.1;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  font-size: var(--fs-nav);
  line-height: 1.3;
  text-decoration: none;
  /* comfortable tap target without changing the visual size */
  padding: 0.75rem 0;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(28rem, 43.6vw, 56rem);
  padding: clamp(5.5rem, 8vw, 8rem) var(--gutter);
}

.hero-content {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
}

.hero h1 {
  max-width: 17.75em;
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 0.968;
  letter-spacing: -0.02em;
}

.hero-lede {
  max-width: 33em;
  margin-top: clamp(0.75rem, 2vw, 2.5rem);
  font-size: var(--fs-lede);
  font-weight: 700;
  line-height: 1.052;
  letter-spacing: -0.02em;
}

.hero-lede a {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
}
.hero-lede a:hover { text-decoration-thickness: 0.14em; }

/* Animated background — a lightweight CSS recreation of the original
   Squarespace "conic" generative background (lightAccent / accent / white). */

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--c-bg);
  pointer-events: none;
}

.hero-bg > div {
  position: absolute;
  will-change: transform;
}

.hero-bg__halo {
  left: 8%;
  top: -40%;
  width: 80%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55) 70%, rgba(255, 255, 255, 0) 100%);
  filter: blur(24px);
  animation: drift 26s ease-in-out infinite alternate;
}

.hero-bg__blob {
  left: 23%;
  top: -22%;
  width: 56%;
  aspect-ratio: 1 / 1.05;
  border-radius: 50%;
  background:
    conic-gradient(from 200deg at 50% 50%,
      hsl(209 52% 70%) 0deg,
      hsl(209 54% 73%) 70deg,
      hsl(209 50% 78%) 125deg,
      hsl(209 53% 71%) 180deg,
      hsl(209 56% 69%) 250deg,
      hsl(209 48% 80%) 315deg,
      hsl(209 52% 70%) 360deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 80%, rgba(0, 0, 0, 0.7) 92%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 80%, rgba(0, 0, 0, 0.7) 92%, transparent 100%);
  filter: blur(4px);
  animation: spin 48s linear infinite;
}

.hero-bg__sheen {
  left: 18%;
  top: -40%;
  width: 40%;
  aspect-ratio: 1 / 1.4;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  filter: blur(30px);
  animation: sway 18s ease-in-out infinite alternate;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes drift {
  from { transform: translate3d(-3%, 0, 0) scale(1); }
  to   { transform: translate3d(4%, 6%, 0) scale(1.06); }
}
@keyframes sway {
  from { transform: translate3d(0, 0, 0) rotate(-8deg); }
  to   { transform: translate3d(60%, 12%, 0) rotate(10deg); }
}

@media (max-width: 767px) {
  .hero {
    min-height: 0;
    padding-top: 6.5rem;
    padding-bottom: 4.5rem;
  }
  .hero-bg__halo { left: -30%; top: -20%; width: 160%; }
  .hero-bg__blob { left: -8%; top: -18%; width: 116%; }
  .hero-bg__sheen { left: -10%; top: -20%; width: 80%; }
}

.hero.is-paused .hero-bg > div { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg > div { animation: none !important; }
}

/* Pause / play control (WCAG 2.2.2 — pause moving content) */
.motion-toggle {
  position: absolute;
  right: clamp(0.75rem, 1.2vw, 1.25rem);
  bottom: clamp(0.75rem, 1.6vw, 1.5rem);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-white);
  cursor: pointer;
}
.motion-toggle::before {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border-radius: 50%;
  background: var(--c-control);
  transition: background-color 0.15s;
}
.motion-toggle:hover::before { background: rgba(30, 30, 34, 0.92); }
.motion-toggle svg { position: relative; fill: currentColor; width: 0.8rem; height: 0.8rem; }
.motion-toggle .icon-play { display: none; }
.motion-toggle[aria-pressed="true"] .icon-pause { display: none; }
.motion-toggle[aria-pressed="true"] .icon-play { display: block; }
@media (prefers-reduced-motion: reduce) {
  .motion-toggle { display: none; }
}

/* ---------- Footer ---------- */

.site-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: clamp(3rem, 5.5vw, 6rem) var(--gutter) clamp(3.5rem, 6vw, 6.5rem);
}

.footer-brand h2 {
  font-size: var(--fs-footer-brand);
  font-weight: 400;
  line-height: 1.034;
  letter-spacing: -0.02em;
}

.site-footer p {
  margin-top: 1.8em;
  font-size: var(--fs-body);
  line-height: 1.3;
}

.footer-heading {
  font-size: var(--fs-footer-heading);
  font-weight: 400;
  line-height: 1.082;
  letter-spacing: -0.02em;
}

.footer-col p { margin-top: 1.4em; }

.site-footer a {
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }

@media (min-width: 768px) {
  .site-footer {
    grid-template-columns: minmax(0, 1fr) minmax(11rem, 15.5%) minmax(11rem, 15.5%);
    column-gap: 1rem;
    align-items: start;
  }
}

/* ---------- Simple content pages (404, future privacy/support pages) ---------- */

.page {
  max-width: 46rem;
  margin-inline: auto;
  padding: calc(clamp(1.25rem, 2.2vw, 2rem) * 2 + 3rem) var(--gutter) 4rem;
}
.page h1 {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.page p { margin-top: 1.25em; line-height: 1.5; letter-spacing: -0.01em; }
.page a { text-underline-offset: 0.15em; }
