/* JODO — studio site.
   Dark-first. One accent, spent on the hero and on interaction; everything
   else stays quiet. Light theme is a full palette, not an inversion. */

:root {
  --bg:        #0F1412;
  --surface:   #151B18;
  --surface-2: #1B2320;
  --ink:       #EDF0EC;
  --ink-soft:  #9AA69E;
  --line:      #222B27;
  --line-firm: #34403A;
  --accent:    #C8F33F;
  --accent-ink:#0F1412;   /* text on an accent-filled surface */
  --accent-dim:#8FB52A;

  --display: "Syne", "Helvetica Neue", Arial, sans-serif;
  --body:    "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --measure: 62ch;
  --wrap: 1080px;
  --gutter: clamp(20px, 5vw, 48px);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:        #F4F6F1;
    --surface:   #FFFFFF;
    --surface-2: #EAEEE5;
    --ink:       #10160F;
    --ink-soft:  #5E6A60;
    --line:      #DCE2D6;
    --line-firm: #B9C3B4;
    --accent:    #4A7A00;
    --accent-ink:#FFFFFF;
    --accent-dim:#6E9A1F;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--display);
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.wordmark .dot { color: var(--accent); }
.top nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px clamp(14px, 3vw, 28px); }
.top nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.top nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- layout ---------- */

main { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); min-width: 0; }
img { max-width: 100%; height: auto; }
section { padding: clamp(56px, 9vw, 112px) 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }
.sec-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }

/* ---------- hero ---------- */

.hero {
  padding-top: clamp(72px, 12vw, 150px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hero h1 {
  /* Syne 800 is wide. The floor is set so "commitment." fits a 320px phone
     (~8.3x the font size); a break is never allowed inside the word, because
     text-wrap: balance will happily split it to even the lines if it can. */
  font-size: clamp(2rem, 8.5vw, 6rem);
  font-weight: 800;
  line-height: 0.98;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: var(--measure); }
.cta {
  align-self: flex-start;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--ink);
  padding: 12px 18px;
  border: 1px solid var(--line-firm);
  border-radius: 999px;
  transition: border-color .15s, background .15s, color .15s;
}
.cta:hover { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }

.reveal { opacity: 0; transform: translateY(10px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; } }

/* ---------- apps ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--line-firm); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card-head { display: flex; align-items: center; gap: 16px; }
.icon { width: 72px; height: 72px; border-radius: 18px; flex: none; }
.card h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
.status { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-firm);
  color: var(--ink-soft);
}
.pill.live { border-color: var(--accent-dim); color: var(--accent); }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.btn {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  transition: filter .15s;
}
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-firm); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.disabled { background: transparent; color: var(--ink-soft); border-color: var(--line); cursor: default; }

/* ---------- principles ---------- */

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  counter-reset: p;
}
.principles li { counter-increment: p; display: flex; flex-direction: column; gap: 10px; }
.principles li::before {
  content: "0" counter(p);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.principles h3 { font-size: 1.15rem; font-weight: 700; }
.principles p { color: var(--ink-soft); font-size: 0.97rem; max-width: 40ch; }

/* ---------- footer ---------- */

footer {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px var(--gutter) 48px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 560px) {
  .top nav a { font-size: 0.85rem; }
  .card { padding: 20px; }
  .icon { width: 60px; height: 60px; border-radius: 15px; }
}
