:root {
  color-scheme: dark;
  --ink: #f5f0e6;
  --muted: rgba(245, 240, 230, 0.72);
  --soft: rgba(245, 240, 230, 0.1);
  --line: rgba(245, 240, 230, 0.18);
  --green: #8fc25d;
  --field: #182814;
  --soil: #31261f;
  --gold: #e9bd62;
  --sky: #93bfe6;
  --black: #080907;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(8, 9, 7, 0.54), rgba(8, 9, 7, 0.8)),
    url("assets/workie-bg.png") center / cover fixed,
    var(--black);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px clamp(18px, 5vw, 64px);
  background: linear-gradient(rgba(8, 9, 7, 0.68), rgba(8, 9, 7, 0));
}

.brand {
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 850;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  color: rgba(245, 240, 230, 0.82);
  font-size: 0.9rem;
  font-weight: 750;
  text-transform: lowercase;
}

.nav-links a {
  transition: color 160ms ease, transform 160ms ease;
}

.nav-links a:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  background-image: url("assets/workie-hero.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-scrim,
.hero-content,
.contract-pill {
  grid-area: 1 / 1;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(8, 9, 7, 0.82), rgba(8, 9, 7, 0.48) 44%, rgba(8, 9, 7, 0.14) 72%),
    linear-gradient(0deg, rgba(8, 9, 7, 0.64), rgba(8, 9, 7, 0.02) 48%);
}

.hero-content {
  z-index: 2;
  align-self: end;
  width: min(760px, calc(100% - 36px));
  margin: 0 0 clamp(42px, 8vh, 76px) clamp(18px, 6vw, 78px);
}

.kicker,
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 690px;
  margin-bottom: 18px;
  font-size: clamp(3.8rem, 9vw, 7rem);
  font-weight: 850;
  line-height: 0.9;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 5.7vw, 5.7rem);
  font-weight: 850;
  line-height: 0.92;
}

.hero-copy {
  max-width: 590px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.03rem, 2vw, 1.4rem);
  font-weight: 650;
  line-height: 1.35;
}

.hero-actions,
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button,
.status,
.contract-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  font-size: 0.9rem;
  font-weight: 850;
  text-transform: lowercase;
  white-space: nowrap;
}

.button.primary {
  background: var(--ink);
  color: var(--black);
  border-color: var(--ink);
}

.button.ghost,
.status,
.contract-pill {
  background: rgba(8, 9, 7, 0.36);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.contract-pill {
  z-index: 3;
  align-self: end;
  justify-self: end;
  margin: 0 clamp(18px, 5vw, 64px) clamp(18px, 5vw, 48px) 18px;
  color: var(--gold);
}

.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.lore-section,
.essence-section,
.final-section {
  position: relative;
  padding: clamp(86px, 14vw, 170px) 0;
}

.lore-section {
  background: linear-gradient(180deg, rgba(8, 9, 7, 0.92), rgba(24, 40, 20, 0.82));
}

.lore-grid,
.essence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: center;
}

.lore-copy {
  display: grid;
  gap: 24px;
  color: rgba(245, 240, 230, 0.8);
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  font-weight: 650;
  line-height: 1.26;
}

.lore-copy p {
  margin-bottom: 0;
}

.essence-section {
  background:
    linear-gradient(90deg, rgba(8, 9, 7, 0.92), rgba(49, 38, 31, 0.76)),
    url("assets/workie-bg.png") center / cover;
}

.portrait-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.36);
}

.portrait-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.essence-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 650;
  line-height: 1.36;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.principles li {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(245, 240, 230, 0.08);
  color: var(--ink);
  font-size: clamp(0.86rem, 1.4vw, 1rem);
  font-weight: 850;
  text-align: center;
  text-transform: lowercase;
}

.final-section {
  display: grid;
  min-height: 76svh;
  align-items: center;
  background: linear-gradient(rgba(8, 9, 7, 0.72), rgba(8, 9, 7, 0.92));
}

.final-copy {
  text-align: center;
}

.final-copy h2 {
  max-width: 960px;
  margin-inline: auto;
}

.final-copy p:not(.eyebrow) {
  max-width: 700px;
  margin: 24px auto 34px;
  color: var(--muted);
  font-size: clamp(1.14rem, 2.2vw, 1.55rem);
  font-weight: 650;
  line-height: 1.36;
}

.footer-actions {
  justify-content: center;
}

@media (max-width: 860px) {
  .site-header {
    padding-top: 14px;
  }

  .nav-links {
    gap: 14px;
    font-size: 0.82rem;
  }

  .hero {
    background-position: 58% center;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(8, 9, 7, 0.84), rgba(8, 9, 7, 0.4)),
      linear-gradient(0deg, rgba(8, 9, 7, 0.72), rgba(8, 9, 7, 0.06) 58%);
  }

  .hero-content {
    align-self: end;
    margin-bottom: 72px;
  }

  .contract-pill {
    justify-self: start;
    margin-left: 18px;
  }

  .lore-grid,
  .essence-grid {
    grid-template-columns: 1fr;
  }

  .portrait-wrap {
    order: 2;
  }

  .principles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 1.08rem;
  }

  .nav-links a:nth-child(2) {
    display: none;
  }

  .hero-content {
    width: calc(100% - 28px);
    margin-left: 14px;
    margin-bottom: 72px;
  }

  h1 {
    font-size: clamp(3.4rem, 20vw, 5.5rem);
  }

  .hero-copy {
    max-width: 340px;
  }

  .button,
  .status,
  .contract-pill {
    min-height: 42px;
    padding-inline: 14px;
    font-size: 0.8rem;
  }

  .section-inner {
    width: calc(100% - 28px);
  }
}
