/* ============================================
   StoYuri v3 — studio host for the briefs
   Dark, precise, aerospace-adjacent
   ============================================ */

:root {
  --bg: #070b14;
  --bg-elevated: #0c1220;
  --bg-card: #0f172a;
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.22);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #38bdf8;
  --accent-dim: rgba(56, 189, 248, 0.15);
  --accent-strong: #0ea5e9;
  --violet: #a78bfa;
  --amber: #fbbf24;
  --success: #34d399;
  --rose: #f97373;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

body.viewer-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

[hidden] {
  display: none !important;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 300;
  background: var(--accent);
  color: #041018;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 0.75rem;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 8px;
  letter-spacing: -0.03em;
}

.logo-mark.small {
  width: 28px;
  height: 28px;
  font-size: 0.7rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav a.active {
  box-shadow: 0 2px 0 var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-login {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-login:hover {
  background: var(--bg-card);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.3), 0 4px 16px rgba(14, 165, 233, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.4), 0 6px 24px rgba(14, 165, 233, 0.35);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.btn-sm {
  font-size: 0.82rem;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-muted);
  border-radius: 1px;
  transition: 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% -10%, rgba(56, 189, 248, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(99, 102, 241, 0.08), transparent);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  max-width: 20ch;
}

.hero h1 .grad {
  background: linear-gradient(90deg, var(--accent), var(--violet) 45%, var(--amber) 75%, var(--success));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0.5rem 2.25rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-stats span {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.hero-visual {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 1.25rem 0.5rem;
}

.hero-visual .orbit-ring {
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(56, 189, 248, 0.14);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}

.hero-visual .orbit-ring.inner {
  width: 300px;
  height: 300px;
  border-color: rgba(167, 139, 250, 0.16);
  animation-duration: 26s;
  animation-direction: reverse;
}

.deck {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 16 / 10.5;
}

.deck-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
  cursor: pointer;
  padding: 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s;
}

.deck-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deck-card:nth-child(1) { transform: translate(-64%, -64%) rotate(-7deg); }
.deck-card:nth-child(2) { transform: translate(-36%, -36%) rotate(6deg); }
.deck-card:nth-child(3) { transform: translate(-50%, -50%); z-index: 2; }

.deck-card:hover {
  border-color: rgba(56, 189, 248, 0.55);
  z-index: 3;
}

.deck-card:nth-child(1):hover { transform: translate(-64%, -68%) rotate(-7deg) scale(1.03); }
.deck-card:nth-child(2):hover { transform: translate(-36%, -40%) rotate(6deg) scale(1.03); }
.deck-card:nth-child(3):hover { transform: translate(-50%, -54%) scale(1.03); }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Domains strip ---------- */
.domains {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 1.1rem 0;
}

.domains-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.domain-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

a.domain-label {
  border-color: var(--border);
  cursor: pointer;
}

a.domain-label:hover,
a.domain-label:focus-visible {
  color: var(--c, var(--text));
  border-color: color-mix(in srgb, var(--c, var(--accent)) 55%, transparent);
  background: color-mix(in srgb, var(--c, var(--accent)) 12%, transparent);
}

/* ---------- Sections ---------- */
.section {
  padding: 5.5rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.section-alt {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-head-row .section-header {
  margin-bottom: 0;
}

/* ---------- Current work ---------- */
.program-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.program-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}

.program-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}

.program-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.program-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
}

.program-status {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--success);
}

.program-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.program-card > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.program-points {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.program-points li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.program-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.related-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 550;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: 0.2s;
}

.chip:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--c, var(--accent)) 50%, transparent);
}

.chip-note {
  cursor: default;
  color: var(--amber);
  border-color: color-mix(in srgb, var(--amber) 35%, transparent);
}

/* ---------- Portfolio ---------- */
.portfolio-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter:hover {
  color: var(--text);
  border-color: var(--text-dim);
}

.filter[aria-pressed="true"] {
  color: var(--text);
  border-color: color-mix(in srgb, var(--c, var(--accent)) 60%, transparent);
  background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent);
}

.filter .count {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.filter[aria-pressed="true"] .count {
  color: var(--c, var(--accent));
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c, var(--accent));
  flex: none;
}

.search {
  position: relative;
  min-width: min(100%, 240px);
}

.search input {
  width: 100%;
  font: inherit;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.5rem 0.95rem 0.5rem 2.15rem;
}

