.rep-public,
.rep-market-page {
  --rep-black: #050708;
  --rep-charcoal: #0b1115;
  --rep-panel: #101922;
  --rep-panel-2: #151b1f;
  --rep-gold: #d4af37;
  --rep-gold-2: #f4c84a;
  --rep-lime: #8bff00;
  --rep-paper: #f7f5ee;
  --rep-paper-2: #ffffff;
  --rep-ink: #11161a;
  --rep-muted: #5e6870;
  --rep-line: rgba(212, 175, 55, .34);
}

.rep-public .rep-hero,
.rep-market-page .market-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(212,175,55,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(139,255,0,.028) 1px,transparent 1px),
    radial-gradient(circle at 82% 18%, rgba(139,255,0,.11), transparent 29%),
    radial-gradient(circle at 10% 10%, rgba(212,175,55,.12), transparent 31%),
    linear-gradient(145deg, #050708, #0b1115 62%, #071007);
  background-size: 48px 48px,48px 48px,auto,auto,auto;
  color: #fff;
  border-bottom: 1px solid rgba(212,175,55,.30);
}

.rep-public .rep-hero::after,
.rep-market-page .market-hero::after {
  content: "";
  position: absolute;
  right: -12vw;
  bottom: -22vw;
  width: 48vw;
  height: 48vw;
  border: 1px solid rgba(139,255,0,.18);
  transform: rotate(45deg);
  box-shadow: 0 0 60px rgba(139,255,0,.05);
  pointer-events: none;
}

.rep-public .rep-hero { padding: clamp(3.4rem, 7vw, 6.8rem) 0; }
.rep-market-page .market-hero { padding: clamp(3.4rem, 6vw, 5.8rem) 0; }

.rep-hero-grid,
.market-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, .85fr);
  gap: clamp(2rem, 5vw, 4.6rem);
  align-items: center;
}

.rep-public .eyebrow,
.rep-market-page .eyebrow { color: var(--rep-gold-2); }
.rep-public h1,
.rep-market-page .market-hero h1 { color: #fff; }
.rep-public .lede,
.rep-market-page .market-hero .lede { color: #dce2e7; }
.rep-hero-statement { max-width: 62ch; }

.rep-portrait-card {
  position: relative;
  border: 1px solid rgba(139,255,0,.55);
  border-radius: 25px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.012));
  box-shadow: 0 28px 80px rgba(0,0,0,.42), 0 0 36px rgba(139,255,0,.05);
}
.rep-portrait-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(212,175,55,.20);
  border-radius: 15px;
  pointer-events: none;
  z-index: 2;
}
.rep-portrait-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 17px;
  background: #0b1115;
}
.rep-authorized-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  padding: .55rem .8rem;
  border: 1px solid rgba(139,255,0,.48);
  border-radius: 999px;
  color: #e6ffd0;
  background: rgba(139,255,0,.07);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.rep-proofline,
.market-proofline {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.5rem;
}
.rep-proofline span,
.market-proofline span {
  display: inline-flex;
  padding: .5rem .72rem;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,.28);
  background: rgba(255,255,255,.04);
  color: #dde3e7;
  font-size: .8rem;
}

