/* ============================================================
   MARCORA COLLECTIVE — editorial stylesheet
   Ivory / ink / olive · Instrument Serif + Inter + IBM Plex Mono
   ============================================================ */

:root {
  --ivory: #ECE8DF;
  --ivory-soft: #E4E0D4;
  --ink: #100F0D;
  --ink-soft: #181712;
  --ink-40: rgba(16, 15, 13, 0.4);
  --olive: #6E744F;
  --olive-deep: #4E543A;
  --olive-pale: #B9BC9F;
  --line-dark: rgba(16, 15, 13, 0.18);
  --line-light: rgba(236, 232, 223, 0.18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --pad-x: clamp(1.25rem, 5vw, 5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

::selection { background: var(--olive); color: var(--ivory); }

/* ---------- type utilities ---------- */

.kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--olive-deep);
  margin-bottom: 1.5rem;
}

.kicker-light { color: var(--olive-pale); }

.mono-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.mono-label.olive { color: var(--olive); }

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 5.5vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: 0.005em;
}

.display em { font-style: italic; }

.display-sm {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.1;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 2rem;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-olive {
  background: var(--olive);
  color: var(--ivory);
}
.btn-olive:hover { background: var(--olive-deep); }

.btn-ghost {
  border-color: var(--line-light);
  color: var(--ivory);
}
.btn-ghost:hover { border-color: var(--olive-pale); color: var(--olive-pale); }

.btn-dark {
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
}
.btn-dark:hover { background: var(--olive-deep); }

.btn-block { display: block; width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--pad-x);
  background: color-mix(in srgb, var(--ivory) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled { box-shadow: 0 1px 24px rgba(16, 15, 13, 0.08); }

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1;
  flex: none;
}

.brand-mark-sub {
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: var(--olive-deep);
  margin-left: 1px;
}

.brand-name {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-name em { font-style: italic; text-transform: none; letter-spacing: 0.02em; }

.brand-est {
  display: block;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.site-nav a {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1px;
  background: var(--olive);
  transition: width 0.25s ease;
}
.site-nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  border: 1px solid var(--ink);
  padding: 0.65rem 1.2rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.nav-cta:hover { background: var(--olive); border-color: var(--olive); color: var(--ivory); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
}
.nav-toggle span { width: 26px; height: 1.5px; background: var(--ink); transition: transform 0.25s ease; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--ivory);
  overflow: hidden;
}

.hero-media,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(16,15,13,0.55) 0%, rgba(16,15,13,0.25) 40%, rgba(16,15,13,0.78) 100%),
    radial-gradient(ellipse at 20% 80%, rgba(78,84,58,0.35), transparent 55%);
}

.hero-inner {
  position: relative;
  padding: 0 var(--pad-x);
  margin-bottom: clamp(3rem, 8vh, 6rem);
  max-width: 60rem;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 7.5vw, 6.25rem);
  line-height: 1.04;
  letter-spacing: 0.005em;
  margin-bottom: 1.75rem;
}
.hero-title em { font-style: italic; }

.hero-sub {
  max-width: 32rem;
  font-size: 1.02rem;
  color: rgba(236, 232, 223, 0.82);
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-foot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem var(--pad-x);
  border-top: 1px solid var(--line-light);
  color: rgba(236, 232, 223, 0.65);
}

.hero-foot-line { flex: 1; height: 1px; background: var(--line-light); }

/* ============================================================
   TICKER
   ============================================================ */

.ticker {
  background: var(--olive-deep);
  color: var(--ivory);
  overflow: hidden;
  border-block: 1px solid var(--ink);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  padding: 0.8rem 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
}

.ticker-track i { font-style: normal; font-size: 0.5rem; color: var(--olive-pale); }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section { padding: clamp(5rem, 11vw, 9rem) var(--pad-x); }

.section-light { background: var(--ivory); color: var(--ink); }

.section-dark { background: var(--ink); color: var(--ivory); }

.section-head { max-width: 56rem; margin-bottom: clamp(3rem, 6vw, 5rem); }

.section-head-split {
  max-width: none;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: end;
}

.section-note {
  font-size: 0.95rem;
  color: rgba(236, 232, 223, 0.6);
  max-width: 26rem;
  justify-self: end;
  border-left: 2px solid var(--olive);
  padding-left: 1.25rem;
}

/* ---------- manifesto ---------- */

.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
}

.principle {
  padding: 2.5rem 2.5rem 2.5rem 0;
  border-right: 1px solid var(--line-dark);
}

.principle:last-child { border-right: 0; }
.principle:nth-child(2) { padding-left: 2.5rem; }
.principle:nth-child(3) { padding-left: 2.5rem; padding-right: 0; }

.principle-no {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--olive);
}

.principle h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.95rem;
  margin: 1rem 0 0.85rem;
}

.principle p { font-size: 0.95rem; color: rgba(16, 15, 13, 0.7); }

.pullquote {
  margin-top: clamp(4rem, 8vw, 6rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line-dark);
  text-align: center;
}

.pullquote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.3;
  max-width: 48rem;
  margin: 0 auto 1.5rem;
}

