@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/ibm-plex-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #2b2b2b;
  --font: "IBM Plex Sans", sans-serif;
  --muted: #686868;
  --line: #e6e6e6;
  --gutter: 3.4vw;
  --edge: max(var(--gutter), calc((100vw - 1000px) / 2));
}

* { box-sizing: border-box; }
html {
  scrollbar-width: none;
  scroll-padding-top: var(--gutter);
  scroll-padding-bottom: calc(var(--gutter) + 80px);
}
html::-webkit-scrollbar { display: none; }
body {
  display: flow-root;
  margin: 0;
  min-height: 100dvh;
  overflow-x: clip;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #e7e7e7; }
a { color: var(--muted); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.portrait {
  --portrait-radius: 8px;
  position: fixed;
  top: var(--gutter);
  right: var(--edge);
  width: min(286px, 28.6vw);
}
.portrait-image { position: relative; }
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: var(--portrait-radius);
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.portrait-contact { display: inline-block; margin-top: 10px; font-size: 14px; }
@media (hover: hover) and (pointer: fine) {
  .portrait:hover img { transform: translateY(-2px) scale(1.015); box-shadow: 0 10px 28px rgb(43 43 43 / 10%); }
}
main {
  width: min(620px, 60vw);
  margin-top: var(--gutter);
  margin-left: var(--edge);
  margin-right: auto;
  padding-right: 24px;
  padding-bottom: calc(var(--gutter) + 96px);
}
body::before, body::after {
  content: "";
  position: fixed;
  left: var(--edge);
  width: min(620px, 60vw);
  z-index: 1;
  pointer-events: none;
}
body::before { top: 0; height: var(--gutter); background: #fff; }
body::after {
  bottom: 0;
  height: calc(var(--gutter) + 80px);
  background: linear-gradient(to bottom, rgb(255 255 255 / 0), #fff 80px);
}
.scroll-cue {
  position: absolute;
  top: calc(100dvh - var(--gutter) - 36px);
  left: calc((100vw + min(620px, 60vw) - min(286px, 28.6vw)) / 2 - 14px);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  z-index: 2;
  pointer-events: none;
}
.scroll-cue span {
  position: relative;
  display: block;
  width: 12px;
  height: 12px;
  border-right: 3px solid #3459df;
  border-bottom: 3px solid #3459df;
  transform: rotate(45deg);
  animation: chevron-nudge 2.8s ease-in-out infinite;
}
.scroll-cue span::before {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 3px;
  height: 20px;
  background: #3459df;
  transform: rotate(-45deg);
  transform-origin: 50% calc(100% - 1.5px);
}
@keyframes chevron-nudge {
  0%, 100% { opacity: .35; transform: translateY(-3px) rotate(45deg); }
  50% { opacity: .85; transform: translateY(3px) rotate(45deg); }
}
@supports (animation-timeline: scroll(root block)) {
  .scroll-cue {
    position: fixed;
    top: auto;
    bottom: calc(var(--gutter) + 8px);
    opacity: 0;
    animation: scroll-cue-dismiss 1s linear both;
    animation-timeline: scroll(root block);
    animation-range: 0px 96px;
  }
}
@keyframes scroll-cue-dismiss {
  from { opacity: 1; visibility: visible; }
  to { opacity: 0; visibility: hidden; }
}
h1, h2, p { margin: 0; }
.name-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 42px; }
h1 { font-size: 44px; font-weight: 600; line-height: 1.15; letter-spacing: -.8px; }
h1::after {
  content: "";
  display: inline-block;
  width: .2em;
  height: .2em;
  margin-left: .08em;
  border-radius: 50%;
  background: #3459df;
  transform-origin: center bottom;
  animation: name-dot-bounce 1s ease-out 120ms both;
}
@keyframes name-dot-bounce {
  0% { opacity: 0; transform: translateY(-40px) scale(.8); }
  35% { opacity: 1; transform: translateY(0) scale(1.15, .85); }
  55% { transform: translateY(-14px) scale(.95, 1.05); }
  72% { transform: translateY(0) scale(1.08, .92); }
  86% { transform: translateY(-5px) scale(1); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue span { animation: none; opacity: .6; }
  .portrait img { transition: none; }
  .portrait:hover img { transform: none; }
  h1::after { animation: none; opacity: 1; transform: none; }
}
section + section { margin-top: 56px; }
h2 { font-size: 24px; font-weight: 600; line-height: 1.4; letter-spacing: -.4px; margin-bottom: 20px; }
p + p { margin-top: 23px; }
strong { font-weight: 600; }
.bio h2 {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
  padding-bottom: 12px;
  margin-bottom: 19px;
  border-bottom: 1px solid var(--line);
}
.services .service-item { display: grid; grid-template-columns: 165px 1fr; gap: 26px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.services h3 { margin: 0 0 8px; font-size: 18px; font-weight: 500; line-height: 1.4; letter-spacing: -.2px; }
.services h3::before { content: ""; display: block; width: 18px; height: 2px; margin: 4px 0 11px; background: #3459df; }
.services .service-item p { margin: 0; }
.services .service-contact { color: #3459df; font-weight: 500; text-decoration-color: #3459df; }
.services .service-contact:hover { color: #2344b6; text-decoration-thickness: 2px; }
.tech-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 32px; list-style: none; padding: 0; margin: 0; }
.tech-stack li { display: flex; align-items: center; gap: 13px; }
.tech-stack img { display: block; width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
.blogs { list-style: none; margin: 0; padding: 0; }
.blogs li { border-top: 1px solid var(--line); }
.blogs a { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-block: 14px; text-decoration: none; color: var(--ink); }
.blogs a:hover > span { text-decoration: underline; text-underline-offset: 3px; }
.blogs time { flex-shrink: 0; font-family: var(--font); font-size: 14px; color: var(--muted); white-space: nowrap; }

@media (max-width: 1050px) {
  .blogs a { flex-direction: column; gap: 3px; }
}
@media (max-width: 900px) {
  .services .service-item { grid-template-columns: 130px 1fr; gap: 20px; }
}
@media (max-width: 700px) {
  :root { --gutter: 24px; }
  body::before, body::after { display: none; }
  .scroll-cue { display: none; }
  .portrait { --portrait-radius: 6px; position: relative; top: auto; right: auto; width: 145.6px; margin: var(--gutter) var(--gutter) 0 auto; }
  .portrait img { height: auto; aspect-ratio: 3 / 4; }
  main { width: auto; margin: 0 var(--gutter); padding: 30px 0 40px; }
  .name-row { margin-bottom: 32px; }
  h1 { font-size: 40px; }
  section + section { margin-top: 40px; }
  h2 { font-size: 24px; }
  .tech-stack { grid-template-columns: 1.2fr 1fr; column-gap: 16px; font-size: 18px; }
  .tech-stack li { gap: 10px; }
}
@media (max-width: 500px) {
  .services .service-item { grid-template-columns: 1fr; gap: 10px; }
  .services h3::before { display: inline-block; vertical-align: middle; width: 11px; margin: 0 9px 3px 0; }
}
@media (max-width: 360px) {
  :root { --gutter: 20px; }
  .tech-stack { font-size: 16px; }
  .tech-stack img { width: 22px; height: 22px; }
}
