:root{
  --ink:#141312;
  --paper:#f7f3ea;
  --muted:#756f66;
  --line:#ddd3c4;
  --panel:#fffaf0;
  --accent:#ff4a2f;
  --accent-dark:#241b16;
  --shadow:0 24px 70px rgba(20,19,18,.12);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(255,74,47,.14), transparent 28rem),
    linear-gradient(180deg, #fbf8f1 0%, var(--paper) 46%, #eee6d8 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a{color:inherit}
.hero{
  min-height:82vh;
  padding:24px clamp(18px,4vw,64px) 72px;
  border-bottom:1px solid var(--line);
  position:relative;
  overflow:hidden;
}
.hero:after{
  content:"";
  position:absolute;
  inset:auto -14vw -24vw auto;
  width:58vw;height:58vw;
  border:1px solid rgba(20,19,18,.12);
  border-radius:50%;
  pointer-events:none;
}
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  font-size:14px;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.brand{text-decoration:none;font-weight:800}
.hero-grid{
  display:grid;
  grid-template-columns:minmax(260px, 1.05fr) minmax(280px, .95fr);
  gap:clamp(28px,6vw,90px);
  align-items:end;
  max-width:1320px;
  margin:9vh auto 0;
}
.overline{
  margin:0 0 16px;
  color:var(--accent);
  font-size:13px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}
h1{
  margin:0;
  font-family: Georgia, "Times New Roman", serif;
  font-size:clamp(72px,14vw,190px);
  line-height:.78;
  letter-spacing:-.08em;
}
.subtitle{
  margin:24px 0 0;
  font-size:clamp(18px,2.2vw,30px);
  color:var(--muted);
}
.intro{
  padding:clamp(24px,4vw,42px);
  background:rgba(255,250,240,.72);
  backdrop-filter:blur(16px);
  box-shadow:var(--shadow);
  border:1px solid rgba(221,211,196,.8);
  border-radius:28px;
  font-family:Georgia, "Times New Roman", serif;
  font-size:clamp(20px,2vw,30px);
  line-height:1.22;
}
main{padding:0 clamp(18px,4vw,64px)}
section{max-width:1320px;margin:0 auto}
.nucleos{padding:76px 0 48px}
h2{
  font-family:Georgia, "Times New Roman", serif;
  font-size:clamp(42px,6vw,92px);
  line-height:.92;
  margin:0 0 28px;
  letter-spacing:-.05em;
}
.nucleo-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:18px;
}
.nucleo-grid article{
  padding:28px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:26px;
}
.nucleo-grid span{
  display:inline-grid;
  place-items:center;
  width:52px;height:52px;
  border-radius:50%;
  background:var(--ink);
  color:var(--paper);
  font-weight:900;
}
.nucleo-grid h3{font-size:28px;margin:22px 0 8px}
.nucleo-grid p{font-size:18px;line-height:1.45;color:var(--muted)}
.catalogue{padding:56px 0}
.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:26px;
}
.filters{display:flex;flex-wrap:wrap;gap:10px}
.filter,.btn{
  border:1px solid var(--ink);
  border-radius:999px;
  padding:11px 16px;
  background:transparent;
  color:var(--ink);
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
}
.filter.active,.filter:hover,.btn.primary{
  background:var(--ink);
  color:var(--paper);
}
.btn.disabled{
  border-color:var(--line);
  color:var(--muted);
  cursor:not-allowed;
}
.works-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:18px;
}
.work-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(20,19,18,.06);
  display:flex;
  flex-direction:column;
}
.work-card[hidden]{display:none}

.cover-wrap{
  height:420px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#faf7f0;
  border-bottom:1px solid var(--line);
  padding:12px;
}

.cover-wrap img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  transition:transform .5s ease;  
  box-shadow:0 8px 24px rgba(0,0,0,.12);  
}

.work-card:hover img{transform:scale(1.035)}
.work-info{padding:18px;display:flex;flex-direction:column;gap:10px;flex:1}
.eyebrow{margin:0;color:var(--accent);font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.work-info h3{
  margin:0;
  font-family:Georgia, "Times New Roman", serif;
  font-size:25px;
  line-height:1.02;
  letter-spacing:-.03em;
}
.meta{margin:0;color:var(--muted);font-weight:800}
.reference{margin:0;color:#3d3832;line-height:1.35;font-size:15px}
.actions{margin-top:auto;padding-top:8px}
.note{
  margin-top:28px;
  margin-bottom:72px;
  padding:24px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  color:var(--muted);
  font-style:italic;
  font-size:16px;
}
footer{
  padding:34px clamp(18px,4vw,64px);
  border-top:1px solid var(--line);
  color:var(--muted);
}
@media (max-width:1100px){
  .works-grid{grid-template-columns:repeat(3, minmax(0,1fr))}
}
@media (max-width:820px){
  .hero-grid,.nucleo-grid{grid-template-columns:1fr}
  .section-head{align-items:start;flex-direction:column}
  .works-grid{grid-template-columns:repeat(2, minmax(0,1fr))}
}
@media (max-width:560px){
  .topbar{align-items:flex-start;flex-direction:column}
  .works-grid{grid-template-columns:1fr}
  .intro{font-size:20px}
  .filter,.btn{width:100%;text-align:center}
}


.loading,.error{
  grid-column:1/-1;
  padding:28px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:24px;
  color:var(--muted);
}
.error h3{margin:0 0 8px;color:var(--ink)}
.error code{
  background:#eee6d8;
  padding:2px 6px;
  border-radius:6px;
}
