/* Infinity Films Videography — shared styles */
:root {
  --ink: #0d0c0b;
  --ink-2: #151412;
  --ink-3: #1d1b19;
  --line: rgba(239, 233, 223, 0.14);
  --line-strong: rgba(239, 233, 223, 0.3);
  --ivory: #efe9df;
  --ivory-dim: rgba(239, 233, 223, 0.66);
  --ivory-faint: rgba(239, 233, 223, 0.4);
  --gold: #c9b38a;
  --danger: #d98b7e;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--ink); }

/* film grain */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: 0.05;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* type */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(38px, 6vw, 64px); font-style: italic; }
h3 { font-size: 28px; }
p { margin: 0 0 1em; color: var(--ivory-dim); }
.eyebrow {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.38em; text-transform: uppercase;
  color: var(--gold); font-weight: 400; margin-bottom: 22px;
}
.rule { width: 56px; height: 1px; background: var(--gold); border: 0; margin: 28px 0; }
.center { text-align: center; }
.center .rule { margin-left: auto; margin-right: auto; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 12px; font-weight: 400;
  letter-spacing: 0.28em; text-transform: uppercase; text-decoration: none;
  padding: 16px 30px; min-height: 48px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ivory);
  cursor: pointer; transition: background .35s, color .35s, border-color .35s;
}
.btn:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn.solid { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn.solid:hover { background: var(--gold); border-color: var(--gold); }
.btn.small { padding: 10px 18px; min-height: 38px; font-size: 11px; letter-spacing: 0.22em; }
.btn.danger:hover { background: var(--danger); border-color: var(--danger); color: var(--ink); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ivory-dim); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.link-btn:hover { color: var(--ivory); }

/* header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, .site-header.solid { background: rgba(13, 12, 11, 0.92); backdrop-filter: blur(10px); border-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { text-decoration: none; font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ivory-dim); transition: color .3s; }
.nav a:hover { color: var(--ivory); }
.nav .nav-cta { border: 1px solid var(--line-strong); padding: 10px 18px; color: var(--ivory); }
.nav .nav-cta:hover { background: var(--ivory); color: var(--ink); }
.menu-toggle { display: none; background: none; border: 0; color: var(--ivory); width: 44px; height: 44px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 1px; background: currentColor; margin: 6px auto; transition: transform .3s, opacity .3s; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 0 0; background: var(--ink);
    flex-direction: column; justify-content: center; gap: 30px;
    opacity: 0; pointer-events: none; transition: opacity .35s;
  }
  .nav a { font-size: 14px; }
  body.menu-open .nav { opacity: 1; pointer-events: auto; }
  body.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ink); border-color: var(--line); }
  body.menu-open { overflow: hidden; }
  body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
}

/* hero */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 42%, rgba(201, 179, 138, 0.09), transparent 70%),
    var(--ink);
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 2s ease; }
.hero-media video.ready, .hero-media img.ready { opacity: 1; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(13,12,11,.35), rgba(13,12,11,.82) 75%), linear-gradient(rgba(13,12,11,.25), rgba(13,12,11,.6)); }
.hero > *:not(.hero-media) { position: relative; z-index: 1; }
.hero-logo { width: min(520px, 82vw); opacity: 0; animation: rise 2.2s cubic-bezier(.2,.7,.2,1) .2s forwards; }
.hero-tag {
  font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3.2vw, 30px);
  color: var(--ivory-dim); margin: 34px 0 44px; opacity: 0;
  animation: rise 1.8s cubic-bezier(.2,.7,.2,1) .9s forwards;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; opacity: 0; animation: rise 1.6s ease 1.4s forwards; }
.hero-scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 54px; background: linear-gradient(var(--gold), transparent);
  animation: drip 2.6s ease-in-out infinite;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes drip { 0%,100% { opacity: .2; } 50% { opacity: 1; } }

/* sections */
section { padding: 130px 0; }
.section-head { margin-bottom: 64px; }
.section-alt { background: var(--ink-2); }

