:root {
  --forest: #203528;
  --forest-deep: #102218;
  --cream: #f7f2ea;
  --paper: #efe6d8;
  --navy: #29486b;
  --brick: #b3473f;
  --mustard: #c9943d;
  --warm-gray: #d7d2c4;
  --ink: #17241c;
  --muted: #746b5e;
  --line: rgba(32, 53, 40, 0.22);
  --shadow: 0 18px 42px rgba(16, 34, 24, 0.18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, Avenir, "Segoe UI", Arial, sans-serif;
  --script: "Brush Script MT", "Segoe Script", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(32, 53, 40, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 53, 40, 0.025) 1px, transparent 1px),
    var(--cream);
  background-size: 28px 28px;
  font-family: var(--sans);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(rgba(16, 34, 24, 0.045) 0.75px, transparent 0.75px),
    radial-gradient(rgba(179, 71, 63, 0.035) 0.75px, transparent 0.75px);
  background-position: 0 0, 9px 13px;
  background-size: 18px 18px;
}

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

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

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

.reveal[data-reveal="left"] {
  transform: translateX(-34px);
}

.reveal[data-reveal="right"] {
  transform: translateX(34px);
}

.reveal[data-reveal="zoom"] {
  transform: scale(0.94);
}

.reveal[data-reveal="left"].is-visible,
.reveal[data-reveal="right"].is-visible,
.reveal[data-reveal="zoom"].is-visible {
  transform: translateX(0) scale(1);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  color: var(--cream);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--forest);
  background: rgba(247, 242, 234, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand-mark {
  width: 152px;
  min-height: 40px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 0.88;
}

.brand-main {
  font-family: var(--serif);
  font-size: 1.17rem;
  font-weight: 700;
  text-transform: uppercase;
}

.brand-script {
  margin-left: 34px;
  font-family: var(--script);
  font-size: 1.35rem;
  transform: rotate(-2deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 34px);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav a {
  padding: 9px 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: currentColor;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 94svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--cream);
  background: var(--forest-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(16, 34, 24, 0.5), rgba(16, 34, 24, 0.18) 48%, rgba(16, 34, 24, 0.44)),
    linear-gradient(0deg, rgba(16, 34, 24, 0.46), transparent 48%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) sepia(0.08) contrast(1.04) brightness(1.04);
  transform: scale(1.08);
  animation: heroDrift 9s ease-out both;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(850px, calc(100% - 36px));
  margin: 0 auto;
  padding: 140px 0 120px;
  text-align: center;
  animation: heroRise 900ms ease 180ms both;
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 8.8vw, 8.2rem);
  line-height: 0.77;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero h1 em {
  display: block;
  margin-top: 4px;
  font-family: var(--script);
  font-size: clamp(3.2rem, 8vw, 7.6rem);
  font-style: normal;
  font-weight: 400;
  text-transform: none;
  transform: rotate(-3deg);
}

.hero-copy {
  max-width: 550px;
  margin: 24px auto 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 700;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 19px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button-light {
  color: var(--forest);
  background: var(--cream);
}

.button-line {
  color: var(--cream);
  background: rgba(247, 242, 234, 0.08);
}

.button-dark {
  width: 100%;
  color: var(--cream);
  background: var(--forest);
}

.hero-footer {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 1;
  width: min(560px, calc(100% - 36px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  transform: translateX(-50%);
  border: 1px solid rgba(247, 242, 234, 0.34);
  background: rgba(16, 34, 24, 0.45);
  animation: heroFooterRise 900ms ease 360ms both;
}

.hero-footer span {
  min-width: 0;
  padding: 13px 8px;
  text-align: center;
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-footer span + span {
  border-left: 1px solid rgba(247, 242, 234, 0.34);
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFooterRise {
  from {
    opacity: 0;
    transform: translate(-50%, 24px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.14);
  }
  to {
    transform: scale(1.08);
  }
}

.manifesto-section {
  display: grid;
  grid-template-columns: 0.8fr 1.5fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 76px);
  color: var(--cream);
  background: var(--forest);
}

.section-label {
  color: var(--mustard);
}

.manifesto-copy h2,
.section-heading h2,
.editorial-copy h2,
.merch-section h2,
.join-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 5.2rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.manifesto-copy p,
.mission-panel p,
.editorial-copy p,
.merch-section p,
.join-copy p {
  margin: 22px 0 0;
  font-size: 1rem;
  line-height: 1.75;
}

.mission-panel {
  align-self: start;
  padding: 28px;
  border: 1px solid rgba(247, 242, 234, 0.24);
  background: rgba(16, 34, 24, 0.35);
}

.mission-panel h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  text-transform: uppercase;
}

.mission-panel p + h3 {
  margin-top: 30px;
}

.rhythm-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.rhythm-item {
  min-height: 260px;
  padding: clamp(28px, 4vw, 48px);
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.rhythm-item:last-child {
  border-right: 0;
}

.rhythm-item span {
  color: var(--brick);
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 800;
}

.rhythm-item h3,
.activity-grid h3 {
  margin: 32px 0 10px;
  font-family: var(--serif);
  font-size: 1.5rem;
  text-transform: uppercase;
}

.rhythm-item p,
.activity-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.activities-section {
  padding: clamp(64px, 8vw, 100px) clamp(18px, 5vw, 76px);
}

.section-heading {
  max-width: 760px;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 42px;
  background: var(--line);
  border: 1px solid var(--line);
}

.activity-grid article {
  min-height: 285px;
  padding: 30px;
  background: var(--cream);
}

.line-icon {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--forest);
  border-radius: 50%;
  color: var(--forest);
}

.line-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.clock-icon {
  border-color: var(--brick);
  color: var(--brick);
}

.runner-icon {
  border-color: var(--mustard);
  color: var(--mustard);
}

.runner-icon img {
  width: 32px;
  height: 32px;
}

.editorial-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(64px, 8vw, 100px) clamp(18px, 5vw, 76px);
  color: var(--cream);
  background: var(--forest-deep);
}

.style-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.style-notes li {
  padding: 9px 12px;
  border: 1px solid rgba(247, 242, 234, 0.32);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.image-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.image-stack img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border: 1px solid rgba(247, 242, 234, 0.24);
  filter: saturate(0.86) sepia(0.17);
}

.image-stack .image-wide {
  grid-column: 1 / -1;
  height: 300px;
}

.merch-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 66px);
  align-items: center;
  padding: clamp(64px, 8vw, 100px) clamp(18px, 5vw, 76px);
  background: var(--paper);
}

.merch-section img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  filter: saturate(0.9) sepia(0.12);
}

