/* Steve Johnson FX — static rebuild
   Design tokens taken from the original theme:
   display font "The Great Thunder", body Roboto, accent #ff7b00 */

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap");

@font-face {
  font-family: "The Great Thunder";
  src: url("../fonts/150324012943The-Great-Thunder.woff") format("woff"),
       url("../fonts/thegreatthunder.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  background: #40566a url("../img/Background.jpg") repeat top center;
  color: #fff;
  font: 400 15px/1.7 Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: #ff7b00; text-decoration: none; transition: color .3s ease, opacity .3s ease; }
a:hover, a:focus { color: #fff; }

img { max-width: 100%; height: auto; border: 0; }

.container { max-width: 1170px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header { position: relative; padding: 50px 0; z-index: 20; }
.site-header .container { display: flex; align-items: flex-start; justify-content: flex-end; }

.rabbit {
  position: absolute;
  top: 0; left: 0;
  width: 112px;
  z-index: 30;
  pointer-events: none;
}

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  color: #ff7b00; font: 900 15px/1 Roboto, sans-serif;
  text-transform: uppercase; letter-spacing: .05em; padding: 8px 4px;
}

.main-nav ul { list-style: none; margin: 0; padding: 0; }

.main-nav > ul { display: flex; gap: 22px; }
.main-nav > ul > li { position: relative; }

.main-nav a {
  color: #ff7b00;
  font-weight: 900;
  font-size: 15px;
  text-transform: uppercase;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav .is-current > a { color: #fff; }

/* dropdowns */
.main-nav .sub-menu {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  min-width: 150px;
  padding: 10px 0;
  margin-top: 6px;
  background: rgba(20, 28, 36, .94);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 40;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
.main-nav .sub-menu li { display: block; }
.main-nav .sub-menu a { display: block; padding: 6px 18px; font-size: 13px; }

/* ---------- Page title ---------- */
.title-section { padding: 25px 0; text-align: center; }
.title-header {
  margin: 0 0 50px;
  font: normal 105px/85px "The Great Thunder", "Righteous", Impact, cursive;
  text-transform: uppercase;
  color: #fff;
  word-break: break-word;
  /* line-height is deliberately shorter than font-size (as in the original
     theme), so the glyphs' splatter paints outside the line box. The padding
     reserves that space instead of letting it collide with the nav above. */
  padding-top: .34em;
}
@media (min-width: 1200px) { .title-header { font-size: 135px; line-height: 115px; } }

/* ---------- Content ---------- */
.content { padding-bottom: 60px; }
.content h1, .content h2, .content h3, .content h4, .content h5 {
  margin-top: 0; text-transform: uppercase; font-weight: 700;
}
.content p { margin: 0 0 20px; }

.lead-name {
  font: normal 46px/1 "The Great Thunder", Impact, cursive;
  letter-spacing: .02em;
  margin: 0 0 20px;
}

.alignleft { float: left; margin: 0 30px 15px 0; }
.aligncenter { display: block; margin: 0 auto 30px; }
.clearfix::after { content: ""; display: table; clear: both; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 30px 0 40px;
  font-size: 12px;
  color: #fff;
}
.site-footer .container { max-width: 1170px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ff7b00; }

/* ---------- Home (video background) ---------- */
body.home { overflow: hidden; }
body.home .video-bg {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  z-index: 0;
  background: #40566a url("../img/Background.jpg") repeat center;
}
body.home .video-bg video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
body.home .home-shell {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.home .home-main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
body.home .home-logo { max-width: 1000px; width: 100%; }
body.home .site-footer { position: relative; z-index: 10; }

/* ---------- Products ---------- */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin: 0 0 40px;
}
.product { flex: 1 1 320px; max-width: 500px; text-align: center; }
.product img { display: block; margin: 0 auto 12px; }
.product p { margin: 0; font-size: 13px; }

/* ---------- Bio ---------- */
.bio-body { max-width: 100%; }
.bio-body .dropcap-para::first-letter {
  float: left;
  font: normal 66px/50px "The Great Thunder", Georgia, serif;
  padding: 4px 10px 0 0;
}
.bio-banner { margin: 40px 0 0; }

/* ---------- Resume ---------- */
.resume-block { margin: 0 0 45px; }
.resume-block h2 {
  font: normal 40px/1 "The Great Thunder", Impact, cursive;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.credits { display: grid; grid-template-columns: 1.6fr 1.2fr 1.4fr; gap: 4px 30px; }
.credits > div { min-width: 0; }
.credits .col-title { font-weight: 700; }
.credits p { margin: 0; font-size: 14px; line-height: 1.55; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; margin: 0 0 30px; opacity: .85;
}

/* ---------- Services (filterable gallery) ---------- */
.filters {
  list-style: none; margin: 0 0 30px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  font-size: 13px; font-weight: 700; text-transform: uppercase;
}
.filters .filters-label { opacity: .8; letter-spacing: .1em; }
.filters button {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: #ff7b00; font: inherit; text-transform: uppercase;
  transition: color .3s ease;
}
.filters button:hover, .filters button[aria-pressed="true"] { color: #fff; }

.portfolio { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.portfolio-item { margin: 0; }
.portfolio-item.is-hidden { display: none; }
.portfolio-item button.thumb {
  display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  background: none; line-height: 0; position: relative;
}
/* the frame stays put; the image scales and turns inside it.
   Ported from the WordPress theme: scale(1.33) rotate(10deg) over 0.5s ease. */
.thumb-frame { display: block; overflow: hidden; }
.portfolio-item img {
  display: block; width: 100%;
  transform: scale(1) rotate(0deg);
  transition: transform .5s ease;
}
.portfolio-item button.thumb:hover img,
.portfolio-item button.thumb:focus-visible img { transform: scale(1.33) rotate(10deg); }
.portfolio-item .caption {
  display: block; padding: 10px 0 0; line-height: 1.4;
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  color: #fff; text-align: left;
}
.portfolio-item button.thumb:hover .caption { color: #ff7b00; }
.portfolio-item .count { display: block; font-weight: 400; opacity: .7; font-size: 12px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 12, 16, .94);
  display: none;
  align-items: center; justify-content: center;
  padding: 60px 70px;
}
.lightbox[open], .lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox figcaption {
  margin-top: 14px; font-size: 13px; text-transform: uppercase;
  letter-spacing: .1em; color: #fff;
}
.lightbox button {
  position: absolute; background: none; border: 0; cursor: pointer;
  color: #fff; font-size: 40px; line-height: 1; padding: 10px 18px;
  transition: color .3s ease;
}
.lightbox button:hover { color: #ff7b00; }
.lb-close { top: 10px; right: 14px; font-size: 34px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }

/* ---------- Showreel ---------- */
.video-frame {
  position: relative; width: 100%; max-width: 800px;
  margin: 0 auto 40px; aspect-ratio: 16 / 9; background: #000;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Links ---------- */
.link-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 200px));
  gap: 40px; justify-content: center; padding: 20px 0 60px;
}
.link-grid a { display: block; text-align: center; }
.link-grid img { display: block; width: 100%; border-radius: 4px; }
.link-grid span {
  display: block; margin-top: 12px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: #fff;
}
.link-grid a:hover span { color: #ff7b00; }
.link-grid a:hover img { opacity: .85; }

/* ---------- Notice (for pages that were empty on the old site) ---------- */
.notice {
  border: 1px dashed rgba(255, 255, 255, .35);
  padding: 24px 26px; margin: 0 0 40px; font-size: 14px;
  background: rgba(0, 0, 0, .18);
}
.notice h2 { font-size: 15px; letter-spacing: .1em; margin: 0 0 10px; }
.notice p:last-child { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 979px) {
  .title-header { font-size: 75px; line-height: 65px; }
  .credits { grid-template-columns: 1fr; gap: 0; }
  .credits .col-studio, .credits .col-director { margin-top: 10px; opacity: .85; }
}
@media (max-width: 767px) {
  .site-header { padding: 20px 0 30px; }
  .site-header .container { justify-content: flex-end; padding-left: 100px; }
  .rabbit { width: 78px; }
  .title-header { font-size: 45px; line-height: 45px; margin-bottom: 30px; }
  .nav-toggle { display: block; }
  .main-nav > ul {
    display: none; position: absolute; right: 20px; top: 100%;
    flex-direction: column; gap: 0; min-width: 200px; padding: 10px 0;
    background: rgba(20, 28, 36, .97); z-index: 50;
  }
  .main-nav.is-open > ul { display: flex; }
  .main-nav > ul > li > a { display: block; padding: 9px 18px; }
  .main-nav .sub-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    background: none; padding: 0 0 6px; margin: 0;
  }
  .main-nav .sub-menu a { padding-left: 34px; opacity: .85; }
  .lightbox { padding: 50px 12px; }
  .alignleft { float: none; margin: 0 0 20px; }
}

/* ---------- Movies / Commercials tile grids ---------- */
.tile-grid { display: grid; gap: 26px; }
.tile-grid.posters { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.tile-grid.logos   { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tile { margin: 0; }
.tile img {
  display: block; width: 100%; background: rgba(0,0,0,.25);
  transform: scale(1) rotate(0deg);
  transition: transform .5s ease, opacity .3s ease;
}
.tile-grid.posters img { aspect-ratio: 2 / 3;  object-fit: cover; }
.tile-grid.logos   img { aspect-ratio: 1 / 1;  object-fit: contain; padding: 10px; }
/* posters get the same turn as the Services tiles */
.tile-grid.posters .tile:hover img { transform: scale(1.33) rotate(10deg); }
/* brand marks just lift — rotating a logo reads as a mistake */
.tile-grid.logos .tile:hover img { opacity: .82; transform: translateY(-3px); }
.tile figcaption {
  padding: 9px 0 0; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: #fff; line-height: 1.35;
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-item img, .tile img { transition: none; }
  .portfolio-item button.thumb:hover img,
  .tile-grid.posters .tile:hover img { transform: none; }
}

/* ---------- Display face weight ----------
   "The Great Thunder" ships a single 400 weight. The heading rule above asks
   for 700, which outranks the `font:` shorthand on these selectors, so the
   browser synthesises bold — mechanically dilating every glyph and turning the
   fine splatter into blocky specks. Pin the real weight and forbid synthesis.
   (The WordPress theme avoided this by accident: its title rule came *after*
   the 700 rule at equal specificity, so it won on source order.) */
h1.title-header,
.content h2.lead-name,
.content .resume-block h2,
.bio-body .dropcap-para::first-letter {
  font-weight: 400;
  font-synthesis: none;
}