/* portfolio */
.film-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.film-grid .film:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
@media (max-width: 700px) { .film-grid { grid-template-columns: 1fr; } }
.film { position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: var(--ink-3); cursor: pointer; border: 0; padding: 0; display: block; width: 100%; color: inherit; text-align: left; }
.film video, .film img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.film:hover video, .film:hover img { transform: scale(1.025); }
.film .film-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 22px 18px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.film .film-cap strong { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 24px; line-height: 1.2; }
.film .film-cap .fs { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ivory-dim); }
.photos-block { margin-top: 110px; }
.subhead { font-size: clamp(30px, 4.4vw, 44px); font-style: italic; }
.photo-grid { columns: 4 200px; column-gap: 12px; }
.photo-grid .work-item { margin-bottom: 12px; }
.work-grid { columns: 3 300px; column-gap: 18px; }
.work-item { break-inside: avoid; margin: 0 0 18px; position: relative; overflow: hidden; background: var(--ink-3); cursor: zoom-in; }
.work-item img, .work-item video { width: 100%; height: auto; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), opacity .6s; }
.work-item:hover img { transform: scale(1.03); }
.work-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  font-family: var(--serif); font-style: italic; font-size: 20px;
  opacity: 0; transition: opacity .5s;
}
.work-item:hover figcaption { opacity: 1; }
.work-item .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7);
  display: grid; place-items: center; pointer-events: none;
}
.work-item .play::after { content: ""; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.placeholder-frame {
  break-inside: avoid; margin: 0 0 18px; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ivory-faint);
  font-family: var(--serif); font-style: italic; font-size: 20px;
}

/* about */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 90px; align-items: center; }
.about-photo { aspect-ratio: 4 / 5; background: var(--ink-3); border: 1px solid var(--line); position: relative; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo::before { content: ""; position: absolute; inset: 14px; border: 1px solid var(--line); pointer-events: none; z-index: 1; }
.about-photo .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ivory-faint); font-family: var(--serif); font-style: italic; font-size: 20px; }
.about .lede { font-family: var(--serif); font-size: 26px; line-height: 1.45; color: var(--ivory); margin-bottom: 26px; }
.signature { font-family: var(--serif); font-style: italic; font-size: 32px; color: var(--gold); margin-top: 10px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 48px; } }

/* services */
.services { border-top: 1px solid var(--line); }
.svc-group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 64px; padding: 56px 0; border-bottom: 1px solid var(--line); }
.svc-group.no-head { grid-template-columns: minmax(0, 1fr); }
.svc-head h3 { font-size: clamp(30px, 3.6vw, 40px); font-style: italic; margin-bottom: 14px; }
.svc-head p { max-width: 34ch; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li { padding: 20px 0; border-top: 1px solid var(--line); }
.svc-list li:first-child { border-top: 0; padding-top: 4px; }
.svc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; }
.svc-top h4 { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.2; margin: 0; }
.svc-top .price { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.svc-list p { margin: 6px 0 0; }
@media (max-width: 860px) {
  .svc-group { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 44px 0; }
}

/* process */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; counter-reset: step; }
.step { text-align: center; }
.step::before {
  counter-increment: step; content: counter(step, upper-roman);
  display: block; font-family: var(--serif); font-size: 46px; font-style: italic; color: var(--gold); margin-bottom: 14px;
}
.step h3 { font-size: 26px; margin-bottom: 12px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 48px; } }

/* forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--ivory-faint); margin-bottom: 10px; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; color: var(--ivory);
  border: 0; border-bottom: 1px solid var(--line-strong);
  padding: 10px 0 12px; font: inherit; font-size: 17px; border-radius: 0;
  transition: border-color .3s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ivory-dim) 50%), linear-gradient(135deg, var(--ivory-dim) 50%, transparent 50%); background-position: right 6px top 20px, right 0 top 20px; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--ink-2); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field input[type=file] { border: 1px dashed var(--line-strong); padding: 18px; font-size: 14px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.contact-wrap { max-width: 820px; margin: 0 auto; }
.contact-direct { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; color: var(--ivory-faint); }
.contact-direct a { color: var(--gold); text-decoration: none; letter-spacing: .04em; }
.contact-direct a:hover { text-decoration: underline; text-underline-offset: 4px; }
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; padding: 22px 0; border-top: 1px solid var(--line); }
.svc-row:first-of-type { border-top: 0; padding-top: 0; }
.svc-row .head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.svc-row .head span { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 20px; }
.svc-group-edit { border: 1px solid var(--line); background: var(--ink); padding: 22px; margin: 22px 0; }
.svc-group-edit > .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.svc-group-edit > .head span { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--ivory); }
.svc-items { margin: 22px 0 18px; padding-left: 16px; border-left: 1px solid var(--line-strong); }
.mini { display: flex; gap: 8px; flex-wrap: wrap; }
.mini .btn.small { padding: 8px 12px; min-height: 34px; }
@media (max-width: 640px) { .svc-group-edit { padding: 16px 12px; } .svc-items { padding-left: 10px; } }
@media (max-width: 640px) { .svc-row { grid-template-columns: 1fr; } }
.save-bar { position: sticky; bottom: 0; z-index: 20; display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 16px 0; background: linear-gradient(transparent, var(--ink) 30%); }
.save-bar .status { font-size: 13px; color: var(--ivory-faint); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; text-align: center; }
.site-footer img { height: 64px; width: auto; margin: 0 auto 24px; opacity: .85; }
.site-footer .small { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory-faint); }
.site-footer .links { display: flex; gap: 28px; justify-content: center; margin: 18px 0 28px; flex-wrap: wrap; }
.site-footer .links a { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; color: var(--ivory-dim); }
.site-footer .links a:hover { color: var(--ivory); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.2s cubic-bezier(.2,.7,.2,1), transform 1.2s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,8,7,.96); display: none; align-items: center; justify-content: center; padding: 60px 16px; }
.lightbox.open { display: flex; }
.lightbox img, .lightbox video { max-height: calc(100vh - 140px); max-width: 100%; width: auto; }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute; background: none; border: 0; color: var(--ivory); cursor: pointer;
  font-family: var(--serif); font-size: 34px; width: 54px; height: 54px; opacity: .7;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.lb-msg { max-width: 440px; text-align: center; padding: 30px 20px; border: 1px solid var(--line-strong); }
.lb-msg p { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ivory); margin-bottom: 24px; }
.lb-bar { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 16px; align-items: center; color: var(--ivory-dim); font-size: 13px; }

/* ---------- app (portal + admin) ---------- */
.app-main { padding: 140px 0 100px; min-height: 100vh; }
.auth-card { max-width: 440px; margin: 0 auto; text-align: center; }
.auth-card .form { grid-template-columns: 1fr; text-align: left; margin-top: 40px; }
.auth-card .btn { width: 100%; }
.auth-card .alt { margin-top: 22px; text-align: center; }
.notice { padding: 14px 18px; border: 1px solid var(--line-strong); font-size: 15px; margin-top: 22px; color: var(--ivory-dim); text-align: left; }
.notice.error { border-color: var(--danger); color: var(--danger); }
.notice.ok { border-color: var(--gold); color: var(--gold); }

.app-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.app-bar h1 { font-size: clamp(36px, 5vw, 54px); font-style: italic; }
.app-bar .meta { font-size: 13px; color: var(--ivory-faint); letter-spacing: .08em; }
.app-bar .actions { display: flex; gap: 12px; flex-wrap: wrap; }

.gallery-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.gcard { text-align: left; background: none; border: 1px solid var(--line); color: inherit; padding: 0; cursor: pointer; font: inherit; transition: border-color .4s; }
.gcard:hover { border-color: var(--gold); }
.gcard .cover { aspect-ratio: 3 / 2; background: var(--ink-3); overflow: hidden; display: grid; place-items: center; }
.gcard .cover img, .gcard .cover video { width: 100%; height: 100%; object-fit: cover; }
.gcard .cover .ph { font-family: var(--serif); font-style: italic; color: var(--ivory-faint); font-size: 20px; }
.gcard .info { padding: 20px 22px 24px; }
.gcard h3 { font-size: 26px; margin-bottom: 6px; }
.gcard .sub { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ivory-faint); }

