@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #edf7f8;
  --bg-strong: #d8ecef;
  --paper: rgba(255, 255, 255, 0.88);
  --paper-strong: #ffffff;
  --ink: #17333f;
  --muted: #53727a;
  --line: rgba(23, 51, 63, 0.14);
  --accent: #1c7c8d;
  --accent-soft: rgba(28, 124, 141, 0.12);
  --sea: #1f6b63;
  --gold: #75a9ba;
  --shadow: 0 18px 60px rgba(23, 51, 63, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --content: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at top left, rgba(28, 124, 141, 0.12), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(31, 107, 99, 0.12), transparent 24%),
    linear-gradient(180deg, #f4fbfc 0%, #edf7f8 30%, #e7f3f5 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06)),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 31px,
      rgba(32, 49, 45, 0.028) 32px
    );
  opacity: 0.7;
}

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

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

.shell {
  width: min(calc(100% - 2rem), var(--content));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(237, 247, 248, 0.78);
  border-bottom: 1px solid rgba(23, 51, 63, 0.08);
}

.site-header .shell,
.site-footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-mark,
.eyebrow,
.mini-label,
.chip,
.filter-button,
.project-card-label,
.meta-label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 800;
}

.brand-title {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.brand-subtitle,
.lede-muted,
.project-card-period,
.footer-note,
.count-label,
.nav-link {
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.nav-link {
  font-size: 0.95rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #f8fdff;
  background: linear-gradient(135deg, #1c7c8d, #1f6b63);
  box-shadow: 0 16px 28px rgba(28, 124, 141, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(23, 51, 63, 0.12);
}

.hero {
  padding: 4.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.95fr);
  gap: 1.4rem;
  align-items: start;
}

.panel {
  background: var(--paper);
  border: 1px solid rgba(32, 49, 45, 0.08);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.hero-copy,
.hero-note,
.section-card,
.project-card,
.sidebar-card,
.project-story,
.project-highlights,
.project-gallery,
.link-card,
.not-found {
  position: relative;
  overflow: hidden;
}

.hero-copy {
  padding: 2rem;
}

.hero-copy::after,
.hero-note::after,
.section-card::after,
.project-card::after,
.sidebar-card::after,
.project-story::after,
.project-highlights::after,
.project-gallery::after,
.not-found::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 45%);
}

.hero-note {
  padding: 1.5rem;
}

.headline {
  margin: 0.45rem 0 1rem;
  font-family: "Fraunces", serif;
  font-size: clamp(2.9rem, 6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.lede {
  max-width: 58ch;
  font-size: 1.08rem;
  color: rgba(32, 49, 45, 0.88);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.stat {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(23, 51, 63, 0.08);
}

.stat strong {
  display: block;
  font-size: 1.45rem;
  font-family: "Fraunces", serif;
}

.note-list,
.simple-list,
.highlight-list,
.meta-list,
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.note-list li,
.simple-list li,
.highlight-list li,
.meta-list li,
.link-list li {
  position: relative;
  padding-left: 1.2rem;
}

.note-list li + li,
.simple-list li + li,
.highlight-list li + li,
.meta-list li + li,
.link-list li + li {
  margin-top: 0.8rem;
}

.note-list li::before,
.simple-list li::before,
.highlight-list li::before,
.meta-list li::before,
.link-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--sea);
}

.section {
  padding: 1.4rem 0 3rem;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-title {
  margin: 0.3rem 0 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  line-height: 1;
}

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

.section-card {
  padding: 1.4rem;
  border-radius: var(--radius-md);
}

.section-card:nth-child(3n + 1) {
  transform: rotate(-0.8deg);
}

.section-card:nth-child(3n + 2) {
  transform: rotate(0.7deg);
}

.section-card:nth-child(3n) {
  transform: rotate(-0.45deg);
}

.filters {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.filter-button {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(23, 51, 63, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  cursor: pointer;
}

.filter-button.is-active {
  color: #fff8f0;
  background: var(--ink);
  border-color: var(--ink);
}

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

.project-card {
  padding: 1.35rem;
  border-radius: var(--radius-md);
  min-height: 100%;
}

.project-card:nth-child(4n + 1) {
  transform: rotate(-0.45deg);
}

.project-card:nth-child(4n + 2) {
  transform: rotate(0.55deg);
}

.project-card:nth-child(4n + 3) {
  transform: rotate(-0.2deg);
}

.project-card:nth-child(4n) {
  transform: rotate(0.35deg);
}

.theme-research {
  background:
    linear-gradient(160deg, rgba(28, 124, 141, 0.14), rgba(255, 255, 255, 0.92));
}

.theme-teaching {
  background:
    linear-gradient(160deg, rgba(117, 169, 186, 0.18), rgba(255, 255, 255, 0.92));
}

.theme-automation {
  background:
    linear-gradient(160deg, rgba(31, 107, 99, 0.18), rgba(255, 255, 255, 0.92));
}

.theme-ai,
.theme-games {
  background:
    linear-gradient(160deg, rgba(74, 132, 170, 0.16), rgba(255, 255, 255, 0.92));
}

.theme-fabrication,
.theme-startup {
  background:
    linear-gradient(160deg, rgba(83, 114, 122, 0.16), rgba(255, 255, 255, 0.92));
}

.project-card a {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 100%;
}

.project-card-title,
.project-title,
.not-found-title {
  margin: 0;
  font-family: "Fraunces", serif;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.project-card-title {
  font-size: 1.6rem;
}

.project-card-summary,
.project-summary {
  margin: 0;
  color: rgba(32, 49, 45, 0.88);
}

.tag-row,
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.72rem;
  border-radius: 999px;
  color: var(--sea);
  background: rgba(31, 107, 99, 0.1);
}

.chip-status {
  color: var(--accent);
  background: var(--accent-soft);
}

.count-label {
  margin: 0 0 1rem;
  font-size: 0.96rem;
}

.project-page {
  padding: 3.6rem 0 3rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-weight: 700;
}

.project-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 1rem;
  margin-top: 1.4rem;
  align-items: start;
}

.project-intro {
  padding: 1.9rem;
}

.project-title {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  margin-top: 0.5rem;
}

.project-summary {
  max-width: 58ch;
  font-size: 1.08rem;
}

.project-banner,
.project-cover {
  height: 100%;
  min-height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(32, 49, 45, 0.08);
  box-shadow: var(--shadow);
}

.project-cover {
  aspect-ratio: 16 / 10;
  min-height: 0;
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-banner {
  position: relative;
  padding: 1.6rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(117, 169, 186, 0.28), transparent 32%),
    radial-gradient(circle at 80% 30%, rgba(31, 107, 99, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(216, 236, 239, 0.96));
}

.project-banner::before,
.project-banner::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(32, 49, 45, 0.12);
}

.project-banner::before {
  width: 180px;
  height: 180px;
  right: -30px;
  bottom: -40px;
}

.project-banner::after {
  width: 94px;
  height: 94px;
  left: -14px;
  top: 24px;
}

.banner-mark {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-family: "Fraunces", serif;
  font-size: clamp(3rem, 7vw, 4.5rem);
  color: rgba(32, 49, 45, 0.16);
}

.banner-copy {
  position: absolute;
  left: 1.6rem;
  bottom: 1.6rem;
  max-width: 20rem;
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}

.stack {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.project-head > *,
.project-layout > *,
.project-story,
.project-highlights,
.project-gallery,
.sidebar-card,
.link-card {
  min-width: 0;
}

.project-story,
.project-highlights,
.project-gallery,
.sidebar-card,
.link-card,
.not-found {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
}

.story-copy p,
.project-summary,
.section-copy,
.meta-text,
.link-list a,
.media-card figcaption {
  font-size: 1rem;
}

.story-copy p:first-child {
  margin-top: 0;
}

.story-copy p:last-child {
  margin-bottom: 0;
}

.subheading {
  margin: 0 0 1rem;
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
}

.meta-list strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.18rem;
}

.link-list a {
  font-weight: 700;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.media-card {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.media-frame {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(23, 51, 63, 0.1);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 24px rgba(23, 51, 63, 0.08);
}

.media-frame img,
.media-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card figcaption {
  color: var(--muted);
}

.project-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1rem;
}

.footer-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 51, 63, 0.1);
  font-weight: 700;
}

.site-footer {
  padding-bottom: 2.2rem;
}

.footer-note {
  font-size: 0.95rem;
}

.hidden {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 700ms ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 80ms;
}

.reveal:nth-child(3) {
  animation-delay: 140ms;
}

.reveal:nth-child(4) {
  animation-delay: 220ms;
}

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

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

  .headline {
    max-width: 14ch;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .site-header .shell,
  .site-footer .shell {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 1rem), var(--content));
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-copy,
  .hero-note,
  .project-intro,
  .project-story,
  .project-highlights,
  .sidebar-card,
  .link-card,
  .section-card,
  .project-card,
  .not-found {
    padding: 1.25rem;
  }

  .project-card:nth-child(4n + 1),
  .project-card:nth-child(4n + 2),
  .project-card:nth-child(4n + 3),
  .project-card:nth-child(4n),
  .section-card:nth-child(3n + 1),
  .section-card:nth-child(3n + 2),
  .section-card:nth-child(3n) {
    transform: none;
  }
}
