:root {
  --bg: #FFF6DC;
  --ink: #0B0B0B;
  --y: #FFD60A;
  --r: #E63946;
  --b: #2563EB;
  --g: #06A77D;
  --p: #F38BB0;
  --line: 4px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.display { font-family: 'Archivo Black', sans-serif; letter-spacing: -0.01em; line-height: 0.9; text-transform: uppercase; }
.mono { font-family: 'Space Mono', ui-monospace, monospace; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ---------- Top bar ---------- */
nav.top {
  border-bottom: var(--line) solid var(--ink);
  background: var(--bg);
  position: sticky; top: 0; z-index: 5;
}
nav.top .row {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.wordmark { display: flex; align-items: center; gap: 14px; }
.wordmark .logo {
  width: 44px; height: 44px;
  background: var(--y);
  border: var(--line) solid var(--ink);
  display: grid; place-items: center;
  transform: rotate(-4deg);
}
.wordmark .logo svg { width: 28px; height: 28px; display: block; }
.wordmark .name { font-family: 'Archivo Black', sans-serif; font-size: 22px; letter-spacing: -0.01em; text-transform: uppercase; }
.wordmark .name span { color: var(--r); }
nav.top .meta { display: flex; gap: 20px; align-items: center; font-size: 13px; }
nav.top .meta .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--g); border: 2px solid var(--ink);
  display: inline-block; vertical-align: middle; margin-right: 8px;
}
nav.top .links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
nav.top .links a { color: var(--ink); text-decoration: none; }
nav.top .links a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  border-bottom: var(--line) solid var(--ink);
  overflow: hidden;
}
.hero .container { padding-top: 96px; padding-bottom: 96px; }
.hero h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(64px, 11vw, 168px);
  line-height: 0.85;
  margin: 0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero h1 .pop { display: inline-block; transform: rotate(-3deg); color: var(--r); }
