/* SJA Ventures — draft site, not published */
:root {
  --ink: #16141c;
  --ink-2: #24222b;
  --paper: #f6efe3;
  --paper-2: #efe4d2;
  --cream: #fffaf3;
  --sun: #e8b84a;
  --sun-deep: #c9921e;
  --coral: #e25b3a;
  --sea: #1b6b72;
  --mute: #5c564c;
  --line: rgba(22, 20, 28, 0.12);
  --shadow: 0 18px 40px rgba(22, 20, 28, 0.12);
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --radius: 28px;
  --header-h: 72px;
  --draft-h: 36px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--draft-h) + 12px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, .brand-name { font-family: var(--display); font-optical-sizing: auto; letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
p { margin: 0; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--sun);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 100;
  font-weight: 600;
}
.skip:focus { top: 8px; }

.draft-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: var(--draft-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--sun);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 12px;
}
.draft-short { display: none; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: var(--draft-h);
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(22, 20, 28, 0.06);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 40px));
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 600;
}
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 2px var(--sun) inset;
  transform: rotate(-4deg);
  transition: transform 0.4s cubic-bezier(0.22, 1.2, 0.36, 1);
}
.logo:hover .logo-mark,
.logo:focus-visible .logo-mark { transform: rotate(6deg) scale(1.06); }
.logo-word { font-size: 1.02rem; letter-spacing: -0.02em; }
.logo-word em { font-style: normal; color: var(--mute); font-weight: 500; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav a:hover { background: var(--paper-2); }
.nav a.nav-cta {
  background: var(--ink);
  color: var(--paper);
  margin-left: 6px;
}
.nav a.nav-cta:hover { background: var(--ink-2); transform: translateY(-1px); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 96px;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -80px;
  top: -120px;
  background: radial-gradient(circle at center, rgba(232, 184, 74, 0.38), rgba(226, 91, 58, 0.08) 45%, transparent 70%);
  pointer-events: none;
  animation: drift 14s ease-in-out infinite alternate;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 6px rgba(232, 184, 74, 0.22);
  animation: pulse 2.4s ease-in-out infinite;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.15rem);
  font-weight: 600;
  color: var(--cream);
  max-width: 12ch;
}
.hero h1 .amp {
  color: var(--sun);
  font-style: italic;
  font-weight: 400;
}
.lead {
  margin-top: 22px;
  font-size: 1.14rem;
  line-height: 1.7;
  color: #d8d0c4;
  max-width: 38em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #f0c56a; box-shadow: 0 10px 24px rgba(232, 184, 74, 0.28); }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 1.5px rgba(246, 239, 227, 0.35);
}
.btn-ghost:hover { background: rgba(246, 239, 227, 0.08); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-2); }

