/* -------------------------------------------------- */
/* RESET & BASE                                       */
/* -------------------------------------------------- */

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

:root {
  --bg: #070711;
  --bg-soft: #0b0b18;
  --bg-elevated: #0f0f1c;
  --text: #f5f5f5;
  --muted: #a5a5b5;
  --accent: #f4a84a;
  --accent-soft: rgba(244, 168, 74, 0.18);
  --border-soft: rgba(255, 255, 255, 0.07);
}

html,
body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0a0a0a url("../images/Bokeh_Main_Page_Poster.jpg") center / cover fixed no-repeat;
  color: var(--text);
  line-height: 1.6;
}

/* -------------------------------------------------- */
/* HERO AREA                                          */
/* -------------------------------------------------- */

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  cursor: pointer;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  background: #000;
}

.hero-black {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 2;
  opacity: 1;
  transition: opacity 1.6s ease-out;
}

.hero-black--fade {
  opacity: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 65%, rgba(0,0,0,0.5), transparent 55%),
    linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 48%, rgba(0,0,0,0) 72%),
    linear-gradient(to top, rgba(0,0,0,0.55), transparent 40%);
  z-index: 3;
}

.hero-inner {
  position: absolute;
  inset: 0;
  padding: 8vw 6vw;
  z-index: 4;
  pointer-events: none;
}

/* -------------------------------------------------- */
/* HERO LOGO                                          */
/* -------------------------------------------------- */

.hero-logo {
  position: absolute;
  top: 5vh;
  left: 6vw;
  display: block;
  opacity: 0;
  pointer-events: auto;
  text-decoration: none;
  transition: opacity 1.5s ease, transform 0.3s ease;
}

.hero-logo.visible {
  opacity: 0.95;
}

.hero-logo:hover {
  transform: translateY(-1px);
}

.hero-logo-img {
  display: block;
  height: 230px;
  width: auto;
}

/* no-op: JS still adds this class, keep it harmless */
.hero-logo-bubble {}

/* -------------------------------------------------- */
/* HERO INTRO LINES                                   */
/* -------------------------------------------------- */

.hero-line {
  position: absolute;
  opacity: 0;
  font-weight: 300;
  letter-spacing: 0.01em;
  transition: opacity 1.2s ease;
  max-width: 28rem;
}

.hero-line.visible {
  opacity: 1;
}

.hero-line-1 {
  right: 8vw;
  bottom: 16vh;
  text-align: right;
  font-size: clamp(1.2rem, 2.4vw, 2rem);
}

.hero-line-2 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: clamp(1.3rem, 2.8vw, 2.2rem);
}

.hero-line-3 {
  top: 40%;
  left: 69%;
  transform: translate(-50%, -50%);
  text-align: left;
  max-width: 32rem;
  font-size: clamp(1.2rem, 2.6vw, 2rem);
}

/* HERO SKIP BUTTON */

.hero-skip {
  position: absolute;
  bottom: 4vh;
  right: 6vw;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.4rem 1.2rem;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.8s ease, color 0.25s ease, border-color 0.25s ease;
}

.hero-skip.visible {
  opacity: 1;
}

.hero-skip:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* -------------------------------------------------- */
/* MAIN LAYOUT                                        */
/* -------------------------------------------------- */

main {
  background: transparent;
}

.section {
  padding: 4.5rem 1.5rem 3.75rem;
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.section h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.section p {
  color: var(--muted);
}

/* ABOUT — dark with subtle warm bokeh accent */

.section-about {
  border-top: 1px solid var(--border-soft);
  position: relative;
  background: rgba(10, 10, 10, 0.85);
}

.about-inner {
  max-width: 780px;
  margin-left: auto;
  margin-right: 6vw;
}

.section-about p + p {
  margin-top: 0.8rem;
}

/* -------------------------------------------------- */
/* SERVICES                                           */
/* -------------------------------------------------- */

.section-services {
  border-top: 1px solid var(--border-soft);
  position: relative;
  background: rgba(10, 10, 10, 0.85);
}

.section-services .section-inner {
  position: relative;
  z-index: 1;
}

.section-intro {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.service-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  position: relative;
  padding: 1.6rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border-soft);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.14), rgba(0,0,0,0.95)),
    linear-gradient(135deg, rgba(244,168,74,0.08), transparent 55%);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-soft);
  box-shadow: 0 24px 45px rgba(0,0,0,0.75);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.18), rgba(0,0,0,0.94)),
    linear-gradient(135deg, rgba(244,168,74,0.16), transparent 60%);
}

