/* ============================================================
   Sandy Labs — styles.css
   Design tokens, type system, component library
   ============================================================ */

:root {
  --sand-deep: #E6D7BC;
  --cream:     #F7F0E4;
  --espresso:  #1F1A14;
  --sand-700:  #4A3F32;
  --amber:     #E87A2C;
  --ember:     #FFB762;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  cursor: none;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

::selection {
  background: var(--ember);
  color: var(--espresso);
}

/* ============================================================
   Cursor — body cursor:none, restored on coarse/reduced-motion
   ============================================================ */
a, button, input, textarea, label, .cta-primary, .cta-secondary, .link-tertiary {
  cursor: none;
}

#acorn-cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}
#squirrel-follower {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
}
@media (hover: none), (pointer: coarse) {
  body, a, button, input, textarea, label,
  .cta-primary, .cta-secondary, .link-tertiary { cursor: auto; }
  #acorn-cursor, #squirrel-follower { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #acorn-cursor, #squirrel-follower { display: none; }
  body, a, button, input, textarea, label,
  .cta-primary, .cta-secondary, .link-tertiary { cursor: auto; }
}

/* ============================================================
   Layout primitives
   ============================================================ */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}
@media (min-width: 960px) {
  .container { padding: 0 48px; }
}

.section {
  position: relative;
  padding: 72px 0;
  overflow: hidden;
}
@media (min-width: 960px) {
  .section { padding: 96px 0; }
}
@media (min-width: 1200px) {
  .section { padding: 120px 0; }
}

.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(31, 26, 20, 0.18), transparent);
  margin: 0 28px;
}

/* ============================================================
   Typography
   ============================================================ */
.fraunces {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "opsz" 60, "SOFT" 50;
  font-weight: 500;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  color: var(--espresso);
  margin: 0;
}

.display-xl {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "opsz" 96, "SOFT" 50;
  font-weight: 500;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--espresso);
  margin: 0;
}

.display-l {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "opsz" 96, "SOFT" 50;
  font-weight: 500;
  font-size: clamp(40px, 6.5vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: var(--espresso);
  margin: 0;
}

.section-h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "opsz" 60, "SOFT" 50;
  font-weight: 500;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--espresso);
  margin: 0 0 32px;
}

.h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "opsz" 36, "SOFT" 50;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--espresso);
  margin: 0 0 12px;
}

.pull-line {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "opsz" 36, "SOFT" 50;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  color: var(--espresso);
  margin: 0 0 28px;
  max-width: 62ch;
}

.body-l {
  font-size: 18px;
  line-height: 1.6;
  color: var(--sand-700);
  margin: 0 0 22px;
  max-width: 46ch;
}

.prose p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--sand-700);
  margin: 0 0 22px;
  max-width: 62ch;
}
.prose p:last-child { margin-bottom: 0; }

.prose strong {
  font-weight: 500;
  color: var(--espresso);
}

.italic-outro {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  color: var(--sand-700);
  max-width: 62ch;
  margin: 32px 0 0;
}

.italic-aside {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  color: var(--sand-700);
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 24px;
}

/* ============================================================
   Buttons
   ============================================================ */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--espresso);
  color: var(--cream);
  padding: 17px 34px;
  border-radius: 999px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.005em;
  border: none;
  transition: background 220ms ease-out, color 220ms ease-out;
}
.cta-primary:hover {
  background: var(--amber);
  color: var(--espresso);
}
.cta-primary .arrow {
  font-size: 18px;
  transform: translateY(-1px);
  display: inline-block;
}

.cta-secondary {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--espresso);
  color: var(--espresso);
  padding: 9px 18px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 220ms ease-out, color 220ms ease-out;
}
.cta-secondary:hover {
  background: var(--espresso);
  color: var(--cream);
}

.link-tertiary {
  color: var(--espresso);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 220ms ease-out;
  font-family: 'Inter', sans-serif;
}
.link-tertiary:hover {
  color: var(--amber);
}

/* ============================================================
   Navigation header
   ============================================================ */
