/* MoorishMade LLC — site styles */
:root {
  --bg: #0b0a09;
  --surface: #151311;
  --surface-2: #1e1b18;
  --line: #2c2823;
  --text: #f3ede4;
  --muted: #b3a998;
  --gold: #c9954a;
  --gold-hi: #e0b26c;
  --destructive: #ff8a7a;
  --radius: 2px;
  --display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
.portrait-logo img { width: 100%; max-width: 520px; height: auto; margin-inline: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 4.75rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 40rem; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius);
  font: 600 0.95rem/1 var(--body);
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--gold); color: #120e09; }
.btn-primary:hover { background: var(--gold-hi); }
.btn-primary[disabled] { opacity: 0.6; cursor: progress; }
.btn-ghost { border-color: rgba(243, 237, 228, 0.35); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.text-link { color: var(--gold); text-decoration: none; font-weight: 600; }
.text-link:hover { color: var(--gold-hi); text-decoration: underline; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--pad);
  background: linear-gradient(to bottom, rgba(11, 10, 9, 0.85), rgba(11, 10, 9, 0));
  transition: background 0.3s;
}
.site-header.solid { background: rgba(11, 10, 9, 0.96); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand img { flex: none; width: 44px; height: 44px; aspect-ratio: 1; object-fit: contain; }
.brand span { font-family: var(--display); font-size: 1.2rem; font-weight: 700; letter-spacing: 0.01em; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .btn { color: #120e09; padding: 0.7rem 1.15rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 8rem var(--pad) clamp(3rem, 8vh, 6rem);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; background: #000 center/cover no-repeat; }
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 177.78svh);
  height: max(100svh, 56.25vw);
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(11, 10, 9, 0.95) 0%, rgba(11, 10, 9, 0.45) 45%, rgba(11, 10, 9, 0.35) 100%),
    linear-gradient(to right, rgba(11, 10, 9, 0.7), rgba(11, 10, 9, 0) 60%);
}
.hero-inner { max-width: 62rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* Sections */
section { padding: clamp(4rem, 10vw, 8rem) var(--pad); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.section-head h2 { margin: 0; }
.page-top { padding-top: clamp(8rem, 16vw, 11rem); }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Work grid */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); gap: 1.5rem; }
.work-card { display: block; text-decoration: none; }
.work-card .frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, opacity 0.3s; }
.work-card:hover img { transform: scale(1.04); }
.work-card .play {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  width: 52px;
  height: 52px;
  color: var(--text);
  opacity: 0.9;
}
.work-card h3 { margin: 1rem 0 0.25rem; font-size: 1.45rem; }
.work-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.status { color: var(--muted); }
.status.error { color: var(--destructive); }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0; border-top: 1px solid var(--line); }
.service { padding: 2.25rem 2rem 2.25rem 0; border-bottom: 1px solid var(--line); }
.service + .service { padding-left: 2rem; border-left: 1px solid var(--line); }
.service .num { font-family: var(--display); color: var(--gold); font-size: 1.1rem; margin-bottom: 1.5rem; display: block; }
.service p { color: var(--muted); font-size: 0.98rem; margin: 0; }
.formats { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 2rem); color: var(--muted); }
.formats span::after { content: "/"; color: var(--gold); margin-left: 2.5rem; }
.formats span:last-child::after { content: ""; }

/* Split (about / contact) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.portrait-logo { background: #f1e8d8; padding: clamp(2rem, 6vw, 5rem); border: 1px solid #d9c9ad; }
.facts { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.facts li span:first-child { color: var(--muted); }

/* CTA band */
.cta-band { text-align: left; }
.cta-band h2 { max-width: 48rem; }

/* Project page */
.player { position: relative; aspect-ratio: 16 / 9; background: #000; margin-bottom: 3rem; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.detail-rows { list-style: none; padding: 0; margin: 2rem 0; border-top: 1px solid var(--line); max-width: 36rem; }
.detail-rows li { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.detail-rows li span:first-child { color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1.25rem; margin-top: 3rem; }
.gallery figure { margin: 0; }
.gallery img, .gallery video { width: 100%; max-height: 70vh; object-fit: cover; }
.gallery figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; }

/* Form */
.form { display: grid; gap: 1.4rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 0.45rem; }
.field .req { color: var(--gold); margin-left: 0.2rem; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  font: 400 1rem/1.4 var(--body);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field [aria-invalid="true"] { border-color: var(--destructive); }
.field .help { color: var(--muted); font-size: 0.85rem; margin: 0.4rem 0 0; }
.field .err { color: var(--destructive); font-size: 0.85rem; margin: 0.4rem 0 0; }
.form-error { color: var(--destructive); margin: 0; }
.thanks { padding: 2rem; border: 1px solid var(--gold); background: var(--surface); }
.contact-lines { list-style: none; padding: 0; margin: 2rem 0; }
.contact-lines li { padding: 0.5rem 0; }
.contact-lines a { text-decoration: none; }
.contact-lines a:hover { color: var(--gold-hi); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Footer */
.site-footer {
  padding: 3rem var(--pad);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.socials { display: flex; gap: 1.25rem; }
.socials a { color: var(--muted); }
.socials a:hover { color: var(--text); }
.socials svg { width: 20px; height: 20px; display: block; }

/* Responsive */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    font-size: 1.5rem;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
  }
  .nav a { font-size: 1.4rem; }
  .nav.open { transform: none; }
  .nav-toggle { position: relative; z-index: 30; }
  .split { grid-template-columns: 1fr; }
  .service + .service { padding-left: 0; border-left: 0; }
  .service { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media iframe, .hero-media video { display: none; }
  * { transition: none !important; }
}
/* The Work tab is hidden until new work is published. Delete this rule to show it again. */
.nav a[href="/work.html"] { display: none; }

/* Phones: the reel shows whole, as a 16:9 band under the header, with the headline on solid dark below it,
   and the body text is a little larger, brighter and heavier so it reads on small screens. */
@media (max-width: 700px) {
  :root { --muted: #cbc1b0; }
  body { font-size: 1.0625rem; line-height: 1.7; }
  p, li { font-weight: 500; }
  .lede { font-size: 1.15rem; color: var(--text); opacity: 0.88; }
  .kicker { font-size: 0.7rem; letter-spacing: 0.11em; line-height: 1.6; }
  .work-card p, .service p, .field .help { font-size: 1rem; }
  .site-footer, .socials a { font-size: 0.95rem; }

  .hero { display: block; min-height: 0; padding: 4.75rem var(--pad) 3.5rem; }
  .hero::after { display: none; }
  .hero-media {
    position: relative;
    inset: auto;
    z-index: 0;
    aspect-ratio: 16 / 9;
    margin: 0 calc(-1 * var(--pad)) 2.25rem;
  }
  .hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg) 0%, rgba(11, 10, 9, 0) 40%);
  }
  .hero h1 { font-size: 2.15rem; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .portrait-logo { padding: 1.75rem; }
  .service { padding: 1.6rem 0; }
  .service .num { font-size: 1rem; margin-bottom: 0.35rem; }
  .service h3 { font-size: 1.55rem; margin-bottom: 0.35rem; }
  .service p { font-size: 1.12rem; line-height: 1.55; }
}