:root {
  --ink: #171714;
  --muted: #706e67;
  --paper: #f3f0e8;
  --acid: #d8ff45;
  --blue: #1557d5;
  --radius: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

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

a:focus-visible {
  outline: 2px solid #5b65f2;
  outline-offset: 4px;
}

p,
li,
figcaption {
  text-wrap: pretty;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition-property: transform;
  transition-duration: 180ms;
}

.wordmark:hover {
  transform: rotate(-6deg);
}

.wordmark:active {
  transform: scale(.96);
}

nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.nav-cta {
  gap: 9px;
  padding: 0 18px;
  border-radius: 999px;
  background: white;
  transition-property: transform, box-shadow;
  transition-duration: 180ms;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(23, 23, 20, .08);
}

.nav-cta:active {
  transform: scale(.96);
}

.github-nav {
  width: 44px;
  justify-content: center;
  border-radius: 50%;
  background: rgba(23, 23, 20, .07);
  transition-property: transform, background-color;
  transition-duration: 180ms;
}

.github-nav:hover {
  background: rgba(23, 23, 20, .13);
  transform: translateY(-2px);
}

.github-nav:active {
  transform: scale(.96);
}

.github-nav svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: 72px;
  padding-block: 72px 96px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: #5b9a46;
  box-shadow: 0 0 0 4px rgba(91, 154, 70, .13);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -.055em;
  text-wrap: balance;
}

h1 {
  max-width: 760px;
  font-size: clamp(64px, 7.7vw, 112px);
  font-weight: 750;
  line-height: .9;
}

.accent {
  color: #5b65f2;
}

.intro {
  max-width: 600px;
  margin: 40px 0 0;
  color: #484741;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.5;
  letter-spacing: -.02em;
}

.hero-actions {
  display: flex;
  align-items: center;
  margin-top: 38px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition-property: transform, background-color;
  transition-duration: 180ms;
}

.button:hover {
  background: #34342f;
  transform: translateY(-2px);
}

.button:active,
.project-links a:active {
  transform: scale(.96);
}

.portrait-wrap {
  position: relative;
  width: min(100%, 340px);
  justify-self: end;
  margin: 0;
}

.portrait {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: darken;
}

.proof {
  display: grid;
  grid-template-columns: repeat(3, 140px) 1fr;
  align-items: end;
  gap: 34px;
  padding-block: 34px;
  box-shadow: inset 0 1px rgba(0, 0, 0, .12), inset 0 -1px rgba(0, 0, 0, .12);
}

.proof div {
  display: flex;
  flex-direction: column;
}

.proof strong {
  font-size: 34px;
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
}

.proof span,
.proof p {
  color: var(--muted);
  font-size: 12px;
}

.proof p {
  justify-self: end;
  margin: 0;
  text-align: right;
}

.phone-proof {
  margin-top: 96px;
  padding: 68px;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  box-shadow: 0 24px 70px rgba(23, 23, 20, .12);
}

.phone-proof-head {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 70px;
  align-items: end;
}

.phone-proof .eyebrow {
  color: rgba(255, 255, 255, .46);
}

.phone-proof h2 {
  max-width: 760px;
  font-size: clamp(48px, 5.5vw, 78px);
  font-weight: 720;
  line-height: .96;
}

.phone-proof-head > p {
  max-width: 410px;
  margin: 0 0 4px;
  color: rgba(255, 255, 255, .62);
  font-size: 16px;
  line-height: 1.6;
}

.brand-grid {
  display: grid;
  width: 70%;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 54px auto 0 0;
  padding: 0;
  list-style: none;
}

.brand-card {
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .07);
  color: inherit;
  text-decoration: none;
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
  transition-property: transform, background-color;
  transition-duration: 180ms;
}

.brand-card:hover {
  background: rgba(255, 255, 255, .1);
  transform: translateY(-2px);
}

.brand-card:active {
  transform: scale(.96);
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: block;
  flex: 0 0 auto;
  border-radius: 15px;
  object-fit: cover;
  outline: 1px solid rgba(255, 255, 255, .1);
  outline-offset: -1px;
}

