:root {
  --bg: #f7f1e8;
  --bg-soft: #fffaf1;
  --ink: #111827;
  --muted: #667085;
  --muted-dark: #475467;
  --line: #e6dccd;
  --card: #fffdf8;
  --nav: #fffffbdc;
  --blue: #1947e5;
  --blue-dark: #0c2a94;
  --coral: #ff6b4a;
  --mint: #c7f27c;
  --yellow: #ffe39b;
  --shadow: 0 30px 80px rgba(36, 28, 18, 0.11);
  --radius: 30px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 10% 8%,
      rgba(255, 107, 74, 0.16),
      transparent 28rem
    ),
    radial-gradient(
      circle at 88% 10%,
      rgba(25, 71, 229, 0.13),
      transparent 30rem
    ),
    radial-gradient(
      circle at 75% 58%,
      rgba(199, 242, 124, 0.22),
      transparent 26rem
    ),
    var(--bg);
  overflow-x: hidden;
}
body.no-scroll {
  overflow: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.33;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--max), calc(100% - 32px));
  height: 72px;
  z-index: 100;
  border: 1px solid rgba(230, 220, 205, 0.8);
  border-radius: 999px;
  background: var(--nav);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 60px rgba(33, 22, 10, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}
.brand span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  font-weight: 900;
  letter-spacing: -0.08em;
}
.brand small {
  color: var(--muted-dark);
  font-size: 13px;
  font-weight: 800;
}
.nav-menu {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-menu a {
  color: #475467;
  padding: 11px 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: 0.22s ease;
}
.nav-menu a:hover {
  background: #f2eadf;
  color: var(--ink);
}
.header-cta {
  min-width: 118px;
  display: flex;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(25, 71, 229, 0.24);
}
.menu-button {
  display: none;
  border: 0;
  background: var(--ink);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}
.menu-button span {
  width: 18px;
  height: 2px;
  background: white;
  border-radius: 10px;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 65px 0;
}
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 136px;
}
.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1.08fr 0.72fr;
  gap: 44px;
  align-items: center;
}
.status-pill {
  width: max-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff8ee;
  color: #4f5b6b;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 35px rgba(36, 28, 18, 0.06);
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.12);
}
h1 {
  margin: 26px 0 22px;
  max-width: 900px;
  font-size: clamp(54px, 7.6vw, 100px);
  line-height: 0.94;
  letter-spacing: -0.075em;
  font-weight: 950;
}
.lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted-dark);
  font-size: 21px;
  line-height: 1.55;
  letter-spacing: -0.025em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
  align-items: center;
}
.primary-button,
.secondary-button,
.text-button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
}
.primary-button {
  color: white;
  background: var(--ink);
  box-shadow: 0 20px 45px rgba(17, 24, 39, 0.16);
}
.secondary-button {
  color: var(--ink);
  background: #fffaf1;
  border: 1px solid var(--line);
}
.text-button {
  padding: 0 8px;
  color: var(--blue);
}
.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 44px;
}
.quick-stats div {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
}
.quick-stats strong {
  display: block;
  color: var(--blue);
  font-size: 31px;
  letter-spacing: -0.06em;
}
.quick-stats span {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 750;
}
.hero-card {
  position: relative;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 18px -10px -16px 20px;
  border-radius: 36px;
  background: var(--mint);
  transform: rotate(2deg);
  z-index: -1;
}
.availability-card,
.code-card,
.mini-grid div {
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: #fffdf8;
  box-shadow: var(--shadow);
}
.availability-card {
  min-height: 150px;
  border-radius: 34px;
  padding: 26px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.availability-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.availability-card h2 {
  margin: 0;
  font-size: 35px;
  letter-spacing: -0.06em;
}
.availability-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted-dark);
}
.availability-card > span {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  font-weight: 950;
  flex: 0 0 56px;
}
.code-card {
  margin-top: 18px;
  border-radius: 28px;
  overflow: hidden;
  background: #101828;
  color: #e5e7eb;
}
.window-dots {
  height: 46px;
  padding-left: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.window-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6b4a;
}
.window-dots i:nth-child(2) {
  background: #ffe39b;
}
.window-dots i:nth-child(3) {
  background: #c7f27c;
}
pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.75;
}
.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.mini-grid div {
  border-radius: 24px;
  padding: 20px;
}
.mini-grid small {
  display: block;
  color: var(--muted);
  font-weight: 850;
  margin-bottom: 8px;
}
.mini-grid b {
  font-size: 18px;
}

