/* ============================================================
   BentoRaids - "Everything in its place."
   Playful bento-grid system. Dark canvas, vivid gradient tiles.
   ============================================================ */

:root {
  --bg: #0f1220;
  --bg-2: #151932;
  --ink: #f4f5ff;
  --ink-dim: #a6abcf;
  --ink-faint: #6b7099;
  --tile: #1a1f3a;
  --tile-2: #202545;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --indigo: #6366f1;
  --indigo-2: #818cf8;
  --pink: #ec4899;
  --pink-2: #f472b6;
  --teal: #2dd4bf;
  --teal-2: #5eead4;
  --amber: #fbbf24;

  --grad-indigo: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --grad-pink: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
  --grad-teal: linear-gradient(135deg, #2dd4bf 0%, #22d3ee 100%);
  --grad-plum: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  --grad-sunset: linear-gradient(135deg, #f472b6 0%, #fbbf24 100%);

  --r: 20px;
  --r-sm: 14px;
  --r-pill: 999px;
  --gap: 16px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  --shadow-lift: 0 26px 60px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient gradient blobs floating behind everything */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.38;
  z-index: 0;
  pointer-events: none;
  animation: drift 22s ease-in-out infinite alternate;
}
.blob.b1 { width: 460px; height: 460px; background: #6366f1; top: -120px; left: -100px; }
.blob.b2 { width: 400px; height: 400px; background: #ec4899; top: 30%; right: -140px; animation-delay: -6s; }
.blob.b3 { width: 380px; height: 380px; background: #2dd4bf; bottom: -140px; left: 20%; animation-delay: -12s; }

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.12); }
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px clamp(16px, 4vw, 34px) 60px;
}

/* ------------------------------------------------------------
   NAV - itself a floating tile / pill bar
   ------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 18px;
  margin-bottom: 26px;
  background: rgba(26, 31, 58, 0.72);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.12rem;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.brand .logo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  width: 30px;
  height: 30px;
  padding: 4px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
}
.brand .logo i {
  border-radius: 3px;
  display: block;
}
.brand .logo i:nth-child(1) { background: var(--indigo); }
.brand .logo i:nth-child(2) { background: var(--pink); }
.brand .logo i:nth-child(3) { background: var(--teal); }
.brand .logo i:nth-child(4) { background: var(--amber); }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-dim);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: color 0.18s, background 0.18s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.nav-links a.active { color: var(--ink); background: rgba(255, 255, 255, 0.09); }

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--grad-indigo);
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.42);
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s;
}
.btn-discord:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 30px rgba(99, 102, 241, 0.6); }
.btn-discord:active { transform: translateY(0) scale(0.99); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
}
.nav-toggle .ico-svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------
   BENTO GRID primitives
   ------------------------------------------------------------ */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  grid-auto-flow: dense;
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--tile);
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.28s var(--ease), box-shadow 0.28s, border-color 0.28s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }

/* column spans */
.c3 { grid-column: span 3; }
.c4 { grid-column: span 4; }
.c5 { grid-column: span 5; }
.c6 { grid-column: span 6; }
.c7 { grid-column: span 7; }
.c8 { grid-column: span 8; }
.c9 { grid-column: span 9; }
.c12 { grid-column: span 12; }

/* row spans */
.r2 { grid-row: span 2; }

