/* ============================================================
   NFC Lisbon × Art on Tezos — Curation showcase
   Visual system from the figma poster: sky-blue + ink black,
   heavy grotesque display, pixel/cursor/folder playfulness.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Archivo:wght@400;500;600;700&family=Baloo+2:wght@600;700;800&family=Space+Mono:wght@400;700&family=Newsreader:ital,opsz,wght@1,6..72,500;0,6..72,600&display=swap');

:root {
  /* brand */
  --sky: #9beaff;          /* rgb(155,234,255) — page canvas */
  --sky-deep: #6fd9f5;
  --ink: #000000;          /* primary ink, type, folders */
  --paper: #ffffff;        /* content sheet */
  --paper-dim: #f3f4f6;
  --muted: #5b6066;        /* secondary text */

  /* accent (tweakable) — kicker labels, highlights */
  --accent: #1f3cff;       /* electric blue */

  /* display font (tweakable) */
  --display: 'Archivo Black', system-ui, sans-serif;
  --sans: 'Archivo', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --serif: 'Newsreader', Georgia, serif;

  --maxw: 1160px;
  --radius: 22px;
  --line: 4px;             /* heavy rule weight */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body { cursor: none; }            /* custom pixel cursor takes over on desktop */
@media (hover: none) { body { cursor: auto; } }

a { color: inherit; }

