:root {
  --bg: #f6fbff;
  --surface: #ffffff;
  --surface-soft: #eef7f8;
  --text: #172033;
  --muted: #657086;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --secondary: #2563eb;
  --line: #dce8f1;
  --shadow: 0 18px 45px rgba(15, 42, 73, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--primary-dark);
  color: #fff;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.navbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--primary-dark);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  color: #354155;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--surface-soft);
  color: var(--primary-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.section {
  padding: 88px 0;
}

.section-grid {
  background:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  padding: 70px 0;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: 80px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.9rem;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: 0;
}

h3 {
  font-size: 1.2rem;
}

.student-line {
  color: var(--secondary);
  font-size: 1.12rem;
  font-weight: 800;
  margin: 22px 0 0;
}

.hero-summary {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: 1.08rem;
  color: #28344a;
}

.hero-actions,
.card-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 16px 28px rgba(15, 118, 110, 0.22);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  color: var(--secondary);
  background: #fff;
  border-color: #b7cffd;
}

.btn-small {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.profile-panel {
  position: relative;
}

.avatar {
  width: min(100%, 450px);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
  object-fit: cover;
  object-position: center top;
}

.focus-card {
  width: min(100%, 450px);
  margin: 16px auto 0;
  display: flex;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 18px 35px rgba(15, 42, 73, 0.1);
}

.focus-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

.accent-bar {
  width: 6px;
  border-radius: 999px;
  background: #f59e0b;
}

.two-column {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.section-heading p {
  color: var(--muted);
  max-width: 760px;
}

.section-heading.centered {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 42px;
}

.section-heading.centered p {
  margin-left: auto;
  margin-right: auto;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.info-box,
.project-card,
.content-card,
.summary-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(17, 94, 89, 0.08);
}

.info-box {
  padding: 24px;
}

.info-box p {
  margin: 10px 0 0;
  color: var(--muted);
}

.info-box.wide {
  grid-column: 1 / -1;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e8f5f4;
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.tag-list.small span {
  min-height: 28px;
  font-size: 0.78rem;
}

.muted {
  background: #eef7fb;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #eaf4ff;
}

.project-body {
  padding: 22px;
}

.project-body p {
  color: var(--muted);
}

.card-kicker {
  margin: 0 0 8px;
  color: var(--primary-dark) !important;
  font-weight: 800;
}

.timeline-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.timeline span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  padding: 74px 0 54px;
}

.page-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.55fr);
  gap: 38px;
  align-items: center;
}

.page-hero p {
  color: var(--muted);
  max-width: 760px;
}

.hero-visual {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.portrait-visual {
  width: min(100%, 430px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  justify-self: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.content-stack {
  display: grid;
  gap: 18px;
}

.content-card,
.summary-card {
  padding: 24px;
}

.content-card h2,
.summary-card h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.content-card p,
.content-card li,
.summary-card p,
.summary-card li {
  color: var(--muted);
}

.content-card ul,
.summary-card ul {
  margin-bottom: 0;
  padding-left: 22px;
}

.side-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.evidence-box {
  padding: 18px;
  border: 1px dashed #9cc8d0;
  border-radius: var(--radius);
  background: #f8fcff;
}

.evidence-box img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.summary-card.full {
  grid-column: 1 / -1;
}

.site-footer {
  padding: 32px 0;
  background: #0f2535;
  color: #eaf6ff;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-content p {
  margin: 0;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.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: 980px) {
  .hero-layout,
  .two-column,
  .timeline-wrap,
  .page-hero .container,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 48px 0 70px;
  }

  .hero-layout {
    gap: 34px;
  }

  .section {
    padding: 62px 0;
  }

  .project-grid,
  .summary-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .card-actions,
  .hero-actions,
  .page-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .footer-content {
    display: grid;
  }
}
