:root {
  --bg: #ececec;
  --surface: #ffffff;
  --surface-soft: #f7f7f7;
  --surface-strong: #efefef;
  --text: #111111;
  --muted: #737373;
  --line: #ececec;
  --line-strong: #dfdfdf;
  --orange: #ff7a2f;
  --shadow: 0 22px 60px rgba(17, 17, 17, 0.08);
  --radius-shell: 34px;
  --radius-card: 22px;
  --radius-pill: 999px;
  --hero-sticky-top: 72px;
  --projects-heading-top: 420px;
  --hero-line-opacity: 1;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--surface);
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 1px;
  background: oklch(92.42% 0.005 264.54 / 0.7);
  pointer-events: none;
  z-index: 20;
}

body::before {
  left: max(calc((100vw - 820px) / 2), 36px);
}

body::after {
  right: max(calc((100vw - 820px) / 2), 36px);
}

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

button {
  font: inherit;
}

.page-shell {
  --section-inline: 28px;
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.page-shell > site-header,
.page-shell > section,
.page-shell > footer {
  padding-inline: var(--section-inline);
}

.page-shell > site-header {
  display: block;
  padding-top: 0;
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  position: sticky;
}

.page-shell > site-header::before,
.page-shell > site-header::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: oklch(92.42% 0.005 264.54 / 0.7);
  pointer-events: none;
}

.page-shell > site-header::before {
  left: 0;
}

.page-shell > site-header::after {
  right: 0;
}

.page-shell .topbar {
  position: relative;
  padding: 12px 0;
}

.page-shell .topbar::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  bottom: 0;
  height: 1px;
  background: oklch(92.42% 0.005 264.54 / 0.7);
}

.page-shell .nav-link {
  padding: 5px 10px;
}

.page-shell .chat-link {
  padding: 9px 14px;
  font-size: 0.88rem;
}

@media (min-width: 961px) {
  .page-shell .topbar {
    min-height: 44px;
  }
}

.page-shell > footer {
  padding-bottom: 40px;
}

.thumb-top,
.footer,
.socials {
  display: flex;
  align-items: center;
}

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

.hero {
  max-width: none;
  padding: 76px 0 96px;
  position: sticky;
  top: var(--hero-sticky-top);
  z-index: 2;
  background: var(--surface);
  position: sticky;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  bottom: 0;
  height: 1px;
  background: oklch(92.42% 0.005 264.54 / 0.7);
  opacity: var(--hero-line-opacity);
  transition: opacity 180ms linear;
}

.hero-title-row {
  gap: 14px;
  margin-bottom: 8px;
  justify-content: flex-start;
}

.avatar {
  display: block;
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffe8cf 0%, #fde0c4 100%);
  overflow: hidden;
  border: 3px solid #ffffff;
  transform: rotate(-7deg);
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 240ms ease;
  box-shadow:
    0 22px 34px rgba(0, 0, 0, 0.14),
    0 8px 12px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(17, 17, 17, 0.04);
}

.avatar:hover {
  transform: rotate(-3deg) translateY(-1px);
  box-shadow:
    0 26px 38px rgba(0, 0, 0, 0.16),
    0 10px 16px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(17, 17, 17, 0.04);
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  transform: scale(1.08);
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.78rem, 2.72vw, 32px);
  font-weight: 400;
  letter-spacing: -0.06em;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 31px);
  font-weight: 400;
  letter-spacing: -0.06em;
}

.hero-copy {
  max-width: 620px;
  margin: 0 0 22px;
  font-size: clamp(1.58rem, 2.4vw, 29px);
  line-height: 1.12;
  letter-spacing: -0.05em;
  font-weight: 400;
  color: #757575;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.availability-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #29bf4b;
  box-shadow: 0 0 0 4px rgba(41, 191, 75, 0.16);
  animation: availability-pulse 1.8s ease-in-out infinite;
}

@keyframes availability-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(41, 191, 75, 0.16);
  }

  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 5px rgba(41, 191, 75, 0.12);
  }
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-top: 56px;
  position: relative;
  z-index: 3;
}

.projects-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 0;
  position: sticky;
  top: var(--projects-heading-top);
  z-index: 4;
}

.projects-heading::before {
  content: "";
  position: absolute;
  inset: -14px -28px -10px -28px;
  background: var(--surface);
  z-index: -1;
}

.projects-stack {
  display: grid;
  gap: 28px;
  position: relative;
  z-index: 8;
  background: var(--surface);
}

.projects-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.projects-count {
  color: #6f6f6f;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.project-feature {
  position: relative;
}

.project-feature-link {
  display: block;
}

