:root {
  color-scheme: dark;
  --bg: #0d0d0d;
  --surface: #171717;
  --surface-hover: #1d1d1d;
  --text: #f4f4f4;
  --muted: #8f8f8f;
  --faint: #606060;
  --line: #242424;
  --blue: #3f8df6;
  --blue-hover: #66a5ff;
  --green: #58c98b;
  --font-body: "Inter", "Inter Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shell: 640px;
  --content: 608px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-padding-top: 24px;
  background-color: var(--bg);
  overscroll-behavior-y: none;
  scrollbar-color: #303030 var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-width: 320px;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  color: var(--muted);
  background-color: var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-header,
.portfolio,
.site-footer {
  background-color: transparent;
}

button, input, textarea {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

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

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

[hidden] {
  display: none !important;
}

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

ol, ul {
  padding: 0;
  list-style: none;
}

.shell {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding-inline: 16px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  color: var(--bg);
  background: var(--text);
  border-radius: 6px;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  min-height: 56px;
  padding-top: 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  column-gap: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--faint);
}

.est-link,
.site-nav a,
.lang-switch button {
  transition: color 160ms ease;
}

.est-link:hover,
.site-nav a:hover,
.lang-switch button:hover,
.lang-switch button[aria-pressed="true"] {
  color: var(--text);
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 17px;
  white-space: nowrap;
}

.lang-switch {
  display: flex;
  gap: 4px;
  white-space: nowrap;
}

.lang-switch button {
  padding: 0;
  border: 0;
  color: var(--faint);
  background: none;
  cursor: pointer;
}

.portfolio {
  padding-top: 104px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.profile-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  object-position: 50% 38%;
  border-radius: 25px 25px 28px 22px;
  filter: saturate(.88) contrast(.98);
}

.hero-identity {
  margin-top: 14px;
}

.hero h1,
.hero-role {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.hero h1 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
}

.verified-badge {
  display: block;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  color: #1d9bf0;
  font-size: 17px;
  line-height: 1;
}

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

.hero-signals {
  margin-top: 18px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
}

.hero-intro {
  max-width: 590px;
  margin-top: 20px;
}

.copy-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 27px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: none;
  cursor: pointer;
}

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

kbd {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b7b7b7;
  background: #242424;
  border: 1px solid #303030;
  border-radius: 6px;
  box-shadow: inset 0 -1px 0 #151515;
  font-family: var(--font-mono);
  font-size: 12px;
}

.section {
  margin-top: 64px;
  scroll-margin-top: 24px;
}

.experience-section {
  margin-top: 32px;
}

.eyebrow {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0;
}

.section-intro,
.capabilities-copy {
  margin-top: 16px;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

.experience-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
}

.experience-date {
  padding-top: 2px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
}

.experience-main {
  min-width: 0;
}

.experience-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--text);
  font-size: 16px;
  line-height: 24px;
}

.experience-heading strong {
  font-weight: 500;
}

.company-mark {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  object-fit: contain;
  border-radius: 4px;
}

.company-mark.is-inverted {
  filter: invert(1);
}

.experience-description {
  margin-top: 2px;
  color: var(--muted);
}

.capabilities-section {
  margin-top: 40px;
}

.project-showcase {
  position: relative;
  height: 302px;
  margin-top: 30px;
  isolation: isolate;
}

.showcase-shot {
  position: absolute;
  top: 42px;
  left: 50%;
  width: 300px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  background: #151515;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .42);
  transform-origin: 50% 100%;
  transition: transform 360ms var(--ease), filter 240ms ease;
}

.showcase-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-shot-1 {
  z-index: 1;
  transform: translateX(-94%) rotate(-2deg) translateY(10px);
}

.showcase-shot-2 {
  z-index: 2;
  transform: translateX(-68%) rotate(-1deg);
}

.showcase-shot-3 {
  z-index: 4;
  transform: translateX(-32%) rotate(.5deg) translateY(18px);
}