.brand-name {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.brand-name strong {
  font-size: 15px;
}

.brand-name small {
  margin-top: 5px;
  color: rgba(255, 255, 255, .45);
  font-size: 11px;
}

.brand-company {
  margin-left: auto;
  color: rgba(255, 255, 255, .34);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.team-note {
  margin: 20px 2px 0;
  color: rgba(255, 255, 255, .32);
  font-size: 10px;
}

.work {
  padding-block: 112px 150px;
  scroll-margin-top: 24px;
}

.section-heading {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: start;
  margin-bottom: 64px;
}

.section-heading h2 {
  font-size: clamp(50px, 6vw, 84px);
  font-weight: 720;
  line-height: .96;
}

.work-heading {
  display: block;
  max-width: 820px;
  margin-bottom: 46px;
}

.projects-stack {
  position: relative;
}

.stack-project {
  position: sticky;
  top: 24px;
  min-height: 650px;
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 84px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .06),
    0 24px 70px rgba(23, 23, 20, .14);
}

.stack-project:nth-child(2) {
  top: 48px;
}

.stack-project:nth-child(3) {
  top: 72px;
}

.stack-project-copy {
  display: flex;
  flex-direction: column;
  padding: 48px;
}

.stack-project-fit .stack-project-copy {
  background: var(--acid);
  color: #10100d;
}

.stack-project-fret .stack-project-copy {
  background: #f1bd75;
  color: #2c1a10;
}

.stack-project-yht .stack-project-copy {
  background: #dde7fb;
  color: #102246;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  color: currentColor;
  opacity: .55;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-header {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.project-header .project-meta {
  flex: 1;
  padding-top: 5px;
}

.project-logo {
  width: 72px;
  height: 72px;
  display: block;
  flex: 0 0 auto;
  border-radius: 18px;
  object-fit: cover;
  outline: 1px solid rgba(0, 0, 0, .1);
  outline-offset: -1px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, .08),
    0 10px 24px rgba(0, 0, 0, .12);
}

.stack-project-body {
  margin-top: auto;
}

.stack-project h3 {
  font-size: clamp(54px, 5.5vw, 82px);
  line-height: .9;
}

.stack-project-body > p {
  max-width: 500px;
  margin: 28px 0;
  color: currentColor;
  opacity: .68;
  font-size: 16px;
  line-height: 1.55;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(16, 16, 13, .08);
  font-size: 11px;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
}

.project-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 750;
  text-underline-offset: 5px;
  transition-property: transform, opacity;
  transition-duration: 180ms;
}

.project-links a:hover {
  opacity: .62;
}

.store-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.apple-icon {
  fill: currentColor;
}

.play-blue {
  fill: #4285f4;
}

.play-green {
  fill: #34a853;
}

.play-red {
  fill: #ea4335;
}

.play-yellow {
  fill: #fbbc04;
}

.stack-project-media {
  position: relative;
  min-height: 650px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.fit-art {
  background: #f1eeea;
}

.fit-art > img {
  position: relative;
  z-index: 2;
  width: min(58%, 350px);
  max-height: 590px;
  display: block;
  border-radius: 28px;
  object-fit: cover;
  object-position: top;
  outline: 1px solid rgba(0, 0, 0, .1);
  outline-offset: -1px;
  box-shadow: 0 35px 80px rgba(23, 23, 20, .2);
  transform: rotate(2deg);
  transition-property: transform, box-shadow;
  transition-duration: 300ms;
}

.stack-project-fit:hover .fit-art > img {
  box-shadow: 0 42px 90px rgba(23, 23, 20, .24);
  transform: translateY(-5px) rotate(0);
}

.fret-art {
  background: #120d0b;
}

.fret-art > img {
  position: relative;
  z-index: 2;
  width: min(58%, 350px);
  max-height: 590px;
  display: block;
  border-radius: 28px;
  object-fit: cover;
  object-position: top;
  outline: 1px solid rgba(255, 255, 255, .1);
  outline-offset: -1px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, .52);
  transform: rotate(-2deg);
  transition-property: transform, box-shadow;
  transition-duration: 300ms;
}

.stack-project-fret:hover .fret-art > img {
  box-shadow: 0 42px 90px rgba(0, 0, 0, .58);
  transform: translateY(-5px) rotate(0);
}

.yht-art {
  background: linear-gradient(150deg, #f8fbff, #b6cdf6);
}

.yht-art > img {
  position: relative;
  z-index: 2;
  width: min(52%, 300px);
  border-radius: 28%;
  outline: 1px solid rgba(0, 0, 0, .1);
  outline-offset: -1px;
  box-shadow: 0 35px 80px rgba(15, 56, 129, .24);
  transform: rotate(-4deg);
}

.route-line {
  position: absolute;
  inset: 16% -14% auto;
  height: 140px;
  border-top: 2px dashed rgba(21, 87, 213, .22);
  transform: rotate(-12deg);
}

.route-line span {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 3px 12px rgba(15, 56, 129, .3);
}

.route-line span:first-child {
  top: -8px;
  left: 20%;
}

.route-line span:last-child {
  top: -8px;
  right: 20%;
}

.alert-card {
  position: absolute;
  z-index: 3;
  bottom: 35px;
  left: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-radius: 17px;
  background: rgba(255, 255, 255, .92);
  color: #102246;
  box-shadow: 0 14px 40px rgba(15, 56, 129, .22);
}

.alert-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #4cab6d;
  color: white;
  font-size: 13px;
}

.alert-card > span:last-child {
  display: flex;
  flex-direction: column;
}

.alert-card b {
  font-size: 12px;
}

.alert-card small {
  margin-top: 3px;
  color: #6a7a99;
  font-size: 10px;
}

.about {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  padding-block: 0 150px;
}

.about .section-heading {
  display: block;
}

.about .section-heading h2 {
  max-width: 430px;
  font-size: clamp(46px, 5vw, 74px);
}

.about-copy > p {
  margin: 0 0 72px;
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.35;
  letter-spacing: -.035em;
}

.experience {
  --timeline-axis: 6px;
  --timeline-gutter: 30px;
  position: relative;
  margin: 0;
  padding: 0 0 0 var(--timeline-gutter);
  list-style: none;
}

.experience::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: var(--timeline-axis);
  width: 1px;
  transform: translateX(-50%);
  background: rgba(23, 23, 20, .18);
}