.rep-paper-section,
.market-paper-section {
  background:
    linear-gradient(rgba(5,7,8,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(5,7,8,.018) 1px,transparent 1px),
    var(--rep-paper);
  background-size: 52px 52px,52px 52px,auto;
  color: var(--rep-ink);
}
.rep-paper-section .section-heading p,
.market-paper-section .section-heading p,
.rep-paper-section p,
.market-paper-section p { color: var(--rep-muted); }
.rep-paper-section strong,
.market-paper-section strong { color: #222a2f; }
.rep-profile-copy { font-size: 1.02rem; line-height: 1.78; }

.rep-paper-grid,
.market-paper-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.rep-paper-card,
.market-paper-card {
  position: relative;
  overflow: hidden;
  background: var(--rep-paper-2);
  border: 1px solid #ddd7c8;
  border-radius: 18px;
  padding: clamp(1.3rem, 3vw, 2.1rem);
  box-shadow: 0 15px 36px rgba(8,16,23,.08);
}
.rep-paper-card::before,
.market-paper-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  background: linear-gradient(var(--rep-lime),var(--rep-gold));
}
.rep-paper-card h2,.rep-paper-card h3,
.market-paper-card h2,.market-paper-card h3 { color: #0b1115; }
.rep-gold-rule {
  width: 78px;
  height: 3px;
  border: 0;
  background: linear-gradient(90deg,var(--rep-gold),var(--rep-lime));
  margin: 1rem 0 1.35rem;
}

.rep-contact-card,
.market-rep-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 10%,rgba(139,255,0,.08),transparent 30%),
    linear-gradient(145deg, #0b1115, #050708);
  border: 1px solid rgba(212,175,55,.42);
  border-radius: 20px;
  padding: clamp(1.45rem, 3vw, 2.2rem);
  color: #fff;
  box-shadow: 0 22px 55px rgba(0,0,0,.24);
}
.rep-contact-card h2,.rep-contact-card h3,
.market-rep-card h2,.market-rep-card h3 { color: #fff; }
.rep-contact-card p,
.market-rep-card p { color: #cfd7dd; }
.rep-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  margin-top: 1rem;
}
.rep-contact-grid a,
.rep-contact-grid div {
  display: block;
  padding: .9rem 1rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.035);
  overflow-wrap: anywhere;
}
.rep-contact-grid a:hover { border-color: rgba(139,255,0,.5); color: #caff93; }
.rep-contact-grid small {
  display: block;
  margin-bottom: .25rem;
  color: #aeb7be;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}
.rep-authority-note {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--rep-gold);
  background: rgba(212,175,55,.07);
  color: #cfd7dd !important;
  font-size: .92rem;
}

.rep-field-section .panel {
  border-color: rgba(212,175,55,.24);
  background: linear-gradient(145deg,rgba(16,25,34,.92),rgba(6,9,11,.98));
}
.rep-field-section .panel h3 { color: #fff; }
.rep-field-section .panel p { color: #cbd4da; }
.rep-field-grid { align-items: stretch; }

.market-service-grid,
.market-intent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}
.market-service-grid article,
.market-intent-grid article { border-top: 3px solid var(--rep-gold); }
.market-service-section { padding-top: 0; }
.market-context-grid { align-items: stretch; }
.market-route-list {
  display: grid;
  gap: .75rem;
  margin-top: 1.4rem;
}
.market-route-list a {
  display: grid;
  gap: .25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  color: #fff;
  text-decoration: none;
}
.market-route-list a:hover { border-color: rgba(139,255,0,.48); }
.market-route-list a strong { color: #fff; }
.market-route-list a span { color: #aeb7be; font-size: .9rem; }
.market-rep-inline {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  align-items: center;
}
.market-rep-inline img {
  width: 110px;
  height: 132px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(139,255,0,.42);
  border-radius: 14px;
}
.market-tags { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0; }
.market-tags span {
  display: inline-flex;
  padding: .48rem .68rem;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,.32);
  background: #fbfaf6;
  color: #3d464c;
  font-size: .8rem;
}
.market-boundary {
  padding: 1rem 1.1rem;
  border: 1px solid #ddd7c8;
  border-radius: 14px;
  background: #fff;
  color: #56616a;
}
.market-boundary-dark {
  border-color: rgba(212,175,55,.3);
  background: rgba(255,255,255,.035);
  color: #cbd4da;
}
.market-boundary-dark strong { color: var(--rep-gold-2); }
.market-boundary-dark p { color: #cbd4da; }

@media (max-width: 900px) {
  .rep-hero-grid,.market-hero-grid,
  .market-service-grid,.market-intent-grid { grid-template-columns: 1fr; }
  .rep-portrait-card { max-width: 540px; }
}
@media (max-width: 680px) {
  .rep-paper-grid,.market-paper-grid,.rep-contact-grid { grid-template-columns: 1fr; }
  .market-rep-inline { grid-template-columns: 84px 1fr; }
  .market-rep-inline img { width: 84px; height: 104px; }
}
