:root {
  color-scheme: dark;
  --background: #0A0A0A;
  --surface: #141414;
  --surface-raised: #191919;
  --text: #F2F2F2;
  --muted: #898989;
  --border: #262626;
  --accent: #E5A93C;
  --font-sans: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
}

body:has(dialog[open]) {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

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

.page-shell {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}

.accent {
  color: var(--accent);
}

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

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 max(32px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgb(255 255 255 / 6%);
  background: rgb(10 10 10 / 88%);
  backdrop-filter: blur(16px);
}

.wordmark {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.08em;
}

.wordmark span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  gap: 34px;
  margin-left: 90px;
  color: #b6b6b6;
  font-size: 13px;
}

.main-nav a,
.availability,
.footer-bottom a {
  transition: color .2s ease;
}

.main-nav a:hover,
.footer-bottom a:hover {
  color: var(--accent);
}

.availability {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #b6b6b6;
  font-size: 12px;
}

.availability:hover {
  color: var(--text);
}

.availability-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #71b67b;
  box-shadow: 0 0 12px rgb(113 182 123 / 45%);
}

.hero {
  position: relative;
  display: grid;
  min-height: 610px;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .7fr);
  grid-template-areas: "eyebrow portrait" "title portrait" "copy portrait" "actions portrait" "meta portrait";
  align-content: center;
  align-items: center;
  column-gap: 56px;
  padding-top: 30px;
  padding-bottom: 100px;
}

.hero>.eyebrow {
  grid-area: eyebrow;
}

.hero h1 {
  grid-area: title;
}

.hero-copy {
  grid-area: copy;
}

.hero-actions {
  grid-area: actions;
}

.hero-meta {
  grid-area: meta;
}

.hero-portrait {
  grid-area: portrait;
  width: min(100%, 190px);
  justify-self: end;
  align-self: start;
  margin: 36px 0 0;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid #39342a;
  background: radial-gradient(ellipse at 50% 34%, #25221d 0, #181715 37%, #111 74%);
}

.portrait-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-frame::after {
  position: absolute;
  inset: 12px;
  border: 1px solid rgb(229 169 60 / 20%);
  content: "";
  pointer-events: none;
}

.portrait-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.portrait-silhouette {
  position: relative;
  width: 58%;
  height: 63%;
  margin-top: 20px;
  opacity: .58;
}

.portrait-silhouette::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 34%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 1px solid #766a54;
  border-radius: 50%;
  background: linear-gradient(145deg, #39352d, #1d1b18);
  content: "";
}

.portrait-silhouette::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 58%;
  border: 1px solid #766a54;
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 68% 68% 0 0;
  background: linear-gradient(145deg, #39352d, #1d1b18);
  content: "";
}

.portrait-label {
  position: absolute;
  z-index: 1;
  bottom: 25px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .16em;
}

.hero-portrait figcaption {
  margin-top: 10px;
  color: #777;
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: right;
}

.hero-portrait code {
  color: #aaa;
  font: inherit;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .13em;
}

.eyebrow-line {
  display: inline-block;
  width: 24px;
  height: 1px;
  margin: 0 9px 3px 0;
  background: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  margin-bottom: 23px;
  font-size: clamp(44px, 6.4vw, 76px);
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: 1.03;
}

.hero-copy {
  max-width: 575px;
  margin-bottom: 31px;
  color: #a4a4a4;
  font-size: 16px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #15110a;
}

.button-primary:hover {
  border-color: #f0bc58;
  background: #f0bc58;
}

.button-secondary:hover {
  border-color: #626262;
  background: var(--surface);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 54px;
  color: #666;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
}

.scroll-cue {
  position: absolute;
  right: 0;
  bottom: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #777;
  font-size: 11px;
}

.scroll-cue span {
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.projects-section {
  padding-top: 46px;
  padding-bottom: 112px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 33px;
}

.section-heading .eyebrow {
  margin-bottom: 10px;
}

.section-heading h2,
.contact-main h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: 1.08;
}

.section-intro {
  max-width: 360px;
  margin: 0 0 4px;
  color: #888;
  font-size: 13px;
  line-height: 1.8;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: transparent;
  color: #929292;
  cursor: pointer;
  font-size: 11px;
  transition: color .2s, border-color .2s, background .2s;
}

.filter-button:hover {
  border-color: #575757;
  color: var(--text);
}

.filter-button.is-active {
  border-color: var(--accent);
  background: rgb(229 169 60 / 8%);
  color: var(--accent);
}

.filter-count {
  color: #666;
  font-family: var(--font-mono);
  font-size: 9px;
}

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

.project-card {
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: #4a4a4a;
}

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

.project-art {
  position: relative;
  display: grid;
  min-height: 220px;
  overflow: hidden;
  place-items: center;
  isolation: isolate;
  background: var(--art-bg, #161616);
}

.project-art::before,
.project-art::after {
  position: absolute;
  z-index: -1;
  content: "";
}

.project-art::before {
  width: 220px;
  height: 220px;
  border: 1px solid rgb(255 255 255 / 17%);
  border-radius: 50%;
  box-shadow: 0 0 0 25px rgb(255 255 255 / 2%), 0 0 0 55px rgb(255 255 255 / 2%);
}

.project-art::after {
  inset: 0;
  background: linear-gradient(135deg, rgb(255 255 255 / 5%), transparent 55%, rgb(0 0 0 / 30%));
}

.project-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-glyph {
  z-index: 1;
  color: var(--art-color, var(--accent));
  font-family: var(--font-mono);
  font-size: clamp(54px, 9vw, 88px);
  font-weight: 400;
  letter-spacing: -.12em;
  text-shadow: 0 0 45px currentColor;
}

.art-label {
  position: absolute;
  z-index: 1;
  right: 15px;
  bottom: 12px;
  color: rgb(255 255 255 / 45%);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-shadow: 0 1px 5px rgb(0 0 0 / 80%);
}

.project-info {
  padding: 19px 20px 20px;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: #858585;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.project-category {
  color: var(--accent);
}

.project-info h3 {
  margin-bottom: 7px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.04em;
}

.project-summary {
  min-height: 48px;
  margin-bottom: 17px;
  color: #999;
  font-size: 12px;
  line-height: 1.8;
}

.project-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 13px;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stack-tag {
  color: #777;
  font-family: var(--font-mono);
  font-size: 9px;
}

.case-link {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 11px;
}

.case-link span {
  padding-left: 5px;
  color: var(--accent);
}

.case-link:hover {
  color: var(--accent);
}

.approach-section {
  border-block: 1px solid var(--border);
  background: #0e0e0e;
  padding: 84px 0 92px;
}

.approach-heading {
  margin-bottom: 42px;
}

.approach-heading .section-intro {
  max-width: 345px;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.approach-card {
  min-height: 285px;
  padding: 23px 21px;
  border: 1px solid var(--border);
  background: #111;
}

.approach-index {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
}

.approach-card h3 {
  margin: 24px 0 10px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.035em;
}

.approach-card p {
  min-height: 68px;
  margin-bottom: 18px;
  color: #888;
  font-size: 11px;
  line-height: 1.8;
}

.approach-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: #aaa;
  font-size: 10px;
  list-style: none;
}

.approach-card li::before {
  padding-right: 8px;
  color: var(--accent);
  content: "\2014";
}

.contact-section {
  padding-top: 92px;
}

.contact-section>.eyebrow {
  margin-bottom: 22px;
}

.contact-main {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  padding-bottom: 75px;
}

.contact-main h2 {
  font-size: clamp(36px, 5.4vw, 62px);
}

.contact-actions {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding-bottom: 7px;
}

.email-link {
  font-size: 15px;
}

.email-link span {
  padding-left: 8px;
  color: var(--accent);
}

.copy-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #777;
  cursor: pointer;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copy-button:hover {
  color: var(--accent);
}

.copy-status {
  min-height: 17px;
  color: var(--accent);
  font-size: 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--border);
  padding: 20px 0 24px;
  color: #666;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .06em;
}

.case-modal {
  width: min(720px, calc(100% - 32px));
  max-height: min(86vh, 850px);
  overflow: auto;
  padding: 0;
  border: 1px solid #393939;
  background: #111;
  color: var(--text);
}

.case-modal::backdrop {
  background: rgb(0 0 0 / 78%);
  backdrop-filter: blur(4px);
}

.modal-header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgb(17 17 17 / 94%);
  padding: 17px 24px;
}