/* ---- page frame: white sheet floating on sky ---- */
.stage {
  position: relative;
  min-height: 100vh;
  padding: clamp(10px, 2.4vw, 30px);
}
.sheet {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--paper);
  border-radius: var(--radius);
  border: var(--line) solid var(--ink);
  overflow: hidden;
  z-index: 2;
}
.stage.flat .sheet {           /* "full sky" tweak — no white card */
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.pad {
  padding: clamp(22px, 4.5vw, 64px);
}

/* ============ kicker / labels ============ */
.kicker {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(0.72rem, 1.5vw, 0.92rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6em;
  flex-wrap: wrap;
}
.label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(0.66rem, 1.4vw, 0.8rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* ============ display type ============ */
.display {
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
.display.rounded { letter-spacing: 0; line-height: 0.96; }

.hero-title { font-size: clamp(2.7rem, 9.5vw, 6.4rem); }
.sec-title  { font-size: clamp(2.2rem, 8vw, 4.6rem); }

.lede {
  font-size: clamp(1.02rem, 2.3vw, 1.32rem);
  line-height: 1.5;
  max-width: 42ch;
  margin: 0;
  color: #161616;
}
.blurb {
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.62;
  color: #1b1b1b;
  margin: 0 0 1.15em;
  max-width: 60ch;
}
.blurb:last-child { margin-bottom: 0; }

/* ============ heavy rules ============ */
.rule {
  height: var(--line);
  background: var(--ink);
  border: 0;
  width: 100%;
  margin: 0;
}

/* ============ buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  letter-spacing: 0.01em;
  padding: 0.85em 1.5em;
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  transition: transform .14s var(--e, ease), background .14s, color .14s, box-shadow .14s;
  box-shadow: 0 0 0 0 var(--accent);
  white-space: nowrap;
}
.btn .arrow { transition: transform .18s ease; }
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 0 var(--ink);
}
.btn:hover .arrow { transform: translate(3px, -3px); }
.btn:active { transform: translate(0,0); box-shadow: 0 0 0 0 var(--ink); }

.btn.ghost {
  background: transparent;
  color: var(--ink);
}
.btn.ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: 6px 6px 0 0 var(--accent);
}

/* ============ artist tags ============ */
.artists {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.artist {
  font-family: var(--mono);
  font-size: clamp(0.78rem, 1.5vw, 0.9rem);
  font-weight: 400;
  line-height: 1;
  padding: 0.5em 0.75em;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  white-space: nowrap;
}
/* only clickable artists (Liquid realities) react to hover */
.artist:has(.artist-link) {
  padding: 0;
  transition: background .12s, color .12s, transform .12s;
}
.artist:has(.artist-link):hover {
  background: var(--ink);
  color: var(--sky);
  transform: translateY(-2px) rotate(-1.2deg);
}
.artist-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.5em 0.75em;
  color: inherit;
  text-decoration: none;
}
.artist-arrow {
  display: inline-flex;
  width: 0.78em;
  height: 0.78em;
}
.artist-arrow svg { width: 100%; height: 100%; }

/* ============ date folder ============ */
.folder {
  position: relative;
  display: inline-block;
  container-type: inline-size;
  color: var(--ink);
}
.folder svg { display: block; width: 100%; height: auto; }
.folder .date {
  position: absolute;
  left: 0; right: 0;
  bottom: 7%;
  text-align: center;
  font-family: var(--display);
  color: #fff;
  line-height: 0.9;
  letter-spacing: 0.01em;
  font-size: 20.5cqw;
  white-space: nowrap;
}

/* ============ pixel clusters & cursors (decoration) ============ */
.pixels { position: absolute; pointer-events: none; z-index: 1; image-rendering: pixelated; }
.deco-cursor { position: absolute; pointer-events: none; z-index: 3; color: var(--ink); }
.deco-cursor svg { display: block; }

@keyframes floaty {
  0%,100% { transform: translateY(0) rotate(var(--rot,0deg)); }
  50%     { transform: translateY(-9px) rotate(var(--rot,0deg)); }
}
.motion .deco-cursor { animation: floaty var(--dur,6s) ease-in-out infinite; }
.motion .deco-cursor.alt { animation-direction: reverse; }

@keyframes blink {
  0%, 92%, 100% { opacity: 1; }
  94%, 98% { opacity: 0.15; }
}
.motion .pixels.flicker { animation: blink 7s steps(1) infinite; }

/* custom mouse cursor */
#cursor {
  position: fixed;
  top: 0; left: 0;
  width: 30px; height: 30px;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-9px, -5px);
  will-change: transform;
  color: var(--ink);
}
#cursor svg { display: block; width: 100%; height: 100%; filter: drop-shadow(2px 2px 0 var(--sky)); }
@media (hover: none) { #cursor { display: none; } }

/* ============ NFC × Art on Tezos lockup ============ */
.lockup { display: inline-flex; align-items: center; gap: clamp(10px, 2vw, 20px); }
.lockup .nfc {
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  letter-spacing: -0.01em;
  line-height: 1;
}
.lockup .cross {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.1rem, 3vw, 1.7rem);
  transform: translateY(-1px);
}
.aot {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}
.aot .mark { display:block; }
.aot .mark svg { display:block; height: auto; }
.aot .sub { display:block; }
.aot .sub svg { display:block; height:auto; }

/* curated-by partner wordmarks */
.curated { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 22px); flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; color: var(--ink); line-height: 1; }
.wm-objkt  { font-family: var(--mono); font-weight: 700; font-size: clamp(1.4rem,3.4vw,2.1rem); letter-spacing: -0.02em; }
.wm-teia   { font-family: var(--mono); font-weight: 700; font-size: clamp(1.4rem,3.4vw,2.1rem); letter-spacing: 0.02em; }
.wm-collectors { font-family: var(--display); font-size: clamp(1.2rem,3vw,1.8rem); letter-spacing: 0.01em; display:flex; align-items:center; gap:0.04em; }
.wm-collectors .o { display:inline-block; width:0.78em; height:0.78em; border-radius:50%; background:var(--ink); transform: translateY(0.04em); }
.wm-grida  { font-family: var(--serif); font-size: clamp(1.4rem,3.4vw,2.1rem); }
.wm-grida .by { font-style: italic; font-weight: 500; margin-right: 0.14em; }
.wm-grida .nm { font-weight: 600; letter-spacing: 0.06em; }
.wm-aot .mark svg { display:block; }

/* ============ footer ============ */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.socials { display: flex; flex-direction: column; gap: 12px; }
.social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  color: var(--ink);
  transition: color .12s, transform .12s;
  width: fit-content;
}
.social:hover { color: var(--accent); transform: translateX(4px); }
.social .ic {
  display: inline-grid;
  place-items: center;
  width: 2.1em; height: 2.1em;
  border: 3px solid currentColor;
  border-radius: 10px;
}
.social .ic svg { width: 1.05em; height: 1.05em; display:block; }

/* ============ section scaffolding ============ */
.hero { position: relative; }
.curation { position: relative; }

.reveal { opacity: 0; transform: translateY(24px); }
.motion .reveal.in { transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); opacity: 1; transform: none; }
.reveal.in { opacity: 1; transform: none; }
/* if motion off, never hide content */
body:not(.motion) .reveal { opacity: 1; transform: none; }

