:root {
  --bg: #101010;
  --ink: #bbbbbb;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.12);
  --accent: #eb3349;
  --hover: #181818;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

@font-face {
  font-family: '5thAvenue';
  src: url('assets/5thAvenue_Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Satoshi';
  src: url('assets/Satoshi-Variable.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: 'Satoshi', "Avenir Next", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 3.2rem;
  position: relative;
  z-index: 2;
  background-color: rgba(255,255,255,0.1)
}

.brand img {
  display: block;
  width: 7.5rem;
  height: auto;
}

.brand,
.menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.brand:hover,
.menu a:hover,
.menu a[aria-current="page"] {
  color: var(--accent);
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.menu-linkedin img {
  display: block;
  width: 1.65rem;
  height: 1.65rem;
}

.hero {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 2rem;
  padding: 1rem 7vw 0rem;
  overflow: hidden;
}

h1, h2 {
  font-family: '5thAvenue';
}

.photo-frame {
  position: relative;
  width: min(30rem, 48vw);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid;
}

.photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.hero-copy {
  max-width: 28rem;
  padding-bottom: 4vh;
}

h1 {
  margin: 0;
  color: var(--white);
  font-weight: 300;
  font-size: clamp(1.7rem, 2.5vw, 2.55rem);
  line-height: 1.45;
  letter-spacing: 0;
}

h1 strong {
  color: var(--accent);
  font-weight: 500;
}

.hero-copy h1 {
  font-size: 1.25em;
}

.hero-copy h1 span {
  display: block;
  font-size: 1.75em;
  margin-bottom: 0;
}

.hero-copy h1 span.titles {
  font-size: 0.8em;
  margin: -10px 0 1.5em 0;
  font-family: 'Satoshi', sans-serif;
}
.bio {
  margin: 1.35rem 0 0;
  max-width: 36rem;
  color: var(--ink);
  font-size: 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #101010;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border: 0;
}

.button:hover {
  background: #dddddd;
  cursor: pointer;
}

.button-ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.button-ghost:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.button.halfwidth {
  width: calc(50% - 0.4rem);
}

button.button {
  border: 0;
  font-family: sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
}

button.button.secondary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

button.button.secondary:hover {
  background: #dddddd;
  border-color: #dddddd;
  color: #101010;
}

.contact-dialog {
  width: min(28rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #181818;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.contact-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.4rem 1.4rem 1.5rem;
}

.contact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.contact-head h2 {
  margin: 0;
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 400;
}

.contact-close {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.contact-close:hover {
  color: var(--accent);
}

.contact-intro {
  margin: 0.15rem 0 0.6rem;
}

.contact-form label {
  margin-top: 0.35rem;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 0;
  border-radius: 8px;
  background: #101010;
  color: var(--white);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.contact-form .button {
  margin-top: 0.8rem;
  align-self: flex-start;
}

.contact-status {
  min-height: 1.4rem;
  margin: 0.2rem 0 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.work {
  padding: 2rem 7vw 5.5rem;
}

.work h2 {
  margin: 0 0 1.25rem;
  color: var(--white);
  font-weight: 300;
  font-size: clamp(1.6rem, 2vw, 2rem);
}

.ventures ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  max-width: 68rem;
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #181818;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.card:hover {
  background: #1e1e1e;
  box-shadow: inset 0 0 0 1px rgba(235, 51, 73, 0.45);
}

.card-image {
  display: block;
  aspect-ratio: 1.91 / 1;
  background-color: #242424;
  background-image: var(--image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1rem 1.05rem;
}

.group {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #525252;
  padding: 10px 10px 10px 20px;
  margin: -20px -20px 0 -20px;
}
.name {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  margin-top: 10px;
}

.card:hover .name {
  color: var(--accent);
}

.line {
  color: var(--ink);
  font-size: 1rem;
  margin-top: -10px;
}

.inner {
  width: min(42rem, calc(100% - 4rem));
  margin: 0 auto;
  padding: 4.5rem 0 6rem;
}

.inner .eyebrow {
  margin: 0 0 0.6rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inner .eyebrow a {
  color: inherit;
  text-decoration: none;
}

.inner .eyebrow a:hover {
  text-decoration: underline;
}

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

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: row;
    gap: 0.85rem;
    padding: 1.25rem 1.25rem 0.5rem;
  }

  .menu {
    gap: 1.1rem;
    flex-wrap: wrap;
  }

  .hero {
    flex-direction: column;
    min-height: 0;
    padding: 1.5rem 1.25rem 3rem;
    gap: 0.5rem;
  }

  .photo-frame {
    width: min(18rem, 92vw);
    margin: 0.5rem auto 1.75rem;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .work {
    padding: 1rem 1.25rem 4rem;
  }

  .inner {
    width: min(42rem, calc(100% - 2.5rem));
    padding-top: 2.5rem;
  }
}

@media (max-width: 720px) {
  .ventures ol {
    grid-template-columns: 1fr;
  }
}

.patents-page {
  width: min(960px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.5rem 0 5rem;
}

.patents-hero .eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.patents-hero h1 {
  margin: 0.35rem 0 0.75rem;
  color: var(--white);
  font-size: clamp(2.75rem, 8vw, 6.25rem);
  font-weight: 400;
  line-height: 0.9;
}

.patents-hero h1 span {
  color: var(--accent);
}

.patents-hero p:last-child {
  max-width: 36rem;
  margin: 0;
}

.year-filter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2rem 0 1.1rem;
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 0.85rem 0 0.7rem;
  background: linear-gradient(#101010 70%, rgba(16, 16, 16, 0));
}

.year-filter label {
  color: var(--white);
  font-size: 0.95rem;
}

.year-filter select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 12rem;
  padding: 0.7rem 2.5rem 0.7rem 0.95rem;
  border: 0;
  border-radius: 14px;
  background-color: #181818;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.7rem auto;
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  min-width: 200px;
}

.year-filter select:hover {
  box-shadow: inset 0 0 0 1px var(--accent);
}

.year-filter select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.year-filter select option {
  background: #181818;
  color: var(--white);
}

.patent-roll {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.patent-roll li[hidden] {
  display: none;
}

.patent-roll article {
  padding: 1.15rem 1.25rem 1.25rem;
  border-radius: 14px;
  background: #181818;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.patent-id {
  margin: 0 0 0.2rem;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.patent-id span {
  margin-left: 0.4rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.patent-roll time {
  color: var(--muted);
  font-size: 0.82rem;
}

.patent-roll h2 {
  margin: 0.15rem 0 0.7rem;
  color: var(--white);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.2;
  font-family: 'Satoshi', sans-serif;
  text-transform: capitalize;
}

.patent-roll summary {
  width: fit-content;
  color: var(--white);
  cursor: pointer;
}

.patent-roll details p {
  margin: 0.65rem 0 0;
}

.patent-doc {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 5px 10px;
  text-decoration: none;
}

.patent-doc:hover {
  color: var(--white);
}

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