/* HighDefinition Studio - shared stylesheet. No external fonts or requests. */

:root {
  --bg: #0a101c;
  --bg-raise: #111a2b;
  --bg-card: #141f33;
  --line: #243350;
  --text: #e9eef7;
  --text-dim: #9fb0cb;
  --amber: #f5a12b;
  --amber-hot: #ffc062;
  --teal: #1f6f8b;
  --radius: 14px;
  --gutter: 20px;
  --max: 1080px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 480px at 78% -8%, rgba(31, 111, 139, 0.32), transparent 70%),
    radial-gradient(700px 420px at 4% 6%, rgba(245, 161, 43, 0.10), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--amber-hot); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 16, 28, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--amber-hot), #c9740d);
  color: #1b1002;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand:hover { color: #fff; }

.nav { display: flex; gap: 6px; flex-wrap: wrap; }

.nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 999px;
}

.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--bg-raise); }

/* ---------- hero ---------- */

.hero { padding-top: 84px; padding-bottom: 56px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--amber); }

h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6.4vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h1 em { font-style: normal; color: var(--amber); }

.lead { max-width: 640px; margin: 0; color: var(--text-dim); font-size: clamp(17px, 2.2vw, 20px); }

/* ---------- sections ---------- */

section { padding: 28px 0 56px; }

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 22px;
}

h2 { margin: 0; font-size: clamp(22px, 3.4vw, 30px); letter-spacing: -0.01em; }

.section-note { margin: 0; color: var(--text-dim); font-size: 15px; }

/* ---------- project cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 22px;
}

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

.card:hover {
  border-color: rgba(245, 161, 43, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(245, 161, 43, 0.35);
}

.card-media { position: relative; display: block; aspect-ratio: 2 / 1; background: var(--bg-raise); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.card-media .icon {
  position: absolute;
  left: 16px;
  bottom: -26px;
  width: 64px;
  height: 64px;
  border-radius: 15px;
  border: 3px solid var(--bg-card);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.card-body { display: flex; flex-direction: column; flex: 1; padding: 38px 20px 20px; }

.card h3 { margin: 0 0 4px; font-size: 21px; }

.tagline { margin: 0 0 12px; color: var(--amber); font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

.card p.desc { margin: 0 0 18px; color: var(--text-dim); font-size: 15.5px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }

.chip {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 13px;
}

.chip.status { border-color: rgba(245, 161, 43, 0.5); color: var(--amber-hot); }

.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

.card.placeholder {
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 28px;
  text-align: center;
  background: transparent;
  border-style: dashed;
  color: var(--text-dim);
}

.card.placeholder:hover { transform: none; border-color: var(--line); box-shadow: none; }
.card.placeholder strong { display: block; margin-bottom: 6px; color: var(--text); font-size: 18px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-raise);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover { background: #1b2a45; border-color: #35507f; color: #fff; }

.btn.primary { background: linear-gradient(180deg, var(--amber-hot), var(--amber)); border-color: transparent; color: #1b1002; }
.btn.primary:hover { background: linear-gradient(180deg, #ffd08a, var(--amber-hot)); color: #1b1002; }

.btn.quiet { background: transparent; }

.btn[aria-disabled="true"] { opacity: 0.55; cursor: default; pointer-events: none; }

/* ---------- project page ---------- */

.crumbs { margin: 28px 0 0; color: var(--text-dim); font-size: 14px; }
.crumbs a { color: var(--text-dim); }
.crumbs a:hover { color: var(--text); }

.project-hero { padding: 24px 0 40px; display: grid; gap: 32px; align-items: center; }

@media (min-width: 880px) {
  .project-hero { grid-template-columns: 1.05fr 1fr; }
}

.project-title { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.project-title img { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5); }
.project-title h1 { margin: 0; font-size: clamp(30px, 5vw, 48px); }

.project-hero .shot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }

.features li { padding: 18px 18px 16px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); }
.features h3 { margin: 0 0 6px; font-size: 17px; color: var(--amber-hot); }
.features p { margin: 0; color: var(--text-dim); font-size: 15px; }

.legal-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }

.legal-link {
  display: block;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.legal-link:hover { border-color: rgba(245, 161, 43, 0.55); background: #17253d; color: #fff; }
.legal-link strong { display: block; margin-bottom: 4px; font-size: 18px; }
.legal-link span { color: var(--text-dim); font-size: 15px; }

/* ---------- legal documents ---------- */

.doc { max-width: 760px; padding: 36px 0 72px; }

.doc-head { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.doc-head h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 10px; }
.doc-head .meta { margin: 0; color: var(--text-dim); font-size: 15px; }

.doc-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }

.prose h2 { margin: 2em 0 0.6em; font-size: 24px; }
.prose h3 { margin: 1.6em 0 0.5em; font-size: 19px; }
.prose p, .prose ul, .prose ol, .prose table { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 0.35em; }
.prose strong { color: #fff; }
.prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line); }

.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--bg-raise); color: #fff; }

.prose code { padding: 1px 6px; border-radius: 5px; background: var(--bg-raise); font-family: var(--mono); font-size: 0.9em; }

.prose blockquote { margin: 0 0 1em; padding: 4px 16px; border-left: 3px solid var(--amber); color: var(--text-dim); }

.notice {
  margin: 0 0 28px;
  padding: 16px 18px;
  border: 1px dashed rgba(245, 161, 43, 0.6);
  border-radius: var(--radius);
  background: rgba(245, 161, 43, 0.07);
  color: var(--text);
  font-size: 15.5px;
}

.notice strong { color: var(--amber-hot); }

/* ---------- footer ---------- */

.site-footer { margin-top: 24px; padding: 36px 0 44px; border-top: 1px solid var(--line); color: var(--text-dim); font-size: 14.5px; }

.site-footer .wrap { display: grid; gap: 20px; }

@media (min-width: 720px) {
  .site-footer .wrap { grid-template-columns: 1.3fr 1fr 1fr; }
}

.site-footer h4 { margin: 0 0 8px; color: var(--text); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 4px; }
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .legal-link { transition: none; }
  .card:hover { transform: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 48px; padding-bottom: 32px; }
  .site-header { position: static; }
  .nav { margin-left: -9px; }
  .nav a { padding: 6px 9px; font-size: 14px; }
  .section-title { flex-direction: column; align-items: flex-start; gap: 4px; }
}