.showcase-shot-4 {
  z-index: 3;
  transform: translateX(5%) rotate(2deg) translateY(9px);
}

.project-showcase:hover .showcase-shot-1 {
  transform: translateX(-100%) rotate(-3deg);
}

.project-showcase:hover .showcase-shot-2 {
  transform: translateX(-71%) rotate(-1.5deg) translateY(-5px);
}

.project-showcase:hover .showcase-shot-3 {
  transform: translateX(-30%) translateY(10px);
}

.project-showcase:hover .showcase-shot-4 {
  transform: translateX(11%) rotate(3deg);
}

.stack-section {
  margin-top: 8px;
}

.stack-viewport {
  overflow: hidden;
}

.stack-list {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0;
  margin-top: 18px;
}

.stack-item-duplicate {
  display: none;
}

.stack-link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.stack-link img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.stack-link[aria-label="Bash"] img {
  filter: invert(1);
  opacity: .78;
}

.stack-link:hover,
.stack-link:focus-visible {
  opacity: .76;
  transform: translateY(-2px);
}

.projects-section {
  margin-top: 64px;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.project-item a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 14px;
  border-radius: 10px;
  outline-offset: 5px;
}

.project-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #d6d6d6;
}

.project-icon i {
  display: block;
  font-size: 20px;
  line-height: 1;
}

