:root {
  --bg: #1c1a1a;
  --text: #ffffffbf;
  --muted: #8c8c8c;
  --line: #24242452;
  --blue: #5f8cff;
  --max: 620px;
  interpolate-size: allow-keywords;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

::-webkit-scrollbar {
  display: none;
}

#page-scrollbar {
  position: fixed;
  top: 8px;
  right: 0;
  z-index: 1000;
  width: 1px;
  height: 0;
  background: var(--text);
  border-radius: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

#page-scrollbar.is-visible {
  opacity: 1;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p {
  text-align: justify;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 180ms ease;
}

a:hover,
a:focus-visible {
  color: var(--blue);
}

.page {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 13vh 0 12vh;
}

.hero {
  margin-bottom: 68px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.7rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 span {
  display: inline-block;
  clip-path: inset(0 0 100% 0);
  animation: reveal-title 900ms cubic-bezier(.2, .7, .2, 1) 900ms forwards;
}

.claim {
  /* display: flex; */
  gap: 0.5em;
  margin: 27px 0 0;
  text-align: center;
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.035em;
  color: #d8d8d8;
}

.claim span {
  opacity: 0;
  transform: translateY(7px);
  animation: intro 650ms ease forwards;
}

.claim span:nth-child(1) {
  animation-delay: 2280ms;
}

.claim span:nth-child(2) {
  animation-delay: 3130ms;
}

.claim span:nth-child(3) {
  animation-delay: 3980ms;
}

.menu {
  border-top: 1px solid var(--line);
  opacity: 0;
  animation: fade 700ms ease 4630ms forwards;
}

.drawer {
  border-bottom: 1px solid var(--line);
}

.drawer::details-content {
  block-size: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    block-size 700ms cubic-bezier(.22, 1, .36, 1),
    opacity 450ms ease,
    content-visibility 700ms allow-discrete;
}

.drawer[open]::details-content {
  block-size: auto;
  opacity: 1;
}

.drawer summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 20px 34px 20px 0;
  font-size: 1.05rem;
  font-weight: 400;
  user-select: none;
  transition: color 180ms ease;
}

.drawer summary::-webkit-details-marker {
  display: none;
}

.drawer summary:hover,
.drawer summary:focus-visible {
  color: var(--blue);
  outline: none;
}

.drawer summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
  font-size: 1.25rem;
  font-weight: 300;
  transition:
    transform 880ms ease,
    color 180ms ease;
}

.drawer[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  color: var(--blue);
}

.drawer-animation {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 700ms cubic-bezier(.22, 1, .36, 1);
}

.drawer[open] .drawer-animation {
  grid-template-rows: 1fr;
}

.drawer-inner {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 450ms ease 80ms,
    transform 600ms cubic-bezier(.22, 1, .36, 1);
}

.drawer[open] .drawer-inner {
  opacity: 1;
  transform: translateY(0);
}

.drawer-inner> :first-child {
  margin-top: 22px;
}

.drawer-inner> :last-child {
  margin-bottom: 58px;
}

.content-section {
  max-width: 790px;
  padding: 0 0 58px;
}

.content-section+.content-section {
  padding-top: 52px;
  border-top: 1px solid var(--line);
}

.content-section:last-child {
  padding-bottom: 0;
}

.content-section h2 {
  margin: 0 0 28px;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.content-section p {
  margin: 0 0 22px;
}

.about p {
  max-width: 760px;
}

.portrait {
  display: block;
  width: 180px;
  /* width: 100%; */
  height: auto;
  margin-top: 38px;
  /* margin-bottom: 20px; */
  object-fit: cover;
  border-radius: 3px;
}

.eyebrow {
  margin-bottom: 10px !important;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.venture h2 {
  margin-bottom: 4px;
}

.venture h2 a {
  color: var(--blue);
}

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

.lead {
  margin-top: 38px !important;
}

.capabilities,
.tech {
  line-height: 1.9;
}

.capabilities span,
.tech span:not(.label) {
  display: inline-block;
  padding: 0 0.2em;
  color: #777;
}

.label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact p {
  max-width: 720px;
}

.mail {
  display: inline-block;
  margin-top: 8px;
  color: var(--blue);
  font-size: 1.05rem;
}

.legal {
  max-width: 820px;
}

.legal p {
  color: #c7c7c7;
}

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

@keyframes reveal-title {
  to {
    clip-path: inset(-0.08em);
  }
}

@keyframes fade {
  to {
    opacity: 1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .page {
    width: min(calc(100% - 34px), var(--max));
    padding-top: 11vh;
  }

  .hero {
    margin-bottom: 52px;
  }

  .claim {
    flex-wrap: wrap;
    margin-top: 20px;
  }

  .drawer summary {
    padding-top: 17px;
    padding-bottom: 17px;
  }

  .drawer-inner> :last-child {
    margin-bottom: 44px;
  }

  .content-section {
    padding-bottom: 44px;
  }

  .content-section+.content-section {
    padding-top: 42px;
  }

  .portrait {
    width: 145px;
  }
}

@media (prefers-reduced-motion: reduce) {

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