/* Frame Forge — site styles. Mobile-first. */
:root {
  --bg: #0d0c0a;
  --bg-soft: #141210;
  --bg-card: #1b1915;
  --bg-card-hover: #221f1a;
  --line: rgba(232, 196, 148, 0.14);
  --line-strong: rgba(232, 196, 148, 0.3);
  --text: #f4efe6;
  --text-soft: #b7aea2;
  --text-muted: #8a8176;
  --amber: #e8a54b;
  --amber-hot: #f3c078;
  --amber-deep: #c47a22;
  --ember: #d4652f;
  --ink: #14110e;
  --radius: 18px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --header-h: 68px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -80px, rgba(212, 101, 47, 0.16), transparent 55%),
    radial-gradient(800px 400px at 100% 10%, rgba(232, 165, 75, 0.05), transparent 50%),
    var(--bg);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--amber-hot); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; line-height: 1.12; color: var(--text); margin: 0 0 0.6em; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -40px;
  background: var(--amber);
  color: var(--ink);
  padding: 0.4rem 0.8rem;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { top: 0.5rem; }

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(13, 12, 10, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}
.brand:hover { color: var(--text); }
.brand .mark { flex-shrink: 0; display: block; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
}
.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--text); }
.site-nav .btn { color: var(--ink); }
.site-nav .btn:hover { color: var(--ink); }

.nav-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 859px) {
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(13, 12, 10, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.4rem;
    gap: 0.9rem;
  }
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}
.btn-small { padding: 0.55rem 0.95rem; font-size: 0.85rem; background: var(--amber); color: var(--ink); }
.btn-small:hover { background: var(--amber-hot); color: var(--ink); }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-hot); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(232, 165, 75, 0.08); color: var(--text); border-color: var(--amber); }
.btn-block { width: 100%; margin-top: auto; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* Hero */
.hero {
  padding: 4.25rem 0 4.5rem;
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 42rem; }
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1rem;
}
.hero h1 {
  font-size: clamp(2.35rem, 7vw, 4.35rem);
  font-weight: 500;
  margin: 0 0 1.15rem;
  text-wrap: balance;
}
.lede {
  font-size: 1.125rem;
  color: var(--text-soft);
  max-width: 38rem;
  margin-bottom: 1.85rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Sections */
.section { padding: 4.25rem 0; border-bottom: 1px solid var(--line); }
.section-head { max-width: 36rem; margin-bottom: 2.25rem; }
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  margin: 0;
  text-wrap: balance;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}
.work-card { margin: 0; }
.work-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.work-media img, .work-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.work-media img.is-missing { display: none; }
.work-media.is-missing img { display: none; }
.work-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  background:
    radial-gradient(circle at 30% 20%, rgba(232, 165, 75, 0.16), transparent 42%),
    radial-gradient(circle at 80% 90%, rgba(212, 101, 47, 0.18), transparent 46%),
    repeating-linear-gradient(-18deg, transparent, transparent 22px, rgba(232, 196, 148, 0.035) 22px, rgba(232, 196, 148, 0.035) 23px),
    var(--bg-card);
  z-index: 0;
}
.work-media:not(.is-missing) .work-placeholder { opacity: 0; pointer-events: none; }
.work-media.is-missing .work-placeholder,
.work-media--video.is-missing .work-placeholder { opacity: 1; }
.work-card figcaption {
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
}
.caption-note {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.85rem;
}
.work-card--video { grid-column: 1 / -1; }
.work-media--video { aspect-ratio: 16 / 9; }
.work-placeholder--video { flex-direction: column; gap: 0.7rem; }
.play-glyph {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(13, 12, 10, 0.35);
  position: relative;
}
.play-glyph::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 18px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--amber);
}
.work-media:hover img { transform: scale(1.03); transition: transform 0.5s ease; }
.work-note {
  margin: 1.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

@media (min-width: 640px) {
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .gallery { grid-template-columns: 1fr 1fr 1fr; }
  .hero { padding: 6.5rem 0 6.75rem; }
  .section { padding: 5.5rem 0; }
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.steps li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem;
}
.step-num {
  display: block;
  font-family: var(--font-display);
  color: var(--amber);
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.85rem;
}
.steps h3 { font-size: 1.25rem; margin-bottom: 0.45rem; }
.steps p { color: var(--text-soft); margin: 0; }

@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
}