.search::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'><circle cx='6' cy='6' r='4.5'/><path d='m10 10 3 3'/></svg>") no-repeat center;
  pointer-events: none;
}

.search input:focus {
  outline: none;
  border-color: var(--accent);
}

.slide-groups {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1.5rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.group-head h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.group-head h3 .dot {
  width: 9px;
  height: 9px;
  box-shadow: 0 0 12px var(--c);
}

.group-head .count {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
}

.group-head p {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 52ch;
}

.slide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}

.slide-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.slide-card:hover {
  border-color: color-mix(in srgb, var(--c) 45%, transparent);
  transform: translateY(-2px);
}

.slide-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: #050d1a;
  cursor: zoom-in;
  overflow: hidden;
}

.slide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.4s ease;
}

.slide-card:hover .slide-thumb img {
  transform: scale(1.03);
}

.slide-thumb::after {
  content: "View brief";
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: rgba(7, 11, 20, 0.8);
  border: 1px solid var(--border-strong);
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s;
}

.slide-card:hover .slide-thumb::after,
.slide-thumb:focus-visible::after {
  opacity: 1;
  transform: none;
}

.slide-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.1rem 1.15rem 1.15rem;
  flex: 1;
}

.slide-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c);
}

.slide-card h4 {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.slide-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.slide-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.slide-src {
  min-width: 0;
  font-size: 0.76rem;
  color: var(--text-dim);
}

.link-arrow {
  flex: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 560;
  color: var(--text-muted);
  transition: color 0.2s;
}

.link-arrow:hover {
  color: var(--accent);
}

.empty-filter {
  color: var(--text-muted);
  padding: 2rem 0;
}

/* ---------- Method ---------- */
.method-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.method-copy p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 46ch;
}

.method-copy .about {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.approach-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.approach-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.approach-item .num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent);
  opacity: 0.85;
  min-width: 2rem;
}

.approach-item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.approach-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.lens-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0.6rem;
  margin: 2rem 0 2.25rem;
}

.lens {
  --c: var(--accent);
  position: relative;
  padding: 1.1rem 1rem 1rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.lens::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c), transparent);
}

.lens strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--c);
}

.lens p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.lens-arrow {
  align-self: center;
  color: var(--text-dim);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.cap-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
}

.section-alt .cap-card {
  background: var(--bg-card);
}

.cap-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 10px;
  margin-bottom: 1.1rem;
}

.cap-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cap-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.cap-card .see {
  margin-top: 0.85rem;
}

.label-sm {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.source {
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  min-width: 140px;
}

.section-alt .source {
  background: var(--bg-card);
}

.source strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}

.source span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
  line-height: 1.35;
  max-width: 22ch;
}

.methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.method-pill {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}

/* ---------- Contact ---------- */
.contact {
  padding-bottom: 6rem;
}

.contact-inner {
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.08), rgba(99, 102, 241, 0.06));
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
}

.contact-content {
  max-width: 38rem;
  margin: 0 auto;
}

.contact-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.contact-content > p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  background: var(--bg-elevated);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

.footer-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 32rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* ---------- Slide viewer ---------- */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  grid-template-columns: minmax(0, 1fr);
  background: rgba(3, 6, 12, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.viewer-title {
  min-width: 0;
}

.viewer-title .slide-meta {
  font-size: 0.68rem;
}

.viewer-title h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.viewer-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
  border-color: var(--border-strong);
  color: var(--text);
}

.icon-btn[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.viewer-stage {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.25rem 0.5rem;
  touch-action: pan-y;
}

.viewer-frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--border-strong);
  background: #050d1a;
  cursor: pointer;
}

.viewer.inspect .viewer-frame {
  cursor: default;
}

.viewer-frame iframe,
.brief-stage iframe {
  position: absolute;
  left: 0;
  top: 0;
  border: 0;
  transform-origin: 0 0;
  background: #050d1a;
}

.viewer-frame iframe {
  pointer-events: none;
}

.viewer.inspect .viewer-frame iframe {
  pointer-events: auto;
}

.viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(12, 18, 32, 0.85);
}

.viewer-nav.prev { left: 1.25rem; }
.viewer-nav.next { right: 1.25rem; }

.filmstrip {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.65rem 1.25rem;
  border-top: 1px solid var(--border);
  scrollbar-width: thin;
}

.filmstrip button {
  flex: none;
  width: 112px;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  overflow: hidden;
  background: #050d1a;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s;
}

.filmstrip button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.filmstrip button[aria-current="true"] {
  opacity: 1;
  border-color: var(--accent);
}