.project-feature-link-disabled {
  cursor: default;
}

.project-feature-media {
  position: relative;
  min-height: 560px;
  background: #101010;
  overflow: hidden;
  margin: 0;
}

.project-feature-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: filter 1200ms cubic-bezier(0.22, 1, 0.36, 1), transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-feature-soon {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  padding: 8px 12px;
  border: none;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.22);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 1100ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-feature-link:hover .project-feature-image {
  transform: scale(1.04);
}

.project-feature-link-disabled:hover .project-feature-image {
  filter: blur(8px);
  transform: scale(1.05);
}

.project-feature-link-disabled:hover .project-feature-soon {
  opacity: 1;
}

.project-feature-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
}

.project-feature-title {
  color: #111111;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.project-feature-domain {
  color: #7b7b7b;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  text-align: right;
}

.about-section {
  padding-top: 118px;
}

.toolkit-section {
  padding-top: 110px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 8;
  background: var(--surface);
}

.toolkit-header {
  max-width: 760px;
}

.toolkit-title {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 31px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.06em;
}

.toolkit-intro {
  margin: 16px 0 0;
  max-width: 28ch;
  color: #555555;
  font-size: 1rem;
  line-height: 1.52;
  letter-spacing: -0.01em;
}

.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 56px;
  margin-top: 40px;
  align-items: start;
}

.toolkit-column {
  display: grid;
  gap: 32px;
  align-content: start;
}

.toolkit-group-title {
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid #ececec;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.toolkit-list {
  display: grid;
  gap: 16px;
  padding-top: 16px;
}

.toolkit-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #555555;
  font-size: 0.96rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.toolkit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 1px solid #e5e5e5;
  border-radius: 15px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  box-shadow: 0 4px 14px rgba(17, 17, 17, 0.04);
  overflow: hidden;
}

.toolkit-icon img {
  display: block;
  width: 26px;
  height: 26px;
}

.toolkit-icon svg {
  display: block;
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.toolkit-icon-adobe {
  color: #fa0c00;
  background: #ffffff;
}

.toolkit-icon-claude {
  background: #f4ead7;
  border-color: #ead9bc;
  color: #d97757;
}

.toolkit-icon-chatgpt {
  background: #ffffff;
  color: #111111;
}

.toolkit-icon-vscode {
  background: #ffffff;
  color: #007acc;
}

.toolkit-icon-webflow {
  background: #146ef5;
  border-color: #146ef5;
  color: #ffffff;
}

.toolkit-icon-dribbble {
  background: #ea4c89;
  border-color: #ea4c89;
  color: #ffffff;
}

.toolkit-icon-notion {
  background: #ffffff;
  color: #111111;
}

.toolkit-icon-miro {
  background: #ffd02f;
  border-color: #ffd02f;
  color: #111111;
}

.toolkit-icon-adobe img {
  width: 28px;
  height: 28px;
}

.toolkit-icon-notion img {
  width: 28px;
  height: 28px;
}

.toolkit-icon-miro img {
  width: 28px;
  height: 28px;
}

.toolkit-icon-webflow img {
  width: 30px;
  height: 30px;
  transform: translateX(1px);
}

.toolkit-icon-dark {
  background: #171717;
  border-color: #171717;
  color: #ffffff;
}

.toolkit-icon-light {
  background: #ffffff;
  color: #3d4653;
}

.toolkit-icon-blue {
  background: linear-gradient(180deg, #5ea0ff, #2159d8);
  border-color: #4b82ec;
  color: #ffffff;
}

.toolkit-icon-warm {
  background: #f7efe2;
  border-color: #efdfc6;
  color: #d1703f;
}

.about-section {
  padding-top: 110px;
  position: relative;
  z-index: 8;
  background: var(--surface);
}

.about-copy {
  width: 100%;
}

.about-title {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 31px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.06em;
}

.about-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 28px;
}

.about-body p {
  margin: 0;
  color: #555555;
  font-size: 1rem;
  line-height: 1.58;
  letter-spacing: -0.01em;
}

.about-cards-section {
  padding-top: 64px;
  position: relative;
  z-index: 8;
  background: var(--surface);
  overflow: visible;
}

.about-cards-kicker {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  overflow: visible;
  padding: 18px 16px 26px;
  margin: 0;
}

.about-card {
  padding: 12px 12px 13px;
  border: 1px solid #ececec;
  border-radius: 18px;
  background: #ffffff;
  overflow: visible;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.05);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.about-card-left {
  transform: rotate(-3.4deg);
}

.about-card-right {
  transform: rotate(2.8deg);
}

.about-card-left-soft {
  transform: rotate(-2.2deg);
}

.about-card-right-soft {
  transform: rotate(2deg);
}

.about-card-left:hover {
  transform: rotate(-6deg) translateY(-4px);
  box-shadow: 0 16px 30px rgba(17, 17, 17, 0.08);
}

.about-card-right:hover {
  transform: rotate(5deg) translateY(-4px);
  box-shadow: 0 16px 30px rgba(17, 17, 17, 0.08);
}

.about-card-left-soft:hover {
  transform: rotate(-4.6deg) translateY(-4px);
  box-shadow: 0 16px 30px rgba(17, 17, 17, 0.08);
}

.about-card-right-soft:hover {
  transform: rotate(4.2deg) translateY(-4px);
  box-shadow: 0 16px 30px rgba(17, 17, 17, 0.08);
}

.about-card-image {
  border-radius: 12px;
  background: #f3f3f3;
  overflow: hidden;
}

.about-card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
}

