/* Mishmash Multimedia — shared site styles */

:root {
  --ink: #14110d;
  --ink-2: #1c1812;
  --panel: #201b15;
  --cream: #f5efe3;
  --cream-dim: #cfc7b6;
  --muted: #948c7b;
  --rule: #342d22;
  --amber: #f2892e;
  --terracotta: #d9532f;
  --rust: #b5401a;
  --gradient: linear-gradient(135deg, var(--rust) 0%, var(--terracotta) 45%, var(--amber) 100%);
  --maxw: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 17, 13, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-nav .wrap {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: clamp(60px, 10vw, 92px);
}
.brand { display: flex; align-items: center; gap: clamp(8px, 2vw, 16px); min-width: 0; flex: 1 1 auto; }
.brand img { height: clamp(22px, 6vw, 38px); width: auto; flex-shrink: 0; }
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(14px, 4.2vw, 30px);
  letter-spacing: 0.005em;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.nav-links a { color: var(--cream-dim); transition: color 0.15s ease; }
.nav-links a:hover { color: var(--amber); }
.nav-cta {
  border: 1px solid var(--rule);
  padding: clamp(6px, 1.8vw, 9px) clamp(11px, 3.4vw, 18px);
  border-radius: 999px;
  font-size: clamp(11px, 2.4vw, 13px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { border-color: var(--amber); color: var(--amber); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 84px;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(circle at 20% 20%, rgba(242,137,46,0.14), transparent 55%),
              radial-gradient(circle at 85% 60%, rgba(217,83,47,0.12), transparent 50%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.08;
  margin: 0 0 22px;
  color: var(--cream);
}
.hero h1 em {
  font-style: italic;
  color: var(--amber);
  font-variant-ligatures: none;
  -webkit-font-feature-settings: "liga" 0, "clig" 0;
  font-feature-settings: "liga" 0, "clig" 0;
  letter-spacing: 0.01em;
}
.hero p.lead {
  font-size: 18px;
  color: var(--cream-dim);
  max-width: 46ch;
  margin: 0 0 30px;
}
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gradient); color: #17110a; font-weight: 600; }
.btn-ghost { border: 1px solid var(--rule); color: var(--cream); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

.hero-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #17140f;
  background: #17140f;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-media video, .hero-media img { width: 78%; height: auto; background: #17140f; }

/* ---------- Sections ---------- */
section { padding: 84px 0; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: none; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 14px;
  color: var(--cream);
}
.section-head p { color: var(--cream-dim); font-size: 16.5px; margin: 0; }

.prose p { color: var(--cream-dim); font-size: 16.5px; max-width: 72ch; }
.prose p + p { margin-top: 16px; }

/* Pillars */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar-card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 30px 26px;
}
.pillar-num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--amber);
  margin-bottom: 14px;
}
.pillar-card h3 { font-size: 19px; margin: 0 0 10px; color: var(--cream); }
.pillar-card p { color: var(--cream-dim); font-size: 15px; margin: 0; }

/* Slate / project cards */
.grid-slate { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--rule);
  background: var(--panel);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.project-card:hover { border-color: var(--amber); transform: translateY(-2px); }
.project-card .tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 20px 24px 0;
}
.project-card .card-body { padding: 10px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.project-card h3 { font-family: var(--serif); font-size: 22px; margin: 6px 0 12px; color: var(--cream); }
.project-card p { color: var(--cream-dim); font-size: 14.5px; margin: 0 0 18px; flex: 1; }
.project-card .card-link { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--amber); }
.project-card .card-link::after { content: " \2192"; }

/* Credits / trust strip */
.credits-strip {
  padding: 44px 0;
  border-bottom: 1px solid var(--rule);
}
.credits-strip .eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.credits-strip .eyebrow { margin: 0; }
.credits-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 0;
}
.credits-row .credit {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--cream-dim);
  padding: 0 20px;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.credits-row .credit:hover { color: var(--amber); }
.credits-row .credit:not(:last-child) { border-right: 1px solid var(--rule); }

/* Team */
.grid-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card { border: 1px solid var(--rule); border-radius: 16px; padding: 28px 24px; background: var(--panel); }
.team-card h3 { font-family: var(--serif); font-size: 21px; margin: 0 0 12px; color: var(--cream); }
.team-card p { color: var(--cream-dim); font-size: 14.5px; margin: 0; }
.team-links { display: flex; gap: 16px; margin-top: 16px; }
.team-links a {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
}
.team-links a:hover { text-decoration: underline; }

/* Contact */
.contact-panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.contact-panel h2 { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); margin: 0 0 14px; }
.contact-panel p { color: var(--cream-dim); margin: 0 0 26px; max-width: 50ch; }
.contact-panel .fine-print { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; max-width: 44ch; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form label {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  display: block;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 14.5px;
  resize: vertical;
  transition: border-color 0.15s ease;
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--amber);
}
.contact-form textarea { min-height: 110px; }
.contact-form button {
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  align-self: flex-start;
  margin-top: 4px;
}
.form-status {
  font-size: 13.5px;
  margin-top: 4px;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { color: #8fbf7a; }
.form-status.err { color: #e07a5f; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* Footer */
footer { padding: 40px 0 60px; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer img { height: 20px; opacity: 0.7; }
.footer-note { font-size: 12.5px; color: var(--muted); }
.footer-links { display: flex; gap: 20px; font-size: 12.5px; color: var(--muted); }
.footer-links a:hover { color: var(--amber); }

/* Project subsite specific */
.project-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--rule);
}
.project-hero .tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 6px 14px;
}
.chip.amber { color: var(--amber); border-color: rgba(242,137,46,0.4); }
.project-hero h1 { font-family: var(--serif); font-size: clamp(32px, 5vw, 56px); margin: 0 0 20px; }
.project-hero .logline { font-size: 19px; color: var(--cream-dim); max-width: 58ch; margin: 0 0 10px; }
.key-art { border-radius: 18px; overflow: hidden; border: 1px solid var(--rule); margin-top: 40px; }

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
}
.meta-grid .label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }
.meta-grid .value { font-size: 15px; color: var(--cream); }

.note-panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--amber);
  border-radius: 4px;
  padding: 22px 26px;
  margin-top: 44px;
  font-size: 14px;
  color: var(--cream-dim);
}
.note-panel a { color: var(--amber); }

.back-link { font-size: 13px; color: var(--cream-dim); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; }
.back-link:hover { color: var(--amber); }

/* Responsive */
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 320px; margin: 0 auto; }
  .grid-3, .grid-slate, .grid-team { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; padding: 34px 26px; }
  .meta-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
