:root {
  --ink: #132033;
  --muted: #617086;
  --paper: #f7f3ea;
  --surface: #ffffff;
  --line: #d8e0e9;
  --green: #0f766e;
  --blue: #2563eb;
  --coral: #e85d4f;
  --amber: #d98b18;
  --shadow: 0 24px 70px rgba(19, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.10), transparent 32%),
    linear-gradient(225deg, rgba(232, 93, 79, 0.10), transparent 28%),
    var(--paper);
  font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

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

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 4px;
  background: rgba(19, 32, 51, 0.10);
}

.progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--coral));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(247, 243, 234, 0.82);
  border-bottom: 1px solid rgba(216, 224, 233, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: 8px;
  font-family: "Space Grotesk", "Be Vietnam Pro", sans-serif;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(216, 224, 233, 0.9);
  border-radius: 999px;
}

.main-nav a {
  min-width: 110px;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  border-radius: 999px;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ffffff;
  background: var(--ink);
  transform: translateY(-1px);
}

main {
  overflow: hidden;
}

section {
  padding: clamp(72px, 9vw, 128px) clamp(18px, 5vw, 72px);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  min-height: calc(100vh - 82px);
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  font-family: "Space Grotesk", "Be Vietnam Pro", sans-serif;
  line-height: 1.05;
}

.hero-copy h1 {
  max-width: 820px;
  font-size: clamp(54px, 8vw, 112px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.lead {
  max-width: 700px;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 20px;
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
}

.identity-grid article,
.project-card,
.summary-panel,
.goals {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(216, 224, 233, 0.95);
  box-shadow: var(--shadow);
}

.identity-grid article {
  padding: 16px;
  border-radius: 8px;
}

.identity-grid span,
.project-card dt {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.identity-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
}

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

.primary-action,
.secondary-action,
.file-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  font-weight: 800;
  border-radius: 8px;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.primary-action {
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 16px 30px rgba(15, 118, 110, 0.24);
}

.secondary-action {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.primary-action:hover,
.secondary-action:hover,
.file-link:hover {
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  margin: 0;
  transform: rotate(1deg);
}

.hero-visual img {
  width: min(100%, 520px);
  border: 1px solid rgba(216, 224, 233, 0.95);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.goals {
  grid-column: 1 / -1;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 12px;
}

.goals h2 {
  margin: 0 0 14px;
  font-family: "Space Grotesk", "Be Vietnam Pro", sans-serif;
  font-size: 28px;
}

.goals ul,
.summary-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.projects-section {
  background: #ffffff;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading h2 {
  font-size: clamp(38px, 5vw, 68px);
}

.section-heading p:not(.eyebrow) {
  max-width: 690px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.project-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0 0 10px;
}

.project-tabs::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--green), var(--blue), #7c3aed, var(--coral), var(--amber));
  border-radius: 999px;
  content: "";
}

.project-tab {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  color: #264160;
  background: linear-gradient(180deg, #ffffff, #f3f7fb);
  border: 1px solid #94a3b8;
  border-radius: 4px;
  box-shadow: none;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, background 180ms ease;
}

.project-tab:hover {
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.14);
  transform: translateY(-2px);
}

.project-tab.active {
  color: #0b2447;
  background: linear-gradient(180deg, #eaf4ff, #dbeafe);
  border-color: #2563eb;
  box-shadow: inset 0 -3px 0 #2563eb;
}

.project-tab span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  font-size: 16px;
}

.project-tab.active span {
  background: rgba(255, 255, 255, 0.18);
}

.inline-pdf-viewer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  margin-top: 18px;
  opacity: 1;
  overflow: hidden;
  transform: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(19, 32, 51, 0.14);
}

.inline-pdf-viewer__header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.inline-pdf-viewer__header span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inline-pdf-viewer__header h3 {
  margin: 4px 0 0;
  font-family: "Space Grotesk", "Be Vietnam Pro", sans-serif;
  font-size: clamp(22px, 3vw, 34px);
}

#project-pdf-frame {
  width: 100%;
  height: min(88vh, 980px);
  min-height: 760px;
  border: 0;
  background: #eef2f7;
}

.project-panels {
  display: none !important;
}

.pdf-viewer {
  display: none !important;
}

.project-panel[hidden] {
  display: none;
}

.project-panel.active {
  animation: panelReveal 260ms ease both;
}

@keyframes panelReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card {
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: clamp(26px, 4vw, 42px);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.project-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--coral), var(--amber));
  content: "";
}

.project-card:hover {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 28px 80px rgba(19, 32, 51, 0.16);
  transform: translateY(-6px);
}

.project-number {
  color: var(--amber);
  font-family: "Space Grotesk", "Be Vietnam Pro", sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
}

.project-card h3 {
  margin: 18px 0 16px;
  font-family: "Space Grotesk", "Be Vietnam Pro", sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
}

.project-card dl {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
}

.project-card dd {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 16px;
}

.project-panel .file-link {
  width: fit-content;
  min-width: 260px;
}

.file-link {
  width: 100%;
  margin-top: auto;
  color: #ffffff;
  background: var(--ink);
}

.file-link::after {
  margin-left: 10px;
  content: "↗";
}

.summary-section {
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.09), rgba(37, 99, 235, 0.08)),
    var(--paper);
}

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

.summary-panel {
  min-height: 250px;
  padding: 26px;
  border-radius: 8px;
}

.summary-panel h3 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", "Be Vietnam Pro", sans-serif;
  font-size: 26px;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: #ffffff;
  background: var(--ink);
}

.site-footer a {
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .hero-section,
  .project-grid,
  .summary-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 64px;
  }

  .project-card {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .site-header,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    border-radius: 8px;
  }

  .main-nav a {
    min-width: 0;
    flex: 1;
    padding: 10px 8px;
    font-size: 12px;
  }

  section {
    padding: 64px 18px;
  }

  .hero-section {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-copy h1 {
    font-size: 48px;
  }

  .lead {
    font-size: 17px;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .hero-visual {
    transform: none;
  }

  .project-tabs {
    gap: 10px;
  }

  .project-tab {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 18px;
  }

  .project-panel .file-link {
    width: 100%;
    min-width: 0;
  }

  #project-pdf-frame {
    height: 78vh;
    min-height: 620px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
