:root {
  color-scheme: dark;
  --bg: #11120e;
  --paper: #eee7d8;
  --ink: #f7f0df;
  --muted: rgba(247, 240, 223, 0.68);
  --line: rgba(247, 240, 223, 0.16);
  --glass: rgba(19, 20, 16, 0.72);
  --tea: #b9c79a;
  --clay: #c58661;
  --gold: #e7c46b;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Avenir Next", "PingFang SC", "Songti SC", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 10%, rgba(185, 199, 154, 0.22), transparent 34%),
    radial-gradient(circle at 8% 48%, rgba(197, 134, 97, 0.20), transparent 32%),
    linear-gradient(135deg, #10110d 0%, #1f2018 52%, #0d0d0b 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.19;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 30%, #000, transparent 72%);
}
.shell { width: min(1160px, calc(100% - 36px)); margin: 0 auto; padding: 42px 0 64px; position: relative; }
.hero {
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 38px;
  padding: clamp(28px, 6vw, 70px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, rgba(238,231,216,0.12), rgba(185,199,154,0.08)), var(--glass);
  box-shadow: 0 28px 90px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(22px);
  overflow: hidden;
}
.eyebrow { margin: 0 0 14px; color: var(--tea); letter-spacing: .2em; text-transform: uppercase; font-size: 12px; font-weight: 800; }
h1 { margin: 0; font-size: clamp(46px, 8vw, 96px); line-height: .92; letter-spacing: -.07em; max-width: 760px; }
#site-subtitle { color: var(--muted); font-size: 18px; line-height: 1.8; max-width: 620px; margin: 28px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
a { color: inherit; }
.primary, .secondary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px; text-decoration: none; font-weight: 800;
}
.primary { background: var(--paper); color: #171812; box-shadow: 0 12px 34px rgba(231,196,107,.18); }
.secondary { border: 1px solid var(--line); background: rgba(255,255,255,.06); }
.orb { width: min(34vw, 320px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; justify-self: center; background: radial-gradient(circle at 32% 28%, #fff6d8, var(--gold) 28%, var(--clay) 64%, #4a2d22); box-shadow: 0 30px 90px rgba(197,134,97,.28); transform: rotate(-8deg); }
.orb span { color: #24170f; font-size: 54px; font-weight: 900; letter-spacing: -.08em; }
.projects-head { margin: 42px 0 18px; display: flex; justify-content: space-between; align-items: end; }
.projects-head h2 { margin: 0; font-size: 30px; }
#project-count { color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 18px; }
.project-card { border: 1px solid var(--line); border-radius: 30px; background: rgba(255,255,255,.075); overflow: hidden; transition: transform .22s ease, border-color .22s ease; }
.project-card:hover { transform: translateY(-5px); border-color: rgba(231,196,107,.56); }
.cover-link { display: block; text-decoration: none; min-height: 100%; }
.cover { height: 220px; background: linear-gradient(135deg, rgba(185,199,154,.32), rgba(197,134,97,.24)), #27281e; background-size: cover; background-position: center; }
.card-content { padding: 22px; }
.card-topline { display: flex; justify-content: space-between; gap: 12px; color: var(--tea); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.project-card h3 { margin: 18px 0 8px; font-size: 26px; line-height: 1.1; letter-spacing: -.04em; }
.subtitle { color: var(--muted); line-height: 1.65; margin: 0; }
.tags, .metrics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag, .metric { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; background: rgba(0,0,0,.12); color: var(--muted); font-size: 12px; }
.metric strong { color: var(--ink); margin-right: 4px; }
.empty { border: 1px dashed var(--line); border-radius: 26px; padding: 32px; color: var(--muted); }
@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 1160px); padding-top: 16px; }
  .hero { grid-template-columns: 1fr; min-height: auto; border-radius: 28px; }
  .orb { width: min(62vw, 240px); }
  .orb span { font-size: 42px; }
  .projects-head { align-items: start; }
  .cover { height: 180px; }
}
