/* ===========================================================
   Iron Crown Media — one-page editing showcase
   =========================================================== */

:root {
  --bg: #0a0a0b;
  --bg-alt: #111113;
  --surface: #17171a;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f3f0ea;
  --muted: #a09b93;
  --gold: #e3b45c;
  --gold-deep: #b8862f;

  --radius-frame: 28px;
  --radius-card: 22px;
  --wrap: 1200px;

  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.02; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.accent { color: var(--gold); }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--gold);
  color: #141109;
  font-weight: 600;
  font-size: 16px;
  font-family: var(--body);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 30px -10px rgba(227, 180, 92, 0.6);
}
.btn:hover { transform: translateY(-2px); background: #edc271; }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 30px; height: 30px; fill: var(--gold); }
.brand__name {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 17px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand__name em { font-style: normal; color: var(--muted); font-weight: 500; }
.brand--sm .brand__mark { width: 24px; height: 24px; }
.brand--sm .brand__name { font-size: 14px; }

.nav__links { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.nav__links a:not(.btn) { color: var(--muted); transition: color 0.2s; }
.nav__links a:not(.btn):hover { color: var(--text); }

.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding-top: 150px; }
.hero__title {
  font-size: clamp(52px, 10vw, 140px);
  font-weight: 900;
  font-stretch: 115%;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.hero__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero__lede { max-width: 520px; color: var(--muted); font-size: 19px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.showreel { margin-top: 60px; }

/* ---------- Marquee ---------- */
.marquee {
  margin-top: 80px;
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee__track span {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 110%;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--muted);
  padding-inline: 28px;
  white-space: nowrap;
}
.marquee__track span::after { content: "✦"; color: var(--gold); margin-left: 56px; font-size: 14px; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 130px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head--inner { margin-top: 110px; }
.section__head h2 { font-size: clamp(36px, 5.4vw, 68px); font-weight: 850; font-stretch: 108%; }
.section__sub { color: var(--muted); margin-top: 16px; }

/* ---------- Video frames ---------- */
.grid { display: grid; gap: 22px; }
.grid--vertical { grid-template-columns: repeat(4, 1fr); }
.grid--wide { grid-template-columns: repeat(2, 1fr); }

.frame {
  position: relative;
  border-radius: var(--radius-frame);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.frame:hover { transform: translateY(-6px); border-color: rgba(227, 180, 92, 0.45); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(227, 180, 92, 0.15); }
.frame:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.frame--vertical { aspect-ratio: 9 / 16; }
.frame--wide { aspect-ratio: 16 / 9; }
.frame--reel { aspect-ratio: 16 / 9; border-radius: 34px; }

.frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Gradient + label overlay */
.frame__meta {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 60px 20px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}
.frame__title { font-family: var(--display); font-weight: 750; font-size: 17px; line-height: 1.2; }
.frame__tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.frame__play {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s;
}
.frame__play svg { width: 16px; height: 16px; fill: #fff; margin-left: 2px; }
.frame:hover .frame__play { background: var(--gold); transform: scale(1.08); }
.frame:hover .frame__play svg { fill: #141109; }
.frame--reel .frame__meta { padding: 80px 32px 28px; }
.frame--reel .frame__title { font-size: clamp(20px, 2.4vw, 30px); }
.frame--reel .frame__play { width: 64px; height: 64px; }
.frame--reel .frame__play svg { width: 22px; height: 22px; }

/* Placeholder shown until a real video file is added */
.frame__placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 13px;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(227, 180, 92, 0.18), transparent 60%),
    radial-gradient(100% 70% at 100% 100%, rgba(120, 120, 140, 0.18), transparent 60%),
    var(--surface);
}
.frame__placeholder svg { width: 42px; height: 42px; fill: rgba(227, 180, 92, 0.55); }
.frame__placeholder code {
  font-size: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  padding: 4px 10px;
  border-radius: 999px;
}
.frame.is-empty .frame__placeholder { display: flex; }

/* ---------- Inline CTA ---------- */
.inline-cta {
  margin-top: 70px;
  padding: 34px 40px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(227, 180, 92, 0.12), rgba(255, 255, 255, 0.02));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.inline-cta p { font-family: var(--display); font-weight: 750; font-size: clamp(20px, 2.4vw, 28px); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  padding: 34px 30px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: rgba(227, 180, 92, 0.4); transform: translateY(-4px); }
.card__num { font-family: var(--display); font-weight: 800; color: var(--gold); font-size: 14px; letter-spacing: 0.1em; }
.card h3 { font-size: 24px; font-weight: 800; margin: 18px 0 12px; }
.card p { color: var(--muted); font-size: 16px; }

/* ---------- Process ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: none;
}
.step { padding-top: 26px; border-top: 1px solid var(--line); }
.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(227, 180, 92, 0.5);
  color: var(--gold);
  font-family: var(--display);
  font-weight: 800;
}
.step h3 { font-size: 22px; font-weight: 800; margin: 22px 0 10px; }
.step p { color: var(--muted); font-size: 16px; }

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(60% 60% at 0% 0%, rgba(227, 180, 92, 0.14), transparent 70%),
    var(--bg-alt);
  border-top: 1px solid var(--line);
}
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.contact__title { font-size: clamp(40px, 5.6vw, 76px); font-weight: 900; font-stretch: 110%; text-transform: uppercase; line-height: 0.95; margin-bottom: 24px; }
.contact__copy > p:not(.eyebrow) { color: var(--muted); font-size: 18px; max-width: 440px; }
.contact__direct { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 12px; }
.contact__direct a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  transition: color 0.2s;
}
.contact__direct a:hover { color: var(--gold); }
.contact__direct span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; min-width: 84px; }

.form {
  display: grid;
  gap: 18px;
  padding: 34px;
  border-radius: var(--radius-frame);
  background: var(--surface);
  border: 1px solid var(--line);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 15px;
  transition: border-color 0.2s;
}
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a09b93' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px; }
.form textarea { resize: vertical; }
.form input:focus,
.form select:focus,
.form textarea:focus { outline: none; border-color: var(--gold); }
.form input.is-invalid { border-color: #e2685c; }
.form__note { font-size: 14px; color: var(--muted); min-height: 1.4em; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 50px; border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__also, .footer__copy { color: var(--muted); font-size: 14px; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  color: var(--text);
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.lightbox::backdrop { background: rgba(5, 5, 6, 0.9); backdrop-filter: blur(10px); }
.lightbox__frame {
  border-radius: var(--radius-frame);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  max-width: min(1100px, 92vw);
  max-height: 78vh;
}
.lightbox__frame video { max-height: 78vh; width: auto; max-width: 100%; }
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.16); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid--vertical { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .contact__inner { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 90px 0; }
  .hero { padding-top: 120px; }
  .hero__lede { font-size: 17px; }
  .showreel { margin-top: 44px; }
  .frame--reel { border-radius: 24px; }
  .frame--reel .frame__meta { padding: 50px 20px 18px; }
  .frame--reel .frame__play { width: 48px; height: 48px; }

  /* Reels swipe sideways on phones */
  .grid--vertical {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 70%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: -20px;
    padding: 6px 20px 16px;
    scrollbar-width: none;
  }
  .grid--vertical::-webkit-scrollbar { display: none; }
  .grid--vertical .frame { scroll-snap-align: center; }
  .grid--wide { grid-template-columns: 1fr; }
  .frame:hover { transform: none; }

  .services, .steps { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .form__row { grid-template-columns: 1fr; }
  .inline-cta { padding: 28px; }

  .nav__links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 24px;
    background: rgba(10, 10, 11, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
  }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav__links .btn { margin-top: 18px; padding: 14px; }
  .nav.is-open { background: rgba(10, 10, 11, 0.96); }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }

  .nav__toggle {
    display: grid;
    gap: 6px;
    place-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
  }
  .nav__toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .sticky-cta {
    display: block;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 40;
    padding: 16px;
    border-radius: 999px;
    text-align: center;
    font-weight: 600;
    background: var(--gold);
    color: #141109;
    box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.8);
    transform: translateY(140%);
    transition: transform 0.35s ease;
  }
  .sticky-cta.is-visible { transform: none; }
  .footer { padding-bottom: 100px; }
}

@media (max-width: 380px) {
  .brand__name { font-size: 14px; }
  .brand__mark { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .frame, .card, .btn { transition: none; }
}