/* gradient tile skins */
.g-indigo { background: var(--grad-indigo); border-color: transparent; color: #fff; }
.g-pink   { background: var(--grad-pink);   border-color: transparent; color: #fff; }
.g-teal   { background: var(--grad-teal);   border-color: transparent; color: #06231f; }
.g-plum   { background: var(--grad-plum);   border-color: transparent; color: #fff; }
.g-sunset { background: var(--grad-sunset);  border-color: transparent; color: #2b1500; }

.ico-svg {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
  flex: none;
}

.chip-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1em;
  height: 1.1em;
}
.chip-ico .ico-svg { width: 100%; height: 100%; }

.tile .corner-deco {
  position: absolute;
  right: 14px;
  bottom: -8px;
  width: 5.4rem;
  height: 5.4rem;
  opacity: 0.16;
  line-height: 1;
  transform: rotate(-8deg);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile .corner-deco .ico-svg { width: 100%; height: 100%; }
.tile .corner-deco.svc-deco img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-2);
  margin: 0 0 12px;
}
.g-indigo .eyebrow, .g-pink .eyebrow, .g-plum .eyebrow { color: rgba(255, 255, 255, 0.82); }
.g-teal .eyebrow, .g-sunset .eyebrow { color: rgba(0, 0, 0, 0.6); }

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 6px 0 14px;
}
.hero-title .pop {
  background: linear-gradient(120deg, #f472b6, #fbbf24 55%, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 44ch;
  margin: 0 0 22px;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.stat-num {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label { font-size: 0.86rem; margin-top: 6px; opacity: 0.8; }

.tile h2 { margin: 0 0 8px; font-size: 1.32rem; letter-spacing: -0.02em; }
.tile h3 { margin: 0 0 6px; font-size: 1.06rem; letter-spacing: -0.01em; }
.tile p  { margin: 0; color: var(--ink-dim); font-size: 0.95rem; }
.g-indigo p, .g-pink p, .g-plum p { color: rgba(255, 255, 255, 0.86); }
.g-teal p, .g-sunset p { color: rgba(0, 0, 0, 0.66); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 46px 4px 20px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  letter-spacing: -0.03em;
  margin: 0;
}
.section-head p { color: var(--ink-dim); margin: 6px 0 0; max-width: 46ch; }

/* ------------------------------------------------------------
   SERVICES tiles
   ------------------------------------------------------------ */
.svc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.svc-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.g-indigo .svc-icon, .g-pink .svc-icon, .g-teal .svc-icon, .g-plum .svc-icon, .g-sunset .svc-icon {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.28);
}

/* ------------------------------------------------------------
   HOW / WHY strip
   ------------------------------------------------------------ */
.step-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.6;
  margin-bottom: 10px;
}

/* ------------------------------------------------------------
   TESTIMONIALS
   ------------------------------------------------------------ */
.quote {
  font-size: 1.02rem;
  line-height: 1.5;
  margin: 0 0 16px;
  color: var(--ink);
}
.g-indigo .quote, .g-pink .quote { color: #fff; }
.testi-by { display: flex; align-items: center; gap: 11px; }
.avatar {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.9rem;
  color: #fff;
}
.testi-by .who { font-weight: 600; font-size: 0.9rem; }
.testi-by .meta { font-size: 0.76rem; color: var(--ink-faint); }
.g-indigo .testi-by .meta, .g-pink .testi-by .meta { color: rgba(255,255,255,0.7); }
.tag-placeholder {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink-faint);
  margin-left: auto;
}

/* ------------------------------------------------------------
   RAIDS page
   ------------------------------------------------------------ */
.boss-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.boss-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--tile-2);
  color: var(--ink);
  padding: 11px 15px;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 500;
  transition: transform 0.16s var(--ease), border-color 0.16s, background 0.16s;
}
.boss-btn .b-thumb {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
}
.boss-btn .b-tier { font-size: 0.72rem; color: var(--ink-faint); }
.boss-btn:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.boss-btn.active {
  background: var(--grad-indigo);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.4);
}
.boss-btn.active .b-tier { color: rgba(255,255,255,0.8); }

.boss-hero {
  display: flex;
  align-items: center;
  gap: 20px;
}
.boss-hero .boss-art {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
  flex: none;
}
.boss-hero .cp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.14);
  color: #fff;
  margin-top: 8px;
}
.boss-hero .cp-badge .ico-svg { width: 14px; height: 14px; }
.type-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.16);
  color: #fff;
}
.type-ico {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: none;
}

