/* Analemma Labs. Palette and type from Brand Pack/Analemma Labs identity v1. */

/* Self-hosted Latin subsets from Fontsource (SIL OFL 1.1, licences beside the files),
   so the site makes no third-party requests. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F5F6F9;
  --panel: #E9EBF0;       /* chalk */
  --ink: #0F1626;         /* meridian */
  --muted: #46586F;       /* slate */
  --line: rgba(15, 22, 38, .12);
  --warm: #DD8B26;
  --cool: #127F8C;
  --node: #F7B04A;
  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(20px, 5vw, 48px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1626;
    --panel: #162036;
    --ink: #E9EBF0;
    --muted: #8493AB;     /* slate on dark */
    --line: rgba(233, 235, 240, .12);
    --warm: #F7B25E;
    --cool: #3FBACB;
    --node: #FFC97A;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--cool); outline-offset: 3px; border-radius: 2px; }
h1, h2 { font-weight: 500; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.wrap { width: min(1080px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip {
  position: absolute; left: var(--gutter); top: -40px;
  padding: 6px 12px; background: var(--ink); color: var(--bg);
  font: 500 13px var(--mono); z-index: 10;
}
.skip:focus { top: 12px; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 28px;
}
.logo img { width: 184px; height: auto; }
.top nav { display: flex; gap: clamp(16px, 3vw, 32px); }
.top nav a, .eyebrow, .sec-label, .facts dt, .readout dt, .details dt, .note, .mark-caption, .foot, .hero-links {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .08em;
}
.top nav a { text-decoration: none; text-transform: uppercase; color: var(--muted); }
.top nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding-block: clamp(48px, 9vw, 112px) clamp(56px, 10vw, 128px);
}
.eyebrow { text-transform: uppercase; color: var(--muted); margin-bottom: 28px; text-wrap: balance; }
h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  max-width: 11ch;
  margin-bottom: 28px;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 34rem; margin-bottom: 36px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0; letter-spacing: .04em; }
.hero-links a { text-decoration-color: var(--muted); }

.mark-figure { margin: 0; display: grid; justify-items: center; gap: 20px; }
.mark { width: min(100%, 340px); height: auto; overflow: visible; }
.orbit { fill: none; stroke: var(--muted); stroke-width: .3; opacity: .45; stroke-dasharray: 1; stroke-dashoffset: 0; }
.dots .w { fill: var(--warm); }
.dots .c { fill: var(--cool); }
.dots .node { fill: var(--node); }
.today { visibility: hidden; }
.today.is-set { visibility: visible; }
.today-ring { fill: none; stroke: var(--ink); stroke-width: .55; }
.today-dot { fill: var(--ink); }
.mark-caption { color: var(--muted); display: flex; align-items: center; gap: 10px; }
.mark-caption .ring {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid var(--ink); position: relative;
}
.mark-caption .ring::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .orbit { stroke-dashoffset: 1; animation: draw 2.4s .2s cubic-bezier(.4, 0, .2, 1) forwards; }
  .dots circle { opacity: 0; transform-box: fill-box; transform-origin: center; animation: dot .5s calc(var(--i) * 55ms + .3s) ease-out forwards; }
  .today.is-set { opacity: 0; animation: fade .8s 1.9s ease-out forwards; }
  .today-ring { transform-box: fill-box; transform-origin: center; animation: breathe 4s 2.7s ease-in-out infinite; }
  .hero-copy > * { animation: rise .7s ease-out both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dot { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes fade { to { opacity: 1; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Sections */
.sec {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 24px clamp(24px, 5vw, 64px);
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 8vw, 96px);
}
.sec-label { text-transform: uppercase; color: var(--muted); padding-top: .55em; }
.sec-label span { color: var(--ink); margin-right: 10px; }
.sec h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.1; margin-bottom: 20px; }
.prose { max-width: 40rem; }
.prose > p { color: var(--muted); }

/* Work */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.product-copy > p { color: var(--muted); max-width: 34rem; }
.product-title { display: flex; align-items: center; gap: 14px; }
.product-title img { width: 48px; height: 48px; border-radius: 11px; flex: none; box-shadow: 0 0 0 1px var(--line); }
.product-copy > .product-lede { color: var(--ink); font-size: 1.2rem; font-weight: 500; margin-top: -8px; }
.facts, .readout, .details { margin: 28px 0 32px; border-top: 1px solid var(--line); }
.facts div, .readout div, .details div {
  display: grid;
  grid-template-columns: minmax(110px, 180px) minmax(0, 1fr);
  gap: 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.facts dt, .readout dt, .details dt { text-transform: uppercase; color: var(--muted); padding-top: .2em; }
.facts dd, .readout dd, .details dd { margin: 0; }
.readout dd { font-family: var(--mono); font-size: 15px; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
/* Product facts sit beside the screenshot, so they stack label-over-value in two columns. */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.facts div { grid-template-columns: 1fr; gap: 4px; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font: 500 14px var(--mono);
  letter-spacing: .04em;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.button:hover { background: var(--ink); color: var(--bg); }
.phone { margin: 0; }
.phone img {
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(15, 22, 38, .06), 0 24px 48px -24px rgba(15, 22, 38, .35);
}

.note { color: var(--muted); margin: 0; }

/* Footer */
.foot {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--line);
  padding-block: 28px 40px;
  color: var(--muted);
}
.foot p { margin: 0; }
.foot-right { margin-left: auto !important; }
.foot a { text-decoration-color: var(--muted); }

/* Privacy page */
.legal { max-width: 40rem; padding-block: clamp(40px, 7vw, 88px) clamp(56px, 9vw, 112px); }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 20px; }
.legal h2 { font-size: 1.3rem; letter-spacing: -.01em; margin: 44px 0 12px; }
.legal .lede { color: var(--ink); margin-bottom: 8px; }
.legal p { color: var(--muted); }
.legal .details { margin-top: 8px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .mark { width: min(62vw, 260px); }
  .sec { grid-template-columns: 1fr; }
  .sec-label { padding-top: 0; }
  .product { grid-template-columns: 1fr; }
  .phone { max-width: 260px; }
}
@media (max-width: 480px) {
  .top nav a:not(:last-child) { display: none; }
  .logo img { width: 164px; }
  .eyebrow span { display: none; }  /* the line always wraps here, so drop the separator */
  .facts { grid-template-columns: 1fr; }
  .facts div, .readout div, .details div { grid-template-columns: 1fr; gap: 2px; }
  .foot { flex-wrap: wrap; }
  .foot-right { margin-left: 0 !important; width: 100%; padding-left: 34px; }
}