.section-heading {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 38px;
}
.section-heading p,
.section-label,
.contact-box > p {
  margin: 8px 0 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.section-heading h2,
.about-card h2,
.contact-box h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.065em;
}
.wide-heading {
  grid-template-columns: 220px 1fr 280px;
}
.wide-heading span {
  color: var(--muted-dark);
  line-height: 1.55;
}
.experience-list {
  display: grid;
  gap: 16px;
}
.experience-item {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 34px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.76);
  box-shadow: 0 12px 40px rgba(36, 28, 18, 0.055);
}
.role span {
  color: var(--coral);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.1em;
}
.role h3 {
  margin: 12px 0 6px;
  font-size: 26px;
  letter-spacing: -0.045em;
}
.role p,
.details p {
  margin: 0;
  color: var(--muted-dark);
}
.details p {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 1.55;
}
.details p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.projects-section {
  padding-top: 86px;
}
.project-board {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr 0.88fr;
  gap: 16px;
}
.project-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 25px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 14px 45px rgba(36, 28, 18, 0.06);
  transition: 0.22s ease;
  overflow: hidden;
}
.project-card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(36, 28, 18, 0.13);
}
.featured-project {
  grid-row: span 2;
  min-height: 556px;
  background: linear-gradient(
    145deg,
    rgba(25, 71, 229, 0.97),
    rgba(12, 42, 148, 0.99)
  );
  color: white;
  border-color: rgba(25, 71, 229, 0.4);
}
.project-wide {
  grid-column: 2 / 4;
}
.project-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.project-top small {
  color: inherit;
  opacity: 0.72;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.5;
}
.project-top > span {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #f3eadb;
  color: var(--ink);
  font-weight: 950;
}
.featured-project .project-top > span {
  background: white;
}
.project-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: auto;
}
.project-badge {
  display: inline-flex;
  padding: 8px 11px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.featured-project .project-badge {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}
.project-card h3 {
  margin: 0 0 14px;
  font-size: 31px;
  line-height: 1.05;
  letter-spacing: -0.055em;
}
.featured-project h3 {
  font-size: clamp(42px, 4vw, 58px);
}
.project-card p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 16px;
  line-height: 1.5;
}
.featured-project p {
  color: rgba(255, 255, 255, 0.79);
}
.project-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}
.project-card li {
  padding: 9px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 12px;
  font-weight: 850;
}
.project-note {
  margin-top: 22px !important;
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.62) !important;
}
.project-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.project-footer b {
  color: var(--blue);
}
.project-archive {
  margin-top: 16px;
  padding: 26px 28px;
  border-radius: 26px;
  border: 1px dashed #d7cbbb;
  background: rgba(255, 253, 248, 0.58);
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}
.project-archive span {
  color: var(--coral);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.project-archive h3 {
  margin: 7px 0 7px;
  font-size: 22px;
}
.project-archive p {
  margin: 0;
  max-width: 760px;
  color: var(--muted-dark);
  line-height: 1.5;
  font-size: 14px;
}
.project-archive > a {
  flex: 0 0 auto;
  color: var(--blue);
  font-weight: 900;
}

.about-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  padding: 38px;
  border-radius: 36px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
}
.about-card h2 {
  color: white;
}
.about-text p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 19px;
  line-height: 1.55;
}
.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.education-grid article {
  padding: 28px;
  border-radius: 28px;
  background: #fffdf8;
  border: 1px solid var(--line);
}
.education-grid small {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.education-grid h3 {
  margin: 14px 0 8px;
  font-size: 26px;
  letter-spacing: -0.045em;
}
.education-grid p,
.education-grid span {
  color: var(--muted-dark);
  line-height: 1.45;
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stack-grid div {
  position: relative;
  padding: 24px;
  min-height: 250px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #fffdf8;
  box-shadow: 0 14px 45px rgba(36, 28, 18, 0.055);
}
.stack-number {
  display: block;
  color: var(--coral);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  margin-bottom: 50px;
}
.stack-grid h3 {
  margin: 0 0 18px;
  font-size: 25px;
  letter-spacing: -0.045em;
}
.stack-grid p {
  margin: 0;
  color: var(--muted-dark);
  line-height: 1.6;
}
.contact-section {
  padding-top: 70px;
}
.contact-box {
  border-radius: 42px;
  padding: 64px;
  text-align: center;
  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(199, 242, 124, 0.9),
      transparent 16rem
    ),
    radial-gradient(
      circle at 85% 20%,
      rgba(255, 107, 74, 0.35),
      transparent 18rem
    ),
    #fffdf8;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact-box h2 {
  margin: 14px auto 18px;
}
.contact-copy {
  display: block;
  margin: 0 auto 28px;
  max-width: 650px;
  color: var(--muted-dark);
  font-size: 17px;
}
.contact-email {
  display: inline-flex;
  color: var(--blue);
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -0.05em;
  border-bottom: 3px solid rgba(25, 71, 229, 0.2);
}
.contact-row {
  margin-top: 38px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.contact-row a {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 850;
  color: var(--muted-dark);
  transition: 0.2s;
}
.contact-row a:hover {
  transform: translateY(-2px);
  color: var(--blue);
}
footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .brand {
    min-width: auto;
  }
  .brand small {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-card {
    max-width: 620px;
  }
  .quick-stats,
  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-heading,
  .wide-heading,
  .about-card {
    grid-template-columns: 1fr;
  }
  .wide-heading span {
    max-width: 560px;
  }
  .project-board {
    grid-template-columns: 1fr 1fr;
  }
  .featured-project {
    grid-column: 1/-1;
    grid-row: auto;
    min-height: 460px;
  }
  .project-wide {
    grid-column: 1/-1;
  }
}

@media (max-width: 720px) {
  body {
    background:
      radial-gradient(
        circle at 15% 2%,
        rgba(255, 107, 74, 0.18),
        transparent 22rem
      ),
      radial-gradient(
        circle at 95% 20%,
        rgba(25, 71, 229, 0.12),
        transparent 22rem
      ),
      var(--bg);
  }
  .site-header {
    top: 12px;
    height: 62px;
    padding: 0 10px 0 14px;
  }
  .menu-button {
    display: flex;
  }
  .header-cta {
    display: none;
  }
  .nav-menu {
    position: fixed;
    top: 74px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 10px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: #fffdf8;
    box-shadow: var(--shadow);
    flex-direction: column;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-menu a {
    width: 100%;
    text-align: center;
    padding: 16px;
  }
  .section {
    width: calc(100% - 28px);
    padding: 86px 0;
  }
  .hero {
    min-height: auto;
    padding-top: 112px;
  }
  .status-pill {
    font-size: 11px;
    padding: 9px 12px;
  }
  h1 {
    font-size: clamp(44px, 13vw, 66px);
    letter-spacing: -0.07em;
  }
  .lead {
    font-size: 18px;
  }
  .hero-actions {
    display: grid;
  }
  .primary-button,
  .secondary-button,
  .text-button {
    width: 100%;
  }
  .quick-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .quick-stats div {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .quick-stats strong {
    min-width: 82px;
  }
  .hero-card::before {
    inset: 14px -5px -12px 10px;
    border-radius: 28px;
  }
  .availability-card {
    min-height: 130px;
    padding: 22px;
    border-radius: 28px;
  }
  .availability-card h2 {
    font-size: 28px;
  }
  pre {
    font-size: 12px;
    padding: 18px;
  }
  .mini-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .section-heading {
    gap: 14px;
  }
  .section-heading h2,
  .about-card h2,
  .contact-box h2 {
    font-size: clamp(35px, 11vw, 50px);
  }
  .experience-item {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 18px;
    border-radius: 24px;
  }
  .details p {
    font-size: 16px;
  }
  .project-board {
    grid-template-columns: 1fr;
  }
  .featured-project,
  .project-wide {
    grid-column: auto;
    min-height: 420px;
  }
  .project-card {
    min-height: 270px;
    border-radius: 24px;
  }
  .featured-project h3,
  .project-card h3 {
    font-size: 34px;
  }
  .project-archive {
    align-items: flex-start;
    flex-direction: column;
  }
  .about-card {
    padding: 26px;
    border-radius: 28px;
  }
  .about-text p {
    font-size: 17px;
  }
  .education-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }
  .stack-grid div {
    min-height: auto;
  }
  .stack-number {
    margin-bottom: 24px;
  }
  .contact-box {
    padding: 34px 18px;
    border-radius: 30px;
  }
  .contact-email {
    font-size: 23px;
  }
  footer {
    width: calc(100% - 28px);
    display: grid;
    text-align: center;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 42px;
  }
  .contact-email {
    font-size: 20px;
  }
}