.counter-list { display: flex; flex-direction: column; gap: 10px; }
.counter-row {
  display: grid;
  grid-template-columns: 34px 1.4fr 1fr 1.6fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  background: var(--tile-2);
  border: 1px solid var(--line);
  transition: transform 0.16s var(--ease), border-color 0.16s;
}
.counter-row:hover { transform: translateX(3px); border-color: var(--line-strong); }
.counter-row .rank {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-faint);
  text-align: center;
}
.counter-row .c-name { font-weight: 600; letter-spacing: -0.01em; }
.counter-row .c-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(129, 140, 248, 0.16);
  color: var(--indigo-2);
  justify-self: start;
}
.counter-row .c-move { font-size: 0.86rem; color: var(--ink-dim); }
.rating-wrap { display: flex; align-items: center; gap: 10px; min-width: 130px; }
.rating-bar {
  flex: 1;
  height: 8px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.rating-fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, #6366f1, #2dd4bf);
  transition: width 0.6s var(--ease);
}
.rating-num { font-weight: 700; font-size: 0.9rem; width: 30px; text-align: right; }

/* header row labels for the counter table */
.counter-head {
  display: grid;
  grid-template-columns: 34px 1.4fr 1fr 1.6fr auto;
  gap: 14px;
  padding: 0 16px 4px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.counter-head .rating-col { min-width: 130px; }

/* ------------------------------------------------------------
   FRIENDS page
   ------------------------------------------------------------ */
.note-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--ink-dim);
}
.note-strip .ns-icon {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(45, 212, 191, 0.14);
  color: var(--teal-2);
}
.note-strip .ns-icon .ico-svg { width: 20px; height: 20px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: span 2; }
.field label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.field input, .field select {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--indigo-2);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}
.field input::placeholder { color: var(--ink-faint); }

.btn-solid {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.96rem;
  color: #fff;
  cursor: pointer;
  border: none;
  padding: 13px 20px;
  border-radius: var(--r-sm);
  background: var(--grad-pink);
  box-shadow: 0 8px 22px rgba(236, 72, 153, 0.38);
  transition: transform 0.16s var(--ease), box-shadow 0.16s;
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(236, 72, 153, 0.55); }
.btn-solid:active { transform: translateY(0); }