.service-card-media {
  position: relative;
  height: 160px;
  margin: -1.6rem -1.6rem 1.1rem;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(1.3);
}

.service-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(3,3,8,0.05), rgba(3,3,8,0.7));
}

.service-card-body {
  position: relative;
  z-index: 1;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.service-card p {
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
}

.service-card ul {
  list-style: none;
  padding-left: 0;
  font-size: 0.85rem;
}

.service-card li + li {
  margin-top: 0.3rem;
}

/* Service card specific imagery */
.service-card--vp .service-card-media {
  background-image: url("../images/Tales_of_the_Unexpected.jpg");
}

.service-card--splat .service-card-media {
  background-image: url("../images/ces_radiancefields_hero.png");
}

.service-card--ai .service-card-media {
  background-image: url("../images/Planet_of_the_Apes_Andy_Serkis.jpg");
}

/* -------------------------------------------------- */
/* CASE STUDIES — CINEMATIC FILM-POSTER CARDS         */
/* -------------------------------------------------- */

.section-case-studies {
  border-top: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.85);
}

.case-study-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.case-study-card {
  position: relative;
  display: block;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  text-decoration: none;
  color: inherit;
  aspect-ratio: 3 / 4;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.7);
  transition:
    transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.case-study-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(244, 168, 74, 0.3);
  border-color: rgba(244, 168, 74, 0.5);
}

.case-study-img {
  position: absolute;
  inset: 0;
}

.case-study-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.case-study-card:hover .case-study-img img {
  transform: scale(1.04);
}

.case-study-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 1.8rem 1.8rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%);
}

.case-study-overlay h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  color: #fff;
}

.case-study-overlay p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.6rem;
  max-width: 32rem;
}

.case-study-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

/* OPENCLAW DARK CARD */

.case-study-card--openclaw .case-study-img {
  background:
    radial-gradient(circle at 20% 30%, rgba(244, 168, 74, 0.12), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(244, 168, 74, 0.06), transparent 50%),
    linear-gradient(135deg, #0a0a14 0%, #0d0d1a 40%, #08080f 100%);
}

.case-study-card--openclaw:hover .case-study-img {
  background:
    radial-gradient(circle at 20% 30%, rgba(244, 168, 74, 0.18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(244, 168, 74, 0.10), transparent 50%),
    linear-gradient(135deg, #0c0c18 0%, #10101f 40%, #0a0a12 100%);
}

/* -------------------------------------------------- */
/* SECTION DIVIDER — AMBER GRADIENT LINE              */
/* -------------------------------------------------- */

.section-divider {
  height: 1px;
  max-width: 200px;
  margin: 0 auto;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0.4;
}

/* -------------------------------------------------- */
/* RECENT WORK — PORTFOLIO GRID                       */
/* -------------------------------------------------- */

.section-recent-work {
  border-top: none;
  position: relative;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.85);
}

.recent-work-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.8rem;
}

.recent-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: radial-gradient(circle at top, #141420, #08080e 70%);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.recent-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.7);
  border-color: rgba(244, 168, 74, 0.35);
}

.recent-card-media {
  height: 140px;
  overflow: hidden;
  position: relative;
}

.recent-card-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent, rgba(8, 8, 14, 0.85));
}

.recent-card-img {
  height: 360px;
  overflow: hidden;
  position: relative;
}

.recent-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recent-card-img::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent, rgba(8, 8, 14, 0.85));
}

.recent-card-placeholder {
  height: 140px;
  background: radial-gradient(circle at 50% 55%, #14141f, #08080e);
  position: relative;
}

.recent-card-placeholder::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 38px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: rgba(244, 168, 74, 0.12);
  box-shadow: 0 0 30px rgba(244, 168, 74, 0.06);
}

