/* =========================================================
   WorkSpot — design tokens
   ========================================================= */
:root {
  --ink: #0e0e0e;
  --paper: #f6f3ec;
  --paper-soft: #ece7dc;
  --red: #cb2127;
  --red-deep: #a91a1f;
  --muted: #5a5650;
  --rule: rgba(14, 14, 14, 0.12);

  --font-display: "Archivo Black", "Impact", sans-serif;
  --font-serif: "Fraunces", "Georgia", serif;
  --font-body: "Inter", system-ui, sans-serif;

  --max: 1180px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);

  --radius: 4px;
  --shadow: 0 1px 0 var(--rule);
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* =========================================================
   Background texture (subtle paper feel)
   ========================================================= */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    radial-gradient(rgba(14,14,14,0.04) 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem var(--gutter);
}
.logo {
  display: inline-flex;
  align-items: center;
  transition: opacity 180ms ease;
}
.logo:hover { opacity: 0.75; }
.logo-img {
  height: 32px;
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .logo-img { height: 26px; }
}

.site-nav {
  display: flex; gap: 1.75rem; align-items: center;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a {
  position: relative;
  padding: 0.25rem 0;
}
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform 220ms ease;
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta {
  background: var(--ink); color: var(--paper);
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  transition: background 180ms ease;
}
.nav-cta:hover { background: var(--red); }

@media (max-width: 640px) {
  .site-nav { gap: 1rem; font-size: 0.9rem; }
  .site-nav a:first-child { display: none; }
}

/* =========================================================
   Typography & sections
   ========================================================= */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: normal;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 1rem;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; font-family: var(--font-body); font-weight: 600; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--ink);
}

.serif { font-family: var(--font-serif); font-style: italic; }

.lede {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 38ch;
}

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
h1 .accent,
.hero h1 .accent {
  display: inline-block;
  width: 0.32em;
  height: 0.32em;
  background: var(--red);
  border-radius: 50%;
  vertical-align: baseline;
  margin-left: 0.05em;
  margin-bottom: 0.05em;
}
.hero-meta {
  border-left: 1px solid var(--rule);
  padding-left: clamp(1.25rem, 2.5vw, 2rem);
}

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-meta { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; padding-top: 1.5rem; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--ink); color: var(--paper);
  padding: 0.85rem 1.4rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: transform 180ms ease, background 180ms ease;
}
.btn:hover { background: var(--red); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* =========================================================
   Philosophy / principles
   ========================================================= */
.philosophy-section {
  background: var(--paper-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}
.principle {
  display: flex;
  flex-direction: column;
}
.principle-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--red);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.principle h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  font-weight: normal;
  letter-spacing: -0.01em;
}
.principle p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* =========================================================
   Ventures grid
   ========================================================= */
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 2rem;
  margin-bottom: 3rem; flex-wrap: wrap;
}
.section-head p { max-width: 36ch; color: var(--muted); margin: 0; }

.ventures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.venture {
  background: var(--paper);
  padding: 2rem;
  display: flex; flex-direction: column;
  min-height: 280px;
  transition: background 220ms ease;
  position: relative;
}
.venture:hover { background: var(--paper-soft); }
.venture-number {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.venture h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}
.venture-subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin: 0 0 1rem;
}
.venture-partner {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
  font-style: italic;
}
.venture-partner a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  transition: border-color 180ms ease;
}
.venture-partner a:hover { border-bottom-color: var(--red); color: var(--red); }
.venture .tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink);
  margin: 0 0 1rem;
}
.venture p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.venture-foot {
  margin-top: auto; padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem;
}
.venture-status {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
}
.venture-status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
}
.venture-status.coming::before { background: var(--muted); }
.venture-link {
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 180ms ease;
}
.venture-link:hover { color: var(--red); }

/* =========================================================
   Two-column content
   ========================================================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.two-col h2 { position: sticky; top: 6rem; }
.prose p { margin: 0 0 1.25rem; }
.prose p:last-child { margin-bottom: 0; }
.prose a { border-bottom: 1px solid var(--ink); }
.prose a:hover { color: var(--red); border-bottom-color: var(--red); }

@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col h2 { position: static; }
}

/* =========================================================
   Contact
   ========================================================= */
.contact-card {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  width: 240px; height: 240px;
  background: var(--red);
  border-radius: 50%;
  right: -80px; bottom: -80px;
  opacity: 0.9;
}
.contact-card h2 { color: var(--paper); position: relative; }
.contact-card p { color: rgba(246, 243, 236, 0.75); position: relative; }
.contact-actions { position: relative; display: flex; flex-direction: column; gap: 0.75rem; }
.contact-actions a {
  color: var(--paper);
  font-weight: 500;
  padding: 0.85rem 1.25rem;
  border: 1px solid rgba(246, 243, 236, 0.25);
  border-radius: var(--radius);
  transition: background 180ms ease, border-color 180ms ease;
}
.contact-actions a:hover { background: rgba(246, 243, 236, 0.08); border-color: var(--paper); }

@media (max-width: 800px) {
  .contact-card { grid-template-columns: 1fr; }
}

/* =========================================================
   Contact page form
   ========================================================= */
.form {
  display: grid;
  gap: 1.25rem;
  max-width: 540px;
}
.form label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.form input,
.form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  transition: border-color 180ms ease;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.form textarea { resize: vertical; min-height: 140px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding: 2.5rem 0;
  background: var(--paper-soft);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 2rem; flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand p { margin: 0; font-weight: 600; color: var(--ink); }
.footer-mark {
  width: 12px; height: 12px; border-radius: 50%; background: var(--red);
}
.footer-meta p { margin: 0; }
.footer-meta a:hover { color: var(--red); }

/* =========================================================
   Subtle entrance for hero
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lede, .hero-meta {
    opacity: 0;
    animation: rise 600ms ease forwards;
  }
  .hero h1 { animation-delay: 60ms; }
  .hero .lede { animation-delay: 160ms; }
  .hero-meta { animation-delay: 260ms; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
