:root {
  color: #111;
  background: #f3f1ea;
  font-family: "Synonym", sans-serif;
  font-synthesis: none;
  --layout-gutter: max(0px, calc((100vw - 96rem) / 2));
  --ink: #111;
  --ink-secondary: #4b4841;
  --signal-orange: #f05a28;
}

::selection {
  color: #f3f1ea;
  background: var(--signal-orange);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
}

main {
  display: grid;
  padding: clamp(1.5rem, 6vw, 6rem);
  flex: 1;
  place-items: center start;
}

.home-main {
  min-height: 0;
  padding: 0;
  grid-template-columns:
    var(--layout-gutter)
    minmax(0, 1.618fr)
    minmax(18rem, 1fr)
    var(--layout-gutter);
  place-items: stretch;
}

/*
 * The wordmark sets the measure: a single min-content column sized by the
 * non-wrapping h1, so the paragraph wraps to the wordmark's width. The
 * block sits above center between flexible rows in a 1:1.618 ratio.
 */
.home-main .identity {
  position: relative;
  display: grid;
  max-width: none;
  padding: clamp(1.5rem, 6vw, 6rem);
  padding-left: calc(var(--layout-gutter) + clamp(1.5rem, 6vw, 6rem));
  grid-column: 1 / 3;
  grid-template-columns: min-content;
  grid-template-rows: 1fr auto auto 1.618fr;
  justify-content: start;
  isolation: isolate;
  overflow: hidden;
}

.identity-waves {
  position: absolute;
  z-index: -2;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) brightness(1.18) contrast(1.18);
  inset: 0;
  object-fit: cover;
  opacity: 0.7;
  pointer-events: none;
}

.home-main .identity::after {
  position: absolute;
  z-index: -1;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 .34'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.42'/%3E%3C/svg%3E"),
    linear-gradient(
      180deg,
      rgb(229 226 205 / 14%) 0%,
      rgb(232 117 36 / 45%) 28%,
      rgb(169 72 37 / 32%) 52%,
      rgb(123 135 130 / 8%) 70%,
      rgb(216 214 195 / 14%) 100%
    ),
    rgb(229 226 205 / 38%);
  background-blend-mode: soft-light, normal, normal;
  content: "";
  inset: 0;
  backdrop-filter: blur(0.5rem) saturate(125%);
  -webkit-backdrop-filter: blur(0.5rem) saturate(125%);
}

.home-main .identity h1 {
  grid-row: 2;
  margin-left: -0.04em; /* optical alignment: offsets the "O" side bearing */
  white-space: nowrap;
}

.home-main .identity > p {
  grid-row: 3;
  min-width: 22rem; /* floor for the measure when the wordmark is small */
  max-width: 100%;
  margin-top: clamp(1.25rem, 2.4vw, 1.75rem);
  color: var(--ink-secondary);
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  line-height: 1.4;
  text-wrap: pretty;
}

.venture-status {
  position: absolute;
  top: clamp(1.5rem, 3vw, 3rem);
  left: calc(var(--layout-gutter) + clamp(1.5rem, 6vw, 6rem));
  display: inline-flex;
  color: var(--ink-secondary);
  font-size: 0.6875rem;
  align-items: center;
  gap: 0.55rem;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
  animation: fade-in 500ms 200ms ease-out both;
}

.venture-status::after {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--signal-orange);
  content: "";
  flex: none;
  animation: status-blink 1.8s ease-in-out infinite;
}

.trademark {
  position: relative;
  top: 0.15em;
  margin-left: 0.15em;
  font-family: "Synonym", sans-serif;
  font-size: 0.2em;
  letter-spacing: 0;
  vertical-align: top;
}

.binary-panel {
  display: grid;
  min-width: 0;
  min-height: 30rem;
  color: #f3f1ea;
  background: #111;
  grid-column: 3 / 5;
  overflow: hidden;
  animation: fade-in 700ms 150ms ease-out both;
}

.binary-grid {
  display: grid;
  width: 100%;
  height: 100%;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  line-height: 1;
}