.files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.file { background: var(--ink-2); border: 1px solid var(--line); display: flex; flex-direction: column; }
.file .thumb { aspect-ratio: 1 / 1; background: var(--ink-3); overflow: hidden; cursor: zoom-in; position: relative; display: grid; place-items: center; }
.file .thumb img, .file .thumb video { width: 100%; height: 100%; object-fit: cover; }
.file .thumb .kind { font-family: var(--serif); font-style: italic; color: var(--ivory-faint); font-size: 18px; padding: 10px; text-align: center; word-break: break-word; }
.file .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.file .name { font-size: 13px; color: var(--ivory-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.file .size { font-size: 11px; color: var(--ivory-faint); letter-spacing: .08em; }
.icon-btn { flex: none; background: none; border: 1px solid var(--line-strong); color: var(--ivory); width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; transition: background .3s, color .3s; }
.icon-btn:hover { background: var(--ivory); color: var(--ink); }
.icon-btn.danger:hover { background: var(--danger); border-color: var(--danger); }
.icon-btn svg { width: 16px; height: 16px; }

.gallery-message { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ivory-dim); max-width: 720px; margin: -16px 0 44px; }
.empty { text-align: center; padding: 80px 20px; border: 1px solid var(--line); color: var(--ivory-faint); font-family: var(--serif); font-style: italic; font-size: 22px; }

/* admin */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 44px; overflow-x: auto; }
.tab { background: none; border: 0; border-bottom: 1px solid transparent; margin-bottom: -1px; color: var(--ivory-faint); font: inherit; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; padding: 16px 22px; cursor: pointer; white-space: nowrap; }
.tab.active { color: var(--ivory); border-color: var(--gold); }
.panel { display: none; }
.panel.active { display: block; }
.card { border: 1px solid var(--line); padding: 34px; margin-bottom: 36px; background: var(--ink-2); }
.card h3 { margin-bottom: 24px; font-style: italic; }
@media (max-width: 640px) { .card { padding: 24px 18px; } }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-weight: 400; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ivory-faint); padding: 0 12px 14px 0; border-bottom: 1px solid var(--line); }
.table td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); color: var(--ivory-dim); vertical-align: middle; }
.table td:last-child { text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.progress { margin-top: 22px; display: grid; gap: 12px; }
.prog-item { font-size: 13px; color: var(--ivory-dim); }
.prog-item .bar { height: 2px; background: var(--line); margin-top: 6px; }
.prog-item .bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }
.prog-item.done { color: var(--gold); }
.prog-warn { margin-top: 8px; padding: 10px 12px; border-left: 2px solid var(--gold); background: var(--ink-3); color: var(--ivory-dim); font-size: 13px; line-height: 1.5; }
.prog-item.fail { color: var(--danger); }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); background: var(--ivory); color: var(--ink); padding: 14px 22px; font-size: 14px; opacity: 0; transition: .4s; z-index: 300; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Phones: keep buttons and messages clear of the "Powered by Netlify" badge in the bottom-right corner */
@media (max-width: 860px) {
  .site-footer { padding-bottom: 110px; }
  .app-main { padding-bottom: 150px; }
  .save-bar { bottom: 72px; justify-content: flex-start; }
  .lightbox { padding: 76px 16px 100px; }
  .lightbox img, .lightbox video { max-height: calc(100vh - 190px); }
  .lb-bar { top: 14px; bottom: auto; left: 16px; right: 80px; justify-content: flex-start; }
  .toast { top: 90px; bottom: auto; transform: translate(-50%, -20px); }
  .toast.show { transform: translate(-50%, 0); }
}
.toast.error { background: var(--danger); }
.hidden { display: none !important; }
.spinner { width: 28px; height: 28px; border: 1px solid var(--line-strong); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero-logo, .hero-tag, .hero-actions { opacity: 1; transform: none; }
}
