/* Schaefer Family Production Site: film studio theme */

@font-face {
  font-family: "Bebas Neue";
  src: url("fonts/BebasNeue-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #0a0a0c; --bg-2: #121216; --surface: #17171c; --surface-2: #1f1f26;
  --text: #ecebe8; --muted: #8d8c93; --border: #2a2a33;
  --amber: #f5a524; --amber-hot: #ffbf47; --rec: #ff3b30; --danger: #ff5a4f;
  --radius: 6px;
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  color: var(--text); line-height: 1.55;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(245,165,36,.10), transparent 70%),
    var(--bg);
}
/* Film grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--amber); }
a:hover { color: var(--amber-hot); }
main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .04em; line-height: 1.05; }
h2 { font-size: 1.9rem; margin: 3rem 0 1rem; display: flex; align-items: center; gap: .75rem; }
h2::before { content: ""; width: 28px; height: 3px; background: var(--amber); }

/* ---- Top bar ---------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .7rem 1.5rem; background: rgba(10,10,12,.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--text); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--amber); border-radius: 50%; position: relative; }
.brand-mark::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 12px var(--rec); animation: rec 1.6s steps(1) infinite; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--display); font-weight: 400; font-size: 1.45rem; letter-spacing: .08em; }
.brand-text small { font-family: var(--mono); font-size: .62rem; letter-spacing: .3em; color: var(--amber); text-transform: uppercase; }
.topbar nav { display: flex; align-items: center; gap: 1.4rem; }
.topbar nav a { white-space: nowrap; }
.topbar nav a:not(.btn) { color: var(--muted); text-decoration: none; font-family: var(--mono); font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; }
.topbar nav a:not(.btn):hover { color: var(--text); }
@keyframes rec { 50% { opacity: .15; } }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.4rem;
  border: 1px solid var(--amber); border-radius: var(--radius); background: var(--amber); color: #111;
  font-family: var(--mono); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .15s, box-shadow .15s, transform .1s;
}
.btn:hover { background: var(--amber-hot); color: #111; box-shadow: 0 0 24px rgba(245,165,36,.35); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: #45454f; }
.btn-ghost:hover { background: rgba(255,255,255,.06); color: var(--text); border-color: var(--amber); box-shadow: none; }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; box-shadow: none; }
.btn-small { padding: .45rem .85rem; font-size: .7rem; }
.btn-block { width: 100%; justify-content: center; padding: 1rem; }

/* ---- Hero: camera viewfinder ----------------------------------------------- */
.viewfinder {
  position: relative; margin: 1rem 0 0; padding: clamp(3rem, 9vw, 7rem) clamp(1.5rem, 6vw, 5rem);
  border-radius: 4px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse 60% 70% at 70% 40%, rgba(245,165,36,.18), transparent 60%),
    radial-gradient(ellipse 50% 60% at 15% 90%, rgba(255,59,48,.10), transparent 60%),
    linear-gradient(180deg, #16161b, #0d0d10);
  border: 1px solid var(--border);
}
/* letterbox bars */
.viewfinder::before, .viewfinder::after { content: ""; position: absolute; left: 0; right: 0; height: 14px; background: #000; z-index: 2; }
.viewfinder::before { top: 0; }
.viewfinder::after { bottom: 0; }
.vf-corner { position: absolute; width: 34px; height: 34px; border: 2px solid rgba(236,235,232,.7); z-index: 3; }
.vf-corner.tl { top: 28px; left: 24px; border-right: 0; border-bottom: 0; }
.vf-corner.tr { top: 28px; right: 24px; border-left: 0; border-bottom: 0; }
.vf-corner.bl { bottom: 28px; left: 24px; border-right: 0; border-top: 0; }
.vf-corner.br { bottom: 28px; right: 24px; border-left: 0; border-top: 0; }
.vf-hud { position: absolute; left: 70px; right: 70px; display: flex; justify-content: space-between; z-index: 3;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; color: rgba(236,235,232,.75); text-transform: uppercase; }
.vf-hud.top { top: 34px; }
.vf-hud.bottom { bottom: 34px; }
.vf-rec { color: var(--rec); display: inline-flex; align-items: center; gap: .45rem; }
.vf-rec::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--rec); animation: rec 1.6s steps(1) infinite; }
.hero-body { position: relative; z-index: 2; max-width: 44rem; }
.eyebrow { font-family: var(--mono); font-size: .75rem; letter-spacing: .35em; color: var(--amber); text-transform: uppercase; margin: 0 0 1rem; }
.hero-body h1 { font-size: clamp(3rem, 9vw, 6.5rem); margin: 0; letter-spacing: .03em; text-shadow: 0 4px 40px rgba(0,0,0,.6); }
.hero-body h1 span { color: var(--amber); display: block; }
.hero-body .lede { font-size: 1.15rem; color: #b9b8bf; max-width: 34rem; margin: 1.25rem 0 2rem; }
.actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---- Film strip + grids -------------------------------------------------------- */
.filmstrip {
  position: relative; padding: 26px 14px; background: #050506; border-radius: 4px;
  --holes: repeating-linear-gradient(90deg, transparent 0 10px, #26262c 10px 24px, transparent 24px 34px);
}
.filmstrip::before, .filmstrip::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: var(--holes); border-radius: 2px; }
.filmstrip::before { top: 8px; }
.filmstrip::after { bottom: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.grid.albums { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.tile, .card { position: relative; display: block; overflow: hidden; background: var(--surface); }
.tile { aspect-ratio: 16/10; border-radius: 2px; }
.tile img, .card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s, filter .35s; filter: saturate(.85); }
.tile:hover img, .card:hover img { transform: scale(1.05); filter: saturate(1.1); }
.tile.is-video::after { content: "▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.55); border: 2px solid var(--text); color: var(--text); font-size: .85rem; padding-left: 3px; }
.card { aspect-ratio: 16/9; border-radius: var(--radius); text-decoration: none; border: 1px solid var(--border); }
.card-label { position: absolute; inset: auto 0 0 0; padding: 2rem 1rem .8rem; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.85)); font-family: var(--display); font-size: 1.5rem; letter-spacing: .05em; }
.card-label small { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; color: var(--amber); text-transform: uppercase; }
.empty-reel { padding: 3rem 1rem; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius);
  font-family: var(--mono); font-size: .85rem; letter-spacing: .15em; color: var(--muted); text-transform: uppercase; }