.project-item:nth-child(1) .project-icon { color: #71a7f7; }
.project-item:nth-child(2) .project-icon { color: #5bbfc5; }
.project-item:nth-child(3) .project-icon { color: #a78bfa; }
.project-item:nth-child(4) .project-icon { color: #e98aa4; }
.project-item:nth-child(5) .project-icon { color: #d8ab66; }

.project-copy {
  min-width: 0;
}

.project-title {
  display: block;
  color: var(--text);
  line-height: 22px;
  transition: color 160ms ease;
}

.project-description,
.project-stack {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.project-stack {
  margin-top: 2px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 15px;
}

.external-link-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  justify-self: end;
  color: var(--faint);
}

.external-link-icon i {
  display: block;
  font-size: 11px;
  line-height: 1;
}

.project-arrow {
  transition: color 160ms ease, transform 160ms ease;
}

.project-item a:hover .project-title,
.project-item a:hover .project-arrow {
  color: var(--text);
}

.project-item a:hover .project-arrow {
  transform: translate(2px, -2px);
}

.credential-list,
.education-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.credential-item a,
.credential-item > div,
.education-item a,
.education-item > div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
}

.credential-date,
.education-date,
.credential-meta {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
}

.credential-title,
.education-title {
  color: var(--text);
  font-size: 15px;
  line-height: 22px;
}

.credential-issuer,
.education-school {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 19px;
}

.credential-meta {
  align-self: center;
  white-space: nowrap;
  transition: color 160ms ease, transform 160ms ease;
}

.credential-item a:hover .credential-title,
.education-item a:hover .education-title {
  color: var(--blue-hover);
}

.credential-item a:hover .credential-meta,
.education-item a:hover .credential-meta {
  color: var(--text);
  transform: translate(1px, -1px);
}

.workshop-section {
  margin-top: 72px;
}

.workshop-gallery {
  position: relative;
  height: 334px;
  margin-top: 28px;
}

.workshop-print {
  position: absolute;
  width: 300px;
  aspect-ratio: 16 / 10;
  padding: 4px;
  overflow: hidden;
  border: 1px solid #9d9d9d;
  border-radius: 10px;
  background: #e7e7e7;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
  transition: z-index 0s, transform 280ms var(--ease);
}

.workshop-print img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.workshop-print-1 { top: 15px; left: -8px; transform: rotate(-4deg); z-index: 1; }
.workshop-print-2 { top: 0; right: -7px; transform: rotate(3deg); z-index: 2; }
.workshop-print-3 { bottom: 2px; left: 5px; transform: rotate(3deg); z-index: 3; }
.workshop-print-4 { right: 2px; bottom: 0; transform: rotate(-2deg); z-index: 4; }

.workshop-print:hover,
.workshop-print:focus-visible {
  z-index: 8;
  transform: rotate(0) translateY(-6px) scale(1.025);
}

.workshop-caption {
  margin-top: 14px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
}

.contact-section {
  margin-top: 96px;
}

.conversation {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 28px;
}

.message,
.email-card {
  max-width: 306px;
  padding: 9px 12px;
  border: 0;
  border-radius: 14px;
  color: #ededed;
  background: var(--surface);
  font-size: 15px;
  line-height: 21px;
}

.message.incoming,
.email-card.incoming {
  border-bottom-left-radius: 5px;
}

.message.outgoing {
  align-self: flex-end;
  width: fit-content;
  max-width: min(360px, 100%);
  margin-left: auto;
  color: #fff;
  background: #2f82e9;
  border-bottom-right-radius: 5px;
  text-align: right;
}

.email-card {
  width: 306px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 160ms ease;
}

.email-card:hover {
  background: var(--surface-hover);
}

.email-action {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.email-action i {
  width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  flex: 0 0 13px;
  font-size: 11px;
  line-height: 1;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.contact-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #111;
  font-size: 14px;
  transition: border-color 160ms ease, background 160ms ease;
}

.contact-links a:hover {
  border-color: #383838;
  background: var(--surface);
}

.contact-links i {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 14px;
  font-size: 13px;
  line-height: 1;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}

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

.contact-form label {
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  color: var(--text);
  background: var(--surface);
  transition: border-color 160ms ease, background 160ms ease;
}

.contact-form input {
  height: 44px;
  padding: 0 13px;
}

.contact-form textarea {
  min-height: 112px;
  padding: 12px 13px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #6c6c6c;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #555;
  background: #1a1a1a;
}

.submit-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #101010;
  cursor: pointer;
  font-size: 14px;
  transition: border-color 160ms ease, background 160ms ease;
}

.submit-icon {
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 14px;
}

.submit-icon i {
  display: block;
  font-size: 11px;
  line-height: 1;
  transform: translateY(-.5px);
}

.submit-button:hover {
  border-color: #3b3b3b;
  background: var(--surface);
}

.submit-button:disabled {
  opacity: .6;
  cursor: wait;
}

.form-status {
  min-height: 20px;
  color: var(--green);
  font-size: 13px;
}

.site-footer {
  min-height: 220px;
  padding-top: 32px;
  padding-bottom: 40px;
  color: var(--faint);
}

.footer-signature-mark {
  min-height: 124px;
  display: grid;
  place-items: center;
  overflow: visible;
}

.signature-svg {
  display: block;
  width: min(220px, 68vw);
  height: auto;
  overflow: visible;
  transform: rotate(-3deg);
}

.signature-stroke {
  fill: none;
  stroke: #b8b8b8;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
  will-change: stroke-dashoffset;
}

.signature-stroke-dot {
  stroke-width: 2.8;
}

.js .footer-signature-mark.is-visible .signature-stroke-main {
  animation: signature-draw 2.5s cubic-bezier(.4, 0, .18, 1) 160ms forwards;
}

.js .footer-signature-mark.is-visible .signature-stroke-dot {
  animation: signature-draw .16s ease-out 1.58s forwards;
}

.footer-note {
  margin-top: 28px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  line-height: 20px;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
  text-transform: uppercase;
}

.footer-signature,
.footer-time {
  display: inline-flex;
  align-items: center;
}

.footer-signature {
  gap: 9px;
}

.footer-signature img {
  width: 27px;
  height: 27px;
  border: 1px solid #303030;
  border-radius: 8px;
  object-fit: cover;
}

.footer-time {
  gap: 7px;
}

.footer-time i {
  font-size: 12px;
}

.footer-credit {
  margin-top: 10px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 16px;
}

.footer-credit a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: #3d3d3d;
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.footer-credit a:hover {
  color: var(--text);
  text-decoration-color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  max-width: calc(100vw - 32px);
  padding: 9px 13px;
  color: var(--text);
  background: #202020;
  border: 1px solid #333;
  border-radius: 9px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .4);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms var(--ease);
  font-size: 14px;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--blue-hover);
  outline-offset: 4px;
}

.js .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 700px) {
  .site-header {
    min-height: 88px;
    grid-template-columns: auto 1fr;
    row-gap: 12px;
    column-gap: 18px;
  }

  .site-nav {
    gap: 12px;
  }

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

  .lang-switch {
    grid-column: 2;
    justify-self: end;
  }

  .portfolio {
    padding-top: 76px;
  }

  .hero-intro {
    max-width: none;
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .experience-list {
    gap: 34px;
  }

  .project-showcase {
    height: 264px;
    margin-inline: -16px;
    overflow: hidden;
  }

  .showcase-shot {
    width: 250px;
    top: 48px;
  }

  .showcase-shot-1 { transform: translateX(-93%) rotate(-2deg); }
  .showcase-shot-2 { transform: translateX(-68%) rotate(-1deg); }
  .showcase-shot-3 { transform: translateX(-34%) rotate(.5deg) translateY(18px); }
  .showcase-shot-4 { transform: translateX(1%) rotate(2deg); }

  .projects-section {
    margin-top: 56px;
  }

  .stack-viewport {
    margin-inline: -16px;
    padding-inline: 16px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7.5%, #000 92.5%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 7.5%, #000 92.5%, transparent 100%);
  }

  .stack-list {
    width: max-content;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 24px;
    animation: stack-marquee 24s linear infinite;
    will-change: transform;
  }

  .stack-item-duplicate {
    display: list-item;
  }

  .stack-link {
    width: 40px;
    height: 40px;
  }

  .stack-link img {
    width: 40px;
    height: 40px;
  }

  .project-item a {
    grid-template-columns: 42px minmax(0, 1fr) 16px;
    gap: 12px;
  }

  .project-description {
    font-size: 13px;
    line-height: 19px;
  }

  .credential-item a,
  .credential-item > div,
  .education-item a,
  .education-item > div {
    grid-template-columns: 1fr auto;
    gap: 3px 12px;
  }

  .credential-date,
  .education-date {
    grid-column: 1 / -1;
  }

  .credential-meta {
    grid-column: 2;
    grid-row: 2;
  }

  .workshop-gallery {
    height: 430px;
    margin-inline: -4px;
  }

  .workshop-print {
    width: calc(50% + 18px);
  }

  .workshop-print-1 { left: 0; top: 18px; }
  .workshop-print-2 { right: 0; top: 0; }
  .workshop-print-3 { left: 0; bottom: 24px; }
  .workshop-print-4 { right: 0; bottom: 4px; }

  .form-row {
    grid-template-columns: 1fr;
  }

  .message,
  .email-card {
    max-width: 84%;
  }

  .email-card {
    width: 84%;
  }

  .contact-links a {
    flex: 1 1 auto;
    justify-content: center;
  }

  .footer-meta {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }
}

@keyframes stack-marquee {
  to {
    transform: translateX(calc(-50% - 12px));
  }
}

@keyframes signature-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 430px) {
  .site-header {
    padding-top: 24px;
    row-gap: 10px;
  }

  .site-nav {
    gap: 9px;
  }

  .site-nav a {
    font-size: 9px;
  }

  .portfolio {
    padding-top: 68px;
  }

  .profile-image {
    width: 76px;
    height: 76px;
  }

  .hero-signals {
    font-size: 10px;
  }
}

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

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .stack-list {
    width: auto;
    flex-wrap: wrap;
    animation: none;
    will-change: auto;
  }

  .stack-item-duplicate {
    display: none;
  }

  .signature-stroke {
    stroke-dashoffset: 0;
    animation: none !important;
  }

}
