/* Chelsea McElveen — one-pager. Apple-language system UI, zero JS (analytics beacon only). */

:root {
  --paper:#ffffff;
  --gray:#f5f5f7;
  --ink:#1d1d1f;
  --muted:#6e6e73;
  --muted-strong:#515154;
  --hairline:#d2d2d7;
  --blue:#0071e3;
  --blue-hover:#0077ed;
  --dark-bg:#1d1d1f;
  --on-dark:#f5f5f7;
  --on-dark-muted:#a1a1a6;
  --blue-on-dark:#2997ff;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", Helvetica, Arial, sans-serif;

  --container: 980px;
  --pad-x: clamp(22px, 5vw, 40px);
  --section-y: clamp(76px, 12vw, 140px);
  --nav-h: 48px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
h1, h2, p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(0,113,227,0.18); }

/* visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 50%;
  top: -64px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  z-index: 100;
  transition: top .15s ease;
}
.skip:focus { top: 0; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.narrow { max-width: 820px; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav__brand:hover { text-decoration: none; }
.nav__mono {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--on-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.06em;
}
.nav__links { display: flex; align-items: center; gap: clamp(16px, 3vw, 30px); }
.nav__links a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  opacity: 0.82;
}
.nav__links a:hover { opacity: 1; text-decoration: none; }

/* ---------- sections ---------- */
.section { padding-block: var(--section-y); }
.section--light { background: var(--paper); }
.section--gray  { background: var(--gray); }
.section--dark  { background: var(--dark-bg); color: var(--on-dark); }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.section--dark .eyebrow { color: var(--on-dark-muted); }

/* big centered statement copy (Apple intro / mission style) */
.section__statement, .statement__text {
  font-size: clamp(26px, 4.4vw, 46px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.02em;
  max-width: 900px;
}
.statement { text-align: center; }
.statement .statement__text { margin-inline: auto; }

/* secondary supporting line under a statement */
.section__note {
  margin-top: 20px;
  max-width: 720px;
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.5;
  color: var(--muted-strong);
}
.section--dark .section__note { color: var(--on-dark-muted); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(56px, 9vw, 96px); padding-bottom: var(--section-y); text-align: center; }
.hero__inner { text-align: center; width: 100%; }
.hero .eyebrow { margin-bottom: 14px; }
.hero__name {
  font-size: clamp(40px, 9vw, 96px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 100%;
  overflow-wrap: break-word;
}
.hero__tagline {
  margin-top: 18px;
  margin-inline: auto;
  max-width: min(720px, 100%);
  font-size: clamp(20px, 3.1vw, 28px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.cta-row {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  padding: 13px 22px;
  border-radius: 980px;
  transition: background-color .2s ease;
}
.btn:hover { background: var(--blue-hover); text-decoration: none; }

.link-arrow {
  font-size: 17px;
  font-weight: 400;
  white-space: nowrap;
}
.link-arrow:hover { text-decoration: none; }
.link-arrow span { text-underline-offset: 3px; }
.link-arrow:hover span { text-decoration: underline; }
.link-arrow::after {
  content: "\203A";
  display: inline-block;
  margin-left: 5px;
  transition: transform .2s ease;
}
.link-arrow:hover::after { transform: translateX(3px); }
.section--dark .link-arrow,
.section--dark a { color: var(--blue-on-dark); }

/* hero portrait — circular, the "product shot" */
.hero__portrait {
  margin: clamp(44px, 7vw, 72px) 0 0;
}
.hero__portrait img {
  width: clamp(232px, 42vw, 320px);
  height: clamp(232px, 42vw, 320px);
  margin-inline: auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 18px 50px rgba(0,0,0,0.14);
  background: var(--gray);
}

/* ---------- proof trio ---------- */
.proof__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(36px, 5vw, 56px);
}
.proof__item { flex: 1 1 240px; max-width: 320px; }
.proof__title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.proof__body {
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted-strong);
}

/* ---------- technology stats ---------- */
.stats {
  margin-top: clamp(40px, 6vw, 64px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(36px, 7vw, 88px);
}
.stat__num {
  font-size: clamp(44px, 8vw, 84px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--on-dark);
}
.stat__label {
  margin-top: 10px;
  font-size: 16px;
  color: var(--on-dark-muted);
}

/* ---------- signature compressing rule ---------- */
.compress-rule {
  width: 220px;
  height: 1px;
  border: 0;
  margin: 0 auto clamp(40px, 6vw, 64px);
  background: var(--hairline);
  border-radius: 2px;
}

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact__rows {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.contact__email { font-size: 18px; }
.contact__line {
  font-size: 17px;
  color: var(--muted-strong);
}
.contact__line a { color: var(--blue); }

/* ---------- footer ---------- */
.footer {
  background: var(--gray);
  border-top: 1px solid var(--hairline);
  padding-block: 34px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: space-between;
  align-items: center;
}
.footer p { font-size: 13px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 740px) {
  .nav__links a.is-desktop { display: none; }
  .proof__grid { gap: 40px; }
  .proof__item { flex-basis: 100%; max-width: none; }
}
@media (max-width: 380px) {
  .nav__brand span.nav__name { display: none; }
}

/* ---------- motion: Apple-style scroll reveals (pure CSS, progressive) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      will-change: opacity, transform;
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 2% cover 26%;
    }
    @keyframes reveal-in {
      from { opacity: 0; transform: translateY(30px); }
      to   { opacity: 1; transform: none; }
    }
    /* the rule shortens + thickens as you scroll past Technology */
    .compress-rule {
      animation: compress linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 55%;
    }
    @keyframes compress {
      from { width: 220px; height: 1px; }
      to   { width: 96px;  height: 3px; }
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- print: clean one-sheet ---------- */
@page { margin: 0.5in; }
@media print {
  .nav, .skip, .cta-row, .hero__portrait, .compress-rule, .stats { display: none !important; }
  /* neutralize scroll-reveal so every section prints */
  .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
  body { font-size: 10pt; line-height: 1.26; color: #000; background: #fff; }
  .section { padding-block: 6px !important; }
  .footer { padding-block: 8px; }
  .section, .footer { background: #fff !important; color: #000 !important; }
  .section--dark, .section--dark .eyebrow,
  .section__statement, .statement__text, .section__note, .hero__name, .hero__tagline,
  .proof__title, .proof__body, .contact__line, .eyebrow { color: #000 !important; }
  .hero { padding: 2px 0 6px !important; }
  .hero__name { font-size: 23pt; }
  .hero__tagline { font-size: 11.5pt; margin-top: 6px; }
  .eyebrow { margin-bottom: 5px; font-size: 8.5pt; }
  .section__statement, .statement__text { font-size: 11.5pt; font-weight: 600; line-height: 1.22; }
  .narrow { max-width: none; }
  .proof__grid { gap: 24px; justify-content: flex-start; }
  .proof__item { flex: 0 1 30%; }
  .proof__title { font-size: 12.5pt; margin-bottom: 6px; }
  .proof__body { font-size: 9pt; }
  .contact__rows { align-items: flex-start; margin-top: 8px; gap: 4px; }
  .btn.contact__email { background: none; color: #000 !important; padding: 0; font-size: 11pt; font-weight: 600; }
  a { color: #000; text-decoration: none; }
}
