:root{
  --bg:#050505;
  --text:#f4f4f2;
  --muted:#8d8d8a;
  --dim:#5d5d59;
  --line:rgba(255,255,255,.10);
  --line-soft:rgba(255,255,255,.055);
  --gold:rgba(201,168,98,.9);
  --gold-a:rgba(201,168,98,.55);
  --gold-b:rgba(201,168,98,.14);
  --ease:cubic-bezier(.22,.75,.22,1);
}

*{box-sizing:border-box;margin:0;padding:0}

html{height:100%;scroll-behavior:smooth;-webkit-text-size-adjust:100%;background:var(--bg)}

body{
  height:100vh;height:100dvh;overflow:hidden;
  display:flex;
  flex-direction:column;
  background:
    radial-gradient(circle at 50% 0,rgba(255,255,255,.05),transparent 32%),
    var(--bg);
  background-attachment:fixed;
  color:var(--text);
  font-family:Inter,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

body:before{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:0;opacity:.30;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);
  background-size:72px 72px;
  mask-image:linear-gradient(to bottom,#000,transparent 88%);
  -webkit-mask-image:linear-gradient(to bottom,#000,transparent 88%);
}

body:after{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:1;opacity:.035;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode:screen;
}

a{color:inherit;text-decoration:none}
::selection{background:rgba(201,168,98,.3)}
:focus-visible{outline:2px solid #fff;outline-offset:4px}

code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:.92em;
  padding:1px 5px;
  border:1px solid var(--line);
  border-radius:3px;
  background:rgba(255,255,255,.03);
  color:#d7d7d2;
}

/* ── Header full-bleed ──────────────────────────── */
header{
  position:relative;z-index:20;flex:none;
  height:64px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:0 clamp(18px,3.5vw,42px);
  background:rgba(5,5,5,.82);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.055);
}
.network{display:flex;align-items:center;gap:10px;font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:#b9b9b5;font-weight:600}
.status{width:6px;height:6px;border-radius:50%;background:#fff;box-shadow:0 0 12px rgba(255,255,255,.7)}

.top-right{display:flex;align-items:center;gap:22px;height:100%}
.edition{font-size:9px;letter-spacing:.20em;color:#666662;text-transform:uppercase;line-height:1;display:inline-flex;align-items:center;height:100%}
.back{
  position:relative;
  display:inline-flex;align-items:center;height:100%;
  font-size:10px;letter-spacing:.20em;text-transform:uppercase;
  color:#a9a9a5;font-weight:600;line-height:1;padding:0;
  transition:color .3s cubic-bezier(.22,.75,.22,1);
}
.back:after{
  content:"";position:absolute;left:0;right:0;bottom:calc(50% - 11px);
  height:1px;background:currentColor;
  transform:scaleX(0);transform-origin:left;
  transition:transform .4s cubic-bezier(.22,.75,.22,1);
}
.back:hover{color:#fff}
.back:hover:after{transform:scaleX(1)}

/* ── Main ───────────────────────────────────────── */
main{
  flex:1;min-height:0;
  width:100%;max-width:1180px;margin:0 auto;
  display:flex;flex-direction:column;
  padding:clamp(24px,5vh,64px) clamp(18px,3.5vw,42px) 0;
  position:relative;z-index:2;
}

.hero{flex:none;max-width:640px;margin-bottom:clamp(20px,3.5vh,40px)}
.overline{
  margin-bottom:clamp(10px,1.8vh,18px);
  font-size:10px;letter-spacing:.30em;text-transform:uppercase;
  color:#8a8a86;font-weight:600;
}
h1{
  font-size:clamp(38px,min(6.6vw,8vh),76px);
  line-height:.95;
  letter-spacing:-.055em;
  font-weight:500;
  color:#f5f5f2;
  margin-bottom:clamp(14px,2.4vh,24px);
}
h1 em{
  font-family:"Playfair Display",Georgia,serif;
  font-weight:500;font-style:italic;
  letter-spacing:-.045em;
  color:#d7d7d2;
}
.description{
  max-width:460px;
  color:var(--muted);
  font-size:clamp(12px,1.6vh,14px);
  line-height:1.7;
  font-weight:400;
}

/* ── Directory heading ──────────────────────────── */
.directory{flex:1;min-height:0;display:flex;flex-direction:column}
.directory-heading{
  flex:none;
  display:flex;justify-content:space-between;align-items:center;
  padding:14px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.section-label{
  font-size:10px;letter-spacing:.22em;text-transform:uppercase;
  color:#a9a9a5;font-weight:600;
}
.section-count{
  font-size:9px;letter-spacing:.20em;text-transform:uppercase;
  color:#666662;
}

/* ── Collections grid ───────────────────────────── */
.collections{
  flex:1;min-height:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-content:start;
  border-left:1px solid var(--line);
  overflow-y:auto;overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-color:#222 transparent;
}
.collections::-webkit-scrollbar{width:6px}
.collections::-webkit-scrollbar-track{background:transparent}
.collections::-webkit-scrollbar-thumb{background:#222;border-radius:3px}
.collections::-webkit-scrollbar-thumb:hover{background:#333}
.collection{
  position:relative;
  display:flex;flex-direction:column;
  min-height:clamp(140px,21vh,185px);
  padding:clamp(16px,2.6vh,24px) 24px clamp(14px,2.4vh,22px);
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.008);
  overflow:hidden;
  transition-property:background, border-color;
  transition-duration:.4s;
  transition-timing-function:var(--ease);
}
.collection:before{
  content:"";position:absolute;top:0;left:-60%;width:35%;height:100%;
  background:linear-gradient(115deg, transparent, rgba(255,255,255,.06), transparent);
  transform:skewX(-18deg);
  transition:left .65s var(--ease);
  pointer-events:none;z-index:2;
}
.collection:hover:before{left:130%}
.collection:hover{background:rgba(255,255,255,.025)}
.collection:focus-visible{outline:2px solid #fff;outline-offset:-2px}

.collection-top{display:flex;justify-content:space-between;align-items:center}
.collection-number{
  font-size:10px;letter-spacing:.22em;text-transform:uppercase;
  color:#666662;font-weight:600;
}
.collection-arrow{
  font-size:15px;color:#666662;line-height:1;
  transition:color .3s ease, transform .35s var(--ease);
}
.collection:hover .collection-arrow{
  color:#d7d7d2;
  transform:translate(2px,-2px);
}
.collection-arrow svg{display:block;width:13px;height:13px}
.collection h2{
  margin:28px 0 8px;
  font-size:16px;
  font-weight:500;
  letter-spacing:-.02em;
  color:#f0f0ec;
}
.collection p{
  max-width:320px;
  font-size:11px;
  line-height:1.75;
  color:#858582;
}

/* ── Footer full-bleed ──────────────────────────── */
footer.bottom{
  position:relative;z-index:2;flex:none;
  width:100%;
  padding:clamp(12px,1.8vh,20px) clamp(18px,3.5vw,42px);
  border-top:1px solid var(--line-soft);
  display:flex;align-items:flex-end;justify-content:space-between;gap:18px;
}
.foot-in,
footer.bottom > .identity,
footer.bottom > .footer-code{
  /* fallback caso você não envolva em .foot-in */
}
.identity{display:flex;flex-direction:column;gap:5px}
.identity strong{font-size:9px;letter-spacing:.22em;text-transform:uppercase;color:#a9a9a5;font-weight:600}
.identity span{font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:#5d5d59}
.footer-code{font-size:9px;letter-spacing:.20em;color:#555551;text-transform:uppercase}

/* ── Telas baixas: o hero encolhe para dar espaço ao diretório ── */
@media(max-height:720px){
  .description{display:none}
  main{padding-top:20px}
}
@media(max-height:560px){
  .overline{display:none}
}

/* ── Responsive ─────────────────────────────────── */
@media(max-width:900px){
  .collections{grid-template-columns:1fr}
  .collection{min-height:0;padding:18px 20px}
  .collection h2{margin-top:20px}
}
@media(max-width:640px){
  .edition{display:none}
  .top-right{gap:16px}
  h1{font-size:clamp(34px,10vw,56px)}
  .description{font-size:clamp(11px,1.5vh,13px)}
  footer.bottom{flex-direction:column;align-items:flex-start;gap:14px}
  .identity span{max-width:190px;line-height:1.5}
}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{
    transition-duration:.01ms!important;
    transition-delay:0ms!important;
    animation:none!important;
  }
}
