:root {
  --ink: #0b1120;
  --gray-text: #525252;
  --gray-text-2: #3f3f40;
  --gold: #dea618;
  --gold-bg: #f0edd3;
  --header-h: 92px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: 'Inter', 'Inter Placeholder', sans-serif;
  background: #ffffff;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Manrope', 'Manrope Placeholder', sans-serif;
  margin: 0;
  color: #111;
}

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

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

.site-header, main, .site-footer {
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.brand-logo {
  height: 44px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 36px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Manrope', sans-serif;
}

.main-nav a {
  color: #333;
  transition: opacity 0.2s ease;
}

.main-nav a:hover { opacity: 0.6; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

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

.btn-dark {
  background: #0b0b0b;
  color: #fff;
}

.btn-dark:hover { background: #222; }

.btn-outline {
  background: transparent;
  border-color: #0b0b0b;
  color: #0b0b0b;
}

.btn-outline:hover { background: #0b0b0b; color: #fff; }

/* Hero: fills the rest of the first screen below the header, so all four
   corners are visible without scrolling. */
.hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#lines-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  max-width: 560px;
  position: relative;
  z-index: 2;
  padding: 0 24px;
  transition: opacity .5s ease;
}

/* Starting state for the page-load fade-in; main.js removes this class
   shortly after load. Kept as a class (not a CSS `animation`) so it can't
   fight with the .section-active opacity rule below once it's gone. */
.hero-content.intro-hidden { opacity: 0; }

.hero.section-active .hero-content {
  opacity: 0;
  pointer-events: none;
}

.hero-heading-link { display: block; }

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero p {
  font-size: 19px;
  color: var(--gray-text-2);
  line-height: 1.5;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}

/* Corner labels: plain text, no boxes. The particle canvas does the rest. */
.corner-zone {
  position: absolute;
  z-index: 5;
  cursor: pointer;
  padding: 10px 14px;
  outline: none;
  transition: opacity .5s ease;
}

.corner-zone.intro-hidden { opacity: 0; }

.corner-tl { top: 40px; left: 40px; }
.corner-tr { top: 40px; right: 40px; }
.corner-bl { bottom: 40px; left: 40px; }
.corner-br { bottom: 40px; right: 40px; }

.corner-label {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9099ab;
  transition: color .35s ease, opacity .35s ease;
}

.corner-zone.active .corner-label,
.corner-zone:hover .corner-label {
  color: transparent;
  opacity: 0;
}

/* Shared content panel: positioned by JS to land exactly where the particles
   just finished spelling out the heading — the real heading fades in there
   in their place, then that section's real content (photos, forms, links —
   everything from the original site) fades in below it. */
.section-panel {
  position: absolute;
  z-index: 6;
  width: 700px;
  max-width: 92vw;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
  text-align: center;
}

.section-panel.visible {
  opacity: 1;
  pointer-events: auto;
}

.section-panel-heading {
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.section-extra {
  display: none;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-text-2);
}

.section-extra.active { display: block; }

.section-extra p {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.section-cta { margin-top: 14px; }

.section-image {
  display: block;
  height: 320px;
  width: auto;
  max-width: 100%;
  border-radius: 14px;
  object-fit: cover;
  margin: 0 auto 16px;
}

.section-carousel-wrap {
  position: relative;
  margin-top: 16px;
}

.section-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.section-carousel::-webkit-scrollbar { display: none; }

.section-carousel img {
  width: 160px;
  height: 160px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  flex: 0 0 auto;
}

/* Lives outside the scrolling track (see .section-carousel-wrap) so it
   stays put on screen instead of scrolling away with the photos. */
.carousel-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #222;
}

.blog-card-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.blog-logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.blog-card-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}

.blog-card p {
  color: var(--gray-text);
}

.blog-meta {
  font-weight: 600;
  color: #333;
  margin-top: 8px;
  font-size: 13px;
}

.blog-subscribe {
  display: flex;
  margin: 14px auto 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  max-width: 380px;
}

.blog-subscribe input {
  flex: 1;
  border: none;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  min-width: 0;
}

.blog-subscribe button {
  background: #7c5cff;
  color: #fff;
  border: none;
  padding: 0 22px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

.blog-fine-print {
  font-size: 11.5px;
  color: #9a9a9a;
  margin: 14px auto 0;
  line-height: 1.5;
  max-width: 420px;
}

.substack-badge {
  margin-top: 14px;
  font-weight: 700;
  color: #ff6719;
  font-size: 13px;
}

/* Partners strip (separate section, below hero) */
.partners-strip-section {
  background: #fff;
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 50px 48px;
  border-bottom: 1px solid #f0f0f0;
}

.partners-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #b9b9b9;
  margin-bottom: 26px;
}

.partners-track {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.partners-row {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
}

.partners-row img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  flex: 0 0 auto;
}

.row-a { animation: scroll-left 42s linear infinite; }
.row-b { animation: scroll-right 42s linear infinite; }

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

/* Work banner */
.work-banner {
  background: conic-gradient(from 142deg, rgb(0, 69, 133) 0deg, rgb(122, 191, 255) 134.44deg, rgb(242, 215, 172) 253.028deg, rgb(255, 166, 0) 360deg);
  position: relative;
}

.work-banner-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.work-banner h2 {
  color: #001122;
  font-size: 32px;
  font-weight: 700;
  flex: 0 0 auto;
}

.work-banner p {
  color: rgba(0, 17, 34, 0.85);
  font-size: 15px;
  text-align: right;
  line-height: 1.6;
  flex: 1 1 320px;
}

.work-banner .btn-dark {
  flex: 0 0 auto;
}

/* Join CTA */
.join-cta-wrap {
  background: #fff;
  position: relative;
  z-index: 1;
}

.join-cta {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 48px 140px;
}

.join-card {
  border-radius: 20px;
  padding: 56px;
  background: conic-gradient(from 254deg at 32.9% 50%, rgb(0, 69, 133) 0deg, rgb(122, 191, 255) 177.289deg, rgb(242, 215, 172) 285.133deg, rgb(255, 180, 105) 360deg);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 18px;
}

.join-card h2 {
  font-size: 28px;
  font-weight: 700;
}

.join-card p {
  color: rgba(0,0,0,0.75);
  font-size: 15px;
  line-height: 1.6;
  max-width: 480px;
}

/* Footer */
.site-footer {
  background: #ffffff;
  color: #333;
  padding: 70px 48px 30px;
  border-top: 1px solid #eee;
}

.footer-top {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.footer-logo { height: 34px; width: auto; }

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-family: 'Manrope', sans-serif;
}

.footer-brand-text strong { font-size: 14px; }
.footer-brand-text small { font-size: 10px; color: #888; }

.footer-about p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  max-width: 420px;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  color: #333;
  display: inline-flex;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  text-align: right;
}

.footer-heading {
  font-weight: 700;
  color: rgba(0,17,34,0.8);
  margin-bottom: 4px;
  font-family: 'Manrope', sans-serif;
}

.footer-menu a {
  color: #525252;
  transition: color 0.2s ease;
}

.footer-menu a:hover { color: #000; }

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-ocf {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #666;
  white-space: nowrap;
}

.ocf-badge { font-size: 22px; }

.footer-legal {
  font-size: 12.5px;
  color: #8a8a8a;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

/* Responsive */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 18px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-menu { text-align: left; }
  .work-banner p { text-align: left; }
  .join-card { align-items: flex-start; text-align: left; }
  .footer-bottom { flex-direction: column; }
  .footer-legal { text-align: left; }
}

/* The corner particle interaction stays on for phones/tablets too — the
   four labels just sit closer to the true edges (smaller margin) so they
   read as the four corners of the phone, and tapping a corner opens it the
   same way clicking does on desktop (see main.js's click handler). */
@media (max-width: 640px) {
  .corner-tl { top: 20px; left: 16px; }
  .corner-tr { top: 20px; right: 16px; }
  .corner-bl { bottom: 20px; left: 16px; }
  .corner-br { bottom: 20px; right: 16px; }
  .corner-label { font-size: 11px; letter-spacing: 0.12em; }
  .hero-content { padding: 0 16px; }
  .section-extra { font-size: 13px; }
  /* Phones are tight on vertical room no matter how the text is sized —
     unlike desktop, scrolling inside the panel here is normal, expected
     behavior, not a layout bug, so it's a safety net rather than the plan. */
  .section-panel { overflow-y: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 560px) {
  .site-header { padding: 18px 20px; }
  .site-footer { padding: 50px 20px 24px; }
}