/* ============ HERO ============ */
.hero-inner { position: relative; z-index: 4; display: flex; flex-direction: column; gap: clamp(18px, 3vw, 30px); }
.hero-toprow {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: clamp(6px, 2vw, 18px);
}
.tag {
  font-family: var(--mono); font-weight: 700; font-size: clamp(0.72rem, 1.5vw, 0.92rem);
  letter-spacing: 0.06em; text-transform: capitalize;
  padding: 0.5em 0.9em; border: 3px solid var(--ink); border-radius: 999px;
  background: var(--sky); color: var(--ink); white-space: nowrap;
}
.hero-title { margin-top: -0.1em; }
.hero-dates { display: flex; align-items: flex-end; gap: clamp(12px, 2.5vw, 22px); flex-wrap: wrap; margin-top: clamp(8px, 2vw, 18px); }
.hd-month {
  font-family: var(--display); font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  align-self: center; letter-spacing: -0.01em;
}

/* ============ CURATION blocks ============ */
.curations { position: relative; z-index: 2; }

.cur { position: relative; padding: clamp(34px, 5vw, 64px) 0; }
.cur-top { display: flex; align-items: flex-start; gap: clamp(18px, 3vw, 40px); margin-bottom: clamp(22px, 3.5vw, 40px); }
.cur-id { display: flex; flex-direction: column; gap: clamp(12px, 1.8vw, 20px); flex: 1; min-width: 0; }
.cur-id .sec-title { word-break: break-word; }
.curated { gap: clamp(12px, 2.2vw, 22px); }
.curated .label { align-self: center; }

.cur-grid { display: grid; grid-template-columns: 1fr; gap: clamp(26px, 4vw, 44px); }
.cur-main { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 30px); }
.cur-aside { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 900px) {
  .cur-grid { grid-template-columns: 1.05fr 0.95fr; gap: clamp(44px, 5vw, 84px); }
  .cur-grid-stacked { grid-template-columns: 1fr; }
}
/* stacked variant: artists sit below the text, full width */
.cur-aside-inline { margin-top: clamp(8px, 1.5vw, 16px); }

/* rows: heavy rule between sections (default, poster-like) */
.curations.as-rows .cur + .cur { border-top: var(--line) solid var(--ink); }

/* cards: each curation a bordered white card on sky */
.stage.flat .curations.as-cards { display: flex; flex-direction: column; gap: clamp(16px, 2.5vw, 26px); }
.curations.as-cards .cur {
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(26px, 4.5vw, 56px);
}
.curations.as-cards .cur:hover { transform: translateY(-3px); transition: transform .2s ease; }

/* timeline: vertical ink line with folder nodes */
.curations.as-timeline { position: relative; }
@media (min-width: 760px) {
  .curations.as-timeline { padding-left: 30px; }
  .curations.as-timeline::before {
    content: ""; position: absolute; left: 5px; top: 30px; bottom: 30px;
    width: var(--line); background: var(--ink);
  }
  .curations.as-timeline .cur-top { position: relative; }
  .curations.as-timeline .cur-top::before {
    content: ""; position: absolute; left: -33px; top: 14px;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--sky); border: var(--line) solid var(--ink);
  }
  .curations.as-timeline .cur + .cur { border-top: 2px dashed var(--ink); }
}

/* ============ FOOTER ============ */
.foot { position: relative; border-top: var(--line) solid var(--ink); }
.stage.flat .foot {
  background: var(--paper); border: var(--line) solid var(--ink); border-radius: var(--radius);
}
.foot-brand { display: flex; flex-direction: column; gap: 14px; max-width: 30ch; }
.foot-note { font-family: var(--mono); font-size: 0.84rem; line-height: 1.5; color: var(--muted); margin: 0; }

/* ============ responsive: tighten the header on small screens ============ */
@media (max-width: 640px) {
  .hero-pixels { display: none; }
  .cur-top { gap: 16px; align-items: center; }
  .folder { flex: 0 0 auto; }
  .cur-top .folder { width: 92px !important; }
  .hero-toprow { justify-content: flex-start; }
  .hero-toprow .tag { font-size: 0.8rem; padding: 0.45em 0.8em; }
}
@media (max-width: 420px) {
  .cur-top { flex-direction: row; }
  .cur-top .folder { width: 76px !important; }
}