.binary-bit {
  display: grid;
  min-width: 0;
  opacity: 0.68;
  overflow: hidden;
  place-items: center;
  transition: opacity 200ms ease;
}

.binary-bit-value {
  color: inherit;
  transition: color 200ms ease;
}

.binary-bit:nth-child(3n) {
  opacity: 0.38;
}

.binary-bit.is-flipping {
  opacity: 0.9;
}

.binary-bit.is-flipping .binary-bit-value {
  animation: counter-change 420ms ease-in-out;
  color: var(--signal-orange);
}

.identity {
  width: 100%;
  max-width: 42rem;
  min-width: 0;
}

.identity h1 {
  animation: rise-in 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.identity > p {
  animation: rise-in 650ms 100ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

h1 {
  margin: 0;
  font-family: "Chillax", sans-serif;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

p {
  max-width: min(100%, 39rem);
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  font-size: clamp(1.125rem, 2.4vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: 0.005em;
  overflow-wrap: break-word;
}

footer {
  display: flex;
  padding-block: 1.25rem;
  padding-inline: calc(var(--layout-gutter) + clamp(1.5rem, 6vw, 6rem));
  border-top: 1px solid #d8d5ce;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  animation: fade-in 500ms 200ms ease-out both;
}

footer p,
footer a {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-decoration: none;
  transition: opacity 160ms ease;
}

footer nav {
  display: flex;
  gap: 1.5rem;
}

footer a:hover,
footer a:focus-visible {
  opacity: 0.55;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.legal {
  display: block;
  width: min(100%, 48rem);
  margin: 0 auto;
  padding-top: clamp(3rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 10vw, 9rem);
  animation: rise-in 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.legal header {
  margin-bottom: 2rem;
}

.legal .back-link {
  display: inline-flex;
  color: #111;
  font-size: 0.875rem;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.legal .back-link svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 160ms ease;
}

.legal .back-link:hover,
.legal .back-link:focus-visible {
  opacity: 0.55;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.legal .back-link:hover svg,
.legal .back-link:focus-visible svg {
  transform: translateX(-0.2rem);
}

.legal h1 {
  margin-top: 2rem;
}

.legal .effective-date {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  font-size: 0.875rem;
}

.legal section + section {
  margin-top: 2.5rem;
}

.legal h2 {
  margin: 0;
  font-family: "Chillax", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.legal section p {
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
}

.legal section a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.legal section a:hover,
.legal section a:focus-visible {
  opacity: 0.55;
}

@keyframes counter-change {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  45% {
    opacity: 0;
    transform: translateY(-0.65em);
  }

  55% {
    opacity: 0;
    transform: translateY(0.65em);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes status-blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .identity-waves {
    display: none;
  }

  .venture-status::after {
    animation: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

}

@media (max-width: 48rem) {
  .home-main {
    grid-template-columns: 1fr;
    grid-template-rows: max(17rem, 38.2%) minmax(12rem, 1fr);
  }

  .identity-waves {
    filter: grayscale(1) brightness(1.15) contrast(1.2);
    opacity: 0.74;
  }

  .home-main .identity::after {
    backdrop-filter: blur(0.44rem) saturate(125%);
    -webkit-backdrop-filter: blur(0.44rem) saturate(125%);
  }

  .home-main .identity {
    min-height: 0;
    padding: clamp(1.25rem, 5vw, 2.5rem);
    grid-column: 1;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    align-content: center;
  }

  .home-main .identity h1 {
    white-space: normal;
  }

  .home-main .identity > p {
    min-width: 0;
  }

  .venture-status {
    position: static;
    margin-bottom: clamp(1.5rem, 6vw, 2rem);
    grid-row: 1;
    justify-self: start;
  }

  .binary-panel {
    min-height: 0;
    grid-column: 1;
  }

  footer {
    padding-block: 1rem;
    padding-inline: clamp(1.25rem, 5vw, 2.5rem);
    gap: 1rem;
  }

  footer p {
    white-space: nowrap;
  }

  footer nav {
    gap: 1.25rem;
  }
}