.fc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.fc-card {
  position: relative;
  border-radius: var(--r);
  background: var(--tile);
  border: 1px solid var(--line);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.24s var(--ease), border-color 0.24s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fc-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.fc-card.mine { border-color: rgba(45, 212, 191, 0.5); }
.fc-top { display: flex; align-items: center; gap: 12px; }
.fc-team-dot {
  width: 42px; height: 42px;
  border-radius: 13px;
  display: grid; place-items: center;
  font-size: 1rem;
  font-weight: 700;
  flex: none;
  color: #fff;
}
.team-mystic   { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.team-valor    { background: linear-gradient(135deg, #ef4444, #f97316); }
.team-instinct { background: linear-gradient(135deg, #f59e0b, #fbbf24); color:#1a1500; }
.fc-name { font-weight: 700; letter-spacing: -0.01em; font-size: 1.02rem; }
.fc-sub { font-size: 0.76rem; color: var(--ink-faint); display: flex; gap: 8px; align-items: center; }
.team-badge {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--r-pill);
}
.badge-mystic   { background: rgba(99,102,241,0.2); color: #a5b4fc; }
.badge-valor    { background: rgba(239,68,68,0.2); color: #fca5a5; }
.badge-instinct { background: rgba(251,191,36,0.2); color: #fcd34d; }

.mine-flag {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: rgba(45, 212, 191, 0.18);
  color: var(--teal-2);
}

.fc-code {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  text-align: center;
}
.fc-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.fc-bumped { font-size: 0.8rem; color: var(--ink-faint); }
.btn-bump {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: var(--grad-teal);
  color: #06231f;
  transition: transform 0.16s var(--ease), filter 0.16s;
}
.btn-bump:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-bump:active { transform: translateY(0); }
.btn-bump:disabled {
  cursor: not-allowed;
  background: rgba(255,255,255,0.06);
  color: var(--ink-faint);
  border-color: var(--line);
  transform: none;
  filter: none;
}

.empty-note {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-faint);
  padding: 30px;
}

/* ------------------------------------------------------------
   BLOG index - bento post tiles
   ------------------------------------------------------------ */
.blog-bento { margin-bottom: 20px; }

.blog-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-height: 200px;
  padding: 0;
  overflow: hidden;
}
.blog-tile:hover { color: inherit; }
.blog-tile.blog-featured { min-height: 320px; }

.blog-cover {
  position: relative;
  height: 120px;
  overflow: hidden;
  background: rgba(0,0,0,0.2);
  flex: none;
}
.blog-featured .blog-cover { height: 180px; }
.blog-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.85;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.blog-tile:hover .blog-cover img {
  transform: scale(1.04);
  opacity: 1;
}
.blog-cover-fallback {
  background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(236,72,153,0.3));
}

.blog-body {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-cat {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.12);
  color: var(--teal-2);
  margin-bottom: 10px;
}
.g-indigo .blog-cat, .g-pink .blog-cat, .g-plum .blog-cat { color: rgba(255,255,255,0.9); }
.g-teal .blog-cat, .g-sunset .blog-cat { color: rgba(0,0,0,0.55); background: rgba(0,0,0,0.08); }

.blog-title {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.15;
}
.blog-featured .blog-title { font-size: clamp(1.3rem, 2.8vw, 1.8rem); }

.blog-excerpt {
  font-size: 0.9rem;
  color: var(--ink-dim);
  margin: 0 0 14px;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.g-indigo .blog-excerpt, .g-pink .blog-excerpt, .g-plum .blog-excerpt { color: rgba(255,255,255,0.82); }
.g-teal .blog-excerpt, .g-sunset .blog-excerpt { color: rgba(0,0,0,0.62); }

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: auto;
}
.g-indigo .blog-meta, .g-pink .blog-meta, .g-plum .blog-meta { color: rgba(255,255,255,0.7); }
.g-teal .blog-meta, .g-sunset .blog-meta { color: rgba(0,0,0,0.5); }

.blog-empty { text-align: center; padding: 40px 22px; }
.blog-empty h3 { margin: 0 0 8px; }

/* ------------------------------------------------------------
   BLOG post detail
   ------------------------------------------------------------ */
.post-detail {
  padding: 0;
  overflow: hidden;
}
.post-detail:not(.g-indigo):not(.g-pink):not(.g-teal):not(.g-plum):not(.g-sunset) {
  background: var(--tile);
}

.post-cover-wrap {
  height: clamp(180px, 32vw, 280px);
  overflow: hidden;
  background: rgba(0,0,0,0.25);
}
.post-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.post-header {
  padding: clamp(22px, 4vw, 36px);
  padding-bottom: 0;
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-2);
  text-decoration: none;
  margin-bottom: 16px;
  transition: opacity 0.16s;
}
.post-back:hover { opacity: 0.8; }
.g-indigo .post-back, .g-pink .post-back, .g-plum .post-back { color: rgba(255,255,255,0.85); }
.g-teal .post-back, .g-sunset .post-back { color: rgba(0,0,0,0.65); }

.post-cat {
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.12);
  color: var(--teal-2);
  margin-bottom: 12px;
}
.g-indigo .post-cat, .g-pink .post-cat, .g-plum .post-cat { color: rgba(255,255,255,0.9); }
.g-teal .post-cat, .g-sunset .post-cat { color: rgba(0,0,0,0.55); background: rgba(0,0,0,0.08); }

.post-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  line-height: 1.06;
}

.post-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.84rem;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.g-indigo .post-byline, .g-pink .post-byline, .g-plum .post-byline { color: rgba(255,255,255,0.75); }
.g-teal .post-byline, .g-sunset .post-byline { color: rgba(0,0,0,0.55); }
.post-author { font-weight: 600; }

.post-body {
  padding: clamp(18px, 3vw, 32px) clamp(22px, 4vw, 36px) clamp(28px, 4vw, 40px);
  color: var(--ink-dim);
  font-size: 1rem;
  line-height: 1.7;
}
.g-indigo .post-body, .g-pink .post-body, .g-plum .post-body { color: rgba(255,255,255,0.88); }
.g-teal .post-body, .g-sunset .post-body { color: rgba(0,0,0,0.68); }

.post-body p { margin: 0 0 14px; }
.post-body p:last-child { margin-bottom: 0; }
.post-body h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 24px 0 10px;
  color: var(--ink);
}
.g-indigo .post-body h2, .g-pink .post-body h2, .g-plum .post-body h2 { color: #fff; }
.g-teal .post-body h2, .g-sunset .post-body h2 { color: #06231f; }
.post-body ul {
  margin: 0 0 14px;
  padding-left: 1.3em;
}
.post-body li { margin-bottom: 6px; }
.post-body strong { color: var(--ink); font-weight: 600; }
.g-indigo .post-body strong, .g-pink .post-body strong, .g-plum .post-body strong { color: #fff; }
.g-teal .post-body strong, .g-sunset .post-body strong { color: #06231f; }

.post-empty { text-align: center; padding: 40px 22px; }
.post-empty h1 { margin: 0 0 10px; font-size: 1.6rem; }

/* ------------------------------------------------------------
   RELATED articles
   ------------------------------------------------------------ */
.related-grid {
  margin-bottom: 20px;
}
.rel-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  padding: 18px;
  min-height: auto;
}
.rel-card:hover { color: inherit; }
.rel-card.c4 { grid-column: span 4; }

.rel-cover {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex: none;
  background: rgba(0,0,0,0.2);
}
.rel-cover-fallback {
  display: block;
  background: linear-gradient(135deg, rgba(99,102,241,0.35), rgba(45,212,191,0.35));
}

.rel-info { min-width: 0; }
.rel-cat {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-2);
  margin-bottom: 4px;
}
.g-indigo .rel-cat, .g-pink .rel-cat, .g-plum .rel-cat { color: rgba(255,255,255,0.8); }
.g-teal .rel-cat, .g-sunset .rel-cat { color: rgba(0,0,0,0.55); }

.rel-title {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  line-height: 1.2;
}
.rel-meta {
  font-size: 0.76rem;
  color: var(--ink-faint);
}
.g-indigo .rel-meta, .g-pink .rel-meta, .g-plum .rel-meta { color: rgba(255,255,255,0.65); }
.g-teal .rel-meta, .g-sunset .rel-meta { color: rgba(0,0,0,0.5); }

/* ------------------------------------------------------------
   FOOTER - a bento tile too
   ------------------------------------------------------------ */
.footer {
  margin-top: 54px;
  border-radius: var(--r);
  background: var(--tile);
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}
.footer .f-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; }
.footer .f-cap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(45, 212, 191, 0.14);
  color: var(--teal-2);
  margin-top: 6px;
}
.footer .disclaimer {
  font-size: 0.8rem;
  color: var(--ink-faint);
  line-height: 1.6;
  max-width: 52ch;
}
.footer .f-links { display: flex; flex-direction: column; gap: 8px; }
.footer .f-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.16s;
}
.footer .f-links a:hover { color: var(--ink); }
.footer .f-copy { font-size: 0.78rem; color: var(--ink-faint); margin-top: 12px; }

