/* ============================================================
   GildedGo - "Raiding, refined."
   Aesthetic: LUXURY GOLD ON DARK. Haute-couture catalogue.
   Near-black ground, hairline gold, engraved Cinzel capitals,
   Cormorant body, generous negative space, quiet shimmer.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&display=swap');

:root {
  --ink:        #0c0c0d;
  --ink-2:      #111013;
  --ink-3:      #17161a;
  --panel:      #131217;
  --gold:       #d4af37;
  --gold-soft:  #c9a94a;
  --gold-bright:#f0d783;
  --gold-deep:  #8f7223;
  --gold-line:  rgba(212, 175, 55, 0.28);
  --gold-faint: rgba(212, 175, 55, 0.10);
  --grey:       #b8b0a2;
  --grey-dim:   #837c6e;
  --grey-mute:  #5b554b;
  --paper:      #ece7db;

  --serif:  'Cinzel', serif;
  --body:   'Cormorant Garamond', 'Cinzel', serif;

  --maxw: 1180px;
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(212,175,55,0.08) 0%, rgba(212,175,55,0) 55%),
    radial-gradient(90% 60% at 50% 120%, rgba(212,175,55,0.05) 0%, rgba(212,175,55,0) 60%);
  color: var(--grey);
  font-family: var(--body);
  font-size: 20px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint film-grain over the whole ground for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

/* ---------- typography helpers ---------- */
.overline {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
}
.eyebrow-num {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--grey-mute);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--paper); margin: 0; }

/* gold hairline rule with a centred lozenge ornament */
.rule {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 auto;
}
.rule::before, .rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold-line) 40%, var(--gold-line) 60%, transparent);
}
.rule .lozenge { color: var(--gold); font-size: 12px; letter-spacing: 0.2em; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12,12,13,0.72);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--gold-faint);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.monogram {
  width: 40px; height: 40px;
  border: 1px solid var(--gold-line);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--gold);
  position: relative;
  transition: border-color 0.5s var(--ease), color 0.5s var(--ease);
}
.monogram::after {
  content: "";
  position: absolute; inset: 4px;
  border: 1px solid var(--gold-faint);
}
.brand:hover .monogram { border-color: var(--gold); color: var(--gold-bright); }
.brand-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--paper);
  text-transform: uppercase;
}
.brand-name b { color: var(--gold); font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.4s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--paper); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* Gold Discord button, quiet shimmer sweep on hover */
.btn-discord {
  --sheen: rgba(255,255,255,0.55);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  padding: 13px 26px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  box-shadow: 0 0 0 1px rgba(212,175,55,0.4), 0 10px 30px -12px rgba(212,175,55,0.5);
}
.btn-discord::before {
  content: "";
  position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, var(--sheen), transparent);
  transform: skewX(-18deg);
  transition: left 0.75s var(--ease);
}
.btn-discord:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--gold), 0 16px 40px -14px rgba(212,175,55,0.65); }
.btn-discord:hover::before { left: 130%; }
.nav .btn-discord { flex: none; }

/* Ghost / outline gold button */
.btn-ghost {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold-line);
  padding: 13px 26px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.45s var(--ease), color 0.45s var(--ease), background 0.45s var(--ease);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); background: var(--gold-faint); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 120px 0 96px;
  text-align: center;
  z-index: 2;
}
.hero-frame {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 72px 48px 60px;
  border: 1px solid var(--gold-line);
}
/* corner ticks on the frame */
.hero-frame::before, .hero-frame::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--gold);
}
.hero-frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.hero-frame::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.hero-crest {
  width: 62px; height: 62px;
  margin: 0 auto 30px;
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--gold);
  transform: rotate(45deg);
  position: relative;
}
.hero-crest span { transform: rotate(-45deg); }
.hero-crest::after { content: ""; position: absolute; inset: 5px; border: 1px solid var(--gold-faint); }