.recent-card-body {
  padding: 1rem 1.2rem 1.1rem;
}

.recent-card-body h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.recent-card-body p {
  font-size: 0.85rem;
}

/* Coming soon placeholder cards */

.recent-card--coming {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 18, 0.6);
  cursor: default;
}

.recent-card--coming:hover {
  transform: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.06);
}

.recent-card--coming p {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.2);
}

/* -------------------------------------------------- */
/* SCROLL FADE-IN                                     */
/* -------------------------------------------------- */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------- */
/* AMBIENT BOKEH PARTICLES (CSS-ONLY)                 */
/* -------------------------------------------------- */

.bokeh-bg {
  position: relative;
  overflow: hidden;
}

.bokeh-bg::before,
.bokeh-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
}

.bokeh-bg::before {
  width: 260px;
  height: 260px;
  top: 15%;
  right: -60px;
  background: radial-gradient(circle, rgba(244, 168, 74, 0.06) 0%, transparent 70%);
  animation: bokehDrift1 28s ease-in-out infinite alternate;
  opacity: 1;
}

.bokeh-bg::after {
  width: 180px;
  height: 180px;
  bottom: 20%;
  left: -40px;
  background: radial-gradient(circle, rgba(244, 168, 74, 0.04) 0%, transparent 70%);
  animation: bokehDrift2 34s ease-in-out infinite alternate;
  opacity: 1;
}

@keyframes bokehDrift1 {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-30px, 20px); }
  100% { transform: translate(15px, -15px); }
}

@keyframes bokehDrift2 {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(25px, -18px); }
  100% { transform: translate(-10px, 12px); }
}

/* -------------------------------------------------- */
/* CONTACT                                            */
/* -------------------------------------------------- */

.section-contact {
  border-top: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.80);
  padding-bottom: 5.5rem;
}

.section-contact .section-inner {
  position: relative;
  z-index: 1;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #05050a;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.5);
  background: #ffc676;
  border-color: #ffc676;
}

/* -------------------------------------------------- */
/* FOOTER                                             */
/* -------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.8rem;
  opacity: 0.75;
  background: #020208;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  margin-left: 1rem;
  position: relative;
}

.site-footer a:first-child {
  margin-left: 0;
}

.site-footer a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.18s ease;
}

.site-footer a:hover::after {
  width: 100%;
}

/* FOOTER SOCIAL ICONS */

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
  margin-left: 0;
}

.footer-social a::after {
  display: none;
}

.footer-social a:hover {
  color: var(--accent);
}

/* -------------------------------------------------- */
/* HERO NAV — FROSTED GLASS PILL BAR                  */
/* -------------------------------------------------- */

