:root{
  --cardinal:#C8102E;
  --gold:#F1BE48;
  --ink:#121417;
  --muted:#5b6770;
  --bg:#fbfbfd;
  --surface:#ffffff;
  --line:#e7e7ee;
  --shadow: 0 10px 30px rgba(18,20,23,.08);
  --radius: 18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--ink);
  background: radial-gradient(1200px 600px at 10% 0%, rgba(200,16,46,.08), transparent 60%),
              radial-gradient(900px 500px at 90% 10%, rgba(241,190,72,.12), transparent 55%),
              var(--bg);
  line-height:1.55;
}

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

.container{max-width:1080px; margin:0 auto; padding:0 20px}

.skip-link{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:20px; top:16px; width:auto; height:auto; padding:10px 12px;
  background:var(--surface); border:1px solid var(--line); border-radius:12px;
  box-shadow:var(--shadow); z-index:1000;
}

.site-header{
  position:sticky; top:0; z-index:999;
  background:rgba(251,251,253,.75);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(231,231,238,.8);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:14px;
}

.brand{
  display:flex; align-items:baseline; gap:10px; flex-wrap:wrap;
}
.brand .title{
  font-weight:800;
  letter-spacing:-0.02em;
}
.brand .tag{
  font-size:.92rem;
  color:var(--muted);
  border-left:2px solid rgba(200,16,46,.35);
  padding-left:10px;
}

.nav{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}
.nav a{
  font-size:.95rem;
  padding:8px 10px;
  border-radius:999px;
  color:var(--muted);
  border:1px solid transparent;
}
.nav a:hover{
  color:var(--ink);
  border-color:rgba(200,16,46,.18);
  background:rgba(200,16,46,.06);
}
.nav a.active{
  color:var(--ink);
  border-color:rgba(200,16,46,.28);
  background:rgba(241,190,72,.15);
}

.hero{
  padding:62px 0 26px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap:22px;
  align-items:stretch;
}
@media (max-width: 860px){
  .hero-grid{grid-template-columns:1fr}
}

.kicker{
  display:inline-flex; align-items:center; gap:10px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(200,16,46,.18);
  background:rgba(200,16,46,.06);
  color:var(--muted);
  font-size:.92rem;
}
.kicker .dot{
  width:9px; height:9px; border-radius:50%;
  background:linear-gradient(135deg, var(--cardinal), var(--gold));
}
h1{
  margin:16px 0 10px;
  font-size: clamp(2.0rem, 4vw, 3.15rem);
  letter-spacing:-0.03em;
  line-height:1.05;
}
.subhead{
  margin:0;
  color:var(--muted);
  font-size:1.05rem;
  max-width:65ch;
}

.hero-actions{
  display:flex; gap:12px; flex-wrap:wrap;
  margin-top:18px;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  border-radius:999px;
  padding:10px 14px;
  border:1px solid rgba(18,20,23,.10);
  background:var(--surface);
  box-shadow: 0 2px 0 rgba(18,20,23,.04);
  font-weight:650;
}
.btn:hover{transform: translateY(-1px)}
.btn.primary{
  border-color: rgba(200,16,46,.35);
  background: linear-gradient(180deg, rgba(200,16,46,.12), rgba(241,190,72,.14));
}
.btn.small{padding:8px 12px; font-weight:600}

.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.card.pad{padding:18px}
.card.soft{
  box-shadow:none;
  background:rgba(255,255,255,.8);
}

.stats{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  padding:18px;
}
.stat{
  border:1px dashed rgba(200,16,46,.25);
  background:rgba(241,190,72,.12);
  border-radius:16px;
  padding:12px 12px;
}
.stat .k{font-size:.85rem; color:var(--muted)}
.stat .v{font-weight:800}

.section{
  padding:30px 0;
}
.section-title{
  display:flex; align-items:end; justify-content:space-between; gap:16px; flex-wrap:wrap;
  margin-bottom:12px;
}
.section-title h2{
  margin:0;
  font-size:1.6rem;
  letter-spacing:-.02em;
}
.section-title p{
  margin:0;
  color:var(--muted);
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}
.col-12{grid-column:span 12}
.col-8{grid-column:span 8}
.col-6{grid-column:span 6}
.col-4{grid-column:span 4}
@media (max-width: 980px){
  .col-8,.col-6,.col-4{grid-column:span 12}
}

.project-card{
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.project-thumb{
  height:190px;
  background:
    radial-gradient(500px 220px at 30% 20%, rgba(200,16,46,.22), transparent 55%),
    radial-gradient(380px 240px at 70% 80%, rgba(241,190,72,.28), transparent 60%),
    linear-gradient(180deg, rgba(18,20,23,.03), rgba(18,20,23,.00));
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}
.project-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.thumb-label{
  position:absolute;
  left:14px; bottom:14px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(231,231,238,.9);
  color:var(--muted);
  font-size:.85rem;
}
.project-body{padding:16px}
.project-body h3{margin:0 0 8px; font-size:1.2rem}
.project-body p{margin:0 0 12px; color:var(--muted)}
.meta{
  display:flex; gap:8px; flex-wrap:wrap;
}
.pill{
  font-size:.82rem;
  color:var(--muted);
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(18,20,23,.10);
  background:rgba(255,255,255,.7);
}

.callout{
  border-left:4px solid var(--cardinal);
  padding:12px 14px;
  border-radius:14px;
  background:rgba(200,16,46,.06);
  color:var(--muted);
}

.footer{
  padding:30px 0 60px;
  color:var(--muted);
  border-top:1px solid rgba(231,231,238,.8);
  margin-top:28px;
}

.breadcrumbs{
  font-size:.92rem; color:var(--muted);
  margin:18px 0 0;
}
.breadcrumbs a{color:var(--muted)}
.breadcrumbs a:hover{color:var(--ink)}

.page{
  padding:26px 0 20px;
}
.page h1{font-size:2.2rem}
.page h2{margin:22px 0 10px}
.page ul{margin-top:8px}
.figure{
  border:1px dashed rgba(200,16,46,.25);
  background:rgba(241,190,72,.10);
  border-radius:16px;
  padding:18px;
  color:var(--muted);
}
.figure strong{color:var(--ink)}
.embed{
  width:100%;
  height:78vh;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface);
}
