/* Hueman — huemanapp.com
   Fraunces and Outfit, both SIL Open Font License. Licenses: assets/fonts/. */

@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/fraunces-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/fraunces-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: Fraunces;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/fraunces-latin-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/outfit-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/outfit-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/outfit-latin-600-normal.woff2") format("woff2");
}

:root {
  --stone: #f3f2ef;
  --paper: #fffcf8;
  --ink: #1c1e22;
  --muted: #5c5f66;
  --line: #e2dfd8;
  --violet: #5b45e0;
  --violet-press: #4936c4;
  --link: #3a2e9e;
  --always: #8e241c;
  --footer: #1c1e22;
  --serif: Fraunces, "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  --wrap: min(1080px, calc(100% - 2rem));
  --shadow: 0 16px 36px rgba(28, 30, 34, 0.08);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

h1,
h2 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--link);
  text-underline-offset: 0.16em;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

::selection {
  background: #d9d4f5;
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  z-index: 50;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.utility {
  background: var(--footer);
  color: #e6e3dc;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.utility a {
  color: #e6e3dc;
  text-decoration: none;
}

.utility a:hover {
  color: #fff;
}

.utility-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  min-height: 2.1rem;
  padding-block: 0.3rem;
}

.bar {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  min-height: 4.25rem;
  flex-wrap: wrap;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  display: block;
  background: #000;
  object-fit: cover;
}