.hero-bokeh-menu {
  position: absolute;
  bottom: 8vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-bokeh-menu.interactive {
  opacity: 1;
  pointer-events: auto;
}

.hero-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.45rem 0.5rem;
  border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 10, 20, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.hero-nav-link {
  position: relative;
  padding: 0.4rem 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.hero-nav-link:hover {
  color: #fff;
}

.hero-nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.15rem;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.hero-nav-link:hover::after {
  transform: scaleX(1);
}

/* NAV SOCIAL ICONS */

.hero-nav-sep {
  display: block;
  width: 1px;
  height: 16px;
  margin: 0 0.3rem;
  background: rgba(255, 255, 255, 0.15);
}

.hero-nav-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.35rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero-nav-social:hover {
  color: var(--accent);
}

/* -------------------------------------------------- */
/* HERO HAMBURGER + MOBILE OVERLAY                    */
/* -------------------------------------------------- */

.hero-hamburger {
  display: none;
  position: absolute;
  bottom: 8vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(10, 10, 20, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.hero-hamburger.interactive {
  opacity: 1;
  pointer-events: auto;
}

.hero-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 1px;
}

.hero-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  background: rgba(5, 5, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.hero-mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.hero-mobile-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mobile-link {
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.18em;
}

.hero-mobile-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.hero-mobile-link:hover::after {
  transform: scaleX(1);
}

/* MOBILE SOCIAL ICONS */

.hero-mobile-social {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 1rem;
}

.hero-mobile-social a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero-mobile-social a:hover {
  color: var(--accent);
}

/* -------------------------------------------------- */
/* INNER PAGE HEADER (TRAINING, ETC.)                 */
/* -------------------------------------------------- */

.page-training .hero {
  display: none;
}

.inner-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: radial-gradient(circle at top, #121220 0%, #05050b 60%, #020207 100%);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.inner-header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.inner-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.16), rgba(0,0,0,0.7));
  box-shadow:
    0 12px 28px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.08);
}

.inner-nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  font-size: 0.85rem;
}

.inner-nav a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.inner-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.18s ease;
}

.inner-nav a:hover::after {
  width: 100%;
}

.inner-nav a.active {
  color: var(--text);
}

.inner-nav a.active::after {
  width: 100%;
}

/* -------------------------------------------------- */
/* TRAINING PAGE STYLES                               */
/* -------------------------------------------------- */

.section-training-hero {
  padding-top: 4.5rem;
  background:
    radial-gradient(circle at top left, rgba(244,168,74,0.18), transparent 35%),
    url("../images/LED_VOLUME_DESERT.png"),
    radial-gradient(circle at bottom right, rgba(0,0,0,0.9), #05050d 50%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.training-haze {
  padding: 2rem 2.4rem;
  border-radius: 1.2rem;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    0 18px 48px rgba(0,0,0,0.75),
    0 0 0 1px rgba(255,255,255,0.08);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.training-hero-inner h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.training-hero-lede {
  font-size: 1.02rem;
  margin-bottom: 0.9rem;
}

.training-hero-sub {
  max-width: 44rem;
  color: #fff8dd;
}

.section-training-experience p + p {
  margin-top: 0.75rem;
}

/* Background for the four program cards */

.section-training-programs {
  border-top: 1px solid var(--border-soft);
  background: radial-gradient(circle at top, #10101c, var(--bg-soft) 55%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

/* NIGHT STAGE image + glows */
.section-training-programs::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("../images/TRAINING_STAGE_NIGHT.png") center/cover no-repeat,
    radial-gradient(circle at 12% 0%, rgba(244,168,74,0.18), transparent 55%),
    radial-gradient(circle at 88% 100%, rgba(120,196,255,0.14), transparent 55%);
  opacity: 0.55;
  pointer-events: none;
}

.section-training-programs .section-inner {
  position: relative;
  z-index: 1;
}

.training-grid {
  display: grid;
  gap: 1.6rem;
  margin-top: 2.1rem;
}

/* Floating glass cards – FIXED HEIGHT, soft hover */

.training-card {
  position: relative;
  border-radius: 1.25rem;
  border: 1px solid var(--border-soft);
  padding: 1.5rem 1.7rem 1.4rem;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.12), rgba(0,0,0,0.96)),
    linear-gradient(135deg, rgba(244,168,74,0.14), transparent 60%);
  box-shadow: 0 18px 40px rgba(0,0,0,0.7);
  overflow: hidden;

  /* fixed height so no layout jump */
  min-height: 230px;

  transition:
    transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.38s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.38s cubic-bezier(0.22, 0.61, 0.36, 1),
    background 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
  animation: floatA 38s ease-in-out infinite alternate;
}

/* Photo layer */

.training-card::before {
  content: "";
  position: absolute;
  inset: -4%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.7;
  filter: saturate(1.2) contrast(1.1);
  z-index: 0;
}

/* Vignette */

.training-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(0,0,0,0.25), transparent 55%),
    linear-gradient(to bottom, rgba(0,0,0,0.30), rgba(0,0,0,0.75));
  z-index: 1;
}

/* Content above overlays */

.training-card > * {
  position: relative;
  z-index: 2;
}

/* Hover: pause float + gentle lift */

.training-card:hover {
  animation-play-state: paused;
  transform: translate3d(0, -8px, 0);
  box-shadow: 0 26px 54px rgba(0,0,0,0.95);
  border-color: rgba(244,168,74,0.55);
}

/* Image mapping */