.hero h1 {
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.98;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--paper);
  text-shadow: 0 2px 40px rgba(212,175,55,0.12);
}
.hero h1 .gild {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .tagline {
  font-family: var(--body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--grey);
  margin: 26px 0 6px;
  letter-spacing: 0.02em;
}
.hero .lede {
  max-width: 540px;
  margin: 20px auto 40px;
  font-size: 19px;
  font-weight: 300;
  color: var(--grey-dim);
  line-height: 1.6;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-meta {
  margin-top: 54px;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.hero-meta .stat { text-align: center; }
.hero-meta .stat .num {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.hero-meta .stat .lbl {
  display: block;
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--grey-mute);
}

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { position: relative; z-index: 2; padding: 96px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-head .overline { margin-bottom: 20px; }
.section-head h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: 0.05em;
  line-height: 1.05;
  color: var(--paper);
}
.section-head p {
  margin: 22px 0 0;
  font-size: 19px;
  font-weight: 300;
  color: var(--grey-dim);
}

/* ---------- Services: catalogue grid ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--gold-line);
  border-left: 1px solid var(--gold-line);
}
.svc {
  position: relative;
  padding: 44px 36px 40px;
  border-right: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  overflow: hidden;
  transition: background 0.55s var(--ease);
}
.svc::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, var(--gold-faint), transparent 70%);
  opacity: 0;
  transition: opacity 0.55s var(--ease);
}
.svc:hover { background: var(--ink-2); }
.svc:hover::before { opacity: 1; }
.svc-num {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--grey-mute);
  position: relative;
}
.svc-icon {
  margin: 22px 0 18px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--gold-faint);
  background: var(--ink);
  transition: transform 0.55s var(--ease), border-color 0.55s var(--ease);
}
.svc-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: saturate(1.05);
}
.svc:hover .svc-icon {
  transform: translateY(-3px);
  border-color: var(--gold-line);
}
.svc h3 {
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--paper);
  position: relative;
  margin-bottom: 12px;
}
.svc p {
  font-size: 17px;
  font-weight: 300;
  color: var(--grey-dim);
  line-height: 1.55;
  position: relative;
  margin: 0;
}
.svc .svc-hair {
  width: 26px; height: 1px; background: var(--gold);
  margin: 0 0 18px; position: relative;
  transition: width 0.55s var(--ease);
}
.svc:hover .svc-hair { width: 48px; }

/* ---------- Why-us strip ---------- */
.ethos {
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  padding: 72px 0;
}
.ethos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.ethos-item { text-align: center; padding: 0 12px; }
.ethos-item .glyph {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--gold);
  border: 1px solid var(--gold-line);
  width: 58px; height: 58px;
  display: grid; place-items: center;
  margin: 0 auto 24px;
  transform: rotate(45deg);
}
.ethos-item .glyph span { transform: rotate(-45deg); }
.ethos-item h3 { font-size: 18px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper); margin-bottom: 14px; }
.ethos-item p { font-size: 17px; font-weight: 300; color: var(--grey-dim); margin: 0; }

/* ---------- Testimonials ---------- */
.testis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testi {
  border: 1px solid var(--gold-line);
  padding: 46px 34px 34px;
  position: relative;
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.testi:hover { transform: translateY(-4px); border-color: var(--gold); }
.testi .mark {
  font-family: var(--serif);
  font-size: 66px;
  line-height: 0.5;
  color: var(--gold);
  opacity: 0.5;
  display: block;
  height: 26px;
}
.testi blockquote {
  margin: 18px 0 26px;
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  color: var(--paper);
  line-height: 1.5;
}
.testi .by { display: flex; align-items: center; gap: 12px; }
.testi .by .who { font-family: var(--serif); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.testi .by .role { font-size: 15px; color: var(--grey-mute); font-style: italic; }
.testi .disc { font-size: 12px; color: var(--grey-mute); letter-spacing: 0.06em; margin-top: 4px; }

/* closing call band */
.closing {
  text-align: center;
  padding: 110px 0 120px;
}
.closing h2 { font-size: clamp(34px, 5vw, 60px); letter-spacing: 0.05em; color: var(--paper); }
.closing p { max-width: 500px; margin: 22px auto 40px; font-weight: 300; color: var(--grey-dim); }

/* ============================================================
   RAIDS PAGE
   ============================================================ */
.page-hero {
  padding: 92px 0 40px;
  text-align: center;
  position: relative; z-index: 2;
}
.page-hero .overline { margin-bottom: 22px; }
.page-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: 0.06em;
  color: var(--paper);
}
.page-hero p { max-width: 560px; margin: 22px auto 0; font-weight: 300; color: var(--grey-dim); }

.raid-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  border: 1px solid var(--gold-line);
  margin-bottom: 40px;
}
.boss-list {
  border-right: 1px solid var(--gold-line);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--ink-2);
}
.boss-btn {
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: var(--grey-dim);
  padding: 16px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--body);
  transition: all 0.4s var(--ease);
  position: relative;
}
.boss-btn .b-art {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-faint);
  background: var(--ink);
}
.boss-btn .b-art img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.boss-btn .b-txt { flex: 1; }
.boss-btn .b-name {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--paper);
  display: block;
}
.boss-btn .b-tier {
  font-size: 14px;
  color: var(--grey-mute);
  font-style: italic;
  letter-spacing: 0.04em;
}
.boss-btn:hover { border-color: var(--gold-line); background: var(--ink-3); }
.boss-btn.active {
  background: linear-gradient(90deg, var(--gold-faint), transparent);
  border-color: var(--gold-line);
}
.boss-btn.active::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 2px; background: var(--gold);
}
.boss-btn.active .b-name { color: var(--gold-bright); }

