/* Atlas holding page. Layout: one left-aligned column; headline, one line, the product still. */
:root {
  color-scheme: dark;
  --bg: #050608;            /* page ground, blue-biased near-black */
  --panel: #07090d;         /* the ground of the product still */
  --fg: #eef0f4;
  --fg-soft: #a3abb9;       /* second clause, body line */
  --fg-dim: #7d8594;        /* labels, caption, footer */
  --line: rgba(226, 232, 245, 0.10);
  --line-strong: rgba(226, 232, 245, 0.16);
  --ok: #3fae6f;            /* the green of a match in the product */
  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1200px;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(1100px 520px at 72% 108%, rgba(88, 118, 178, 0.13), transparent 70%),
    var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

p, h1, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
  border-radius: 2px;
}
::selection { background: rgba(120, 150, 210, 0.35); }

.page {
  max-width: calc(var(--max) + 2 * var(--gutter));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  color: var(--fg-soft);
  white-space: nowrap;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(63, 174, 111, 0.16);
}

/* Hero */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 4.5vw, 60px);
  padding-block: clamp(48px, 6vw, 80px) clamp(40px, 6vw, 72px);
}
.hero {
  display: grid;
  gap: clamp(24px, 3vw, 36px);
}
h1 {
  font-size: clamp(1.75rem, 9.4vw, 4.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.042em;
  text-wrap: balance;
}
h1 span { display: block; color: var(--fg-soft); }
.lede {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
}
.lede p {
  max-width: 34ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--fg-soft);
}
.contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  overflow-wrap: anywhere;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.contact:hover {
  border-color: rgba(226, 232, 245, 0.34);
  background: rgba(226, 232, 245, 0.04);
}
.arrow {
  color: var(--fg-dim);
  transition: transform 0.2s ease, color 0.2s ease;
}
.contact:hover .arrow { transform: translateX(3px); color: var(--fg); }

/* Product still */
.still { display: grid; gap: 14px; }
.frame {
  position: relative;
  overflow: hidden;
  padding: clamp(12px, 1.8vw, 22px) clamp(12px, 1.8vw, 22px) 0;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 40px 90px -30px rgba(0, 0, 0, 0.9),
    0 0 120px -40px rgba(96, 128, 196, 0.22);
}
.frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.frame::after {              /* the page continues below the crop */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 12%;
  background: linear-gradient(to bottom, rgba(7, 9, 13, 0), var(--panel));
  pointer-events: none;
}
figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--fg-dim);
}

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 22px 28px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--fg-dim);
}
.foot a { transition: color 0.2s ease; }
.foot a:hover { color: var(--fg); }

/* Phone: show the left of the still at a readable size instead of shrinking all of it */
@media (max-width: 640px) {
  .top { padding-block: 20px; }
  .frame { border-radius: 12px; }
  .frame img { width: 235%; max-width: none; }
  .frame::before {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 26%;
    background: linear-gradient(to right, rgba(7, 9, 13, 0), var(--panel));
    pointer-events: none;
    z-index: 1;
  }
  .contact { width: 100%; justify-content: space-between; }
}

/* One quiet entrance; the page is complete without it */
@media (prefers-reduced-motion: no-preference) {
  .hero, .still { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .still { animation-delay: 0.12s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