/* ---- Clapperboard panels (login, signup, status) ------------------------------------ */
.slate { max-width: 30rem; margin: 2.5rem auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); }
.slate.wide { max-width: 38rem; }
.clapper {
  height: 46px; border-radius: 8px 8px 0 0; transform-origin: 0 100%;
  background: repeating-linear-gradient(-45deg, #f2f1ee 0 26px, #111 26px 52px);
  border: 3px solid #111; animation: clap .7s cubic-bezier(.5,0,.3,1) .15s both;
}
.clapper.bottom { border-radius: 0; animation: none; transform: none; border-top: 0; height: 30px;
  background: repeating-linear-gradient(45deg, #f2f1ee 0 26px, #111 26px 52px); }
@keyframes clap { 0% { transform: rotate(-18deg); } 70% { transform: rotate(1.5deg); } 100% { transform: rotate(0); } }
.slate-body { background: #141418; border: 3px solid #111; border-top: 0; border-radius: 0 0 8px 8px; padding: 1.75rem; }
.slate-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #3a3a44; margin-bottom: 1.5rem; }
.slate-grid > div { padding: .55rem .7rem; border-right: 1px solid #3a3a44; border-bottom: 1px solid #3a3a44; }
.slate-grid > div:nth-child(3n+1) { border-right: 0; }
.slate-grid > div.full { grid-column: 1 / -1; border-right: 0; }
.slate-grid > div:nth-last-child(-n+3):not(.full) { border-bottom: 0; }
.slate-grid label, .slate-label { display: block; font-family: var(--mono); font-size: .6rem; letter-spacing: .25em; color: var(--muted); text-transform: uppercase; }
.slate-grid output, .slate-value { display: block; font-family: var(--display); font-size: 1.45rem; letter-spacing: .06em; color: var(--text); line-height: 1.1; }
.slate-grid .full output { color: var(--amber); font-size: 1.7rem; }
.slate h1 { font-size: 2.6rem; margin: 0 0 .25rem; }
.slate p { color: #b9b8bf; }
.timecode { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--rec); letter-spacing: .08em; }

/* ---- Forms ------------------------------------------------------------------ */
.form { display: grid; gap: 1.1rem; margin-top: 1.25rem; }
.form label { display: grid; gap: .35rem; }
.form label > span { font-family: var(--mono); font-size: .68rem; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; }
.form input, .form textarea {
  width: 100%; padding: .8rem .9rem; font: inherit; color: var(--text);
  background: #0c0c0f; border: 1px solid #34343d; border-radius: var(--radius); transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,165,36,.18); }
.form .btn { justify-self: start; }
.form .btn-block { justify-self: stretch; }
.check { display: flex !important; grid-template-columns: none; align-items: center; gap: .6rem; color: #b9b8bf; font-size: .92rem; }
.check input { width: auto; accent-color: var(--amber); }
.error { color: var(--danger); font-size: .85rem; font-style: normal; }
.hp { position: absolute; left: -9999px; }
.form-foot { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .9rem; color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.alert, .notice { padding: .8rem 1rem; border-radius: var(--radius); word-break: break-word; border: 1px solid; }
.alert { background: rgba(255,90,79,.08); color: #ff8a82; border-color: rgba(255,90,79,.35); }
.notice { background: rgba(245,165,36,.08); color: var(--amber-hot); border-color: rgba(245,165,36,.35); word-break: break-all; }
.linkbox { padding: .8rem; background: #0c0c0f; border: 1px dashed var(--amber); border-radius: var(--radius); word-break: break-all; font-family: var(--mono); font-size: .85rem; }
.muted { color: var(--muted); }

/* ---- Admin ------------------------------------------------------------------ */
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.admin-head h1 { font-size: 2.6rem; margin: .5rem 0; }
.request { margin: 1rem 0; padding: 1.1rem 1.3rem; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--amber); border-radius: var(--radius); }
.request header strong { font-family: var(--display); font-size: 1.4rem; font-weight: 400; letter-spacing: .05em; }
.request header small { display: block; font-family: var(--mono); font-size: .72rem; }
.request .quote { padding-left: .8rem; border-left: 2px solid var(--border); color: #b9b8bf; }
.request-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .75rem; }
.request-actions .check { flex: 1 1 100%; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table th { font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.table th, .table td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .92rem; }
.badge { padding: .12rem .5rem; border-radius: 999px; background: var(--amber); color: #111; font-family: var(--mono); font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* ---- Footer ------------------------------------------------------------------ */
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 1.25rem 1.5rem; border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.footer a { color: var(--muted); }

@media (max-width: 640px) {
  .topbar { padding: .6rem 1rem; }
  .topbar nav { gap: .9rem; width: 100%; justify-content: space-between; }
  .topbar nav a:not(.btn) { font-size: .7rem; letter-spacing: .1em; }
  .viewfinder { padding: 5.5rem 1.4rem 5.5rem; }
  .vf-corner { width: 24px; height: 24px; }
  .vf-corner.tl, .vf-corner.tr { top: 26px; }
  .vf-corner.bl, .vf-corner.br { bottom: 26px; }
  .vf-corner.tl, .vf-corner.bl { left: 14px; }
  .vf-corner.tr, .vf-corner.br { right: 14px; }
  .vf-hud { left: 48px; right: 48px; font-size: .62rem; }
  .vf-hud.top { top: 32px; }
  .vf-hud.bottom { bottom: 32px; }
  .vf-hud .hide-sm { display: none; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .slate-grid output, .slate-value { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
