/* style.css — GROUNDS, work.co-style restraint */

:root {
  --accent: #c8440a;
  --ink: #000000;
  --gray: #888888;
  --rule: #e2e2e2;
  --paper: #ffffff;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --label-col: clamp(120px, 16%, 160px);
}

/* ---------- Top stripe ---------- */
.top-stripe {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  z-index: 9000;
}

/* ---------- Custom cursor ---------- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: #111111;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 80ms linear, opacity 200ms ease;
  opacity: 0;
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot {
    display: none;
  }
}

/* ---------- Scroll arrows ---------- */
.scroll-arrow {
  position: fixed;
  right: var(--gutter);
  z-index: 8500;
  font-size: 14px;
  line-height: 1;
  color: var(--gray);
  letter-spacing: 0;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, color 180ms ease, visibility 200ms ease;
}
.scroll-arrow:hover {
  color: var(--accent);
}
.scroll-arrow.is-visible {
  opacity: 1;
  visibility: visible;
}
.scroll-arrow--up {
  top: calc(3px + 1.5rem);
}
.scroll-arrow--down {
  bottom: 1.5rem;
}
@media (hover: none), (pointer: coarse) {
  .scroll-arrow {
    display: none;
  }
}

/* ---------- Layout primitives ---------- */
.wrap {
  padding-inline: var(--gutter);
  max-width: 1500px;
  margin-inline: auto;
  width: 100%;
}

.grid2 {
  display: grid;
  grid-template-columns: var(--label-col) 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.label {
  font-size: 14px;
  color: var(--gray);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.section {
  padding-block: clamp(5rem, 10vh, 8rem);
  border-bottom: 1px solid var(--rule);
}

/* ---------- Header / nav ---------- */
.site-header {
  padding-top: clamp(2rem, 5vh, 3rem);
  padding-bottom: clamp(2rem, 5vh, 3rem);
}
.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.logo-badge {
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 24px;
  flex-shrink: 0;
}
.logo-text {
  line-height: 1.15;
}
.logo-text .name {
  display: block;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.logo-text .tag {
  display: block;
  font-size: 13px;
  color: var(--gray);
}

/* ---------- Hero ---------- */
.hero {
  border-bottom: 1px solid var(--rule);
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2rem, 6vh, 5rem);
}
.hero h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.hero .pull {
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: #2a2a2a;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 44ch;
}

/* ---------- CTA links ---------- */
.cta {
  display: inline-block;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  font-weight: 500;
  margin-top: clamp(1.5rem, 2.5vw, 2rem);
}
.cta:hover {
  text-decoration-thickness: 2.5px;
}
.cta--inline {
  margin-top: 1rem;
}

/* ---------- Latest ---------- */
.video-card {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f1f1f1;
}
.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-card .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.video-card .play span {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
}
.video-card .play span::after {
  content: '';
  border-left: 20px solid var(--accent);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 5px;
}
.latest-body {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 60ch;
}
.latest-body h3 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: -0.01em;
}
.latest-body p {
  margin-top: 0.75rem;
  color: #333;
  max-width: 52ch;
}

/* ---------- Updates grid ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
}
.card {
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.card h4 {
  color: var(--ink);
  text-decoration: none;
}
.card p {
  text-decoration: none;
}
.card-thumb {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #f1f1f1;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.card:hover .card-thumb img {
  transform: scale(1.03);
}
.card h4 {
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  margin-top: 1.1rem;
}
.card p {
  color: #333;
  margin-top: 0.5rem;
  font-size: 16px;
  max-width: 40ch;
}
.card .cta {
  margin-top: 0.9rem;
  font-size: 16px;
}

/* ---------- Index ---------- */
.index-list {
  list-style: none;
}
.index-list li {
  border-top: 1px solid var(--rule);
}
.index-list li:last-child {
  border-bottom: 1px solid var(--rule);
}
.index-list a {
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
  text-decoration: none;
  color: var(--ink);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  padding-block: clamp(0.85rem, 1.8vw, 1.25rem);
  transition: color 180ms ease;
}
.index-list a .num {
  font-size: 0.55em;
  color: var(--gray);
  font-weight: 500;
  width: 1.5em;
  flex-shrink: 0;
}
.index-list a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}

/* ---------- Stay informed ---------- */
.signup-body h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.signup-form {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.signup-form input {
  border: 1px solid #cfcfcf;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  min-width: 260px;
  background: #fff;
}
.signup-form input:focus {
  border-color: var(--ink);
  outline: none;
}
.btn-pill {
  border: 1.5px solid #000;
  background: #fff;
  color: #000;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  font-weight: 500;
  font-size: 15px;
  transition: background 180ms ease, color 180ms ease;
}
.btn-pill:hover {
  background: #000;
  color: #fff;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #fff;
  padding-block: clamp(3.5rem, 8vh, 6rem);
}
.footer-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.mono-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.footer-top .ftxt {
  line-height: 1.2;
}
.footer-top .ftxt .n {
  font-weight: 700;
  display: block;
}
.footer-top .ftxt .c {
  font-size: 13px;
  color: var(--gray);
  display: block;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}
.footer-cols h5 {
  font-size: 13px;
  color: var(--gray);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.footer-cols a {
  display: block;
  color: #000;
  text-decoration: none;
  font-size: 16px;
  margin-bottom: 0.5rem;
  width: fit-content;
}
.footer-cols a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-cols .loc {
  margin-bottom: 1.25rem;
}
.footer-cols .loc .addr {
  font-weight: 500;
}
.footer-cols .loc .hrs {
  color: var(--gray);
  font-size: 14px;
  margin-top: 0.2rem;
}
.footer-credit {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--gray);
}
.footer-credit a {
  color: var(--gray);
}
.footer-credit a:hover {
  color: var(--accent);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transition: opacity 800ms var(--ease-out);
}
.reveal.in {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  body {
    cursor: auto;
  }
  .grid2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .label {
    margin-bottom: 0.25rem;
  }
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .section {
    min-height: auto;
    padding-block: clamp(3rem, 8vh, 4.5rem);
  }
  .hero {
    min-height: auto;
  }
  /* cards: 1 col on narrow mobile, 2 col on wider mobile */
  .cards {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 520px) and (max-width: 760px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
