/* Hope River — Frontier Board */

:root {
  --ink: #0e0906;
  --ink-2: #1a110c;
  --panel: #211510;
  --panel-2: #2a1a12;
  --brass: #d4a84b;
  --brass-2: #f0c56a;
  --ember: #e06a24;
  --ember-deep: #9a3d12;
  --bone: #f2e4c4;
  --bone-dim: rgba(242, 228, 196, 0.72);
  --line: rgba(212, 168, 75, 0.28);
  --danger: #b33a2e;

  --font-brand: "Rye", Georgia, serif;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;

  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--bone);
  line-height: 1.65;
  font-size: 1.02rem;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ——— Atmosphere ——— */

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ——— Nav ——— */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, rgba(14, 9, 6, 0.92), rgba(14, 9, 6, 0.55) 70%, transparent);
  backdrop-filter: blur(6px);
}

.nav__brand {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--brass-2);
}

.nav__links {
  display: flex;
  gap: 1.4rem;
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.nav__links a:hover { color: var(--brass-2); }

.nav__discord {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(180deg, var(--brass-2), var(--brass) 55%, #a67c2d);
  border: 1px solid rgba(242, 228, 196, 0.35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s var(--ease), filter 0.3s;
}

.nav__discord:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.nav__discord svg { width: 1rem; height: 1rem; }

@media (max-width: 760px) {
  .nav__links { display: none; }
}

/* ——— Hero ——— */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 7rem 1.25rem 5rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.08);
  animation: drift 32s var(--ease) infinite alternate;
  filter: saturate(1.05) contrast(1.05);
}

@keyframes drift {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(0, -2%, 0); }
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 55% 45% at 50% 42%, rgba(224, 106, 36, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(14, 9, 6, 0.55) 0%, rgba(14, 9, 6, 0.25) 40%, rgba(14, 9, 6, 0.88) 78%, var(--ink) 100%);
}

.hero__frame {
  position: absolute;
  inset: 1.1rem;
  z-index: 2;
  border: 1px solid rgba(212, 168, 75, 0.22);
  pointer-events: none;
}

.hero__frame::before,
.hero__frame::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid var(--brass);
  opacity: 0.7;
}

.hero__frame::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.hero__frame::after {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
}

.hero__inner {
  position: relative;
  z-index: 3;
  width: min(920px, 100%);
  text-align: center;
  animation: rise 1.1s var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__emblem {
  width: min(300px, 62vw);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 auto 0.5rem;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.55));
  animation: glow 5s ease-in-out infinite alternate;
}

@keyframes glow {
  from { filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.65)); }
  to { filter: drop-shadow(0 18px 48px rgba(224, 106, 36, 0.4)); }
}

.hero__tag {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.7rem;
}

.hero__title {
  font-family: var(--font-brand);
  font-size: clamp(3.2rem, 11vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.35), 0 24px 50px rgba(0, 0, 0, 0.55);
  margin-bottom: 1rem;
}

.hero__slogan {
  max-width: 28ch;
  margin: 0 auto 2rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-style: italic;
  color: var(--bone-dim);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.9rem;
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f3cd72 0%, var(--brass) 40%, #a56d1f 100%);
  border: 1px solid rgba(255, 240, 200, 0.35);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 14px 34px rgba(224, 106, 36, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.hero__cta svg { width: 1.25rem; height: 1.25rem; }

.hero__cta:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 22px 44px rgba(224, 106, 36, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2.2rem;
}

.chip {
  padding: 0.45rem 0.9rem;
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  border: 1px solid var(--line);
  background: rgba(14, 9, 6, 0.45);
  backdrop-filter: blur(4px);
}

/* ——— Sections ——— */

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  position: relative;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.45rem;
}

.section h2 {
  font-family: var(--font-brand);
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.section__intro {
  max-width: 36ch;
  color: var(--bone-dim);
  font-size: 1.02rem;
}

/* ——— Intro bento ——— */

.bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.box {
  position: relative;
  background:
    linear-gradient(160deg, rgba(42, 26, 18, 0.95), rgba(22, 14, 10, 0.98));
  border: 1px solid var(--line);
  padding: 1.4rem 1.35rem 1.5rem;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  opacity: 0.55;
}

.box:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 168, 75, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.box--feature {
  grid-row: span 2;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem;
  background:
    linear-gradient(180deg, rgba(14, 9, 6, 0.15), rgba(14, 9, 6, 0.92)),
    radial-gradient(ellipse at 30% 20%, rgba(224, 106, 36, 0.25), transparent 55%),
    var(--panel);
}

.box--accent {
  background:
    linear-gradient(145deg, rgba(154, 61, 18, 0.35), rgba(22, 14, 10, 0.96));
  border-color: rgba(224, 106, 36, 0.35);
}

.box__num {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--brass);
  margin-bottom: 0.7rem;
}

.box h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  line-height: 1.2;
}

