:root {
  color-scheme: dark;
  --bg: #101214;
  --surface: #1a1d21;
  --ink: #f7f7f4;
  --muted: #bfc3ca;
  --blue: #1746ff;
  --line: #40444c;
  --body: 1.125rem;
  --small: 0.9375rem;
  --heading: clamp(2.35rem, 4vw, 4rem);
  --gutter: clamp(1.25rem, 5.6vw, 6rem);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: var(--body);
  line-height: 1.52;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
}
p,
h1,
h2,
h3,
dl,
dd {
  margin: 0;
}
p {
  max-width: 65ch;
  color: var(--muted);
}
h1,
h2,
h3 {
  font-weight: 700;
  text-wrap: balance;
}
h2 {
  font-size: var(--heading);
  line-height: 1.01;
  letter-spacing: -0.048em;
}
h3 {
  font-size: var(--body);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(100%, 96rem);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 9;
  padding: 0.6em 1em;
  background: var(--ink);
  color: var(--bg);
}
.skip:focus {
  top: 1rem;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid #9fb1ff;
  outline-offset: 5px;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: clamp(1.3rem, 2.6vw, 2.7rem);
  gap: 1rem;
}
.brand {
  display: block;
  line-height: 0;
}
.brand img {
  width: clamp(7rem, 12vw, 12.5rem);
  height: auto;
}
.masthead nav {
  display: flex;
  gap: clamp(1.2rem, 3.2vw, 3.2rem);
}
.masthead nav a,
.footer-row > a:last-child {
  font-size: var(--small);
  font-weight: 600;
  text-decoration: none;
  padding-block: 0.65rem;
}
.masthead nav a:hover,
.footer-row > a:hover,
.email:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
.hero {
  text-align: center;
  overflow: hidden;
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(3.55rem, 6.3vw, 7rem) var(--gutter) 0;
}
.hero h1 {
  font-size: clamp(3.2rem, 6.25vw, 6.15rem);
  line-height: 0.99;
  letter-spacing: -0.051em;
}
.hero p {
  max-width: 49ch;
  line-height: 1.42;
  color: #e1e3e5;
  margin: 1.35rem auto 1.55rem;
  font-size: var(--body);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.8rem 1.55rem;
  border: 0;
  border-radius: 0.45rem;
  background: var(--blue);
  color: white;
  text-decoration: none;
  font-size: var(--body);
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
  transition:
    background-color 0.16s ease-out,
    transform 0.16s ease-out;
}
.button:hover {
  background: #315aff;
  transform: translateY(-1px);
}
.button:active {
  transform: translateY(0);
}
.button:disabled {
  cursor: wait;
  opacity: 0.7;
}
.paper {
  width: 100%;
  height: clamp(14rem, 24vw, 27rem);
  margin-top: clamp(-1.4rem, -1.4vw, -0.5rem);
  overflow: hidden;
}
.paper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  mask-image: linear-gradient(to bottom, transparent, #000 13%, #000);
}
.work,
.contact {
  padding-block: clamp(3.3rem, 6.7vw, 6.6rem);
}
.work {
  background: var(--surface);
}
.work-grid,
.proof-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(3rem, 7.5vw, 8.5rem);
}
.work-intro h2,
.contact h2,
.experience h2 {
  max-width: 15ch;
}
.work-intro > p,
.contact h2 + p {
  margin-top: 1.3rem;
  max-width: 43ch;
}
.choices {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  margin-top: 2rem;
  max-width: 25rem;
}
.choices button {
  position: relative;
  min-height: 2.95rem;
  cursor: pointer;
  text-align: left;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0.9rem 0.6rem 1.2rem;
  font-size: var(--body);
  line-height: 1.35;
}
.choices button:first-child {
  border-top: 1px solid var(--line);
}
.choices button[aria-selected="true"] {
  font-weight: 700;
  color: var(--ink);
}
.choices button[aria-selected="true"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 25%;
  width: 0.23rem;
  background: #5f7fff;
}
.choices button:hover {
  background: #22262c;
  color: var(--ink);
}
.examples {
  padding: 0.4rem 0.45rem 0.4rem 0;
  align-self: center;
}
.example {
  position: relative;
  margin: 0 0 1.3rem;
  color: #191c21;
  background: #eff0ee;
  padding: clamp(1.5rem, 3.25vw, 3.5rem);
  box-shadow: 0.42rem 0.42rem 0 #1746ff;
}
.example:last-child,
.example[role="tabpanel"] {
  margin-bottom: 0;
}
.example-header {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #b9bdc3;
}
.fold-mark {
  display: block;
  width: 1.6rem;
  height: 1.1rem;
  background: linear-gradient(
    125deg,
    #1643ff 0 40%,
    #001e95 40% 62%,
    #1643ff 62%
  );
  clip-path: polygon(0 100%, 40% 0, 65% 50%, 100% 0, 76% 100%);
}
.example dl {
  margin-top: 1.15rem;
}
.example dt {
  font-size: var(--small);
  font-weight: 700;
  color: #375077;
  margin: 0.98rem 0 0.18rem;
}
.example dd {
  line-height: 1.46;
}
.example q {
  font-style: italic;
}
.experience {
  padding-block: clamp(3.2rem, 6vw, 6rem);
  background: #141619;
}
.experience strong {
  font-weight: 650;
  color: var(--ink);
}
.experience p + p {
  margin-top: 1rem;
}
.contact {
  background: #202329;
}
.email {
  display: inline-block;
  margin: 1.45rem 0 0;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.27em;
  color: var(--ink);
}
form label {
  display: block;
  font-size: var(--small);
  font-weight: 650;
  margin: 0 0 0.45rem;
}
form input,
form textarea {
  display: block;
  width: 100%;
  border: 1px solid #727883;
  background: #141619;
  border-radius: 0.25rem;
  color: var(--ink);
  padding: 0.75rem 0.9rem;
}
form input {
  margin-bottom: 1.1rem;
}
form textarea {
  resize: vertical;
  min-height: 7.6rem;
}
form .button {
  margin-top: 1.1rem;
}
.form-note,
.form-status {
  font-size: var(--small);
  margin-top: 0.65rem;
}
.form-status:empty {
  display: none;
}
.trap {
  position: absolute;
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
}
.form-status {
  color: var(--ink);
}
#verification:not([hidden]) {
  margin-top: 0.8rem;
}
footer {
  background: #101214;
}
.footer-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-block: 1.45rem;
  color: var(--muted);
  font-size: var(--small);
}
.footer-row img {
  display: block;
  width: 4.4rem;
  height: auto;
}
.footer-row > a:last-child {
  margin-left: auto;
}
@media (max-width: 800px) {
  .work-grid,
  .proof-grid,
  .contact-grid {
    gap: 2.5rem;
  }
  .hero h1 {
    font-size: clamp(3.25rem, 6.3vw, 4rem);
  }
}
@media (max-width: 650px) {
  :root {
    --body: 1rem;
    --small: 0.875rem;
  }
  .brand img {
    width: 6.15rem;
  }
  .masthead {
    padding-top: 1.05rem;
  }
  .masthead nav {
    gap: 1.25rem;
  }
  .hero-copy {
    padding: 3.8rem 1.1rem 0;
  }
  .hero h1 {
    max-width: 11.5ch;
    margin: auto;
    font-size: clamp(3.1rem, 11.7vw, 4.45rem);
    line-height: 0.99;
  }
  .hero p {
    max-width: 33ch;
    margin: 1.1rem auto 1.4rem;
  }
  .button {
    min-height: 3rem;
  }
  .paper {
    height: clamp(11.5rem, 38vw, 15rem);
    margin-top: 1.2rem;
  }
  .paper img {
    width: 116%;
    max-width: none;
    margin-left: -8%;
  }
  .work-grid,
  .proof-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.9rem;
  }
  .choices {
    margin-top: 1.5rem;
  }
  .example {
    padding: 1.4rem;
  }
  .work-intro h2,
  .experience h2,
  .contact h2 {
    max-width: 17ch;
  }
  .work-intro > p,
  .contact h2 + p {
    margin-top: 1rem;
  }
  .footer-row {
    gap: 0.8rem;
    flex-wrap: wrap;
  }
  .footer-row img {
    width: 3.4rem;
  }
}
@media (max-width: 350px) {
  .masthead nav {
    gap: 0.75rem;
  }
  .brand img {
    width: 5.2rem;
  }
  .footer-row {
    column-gap: 0.55rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::after,
  *::before {
    animation: none !important;
    transition: none !important;
  }
}
.hero h1 span {
  display: inline-block;
  max-width: 100%;
}
@media (max-width: 650px) {
  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.65rem, 11.3vw, 4.45rem);
  }
}