.counter-panel { padding: 40px 44px; position: relative; }
.counter-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 26px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--gold-line);
  flex-wrap: wrap;
}
.counter-header .ch-title { display: flex; align-items: center; gap: 18px; }
.counter-header .ch-art {
  width: 84px;
  height: 84px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-line);
  background: var(--ink-2);
}
.counter-header .ch-art img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}
.counter-header h2 { font-size: 34px; letter-spacing: 0.05em; color: var(--paper); }
.counter-header .ch-sub {
  font-family: var(--serif);
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-top: 8px; display: block;
}
.counter-header .ch-types { display: flex; gap: 8px; margin-top: 4px; }
.type-chip {
  font-family: var(--serif);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--grey); border: 1px solid var(--gold-line);
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.type-icon {
  display: block;
  flex: none;
  object-fit: contain;
}
.counter-header .ch-cp { text-align: right; }
.counter-header .ch-cp .cp-num { font-family: var(--serif); font-size: 30px; color: var(--gold); font-weight: 600; }
.counter-header .ch-cp .cp-lbl { font-family: var(--serif); font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--grey-mute); display: block; margin-top: 4px; }

.counter-list { list-style: none; margin: 8px 0 0; padding: 0; }
.counter-row {
  display: grid;
  grid-template-columns: 34px 1.4fr 0.7fr 1.3fr 130px;
  align-items: center;
  gap: 18px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--gold-faint);
  transition: background 0.4s var(--ease);
}
.counter-row:hover { background: var(--ink-2); }
.counter-row .rank {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--grey-mute);
}
.counter-row .c-name { font-family: var(--serif); font-size: 19px; letter-spacing: 0.03em; color: var(--paper); }
.counter-row .c-type {
  font-size: 15px;
  font-style: italic;
  color: var(--gold-soft);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.counter-row .c-move { font-size: 16px; color: var(--grey-dim); }
.counter-row .c-rate { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.rate-bar { flex: 1; height: 3px; background: var(--ink-3); position: relative; overflow: hidden; }
.rate-bar > i {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  display: block;
  transform-origin: left;
}
.rate-num { font-family: var(--serif); font-size: 16px; color: var(--gold); width: 34px; text-align: right; }

.counter-caption { text-align: center; font-style: italic; font-weight: 300; color: var(--grey-mute); font-size: 16px; margin-top: 8px; }

/* ============================================================
   FRIENDS PAGE
   ============================================================ */
.friends-note {
  text-align: center;
  font-style: italic;
  font-weight: 300;
  color: var(--grey-dim);
  font-size: 18px;
  border: 1px solid var(--gold-line);
  padding: 16px 24px;
  max-width: 720px;
  margin: 0 auto 48px;
  position: relative;
}
.friends-note b { color: var(--gold); font-style: normal; font-weight: 500; }

.friends-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: start;
}
.add-card {
  border: 1px solid var(--gold-line);
  padding: 38px 34px;
  position: relative;
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  position: sticky;
  top: 108px;
}
.add-card::before {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 16px; height: 16px; border-top: 1px solid var(--gold); border-left: 1px solid var(--gold);
}
.add-card::after {
  content: ""; position: absolute; bottom: -1px; right: -1px;
  width: 16px; height: 16px; border-bottom: 1px solid var(--gold); border-right: 1px solid var(--gold);
}
.add-card h3 { font-size: 22px; letter-spacing: 0.06em; color: var(--paper); }
.add-card .sub { font-size: 16px; font-style: italic; font-weight: 300; color: var(--grey-mute); margin: 8px 0 28px; }

.field { margin-bottom: 22px; }
.field label {
  font-family: var(--serif);
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-soft); display: block; margin-bottom: 10px;
}
.field input, .field select {
  width: 100%;
  background: var(--ink);
  border: none;
  border-bottom: 1px solid var(--gold-line);
  color: var(--paper);
  font-family: var(--body);
  font-size: 19px;
  padding: 10px 2px;
  outline: none;
  transition: border-color 0.4s var(--ease);
  appearance: none;
  border-radius: 0;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d4af37' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}
.field input::placeholder { color: var(--grey-mute); font-style: italic; }
.field input:focus, .field select:focus { border-color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.add-card .btn-discord { width: 100%; justify-content: center; margin-top: 8px; }
.form-hint { font-size: 14px; color: var(--grey-mute); font-style: italic; margin-top: 14px; text-align: center; }

.directory-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 16px; margin-bottom: 8px;
}
.directory-head h3 { font-size: 20px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper); }
.directory-head .count { font-family: var(--serif); font-size: 13px; letter-spacing: 0.18em; color: var(--grey-mute); }

