:root {
  color-scheme: dark;
  --home-background: #08080a;
  --home-page-texture-strength: 15%;
  --home-row-texture-strength: 10%;
  --home-panel: #18181b;
  --home-text: #c5c5cc;
  --home-muted: #9898a2;
  --home-rule: #2a2a30;
  --home-accent: #aca0cf;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--home-background);
  color: var(--home-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body,
.home-feature,
.home-project-list a,
.home-project-group h3,
.home-background-copy,
.home-career {
  --home-brush-opacity: 0.1;
  isolation: isolate;
  position: relative;
}

.home-project-list a {
  --home-brush-opacity: 0.09;
}

.home-project-group h3,
.home-career {
  --home-brush-opacity: 0.07;
}

body::after,
.home-feature::after,
.home-project-list a::after,
.home-project-group h3::after,
.home-background-copy::after,
.home-career::after {
  background-image: var(--home-brush-image, none);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border-radius: inherit;
  content: '';
  inset: 0;
  opacity: calc(var(--home-row-texture-strength) * var(--home-brush-opacity));
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

body::after {
  opacity: calc(var(--home-page-texture-strength) * 0.11);
}

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

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.1;
}

p {
  color: var(--home-muted);
}

a {
  color: inherit;
  text-decoration-color: #6a6a73;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

a:hover {
  color: var(--home-accent);
  text-decoration-color: currentColor;
}

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

a span[aria-hidden] {
  color: var(--home-accent);
}

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

section,
#experience,
#main-content {
  scroll-margin-top: 2rem;
}

::selection {
  background: var(--home-accent);
  color: var(--home-background);
}

.home-shell {
  margin-inline: auto;
  max-width: 1040px;
  width: calc(100% - 96px);
}

.home-skip-link {
  background: var(--home-text);
  color: var(--home-background);
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: 1rem;
  transform: translateY(-200%);
  z-index: 10;
}

.home-skip-link:focus {
  color: var(--home-background);
  transform: none;
}

.home-header {
  align-items: center;
  border-bottom: 1px solid var(--home-rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  min-height: 64px;
  padding-block: 0.5rem;
}

.home-logo {
  align-items: center;
  display: inline-flex;
  min-height: 44px;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.07em;
  text-decoration: none;
}

.home-navigation,
.home-footer-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.home-navigation a,
.home-footer-links a {
  align-items: center;
  display: inline-flex;
  font-size: 0.875rem;
  gap: 0.4rem;
  min-height: 44px;
}

.home-navigation a {
  color: var(--home-muted);
  text-decoration: none;
}

.home-navigation a:hover {
  color: var(--home-text);
  text-decoration: underline;
}

.home-intro {
  align-items: center;
  display: flex;
  gap: clamp(1.75rem, 4vw, 3rem);
  justify-content: center;
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2rem);
}

.home-portrait {
  border-radius: 14px;
  flex-shrink: 0;
  width: clamp(160px, 20vw, 240px);
}

.home-intro-copy {
  min-width: 0;
}

.home-intro h1 {
  color: #e9e9ee;
  font-size: clamp(2.1rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.home-intro-role {
  color: var(--home-text);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-top: 0.9rem;
}

.home-intro-description {
  color: var(--home-muted);
  font-size: 1.0625rem;
  line-height: 1.5;
  margin-top: 0.55rem;
  max-width: 34rem;
  text-wrap: balance;
}

.home-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.home-intro-actions a {
  align-items: center;
  border: 1px solid #36333e;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 550;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  text-decoration: none;
}

.home-intro-actions a:hover {
  border-color: var(--home-accent);
}

.home-section-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 10px;
}

.home-section-heading h2 {
  color: var(--home-muted);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.4;
}

.home-section-heading .home-text-link {
  align-items: center;
  display: inline-flex;
  font-size: 13px;
  min-height: 44px;
  padding-block: 0;
}

.home-section-intro h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  letter-spacing: -0.035em;
}

.home-text-link {
  color: var(--home-accent);
  display: inline-block;
  font-size: 0.9375rem;
  padding-block: 0.6rem;
  text-decoration-color: currentColor;
}

.home-text-link span {
  display: inline-block;
  margin-left: 0.25rem;
}

.home-selected-work {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-feature {
  background: var(--home-panel);
  border: 1px solid var(--home-rule);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.home-feature-copy {
  min-width: 0;
  padding: 22px 22px 0;
}

.home-feature-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
}

.home-category {
  font-size: 12px;
  line-height: 1.4;
}

.home-feature h3 {
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.home-feature-description {
  font-size: 14px;
  line-height: 1.65;
  margin-top: 13px;
  text-wrap: pretty;
}

.home-feature-link {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  text-decoration: none;
}

.home-feature-link svg,
.home-preview-expand svg {
  fill: none;
  height: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  width: 15px;
}

.home-feature-link svg {
  color: var(--home-accent);
}

.home-feature-media {
  align-items: flex-end;
  display: flex;
  margin-top: auto;
  padding: 22px;
}

.home-feature-preview {
  align-items: center;
  aspect-ratio: 1505 / 900;
  cursor: zoom-in;
  display: grid;
  min-width: 0;
  position: relative;
  width: 100%;
}

.home-feature-preview img {
  border-radius: 6px;
  box-shadow: 0 8px 18px #0005;
  height: auto;
  width: 100%;
}

.home-feature-preview:hover img {
  outline: 1px solid #51475e;
}

.home-feature-preview:focus-visible {
  border-radius: 8px;
  outline-offset: 4px;
}

.home-preview-expand {
  align-items: center;
  background: #18181be6;
  border: 1px solid #36333e;
  border-radius: 5px;
  bottom: 10px;
  display: flex;
  height: 28px;
  justify-content: center;
  opacity: 0;
  position: absolute;
  right: 10px;
  width: 28px;
}

.home-feature-preview:hover .home-preview-expand,
.home-feature-preview:focus-visible .home-preview-expand {
  opacity: 1;
}

.home-section {
  border-top: 1px solid var(--home-rule);
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(180px, 0.75fr) minmax(0, 2fr);
  margin-top: clamp(3rem, 6vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
}

.home-index {
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}

.home-section-intro p {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-top: 1rem;
}

.home-project-group {
  background: var(--home-panel);
  border: 1px solid var(--home-rule);
  border-radius: 13px;
}

.home-project-group + .home-project-group {
  margin-top: 2.5rem;
}

.home-project-group h3 {
  align-items: center;
  background: #1c1c20;
  border-bottom: 1px solid var(--home-rule);
  border-radius: 12px 12px 0 0;
  display: flex;
  font-size: 0.8125rem;
  font-weight: 550;
  gap: 12px;
  letter-spacing: 0.035em;
  line-height: 1.2;
  padding: 17px 22px;
}

.home-project-group h3::before {
  background: var(--home-accent);
  border-radius: 2px;
  content: '';
  flex-shrink: 0;
  height: 13px;
  opacity: 0.6;
  width: 3px;
}

.home-project-list {
  list-style: none;
  padding: 0;
}

.home-project-list li + li {
  border-top: 1px solid var(--home-rule);
}

.home-project-list a {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 42px minmax(0, 1fr) 30px;
  min-height: 108px;
  overflow-wrap: anywhere;
  padding: 20px 22px;
  text-decoration: none;
}

.home-project-list li:last-child a {
  border-radius: 0 0 12px 12px;
}

.home-project-list a:hover,
.home-project-list a:focus-visible {
  background: #201e25;
  color: var(--home-text);
}

.home-project-list a:focus-visible {
  outline-offset: -3px;
}

.home-project-icon,
.home-project-arrow {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.home-project-icon {
  color: var(--home-accent);
  height: 23px;
  justify-self: center;
  width: 23px;
}

.home-project-copy {
  min-width: 0;
  padding-top: 1px;
}

.home-project-name {
  display: block;
  font-size: 1.0625rem;
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.home-project-list p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 7px;
  max-width: 66ch;
  text-wrap: pretty;
}

.home-project-arrow {
  border: 1px solid #36333e;
  border-radius: 50%;
  color: var(--home-muted);
  height: 30px;
  padding: 7px;
  width: 30px;
}

.home-project-list a:hover .home-project-arrow,
.home-project-list a:focus-visible .home-project-arrow {
  color: var(--home-accent);
}

.home-background {
  display: block;
}

.home-background-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

.home-background-heading h2 {
  font-size: 1.5rem;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.home-background-panel {
  background: var(--home-panel);
  border: 1px solid var(--home-rule);
  border-radius: 13px;
}

.home-background-copy {
  border-radius: 12px 12px 0 0;
  padding: 28px 30px;
}

.home-background-copy > p {
  font-size: 15.5px;
  line-height: 1.75;
  text-wrap: pretty;
}

.home-background-copy > p + p {
  margin-top: 18px;
}

.home-background-copy .home-about-lead {
  color: var(--home-text);
  font-size: 19px;
  letter-spacing: -0.015em;
  line-height: 1.5;
}

.home-career {
  align-items: center;
  background: #1b1a1f;
  border-top: 1px solid var(--home-rule);
  border-radius: 0 0 12px 12px;
  color: var(--home-text);
  display: grid;
  gap: 18px;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  padding: 24px 30px;
  text-decoration: none;
}

.home-career-icon,
.home-career-arrow {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.home-career-icon {
  color: var(--home-accent);
  height: 24px;
  justify-self: center;
  width: 24px;
}

.home-career-copy {
  min-width: 0;
}

.home-career h3 {
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.home-career p {
  font-size: 14px;
  line-height: 1.65;
  margin-top: 7px;
  max-width: 72ch;
  text-wrap: pretty;
}

.home-career-label {
  color: var(--home-accent);
  display: inline-block;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 12px;
}

.home-career-arrow {
  border: 1px solid #36333e;
  border-radius: 50%;
  color: var(--home-muted);
  height: 30px;
  padding: 7px;
  width: 30px;
}

.home-career:hover,
.home-career:focus-visible {
  background: #201e25;
  color: var(--home-text);
}

.home-career:focus-visible {
  border-radius: 0 0 12px 12px;
  outline: 2px solid var(--home-accent);
  outline-offset: -3px;
}

.home-career:hover .home-career-arrow,
.home-career:focus-visible .home-career-arrow {
  color: var(--home-accent);
}

.home-footer {
  align-items: center;
  border-top: 1px solid var(--home-rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  margin-top: clamp(3rem, 6vw, 4rem);
  padding-block: 1.5rem 2rem;
}

.home-footer p {
  font-size: 0.8125rem;
}

@media (max-width: 760px) {
  .home-shell {
    width: calc(100% - 48px);
  }

  .home-navigation {
    column-gap: 1.25rem;
  }

  .home-intro {
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 1fr) 64px auto minmax(0, 1fr);
    padding-block: 2rem 1.5rem;
  }

  .home-portrait {
    grid-column: 2;
    grid-row: 1;
    width: 64px;
  }

  .home-intro-copy {
    display: contents;
  }

  .home-intro h1 {
    font-size: clamp(1.5rem, 8vw, 2.1rem);
    grid-column: 3;
    grid-row: 1;
    margin-left: 1rem;
  }

  .home-intro-role,
  .home-intro-description {
    max-width: none;
    text-align: center;
    text-wrap: wrap;
  }

  .home-intro-role {
    font-size: 1rem;
    grid-column: 1 / -1;
    line-height: 1.5;
    margin-top: 1.25rem;
  }

  .home-intro-description {
    font-size: 1rem;
    grid-column: 1 / -1;
  }

  .home-intro-actions {
    display: grid;
    gap: 0.5rem;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.25rem;
  }

  .home-intro-actions a {
    gap: 0.35rem;
    justify-content: center;
    min-height: 44px;
    padding-inline: 0.5rem;
  }

  .home-selected-work {
    gap: 14px;
  }

  .home-feature-copy {
    padding: 20px 20px 0;
  }

  .home-feature-media {
    padding: 20px;
  }

  .home-section {
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr);
  }

  .home-project-group h3 {
    padding: 16px 18px;
  }

  .home-project-list a {
    gap: 10px;
    grid-template-columns: 32px minmax(0, 1fr) 24px;
    min-height: 124px;
    padding: 20px 16px;
  }

  .home-project-name {
    font-size: 1rem;
  }

  .home-project-arrow {
    height: 24px;
    padding: 5px;
    width: 24px;
  }

  .home-background-heading {
    margin-bottom: 18px;
  }

  .home-background-copy {
    padding: 23px 21px;
  }

  .home-background-copy > p {
    font-size: 15px;
    line-height: 1.7;
  }

  .home-background-copy .home-about-lead {
    font-size: 18px;
  }

  .home-career {
    gap: 15px 12px;
    grid-template-columns: minmax(0, 1fr) 26px;
    padding: 23px 21px;
  }

  .home-career-icon {
    grid-column: 1;
    grid-row: 1;
    height: 22px;
    justify-self: start;
    width: 22px;
  }

  .home-career-copy {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .home-career-arrow {
    grid-column: 2;
    grid-row: 1;
    height: 26px;
    padding: 6px;
    width: 26px;
  }
}

@media (max-width: 620px) {
  .home-selected-work {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .home-feature-heading {
    display: block;
  }

  .home-category {
    margin-top: 7px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  a {
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
  }

  .home-preview-expand {
    transition: opacity 0.15s ease;
  }

  .home-project-list a {
    transition: background-color 0.15s ease;
  }

  .home-project-arrow {
    transition: color 0.15s ease;
  }

  .home-intro-actions a {
    transition: border-color 0.15s ease;
  }

  .home-career {
    transition: background-color 0.15s ease;
  }

  .home-career-arrow {
    transition: color 0.15s ease;
  }
}
