:root {
  --paper: #f5f5f1;
  --paper-deep: #eeeeea;
  --mist: #d9ded9;
  --sage: #bdc9bd;
  --green: #819281;
  --green-dark: #485248;
  --ink: #252825;
  --olive: #958d59;
  --brown: #6e4332;
  --line: rgba(37, 40, 37, 0.16);
  --header-height: 72px;
  --page: min(1720px, calc(100% - 64px));
  --radius-lg: 34px;
  --radius-md: 20px;
  --shadow: 0 24px 70px rgba(37, 40, 37, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("assets/background-texture.webp");
  background-size: 720px 720px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(245, 245, 241, 0.77);
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 4px;
}

::selection {
  color: var(--paper);
  background: var(--green-dark);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  border-color: var(--line);
  background: rgba(245, 245, 241, 0.9);
  box-shadow: 0 8px 30px rgba(37, 40, 37, 0.06);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: var(--page);
  height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 1.9vw, 34px);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.desktop-nav > a:not(.button),
.mobile-nav > a:not(.button) {
  position: relative;
  padding: 8px 0;
}

.desktop-nav > a:not(.button)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-nav > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  display: none;
  min-width: 68px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.mobile-nav {
  width: var(--page);
  margin: 0 auto;
  padding: 4px 0 20px;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.mobile-nav:not([hidden]) {
  display: grid;
}

.mobile-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.section {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(88px, 8vw, 152px) 0;
}

.section-lined {
  border-top: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

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

h1,
h2 {
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(76px, 6.55vw, 124px);
}

h2 {
  max-width: 950px;
  margin-bottom: 32px;
  font-size: clamp(52px, 5.8vw, 108px);
}

p {
  margin-bottom: 22px;
}

.large-copy {
  font-size: clamp(22px, 2.1vw, 36px);
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.hero {
  min-height: 100svh;
  padding-top: calc(var(--header-height) + 34px);
  padding-bottom: 42px;
  display: grid;
  grid-template-columns: minmax(410px, 0.78fr) minmax(580px, 1.22fr);
  align-items: center;
  gap: clamp(30px, 4vw, 76px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 32px 0;
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 18px;
  font-size: clamp(24px, 2.25vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.hero-body {
  max-width: 630px;
  color: rgba(37, 40, 37, 0.76);
  font-size: clamp(16px, 1.04vw, 20px);
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-art {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  object-fit: cover;
  will-change: transform;
}

.contract-card {
  max-width: 650px;
  margin: 30px 0 18px;
  padding: 10px 10px 10px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(238, 238, 234, 0.72);
}

.contract-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.contract-label {
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.contract-copy code {
  display: block;
  overflow: hidden;
  font-family: "Courier New", monospace;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  flex: 0 0 auto;
  min-width: 76px;
  min-height: 44px;
  padding: 8px 13px;
  border: 0;
  border-radius: 11px;
  color: var(--paper);
  background: var(--ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}

.copy-button:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 12px 19px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-dark {
  color: var(--paper);
  background: var(--ink);
}

.button-dark:hover {
  background: var(--green-dark);
}

.button-light {
  background: rgba(245, 245, 241, 0.76);
}

.button-light:hover {
  background: var(--mist);
}

.button-small {
  min-height: 44px;
  padding: 8px 15px;
  font-size: 10px;
}

.section-heading {
  max-width: 1120px;
  margin-bottom: clamp(54px, 7vw, 110px);
}

.job-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(48px, 8vw, 140px);
}

.job-art {
  position: relative;
}

.job-art img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  will-change: transform;
}

.job-copy {
  max-width: 650px;
}

.job-copy > p:not(.large-copy),
.character-copy > p:not(.large-copy),
.compare-copy > p,
.checklist-intro > p:not(.eyebrow),
.cta-copy > p:not(.eyebrow) {
  color: rgba(37, 40, 37, 0.7);
  font-size: 18px;
}

.compare-section {
  display: grid;
  grid-template-columns: minmax(350px, 0.67fr) minmax(500px, 1.15fr);
  align-items: center;
  gap: clamp(50px, 8vw, 150px);
}

.compare-copy {
  position: sticky;
  top: 130px;
}

.compare-shell {
  min-width: 0;
}

.compare-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.compare-image,
.dirty-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.compare-image {
  object-fit: cover;
}

.dirty-layer {
  overflow: hidden;
  z-index: 1;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  z-index: 3;
  width: 2px;
  background: rgba(37, 40, 37, 0.82);
  transform: translateX(-1px);
  pointer-events: none;
}

.compare-divider i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  border: 7px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 5px 20px rgba(37, 40, 37, 0.2);
  transform: translate(-50%, -50%);
}


.compare-range {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}

.compare-label {
  position: absolute;
  top: 20px;
  z-index: 4;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
  pointer-events: none;
}

.label-dirty {
  left: 20px;
  color: var(--paper);
  background: rgba(37, 40, 37, 0.9);
}

.label-clean {
  right: 20px;
  border: 1px solid var(--line);
  background: rgba(245, 245, 241, 0.9);
}

.drag-note {
  margin: 14px 0 0;
  text-align: center;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.character {
  display: grid;
  grid-template-columns: minmax(340px, 0.72fr) minmax(480px, 1fr);
  align-items: center;
  gap: clamp(60px, 11vw, 190px);
}

.character-visual {
  position: relative;
  min-height: 720px;
  display: grid;
  place-items: end center;
}

.character-art {
  width: min(100%, 560px);
  transform-origin: 50% 100%;
}

.character-copy {
  max-width: 780px;
}

blockquote {
  margin-bottom: 0;
  padding: 25px 0 0 28px;
  border-left: 2px solid var(--green);
  font-size: clamp(20px, 1.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.community {
  position: relative;
  width: 100%;
  min-height: 760px;
  overflow: hidden;
  padding-right: max(32px, calc((100vw - min(1720px, calc(100vw - 64px))) / 2));
  padding-left: max(32px, calc((100vw - min(1720px, calc(100vw - 64px))) / 2));
  display: flex;
  align-items: center;
  background-color: var(--green-dark);
  color: var(--paper);
}

.community-symbol {
  position: absolute;
  top: 50%;
  right: -5%;
  width: min(57vw, 920px);
  opacity: 0.42;
  mix-blend-mode: screen;
  transform: translateY(-50%);
}

.community-content {
  position: relative;
  z-index: 1;
  width: min(880px, 58%);
}

.community .eyebrow {
  color: var(--sage);
}

.community h2 {
  max-width: 1080px;
}

.community .large-copy {
  max-width: 850px;
  color: rgba(245, 245, 241, 0.84);
}

.fine-print {
  max-width: 730px;
  color: rgba(245, 245, 241, 0.6);
}

.text-link {
  display: inline-flex;
  margin-top: 22px;
  padding-bottom: 7px;
  gap: 9px;
  border-bottom: 1px solid rgba(245, 245, 241, 0.5);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.text-link span {
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

.checklist {
  display: grid;
  grid-template-columns: minmax(380px, 0.78fr) minmax(540px, 1fr);
  align-items: center;
  gap: clamp(60px, 10vw, 180px);
}

.checklist-intro {
  max-width: 720px;
}

.checklist-sheet {
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid rgba(37, 40, 37, 0.2);
  border-radius: 8px;
  background: rgba(245, 245, 241, 0.96);
  box-shadow: 14px 18px 0 var(--mist), 14px 18px 0 1px rgba(37, 40, 37, 0.18);
  transform: rotate(1.1deg);
}

.sheet-heading {
  margin-bottom: 10px;
  padding-bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--ink);
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.checklist-sheet ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist-sheet li {
  padding: 19px 0;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 700;
}

.checklist-sheet input {
  width: 19px;
  height: 19px;
  accent-color: var(--green-dark);
}

.checklist-sheet small {
  color: var(--green-dark);
  font-family: "Courier New", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.sheet-signoff {
  margin: 25px 0 0;
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
}

.final-cta {
  min-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-copy {
  width: min(100%, 980px);
  text-align: center;
}

.cta-copy h2,
.cta-copy > p:not(.eyebrow) {
  margin-right: auto;
  margin-left: auto;
}

.cta-copy > p:not(.eyebrow) {
  max-width: 820px;
}

.final-cta .hero-actions {
  justify-content: center;
}

.contract-card-footer {
  width: min(100%, 650px);
  margin: 30px auto 0;
  text-align: left;
}

.site-footer {
  width: var(--page);
  min-height: 110px;
  margin: 0 auto;
  padding: 28px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  justify-self: end;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  padding: 14px 19px;
  border-radius: 999px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 14px 40px rgba(37, 40, 37, 0.22);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.toast.is-visible {
  animation: toast-in 220ms ease both;
}

.js .hero-copy > *,
.js .hero-visual {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-in 680ms cubic-bezier(0.2, 0.75, 0.25, 1) forwards;
}

.js .hero-copy > *:nth-child(2) {
  animation-delay: 80ms;
}

.js .hero-copy > *:nth-child(3) {
  animation-delay: 150ms;
}

.js .hero-copy > *:nth-child(4) {
  animation-delay: 220ms;
}

.js .hero-copy > *:nth-child(5),
.js .hero-copy > *:nth-child(6) {
  animation-delay: 290ms;
}

.js .hero-visual {
  animation-delay: 130ms;
}

.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 680ms ease, transform 680ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .character-art {
  animation: janitor-idle 6s ease-in-out infinite;
}

@keyframes hero-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes janitor-idle {
  0%,
  100% {
    transform: translateY(0) rotate(-0.35deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.35deg);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 1180px) {
  :root {
    --page: min(100% - 40px, 1120px);
  }

  .hero {
    grid-template-columns: minmax(350px, 0.8fr) minmax(460px, 1.2fr);
  }

  .desktop-nav {
    gap: 16px;
  }

  .character-visual {
    min-height: 590px;
  }

  .community {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 1050px) {
  .checklist {
    grid-template-columns: 1fr;
  }

  .checklist-sheet {
    width: min(100% - 16px, 720px);
    margin: 0 auto;
  }
}

@media (max-width: 1040px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav .button {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1041px) {
  .mobile-nav {
    display: none !important;
  }
}

@media (max-width: 920px) {
  :root {
    --page: min(100% - 36px, 860px);
  }

  .section {
    padding: 82px 0;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 70px);
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    min-width: 0;
    padding-bottom: 0;
  }

  .hero-visual {
    width: 100%;
  }

  .job-grid,
  .compare-section,
  .character,
  .checklist {
    grid-template-columns: 1fr;
  }

  .compare-copy {
    position: static;
  }

  .compare-shell {
    width: min(100%, 720px);
    margin: 0 auto;
  }

  .character-visual {
    min-height: 640px;
    order: 2;
  }

  .character-copy {
    order: 1;
  }

  .community {
    min-height: 720px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .community-symbol {
    right: -20%;
    width: 86vw;
  }

  .community-content {
    width: min(760px, 82%);
  }

  .checklist-sheet {
    width: min(100% - 16px, 720px);
    margin: 0 auto;
  }

}

@media (max-width: 620px) {
  :root {
    --page: calc(100% - 28px);
    --header-height: 64px;
    --radius-lg: 22px;
  }

  body {
    font-size: 15px;
  }

  .section {
    padding: 70px 0;
  }

  .header-inner {
    gap: 15px;
  }

  .mobile-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 {
    font-size: clamp(56px, 17vw, 78px);
  }

  h2 {
    font-size: clamp(42px, 13.5vw, 68px);
  }

  .hero {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 26px;
    gap: 32px;
  }

  .hero-copy {
    padding-top: 16px;
  }

  .hero-lede {
    font-size: 25px;
  }

  .hero-art {
    height: clamp(360px, 105vw, 460px);
    min-height: 0;
    object-position: 64% center;
  }

  .contract-card {
    margin-top: 24px;
    padding: 8px 8px 8px 13px;
    align-items: stretch;
  }

  .contract-copy code {
    max-width: min(56vw, 310px);
  }

  .button {
    min-height: 45px;
    padding: 11px 15px;
  }

  .job-art img {
    height: clamp(300px, 90vw, 420px);
    min-height: 0;
    object-fit: cover;
    object-position: 62% center;
  }

  .job-copy > p:not(.large-copy),
  .character-copy > p:not(.large-copy),
  .compare-copy > p,
  .checklist-intro > p:not(.eyebrow),
  .cta-copy > p:not(.eyebrow) {
    font-size: 16px;
  }

  .large-copy {
    font-size: 22px;
  }

  .compare-label {
    top: 12px;
  }

  .label-dirty {
    left: 12px;
  }

  .label-clean {
    right: 12px;
  }

  .character-visual {
    min-height: min(520px, 120vw);
  }

  .character-art {
    max-height: 540px;
    object-fit: contain;
  }

  .community {
    min-height: 710px;
  }

  .community-content {
    width: 100%;
  }

  .community-symbol {
    top: auto;
    right: -40%;
    bottom: -20%;
    width: 115vw;
    opacity: 0.23;
    transform: none;
  }

  .checklist-sheet {
    padding: 24px 20px;
    box-shadow: 8px 10px 0 var(--mist), 8px 10px 0 1px rgba(37, 40, 37, 0.18);
    transform: rotate(0.35deg);
  }

  .sheet-heading {
    font-size: 9px;
  }

  .checklist-sheet li {
    grid-template-columns: 22px 1fr;
    gap: 12px;
  }

  .checklist-sheet li small {
    grid-column: 2;
  }

  .final-cta {
    min-height: auto;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
  }

  .site-footer {
    min-height: 160px;
    grid-template-columns: 1fr auto;
  }

  .site-footer > p:nth-child(2) {
    justify-self: end;
  }

  .site-footer > p:last-child {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
