:root {
  --paper: #f4efe3;
  --paper-strong: #ece2c8;
  --ink: #161412;
  --muted: #6b645b;
  --line: rgba(22, 20, 18, 0.16);
  --accent: #ff5a36;
  --accent-dark: #b83010;
  --acid: #c9ff41;
  --card: rgba(255, 250, 240, 0.82);
  --shadow: 0 18px 50px rgba(22, 20, 18, 0.12);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Spectral", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 90, 54, 0.2), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(201, 255, 65, 0.28), transparent 22%),
    linear-gradient(135deg, #f7f3ea 0%, #efe7d2 55%, #f7f1e1 100%);
  position: relative;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: url('/images/logo-2.svg') center / 70vmin no-repeat;
  opacity: 0.07;
  mix-blend-mode: multiply;
  z-index: 10;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background:
    repeating-linear-gradient(0deg,
      rgba(22, 20, 18, 0.12) 0,
      rgba(22, 20, 18, 0.12) 1px,
      transparent 1px,
      transparent 11px),
    repeating-linear-gradient(90deg,
      rgba(22, 20, 18, 0.08) 0,
      rgba(22, 20, 18, 0.08) 1px,
      transparent 1px,
      transparent 13px);
  mix-blend-mode: multiply;
}

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

.page {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
  position: relative;
  z-index: 1;
}

header {
  text-align: center;
  padding: 28px 0 40px;
}

header h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.9rem, 5.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 38px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 244, 0.76);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(22, 20, 18, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: lowercase;
}

.brand-mark-wrap {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.brand-mark {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.14);
}

.brand-text {
  display: block;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.pill-link {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  transition: transform 180ms ease, border-color 180ms ease;
}

.pill-link:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 20, 18, 0.35);
}

.section-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.section-kicker {
  margin: 0 0 16px;
  color: var(--accent-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  line-height: 0.95;
}


.section-frame {
  padding: clamp(24px, 3vw, 34px);
  margin-bottom: 24px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.section-head-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}


.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(22, 20, 18, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 240, 224, 0.58) 100%),
    var(--card-img, none) center / cover no-repeat;
  position: relative;
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}


.project-card:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow: 0 16px 36px rgba(22, 20, 18, 0.12);
  border-color: rgba(22, 20, 18, 0.24);
}


.project-card-logo {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 240, 224, 0.72) 100%),
    var(--card-img, none) center 72% / contain no-repeat;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}


.card-path {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  text-align: right;
}

.project-card h3 {
  margin-bottom: 12px;
  font-size: 1.6rem;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.card-state {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 2px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

footer a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

@media (max-width: 980px) {
  .topbar {
    border-radius: 28px;
  }

  .topbar-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100vw - 18px, 100%);
    padding-top: 10px;
  }

  .topbar,
  .section-frame {
    border-radius: 22px;
  }

  .topbar {
    padding: 16px;
  }

}

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