/* studio.css — the Development page and the blog.
   The homepage keeps its own filmic style; these pages are the workshop:
   warm charcoal, one clean sans (Geist) with a mono for labels, BSR amber as the only accent. */

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

:root {
  --bg: #0e0e0f;
  --surface: #151517;
  --surface-2: #1b1b1e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f2efe9;
  --muted: #a6a39b;
  --faint: #6f6c66;
  --accent: #e8952e;
  --accent-soft: rgba(232, 149, 46, 0.14);
  --live: #6fcf8e;
  --radius: 20px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

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

/* ───── Top bar ───── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 14, 15, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand {
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
}
.brand::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px rgba(232, 149, 46, 0.6);
}
.nav { display: flex; gap: 4px; }
.nav a {
  font-size: 0.88rem; color: var(--muted); text-decoration: none;
  padding: 7px 12px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

/* ───── Hero ───── */
.hero { padding: clamp(56px, 10vw, 112px) 0 clamp(32px, 6vw, 64px); }
.eyebrow {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 600; max-width: 14ch;
}
.hero h1 span { color: var(--muted); }
.hero .lede {
  margin-top: 22px; max-width: 60ch; font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: var(--muted);
}
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.stat {
  font-family: var(--mono); font-size: 0.78rem; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px;
}
.stat b { color: var(--text); font-weight: 500; }

/* ───── Sections ───── */
.section { padding: clamp(28px, 5vw, 48px) 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line); padding-top: 22px; margin-bottom: 22px;
}
.section-head h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); letter-spacing: -0.02em; font-weight: 600; }
.section-head p { font-size: 0.95rem; color: var(--muted); max-width: 52ch; }
.count { font-family: var(--mono); font-size: 0.75rem; color: var(--faint); white-space: nowrap; }
.subhead {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint); margin: 28px 0 14px;
}
.subhead:first-of-type { margin-top: 0; }

/* ───── App cards ───── */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.card {
  --tint: 232, 149, 46;
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
a.card:hover, .card:hover {
  border-color: rgba(var(--tint), 0.45);
  box-shadow: 0 18px 50px -24px rgba(var(--tint), 0.45);
}
a.card:hover { transform: translateY(-2px); }

.media {
  position: relative; height: 300px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(var(--tint), 0.30), transparent 62%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border-bottom: 1px solid var(--line);
}
.media .screen {
  width: min(58%, 210px); margin: 30px auto 0;
  border-radius: 24px; border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.85);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.card:hover .media .screen { transform: translateY(-6px); }
.media.wide .screen { width: min(78%, 280px); border-radius: 18px; }
.media.landscape .screen { width: 86%; border-radius: 12px; margin-top: 40px; }
.media.icon-only { display: grid; place-items: center; }
.media.icon-only .big-icon {
  width: 116px; height: 116px; border-radius: 26px;
  box-shadow: 0 20px 50px -16px rgba(var(--tint), 0.55), 0 0 0 1px var(--line-strong);
}
.media.icon-only .soon {
  position: absolute; bottom: 16px; left: 0; right: 0; text-align: center;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--faint);
}

.body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.head { display: flex; gap: 12px; align-items: center; }
.head .icon { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 1px var(--line-strong); flex: none; }
.head h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.head h3 small { font-weight: 400; color: var(--faint); font-size: 0.85em; }
.kicker { font-size: 0.88rem; color: rgb(var(--tint)); line-height: 1.35; }
.summary { font-size: 0.95rem; color: var(--muted); line-height: 1.6; flex: 1; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pill {
  font-family: var(--mono); font-size: 0.7rem; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 9px;
}
.pill.status { color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.pill.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pill.status.live::before { background: var(--live); }
.pill.status.soon::before { background: #d9c36a; }
.more { font-size: 0.85rem; color: var(--accent); margin-left: auto; white-space: nowrap; }

/* ───── Blog index cards ───── */
.post-card .media { height: 260px; }
.post-card .num { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); letter-spacing: 0.1em; }
.post-card h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }

/* ───── Prose (blog index intro, posts) ───── */
.prose { max-width: 680px; }
.prose p { font-size: 1.07rem; line-height: 1.75; color: #d9d5cd; margin-bottom: 18px; }
.prose p em, .prose em { font-style: normal; color: var(--accent); }
.prose h2 {
  font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; margin: 44px 0 14px;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; }
.prose a { color: var(--accent); text-underline-offset: 3px; }

/* Posts */
.post-header { padding: clamp(48px, 9vw, 96px) 0 clamp(24px, 4vw, 40px); max-width: 780px; }
.post-header .eyebrow { margin-bottom: 14px; }
.post-header h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.post-header .lede { margin-top: 18px; font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 56ch; }
.post-header .divider { display: none; }

.shots {
  display: grid; gap: 16px; margin: 32px 0 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}
.prose .shots { width: min(100vw - 2 * var(--gutter), 900px); }
.shots figure { margin: 0; }
.shots img {
  width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
}
.shots figcaption { font-family: var(--mono); font-size: 0.72rem; color: var(--faint); margin-top: 10px; text-align: center; }

.links { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: var(--accent); color: #111; font-weight: 600; font-size: 0.92rem;
  padding: 10px 18px; border-radius: 999px; transition: filter .2s, transform .2s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.back { display: inline-block; margin-top: 28px; font-size: 0.9rem; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--text); }

/* Callout (Development → blog, blog → Development) */
.callout {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin: 8px 0 0;
}
.callout p { color: var(--muted); max-width: 60ch; }
.callout strong { color: var(--text); font-weight: 600; }

/* ───── Footer ───── */
.footer { border-top: 1px solid var(--line); margin-top: clamp(40px, 8vw, 80px); }
.footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 26px; padding-bottom: 40px;
  font-family: var(--mono); font-size: 0.75rem; color: var(--faint);
}
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ───── Motion ───── */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .rise.d1 { animation-delay: .06s; } .rise.d2 { animation-delay: .12s; } .rise.d3 { animation-delay: .18s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (max-width: 520px) {
  .media { height: 260px; }
  .nav a { padding: 7px 9px; }
  .section-head { flex-direction: column; gap: 6px; }
}