/* Orbit */
.orbit-stage {
  display: grid;
  place-items: center;
  min-height: 420px;
}
.orbit {
  position: relative;
  width: min(380px, 86vw);
  aspect-ratio: 1;
}
.orbit-ring {
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(232, 184, 74, 0.35);
  border-radius: 50%;
  animation: spin 28s linear infinite;
}
.orbit-ring::after {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(246, 239, 227, 0.08);
  border-radius: 50%;
}
.sun {
  position: absolute;
  inset: 36%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe08a, var(--sun) 45%, var(--sun-deep));
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  box-shadow: 0 0 0 10px rgba(232, 184, 74, 0.14), 0 0 60px rgba(232, 184, 74, 0.35);
  z-index: 2;
  animation: pulse 3.2s ease-in-out infinite;
}
.planet-wrap {
  position: absolute;
  inset: 0;
  animation: spin 28s linear infinite;
}
.planet {
  position: absolute;
  left: 50%;
  top: 8%;
  width: 108px;
  margin-left: -54px;
  border: 0;
  background: var(--cream);
  color: var(--ink);
  border-radius: 18px;
  padding: 12px 10px 10px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  animation: spin-rev 28s linear infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.planet:hover, .planet:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 16px 32px rgba(0,0,0,0.25);
  z-index: 3;
}
.p-slot {
  position: absolute;
  inset: 0;
  animation: spin-slot 28s linear infinite;
}
.planet {
  position: absolute;
  left: 50%;
  top: 7%;
  width: 108px;
  margin-left: -54px;
  border: 0;
  background: var(--cream);
  color: var(--ink);
  border-radius: 18px;
  padding: 12px 10px 10px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  animation: spin-label 28s linear infinite;
  transition: box-shadow 0.2s ease;
}
.planet:hover, .planet:focus-visible {
  box-shadow: 0 16px 32px rgba(0,0,0,0.25);
  z-index: 3;
}
.planet .dot {

  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 auto 8px;
}
.planet .dot.rg { background: #c94b1d; }
.planet .dot.st { background: var(--sea); }
.planet .dot.ny { background: #d4af37; box-shadow: 0 0 0 3px #a8232b; }
.planet strong {
  display: block;
  font-family: var(--display);
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.planet span {
  display: block;
  font-size: 0.68rem;
  color: var(--mute);
  margin-top: 4px;
  font-weight: 500;
}

.orbit:hover .orbit-ring,
.orbit:hover .p-slot,
.orbit:focus-within .orbit-ring,
.orbit:focus-within .p-slot { animation-play-state: paused; }
.orbit:hover .planet,
.orbit:focus-within .planet { animation-play-state: paused; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-slot {
  from { transform: rotate(var(--off, 0deg)); }
  to { transform: rotate(calc(var(--off, 0deg) + 360deg)); }
}
@keyframes spin-label {
  from { transform: rotate(calc(0deg - var(--off, 0deg))); }
  to { transform: rotate(calc(-360deg - var(--off, 0deg))); }
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-40px, 30px) scale(1.08); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 10px rgba(232, 184, 74, 0.14), 0 0 60px rgba(232, 184, 74, 0.3); }
  50% { box-shadow: 0 0 0 16px rgba(232, 184, 74, 0.2), 0 0 80px rgba(232, 184, 74, 0.45); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Sections */
section { padding: 88px 0; scroll-margin-top: calc(var(--header-h) + var(--draft-h) + 16px); }
.section-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 600;
  max-width: 18ch;
}
.section-lead {
  margin-top: 16px;
  color: var(--mute);
  max-width: 38em;
  font-size: 1.08rem;
}

/* Brands */
.brands { background: var(--paper); }
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.brand-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.28s cubic-bezier(0.22, 1.2, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative;
  overflow: hidden;
}
.brand-card:nth-child(1) { --tilt: -0.6deg; --accent: #c94b1d; }
.brand-card:nth-child(2) { --tilt: 0.5deg; --accent: #1b6b72; }
.brand-card:nth-child(3) { --tilt: -0.35deg; --accent: #a8232b; }
.brand-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 7px;
  background: var(--accent);
}
.brand-card:hover,
.brand-card:focus-within,
.brand-card.is-lit {
  transform: rotate(0deg) translateY(-8px) scale(1.015);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}
.brand-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.brand-name { font-size: 1.85rem; font-weight: 600; }
.brand-card p { margin-top: 12px; color: #3e3a34; }
.brand-card .promise {
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--paper-2);
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
}
.cities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.cities li {
  list-style: none;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
}

/* Principles */
.principles { background: var(--paper-2); }
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.principle {
  background: var(--cream);
  border-radius: 24px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  transition: transform 0.25s ease;
}
.principle:hover { transform: translateY(-4px); }
.num {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--sun-deep);
  line-height: 1;
  margin-bottom: 10px;
}
.principle h3 { font-size: 1.45rem; font-weight: 600; }
.principle p { margin-top: 10px; color: var(--mute); }

/* Roots */
.roots { background: var(--paper); }
.roots-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 12px;
}
.city-board {
  background: var(--ink);
  color: var(--paper);
  border-radius: 32px;
  padding: 28px 26px;
  min-height: 280px;
}
.city-board h3 {
  font-size: 1.1rem;
  font-weight: 500;
  font-family: var(--sans);
  letter-spacing: 0;
  color: var(--sun);
  margin-bottom: 16px;
}
.city-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.city-pills button {
  border: 1px solid rgba(246, 239, 227, 0.16);
  background: rgba(246, 239, 227, 0.06);
  color: var(--paper);
  border-radius: 999px;
  padding: 8px 13px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.city-pills button:hover { transform: translateY(-1px); background: rgba(246, 239, 227, 0.12); }
.city-pills button[aria-pressed="true"] {
  background: var(--sun);
  color: var(--ink);
  border-color: var(--sun);
  font-weight: 700;
}
.city-note {
  margin-top: 22px;
  min-height: 4.6em;
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.city-note.swap { animation: rise 0.35s ease; }

/* Hello */
.hello {
  background:
    radial-gradient(600px 280px at 10% 0%, rgba(232, 184, 74, 0.22), transparent 60%),
    var(--paper-2);
}
.hello-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
form {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px;
  display: grid;
  gap: 14px;
}
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.9rem; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 14px;
  padding: 12px 14px;
}
input:hover, textarea:hover { border-color: #c9c0b2; }
textarea { min-height: 140px; resize: vertical; }
.form-note {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--mute);
}
.form-success {
  display: none;
  background: #e7f3e8;
  border: 1px solid #b7d7ba;
  color: #1d4a24;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 600;
}
.form-success.is-on { display: block; }
form.is-sent .fields, form.is-sent .btn { display: none; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #cfc8bc;
  padding: 48px 0 36px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}
.foot-brand {
  font-family: var(--display);
  font-size: 1.8rem;
  color: var(--cream);
  letter-spacing: -0.03em;
}
.site-footer p { margin-top: 8px; font-size: 0.92rem; }
.site-footer small { color: #8f877b; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); animation: rise 0.7s ease forwards; }
.hero .copy > * { opacity: 0; animation: rise 0.8s ease forwards; }
.hero .copy .eyebrow { animation-delay: 0.05s; }
.hero .copy h1 { animation-delay: 0.14s; }
.hero .copy .lead { animation-delay: 0.24s; }
.hero .copy .hero-actions { animation-delay: 0.34s; }
.orbit-stage { opacity: 0; animation: rise 0.9s ease 0.2s forwards; }

@media (max-width: 900px) {
  .hero { padding: 36px 0 72px; }
  .hero .wrap, .roots-layout, .hello-grid { grid-template-columns: 1fr; gap: 28px; }
  .brand-grid, .principle-grid { grid-template-columns: 1fr; }
  .orbit-stage { min-height: 0; }
  .orbit { width: min(260px, 72vw); }
  .planet {
    width: 82px;
    margin-left: -41px;
    padding: 8px 6px 7px;
    top: 1.5%;
  }
  .p-slot .planet { margin-left: -41px; top: 1.5%; }
  .planet strong { font-size: 0.8rem; }
  .sun { font-size: 1rem; }
  .hero h1 { max-width: none; }
  .section-title { max-width: none; }
  section { padding: 68px 0; }
}

@media (max-width: 700px) {
  .wrap { width: min(1120px, calc(100% - 28px)); }
  .draft-full { display: none; }
  .draft-short { display: inline; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: calc(var(--draft-h) + var(--header-h));
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 16px 30px rgba(22,20,28,0.08);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav a.nav-cta { margin-left: 0; text-align: center; }
  .logo-word em { display: none; }
  .city-note { font-size: 1.25rem; }
  .brand-name { font-size: 1.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal, .hero .copy > *, .orbit-stage { opacity: 1; transform: none; }
  .orbit-ring, .p-slot, .planet { animation: none !important; }
  .p-slot { transform: rotate(var(--off, 0deg)); }
  .p-slot .planet { transform: rotate(calc(0deg - var(--off, 0deg))); }
}

.hero .wrap { overflow: visible; }
@media (max-width: 700px) {
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