.filmstrip button:hover {
  opacity: 1;
}

.viewer-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.45rem 1.25rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.viewer-count {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.kbd {
  display: inline-block;
  min-width: 1.5em;
  padding: 0 0.35em;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-size: 0.72rem;
  text-align: center;
  color: var(--text-muted);
}

.viewer:fullscreen {
  background: #000;
}

.viewer:fullscreen .viewer-bar,
.viewer:fullscreen .viewer-foot,
.viewer:fullscreen .filmstrip {
  display: none;
}

.viewer:fullscreen .viewer-stage {
  padding: 0;
}

.viewer:fullscreen .viewer-frame {
  border-radius: 0;
  box-shadow: none;
}

.preload-frame {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Help overlay ---------- */
.help {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  background: rgba(3, 6, 12, 0.72);
  padding: 1.5rem;
}

.help-card {
  width: min(420px, 100%);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 1.5rem 1.6rem 1.35rem;
}

.help-card h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.help-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem 1rem;
  font-size: 0.88rem;
}

.help-card dt {
  color: var(--text);
}

.help-card dd {
  color: var(--text-muted);
}

.help-card .hint {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ---------- Brief pages ---------- */
.brief-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(7, 11, 20, 0.92);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brief-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: none;
  padding: 0.75rem 1.25rem;
}

.brief-ident {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brief-ident h1 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brief-stage-wrap {
  padding: 1.25rem 1.25rem 0;
}

.brief-stage {
  position: relative;
  width: min(100%, 1600px);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #050d1a;
  box-shadow: 0 24px 80px -28px rgba(0, 0, 0, 0.8);
}

.brief-meta {
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.brief-meta .lede {
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0.65rem 0 1.25rem;
}

.brief-related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.65rem 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  transition: border-color 0.2s;
}

.related-card:hover {
  border-color: color-mix(in srgb, var(--c, var(--accent)) 45%, transparent);
}

.related-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.related-card strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
}

.related-card em {
  display: block;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.noscript {
  padding: 2rem 1.5rem 4rem;
}

.noscript ul {
  columns: 2;
  gap: 1.5rem;
}

.noscript a {
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .method-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual {
    order: -1;
    min-height: 240px;
  }

  .hero-visual .orbit-ring { width: 300px; height: 300px; }
  .hero-visual .orbit-ring.inner { width: 210px; height: 210px; }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    gap: 0.25rem;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.65rem 0;
    box-shadow: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    max-width: none;
  }

  .viewer-nav {
    display: none;
  }

  .viewer-stage {
    padding: 0.75rem 0.75rem 0.35rem;
  }

  .viewer-foot .hint {
    display: none;
  }
}

@media (max-width: 640px) {
  .section-head-row,
  .portfolio-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .search {
    width: 100%;
  }

  .lens-flow {
    grid-template-columns: 1fr;
  }

  .lens-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .viewer-tools .hide-sm {
    display: none;
  }

  .noscript ul {
    columns: 1;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 3rem 0;
  }

  .section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .contact-inner {
    padding: 2.25rem 1.25rem;
  }

  .hero-ctas .btn,
  .contact-actions .btn {
    width: 100%;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-stats {
    gap: 0.5rem 1.5rem;
  }

  .btn-login .label {
    display: none;
  }

  .slide-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-visual .orbit-ring { animation: none; }
  .slide-card, .deck-card, .slide-thumb img, .program-card { transition: none; }
}


/* —— Track badges (prototype vs knowledge) —— */
.track-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--line, rgba(148,163,184,0.18));
  color: var(--muted, #94a3b8);
  background: rgba(14, 22, 38, 0.7);
  white-space: nowrap;
}
.track-badge.track-prototype {
  color: #0b1220;
  background: #34d399;
  border-color: #34d399;
}
.track-badge.track-knowledge {
  color: #e2e8f0;
  background: rgba(167, 139, 250, 0.18);
  border-color: rgba(167, 139, 250, 0.45);
}
.program-meta .track-badge { margin-left: 0.15rem; }
.slide-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}
.prototype-briefs {
  margin-top: 1.25rem;
}
.prototype-empty {
  margin: 0.75rem 0 0;
  color: var(--muted, #94a3b8);
  font-size: 0.9rem;
  max-width: 70ch;
  border: 1px dashed var(--line, rgba(148,163,184,0.18));
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: rgba(11, 18, 32, 0.45);
}
