/* ── Conn.re shared design language ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@700;800;900&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
button { outline: none; -webkit-tap-highlight-color: transparent; font-family: inherit; }

:root {
  --cat-bg: #0093d0;
  --cat-fg: #fff;
  --cat-ink: #000;
  --c-photography: #0093d0;
  --c-travel:      #61b346;
  --c-notepad:     #f9c900;
  --c-banking:     #f5a623;
  --c-social:      #f47920;
  --c-mail:        #e8392d;
  --c-sports:      #8b5ea6;
}

html, body {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  background: var(--cat-bg);
  color: var(--cat-fg);
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

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

/* ── Page chrome ── */
.page {
  min-height: 100vh;
  padding: 80px 80px 80px 80px;
  position: relative;
}

/* ── Vertical category label, left edge ── */
.v-label {
  position: fixed;
  top: 0;
  left: 30px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
}
.v-label span {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 130px;
  color: var(--cat-ink);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  line-height: 0.9;
  white-space: nowrap;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: labelReveal 0.4s cubic-bezier(0.22,1,0.36,1) 0.06s forwards;
}
@keyframes labelReveal {
  from { opacity: 0; transform: rotate(180deg) translateY(60px); }
  to   { opacity: 1; transform: rotate(180deg) translateY(0); }
}

/* ── Top header strip (//Conn.re + back) ── */
.top-strip {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 80px;
  z-index: 50;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cat-ink);
}
.top-strip .crumb { display: flex; align-items: center; gap: 16px; }
.top-strip .crumb .sep { opacity: 0.4; }
.top-strip .crumb .cur { color: var(--cat-fg); }
.top-strip .back {
  border: 2px solid var(--cat-ink);
  background: var(--cat-ink);
  color: var(--cat-bg);
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.15s, filter 0.15s;
  font-size: 12px;
}
.top-strip .back:hover { filter: brightness(1.1); transform: translateX(-3px); }

/* Crumb — home link */
.top-strip .crumb .home-link {
  color: inherit;
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 0.15s;
}
.top-strip .crumb .home-link:hover { opacity: 1; }

/* Crumb — current page is a dropdown trigger */
.top-strip .crumb .cur-wrap {
  position: relative;
}
.top-strip .crumb .cur-btn {
  background: none;
  border: none;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cat-fg);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-strip .crumb .cur-btn .arr {
  font-size: 9px;
  opacity: 0.55;
  transition: transform 0.15s;
}
.cur-wrap.open .cur-btn .arr { transform: rotate(180deg); }

/* Dropdown nav */
.crumb-nav {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: #000;
  color: #fff;
  min-width: 220px;
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.15s, transform 0.15s;
  z-index: 200;
}
.cur-wrap.open .crumb-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.crumb-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: padding-left 0.12s, background 0.12s;
}
.crumb-nav a:last-child { border-bottom: none; }
.crumb-nav a:hover { padding-left: 22px; background: rgba(255,255,255,0.06); }
.crumb-nav a.active { color: var(--cat-bg); }
.crumb-nav a .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cat-bg);
  flex-shrink: 0;
  opacity: 0;
}
.crumb-nav a.active .dot { opacity: 1; }

/* ── Main content shell, sits next to vertical label ── */
.shell {
  margin-left: 220px;
  padding-top: 30px;
}