.training-card--vp::before {
  background-image: url("../images/TRAINING_STAGE.png");
}

.training-card--splat::before {
  background-image: url("../images/TRAINING_SPLAT.png");
}

.training-card--robotics::before {
  background-image: url("../images/TRAINING_ROBOT.png");
}

.training-card--ai::before {
  background-image: url("../images/TRAINING_OFFICE.png");
}

/* Staggered float per card */

.training-card--vp {
  animation: floatA 40s ease-in-out infinite alternate;
}

.training-card--splat {
  animation: floatB 42s ease-in-out infinite alternate;
}

.training-card--robotics {
  animation: floatC 44s ease-in-out infinite alternate;
}

.training-card--ai {
  animation: floatD 46s ease-in-out infinite alternate;
}

/* Yellow tag headings */

.training-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.95;
  margin-bottom: 0.55rem;
}

.training-card-tag::before {
  content: "";
  width: 20px;
  height: 1px;
  background: linear-gradient(to right, rgba(244,168,74,0.15), rgba(244,168,74,0.9));
}

/* Hide white duplicate <h3> heading */

.training-card h3 {
  display: none;
}

/* Text reveal – opacity only (no height changes) */

.training-card p {
  font-size: 0.92rem;
  margin-bottom: 0.7rem;
}

.training-card p:not(.training-card-tag) {
  opacity: 0.0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.training-card ul {
  list-style: none;
  padding-left: 0;
  font-size: 0.85rem;
  opacity: 0.0;
  transform: translateY(6px);
  transition: opacity 0.35s ease 0.04s, transform 0.35s ease 0.04s;
}

.training-card li + li {
  margin-top: 0.3rem;
}

.training-card:hover p:not(.training-card-tag),
.training-card:hover ul {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------- */
/* WHO THIS IS FOR – INTERACTIVE AUDIENCE SECTION     */
/* -------------------------------------------------- */

.section-training-audience {
  border-top: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(to bottom, #05050b 0%, #05050d 55%, #020208 100%);
}

/* Stage-style background under the copy */
.section-training-audience::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("../images/Jenson_Stage_CES_Atrium.jpg") center/cover no-repeat,
    radial-gradient(circle at 12% 0%, rgba(244,168,74,0.16), transparent 55%),
    radial-gradient(circle at 88% 100%, rgba(120,196,255,0.15), transparent 60%);
  opacity: 0.3;
  mix-blend-mode: screen;
  pointer-events: none;
}

.section-training-audience .section-inner {
  position: relative;
  z-index: 1;
}

/* Glass card around audience content */

.audience-shell {
  padding: 2rem 2.3rem;
  border-radius: 1.3rem;
  background: rgba(3,3,10,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 22px 52px rgba(0,0,0,0.9);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Turn the UL into interactive tags */

.training-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.training-list li {
  position: relative;
  padding: 0.55rem 0.85rem 0.55rem 1.1rem;
  border-radius: 999px;
  background: radial-gradient(circle at 0% 50%, rgba(244,168,74,0.35), rgba(10,10,20,0.9));
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
  color: #fff9e6;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    opacity 0.18s ease;
}

.training-list li::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(244,168,74,0.8);
}

.training-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.8);
  border-color: rgba(244,168,74,0.75);
  background: radial-gradient(circle at 0% 50%, rgba(244,168,74,0.65), rgba(10,10,20,0.98));
}

.training-list li.audience-active {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.9);
  border-color: rgba(244,168,74,0.95);
}

/* Dynamic panel that updates as you hover different lines */

.audience-panel {
  margin-top: 1.6rem;
  padding: 1.2rem 1.4rem 1.3rem;
  border-radius: 1.1rem;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.16), rgba(5,5,12,0.98));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.55);
}

.audience-panel-label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.audience-panel-text {
  font-size: 0.95rem;
  color: #fef7e4;
}

/* -------------------------------------------------- */
/* TRAINING – FORMATS / OUTCOMES (DEFAULT)            */
/* -------------------------------------------------- */

.section-training-formats {
  border-top: 1px solid var(--border-soft);
}

.training-outcome {
  margin-top: 1.15rem;
  font-size: 0.98rem;
}