.code-list { list-style: none; margin: 0; padding: 0; }
.code-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 24px 6px;
  border-bottom: 1px solid var(--gold-faint);
  transition: background 0.4s var(--ease);
}
.code-row:hover { background: var(--ink-2); }
.team-crest {
  width: 48px; height: 48px;
  border: 1px solid var(--gold-line);
  display: grid; place-items: center;
  font-size: 22px;
  transform: rotate(45deg);
  flex: none;
}
.team-crest .team-svg { transform: rotate(-45deg); display: block; }
.team-mystic  { border-color: rgba(90,140,220,0.5); box-shadow: inset 0 0 18px rgba(70,120,210,0.14); }
.team-valor   { border-color: rgba(210,90,80,0.5);  box-shadow: inset 0 0 18px rgba(200,70,60,0.14); }
.team-instinct{ border-color: rgba(220,190,70,0.55); box-shadow: inset 0 0 18px rgba(215,185,60,0.16); }

.code-info .c-trainer {
  font-family: var(--serif);
  font-size: 19px; letter-spacing: 0.05em; color: var(--paper);
  display: flex; align-items: center; gap: 12px;
}
.mine-tag {
  font-family: var(--serif);
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink); background: var(--gold); padding: 3px 8px;
}
.code-info .c-digits {
  font-family: var(--serif);
  font-size: 17px; letter-spacing: 0.14em; color: var(--gold-soft);
  margin: 6px 0 4px;
}
.code-info .c-meta { font-size: 15px; color: var(--grey-mute); font-style: italic; }
.code-info .c-meta .dot { color: var(--gold-line); margin: 0 8px; }
.team-label { text-transform: capitalize; }

.bump-btn {
  font-family: var(--serif);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold-line);
  padding: 12px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.4s var(--ease);
  flex: none;
}
.bump-btn:hover:not(:disabled) { border-color: var(--gold); background: var(--gold-faint); color: var(--gold-bright); }
.bump-btn:disabled {
  color: var(--grey-mute);
  border-color: var(--gold-faint);
  cursor: not-allowed;
  font-style: italic;
  letter-spacing: 0.1em;
  text-transform: none;
}