.nav {
  border-bottom: 1px solid rgba(31, 26, 20, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  max-width: 1240px;
  margin: 0 auto;
}
@media (min-width: 960px) {
  .nav-inner { padding: 22px 48px; }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--espresso);
}
.logo svg { display: block; }
.logo span {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "opsz" 24, "SOFT" 50;
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--espresso);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 56px 0 80px;
  overflow: hidden;
}
@media (min-width: 960px) {
  .hero { padding: 72px 0 104px; }
}
@media (min-width: 1200px) {
  .hero { padding: 88px 0 128px; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 36px;
  }
}
@media (min-width: 1024px) {
  .hero-grid--home {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
  .hero-grid--niche {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

.hero-subhead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--sand-700);
  margin: 24px 0 32px;
  max-width: 46ch;
}

.hero-image-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sand-deep) 0%, #D4C2A0 100%);
}
.hero-image-card--claymation {
  background: radial-gradient(circle at 30% 25%, var(--ember) 0%, var(--sand-deep) 55%, #C9B898 100%);
  box-shadow: inset 0 0 60px rgba(255, 183, 98, 0.18);
}
.hero-image-card::after {
  content: '';
  position: absolute;
  top: 8%;
  left: 12%;
  width: 55%;
  height: 55%;
  background: radial-gradient(circle, rgba(255, 183, 98, 0.32) 0%, transparent 70%);
  pointer-events: none;
}
.hero-image-card--claymation::after { display: none; }

.hero-image-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/* Ambient amber glow */
.glow-tr::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(255, 183, 98, 0.22) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.glow-tl::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -15%;
  width: 50%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 183, 98, 0.16) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.glow-br::before {
  content: '';
  position: absolute;
  bottom: -15%;
  right: -10%;
  width: 50%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 183, 98, 0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.section > .container { position: relative; z-index: 1; }
.hero > .container { position: relative; z-index: 1; }

/* ============================================================
   Stats
   ============================================================ */
.stats-lede {
  font-size: 16px;
  color: var(--sand-700);
  max-width: 62ch;
  margin: 0 0 36px;
  line-height: 1.65;
}

.stat {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 28px 0;
  border-top: 1px solid rgba(31, 26, 20, 0.1);
  align-items: start;
}
@media (min-width: 720px) {
  .stat {
    grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr);
    gap: 28px;
  }
}
.stat:last-of-type {
  border-bottom: 1px solid rgba(31, 26, 20, 0.1);
}
.stat-num {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "opsz" 96, "SOFT" 50;
  font-weight: 500;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--espresso);
}
.stat-text {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--sand-700);
  padding-top: 6px;
  max-width: 62ch;
}
.stat-source {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: var(--sand-700);
  opacity: 0.72;
  margin-top: 10px;
}

/* ============================================================
   Router cards (homepage)
   ============================================================ */
.router-lede {
  font-size: 16px;
  color: var(--sand-700);
  max-width: 62ch;
  margin: 0 0 36px;
  line-height: 1.65;
}

.router-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px) {
  .router-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.router-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 24px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(31, 26, 20, 0.12);
  border-radius: 14px;
  transition: border-color 220ms ease-out, background 220ms ease-out;
  text-decoration: none;
  color: var(--espresso);
}
.router-card:hover {
  border-color: rgba(31, 26, 20, 0.3);
  background: rgba(255, 255, 255, 0.7);
}

.router-card-img {
  position: relative;
  width: 55%;
  aspect-ratio: 5/4;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sand-deep) 0%, #D4C2A0 100%);
  margin-bottom: 22px;
}
.router-card-img::after {
  content: '';
  position: absolute;
  top: 8%;
  left: 12%;
  width: 55%;
  height: 55%;
  background: radial-gradient(circle, rgba(255, 183, 98, 0.32) 0%, transparent 70%);
  pointer-events: none;
}
.router-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.router-card h3 {
  margin: 0 0 12px;
}
.router-card-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--sand-700);
  margin: 0 0 16px;
  max-width: 50ch;
}
.router-card-price {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: var(--sand-700);
  margin: 0 0 18px;
}
.router-card .link-tertiary {
  align-self: flex-start;
}