/* ------------------------------------------------------------
   Reveal-on-scroll
   ------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .c3, .c4, .c5 { grid-column: span 6; }
  .c7, .c8, .c9 { grid-column: span 12; }
  .footer { grid-template-columns: 1fr; }
  .counter-row, .counter-head { grid-template-columns: 30px 1.3fr 1.4fr; }
  .counter-row .c-move, .counter-head .move-col { display: none; }
  .rel-card.c4 { grid-column: span 6; }
  .blog-tile.c8 { grid-column: span 12; }
  .blog-tile.c6, .blog-tile.c4 { grid-column: span 6; }
}

@media (max-width: 680px) {
  .nav-links { display: none; width: 100%; order: 3; }
  .nav-links.open { display: flex; }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: 12px;
    width: 42px; height: 42px;
    font-size: 1.1rem;
    cursor: pointer;
    align-items: center; justify-content: center;
  }
  .c6 { grid-column: span 12; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: span 1; }
  .counter-row, .counter-head { grid-template-columns: 28px 1fr 1fr; }
  .counter-row .c-type, .counter-head .type-col { display: none; }
  .boss-hero { flex-direction: column; text-align: center; align-items: center; }
  .rel-card.c4 { grid-column: span 12; }
  .blog-tile.c8, .blog-tile.c6, .blog-tile.c4 { grid-column: span 12; }
  .blog-tile.r2 { grid-row: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