.empty-note { text-align: center; font-style: italic; color: var(--grey-mute); padding: 40px 0; }

/* ============================================================
   BLOG - editorial gallery index
   ============================================================ */
.blog-gallery { position: relative; }

.blog-featured {
  margin-bottom: 0;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-left: 1px solid var(--gold-line);
}

.blog-card {
  border-right: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  background: var(--ink);
  transition: background 0.5s var(--ease);
}
.blog-card:hover { background: var(--ink-2); }

.blog-card-link {
  display: grid;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.blog-card--featured .blog-card-link {
  grid-template-columns: 1.1fr 1fr;
  min-height: 380px;
}
.blog-card:not(.blog-card--featured) .blog-card-link {
  grid-template-columns: 1fr;
}

.blog-card-cover {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--gold-line);
  background: var(--ink-2);
  min-height: 220px;
}
.blog-card:not(.blog-card--featured) .blog-card-cover {
  border-right: none;
  border-bottom: 1px solid var(--gold-line);
  min-height: 200px;
}
.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.blog-card:hover .blog-card-cover img {
  opacity: 1;
  transform: scale(1.03);
}
.blog-card-cover--empty {
  display: grid;
  place-items: center;
}
.blog-card-cover--empty .monogram {
  width: 56px;
  height: 56px;
  font-size: 20px;
  opacity: 0.5;
}

.blog-card-body {
  padding: 40px 36px 44px;
  display: flex;
  flex-direction: column;
}
.blog-card--featured .blog-card-body { padding: 52px 48px; }

.blog-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-mute);
}
.blog-num {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.3em;
}
.blog-rule {
  flex: 1;
  min-width: 40px;
  height: 1px;
  background: var(--gold-faint);
}
.blog-category { color: var(--gold-soft); }
.blog-read { font-style: italic; letter-spacing: 0.1em; text-transform: none; }

.blog-card h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--paper);
  margin: 0 0 18px;
  transition: color 0.4s var(--ease);
}
.blog-card--featured h2 {
  font-size: clamp(32px, 4vw, 52px);
}
.blog-card:hover h2 { color: var(--gold-bright); }

.blog-excerpt {
  font-size: 18px;
  font-weight: 300;
  color: var(--grey-dim);
  line-height: 1.6;
  margin: 0 0 24px;
  flex: 1;
}
.blog-card--featured .blog-excerpt { font-size: 19px; }

.blog-cta {
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}
.blog-cta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.blog-card:hover .blog-cta::after { transform: scaleX(1); }

.blog-empty {
  text-align: center;
  border: 1px solid var(--gold-line);
  padding: 72px 40px;
  max-width: 560px;
  margin: 0 auto;
}
.blog-empty h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.05em;
  color: var(--paper);
  margin-bottom: 16px;
}
.blog-empty p {
  font-size: 19px;
  font-weight: 300;
  color: var(--grey-dim);
  margin: 0;
}

/* ============================================================
   BLOG - single post + related
   ============================================================ */
.post-page { padding-top: 48px; padding-bottom: 96px; }

.post-back {
  margin: 0 0 40px;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.post-back a {
  color: var(--grey-dim);
  transition: color 0.4s var(--ease);
}
.post-back a:hover { color: var(--gold); }

.post-article {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--gold-line);
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
}

.post-cover {
  border-bottom: 1px solid var(--gold-line);
  overflow: hidden;
  max-height: 380px;
}
.post-cover img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  opacity: 0.92;
}

.post-header {
  padding: 48px 48px 32px;
  border-bottom: 1px solid var(--gold-faint);
}
.post-header .post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-mute);
}
.post-rule {
  flex: 1;
  min-width: 40px;
  height: 1px;
  background: var(--gold-faint);
}
.post-category { color: var(--gold-soft); }
.post-read { font-style: italic; letter-spacing: 0.1em; text-transform: none; }

