/* Palladium Studios shared stylesheet */

:root {
  --bg:           #0A0C12;
  --bg-elev:      #14171F;
  --bg-soft:      #11141B;
  --line:         #1F2331;
  --line-strong:  #2A2F40;
  --text:         #F1F2F4;
  --text-soft:    #C7CAD3;
  --muted:        #8B92A3;
  --accent:       #B6C4D6;
  --accent-strong:#E0E8F4;
  --violet:       #A78BFA;
  --cyan:         #7DD3FC;
  --amber:        #FBBF24;
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    22px;
  --max:          1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
a:hover { color: var(--accent-strong); }

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Navigation ───────────────────────────────────────────────── */

nav.top {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 18, 0.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
}
nav.top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.005em;
  font-size: 15px;
  color: var(--text);
}
.brand .mark {
  width: 24px;
  height: 24px;
  display: inline-block;
}
nav.top ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}
nav.top ul a {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
nav.top ul a.active,
nav.top ul a:hover { color: var(--text); }

/* ── Hero ─────────────────────────────────────────────────────── */

section.hero {
  position: relative;
  padding: 120px 0 110px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
section.hero::before {
  /* abstract gradient mesh, CSS-only, no images */
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 80%;
  background:
    radial-gradient(40% 60% at 28% 35%, rgba(167, 139, 250, 0.20), transparent 65%),
    radial-gradient(36% 55% at 78% 28%, rgba(125, 211, 252, 0.16), transparent 65%),
    radial-gradient(30% 40% at 55% 70%, rgba(182, 196, 214, 0.10), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  width: max-content;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--violet);
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.6);
}
h1.display {
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 18ch;
}
h1.display .grad {
  background: linear-gradient(120deg, var(--violet) 0%, var(--cyan) 50%, var(--accent-strong) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
p.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--text-soft);
  max-width: 56ch;
  margin: 0;
  line-height: 1.55;
}
.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn.primary {
  background: var(--text);
  color: var(--bg);
}
.btn.primary:hover { background: var(--accent-strong); color: var(--bg); }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn.ghost:hover {
  border-color: var(--text);
  color: var(--accent-strong);
}
.btn .arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease;
}
.btn:hover .arrow { transform: translateX(2px); }

/* ── Standard section ─────────────────────────────────────────── */

section.block {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}
.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  margin-bottom: 56px;
}
.section-head .eyebrow-static {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  padding-top: 8px;
}
.section-head h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin: 0 0 18px;
  max-width: 22ch;
}
.section-head p {
  font-size: 17px;
  color: var(--text-soft);
  margin: 0;
  max-width: 56ch;
  line-height: 1.55;
}

/* ── Card grid (focus areas, principles, work) ────────────────── */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.card:hover {
  border-color: var(--line-strong);
}
.card .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 22px;
  color: var(--accent);
}
.card.violet .icon { color: var(--violet); }
.card.cyan   .icon { color: var(--cyan); }
.card.amber  .icon { color: var(--amber); }

.card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.008em;
  margin: 0 0 12px;
  color: var(--text);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.card .badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(167, 139, 250, 0.10);
  color: var(--violet);
  border: 1px solid rgba(167, 139, 250, 0.25);
}
.card.cyan .badge {
  background: rgba(125, 211, 252, 0.10);
  color: var(--cyan);
  border-color: rgba(125, 211, 252, 0.25);
}

/* ── Mission / Vision page blocks ─────────────────────────────── */

.mv-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.mv-block:first-child { border-top: none; padding-top: 0; }
.mv-block .label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  padding-top: 8px;
}
.mv-block h2 {
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0 0 16px;
  max-width: 22ch;
}
.mv-block p {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 60ch;
  line-height: 1.6;
  margin: 0 0 14px;
}
.mv-block p.subtle {
  color: var(--muted);
  font-size: 15px;
}

/* ── Principle list ───────────────────────────────────────────── */

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 64px;
}
.principle h4 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.principle h4 .num {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ── Contact ──────────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-card .label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}
.contact-card .value {
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
}
.contact-card .value a {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}
.contact-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ── Legal pages (privacy, terms) ─────────────────────────────── */

section.legal {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
section.legal .legal-head {
  margin-bottom: 56px;
}
section.legal .eyebrow-static {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
section.legal h1 {
  font-size: clamp(32px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 14px 0 8px;
}
section.legal .updated {
  color: var(--muted);
  font-size: 14px;
}
section.legal .body {
  max-width: 70ch;
}
section.legal h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 36px 0 12px;
  color: var(--text);
  letter-spacing: -0.005em;
}
section.legal p,
section.legal li {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
}
section.legal ul {
  padding-left: 22px;
}
section.legal li { margin-bottom: 8px; }
section.legal a {
  color: var(--accent-strong);
  border-bottom: 1px solid var(--line-strong);
}
section.legal a:hover { border-color: var(--accent-strong); }

/* ── CTA strip ────────────────────────────────────────────────── */

section.cta-strip {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
section.cta-strip h2 {
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.018em;
  font-weight: 600;
  margin: 0 0 14px;
  line-height: 1.2;
}
section.cta-strip p {
  color: var(--text-soft);
  font-size: 17px;
  margin: 0 0 30px;
}

/* ── Footer ───────────────────────────────────────────────────── */

footer {
  padding: 72px 0 84px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
footer .grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
footer h5 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 14px;
}
footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
footer ul li { margin-bottom: 6px; }
footer a {
  color: var(--muted);
}
footer a:hover { color: var(--text); }
footer .brand-block {
  max-width: 320px;
}
footer .brand-block p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
footer .legalrow {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 880px) {
  .container { padding: 0 24px; }
  section.hero { padding: 88px 0 80px; }
  section.block { padding: 72px 0; }
  .section-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 40px; }
  .mv-block { grid-template-columns: 1fr; gap: 12px; padding: 40px 0; }
  .grid-2, .grid-3, .contact-grid, .principles {
    grid-template-columns: 1fr;
  }
  footer .grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  footer .legalrow { flex-direction: column; align-items: flex-start; }
  nav.top ul { gap: 20px; }
  nav.top ul a { font-size: 13px; }
}

@media (max-width: 520px) {
  footer .grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