.join-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 520px);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 76px);
  border-top: 1px solid var(--line);
}

.join-form {
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.join-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.join-form input,
.join-form select,
.join-form textarea {
  width: 100%;
  min-height: 43px;
  padding: 11px 12px;
  border: 1px solid rgba(32, 53, 40, 0.26);
  border-radius: 0;
  color: var(--ink);
  background: rgba(247, 242, 234, 0.75);
  font: inherit;
}

.join-form textarea {
  resize: vertical;
}

.join-form input:focus,
.join-form select:focus,
.join-form textarea:focus {
  outline: 2px solid rgba(201, 148, 61, 0.48);
  outline-offset: 1px;
}

.form-status {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--forest);
  font-size: 0.88rem;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 76px);
  color: var(--cream);
  background: var(--forest);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 26px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .manifesto-section,
  .editorial-section,
  .merch-section,
  .join-section {
    grid-template-columns: 1fr;
  }

  .rhythm-section,
  .activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rhythm-item:nth-child(2) {
    border-right: 0;
  }

  .image-stack img,
  .image-stack .image-wide {
    height: 240px;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 4px;
    color: inherit;
    background: transparent;
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    display: block;
    background: currentColor;
  }

  .site-nav {
    position: fixed;
    inset: 68px 14px auto;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px;
    color: var(--forest);
    background: rgba(247, 242, 234, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-content {
    width: min(100% - 30px, 560px);
    padding-bottom: 116px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 11.8vw, 4.8rem);
  }

  .hero h1 em {
    font-size: clamp(2.65rem, 11vw, 4.25rem);
  }

  .hero-copy {
    width: min(100%, 330px);
    font-size: 1.02rem;
    line-height: 1.25;
  }

  .hero-actions {
    width: min(100%, 280px);
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-footer {
    left: 18px;
    right: 18px;
    width: auto;
    grid-template-columns: repeat(2, 1fr);
    transform: none;
    animation-name: heroRise;
  }

  .hero-footer span {
    font-size: 0.72rem;
  }

  .hero-footer span:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(247, 242, 234, 0.34);
  }

  .hero-footer span:nth-child(4) {
    border-top: 1px solid rgba(247, 242, 234, 0.34);
  }

  .rhythm-section,
  .activity-grid,
  .image-stack {
    grid-template-columns: 1fr;
  }

  .rhythm-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .activity-grid article {
    min-height: auto;
  }

  .image-stack .image-wide {
    grid-column: auto;
  }

  .join-form {
    padding: 22px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .button {
    width: 100%;
  }

  .brand-mark {
    width: 132px;
  }

  .brand-main {
    font-size: 1rem;
  }

  .brand-script {
    font-size: 1.2rem;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