.pullquote figcaption { color: var(--olive-deep); }

/* ---------- film strip ---------- */

.filmstrip {
  background: var(--ivory);
  padding: 0 var(--pad-x) clamp(5rem, 10vw, 8rem);
}

.filmstrip-frame {
  position: relative;
  border: 1px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 6px;
  background: var(--ink);
}

.filmstrip-frame video {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  opacity: 0.92;
}

.filmstrip-frame figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.9rem 1.2rem;
  background: var(--ivory);
  border-top: 1px solid var(--ink);
  color: var(--ink);
}

/* ---------- showcase ---------- */

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tile {
  position: relative;
  background: var(--ink-soft);
  border: 1px solid var(--line-light);
  overflow: hidden;
}

.tile-wide { grid-column: span 2; }

.tile img,
.tile video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
  transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), filter 0.5s ease;
}

.tile:hover img,
.tile:hover video { transform: scale(1.035); filter: saturate(1) contrast(1.02); }

.tile figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.1rem 1.15rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.85rem;
  color: rgba(236, 232, 223, 0.78);
}

.tile figcaption .mono-label { color: var(--olive-pale); }

/* ---------- spotlights ---------- */

.spotlight-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.spot-card {
  border: 1px solid var(--line-dark);
  background: var(--ivory-soft);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.spot-card:hover { border-color: var(--olive); transform: translateY(-4px); }

.spot-photo {
  margin-bottom: 0.85rem;
  overflow: hidden;
  background: var(--ink);
}

.spot-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.03);
}

.spot-photo-open {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(110, 116, 79, 0.12) 14px 15px),
    var(--ivory);
  border: 1px dashed var(--olive);
  color: var(--olive-deep);
}

.spot-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.15;
}

.spot-card p { font-size: 0.85rem; color: rgba(16, 15, 13, 0.65); }

.spot-card p a { color: var(--olive-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ============================================================
   MEMBERSHIP
   ============================================================ */

.membership-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.member-seal {
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  border: 1.5px solid var(--ivory);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.7rem;
  margin-bottom: 2.25rem;
}

.member-seal span {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--olive-pale);
}

.membership-text {
  max-width: 26rem;
  margin-top: 1.75rem;
  color: rgba(236, 232, 223, 0.72);
}

.apply-card {
  position: relative;
  background: var(--ivory);
  color: var(--ink);
  padding: clamp(2rem, 4vw, 3.25rem);
  border-top: 4px solid var(--olive);
}

.apply-card-corner {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  color: var(--ink-40);
}

.apply-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 2.8vw, 2.3rem);
}
.apply-card h3 em { font-style: italic; }

.apply-card-sub {
  font-size: 0.9rem;
  color: rgba(16, 15, 13, 0.6);
  margin: 0.5rem 0 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1.5px solid var(--ink);
}

.apply-list { list-style: none; margin-bottom: 2rem; }

.apply-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 1.15rem;
  font-weight: 500;
  font-family: var(--serif);
}

.apply-list .mono-label { color: var(--ink-40); }
.apply-list .mono-label.olive { color: var(--olive-deep); }

.apply-fineprint {
  margin-top: 1.1rem;
  text-align: center;
  color: var(--ink-40);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--ivory);
  padding: clamp(4rem, 8vw, 6rem) var(--pad-x) 2rem;
  border-top: 1px solid var(--line-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}

.brand-mark-lg { width: 3.4rem; height: 3.4rem; font-size: 1.4rem; margin-bottom: 1.25rem; }

.footer-brand p {
  max-width: 18rem;
  font-size: 0.9rem;
  color: rgba(16, 15, 13, 0.65);
}

.footer-grid h4 { margin-bottom: 1.2rem; color: var(--olive-deep); }

.footer-grid nav a {
  display: block;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  transition: color 0.2s ease;
}

.footer-grid nav a:hover { color: var(--olive-deep); }

.footer-loc { font-size: 0.95rem; }

.footer-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-dark);
  color: var(--ink-40);
}

.footer-rule { flex: 1; height: 1px; background: var(--line-dark); }

.footer-admin { color: var(--olive-deep); text-decoration: none; }
.footer-admin:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.65, 0.25, 1);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1000px) {
  .manifesto-grid { grid-template-columns: 1fr; }
  .principle,
  .principle:nth-child(2),
  .principle:nth-child(3) {
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
    padding: 2rem 0;
  }
  .principle:last-child { border-bottom: 0; }

  .showcase-grid { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: span 2; }

  .spotlight-row { grid-template-columns: 1fr 1fr; }

  .section-head-split { grid-template-columns: 1fr; align-items: start; }
  .section-note { justify-self: start; }

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

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

@media (max-width: 680px) {
  .site-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 20rem);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    padding: 0 2.5rem;
    background: var(--ivory);
    border-left: 1px solid var(--line-dark);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.2, 0.65, 0.25, 1);
  }

  .site-nav.is-open { transform: none; }

  .nav-toggle { display: flex; z-index: 60; }

  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .brand-est { display: none; }

  .showcase-grid,
  .spotlight-row { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }

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

  .footer-bar { flex-wrap: wrap; }
}