.outsider-line {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  color: var(--sand-700);
  max-width: 62ch;
  margin: 36px 0 0;
}

/* ============================================================
   "What we build" blocks
   ============================================================ */
.build-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding: 36px 0;
}
@media (min-width: 768px) {
  .build-block {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  }
  .build-block.reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  }
  .build-block.reverse .build-block-img { order: 2; }
  .build-block.reverse .build-block-text { order: 1; }
}
.build-block + .build-block {
  border-top: 1px solid rgba(31, 26, 20, 0.08);
}

.build-block-img {
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--sand-deep) 0%, #D4C2A0 100%);
  border-radius: 12px;
  overflow: hidden;
}
.build-block-img::after {
  content: '';
  position: absolute;
  top: 8%;
  left: 12%;
  width: 55%;
  height: 55%;
  background: radial-gradient(circle, rgba(255, 183, 98, 0.32) 0%, transparent 70%);
  pointer-events: none;
}
.build-block-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.build-block-text h3 {
  margin: 0 0 14px;
}
.build-block-text p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--sand-700);
  margin: 0;
  max-width: 60ch;
}

/* ============================================================
   Pilot section
   ============================================================ */
.pilot-prose p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--sand-700);
  margin: 0 0 22px;
  max-width: 62ch;
}
.pilot-prose .lead-emph {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--espresso);
}
.pilot-pointer {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: var(--sand-700);
  margin-top: 8px;
}

/* ============================================================
   Form section
   ============================================================ */
.form-section {
  position: relative;
  background: linear-gradient(180deg, transparent 0%, rgba(230, 215, 188, 0.45) 60%);
}

.form-intro {
  font-size: 16px;
  line-height: 1.65;
  color: var(--sand-700);
  max-width: 62ch;
  margin: 0 0 36px;
}

.form {
  max-width: 620px;
  margin-bottom: 22px;
}
.form-field { margin-bottom: 22px; }
.form-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--sand-700);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.form-input,
.form-textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(31, 26, 20, 0.25);
  background: transparent;
  padding: 10px 0 12px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--espresso);
  outline: none;
  transition: border-color 220ms ease-out;
  box-sizing: border-box;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus,
.form-textarea:focus {
  border-bottom-color: var(--amber);
}
.form-textarea {
  resize: none;
  min-height: 78px;
  line-height: 1.5;
}
.form-submit-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.form-or-link {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
}
.calendly-wrap {
  margin-top: 56px;
}
.success-message {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--espresso);
  max-width: 62ch;
  margin: 0 0 28px;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--sand-deep);
  padding: 56px 28px 44px;
  text-align: center;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--espresso);
}
.footer-logo span {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "opsz" 24, "SOFT" 50;
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.footer-info {
  margin-top: 28px;
  font-size: 13px;
  color: var(--sand-700);
}
.footer-info a {
  color: var(--sand-700);
  text-decoration: none;
  transition: color 220ms ease-out;
}
.footer-info a:hover {
  color: var(--espresso);
}
.footer-info .dot {
  margin: 0 8px;
  opacity: 0.7;
}
.footer-tagline {
  margin-top: 16px;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--sand-700);
}

/* ============================================================
   Privacy page
   ============================================================ */
.privacy {
  max-width: 700px;
  margin: 0 auto;
  padding: 72px 28px 96px;
}
.privacy h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "opsz" 96, "SOFT" 50;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--espresso);
  margin: 0 0 12px;
}
.privacy .last-updated {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: var(--sand-700);
  margin: 0 0 40px;
}
.privacy h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "opsz" 60, "SOFT" 50;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--espresso);
  margin: 48px 0 18px;
}
.privacy p, .privacy li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--sand-700);
}
.privacy p { margin: 0 0 18px; }
.privacy ul, .privacy ol { padding-left: 22px; margin: 0 0 18px; }
.privacy li { margin-bottom: 6px; }
.privacy a {
  color: var(--espresso);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 220ms ease-out;
}
.privacy a:hover { color: var(--amber); }