.box p {
  color: var(--bone-dim);
  font-size: 0.95rem;
}

.box--feature h3 {
  font-family: var(--font-brand);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  text-transform: none;
  letter-spacing: 0.03em;
}

@media (max-width: 900px) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .box--feature {
    grid-column: span 2;
    grid-row: auto;
    min-height: 220px;
  }
}

@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .box--feature { grid-column: auto; }
}

/* ——— Jobs grid ——— */

.jobs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.job {
  position: relative;
  min-height: 160px;
  padding: 1.2rem 1.1rem 1.25rem;
  background: var(--panel);
  border: 1px solid rgba(212, 168, 75, 0.16);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s;
}

.job::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(212, 168, 75, 0.08);
  pointer-events: none;
}

.job:hover {
  transform: translateY(-5px);
  background: var(--panel-2);
  border-color: rgba(212, 168, 75, 0.45);
}

.job__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--brass);
  margin-bottom: 0.2rem;
}

.job__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.job h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.job p {
  font-size: 0.88rem;
  color: var(--bone-dim);
  line-height: 1.45;
  margin-top: auto;
}

.job--wide {
  grid-column: span 2;
  background:
    linear-gradient(120deg, rgba(224, 106, 36, 0.18), transparent 55%),
    var(--panel);
}

.job--law {
  border-color: rgba(212, 168, 75, 0.35);
}

.job--shadow {
  border-color: rgba(179, 58, 46, 0.35);
  background:
    linear-gradient(160deg, rgba(179, 58, 46, 0.12), transparent 60%),
    var(--panel);
}

@media (max-width: 980px) {
  .jobs { grid-template-columns: repeat(2, 1fr); }
  .job--wide { grid-column: span 2; }
}

@media (max-width: 520px) {
  .jobs { grid-template-columns: 1fr; }
  .job--wide { grid-column: auto; }
}

/* ——— Earn split ——— */

.earn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.earn__col {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.6rem 1.4rem;
}

.earn__col h3 {
  font-family: var(--font-brand);
  font-size: 1.45rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.earn__list {
  display: grid;
  gap: 0.65rem;
}

.earn__item {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.7rem 0.8rem;
  background: rgba(14, 9, 6, 0.35);
  border: 1px solid rgba(212, 168, 75, 0.08);
  font-size: 0.92rem;
  color: var(--bone-dim);
  transition: border-color 0.25s, background 0.25s;
}

.earn__item:hover {
  border-color: rgba(212, 168, 75, 0.35);
  background: rgba(224, 106, 36, 0.08);
}

.earn__dot {
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 10px rgba(212, 168, 75, 0.55);
}

.earn__col--trade .earn__dot {
  background: var(--ember);
  box-shadow: 0 0 10px rgba(224, 106, 36, 0.5);
}

@media (max-width: 720px) {
  .earn { grid-template-columns: 1fr; }
}

/* ——— Path strip ——— */

.paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.path {
  position: relative;
  padding: 1.8rem 1.4rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(212, 168, 75, 0.12), transparent 50%),
    var(--panel);
  text-align: left;
}

.path__step {
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: rgba(212, 168, 75, 0.22);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.path h3 {
  font-family: var(--font-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1.1rem;
  margin-bottom: 0.55rem;
}

.path p {
  color: var(--bone-dim);
  font-size: 0.93rem;
}

@media (max-width: 760px) {
  .paths { grid-template-columns: 1fr; }
}

/* ——— Closing ——— */

.closing {
  position: relative;
  padding: 5rem 1rem;
  text-align: center;
  overflow: hidden;
}

.closing__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(224, 106, 36, 0.2), transparent 55%),
    linear-gradient(180deg, var(--ink), #160e09 50%, var(--ink));
}

.closing__panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  border: 1px solid rgba(212, 168, 75, 0.4);
  background: rgba(22, 14, 10, 0.75);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 0 60px rgba(224, 106, 36, 0.06);
}

.closing__panel h2 {
  font-family: var(--font-brand);
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 0.4rem 0 0.9rem;
}

.closing__panel p {
  color: var(--bone-dim);
  max-width: 34ch;
  margin: 0 auto 1.6rem;
}

/* ——— Footer ——— */

.footer {
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(212, 168, 75, 0.15);
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242, 228, 196, 0.4);
}

/* ——— Reveal ——— */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-on {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg img,
  .hero__emblem,
  .hero__inner,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
