* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2933;
  background:
    radial-gradient(circle at top left, rgba(84, 144, 194, 0.12), transparent 32rem),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
  line-height: 1.65;
}

a {
  color: inherit;
}

code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.85em;
  background: rgba(79, 136, 189, 0.1);
  padding: 0.1rem 0.28rem;
  border-radius: 0.35rem;
}

#cursor-canvas {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem 7vw;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(31, 41, 51, 0.08);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 650;
  text-decoration: none;
}

.logo-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: #4f88bd;
  box-shadow: 0 0 0 0.35rem rgba(79, 136, 189, 0.12);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
  color: #4b5563;
}

.nav a:hover {
  color: #111827;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 7vw;
}

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 4rem;
  align-items: center;
  padding: 6rem 0 4rem;
}

.eyebrow,
.meta {
  color: #64748b;
  font-size: 0.92rem;
}

.hero h1 {
  margin: 0.6rem 0 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.subtitle {
  margin: 1.4rem 0 0;
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: #334155;
}

.intro,
.interests {
  max-width: 680px;
  font-size: 1.06rem;
  color: #475569;
}

.hero-card,
.message-panel,
.card,
.article-card {
  border: 1px solid rgba(31, 41, 51, 0.09);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.06);
}

.hero-card {
  padding: 1rem;
  border-radius: 2rem;
}

.profile-image,
.image-block img,
.project-card img,
.article-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  background: #eef3f8;
}

.profile-image {
  height: 320px;
  border-radius: 1.5rem;
}

.image-caption,
.placeholder-note,
.image-block figcaption {
  margin-top: 0.7rem;
  color: #64748b;
  font-size: 0.78rem;
}

.small-note {
  margin: 1rem 0 0.2rem;
  font-size: 0.9rem;
  color: #64748b;
}

.section {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 3rem;
  padding: 5rem 0;
  border-top: 1px solid rgba(31, 41, 51, 0.08);
}

.section-label {
  color: #64748b;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 0.45rem;
}

.section-content {
  max-width: 820px;
}

h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

h3 {
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
}

p {
  margin: 0 0 1rem;
}

.feature-with-image {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 1.4rem;
  align-items: start;
}

.image-block {
  margin: 0;
}

.image-block img {
  height: 260px;
  border-radius: 1.25rem;
  border: 1px solid rgba(31, 41, 51, 0.08);
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.7rem;
}

.tag-grid span {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(79, 136, 189, 0.1);
  color: #315f87;
  font-size: 0.86rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  padding: 1rem;
  border-radius: 1.4rem;
}

.project-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 1rem;
}

.project-card img {
  height: 110px;
  border-radius: 1rem;
}

.card p {
  margin-bottom: 0.6rem;
  color: #52606d;
}

.article-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.article-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.2rem;
  border-radius: 1.5rem;
  padding: 1rem;
}

.article-card img {
  height: 180px;
  border-radius: 1.15rem;
}

.article-card a {
  color: #315f87;
  text-decoration: none;
  border-bottom: 1px solid rgba(49, 95, 135, 0.25);
}

.message-panel {
  margin-top: 2.5rem;
  padding: 1.4rem;
  border-radius: 1.7rem;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 1.4rem;
}

form {
  display: grid;
  gap: 0.75rem;
}

label {
  font-size: 0.88rem;
  color: #475569;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(31, 41, 51, 0.13);
  border-radius: 1rem;
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: #1f2933;
  background: rgba(255, 255, 255, 0.88);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(79, 136, 189, 0.28);
  border-color: #4f88bd;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.3rem 0;
}

.checkbox-line input {
  width: auto;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font: inherit;
  font-weight: 650;
  color: #ffffff;
  background: #315f87;
  cursor: pointer;
}

button:hover {
  background: #254c70;
}

#form-status {
  min-height: 1.5rem;
  font-size: 0.9rem;
  color: #315f87;
}

.contact-section a {
  color: #315f87;
}

.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 7vw;
  color: #64748b;
  border-top: 1px solid rgba(31, 41, 51, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.footer-title {
  color: #1f2933;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-content: flex-start;
}

.footer-links a {
  text-decoration: none;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .section,
  .feature-with-image,
  .message-panel,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .article-card,
  .project-card {
    grid-template-columns: 1fr;
  }

  .article-card img,
  .project-card img {
    height: 210px;
  }

  .site-footer {
    display: grid;
  }
}


.section-note {
  margin-top: -0.4rem;
  margin-bottom: 1.4rem;
  color: #64748b;
  font-size: 0.94rem;
}

.article-card a {
  font-size: 0.9rem;
}