.brand-lock {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name,
.wordmark {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: none;
}

.brand-name {
  font-size: 1.12rem;
}

.brand-by {
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.menu-toggle {
  margin-left: auto;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  min-height: 40px;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 4px;
  cursor: pointer;
}

.primary-nav {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.2rem 0 1rem;
}

.primary-nav.is-open {
  display: flex;
}

.primary-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.55rem 0.15rem;
}

.primary-nav a:hover {
  color: var(--link);
}

.primary-nav a[aria-current="page"] {
  color: var(--link);
  box-shadow: inset 0 -2px 0 var(--violet);
}

.primary-nav .btn {
  margin-top: 0.45rem;
  align-self: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 4px;
  background: var(--violet);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.1;
  transition: background-color 0.15s ease;
}

.btn:hover {
  background: var(--violet-press);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: #cfcbc3;
}

.btn-ghost:hover {
  background: rgba(28, 30, 34, 0.04);
  color: var(--ink);
}

.film {
  position: relative;
  z-index: 0;
  height: 100vh;
  height: 100dvh;
  margin-top: calc(var(--header-h, 6.5rem) * -1);
  background: #000;
  overflow: hidden;
}

.film img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

.film-desert {
  object-fit: cover;
  object-position: 63% center;
  opacity: 1;
}

.film-lockup {
  object-fit: contain;
  object-position: center center;
  background: #000;
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .film:not(.is-primed) .film-lockup {
    animation: film-in 2s ease 71s forwards;
  }

  .film:not(.is-primed) .film-desert {
    animation: film-out 2s ease 71s forwards;
  }
}

.film.is-primed .film-desert,
.film.is-primed .film-lockup {
  animation: none;
}

.film.is-primed.is-lockup .film-desert,
.film.is-primed.is-lockup .film-lockup {
  transition: opacity 2s ease;
}

.film.is-primed.is-lockup .film-desert {
  opacity: 0;
}

.film.is-primed.is-lockup .film-lockup {
  opacity: 1;
}

@keyframes film-in {
  to {
    opacity: 1;
  }
}

@keyframes film-out {
  to {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .film-desert {
    opacity: 0;
    animation: none;
  }

  .film-lockup {
    opacity: 1;
    animation: none;
  }

  .film.is-primed.is-lockup .film-desert,
  .film.is-primed.is-lockup .film-lockup {
    transition: none;
  }
}

.hero {
  padding: 2.5rem 0 3.25rem;
}

.hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.eyebrow,
.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.wordmark {
  margin-top: 0.45rem;
  font-size: clamp(2rem, 4.5vw, 2.65rem);
  line-height: 1;
  color: var(--ink);
}

.tagline {
  margin-top: 0.7rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
}

h1 {
  margin-top: 0.85rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.15rem, 4.8vw, 3.35rem);
  letter-spacing: -0.028em;
  line-height: 1.12;
}

.lede,
.section-lead {
  margin-top: 0.9rem;
  max-width: 40rem;
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.cta-note {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.25rem;
  margin-top: 1.4rem;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.specs li {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}

.hero-stage {
  display: grid;
  justify-items: center;
}

.device {
  display: block;
  width: min(100%, 18.5rem);
  background: #fff;
  border: 1px solid #e4e0d8;
  border-radius: 1.4rem;
  padding: 0.4rem;
  box-shadow: var(--shadow);
}

.hero-stage .device {
  width: min(78%, 19rem);
}

.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.1rem;
  background: #f6f4f8;
}

.caption {
  margin-top: 0.75rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
}

.section {
  padding: 3.25rem 0;
}

.section h2,
.company h2,
.access h2,
.policy h1 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.15;
}

.section h2,
.company h2,
.access h2 {
  margin-top: 0.4rem;
  font-size: clamp(1.85rem, 3.6vw, 2.55rem);
}

.band {
  background: #fff;
  border-block: 1px solid var(--line);
}

.paper-band {
  background: #fff;
  border-block: 1px solid var(--line);
}

.cards {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.cards article,
.rules li,
.settings li {
  background: var(--stone);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.15rem 1.1rem 1.25rem;
}

.band .cards article,
.paper-band .rules li,
.paper-band .settings li {
  background: var(--paper);
}

.num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.cards h3,
.rules h3,
.settings h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-top: 0.3rem;
}

.cards p,
.rules p,
.settings p {
  margin-top: 0.5rem;
}

.split {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.prose {
  max-width: 40rem;
}

.prose > * + * {
  margin-top: 0.9rem;
}

.split .prose h2,
.prose h2 {
  margin-top: 0.35rem;
}

blockquote {
  padding: 0.1rem 0 0.1rem 1rem;
  border-left: 2px solid var(--ink);
}

blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

blockquote footer {
  margin-top: 0.65rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.88rem;
  color: var(--muted);
}

.wont {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  list-style: none;
}

.wont li {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  padding: 0.35rem 0.65rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.medical {
  padding: 0.85rem 1rem;
  background: #f8eeeb;
  border-left: 3px solid var(--always);
}

.medical strong {
  color: var(--always);
}

.limits {
  color: var(--muted);
  font-size: 0.95rem;
}

.rules,
.settings {
  margin-top: 1.15rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.always,
.choice {
  justify-self: start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.always {
  color: var(--always);
}

.choice {
  color: var(--muted);
}

.subhead {
  margin-top: 2rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.gallery-head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.gallery {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0.2rem 0 0.85rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery::-webkit-scrollbar {
  height: 8px;
}

.gallery::-webkit-scrollbar-thumb {
  background: #c8c4bb;
  border-radius: 99px;
}

.gallery li {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: min(74vw, 16.5rem);
}

.shot {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}

.gallery .device {
  width: 100%;
  transition: transform 0.25s ease;
}

.shot:hover .device,
.shot:focus-visible .device {
  transform: translateY(-3px);
}

.gallery figcaption {
  margin-top: 0.7rem;
}

.gallery figcaption strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

.gallery figcaption span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.company {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 2.4rem 0;
}

.company-grid {
  display: grid;
  gap: 0.8rem;
  align-items: start;
}

.company-grid > p {
  max-width: 38rem;
  font-size: 1.08rem;
}

.access {
  padding: 3rem 0 3.5rem;
}

.access-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.6rem 1.25rem 1.75rem;
  max-width: 42rem;
}

.access-panel p {
  margin-top: 0.85rem;
  max-width: 40rem;
}

.access-panel .kicker {
  margin-top: 0;
}

.mail {
  font-weight: 600;
}

.site-footer {
  background: var(--footer);
  color: #e6e3dc;
  padding: 2.5rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

.footer-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.footer-grid p {
  margin-top: 0.4rem;
  max-width: 22rem;
  color: #c8c4bc;
  font-size: 0.95rem;
}

.footer-label {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9c9890;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li + li {
  margin-top: 0.4rem;
}

.footer-grid a {
  color: #f3f0ea;
  text-decoration: none;
  font-weight: 500;
}

.footer-grid a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9c9890;
  font-size: 0.88rem;
}

dialog {
  width: min(52rem, calc(100vw - 1.25rem));
  max-height: calc(100dvh - 1.25rem);
  border: 1px solid var(--line);
  padding: 0.75rem;
  border-radius: 6px;
  background: var(--stone);
  color: var(--ink);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(28, 30, 34, 0.72);
}

.viewer-bar {
  display: flex;
  gap: 0.4rem;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.viewer-bar button {
  font: inherit;
  font-weight: 600;
  min-height: 40px;
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.viewer-frame {
  overflow: auto;
  max-height: calc(100dvh - 8rem);
}

.viewer-frame img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 9.5rem);
  margin: 0 auto;
}

#viewer-cap {
  margin-top: 0.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.policy {
  padding: 2rem 0 3.5rem;
}

.policy-wrap {
  width: min(46rem, var(--wrap));
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.5rem 1.15rem 2rem;
}

.policy h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-top: 0.35rem;
}

.policy h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin-top: 2rem;
}

.policy p,
.policy li {
  margin-top: 0.7rem;
}

.policy ul,
.policy ol {
  padding-left: 1.15rem;
}

.draft-note {
  margin-top: 1.15rem;
  padding: 0.9rem 1rem;
  background: var(--stone);
  border-left: 3px solid var(--ink);
}

.draft-note p {
  margin-top: 0;
}

.draft-note + .draft-note {
  margin-top: 0.65rem;
  border-left-color: var(--violet);
}

.meta-list {
  margin-top: 1.1rem;
  padding: 0.9rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.meta-list li {
  margin-top: 0.35rem;
}

.table-wrap {
  margin-top: 0.9rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid var(--line);
}

thead th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

tbody th {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  font-size: 0.98rem;
}

.policy a {
  font-weight: 600;
}

section[id],
.policy h2 {
  scroll-margin-top: 6.5rem;
}

@media (min-width: 720px) {
  :root {
    --wrap: min(1080px, calc(100% - 4rem));
  }

  .cta-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .rules,
  .settings {
    grid-template-columns: 1fr 1fr;
  }

  .split,
  .company-grid {
    grid-template-columns: 1.05fr 0.85fr;
    gap: 2.5rem;
  }

  .company-grid {
    grid-template-columns: 16rem 1fr;
    align-items: center;
  }

  .hero {
    padding-top: 3.25rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(16rem, 0.8fr);
  }

  .policy-wrap {
    padding: 2.5rem 2.75rem 3rem;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 2rem;
  }

  .access-panel {
    padding: 2rem 2.1rem 2.15rem;
  }
}

@media (min-width: 960px) {
  .menu-toggle {
    display: none;
  }

  .primary-nav,
  .primary-nav.is-open {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: auto;
    margin-left: auto;
    padding: 0;
    gap: 0.15rem 1.15rem;
  }

  .primary-nav a {
    padding: 0.35rem 0;
  }

  .primary-nav .btn {
    margin-top: 0;
    margin-left: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .gallery .device,
  a,
  .btn {
    transition: none;
  }

  .shot:hover .device,
  .shot:focus-visible .device {
    transform: none;
  }
}

@media (forced-colors: active) {
  .btn,
  .menu-toggle,
  .viewer-bar button {
    border: 1px solid ButtonText;
  }
}

@media print {
  .site-header,
  .skip,
  .cta-row,
  .menu-toggle,
  dialog {
    display: none !important;
  }

  body,
  .band,
  .paper-band,
  .company,
  .site-footer,
  .policy-wrap,
  .access-panel {
    background: #fff;
    color: #000;
  }

  a {
    color: #000;
  }
}
