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

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; }

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

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

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

nav { display: flex; align-items: center; gap: 34px; }
nav a { font-size: 14px; font-weight: 650; text-decoration: none; }
.nav-cta { padding: 13px 18px; border-radius: 999px; background: white; }
.github-nav {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: 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;
  text-wrap: pretty;
}

.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;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition-property: transform, background-color;
  transition-duration: 180ms;
}

.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #34342f; transform: translateY(-2px); }
.button:active, .nav-cta:active, .project-links a:active { transform: scale(.96); }

.portrait-wrap { position: relative; width: min(78%, 300px); justify-self: end; margin: 0; }
.portrait-accent { position: absolute; inset: -14px 14px 38px -14px; border-radius: 48% 48% 44% 44%; background: var(--acid); transform: rotate(-4deg); }
.portrait {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: .82;
  object-fit: cover;
  object-position: 50% 25%;
  border-radius: 46% 46% 42% 42%;
  outline: 1px solid rgba(0, 0, 0, .1);
}
.portrait-wrap figcaption { position: relative; margin: 18px 4px 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

.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); line-height: .96; font-weight: 720; }
.phone-proof-head > p { max-width: 410px; margin: 0 0 4px; color: rgba(255,255,255,.62); font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0; margin: 54px 0 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 { display: block; width: 58px; height: 58px; flex: 0 0 auto; border-radius: 15px; object-fit: cover; outline: 1px solid rgba(255,255,255,.1); }
.brand-name { display: flex; min-width: 0; 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; }
.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); line-height: .96; font-weight: 720; }
.work-heading { display: block; max-width: 820px; margin-bottom: 46px; }
.project#work { scroll-margin-top: 24px; }

.project {
  min-height: 590px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: var(--radius);
  margin-top: 28px;
}
.project-dark { background: #0a0a12; color: white; }
.project-light { background: #dde7fb; color: #102246; }
.project-copy { display: flex; flex-direction: column; padding: 54px; }
.project-meta { display: flex; justify-content: space-between; color: currentColor; opacity: .55; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.project h3 { margin-top: auto; font-size: clamp(50px, 5vw, 78px); line-height: .95; }
.project-copy > p { max-width: 520px; margin: 26px 0; color: currentColor; opacity: .72; font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.tags li { padding: 8px 11px; border-radius: 999px; background: rgba(255,255,255,.11); font-size: 11px; }
.project-light .tags li { background: rgba(16,34,70,.08); }
.project-links { display: flex; gap: 24px; margin-top: 38px; }
.project-links a { display: inline-flex; min-height: 42px; 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: .65; }
.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; }

.project-art { position: relative; min-height: 590px; display: grid; place-items: center; overflow: hidden; }
.fit-art { background: radial-gradient(circle at 70% 26%, #32266d, transparent 36%), #17152c; }
.phone-demo {
  position: relative;
  z-index: 2;
  width: min(44%, 238px);
  padding: 6px;
  overflow: hidden;
  border-radius: 24px;
  background: #050505;
  outline: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 34px 90px rgba(0,0,0,.52);
}
.phone-demo::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 50%;
  width: 34%;
  height: 15px;
  border-radius: 999px;
  background: #050505;
  transform: translateX(-50%);
  pointer-events: none;
}
.phone-demo video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 1558;
  object-fit: contain;
  border-radius: 18px;
  background: #050505;
}
.phone-demo video::-webkit-media-controls { display: none !important; }
.orbit { position: absolute; border: 1px solid rgba(216,255,69,.42); border-radius: 50%; }
.orbit-one { width: 540px; height: 540px; }
.orbit-two { width: 390px; height: 390px; }
.macro-pill { position: absolute; z-index: 3; right: 28px; bottom: 34px; display: flex; flex-direction: column; padding: 14px 18px; border-radius: 16px; background: var(--acid); color: #10100d; transform: rotate(-3deg); box-shadow: 0 14px 35px rgba(0,0,0,.3); }
.macro-pill b { font-size: 13px; }.macro-pill span { margin-top: 3px; font-size: 11px; opacity: .6; }

.yht-art { background: linear-gradient(150deg, #f8fbff, #b6cdf6); }
.yht-art > img { position: relative; z-index: 2; width: min(55%, 300px); border-radius: 28%; outline: 1px solid rgba(0,0,0,.1); 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 { left: 20%; top: -8px; }.route-line span:last-child { right: 20%; top: -8px; }
.alert-card { position: absolute; z-index: 3; left: 26px; bottom: 35px; 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 { display: grid; width: 29px; height: 29px; 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; gap: 0; 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; text-wrap: pretty; }
.experience { position: relative; margin: 0; padding: 0 0 0 30px; list-style: none; }
.experience::before { content: ""; position: absolute; top: 24px; bottom: 24px; left: 5px; width: 1px; 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: -30px; width: 11px; height: 11px; 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 { display: inline-flex; min-height: 46px; 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 { 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; }
  .project { grid-template-columns: 1fr; }
  .project-copy { min-height: 520px; padding: 34px 28px; }
  .project-art { min-height: 440px; }
  .phone-demo { width: min(44%, 210px); }
  .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; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .proof strong { font-size: 27px; }
  .proof span { font-size: 10px; }
  .phone-proof { padding: 40px 22px; }
  .brand-company { display: none; }
  .project-copy { min-height: 500px; }
  .project-art { min-height: 360px; }
  .project h3 { font-size: 48px; }
  .project-links { flex-wrap: wrap; }
  .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; }
}