.about-card-caption {
  margin: 10px 0 0;
  color: #707070;
  font-size: 0.82rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.footer {
  justify-content: space-between;
  gap: 16px;
  padding-top: 148px;
  color: #3a3a3a;
  font-size: 0.92rem;
  position: relative;
  z-index: 8;
  background: var(--surface);
}

.socials {
  gap: 16px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 1rem;
}

.footer-mail {
  white-space: nowrap;
}

@media (max-width: 960px) {
  .page-shell {
    --section-inline: 32px;
    width: 100%;
    padding: 0;
  }

  body::before {
    left: 32px;
  }

  body::after {
    right: 32px;
  }

  .page-shell > site-header {
    padding-top: 0;
  }

  .page-shell > footer {
    padding-bottom: 24px;
  }

  .hero {
    max-width: 100%;
    position: relative;
    top: auto;
    z-index: 1;
    padding: 56px 0 64px;
  }

  .hero::after {
    opacity: 1;
    transition: none;
  }

  .project-grid {
    grid-template-columns: 1fr;
    padding-top: 40px;
    z-index: 1;
  }

  .projects-heading {
    position: relative;
    top: auto;
    z-index: 1;
  }

  .projects-heading::before {
    display: none;
  }

  .projects-stack,
  .toolkit-section,
  .about-section,
  .about-cards-section,
  .footer {
    z-index: 1;
  }

  .toolkit-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .toolkit-column {
    gap: 34px;
  }

  .about-body {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 14px 12px 20px;
    margin: 0;
  }

  .about-card-left,
  .about-card-right,
  .about-card-left-soft,
  .about-card-right-soft {
    transform: rotate(0deg);
  }

  .project-feature-media {
    min-height: 420px;
  }

  .project-feature-meta {
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .project-feature-domain {
    text-align: left;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 88px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    --section-inline: 24px;
    margin: 0;
  }

  body::before {
    left: 24px;
  }

  body::after {
    right: 24px;
  }

  .page-shell .topbar {
    padding: 12px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-copy {
    max-width: 100%;
    font-size: 1.12rem;
    line-height: 1.18;
  }

  .avatar {
    width: 60px;
    height: 60px;
    border-radius: 16px;
  }

  .toolkit-section {
    min-height: auto;
    padding-top: 72px;
  }

  .toolkit-title {
    font-size: 2.4rem;
    line-height: 1;
  }

  .toolkit-intro {
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.54;
  }

  .toolkit-grid {
    margin-top: 44px;
    gap: 28px;
  }

  .toolkit-group-title {
    padding-bottom: 14px;
    font-size: 0.96rem;
  }

  .toolkit-list {
    gap: 18px;
    padding-top: 18px;
  }

  .toolkit-item {
    gap: 14px;
    font-size: 1rem;
  }

  .toolkit-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 14px;
    font-size: 0.96rem;
  }

  .about-section {
    padding-top: 88px;
  }

  .about-title {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .about-body {
    margin-top: 22px;
  }

  .about-body p {
    font-size: 0.95rem;
    line-height: 1.54;
  }

  .about-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px 10px 18px;
    margin: 0;
  }

  .about-cards-section {
    padding-top: 52px;
  }

  .about-card {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    padding: 10px 10px 12px;
  }

  .about-card-image {
    flex: 1;
  }

  .about-card-image img {
    width: 100%;
    height: 100%;
  }

  .about-card-caption {
    margin-top: 10px;
    font-size: 0.8rem;
    line-height: 1.25;
  }

  .projects-title {
    font-size: 1.12rem;
  }

  .project-feature-media {
    min-height: 250px;
  }

}