/* ── Category title row ── */
.cat-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 4px solid var(--cat-ink);
  padding-bottom: 18px;
  margin-bottom: 28px;
}
.cat-title {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(56px, 6vw, 96px);
  color: var(--cat-fg);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  flex: 1;
  min-width: 0;
}
.cat-meta {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  padding-bottom: 8px;
  color: var(--cat-ink);
  flex-shrink: 0;
}
.cat-meta .m {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cat-meta .m b { font-size: 22px; color: var(--cat-fg); letter-spacing: -0.01em; text-transform: none; font-weight: 800; }

/* ── Generic blocky tile ── */
.tile {
  background: rgba(0,0,0,0.12);
  border-radius: 2px;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
}
.tile.solid-ink { background: var(--cat-ink); color: var(--cat-fg); }
.tile.white { background: #fff; color: #000; }
.tile.outline { background: transparent; border: 2px solid var(--cat-ink); }
.tile h3 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0.7;
}
.tile .big {
  font-size: 56px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.tile .sub {
  font-size: 12px;
  font-weight: 700;
  margin-top: 10px;
  opacity: 0.7;
  letter-spacing: 0.02em;
}

/* ── Printer marks ── */
.pm { position: fixed; pointer-events: none; z-index: 99999; }
.pm.cross { width: 24px; height: 24px; }
.pm.cross::before, .pm.cross::after { content: ''; position: absolute; background: var(--cat-ink); }
.pm.cross::before { width: 1px; height: 100%; left: 50%; top: 0; }
.pm.cross::after  { height: 1px; width: 100%; top: 50%; left: 0; }
.pm.tl { top: 18px; left: 18px; }
.pm.tr { top: 18px; right: 18px; }
.pm.bl { bottom: 18px; left: 18px; }
.pm.br { bottom: 18px; right: 18px; }

.pm.tick { background: var(--cat-ink); }
.pm.tick.tl2 { top: 48px; left: 14px; width: 16px; height: 4px; }
.pm.tick.tr2 { top: 48px; right: 14px; width: 16px; height: 4px; }
.pm.tick.bl2 { bottom: 48px; left: 14px; width: 16px; height: 4px; }
.pm.tick.br2 { bottom: 48px; right: 14px; width: 16px; height: 4px; }
.pm.tick.tl3 { top: 14px; left: 48px; width: 4px; height: 16px; }
.pm.tick.tr3 { top: 14px; right: 48px; width: 4px; height: 16px; }
.pm.tick.bl3 { bottom: 14px; left: 48px; width: 4px; height: 16px; }
.pm.tick.br3 { bottom: 14px; right: 48px; width: 4px; height: 16px; }

.pm.swatches-tr { top: 14px; right: 52px; display: flex; gap: 3px; transition: opacity 0.3s ease; }
.pm.swatches-bl { bottom: 14px; left: 52px; display: flex; gap: 3px; }
.pm.swatches-tr .sw, .pm.swatches-bl .sw { width: 14px; height: 14px; }

.pm.reg-tc { top: 10px; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; transition: opacity 0.3s ease; }
.pm.reg-bc { bottom: 10px; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; transition: opacity 0.3s ease; }
.pm.reg-tc svg circle, .pm.reg-tc svg line,
.pm.reg-bc svg circle, .pm.reg-bc svg line { stroke: var(--cat-ink); }
.pm.reg-tc svg circle[fill="#000"], .pm.reg-bc svg circle[fill="#000"] { fill: var(--cat-ink); }

/* Transitions on all print marks */
.pm { transition: opacity 0.3s ease; }

/* Hide ALL print marks on scroll, keep .top-strip visible */
body.scrolled .pm,
body.scrolled .page-id {
  opacity: 0;
  pointer-events: none;
}

/* Page label ID strip */
.page-id {
  position: fixed;
  bottom: 36px;
  right: 80px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cat-ink);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
  transition: opacity 0.3s ease;
}
.page-id .dot { width: 8px; height: 8px; background: var(--cat-ink); border-radius: 50%; }

/* ── Reveal animations ── */
@keyframes blockIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.blk { opacity: 0; animation: blockIn 0.45s cubic-bezier(0.22,1,0.36,1) both; }

@keyframes wipeIn {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
.wipe { animation: wipeIn 0.6s cubic-bezier(0.22,1,0.36,1) both; }

/* ── Common section label ── */
.sec-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cat-ink);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-label::before {
  content: '';
  width: 18px;
  height: 4px;
  background: var(--cat-ink);
}

/* ── Big two-column grid ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }

/* ── List rows (sub-pages style) ── */
.list-rows .lrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  background: rgba(0,0,0,0.1);
  border-radius: 2px;
  cursor: pointer;
  transition: padding 0.18s, background 0.18s;
  margin-bottom: 4px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.list-rows .lrow:hover { padding-left: 36px; background: var(--cat-ink); color: var(--cat-bg); }
.list-rows .lrow .num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

/* ── Util ── */
.flex { display: flex; }
.col  { flex-direction: column; }
.gap-6 { gap: 6px; }
.gap-12 { gap: 12px; }
.flex-1 { flex: 1; min-width: 0; }