.experience li {
  position: relative;
  display: grid;
  grid-template-columns: 130px 1fr 1fr;
  gap: 20px;
  align-items: center;
  padding-block: 20px;
  box-shadow: inset 0 -1px rgba(0, 0, 0, .1);
}

.experience li:first-child {
  box-shadow: inset 0 1px rgba(0, 0, 0, .1), inset 0 -1px rgba(0, 0, 0, .1);
}

.experience li::before {
  content: "";
  position: absolute;
  left: calc(var(--timeline-axis) - var(--timeline-gutter));
  width: 11px;
  height: 11px;
  transform: translateX(-50%);
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: #78766f;
  box-shadow: 0 0 0 1px rgba(23, 23, 20, .14);
}

.experience li:first-child::before {
  background: #5b9a46;
}

.experience span,
.experience small {
  color: var(--muted);
  font-size: 12px;
}

.experience strong {
  font-size: 14px;
}

.contact {
  padding: 90px;
  border-radius: var(--radius);
  background: var(--acid);
  text-align: center;
}

.contact h2 {
  font-size: clamp(60px, 8vw, 110px);
  line-height: .94;
}

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

.contact > a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 38px;
  font-size: 17px;
  font-weight: 750;
  text-underline-offset: 7px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding-block: 38px;
  color: var(--muted);
  font-size: 11px;
}

.site-footer a {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 28px, 680px);
  }

  .site-header {
    height: 76px;
  }

  nav > a:not(.nav-cta):not(.github-nav) {
    display: none;
  }

  nav {
    gap: 10px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 70px;
    padding-block: 76px 90px;
  }

  .portrait-wrap {
    width: min(72%, 300px);
    justify-self: center;
  }

  .proof {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .proof p {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 12px;
    text-align: left;
  }

  .phone-proof {
    margin-top: 70px;
    padding: 48px 34px;
  }

  .phone-proof-head {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .brand-grid {
    width: 100%;
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .work {
    padding-block: 100px;
  }

  .section-heading,
  .about {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .stack-project {
    position: relative;
    top: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    margin-bottom: 28px;
  }

  .stack-project:nth-child(2),
  .stack-project:nth-child(3) {
    top: auto;
  }

  .stack-project-copy {
    min-height: 520px;
    padding: 38px 30px;
  }

  .stack-project-media {
    min-height: 460px;
  }

  .fit-art > img {
    width: min(58%, 330px);
    max-height: 420px;
  }

  .fret-art > img {
    width: min(58%, 330px);
    max-height: 420px;
  }

  .about {
    padding-bottom: 100px;
  }

  .about-copy > p {
    margin-bottom: 50px;
  }

  .contact {
    padding: 70px 24px;
  }
}

@media (max-width: 640px) {
  .hero {
    display: block;
    padding-block: 72px 92px;
  }

  .portrait-wrap {
    display: none;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(56px, 18vw, 82px);
  }

  .intro {
    font-size: 18px;
  }

  .proof strong {
    font-size: 27px;
  }

  .proof span {
    font-size: 10px;
  }

  .phone-proof {
    padding: 40px 22px;
  }

  .brand-company {
    display: none;
  }

  .stack-project-copy {
    min-height: 500px;
    padding: 30px 22px;
  }

  .stack-project h3 {
    font-size: 50px;
  }

  .project-logo {
    width: 60px;
    height: 60px;
    border-radius: 15px;
  }

  .stack-project-body > p {
    font-size: 15px;
  }

  .stack-project-media {
    min-height: 360px;
  }

  .fit-art > img {
    width: min(62%, 245px);
    max-height: 330px;
    border-radius: 22px;
  }

  .fret-art > img {
    width: min(62%, 245px);
    max-height: 330px;
    border-radius: 22px;
  }

  .project-links {
    gap: 14px 22px;
  }

  .experience li {
    grid-template-columns: 100px 1fr;
  }

  .experience small {
    grid-column: 2;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 16px 28px;
  }
}

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

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