.hero h1 .pop2 { display: inline-block; color: var(--b); }
.hero h1 .stroke {
  -webkit-text-stroke: 4px var(--ink);
  color: var(--bg);
}
.hero .lede {
  margin-top: 32px;
  font-size: 22px;
  max-width: 620px;
  line-height: 1.4;
}
.hero .crumbs {
  display: inline-flex; gap: 10px; align-items: center;
  padding: 8px 14px;
  border: var(--line) solid var(--ink);
  background: var(--y);
  font-family: 'Space Mono', monospace;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 28px;
}
.hero .crumbs::before {
  content: ""; width: 8px; height: 8px; background: var(--ink);
}
.hero .stage {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

/* Decorative figures */
.fig { position: absolute; }
.fig svg { display: block; width: 100%; height: 100%; }
.fig.f1 { top: 80px; right: 6%; width: 180px; height: 220px; transform: rotate(8deg); }
.fig.f2 { bottom: 40px; right: 22%; width: 120px; height: 120px; transform: rotate(-6deg); }
.fig.f3 { top: 36%; right: 38%; width: 80px; height: 80px; }
.fig.f4 { bottom: 32px; right: 4%; width: 140px; height: 160px; transform: rotate(-8deg); }

@keyframes wiggle { 0%,100% { transform: rotate(var(--rot,0deg)); } 50% { transform: rotate(calc(var(--rot,0deg) + 3deg)); } }
.fig.f1 { --rot: 8deg; animation: wiggle 5s ease-in-out infinite; }
.fig.f2 { --rot: -6deg; animation: wiggle 4s ease-in-out infinite; animation-delay: -1s; }
.fig.f3 { animation: wiggle 6s ease-in-out infinite; }
.fig.f4 { --rot: -8deg; animation: wiggle 5.5s ease-in-out infinite; animation-delay: -2s; }

/* ---------- Marquee ---------- */
.marquee {
  border-bottom: var(--line) solid var(--ink);
  background: var(--ink); color: var(--bg);
  overflow: hidden;
}
.marquee .track {
  display: flex; gap: 48px; padding: 18px 0;
  font-family: 'Archivo Black', sans-serif;
  font-size: 28px; text-transform: uppercase; letter-spacing: 0.02em;
  white-space: nowrap;
  animation: scroll 28s linear infinite;
}
.marquee .track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee .track .star { color: var(--y); }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Portfolio ---------- */
section.portfolio { padding: 96px 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 32px; margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head .num {
  font-family: 'Space Mono', monospace; font-size: 14px;
  border: 3px solid var(--ink); padding: 6px 12px; background: var(--bg);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.section-head h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 0.9;
  margin: 16px 0 0 0;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.section-head .right {
  max-width: 380px; font-size: 17px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.card {
  border: var(--line) solid var(--ink);
  background: var(--bg);
  padding: 28px;
  position: relative;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 320px;
  transition: transform .15s ease;
  overflow: hidden;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.card .row1 { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.card .tag {
  font-family: 'Space Mono', monospace;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  border: 2px solid var(--ink);
  padding: 4px 8px; display: inline-block; background: var(--bg);
}
.card h3 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 38px; line-height: 0.95;
  margin: 8px 0 0 0; text-transform: uppercase; letter-spacing: -0.01em;
}
.card .desc { font-size: 15px; line-height: 1.5; max-width: 28ch; }
.card .meta {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'Space Mono', monospace; font-size: 12px; text-transform: uppercase;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
}
.card .meta a { color: inherit; text-decoration: none; }
.card .meta a:hover { text-decoration: underline; text-underline-offset: 4px; }
.card .arrow {
  width: 32px; height: 32px; border: 2px solid var(--ink);
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  border-radius: 50%;
}

.card .art {
  position: absolute; right: 12px; bottom: 56px;
  width: 130px; height: 130px;
  opacity: 0.95;
  pointer-events: none;
}

/* Color variants */
.card.k-yellow { background: var(--y); }
.card.k-red    { background: var(--r); color: var(--bg); }
.card.k-blue   { background: var(--b); color: var(--bg); }
.card.k-green  { background: var(--g); color: var(--bg); }
.card.k-pink   { background: var(--p); }
.card.k-red .tag, .card.k-blue .tag, .card.k-green .tag { color: var(--ink); background: var(--bg); }
.card.k-red .meta, .card.k-blue .meta, .card.k-green .meta { border-top-color: var(--bg); }
.card.k-red .arrow, .card.k-blue .arrow, .card.k-green .arrow { background: var(--bg); color: var(--ink); }

/* Sub-holdings (through Rubynor) */
.sub-holdings {
  margin-top: 56px;
  border: var(--line) solid var(--ink);
  background: var(--bg);
}
.sub-holdings .head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  background: var(--ink); color: var(--bg);
  gap: 16px; flex-wrap: wrap;
}
.sub-holdings .head .label {
  font-family: 'Space Mono', monospace; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.sub-holdings .head .title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px; text-transform: uppercase; letter-spacing: 0.01em;
}
.sub-holdings .head .title .arrow { color: var(--y); margin: 0 8px; }
.sub-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.sub-cell {
  padding: 28px 24px;
  border-right: 2px solid var(--ink);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 180px;
  position: relative;
  transition: background .15s ease;
}
.sub-cell:last-child { border-right: 0; }
.sub-cell:hover { background: var(--y); }
.sub-cell .gem {
  width: 28px; height: 28px;
  display: grid; place-items: center;
}
.sub-cell .gem svg { width: 100%; height: 100%; }
.sub-cell h4 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 26px; line-height: 0.95;
  margin: 4px 0 0 0; text-transform: uppercase; letter-spacing: -0.01em;
}
.sub-cell p {
  margin: 0; font-size: 13px; line-height: 1.45;
  max-width: 24ch;
}
.sub-cell .link {
  margin-top: auto;
  font-family: 'Space Mono', monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 6px;
}
.sub-cell .link::after { content: "↗"; }
@media (max-width: 900px) {
  .sub-grid { grid-template-columns: repeat(2, 1fr); }
  .sub-cell:nth-child(2) { border-right: 0; }
  .sub-cell:nth-child(1), .sub-cell:nth-child(2) { border-bottom: 2px solid var(--ink); }
}

/* sizes */
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-12 { grid-column: span 12; }

/* ---------- About strip ---------- */
.strip {
  border-top: var(--line) solid var(--ink);
  border-bottom: var(--line) solid var(--ink);
  background: var(--y);
  padding: 64px 0;
}
.strip .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.strip h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  margin: 0; line-height: 0.95;
  text-transform: uppercase; letter-spacing: -0.01em;
}
.strip p { font-size: 18px; line-height: 1.55; max-width: 52ch; }
.strip ul {
  list-style: none; padding: 0; margin: 18px 0 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px;
  font-family: 'Space Mono', monospace; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em;
}
.strip ul li { display: flex; gap: 10px; align-items: center; }
.strip ul li::before {
  content: ""; width: 14px; height: 14px; background: var(--ink);
  transform: rotate(45deg); flex-shrink: 0;
}

/* ---------- Stats / facts ---------- */
.facts { padding: 80px 0; border-bottom: var(--line) solid var(--ink); }
.facts .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: var(--line) solid var(--ink); }
.facts .cell { padding: 32px; border-right: var(--line) solid var(--ink); position: relative; }
.facts .cell:last-child { border-right: 0; }
.facts .cell .k { font-family: 'Space Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.facts .cell .v {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(40px, 5vw, 64px); line-height: 1;
  margin-top: 12px; letter-spacing: -0.02em;
}
.facts .cell .sub { margin-top: 8px; font-size: 13px; }
.facts .cell.accent-y { background: var(--y); }
.facts .cell.accent-r { background: var(--r); color: var(--bg); }
.facts .cell.accent-b { background: var(--b); color: var(--bg); }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: var(--bg); padding: 64px 0 32px; }
footer .top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
  padding-bottom: 48px; border-bottom: 2px solid var(--bg);
}
footer h4 { font-family: 'Space Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 16px 0; opacity: 0.7; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
footer a { color: var(--bg); text-decoration: none; font-size: 15px; }
footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
footer .big {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.9; text-transform: uppercase; letter-spacing: -0.02em;
  margin: 0;
}
footer .big .y { color: var(--y); }
footer .bottom {
  display: flex; justify-content: space-between; padding-top: 24px; font-family: 'Space Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; flex-wrap: wrap; gap: 16px;
}

/* mobile */
@media (max-width: 900px) {
  .grid > * { grid-column: span 12 !important; }
  .strip .container { grid-template-columns: 1fr; }
  .facts .container { grid-template-columns: repeat(2, 1fr); }
  .facts .cell:nth-child(2) { border-right: 0; }
  .facts .cell:nth-child(1), .facts .cell:nth-child(2) { border-bottom: var(--line) solid var(--ink); }
  footer .top { grid-template-columns: 1fr 1fr; }
  .fig.f1, .fig.f3 { display: none; }
  nav.top .links { display: none; }
}