/* Pricing */
.plans {
  display: grid;
  gap: 1.15rem;
}
.plan {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1.35rem 1.4rem;
  position: relative;
}
.plan--popular {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px rgba(232, 165, 75, 0.25), var(--shadow);
  background: linear-gradient(180deg, rgba(232, 165, 75, 0.08), transparent 40%), var(--bg-card);
}
.plan-badge {
  position: absolute;
  top: -0.7rem;
  left: 1.25rem;
  margin: 0;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}
.plan h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.plan-price {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 0.7rem;
}
.plan-price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; letter-spacing: 0; }
.plan-blurb { color: var(--text-soft); font-size: 0.98rem; margin-bottom: 1rem; }
.plan ul {
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
  font-size: 0.98rem;
}
.plan li {
  padding: 0.35rem 0 0.35rem 1.15rem;
  position: relative;
  border-top: 1px solid var(--line);
}
.plan li:first-child { border-top: 0; }
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}
.manage-line {
  margin: 1.75rem 0 0;
  text-align: center;
  color: var(--text-soft);
}

@media (min-width: 720px) {
  .plans { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px) {
  .plans { grid-template-columns: repeat(4, 1fr); align-items: stretch; }
}

/* FAQ */
.faq-inner { max-width: 46rem; margin-inline: auto; }
.faq-inner .section-head { margin-inline: auto; text-align: left; }
.faq-list details {
  border-top: 1px solid var(--line);
  padding: 0.15rem 0;
}
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  padding: 1.05rem 2rem 1.05rem 0;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 0.15rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--amber);
  border-bottom: 1.5px solid var(--amber);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-list details p {
  color: var(--text-soft);
  margin: 0 0 1.15rem;
  max-width: 40rem;
}

/* CTA band */
.cta-band { border-bottom: 0; }
.cta-inner {
  text-align: center;
  padding: 3rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(232, 165, 75, 0.14), transparent 70%),
    var(--bg-card);
}
.cta-inner h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 0.6rem; }
.cta-inner p { color: var(--text-soft); max-width: 32rem; margin: 0 auto 1.5rem; }

/* Footer */
.site-footer {
  padding: 2.4rem 0 2.8rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.95rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.footer-inner a { color: var(--text-soft); text-decoration: none; }
.footer-inner a:hover { color: var(--amber-hot); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 0.85rem 1.15rem; margin: 0; }
.brand--footer { text-decoration: none; color: var(--text); }

/* Legal pages */
.legal { padding: 3.5rem 0 5rem; }
.legal-inner { max-width: 42rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.35rem; }
.legal-updated { color: var(--text-muted); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal p { color: var(--text-soft); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 7, 6, 0.92);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.25rem 1.5rem;
}
.lightbox[hidden] { display: none !important; }
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 8rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.lightbox-caption {
  margin: 0.9rem 0 0;
  font-family: var(--font-display);
  color: var(--text-soft);
}
.lightbox-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.9rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
}
.lightbox-close:hover { border-color: var(--amber); }


.hero-copy { max-width: 42rem; }
.hero-visual { display: none; }
.hero-plate {
  width: min(280px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 36px;
  background:
    radial-gradient(circle at 50% 40%, rgba(232, 165, 75, 0.16), transparent 64%),
    var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: 0 0 80px rgba(212, 101, 47, 0.18);
}
.hero-plate svg { width: 58%; height: auto; display: block; }
.price-break { display: none; }

@media (min-width: 960px) {
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.7fr);
    gap: 3.5rem;
    align-items: center;
    max-width: none;
  }
  .hero-visual { display: flex; justify-content: center; }
}
@media (min-width: 1080px) {
  .price-break { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .work-media:hover img { transform: none; transition: none; }
}