.post-header h1 {
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: 0.04em;
  line-height: 1.06;
  color: var(--paper);
  margin: 0 0 16px;
}
.post-author {
  font-size: 17px;
  font-style: italic;
  color: var(--grey-mute);
  margin: 0;
}

.post-body {
  padding: 40px 48px 56px;
  font-size: 20px;
  font-weight: 300;
  color: var(--grey);
  line-height: 1.72;
}
.post-body p { margin: 0 0 20px; }
.post-body p:last-child { margin-bottom: 0; }
.post-body h2 {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.05em;
  color: var(--paper);
  margin: 36px 0 16px;
}
.post-body ul {
  margin: 0 0 20px;
  padding-left: 1.4em;
}
.post-body li { margin-bottom: 8px; }

.related-section {
  margin-top: 80px;
  padding-top: 56px;
  border-top: 1px solid var(--gold-line);
}
.related-head {
  text-align: center;
  margin-bottom: 48px;
}
.related-head .overline { margin-bottom: 18px; }
.related-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 0.05em;
  color: var(--paper);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--gold-line);
  border-left: 1px solid var(--gold-line);
}
.related-grid .blog-card { min-height: 100%; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--gold-line);
  padding: 66px 0 44px;
  margin-top: 40px;
  background: linear-gradient(180deg, transparent, rgba(212,175,55,0.03));
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--gold-faint);
  margin-bottom: 30px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-links { display: flex; gap: 30px; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--serif);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--grey-dim); transition: color 0.4s var(--ease);
}
.footer-links a:hover { color: var(--gold); }
.footer-fine {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-fine .disclaimer {
  font-size: 14px;
  font-weight: 300;
  color: var(--grey-mute);
  max-width: 640px;
  line-height: 1.5;
  font-style: italic;
}
.footer-fine .capline {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-dim);
  white-space: nowrap;
}
.footer-fine .capline b { color: var(--gold); }

/* ============================================================
   ENTRANCE ANIMATIONS
   ============================================================ */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glowFrame {
  from { opacity: 0; transform: scale(0.985); }
  to   { opacity: 1; transform: scale(1); }
}
.reveal { opacity: 0; animation: riseIn 0.95s var(--ease) forwards; }
.hero-frame { animation: glowFrame 1.2s var(--ease) both; }
.d1 { animation-delay: 0.10s; }
.d2 { animation-delay: 0.22s; }
.d3 { animation-delay: 0.34s; }
.d4 { animation-delay: 0.46s; }
.d5 { animation-delay: 0.58s; }
.d6 { animation-delay: 0.70s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-frame { animation: none; opacity: 1; }
  * { scroll-behavior: auto; }
  .btn-discord::before { display: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  body { font-size: 19px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .ethos-grid { grid-template-columns: 1fr; gap: 40px; }
  .testis { grid-template-columns: 1fr; }
  .raid-layout { grid-template-columns: 1fr; }
  .boss-list { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--gold-line); }
  .boss-btn { min-width: 200px; }
  .friends-layout { grid-template-columns: 1fr; }
  .add-card { position: static; }
  .blog-card--featured .blog-card-link { grid-template-columns: 1fr; min-height: 0; }
  .blog-card--featured .blog-card-cover { border-right: none; border-bottom: 1px solid var(--gold-line); }
  .blog-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .post-header, .post-body { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 22px; }
  .nav { height: 70px; }
  .nav-links { display: none; }
  .services { grid-template-columns: 1fr; }
  .hero-frame { padding: 48px 24px 44px; }
  .hero-meta { gap: 36px; }
  .counter-panel { padding: 28px 20px; }
  .counter-row {
    grid-template-columns: 26px 1fr 96px;
    row-gap: 6px;
  }
  .counter-row .c-type, .counter-row .c-move { grid-column: 2 / 3; }
  .counter-row .c-move { font-size: 15px; }
  .counter-row .c-rate { grid-column: 3 / 4; grid-row: 1 / 2; }
  .code-row { grid-template-columns: auto 1fr; }
  .code-row .bump-btn { grid-column: 1 / 3; justify-self: start; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
