/* ============================================================
   Miller Exhibitions Services — shared styles
   Dark, architectural. Blueprint-adjacent structure, spotlight
   amber accent against near-black stage floors.
   ============================================================ */

:root {
  --ink: #0F1113;
  --panel: #1A1D20;
  --panel-line: #2B2F33;
  --paper: #EDEBE4;
  --text-soft: #ADB2AF;
  --accent: #E3AF3F;
  --accent-dim: #7A6127;
  --max-width: 1180px;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Header / nav ---------- */

.site-header {
  border-bottom: 1px solid var(--panel-line);
  position: relative;
  z-index: 20;
  background: var(--ink);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  background: var(--paper);
  padding: 8px 16px;
  border-radius: 3px;
}

.logo-img {
  height: 30px;
  width: auto;
  display: block;
}

nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 38px;
  margin: 0;
  padding: 0;
}

nav.primary-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

nav.primary-nav a:hover,
nav.primary-nav a:focus-visible,
nav.primary-nav a[aria-current="page"] {
  color: var(--paper);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--panel-line);
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--paper);
  cursor: pointer;
}

@media (max-width: 780px) {
  nav.primary-nav {
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--panel-line);
    display: none;
  }
  nav.primary-nav.open { display: block; }
  nav.primary-nav .wrap { padding: 0; }
  nav.primary-nav ul { flex-direction: column; gap: 0; padding: 8px 32px 20px; }
  nav.primary-nav li { border-top: 1px solid var(--panel-line); }
  nav.primary-nav li:first-child { border-top: none; }
  nav.primary-nav a { display: block; padding: 14px 0; }
  .nav-toggle { display: block; }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--panel-line);
  margin-top: 120px;
}

.site-footer .wrap {
  padding: 44px 32px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer p { margin: 0; font-size: 13px; color: var(--text-soft); }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a { font-size: 13px; color: var(--text-soft); }
.footer-links a:hover { color: var(--accent); }

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  color: var(--paper);
}

h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.2vw, 36px); }
h3 { font-size: 19px; font-weight: 700; }

p.lede {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 62ch;
}

.tagline {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 10px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border: 1px solid var(--paper);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--paper); border-color: var(--paper); }

.btn-secondary { background: transparent; color: var(--paper); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero with corner-bracket frame ---------- */

.hero {
  padding: 100px 0 90px;
  border-bottom: 1px solid var(--panel-line);
}

.hero-frame {
  position: relative;
  padding: 48px 48px 40px;
  border: 1px solid var(--panel-line);
}

.hero-frame::before,
.hero-frame::after,
.hero-frame .bl,
.hero-frame .br {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--accent);
  border-style: solid;
}
.hero-frame::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.hero-frame::after { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.hero-frame .bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.hero-frame .br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.hero-frame p.lede { margin: 20px 0 32px; }

@media (max-width: 640px) {
  .hero-frame { padding: 32px 24px 28px; }
}

/* ---------- Sections ---------- */

.section {
  padding: 90px 0;
  border-bottom: 1px solid var(--panel-line);
}
.section:last-of-type { border-bottom: none; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  margin-bottom: 56px;
}

@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Divided list (values / philosophy) ---------- */

.divided-list { border-top: 1px solid var(--panel-line); }

.divided-list > div {
  border-bottom: 1px solid var(--panel-line);
  padding: 30px 0;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
}

@media (max-width: 700px) {
  .divided-list > div { grid-template-columns: 1fr; gap: 8px; }
}

.divided-list .num { font-family: var(--font-display); font-size: 15px; color: var(--accent); font-weight: 700; }
.divided-list h3 { margin-bottom: 4px; }
.divided-list p { margin: 0; color: var(--text-soft); max-width: 60ch; }

/* ---------- Stat row ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--panel-line);
  border-left: 1px solid var(--panel-line);
}

.stat-row > div {
  border-right: 1px solid var(--panel-line);
  border-bottom: 1px solid var(--panel-line);
  padding: 28px 24px;
}

.stat-row dt { font-family: var(--font-display); font-size: 28px; color: var(--accent); margin: 0; font-weight: 800; }
.stat-row dd { margin: 6px 0 0; font-size: 14px; color: var(--text-soft); }

@media (max-width: 700px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
}

/* ---------- Gallery / portfolio ---------- */

.gallery-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.gallery-filter button {
  background: transparent;
  border: 1px solid var(--panel-line);
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}

.gallery-filter button:hover { border-color: var(--accent); color: var(--accent); }

.gallery-filter button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

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

@media (max-width: 900px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item { border: 1px solid var(--panel-line); background: var(--panel); }

.gallery-item .thumb {
  aspect-ratio: 5/4;
  background:
    repeating-linear-gradient(45deg, rgba(227,175,63,0.06) 0 2px, transparent 2px 14px),
    var(--panel);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 14px;
  border-bottom: 1px solid var(--panel-line);
  overflow: hidden;
  position: relative;
}

.gallery-item .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item .caption { padding: 16px 18px 20px; }
.gallery-item .caption p.tag { margin: 0 0 4px; font-size: 12px; color: var(--accent); }
.gallery-item .caption h3 { font-size: 16px; margin-bottom: 4px; }
.gallery-item .caption p.meta { margin: 0; font-size: 13px; color: var(--text-soft); }

/* ---------- Concept showcases ---------- */

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--panel-line);
}

.showcase:last-child { border-bottom: none; }

.showcase .visual {
  aspect-ratio: 4/3;
  border: 1px solid var(--panel-line);
  background:
    linear-gradient(135deg, var(--panel), #101214 60%);
  position: relative;
  overflow: hidden;
}

.showcase .visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase .visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(227,175,63,0.16), transparent 55%);
}

.showcase:nth-child(even) .visual { order: 2; }

@media (max-width: 780px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase:nth-child(even) .visual { order: 0; }
}

/* ---------- Team / process cards reused from divided-list ---------- */

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 22px; }

.field label { display: block; font-size: 13px; color: var(--text-soft); margin-bottom: 6px; }

.field input,
.field textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--paper);
}

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

.contact-info dl { margin: 0 0 36px; }
.contact-info dt { font-size: 12px; color: var(--accent); margin-bottom: 4px; }
.contact-info dd { margin: 0 0 22px; font-size: 17px; }

.form-note { font-size: 12px; color: var(--text-soft); margin-top: 4px; }

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