.modal-header .eyebrow {
  margin: 0;
}

.modal-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  background: transparent;
  color: #aaa;
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
}

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

.modal-content {
  padding: 30px 32px 38px;
}

.modal-content h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: 1.1;
}

.modal-role {
  margin-bottom: 24px;
  color: #888;
  font-family: var(--font-mono);
  font-size: 10px;
}

.modal-lead {
  margin-bottom: 28px;
  color: #bbb;
  font-size: 14px;
  line-height: 1.8;
}

.case-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.case-details section {
  border-top: 1px solid var(--border);
  padding-top: 13px;
}

.case-details h3 {
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case-details p {
  margin: 0;
  color: #999;
  font-size: 12px;
  line-height: 1.8;
}

.mechanics-list {
  margin: 0;
  padding-left: 16px;
  color: #999;
  font-size: 12px;
}

.mechanics-list li+li {
  margin-top: 5px;
}

.code-block {
  overflow-x: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  background: #090909;
  color: #d3b77f;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.7;
  white-space: pre;
}

.modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}

.modal-links a {
  color: var(--text);
  font-size: 11px;
}

.modal-links a:hover {
  color: var(--accent);
}

@media (max-width: 700px) {
  .page-shell {
    width: min(100% - 40px, 540px);
  }

  .site-header {
    height: 64px;
    padding-inline: 20px;
  }

  .main-nav {
    gap: 17px;
    margin-left: 0;
    font-size: 11px;
  }

  .availability {
    display: none;
  }

  .hero {
    min-height: 560px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "eyebrow" "title" "copy" "actions" "portrait" "meta";
    padding-bottom: 105px;
  }

  .hero-portrait {
    width: min(56vw, 220px);
    justify-self: start;
    margin-top: 22px;
  }

  .hero-portrait figcaption {
    text-align: left;
  }

  .hero h1 {
    font-size: clamp(45px, 11vw, 69px);
  }

  .hero-copy {
    font-size: 14px;
  }

  .hero-meta {
    gap: 11px 18px;
    margin-top: 40px;
    font-size: 8px;
  }

  .scroll-cue {
    bottom: 40px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 15px;
  }

  .section-intro {
    max-width: 470px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-art {
    min-height: 205px;
  }

  .approach-grid {
    grid-template-columns: 1fr;
  }

  .approach-card {
    min-height: auto;
  }

  .approach-card p {
    min-height: 0;
  }

  .contact-main {
    align-items: start;
    flex-direction: column;
    padding-bottom: 52px;
  }

  .footer-bottom {
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .main-nav {
    gap: 12px;
  }

  .main-nav a {
    font-size: 10px;
  }

  .hero-actions {
    gap: 8px;
  }

  .button {
    min-height: 41px;
    gap: 9px;
    padding-inline: 11px;
    font-size: 10px;
  }

  .filter-list {
    gap: 6px;
  }

  .filter-button {
    padding: 7px 9px;
    font-size: 10px;
  }

  .modal-content {
    padding-inline: 20px;
  }

  .case-details {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}