/* Cinematic floating keyframes */

@keyframes floatA {
  0%   { transform: translate3d(0, 0, 0); }
  30%  { transform: translate3d(-10px, -8px, 0); }
  60%  { transform: translate3d(8px, 12px, 0); }
  100% { transform: translate3d(0, 6px, 0); }
}

@keyframes floatB {
  0%   { transform: translate3d(0, 0, 0); }
  25%  { transform: translate3d(12px, -10px, 0); }
  55%  { transform: translate3d(-8px, 10px, 0); }
  100% { transform: translate3d(4px, 2px, 0); }
}

@keyframes floatC {
  0%   { transform: translate3d(0, 0, 0); }
  35%  { transform: translate3d(-12px, 10px, 0); }
  70%  { transform: translate3d(10px, -8px, 0); }
  100% { transform: translate3d(0, 6px, 0); }
}

@keyframes floatD {
  0%   { transform: translate3d(0, 0, 0); }
  40%  { transform: translate3d(10px, 12px, 0); }
  80%  { transform: translate3d(-12px, -8px, 0); }
  100% { transform: translate3d(-4px, 4px, 0); }
}

/* -------------------------------------------------- */
/* ARTICLE / CASE STUDY PAGE                          */
/* -------------------------------------------------- */

.article-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  background: radial-gradient(ellipse at center, rgba(8, 8, 12, 0.75) 0%, rgba(8, 8, 12, 0.65) 70%, rgba(8, 8, 12, 0) 100%);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.article-content h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.article-content .article-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-soft);
}

.article-content h2 {
  font-size: 1.5rem;
  margin-top: 2.8rem;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.article-content h3 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  color: var(--accent);
}

.article-content p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.article-content strong {
  color: var(--text);
}

.article-content ul,
.article-content ol {
  color: var(--muted);
  margin-bottom: 1rem;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.article-content li + li {
  margin-top: 0.3rem;
}

.article-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0.3;
  margin: 2.5rem 0;
}

.article-content pre {
  background: #0c0c18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.6rem;
  padding: 1.2rem 1.4rem;
  overflow-x: auto;
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.article-content code {
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 0.85em;
  color: #e8c47a;
}

.article-content pre code {
  color: #d4d4d4;
  font-size: 1em;
}

.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.2rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
}

/* -------------------------------------------------- */
/* RESPONSIVE                                         */
/* -------------------------------------------------- */

@media (min-width: 768px) {
  .section {
    padding: 5rem 2rem 4.25rem;
  }

  .service-grid {
    grid-template-columns: repeat(3,1fr);
  }

  .case-study-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .recent-work-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section {
    padding: 5.5rem 2rem 4.75rem;
  }

  .training-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 600px) {
  .hero-inner {
    padding: 10vh 6vw 8vh;
  }

  .hero-logo {
    top: 4vh;
    left: 6vw;
  }

  .hero-line-1 {
    right: 6vw;
    left: 6vw;
    text-align: left;
    bottom: 18vh;
  }

  .hero-line-2 {
    font-size: 1.4rem;
  }

  .hero-line-3 {
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: left;
  }

  .section {
    padding: 3.75rem 1.4rem 3.25rem;
  }

  .about-inner {
    margin-right: auto;
    margin-left: auto;
    padding: 2rem 1.7rem;
  }

  .hero-nav {
    display: none;
  }

  .hero-hamburger {
    display: flex;
  }

  .service-card-media {
    height: 140px;
  }

  .case-study-card {
    aspect-ratio: 4 / 5;
  }

  .recent-card-media,
  .recent-card-img,
  .recent-card-placeholder {
    height: 120px;
  }

  /* disable bokeh particles on mobile for performance */
  .bokeh-bg::before,
  .bokeh-bg::after {
    display: none;
  }

  .inner-header-inner {
    padding: 0.8rem 1.2rem;
  }

  .inner-nav {
    gap: 0.9rem;
    font-size: 0.78rem;
  }

  .training-hero-inner h1 {
    font-size: 1.8rem;
  }

  .audience-shell {
    padding: 1.7rem 1.6rem;
  }
}
