/* ===== newstyle_full.css - concatenated full stylesheet ===== */


/* --- BEGIN: /mnt/data/newstyle.css (current newstyle) --- */

:root{
      --nav-h: 96px; /* fixed header height */
      --hero-fit: cover; /* cover = fill (crop). Switch to 'contain' for no crop */
      /* Hero width/height controls */
      --hero-scale-x: 1.02;  /* increase to widen, e.g., 1.10 = 110% width */
      --hero-scale-y: 1.02;  /* keep as is, or tweak height if needed */
      --hero-offset-x: 0px;  /* optional: nudge left/right */
      --hero-offset-y: 0px;  /* optional: nudge up/down  */
      --hero-zoom: 1.02;
      /* Max content width: good on 1920p and 2K without looking too narrow or too stretched */
      --container-max: 1440px;
      --container-pad: 1.5rem;
    }
    html, body { background:#000; margin:0; padding:0; overflow-x:hidden; }
    *, *::before, *::after{ box-sizing: border-box; }
    body {
      font-family: 'Montserrat', sans-serif;
      scroll-behavior: smooth;
      color: #ffffff;
    }
    /* Centered responsive container */
    .container-resp{
      width: min(100%, var(--container-max));
      margin-left: auto;
      margin-right: auto;
      padding-left: var(--container-pad);
      padding-right: var(--container-pad);
    }

    /* Header uses full width so logo and menu sit near screen corners */
    .container-header{
      width: 100%;
      max-width: none;
      margin-left: auto;
      margin-right: auto;
      padding-left: var(--container-pad);
      padding-right: var(--container-pad);
    }

    /* Keep original for content sections */
    

    /* HERO video visible */
    .hero-stage{ position:absolute; inset:0; overflow:hidden; }
    .hero-video-bg{
      position:absolute; inset:-1px;
      width:calc(100% + 2px); height:calc(100% + 2px);
      object-fit:cover; filter: blur(18px) brightness(0.85) saturate(0.95);
      transform: scale(1.08); transform-origin:center;
      z-index:0; background:#000; display:block;
    }
    .hero-video-fore{
      position:absolute; inset:0;
      width:100%; height:100%;
      object-fit: cover; object-position:center;
      /* upward bias + gentle zoom so top area is favored */
      --hero-zoom: 1.10;
      --hero-shift-y: -6%;
      transform: translateY(var(--hero-shift-y)) scale(var(--hero-zoom));
      transform-origin: center;
      z-index:1; background: transparent; display:block;
    }
    .loader {
      border: 3px solid #f3f3f3;
      border-top: 3px solid #000000;
      border-radius: 50%;
      width: 20px;
      height: 20px;
      animation: spin 1s linear infinite;
      display: none;
    }
    @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

    .headline { letter-spacing: .12em; text-transform: uppercase; }
    .subhead  { opacity: .9; }
    .btn-pill { border-radius: 9999px; }

    /* Partner marquee */
    .marquee-container { 
      display: flex; 
      overflow: hidden; 
      gap: 4rem;
      mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
      -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    }
    .marquee-group {
      display: flex;
      align-items: center;
      gap: 4rem;
      min-width: 100%;
      flex-shrink: 0;
      animation: scroll-x 30s linear infinite;
    }
    .marquee-container:hover .marquee-group { animation-play-state: paused; }
    .marquee-reverse .marquee-group { animation-direction: reverse; }
    @keyframes scroll-x {
      from { transform: translateX(0); }
      to   { transform: translateX(-100%); }
    }
    .partner-logo {
      height: 48px;
      width: auto;
      opacity: 0.9;
      filter: saturate(0.9) brightness(0.95);
      transition: transform 0.2s ease, opacity 0.2s ease;
    }
    .partner-logo:hover { transform: scale(1.05); opacity: 1; }
    @media (min-width: 768px) {
      .partner-logo { height: 56px; }
    }

    /* float animation for about images */
    @keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
    .animate-float { animation: floatY 6s ease-in-out infinite; will-change: transform; }

    /* Typography tweak */
    html, body {
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      font-feature-settings: "liga" 1, "kern" 1, "tnum" 0;
    }
    .font-orbitron {
      font-family: "Orbitron", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
      letter-spacing: 0.02em;
    }

    /* Aspect-ratio helpers (avoid stretching cards/posters) */
    .ratio-2-3 { position: relative; width: 100%; padding-top: 150%; }
    .ratio-16-9 { position: relative; width: 100%; padding-top: 56.25%; }
    .ratio-1-1  { position: relative; width: 100%; padding-top: 100%; }
    .ratio-2-3 > img,
    .ratio-16-9 > img,
    .ratio-1-1  > img { position: absolute; inset:0; width:100%; height:100%; object-fit: cover; transform: translate(var(--hero-offset-x), var(--hero-offset-y)) scaleX(var(--hero-scale-x)) scaleY(var(--hero-scale-y)); transform-origin: center center; }

    /* Brand animation (kept) */
    .brand-anim{
      position: relative;
      display: inline-block;
      background: linear-gradient(#054C5B);
      background-size: 300% 100%;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    
    }
    @keyframes brandGradient{ 0%{background-position: 0% 50%} 100%{background-position: 100% 50%} }
    @keyframes brandGlow{ 0%,100%{ filter: drop-shadow(0 0 0px rgba(255,255,255,0)); } 50%{ filter: drop-shadow(0 0 14px rgba(255,255,255,.65)) blur(.3px); } }
    .brand-anim::after{
      content: attr(data-text);
      position: absolute; inset: 0;
      color: #ffffff;
      filter: blur(2px);
      opacity: 0;
      pointer-events: none;
      animation: brandWhiteBloom 3s ease-in-out infinite;
    }
    @keyframes brandWhiteBloom{ 0%,100%{ opacity: 0; } 50%{ opacity: .9; } }
  
    @media (max-width: 768px){
      :root{
      --nav-h: 96px; /* fixed header height */
      --hero-fit: cover; /* cover = fill (crop). Switch to 'contain' for no crop */
      /* Hero width/height controls */
      --hero-scale-x: 1.02;  /* increase to widen, e.g., 1.10 = 110% width */
      --hero-scale-y: 1.02;  /* keep as is, or tweak height if needed */
      --hero-offset-x: 0px;  /* optional: nudge left/right */
      --hero-offset-y: 0px;  /* optional: nudge up/down  */
      --hero-zoom: 1.02; --hero-zoom: 1.0; } /* don't over-zoom on phones */
    }
    

    /* Respect reduced motion */
    @media (prefers-reduced-motion: reduce) {
      .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    }

    .reveal {
      opacity: 0;
      transform: translateY(20px);
      transition:
        opacity 700ms ease,
        transform 700ms ease;
      transition-delay: var(--reveal-delay, 0ms);
      will-change: opacity, transform;
    }
    .reveal.is-visible { opacity: 1; transform: none; }

    /* Variants */
    .reveal[data-reveal="fade"]      { transform: none; }
    .reveal[data-reveal="fade-up"]   { transform: translateY(24px); }
    .reveal[data-reveal="fade-down"] { transform: translateY(-24px); }
    .reveal[data-reveal="slide-left"]  { transform: translateX(28px); }
    .reveal[data-reveal="slide-right"] { transform: translateX(-28px); }
    .reveal[data-reveal="zoom-in"]   { transform: scale(0.94); }

    /* Stagger helper: children with .reveal inside a [data-stagger] parent get cascading delays */
    [data-stagger] > .reveal { transition-delay: calc(var(--reveal-delay, 0ms) + (var(--i, 0) * 90ms)); }
  
    
    

    .logo-only{ image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; }
    @media (min-width: 1024px){ #navbar{ padding-top: 2px; padding-bottom: 2px; } }
  

    [id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
  

    :root{
      /* spacing between logo block and FILAMENTS */
      --logo-word-gap: 0rem; /* change to 0rem, .25rem, 1rem, etc. */

      /* FILAMENTS wordmark controls */
      --word-x: -50px;   /* +right / -left */
      --word-y: 0px;   /* +down / -up */
      --word-scale: 1; /* resize wordmark */

      /* ⬇️ MASTER controls for the whole logo+tagline block */
      --logo-x: 0px;      /* +right / -left */
      --logo-y: 0px;      /* +down  / -up  */
      --logo-scale: 1;    /* 1 = 100%, 1.15 = 115% */
    }

    /* Move + scale the entire block (logo + tagline) */
    #navbar .flex.items-center > .flex-col:first-child{
      position: relative;
      transform: translate(var(--logo-x), var(--logo-y)) scale(var(--logo-scale));
      transform-origin: left top;
      will-change: transform;
    }

    /* Fine-nudge ONLY the logo image */
    #navbar img.logo-only{
      position: relative;
      top: 0px;    /* +down / -up */
      left: 0px;   /* +right / -left */
    }

    /* Fine-nudge ONLY the tagline under the logo */
    #navbar .flex.items-center > .flex-col:first-child > div{
      position: relative;
      top: 0px;    /* +down / -up */
      left: 0px;   /* +right / -left */
      text-align: center;
    }
  
    
    /* Control spacing between logo block and FILAMENTS */
    #navbar .flex.items-center {
      column-gap: var(--logo-word-gap);
      align-items: center;
    }
    
    
    /* Move/scale the FILAMENTS wrapper (affects layout vs flex gap) */
    #navbar .flex.items-center > .hidden.sm\:block{
      position: relative;
      left: var(--word-x);
      top: var(--word-y);
      transform: scale(var(--word-scale));
      transform-origin: left center;
      will-change: transform;
    }
    

    .tagline-wrap{ display:inline-block; white-space:nowrap; position:relative; }
    .tagline-type{
      color:#e5e7eb;
      text-transform: uppercase;
      letter-spacing: 0.25em;
    }

    /* Subtle letter bounce */


/* Center a single child inside any grid marked .cards-grid */
.cards-grid > *:only-child {
  justify-self: center;   /* centers the lone card */
}

/* Make sure multiple cards stick to the top edge */
.cards-grid { align-items: start; }

/* === Auto-changing rainbow glow for 'RECENT' badge === */
.recent-badge{
  position:absolute;
  top:10px;
  right:10px;
  padding:6px 10px;
  border-radius:9999px;
  background:rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  line-height:1;
  pointer-events:none;            /* purely decorative */
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.recent-badge .recent-text {
  -webkit-text-stroke: 0.8px #000;
  text-shadow:
    0 0 3px rgba(0,0,0,0.8),
    0 0 6px rgba(0,0,0,0.6);
}

@keyframes recentColorGlow {
  0%   { color:#3b82f6; text-shadow: 0 0 6px rgba(59,130,246,.9), 0 0 14px rgba(59,130,246,.6); }
  25%  { color:#ffffff; text-shadow: 0 0 6px rgba(255,255,255,.9), 0 0 14px rgba(255,255,255,.6); }
  50%  { color:#ff9800; text-shadow: 0 0 6px rgba(255,152,0,.9), 0 0 14px rgba(255,152,0,.6); }
  75%  { color:#5aff93; text-shadow: 0 0 6px rgba(90,255,147,.9), 0 0 14px rgba(90,255,147,.6); }
  100% { color:#3b82f6; text-shadow: 0 0 6px rgba(59,130,246,.9), 0 0 14px rgba(59,130,246,.6); }
}
  20%  { color:#ffd166; text-shadow: 0 0 6px rgba(255,209,102,.9), 0 0 14px rgba(255,209,102,.6); }
  40%  { color:#5aff93; text-shadow: 0 0 6px rgba(90,255,147,.9), 0 0 14px rgba(90,255,147,.6); }
  60%  { color:#57b5ff; text-shadow: 0 0 6px rgba(87,181,255,.9), 0 0 14px rgba(87,181,255,.6); }
  80%  { color:#c77dff; text-shadow: 0 0 6px rgba(199,125,255,.9), 0 0 14px rgba(199,125,255,.6); }
  100% { color:#ff5a5a; text-shadow: 0 0 6px rgba(255,90,90,.9), 0 0 14px rgba(255,90,90,.6); }
}


.recent-badge .recent-text {
  -webkit-text-stroke: 0.8px #000;
  text-shadow:
    0 0 3px rgba(0,0,0,0.8),
    0 0 6px rgba(0,0,0,0.6);
}


/* Force legibility on light/dark posters AND keep the loop */
.recent-badge .recent-text {
  -webkit-text-stroke: 1px rgba(0,0,0,0.95) !important;  /* thicker edge */
  text-shadow:
    0 0 2px rgba(0,0,0,0.9),
    0 0 6px rgba(0,0,0,0.7),
    0 1px 0 rgba(0,0,0,0.85),
    0 -1px 0 rgba(0,0,0,0.85),
    1px 0 0 rgba(0,0,0,0.85),
    -1px 0 0 rgba(0,0,0,0.85) !important;                 /* pseudo-outline via shadows */
  animation: recentColorGlow 6s ease-in-out infinite both !important;
}
/* Fix: banner text spacing under 'Stunning Visuals...' */
section.bg-fixed .container-resp h2 { margin-bottom: 2.25rem !important; }
section.bg-fixed .container-resp p  { margin-top: 0 !important; line-height: 1.65; }

#about h2 {
  line-height: 1.3;   /* default 1  gap */
  margin-bottom: 1.5rem; /* paragraph  spacing */
}
#portfolio a[href="#home"] {
  display: block;
  margin: 1.5rem auto 0 auto; /* auto = center horizontally */
  text-align: center;
  width: fit-content;         /* size auto */
}

.play-overlay{
  position:absolute; inset:0;
  margin:auto; width:86px; height:86px;
  border-radius:9999px; border:2px solid rgba(255,255,255,.7);
  background:rgba(0,0,0,.45);
  display:flex; align-items:center; justify-content:center;
  font-size:34px; color:#fff;
  cursor:pointer; transition:transform .15s ease, background .15s ease, opacity .2s;
}
.play-overlay:hover{ transform:scale(1.06); background:rgba(0,0,0,.6); }
.play-overlay.hidden{ opacity:0; pointer-events:none; }

.poster-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}
.poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.poster-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 25px rgba(0,0,0,0.6);
}
.poster-card:hover img {
  transform: scale(1.1);
}


/* Reset for TOP posters grid only (keep responsive 2:3) */
#portfolio .lg\:col-span-2 .ratio-2-3 {
  width: 100%;
  padding-top: 150% !important; /* back to aspect helper */
  height: auto;
}
#portfolio .lg\:col-span-2 .ratio-2-3 > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}


/* ✅ Only bottom grids (approved top grid untouched) */
/* Responsive poster sizing: allow grid to control card width so they don't overlap on small screens */

#portfolio .mt-12 .ratio-2-3,
#portfolio #more-projects .ratio-2-3 {
  width: 210px;              /* smaller to fit 6 cards without overlap */
  height: 300px;             /* proportional height */
  padding-top: 0 !important;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0.75rem;
  overflow: hidden;
}

/* Responsive tweak: allow larger cards on mobile (2 per row) */
@media (max-width: 768px) {
  #portfolio .mt-12 .ratio-2-3,
  #portfolio #more-projects .ratio-2-3 {
    width: 46%;
    height: auto;
  }
}


/* On narrow screens show two cards per row visually by limiting max-width to ~48% */
@media (max-width: 640px) {
  
#portfolio .mt-12 .ratio-2-3,
#portfolio #more-projects .ratio-2-3 {
  width: 210px;              /* smaller to fit 6 cards without overlap */
  height: 300px;             /* proportional height */
  padding-top: 0 !important;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0.75rem;
  overflow: hidden;
}

/* Responsive tweak: allow larger cards on mobile (2 per row) */
@media (max-width: 768px) {
  #portfolio .mt-12 .ratio-2-3,
  #portfolio #more-projects .ratio-2-3 {
    width: 46%;
    height: auto;
  }
}

}

#portfolio .mt-12 .ratio-2-3 > img,
#portfolio #more-projects .ratio-2-3 > img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}


/* FULL-BLEED (padding-aware) with 1px bleed to kill hairline */
.section-video{
  position: relative;
  overflow: hidden;

  /* add both side paddings + 2px fudge, then pull left incl. 1px */
  width: calc(100vw + (var(--container-pad, 1.5rem) * 7) + 10px);
  left: 50%;
  transform: translateX(calc(-50% - var(--container-pad, 1.5rem) - 6px));

  max-width: none;
  padding: 0;
  background:#000; /* fallback background at edges */
}

/* Bleed media & overlay 1px beyond to avoid right-edge line */
.section-video__media,
.section-video__overlay{
  position: absolute;
  inset: -1px;                  /* was: inset: 0; */
}

/* Media settings (keep your crop value as needed) */
.section-video__media{
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  background:#000; pointer-events:none; z-index:0;
  transform: scale(1.08);
  transform-origin: center;
}

/* Overlay stays same z-index */
.section-video__overlay{ background: rgba(0,0,0,.55); z-index:1; }

/* Content */
.section-video__content{ position:relative; z-index:2; }

/* Spacing */
.section-video #studio-feature-text h2{ margin-bottom:2.25rem; }
.section-video #studio-feature-text p { margin-top:0; line-height:1.65; }

/* LOADING PAGE */





/* === FIX: small screens par card/image/text overlap === */
.cards-grid { align-items: start; }
.cards-grid > * { min-width: 0; min-height: 0; }

.ratio-2-3, .ratio-16-9, .ratio-1-1 {
  overflow: hidden;
  border-radius: 0.75rem;
}
.ratio-2-3 > img, .ratio-16-9 > img, .ratio-1-1 > img {
  display: block;
  width: 100%; height: 100%; object-fit: cover;
}

.poster-caption,
.card .p-6,
.card .font-orbitron {
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: balance;
  line-height: 1.25;
}

@media (max-width: 480px){
  .poster-caption { font-size: 0.8rem; }
  .font-orbitron { font-size: clamp(0.95rem, 3.8vw, 1.1rem); }
}

.recent-badge { z-index: 1; pointer-events: none; }



/* appended logo patch */

/* === LOGO BREATHING ROOM PATCH ===
   Moves the logo slightly *down* so it no longer touches the top edge.
   Paste near the end of your style.css or replace with this file.
*/
@media (min-width: 768px) {
  /* master variable tweak (affects the logo block transform) */
  :root { --logo-y: 8px !important; } /* increase to 12px or 16px if you want more space */

  /* fine nudge only for the logo image to guarantee gap from top */
  #navbar img.logo-only {
    top: 8px !important;          /* pushes the image down inside its container */
    display: block !important;
  }

  /* ensure the parent container transform uses the updated variable */
  #navbar .flex.items-center > .flex-col:first-child {
    transform: translate(var(--logo-x), var(--logo-y)) scale(var(--logo-scale)) !important;
    transform-origin: left top !important;
  }

  /* if navbar height is limiting, add a tiny top padding so the content isn't clipped */
  #navbar { padding-top: 6px !important; padding-bottom: 6px !important; }
}

/* small-screen tweak: slightly smaller nudge so mobile layout stays tight */
@media (max-width: 767px) {
  :root { --logo-y: 4px !important; }
  #navbar img.logo-only { top: 4px !important; }
  #navbar { padding-top: 4px !important; padding-bottom: 4px !important; }
}


/* appended tagline patch */

/* === TAGLINE LIFT PATCH ===
   The tagline ("No Monkey Business") was touching the navbar bottom border.
   This patch slightly lifts the tagline up (negative top) so it has breathing room.
*/
@media (min-width: 768px) {
  /* lift the tagline inside the logo block so it doesn't touch the nav bottom border */
  #navbar .flex.items-center > .flex-col:first-child > div {
    top: -6px !important;    /* lift tagline up; increase magnitude to -8px for more space */
    margin-bottom: 2px !important;
    text-align: center !important;
  }
}

/* mobile: smaller lift so layout stays nice */
@media (max-width: 767px) {
  #navbar .flex.items-center > .flex-col:first-child > div {
    top: -3px !important;
    margin-bottom: 1px !important;
  }
}


/* appended overlay fix */

/* === FINAL FIX: prevent logo + tagline overlap === */
#navbar .flex.items-center > .flex-col:first-child {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
  padding-top: 6px !important;
  padding-bottom: 4px !important;
  transform: translate(var(--logo-x), var(--logo-y)) scale(var(--logo-scale)) !important;
  position: relative !important;
  z-index: 60 !important;
}

#navbar img.logo-only {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  display: block !important;
  z-index: 61 !important;
}

#navbar .flex.items-center > .flex-col:first-child > div {
  position: relative !important;
  top: 0 !important;
  margin: 0 !important;
  padding-top: 0 !important;
  line-height: 1 !important;
  z-index: 59 !important;
  transform: none !important;
  white-space: nowrap;
}

#navbar .flex.items-center > .hidden.sm\:block {
  left: var(--word-x) !important;
  top: var(--word-y) !important;
  transform: scale(var(--word-scale)) !important;
}

:root { --nav-h: 104px; }

@media (max-width: 767px) {
  #navbar .flex.items-center > .flex-col:first-child {
    gap: 4px !important;
    padding-top: 4px !important;
    padding-bottom: 3px !important;
  }
  #navbar img.logo-only {
    height: auto;
    max-height: 56px;
  }
  :root { --nav-h: 96px; }
}


/* appended tagline-visibility-fix */

/* === ADJUST: ensure tagline isn't cut by bottom border === */
#navbar {
  padding-bottom: 10px !important; /* give navbar more bottom breathing room */
  box-sizing: border-box !important;
}

/* Ensure the logo block leaves enough space at bottom so tagline is visible */
#navbar .flex.items-center > .flex-col:first-child {
  gap: 8px !important;            /* slightly larger gap between logo and tagline */
  padding-bottom: 8px !important; /* extra space inside block */
  overflow: visible !important;   /* allow tagline to show outside if necessary */
}

/* Tagline container: bring it up a bit and ensure it doesn't wrap or get hidden */
#navbar .flex.items-center > .flex-col:first-child > div {
  top: -8px !important;           /* lift tagline slightly to avoid bottom cut */
  margin-bottom: 6px !important;
  padding-bottom: 0 !important;
  line-height: 1 !important;
  overflow: visible !important;
  white-space: nowrap !important;
}

/* Ensure the header border doesn't overlay content; move border slightly lower */
#navbar {
  border-bottom-width: 2px !important;
  border-bottom-color: rgba(148,163,184,0.06) !important;
}

/* Make sure the FILAMENTS wordmark doesn't collide */
#navbar .flex.items-center > .hidden.sm\:block {
  margin-left: 10px !important;
}

/* Increase nav height master variable so scroll-margin behaves */
:root { --nav-h: 112px !important; }

/* Mobile tweak: smaller lift but keep visible */
@media (max-width: 767px) {
  #navbar { padding-bottom: 6px !important; }
  #navbar .flex.items-center > .flex-col:first-child { gap: 6px !important; padding-bottom: 6px !important; }
  #navbar .flex.items-center > .flex-col:first-child > div { top: -4px !important; margin-bottom: 4px !important; white-space: normal !important; }
  :root { --nav-h: 96px !important; }
}

/* === MOBILE: Prevent headline from being clipped in .section-video === */
@media (max-width: 768px) {
  .section-video {
    padding-top: 3rem;
    padding-bottom: 3rem;
    min-height: auto;
    height: auto;
    overflow: visible;
  }

  .section-video__content {
    position: relative;
    z-index: 3; /* ensure above media & overlay */
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 180px;
  }

  /* Make the headline responsive and allow wrapping */
  .section-video #studio-feature-text h2 {
    font-size: clamp(1.4rem, 6vw, 2rem) !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    margin: 0 0 0.25rem 0 !important;
    opacity: 0.95 !important; /* improve legibility */
  }

  .section-video #studio-feature-text p {
    font-size: clamp(0.9rem, 3.6vw, 1rem);
    line-height: 1.5;
    max-width: 36rem;
  }

  /* Avoid aggressive media transforms that may push content out of view */
  .section-video__media {
    transform: none !important;
    object-position: top center !important;
    height: auto !important;
    min-height: 220px;
  }
}

/* Small tweak for very small phones */
@media (max-width: 420px) {
  .section-video #studio-feature-text h2 { font-size: clamp(1.1rem, 7vw, 1.6rem) !important; line-height:1.18 !important; }
}

/* === STRONGER MOBILE FIX: prevent headline clipping and ensure content visible === */
@media (max-width: 480px) {
  .section-video {
    padding-top: 6rem !important;
    padding-bottom: 3.5rem !important;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
  }
  .section-video__media {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 40vh !important;
    transform: none !important;
    object-fit: cover !important;
    object-position: center top !important;
    z-index: 0 !important;
  }
  .section-video__overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.7) 100%) !important;
  }
  .section-video__content {
    position: relative !important;
    z-index: 2 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    display: block !important;
  }
  .section-video #studio-feature-text h2 {
    font-size: 1.25rem !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    margin-bottom: 0.5rem !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }
  .section-video #studio-feature-text p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
  }
}

/* Extra safe tweak for very narrow screens */
@media (max-width: 360px) {
  .section-video { padding-top: 5.5rem !important; }
  .section-video #studio-feature-text h2 { font-size: 1.05rem !important; line-height:1.25 !important; }
}
/* ---------------------------
   MOBILE NAVBAR: compact + centered
   --------------------------- */
@media (max-width: 768px) {
  /* keep nav compact and remove extra gaps */
  #navbar {
    --nav-h: 64px;                /* smaller nav on mobile */
    height: var(--nav-h);
    min-height: var(--nav-h);
    padding-top: 0;
    padding-bottom: 0;
  }

  /* ensure container inside nav doesn't add extra vertical space */
  #navbar .container-header {
    padding-top: 0;
    padding-bottom: 0;
  }

  /* logo and menu alignment */
  #navbar .flex.items-center {
    height: var(--nav-h);
    align-items: center;
  }

  /* shrink logo a bit on phones */
  #navbar img.logo-only {
    height: 40px !important; /* adjust if you want smaller/larger */
    width: auto !important;
    top: 0 !important;
    left: 0 !important;
  }

  /* mobile hamburger alignment (right edge) */
  #mobile-menu-btn {
    margin: 0;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* reduce tagline height under logo to avoid extra vertical space */
  #navbar .mt-1 {
    margin-top: 0 !important;
    font-size: 9px !important;
    line-height: 1;
  }
}

/* ----------------------------------------
   HERO / SECTION-VIDEO: prevent clipping of text
   ---------------------------------------- */
@media (max-width: 768px) {
  .section-video {
    position: relative !important;
    padding-top: 3.5rem !important;    /* pushes content below top */
    padding-bottom: 2.5rem !important;
    overflow: visible !important;
    min-height: auto !important;
  }

  /* make media behave and not push text */
  .section-video__media {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 38vh !important;       /* visible behind headline */
    transform: none !important;        /* disable zoom/shift on small screens */
    object-fit: cover !important;
    object-position: center top !important;
    z-index: 0 !important;
  }

  /* dark overlay to improve contrast; keep below content */
  .section-video__overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.75) 100%) !important;
  }

  /* content must be above overlay and not absolute-clipped */
  .section-video__content {
    position: relative !important;
    z-index: 2 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    display: block !important;
    margin-top: 1rem !important;
  }

  /* headline wrapping + size tuned for phones */
  .section-video #studio-feature-text h2 {
    font-size: clamp(1.1rem, 6.5vw, 1.6rem) !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    margin: 0 0 0.5rem 0 !important;
    opacity: 0.98 !important;
    text-align: center !important;
  }

  .section-video #studio-feature-text p {
    font-size: clamp(0.9rem, 3.8vw, 1rem) !important;
    line-height: 1.5 !important;
    max-width: 40rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
}

/* Very small narrow phones: be extra safe */
@media (max-width: 360px) {
  #studio-feature-text h2 { font-size: 1.0rem !important; line-height: 1.2 !important; }
  .section-video { padding-top: 2.75rem !important; }
}



/* === SAFER MOBILE HERO & NAV OVERRIDES - added by assistant === */
@media (max-width: 768px) {
  /* NAVBAR adjustments */
  #navbar {
    --nav-h: 64px !important;
    height: var(--nav-h) !important;
    min-height: var(--nav-h) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  #navbar .container-header { padding-top: 0 !important; padding-bottom: 0 !important; }
  #navbar img.logo-only { height: 40px !important; width: auto !important; top: 0 !important; left: 0 !important; }
  #mobile-menu-btn { margin: 0 !important; padding: 6px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; }
  #navbar .mt-1 { margin-top: 0 !important; font-size: 9px !important; line-height: 1 !important; }

  /* HERO / section-video safe layout */
  .section-video {
    width: 100% !important;
    left: 0 !important;
    transform: none !important;
    padding-top: 3.5rem !important;
    padding-bottom: 2.5rem !important;
    overflow: visible !important;
    min-height: auto !important;
    position: relative !important;
  }
  .section-video__media {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 38vh !important;
    transform: none !important;
    object-fit: cover !important;
    object-position: center top !important;
    z-index: 0 !important;
  }
  .section-video__overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.75) 100%) !important;
  }
  .section-video__content {
    position: relative !important;
    z-index: 2 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    display: block !important;
    margin-top: 0.5rem !important;
  }
  .section-video #studio-feature-text h2 {
    font-size: clamp(1.0rem, 5.2vw, 1.4rem) !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    margin-bottom: 0.5rem !important;
    text-align: center !important;
    color: rgba(255,255,255,0.95) !important;
    opacity: 1 !important;
  }
  .section-video #studio-feature-text p {
    font-size: clamp(0.85rem, 3.6vw, 1rem) !important;
    line-height: 1.5 !important;
    max-width: 36rem !important;
    margin: 0.25rem auto 0 auto !important;
    text-align: center !important;
  }
}
@media (max-width: 360px) {
  #studio-feature-text h2 { font-size: 0.95rem !important; line-height:1.2 !important; }
  .section-video { padding-top: 3rem !important; }
}

/* Force brand-anim in navbar to plain blue */
#navbar .brand-anim,
#navbar .brand-anim[data-text="FILAMENTS"]{
  color: #054C5B !important;
  -webkit-text-fill-color: #054C5B !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  text-shadow: none !important;
}



/* === HERO heading/paragraph spacing fix (prevent overlap) === */
#studio-feature-text h2 {
  margin-bottom: 0.75rem !important;
  line-height: 1.3 !important;
  word-break: break-word !important;
}
#studio-feature-text p {
  margin-top: 0.6rem !important;
  display: block !important;
  line-height: 1.5 !important;
}
/* extra safe: ensure heading not absolutely positioned */
.section-video #studio-feature-text h2, #studio-feature-text h2 {
  position: relative !important;
}



/* === Navbar small square/caret hidden === */
#navbar .tagline-caret { display:none !important; }
/* Also ensure any caret pseudo elements are off */
#navbar .tagline-wrap::after, 
#navbar .tagline-wrap::before { display:none !important; content:none !important; }

/* === Hero title/subtitle: guaranteed separation === */
.section-video #studio-feature-text h2,
.section-video #studio-feature-text p {
  position: relative !important;
  display: block !important;
  z-index: 2 !important;
}
.section-video #studio-feature-text h2 { 
  margin: 0 0 0.9rem 0 !important; 
  line-height: 1.2 !important;
}
.section-video #studio-feature-text p { 
  margin: 0.15rem 0 0 0 !important; 
  line-height: 1.5 !important;
}

/* Prevent any transforms on text wrapper that could cause overlap */
.section-video #studio-feature-text { transform: none !important; }



/* ===== HERO/SECTION-VIDEO HEADLINE RESPONSIVE FIX =====
   Ensures the big headline scales, doesn't overflow the bleed area,
   and is legible on all screen sizes. Applied to #studio-feature-text h2.
*/
.section-video__content {
  box-sizing: border-box;
  padding-left: clamp(1rem, 4vw, 6rem);
  padding-right: clamp(1rem, 4vw, 6rem);
  max-width: 100%;
}

.section-video #studio-feature-text {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left; /* keep left alignment on wide screens for cinematic look */
}

.section-video #studio-feature-text h2 {
  width: 100%;
  max-width: calc(var(--container-max) - 4rem); /* constrain to container minus padding */
  margin: 0 auto 0.75rem auto;
  font-size: clamp(1.8rem, 6.5vw, 3.6rem); /* responsive scaling */
  line-height: clamp(1.05, 1.06, 1.15);    /* tighter line-height for large display */
  word-break: break-word;
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-font-smoothing: subpixel-antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.01em;
  padding-right: 1rem;
  padding-left: 1rem;
  box-sizing: border-box;
  z-index: 3;
}

/* Make it center-align on very small screens for better balance */
@media (max-width: 640px) {
  .section-video #studio-feature-text { text-align: center; }
  .section-video #studio-feature-text h2 {
    font-size: clamp(1.6rem, 7.5vw, 2.4rem);
    line-height: 1.18;
  }
}

/* Ensure the overlay sits above media and doesn't clip the text area */
.section-video__overlay { z-index: 1; pointer-events: none; }

/* Prevent the bleed container from pushing headline out of viewport */
.section-video {
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  padding-left: 0;
  padding-right: 0;
  overflow: visible;
}

/* In case the media transform was pushing content, reduce its scale on small screens */
@media (max-width: 768px) {
  .section-video__media { transform: none !important; object-position: center top !important; }
}

/* === MERGED UNIFIED OVERRIDES === */
/* === UNIFIED HERO HEADLINE: same look on mobile + desktop ===
   This file is a small, focused override. Load it AFTER your main stylesheet.
*/

/* Ensure the bleed container doesn't shift the content */
.section-video {
  width: 100vw !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* Overlay: slightly stronger to increase contrast on any viewport */
.section-video__overlay {
  background: linear-gradient(rgba(0,0,0,0.62), rgba(0,0,0,0.62)) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

/* Content container centered both axes for identical visual */
.section-video__content {
  position: relative !important;
  z-index: 3 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important; /* center horizontally */
  text-align: center !important;       /* center text on all sizes */
  min-height: 320px !important;        /* give room on phones */
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
  box-sizing: border-box !important;
}

/* Headline: same stacked appearance and scale across viewports */
.section-video #studio-feature-text h2 {
  margin: 0 auto 0.75rem auto !important;
  width: 100% !important;
  max-width: 1100px !important;
  font-size: clamp(1.8rem, 6.5vw, 3.6rem) !important; /* desktop scale */
  line-height: 1.02 !important;                      /* tight stacked look */
  letter-spacing: 0.01em !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  hyphens: auto !important;
  -webkit-font-smoothing: antialiased !important;
  text-rendering: optimizeLegibility !important;
  transform: none !important;
  padding: 0 0.5rem !important;
  text-shadow: 0 1px 0 rgba(0,0,0,0.6), 0 6px 18px rgba(0,0,0,0.55) !important;
}

/* Paragraph under headline: center and constrained */
.section-video #studio-feature-text p {
  margin: 0 auto !important;
  max-width: 680px !important;
  font-size: clamp(0.9rem, 2.6vw, 1rem) !important;
  line-height: 1.6 !important;
  text-align: center !important;
  padding: 0 0.5rem !important;
}

/* On very large desktop keep headline large but not overwhelming */
@media (min-width: 1400px) {
  .section-video #studio-feature-text h2 {
    font-size: 4.6rem !important;
    max-width: 1200px !important;
  }
}

/* Prevent background transform from cropping the centered content */
.section-video__media {
  transform: scale(1.05) !important;
  object-position: center center !important;
}

/* Small-screen tweaks to keep spacing and ensure it resembles desktop stacked layout */
@media (max-width: 640px) {
  .section-video__content {
    min-height: 300px !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .section-video #studio-feature-text h2 {
    font-size: clamp(1.6rem, 9.5vw, 2.6rem) !important;
    line-height: 1.08 !important;
  }
  .section-video #studio-feature-text p {
    font-size: 0.95rem !important;
  }
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .section-video__media { transition: none !important; transform: none !important; }
}


/* === HERO OVERLAY FIX: remove black shade === */
.section-video__overlay {
  background: none !important;   /* no black overlay */
}

/* === HERO TEXT FIX: force consistent layout on phone + PC === */
.section-video__content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 2rem 1rem !important;
  box-sizing: border-box !important;
  z-index: 3 !important;
  min-height: 320px !important;
}

.section-video #studio-feature-text h2 {
  font-size: clamp(2rem, 6vw, 3.6rem) !important;
  line-height: 1.15 !important;
  margin: 0 0 1rem 0 !important;
  text-align: center !important;
  color: #fff !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6) !important; /* subtle glow for readability */
}

.section-video #studio-feature-text p {
  font-size: clamp(1rem, 2.6vw, 1.2rem) !important;
  line-height: 1.6 !important;
  max-width: 700px !important;
  text-align: center !important;
  margin: 0 auto !important;
  color: #f0f0f0 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
}

/* === APPENDED SAFE NAV PATCH === */
/* === SAFE MOBILE NAV PATCH: keeps header intact and pins hamburger right using flex only === */
@media (max-width: 768px) {
  #navbar { position: fixed !important; top: 0; left: 0; right: 0; z-index: 60; }
  #navbar .container-header { padding-left: 1rem !important; padding-right: 1rem !important; }
  #navbar .flex.items-center.gap-4 { display: flex !important; align-items: center !important; gap: 0.5rem !important; }
  .hidden.md\:flex { display: none !important; }
  /* Ensure mobile button visible and aligned to right using margin-left:auto */
  #mobile-menu-btn { margin-left: auto !important; display: inline-flex !important; align-items: center; justify-content: center; padding: 6px; }
  /* keep mobile menu hidden by default */
  #mobile-menu { display: none; }
  /* simple toggle classes if JS toggles 'open' */
  #mobile-menu.open { display: block !important; }
}


/* ===== Showreel caption visibility patch =====
   Ensures captions below thumbnails are visible and readable.
   Appended by assistant - safe, minimal changes.
*/
#showreelGrid .poster-card {
  /* allow caption to be visible below the thumbnail */
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding-bottom: 0.75rem !important; /* breathing room for caption */
  background: transparent !important;
  border-radius: 12px !important;
}

#showreelGrid .poster-card .poster-thumb-img,
#showreelGrid .poster-card img.poster-thumb-img {
  /* keep the thumbnail area consistent and not absolute-positioned */
  display: block !important;
  width: 100% !important;
  height: 180px !important; /* fixed visible thumbnail height */
  object-fit: cover !important;
  border-radius: 12px !important;
  position: relative !important;
}

#showreelGrid .poster-card .play-overlay {
  /* keep play button absolutely centered over the thumbnail */
  position: absolute !important;
  left: 50% !important;
  top: calc(50% - 24px) !important; /* slight visual center */
  transform: translate(-50%, -50%) !important;
  z-index: 40 !important;
  margin: 0 !important;
  width: 72px !important;
  height: 72px !important;
  font-size: 28px !important;
  border-radius: 9999px !important;
}

#showreelGrid .poster-card > p {
  margin-top: 0.6rem !important;
  color: #ffffff !important;
  font-size: 1.05rem !important; /* slightly larger */
  font-weight: 700 !important;   /* bold */
  text-align: center !important;
  letter-spacing: 0.02em !important;
  z-index: 50 !important;
}

/* For larger desktop make thumbnail taller so caption doesn't overlap */
@media(min-width:1024px){
  #showreelGrid .poster-card .poster-thumb-img { height: 220px !important; }
}
@media(max-width:1023px){
  #showreelGrid .poster-card .poster-thumb-img { height: 200px !important; }
}
@media(max-width:640px){
  #showreelGrid .poster-card .poster-thumb-img { height: 160px !important; }
  #showreelGrid .poster-card > p { font-size: 0.95rem !important; }
}

/* Ensure the poster-card wrapper keeps relative positioning for absolute play overlay */
#showreelGrid .poster-card { position: relative !important; }
#showreelGrid .poster-card .poster-thumb-img { display:block; }


/* --- END: /mnt/data/newstyle.css --- */


/* --- BEGIN: /mnt/data/oldstyle.css (original oldstyle backup) --- */

:root{
      --nav-h: 96px; /* fixed header height */
      --hero-fit: cover; /* cover = fill (crop). Switch to 'contain' for no crop */
      /* Hero width/height controls */
      --hero-scale-x: 1.02;  /* increase to widen, e.g., 1.10 = 110% width */
      --hero-scale-y: 1.02;  /* keep as is, or tweak height if needed */
      --hero-offset-x: 0px;  /* optional: nudge left/right */
      --hero-offset-y: 0px;  /* optional: nudge up/down  */
      --hero-zoom: 1.02;
      /* Max content width: good on 1920p and 2K without looking too narrow or too stretched */
      --container-max: 1440px;
      --container-pad: 1.5rem;
    }
    html, body { background:#000; margin:0; padding:0; overflow-x:hidden; }
    *, *::before, *::after{ box-sizing: border-box; }
    body {
      font-family: 'Montserrat', sans-serif;
      scroll-behavior: smooth;
      color: #ffffff;
    }
    /* Centered responsive container */
    .container-resp{
      width: min(100%, var(--container-max));
      margin-left: auto;
      margin-right: auto;
      padding-left: var(--container-pad);
      padding-right: var(--container-pad);
    }

    /* Header uses full width so logo and menu sit near screen corners */
    .container-header{
      width: 100%;
      max-width: none;
      margin-left: auto;
      margin-right: auto;
      padding-left: var(--container-pad);
      padding-right: var(--container-pad);
    }

    /* Keep original for content sections */
    

    /* HERO video visible */
    .hero-stage{ position:absolute; inset:0; overflow:hidden; }
    .hero-video-bg{
      position:absolute; inset:-1px;
      width:calc(100% + 2px); height:calc(100% + 2px);
      object-fit:cover; filter: blur(18px) brightness(0.85) saturate(0.95);
      transform: scale(1.08); transform-origin:center;
      z-index:0; background:#000; display:block;
    }
    .hero-video-fore{
      position:absolute; inset:0;
      width:100%; height:100%;
      object-fit: cover; object-position:center;
      /* upward bias + gentle zoom so top area is favored */
      --hero-zoom: 1.10;
      --hero-shift-y: -6%;
      transform: translateY(var(--hero-shift-y)) scale(var(--hero-zoom));
      transform-origin: center;
      z-index:1; background: transparent; display:block;
    }
    .loader {
      border: 3px solid #f3f3f3;
      border-top: 3px solid #000000;
      border-radius: 50%;
      width: 20px;
      height: 20px;
      animation: spin 1s linear infinite;
      display: none;
    }
    @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

    .headline { letter-spacing: .12em; text-transform: uppercase; }
    .subhead  { opacity: .9; }
    .btn-pill { border-radius: 9999px; }

    /* Partner marquee */
    .marquee-container { 
      display: flex; 
      overflow: hidden; 
      gap: 4rem;
      mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
      -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    }
    .marquee-group {
      display: flex;
      align-items: center;
      gap: 4rem;
      min-width: 100%;
      flex-shrink: 0;
      animation: scroll-x 30s linear infinite;
    }
    .marquee-container:hover .marquee-group { animation-play-state: paused; }
    .marquee-reverse .marquee-group { animation-direction: reverse; }
    @keyframes scroll-x {
      from { transform: translateX(0); }
      to   { transform: translateX(-100%); }
    }
    .partner-logo {
      height: 48px;
      width: auto;
      opacity: 0.9;
      filter: saturate(0.9) brightness(0.95);
      transition: transform 0.2s ease, opacity 0.2s ease;
    }
    .partner-logo:hover { transform: scale(1.05); opacity: 1; }
    @media (min-width: 768px) {
      .partner-logo { height: 56px; }
    }

    /* float animation for about images */
    @keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
    .animate-float { animation: floatY 6s ease-in-out infinite; will-change: transform; }

    /* Typography tweak */
    html, body {
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      font-feature-settings: "liga" 1, "kern" 1, "tnum" 0;
    }
    .font-orbitron {
      font-family: "Orbitron", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
      letter-spacing: 0.02em;
    }

    /* Aspect-ratio helpers (avoid stretching cards/posters) */
    .ratio-2-3 { position: relative; width: 100%; padding-top: 150%; }
    .ratio-16-9 { position: relative; width: 100%; padding-top: 56.25%; }
    .ratio-1-1  { position: relative; width: 100%; padding-top: 100%; }
    .ratio-2-3 > img,
    .ratio-16-9 > img,
    .ratio-1-1  > img { position: absolute; inset:0; width:100%; height:100%; object-fit: cover; transform: translate(var(--hero-offset-x), var(--hero-offset-y)) scaleX(var(--hero-scale-x)) scaleY(var(--hero-scale-y)); transform-origin: center center; }

    /* Brand animation (kept) */
    .brand-anim{
      position: relative;
      display: inline-block;
      background: linear-gradient(#054C5B);
      background-size: 300% 100%;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    
    }
    @keyframes brandGradient{ 0%{background-position: 0% 50%} 100%{background-position: 100% 50%} }
    @keyframes brandGlow{ 0%,100%{ filter: drop-shadow(0 0 0px rgba(255,255,255,0)); } 50%{ filter: drop-shadow(0 0 14px rgba(255,255,255,.65)) blur(.3px); } }
    .brand-anim::after{
      content: attr(data-text);
      position: absolute; inset: 0;
      color: #ffffff;
      filter: blur(2px);
      opacity: 0;
      pointer-events: none;
      animation: brandWhiteBloom 3s ease-in-out infinite;
    }
    @keyframes brandWhiteBloom{ 0%,100%{ opacity: 0; } 50%{ opacity: .9; } }
  
    @media (max-width: 768px){
      :root{
      --nav-h: 96px; /* fixed header height */
      --hero-fit: cover; /* cover = fill (crop). Switch to 'contain' for no crop */
      /* Hero width/height controls */
      --hero-scale-x: 1.02;  /* increase to widen, e.g., 1.10 = 110% width */
      --hero-scale-y: 1.02;  /* keep as is, or tweak height if needed */
      --hero-offset-x: 0px;  /* optional: nudge left/right */
      --hero-offset-y: 0px;  /* optional: nudge up/down  */
      --hero-zoom: 1.02; --hero-zoom: 1.0; } /* don't over-zoom on phones */
    }
    

    /* Respect reduced motion */
    @media (prefers-reduced-motion: reduce) {
      .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    }

    .reveal {
      opacity: 0;
      transform: translateY(20px);
      transition:
        opacity 700ms ease,
        transform 700ms ease;
      transition-delay: var(--reveal-delay, 0ms);
      will-change: opacity, transform;
    }
    .reveal.is-visible { opacity: 1; transform: none; }

    /* Variants */
    .reveal[data-reveal="fade"]      { transform: none; }
    .reveal[data-reveal="fade-up"]   { transform: translateY(24px); }
    .reveal[data-reveal="fade-down"] { transform: translateY(-24px); }
    .reveal[data-reveal="slide-left"]  { transform: translateX(28px); }
    .reveal[data-reveal="slide-right"] { transform: translateX(-28px); }
    .reveal[data-reveal="zoom-in"]   { transform: scale(0.94); }

    /* Stagger helper: children with .reveal inside a [data-stagger] parent get cascading delays */
    [data-stagger] > .reveal { transition-delay: calc(var(--reveal-delay, 0ms) + (var(--i, 0) * 90ms)); }
  
    
    

    .logo-only{ image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; }
    @media (min-width: 1024px){ #navbar{ padding-top: 2px; padding-bottom: 2px; } }
  

    [id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
  

    :root{
      /* spacing between logo block and FILAMENTS */
      --logo-word-gap: 0rem; /* change to 0rem, .25rem, 1rem, etc. */

      /* FILAMENTS wordmark controls */
      --word-x: -50px;   /* +right / -left */
      --word-y: 0px;   /* +down / -up */
      --word-scale: 1; /* resize wordmark */

      /* ⬇️ MASTER controls for the whole logo+tagline block */
      --logo-x: 0px;      /* +right / -left */
      --logo-y: 0px;      /* +down  / -up  */
      --logo-scale: 1;    /* 1 = 100%, 1.15 = 115% */
    }

    /* Move + scale the entire block (logo + tagline) */
    #navbar .flex.items-center > .flex-col:first-child{
      position: relative;
      transform: translate(var(--logo-x), var(--logo-y)) scale(var(--logo-scale));
      transform-origin: left top;
      will-change: transform;
    }

    /* Fine-nudge ONLY the logo image */
    #navbar img.logo-only{
      position: relative;
      top: 0px;    /* +down / -up */
      left: 0px;   /* +right / -left */
    }

    /* Fine-nudge ONLY the tagline under the logo */
    #navbar .flex.items-center > .flex-col:first-child > div{
      position: relative;
      top: 0px;    /* +down / -up */
      left: 0px;   /* +right / -left */
      text-align: center;
    }
  
    
    /* Control spacing between logo block and FILAMENTS */
    #navbar .flex.items-center {
      column-gap: var(--logo-word-gap);
      align-items: center;
    }
    
    
    /* Move/scale the FILAMENTS wrapper (affects layout vs flex gap) */
    #navbar .flex.items-center > .hidden.sm\:block{
      position: relative;
      left: var(--word-x);
      top: var(--word-y);
      transform: scale(var(--word-scale));
      transform-origin: left center;
      will-change: transform;
    }
    

    .tagline-wrap{ display:inline-block; white-space:nowrap; position:relative; }
    .tagline-type{
      color:#e5e7eb;
      text-transform: uppercase;
      letter-spacing: 0.25em;
    }

    /* Subtle letter bounce */


/* Center a single child inside any grid marked .cards-grid */
.cards-grid > *:only-child {
  justify-self: center;   /* centers the lone card */
}

/* Make sure multiple cards stick to the top edge */
.cards-grid { align-items: start; }

/* === Auto-changing rainbow glow for 'RECENT' badge === */
.recent-badge{
  position:absolute;
  top:10px;
  right:10px;
  padding:6px 10px;
  border-radius:9999px;
  background:rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  line-height:1;
  pointer-events:none;            /* purely decorative */
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.recent-badge .recent-text {
  -webkit-text-stroke: 0.8px #000;
  text-shadow:
    0 0 3px rgba(0,0,0,0.8),
    0 0 6px rgba(0,0,0,0.6);
}

@keyframes recentColorGlow {
  0%   { color:#3b82f6; text-shadow: 0 0 6px rgba(59,130,246,.9), 0 0 14px rgba(59,130,246,.6); }   /* Blue */
  33%  { color:#ffffff; text-shadow: 0 0 6px rgba(255,255,255,.9), 0 0 14px rgba(255,255,255,.6); } /* White */
  66%  { color:#ff9800; text-shadow: 0 0 6px rgba(255,152,0,.9), 0 0 14px rgba(255,152,0,.6); }     /* Orange */
  100% { color:#3b82f6; text-shadow: 0 0 6px rgba(59,130,246,.9), 0 0 14px rgba(59,130,246,.6); }   /* Back to Blue */
}
  20%  { color:#ffd166; text-shadow: 0 0 6px rgba(255,209,102,.9), 0 0 14px rgba(255,209,102,.6); }
  40%  { color:#5aff93; text-shadow: 0 0 6px rgba(90,255,147,.9), 0 0 14px rgba(90,255,147,.6); }
  60%  { color:#57b5ff; text-shadow: 0 0 6px rgba(87,181,255,.9), 0 0 14px rgba(87,181,255,.6); }
  80%  { color:#c77dff; text-shadow: 0 0 6px rgba(199,125,255,.9), 0 0 14px rgba(199,125,255,.6); }
  100% { color:#ff5a5a; text-shadow: 0 0 6px rgba(255,90,90,.9), 0 0 14px rgba(255,90,90,.6); }
}


.recent-badge .recent-text {
  -webkit-text-stroke: 0.8px #000;
  text-shadow:
    0 0 3px rgba(0,0,0,0.8),
    0 0 6px rgba(0,0,0,0.6);
}


/* Force legibility on light/dark posters AND keep the loop */
.recent-badge .recent-text {
  -webkit-text-stroke: 1px rgba(0,0,0,0.95) !important;  /* thicker edge */
  text-shadow:
    0 0 2px rgba(0,0,0,0.9),
    0 0 6px rgba(0,0,0,0.7),
    0 1px 0 rgba(0,0,0,0.85),
    0 -1px 0 rgba(0,0,0,0.85),
    1px 0 0 rgba(0,0,0,0.85),
    -1px 0 0 rgba(0,0,0,0.85) !important;                 /* pseudo-outline via shadows */
  animation: recentColorGlow 6s ease-in-out infinite both !important;
}
/* Fix: banner text spacing under 'Stunning Visuals...' */
section.bg-fixed .container-resp h2 { margin-bottom: 2.25rem !important; }
section.bg-fixed .container-resp p  { margin-top: 0 !important; line-height: 1.65; }

#about h2 {
  line-height: 1.3;   /* default 1  gap */
  margin-bottom: 1.5rem; /* paragraph  spacing */
}
#portfolio a[href="#home"] {
  display: block;
  margin: 1.5rem auto 0 auto; /* auto = center horizontally */
  text-align: center;
  width: fit-content;         /* size auto */
}

.play-overlay{
  position:absolute; inset:0;
  margin:auto; width:86px; height:86px;
  border-radius:9999px; border:2px solid rgba(255,255,255,.7);
  background:rgba(0,0,0,.45);
  display:flex; align-items:center; justify-content:center;
  font-size:34px; color:#fff;
  cursor:pointer; transition:transform .15s ease, background .15s ease, opacity .2s;
}
.play-overlay:hover{ transform:scale(1.06); background:rgba(0,0,0,.6); }
.play-overlay.hidden{ opacity:0; pointer-events:none; }

.poster-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}
.poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.poster-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 25px rgba(0,0,0,0.6);
}
.poster-card:hover img {
  transform: scale(1.1);
}


/* Reset for TOP posters grid only (keep responsive 2:3) */
#portfolio .lg\:col-span-2 .ratio-2-3 {
  width: 100%;
  padding-top: 150% !important; /* back to aspect helper */
  height: auto;
}
#portfolio .lg\:col-span-2 .ratio-2-3 > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}


/* ✅ Only bottom grids (approved top grid untouched) */
/* Responsive poster sizing: allow grid to control card width so they don't overlap on small screens */

#portfolio .mt-12 .ratio-2-3,
#portfolio #more-projects .ratio-2-3 {
  width: 210px;              /* smaller to fit 6 cards without overlap */
  height: 300px;             /* proportional height */
  padding-top: 0 !important;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0.75rem;
  overflow: hidden;
}

/* Responsive tweak: allow larger cards on mobile (2 per row) */
@media (max-width: 768px) {
  #portfolio .mt-12 .ratio-2-3,
  #portfolio #more-projects .ratio-2-3 {
    width: 46%;
    height: auto;
  }
}


/* On narrow screens show two cards per row visually by limiting max-width to ~48% */
@media (max-width: 640px) {
  
#portfolio .mt-12 .ratio-2-3,
#portfolio #more-projects .ratio-2-3 {
  width: 210px;              /* smaller to fit 6 cards without overlap */
  height: 300px;             /* proportional height */
  padding-top: 0 !important;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0.75rem;
  overflow: hidden;
}

/* Responsive tweak: allow larger cards on mobile (2 per row) */
@media (max-width: 768px) {
  #portfolio .mt-12 .ratio-2-3,
  #portfolio #more-projects .ratio-2-3 {
    width: 46%;
    height: auto;
  }
}

}

#portfolio .mt-12 .ratio-2-3 > img,
#portfolio #more-projects .ratio-2-3 > img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}


/* FULL-BLEED (padding-aware) with 1px bleed to kill hairline */
.section-video{
  position: relative;
  overflow: hidden;

  /* add both side paddings + 2px fudge, then pull left incl. 1px */
  width: calc(100vw + (var(--container-pad, 1.5rem) * 7) + 10px);
  left: 50%;
  transform: translateX(calc(-50% - var(--container-pad, 1.5rem) - 6px));

  max-width: none;
  padding: 0;
  background:#000; /* fallback background at edges */
}

/* Bleed media & overlay 1px beyond to avoid right-edge line */
.section-video__media,
.section-video__overlay{
  position: absolute;
  inset: -1px;                  /* was: inset: 0; */
}

/* Media settings (keep your crop value as needed) */
.section-video__media{
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  background:#000; pointer-events:none; z-index:0;
  transform: scale(1.08);
  transform-origin: center;
}

/* Overlay stays same z-index */
.section-video__overlay{ background: rgba(0,0,0,.55); z-index:1; }

/* Content */
.section-video__content{ position:relative; z-index:2; }

/* Spacing */
.section-video #studio-feature-text h2{ margin-bottom:2.25rem; }
.section-video #studio-feature-text p { margin-top:0; line-height:1.65; }

/* LOADING PAGE */





/* === FIX: small screens par card/image/text overlap === */
.cards-grid { align-items: start; }
.cards-grid > * { min-width: 0; min-height: 0; }

.ratio-2-3, .ratio-16-9, .ratio-1-1 {
  overflow: hidden;
  border-radius: 0.75rem;
}
.ratio-2-3 > img, .ratio-16-9 > img, .ratio-1-1 > img {
  display: block;
  width: 100%; height: 100%; object-fit: cover;
}

.poster-caption,
.card .p-6,
.card .font-orbitron {
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: balance;
  line-height: 1.25;
}

@media (max-width: 480px){
  .poster-caption { font-size: 0.8rem; }
  .font-orbitron { font-size: clamp(0.95rem, 3.8vw, 1.1rem); }
}

.recent-badge { z-index: 1; pointer-events: none; }



/* appended logo patch */

/* === LOGO BREATHING ROOM PATCH ===
   Moves the logo slightly *down* so it no longer touches the top edge.
   Paste near the end of your style.css or replace with this file.
*/
@media (min-width: 768px) {
  /* master variable tweak (affects the logo block transform) */
  :root { --logo-y: 8px !important; } /* increase to 12px or 16px if you want more space */

  /* fine nudge only for the logo image to guarantee gap from top */
  #navbar img.logo-only {
    top: 8px !important;          /* pushes the image down inside its container */
    display: block !important;
  }

  /* ensure the parent container transform uses the updated variable */
  #navbar .flex.items-center > .flex-col:first-child {
    transform: translate(var(--logo-x), var(--logo-y)) scale(var(--logo-scale)) !important;
    transform-origin: left top !important;
  }

  /* if navbar height is limiting, add a tiny top padding so the content isn't clipped */
  #navbar { padding-top: 6px !important; padding-bottom: 6px !important; }
}

/* small-screen tweak: slightly smaller nudge so mobile layout stays tight */
@media (max-width: 767px) {
  :root { --logo-y: 4px !important; }
  #navbar img.logo-only { top: 4px !important; }
  #navbar { padding-top: 4px !important; padding-bottom: 4px !important; }
}


/* appended tagline patch */

/* === TAGLINE LIFT PATCH ===
   The tagline ("No Monkey Business") was touching the navbar bottom border.
   This patch slightly lifts the tagline up (negative top) so it has breathing room.
*/
@media (min-width: 768px) {
  /* lift the tagline inside the logo block so it doesn't touch the nav bottom border */
  #navbar .flex.items-center > .flex-col:first-child > div {
    top: -6px !important;    /* lift tagline up; increase magnitude to -8px for more space */
    margin-bottom: 2px !important;
    text-align: center !important;
  }
}

/* mobile: smaller lift so layout stays nice */
@media (max-width: 767px) {
  #navbar .flex.items-center > .flex-col:first-child > div {
    top: -3px !important;
    margin-bottom: 1px !important;
  }
}


/* appended overlay fix */

/* === FINAL FIX: prevent logo + tagline overlap === */
#navbar .flex.items-center > .flex-col:first-child {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
  padding-top: 6px !important;
  padding-bottom: 4px !important;
  transform: translate(var(--logo-x), var(--logo-y)) scale(var(--logo-scale)) !important;
  position: relative !important;
  z-index: 60 !important;
}

#navbar img.logo-only {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  display: block !important;
  z-index: 61 !important;
}

#navbar .flex.items-center > .flex-col:first-child > div {
  position: relative !important;
  top: 0 !important;
  margin: 0 !important;
  padding-top: 0 !important;
  line-height: 1 !important;
  z-index: 59 !important;
  transform: none !important;
  white-space: nowrap;
}

#navbar .flex.items-center > .hidden.sm\:block {
  left: var(--word-x) !important;
  top: var(--word-y) !important;
  transform: scale(var(--word-scale)) !important;
}

:root { --nav-h: 104px; }

@media (max-width: 767px) {
  #navbar .flex.items-center > .flex-col:first-child {
    gap: 4px !important;
    padding-top: 4px !important;
    padding-bottom: 3px !important;
  }
  #navbar img.logo-only {
    height: auto;
    max-height: 56px;
  }
  :root { --nav-h: 96px; }
}


/* appended tagline-visibility-fix */

/* === ADJUST: ensure tagline isn't cut by bottom border === */
#navbar {
  padding-bottom: 10px !important; /* give navbar more bottom breathing room */
  box-sizing: border-box !important;
}

/* Ensure the logo block leaves enough space at bottom so tagline is visible */
#navbar .flex.items-center > .flex-col:first-child {
  gap: 8px !important;            /* slightly larger gap between logo and tagline */
  padding-bottom: 8px !important; /* extra space inside block */
  overflow: visible !important;   /* allow tagline to show outside if necessary */
}

/* Tagline container: bring it up a bit and ensure it doesn't wrap or get hidden */
#navbar .flex.items-center > .flex-col:first-child > div {
  top: -8px !important;           /* lift tagline slightly to avoid bottom cut */
  margin-bottom: 6px !important;
  padding-bottom: 0 !important;
  line-height: 1 !important;
  overflow: visible !important;
  white-space: nowrap !important;
}

/* Ensure the header border doesn't overlay content; move border slightly lower */
#navbar {
  border-bottom-width: 2px !important;
  border-bottom-color: rgba(148,163,184,0.06) !important;
}

/* Make sure the FILAMENTS wordmark doesn't collide */
#navbar .flex.items-center > .hidden.sm\:block {
  margin-left: 10px !important;
}

/* Increase nav height master variable so scroll-margin behaves */
:root { --nav-h: 112px !important; }

/* Mobile tweak: smaller lift but keep visible */
@media (max-width: 767px) {
  #navbar { padding-bottom: 6px !important; }
  #navbar .flex.items-center > .flex-col:first-child { gap: 6px !important; padding-bottom: 6px !important; }
  #navbar .flex.items-center > .flex-col:first-child > div { top: -4px !important; margin-bottom: 4px !important; white-space: normal !important; }
  :root { --nav-h: 96px !important; }
}

/* === MOBILE: Prevent headline from being clipped in .section-video === */
@media (max-width: 768px) {
  .section-video {
    padding-top: 3rem;
    padding-bottom: 3rem;
    min-height: auto;
    height: auto;
    overflow: visible;
  }

  .section-video__content {
    position: relative;
    z-index: 3; /* ensure above media & overlay */
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 180px;
  }

  /* Make the headline responsive and allow wrapping */
  .section-video #studio-feature-text h2 {
    font-size: clamp(1.4rem, 6vw, 2rem) !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    margin: 0 0 0.25rem 0 !important;
    opacity: 0.95 !important; /* improve legibility */
  }

  .section-video #studio-feature-text p {
    font-size: clamp(0.9rem, 3.6vw, 1rem);
    line-height: 1.5;
    max-width: 36rem;
  }

  /* Avoid aggressive media transforms that may push content out of view */
  .section-video__media {
    transform: none !important;
    object-position: top center !important;
    height: auto !important;
    min-height: 220px;
  }
}

/* Small tweak for very small phones */
@media (max-width: 420px) {
  .section-video #studio-feature-text h2 { font-size: clamp(1.1rem, 7vw, 1.6rem) !important; line-height:1.18 !important; }
}

/* === STRONGER MOBILE FIX: prevent headline clipping and ensure content visible === */
@media (max-width: 480px) {
  .section-video {
    padding-top: 6rem !important;
    padding-bottom: 3.5rem !important;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
  }
  .section-video__media {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 40vh !important;
    transform: none !important;
    object-fit: cover !important;
    object-position: center top !important;
    z-index: 0 !important;
  }
  .section-video__overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.7) 100%) !important;
  }
  .section-video__content {
    position: relative !important;
    z-index: 2 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    display: block !important;
  }
  .section-video #studio-feature-text h2 {
    font-size: 1.25rem !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    margin-bottom: 0.5rem !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }
  .section-video #studio-feature-text p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
  }
}

/* Extra safe tweak for very narrow screens */
@media (max-width: 360px) {
  .section-video { padding-top: 5.5rem !important; }
  .section-video #studio-feature-text h2 { font-size: 1.05rem !important; line-height:1.25 !important; }
}
/* ---------------------------
   MOBILE NAVBAR: compact + centered
   --------------------------- */
@media (max-width: 768px) {
  /* keep nav compact and remove extra gaps */
  #navbar {
    --nav-h: 64px;                /* smaller nav on mobile */
    height: var(--nav-h);
    min-height: var(--nav-h);
    padding-top: 0;
    padding-bottom: 0;
  }

  /* ensure container inside nav doesn't add extra vertical space */
  #navbar .container-header {
    padding-top: 0;
    padding-bottom: 0;
  }

  /* logo and menu alignment */
  #navbar .flex.items-center {
    height: var(--nav-h);
    align-items: center;
  }

  /* shrink logo a bit on phones */
  #navbar img.logo-only {
    height: 40px !important; /* adjust if you want smaller/larger */
    width: auto !important;
    top: 0 !important;
    left: 0 !important;
  }

  /* mobile hamburger alignment (right edge) */
  #mobile-menu-btn {
    margin: 0;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* reduce tagline height under logo to avoid extra vertical space */
  #navbar .mt-1 {
    margin-top: 0 !important;
    font-size: 9px !important;
    line-height: 1;
  }
}

/* ----------------------------------------
   HERO / SECTION-VIDEO: prevent clipping of text
   ---------------------------------------- */
@media (max-width: 768px) {
  .section-video {
    position: relative !important;
    padding-top: 3.5rem !important;    /* pushes content below top */
    padding-bottom: 2.5rem !important;
    overflow: visible !important;
    min-height: auto !important;
  }

  /* make media behave and not push text */
  .section-video__media {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 38vh !important;       /* visible behind headline */
    transform: none !important;        /* disable zoom/shift on small screens */
    object-fit: cover !important;
    object-position: center top !important;
    z-index: 0 !important;
  }

  /* dark overlay to improve contrast; keep below content */
  .section-video__overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.75) 100%) !important;
  }

  /* content must be above overlay and not absolute-clipped */
  .section-video__content {
    position: relative !important;
    z-index: 2 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    display: block !important;
    margin-top: 1rem !important;
  }

  /* headline wrapping + size tuned for phones */
  .section-video #studio-feature-text h2 {
    font-size: clamp(1.1rem, 6.5vw, 1.6rem) !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    margin: 0 0 0.5rem 0 !important;
    opacity: 0.98 !important;
    text-align: center !important;
  }

  .section-video #studio-feature-text p {
    font-size: clamp(0.9rem, 3.8vw, 1rem) !important;
    line-height: 1.5 !important;
    max-width: 40rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
}

/* Very small narrow phones: be extra safe */
@media (max-width: 360px) {
  #studio-feature-text h2 { font-size: 1.0rem !important; line-height: 1.2 !important; }
  .section-video { padding-top: 2.75rem !important; }
}



/* === SAFER MOBILE HERO & NAV OVERRIDES - added by assistant === */
@media (max-width: 768px) {
  /* NAVBAR adjustments */
  #navbar {
    --nav-h: 64px !important;
    height: var(--nav-h) !important;
    min-height: var(--nav-h) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  #navbar .container-header { padding-top: 0 !important; padding-bottom: 0 !important; }
  #navbar img.logo-only { height: 40px !important; width: auto !important; top: 0 !important; left: 0 !important; }
  #mobile-menu-btn { margin: 0 !important; padding: 6px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; }
  #navbar .mt-1 { margin-top: 0 !important; font-size: 9px !important; line-height: 1 !important; }

  /* HERO / section-video safe layout */
  .section-video {
    width: 100% !important;
    left: 0 !important;
    transform: none !important;
    padding-top: 3.5rem !important;
    padding-bottom: 2.5rem !important;
    overflow: visible !important;
    min-height: auto !important;
    position: relative !important;
  }
  .section-video__media {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 38vh !important;
    transform: none !important;
    object-fit: cover !important;
    object-position: center top !important;
    z-index: 0 !important;
  }
  .section-video__overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.75) 100%) !important;
  }
  .section-video__content {
    position: relative !important;
    z-index: 2 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    display: block !important;
    margin-top: 0.5rem !important;
  }
  .section-video #studio-feature-text h2 {
    font-size: clamp(1.0rem, 5.2vw, 1.4rem) !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    margin-bottom: 0.5rem !important;
    text-align: center !important;
    color: rgba(255,255,255,0.95) !important;
    opacity: 1 !important;
  }
  .section-video #studio-feature-text p {
    font-size: clamp(0.85rem, 3.6vw, 1rem) !important;
    line-height: 1.5 !important;
    max-width: 36rem !important;
    margin: 0.25rem auto 0 auto !important;
    text-align: center !important;
  }
}
@media (max-width: 360px) {
  #studio-feature-text h2 { font-size: 0.95rem !important; line-height:1.2 !important; }
  .section-video { padding-top: 3rem !important; }
}

/* Force brand-anim in navbar to plain blue */
#navbar .brand-anim,
#navbar .brand-anim[data-text="FILAMENTS"]{
  color: #054C5B !important;
  -webkit-text-fill-color: #054C5B !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  text-shadow: none !important;
}



/* === HERO heading/paragraph spacing fix (prevent overlap) === */
#studio-feature-text h2 {
  margin-bottom: 0.75rem !important;
  line-height: 1.3 !important;
  word-break: break-word !important;
}
#studio-feature-text p {
  margin-top: 0.6rem !important;
  display: block !important;
  line-height: 1.5 !important;
}
/* extra safe: ensure heading not absolutely positioned */
.section-video #studio-feature-text h2, #studio-feature-text h2 {
  position: relative !important;
}



/* === Navbar small square/caret hidden === */
#navbar .tagline-caret { display:none !important; }
/* Also ensure any caret pseudo elements are off */
#navbar .tagline-wrap::after, 
#navbar .tagline-wrap::before { display:none !important; content:none !important; }

/* === Hero title/subtitle: guaranteed separation === */
.section-video #studio-feature-text h2,
.section-video #studio-feature-text p {
  position: relative !important;
  display: block !important;
  z-index: 2 !important;
}
.section-video #studio-feature-text h2 { 
  margin: 0 0 0.9rem 0 !important; 
  line-height: 1.2 !important;
}
.section-video #studio-feature-text p { 
  margin: 0.15rem 0 0 0 !important; 
  line-height: 1.5 !important;
}

/* Prevent any transforms on text wrapper that could cause overlap */
.section-video #studio-feature-text { transform: none !important; }



/* ===== HERO/SECTION-VIDEO HEADLINE RESPONSIVE FIX =====
   Ensures the big headline scales, doesn't overflow the bleed area,
   and is legible on all screen sizes. Applied to #studio-feature-text h2.
*/
.section-video__content {
  box-sizing: border-box;
  padding-left: clamp(1rem, 4vw, 6rem);
  padding-right: clamp(1rem, 4vw, 6rem);
  max-width: 100%;
}

.section-video #studio-feature-text {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left; /* keep left alignment on wide screens for cinematic look */
}

.section-video #studio-feature-text h2 {
  width: 100%;
  max-width: calc(var(--container-max) - 4rem); /* constrain to container minus padding */
  margin: 0 auto 0.75rem auto;
  font-size: clamp(1.8rem, 6.5vw, 3.6rem); /* responsive scaling */
  line-height: clamp(1.05, 1.06, 1.15);    /* tighter line-height for large display */
  word-break: break-word;
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-font-smoothing: subpixel-antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.01em;
  padding-right: 1rem;
  padding-left: 1rem;
  box-sizing: border-box;
  z-index: 3;
}

/* Make it center-align on very small screens for better balance */
@media (max-width: 640px) {
  .section-video #studio-feature-text { text-align: center; }
  .section-video #studio-feature-text h2 {
    font-size: clamp(1.6rem, 7.5vw, 2.4rem);
    line-height: 1.18;
  }
}

/* Ensure the overlay sits above media and doesn't clip the text area */
.section-video__overlay { z-index: 1; pointer-events: none; }

/* Prevent the bleed container from pushing headline out of viewport */
.section-video {
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  padding-left: 0;
  padding-right: 0;
  overflow: visible;
}

/* In case the media transform was pushing content, reduce its scale on small screens */
@media (max-width: 768px) {
  .section-video__media { transform: none !important; object-position: center top !important; }
}

/* === MERGED UNIFIED OVERRIDES === */
/* === UNIFIED HERO HEADLINE: same look on mobile + desktop ===
   This file is a small, focused override. Load it AFTER your main stylesheet.
*/

/* Ensure the bleed container doesn't shift the content */
.section-video {
  width: 100vw !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* Overlay: slightly stronger to increase contrast on any viewport */
.section-video__overlay {
  background: linear-gradient(rgba(0,0,0,0.62), rgba(0,0,0,0.62)) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

/* Content container centered both axes for identical visual */
.section-video__content {
  position: relative !important;
  z-index: 3 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important; /* center horizontally */
  text-align: center !important;       /* center text on all sizes */
  min-height: 320px !important;        /* give room on phones */
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
  box-sizing: border-box !important;
}

/* Headline: same stacked appearance and scale across viewports */
.section-video #studio-feature-text h2 {
  margin: 0 auto 0.75rem auto !important;
  width: 100% !important;
  max-width: 1100px !important;
  font-size: clamp(1.8rem, 6.5vw, 3.6rem) !important; /* desktop scale */
  line-height: 1.02 !important;                      /* tight stacked look */
  letter-spacing: 0.01em !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  hyphens: auto !important;
  -webkit-font-smoothing: antialiased !important;
  text-rendering: optimizeLegibility !important;
  transform: none !important;
  padding: 0 0.5rem !important;
  text-shadow: 0 1px 0 rgba(0,0,0,0.6), 0 6px 18px rgba(0,0,0,0.55) !important;
}

/* Paragraph under headline: center and constrained */
.section-video #studio-feature-text p {
  margin: 0 auto !important;
  max-width: 680px !important;
  font-size: clamp(0.9rem, 2.6vw, 1rem) !important;
  line-height: 1.6 !important;
  text-align: center !important;
  padding: 0 0.5rem !important;
}

/* On very large desktop keep headline large but not overwhelming */
@media (min-width: 1400px) {
  .section-video #studio-feature-text h2 {
    font-size: 4.6rem !important;
    max-width: 1200px !important;
  }
}

/* Prevent background transform from cropping the centered content */
.section-video__media {
  transform: scale(1.05) !important;
  object-position: center center !important;
}

/* Small-screen tweaks to keep spacing and ensure it resembles desktop stacked layout */
@media (max-width: 640px) {
  .section-video__content {
    min-height: 300px !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .section-video #studio-feature-text h2 {
    font-size: clamp(1.6rem, 9.5vw, 2.6rem) !important;
    line-height: 1.08 !important;
  }
  .section-video #studio-feature-text p {
    font-size: 0.95rem !important;
  }
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .section-video__media { transition: none !important; transform: none !important; }
}


/* === HERO OVERLAY FIX: remove black shade === */
.section-video__overlay {
  background: none !important;   /* no black overlay */
}

/* === HERO TEXT FIX: force consistent layout on phone + PC === */
.section-video__content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 2rem 1rem !important;
  box-sizing: border-box !important;
  z-index: 3 !important;
  min-height: 320px !important;
}

.section-video #studio-feature-text h2 {
  font-size: clamp(2rem, 6vw, 3.6rem) !important;
  line-height: 1.15 !important;
  margin: 0 0 1rem 0 !important;
  text-align: center !important;
  color: #fff !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6) !important; /* subtle glow for readability */
}

.section-video #studio-feature-text p {
  font-size: clamp(1rem, 2.6vw, 1.2rem) !important;
  line-height: 1.6 !important;
  max-width: 700px !important;
  text-align: center !important;
  margin: 0 auto !important;
  color: #f0f0f0 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
}

/* === APPENDED SAFE NAV PATCH === */
/* === SAFE MOBILE NAV PATCH: keeps header intact and pins hamburger right using flex only === */
@media (max-width: 768px) {
  #navbar { position: fixed !important; top: 0; left: 0; right: 0; z-index: 60; }
  #navbar .container-header { padding-left: 1rem !important; padding-right: 1rem !important; }
  #navbar .flex.items-center.gap-4 { display: flex !important; align-items: center !important; gap: 0.5rem !important; }
  .hidden.md\:flex { display: none !important; }
  /* Ensure mobile button visible and aligned to right using margin-left:auto */
  #mobile-menu-btn { margin-left: auto !important; display: inline-flex !important; align-items: center; justify-content: center; padding: 6px; }
  /* keep mobile menu hidden by default */
  #mobile-menu { display: none; }
  /* simple toggle classes if JS toggles 'open' */
  #mobile-menu.open { display: block !important; }
}

/* --- END: /mnt/data/oldstyle.css --- */


/* --- BEGIN: /mnt/data/newstyle_merged.css (previous merged output) --- */

/* =========================================================
   newstyle.css  (merged + hooter restore)
   Sources: merged from current newstyle.css and oldstyle.css
   ========================================================= */

/* -----------------------
   Root variables & global
   ----------------------- */
:root{
  --nav-h: 112px; /* prefer old header height (bigger) */
  --hero-fit: cover; /* cover = fill (crop). Switch to 'contain' for no crop */
  --hero-scale-x: 1.02;
  --hero-scale-y: 1.02;
  --hero-offset-x: 0px;
  --hero-offset-y: 0px;
  --hero-zoom: 1.10; /* default hero zoom */
  --hero-shift-y: -6%;
  --container-max: 1440px;
  --container-pad: 1.5rem;
}

/* Reset / base */
html, body { background:#000; margin:0; padding:0; overflow-x:hidden; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
*, *::before, *::after{ box-sizing: border-box; }
body {
  font-family: 'Montserrat', sans-serif;
  scroll-behavior: smooth;
  color: #ffffff;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  font-feature-settings: "liga" 1, "kern" 1, "tnum" 0;
}

/* Container helpers */
.container-resp{
  width: min(100%, var(--container-max));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}
.container-header{
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* -----------------------
   Header / NAV (hooter)
   ----------------------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: auto;
  z-index: 50;
  background: rgba(0,0,0,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: opacity 260ms ease, backdrop-filter 200ms ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* ensure nav inner spacing fits old layout */
#navbar .container-header { padding-top: 8px; padding-bottom: 8px; }

/* Logo block */
.logo-only { height: 56px; width: auto; display:block; }
@media (min-width:1024px){ .logo-only { height:64px; } }

/* small tagline beneath logo like old site */
.tagline-wrap { font-size: 10px; letter-spacing: 0.25em; text-transform:uppercase; color: #cfd8dc; display:block; }

/* wordmark (FILAMENTS) */
.font-orbitron {
  font-family: "Orbitron", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  letter-spacing: 0.02em;
}

/* nav links - keep subtle grey -> white hover */
#navbar a { color: #e5e7eb; text-decoration:none; }
#navbar a:hover { color: #fff; }

/* sync nav height JS sets --nav-h; keep anchor offset safe */
[id] { scroll-margin-top: calc(var(--nav-h) + 12px) !important; }

/* Mobile menu fallback */
#mobile-menu { display:none; }
#mobile-menu.open { display:block; }

/* -----------------------
   HERO video + stage
   ----------------------- */
.hero-stage{ position:relative; inset:0; overflow:hidden; width:100%; height:100%; }
.hero-video-bg{
  position:absolute; inset:-1px;
  width:calc(100% + 2px); height:calc(100% + 2px);
  object-fit:cover; filter: blur(18px) brightness(0.85) saturate(0.95);
  transform: scale(1.08); transform-origin:center;
  z-index:0; background:#000; display:block;
}
.hero-video-fore{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover; object-position:center;
  transform: translateY(var(--hero-shift-y)) scale(var(--hero-zoom));
  transform-origin: center;
  z-index:1; background: transparent; display:block;
}

/* fallback loader */
.loader {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #000000;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: none;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* headline / subhead helpers */
.headline { letter-spacing: .12em; text-transform: uppercase; }
.subhead  { opacity: .9; }
.btn-pill { border-radius: 9999px; }

/* -----------------------
   Posters / showreel safe rules
   ----------------------- */
#showreelGrid .poster-card { overflow: visible !important; display:flex; flex-direction:column; align-items:center; position:relative; width:100%; }
#showreelGrid .poster-thumb-img { display:block; width:100%; height:220px; object-fit:cover; border-radius:12px; }
#showreelGrid .play-overlay { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:72px; height:72px; font-size:28px; border-radius:9999px; z-index:40; display:flex; align-items:center; justify-content:center; }
#showreelGrid .caption { margin-top:0.75rem; color:#ffffff; font-size:1.05rem; font-weight:700; text-align:center; z-index:50; }
@media(min-width:1024px){ #showreelGrid .poster-thumb-img { height:260px; } }
@media(max-width:1023px){ #showreelGrid .poster-thumb-img { height:200px; } }
@media(max-width:640px){ #showreelGrid .poster-thumb-img { height:160px; } #showreelGrid .caption { font-size:0.95rem; } }

/* -----------------------
   Partner marquee (from oldsite)
   ----------------------- */
.marquee-container { 
  display: flex; 
  overflow: hidden; 
  gap: 4rem;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-group {
  display: flex;
  align-items: center;
  gap: 4rem;
  min-width: 100%;
  flex-shrink: 0;
  animation: scroll-x 30s linear infinite;
}
.marquee-container:hover .marquee-group { animation-play-state: paused; }
.marquee-reverse .marquee-group { animation-direction: reverse; }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
.partner-logo {
  height: 48px;
  width: auto;
  opacity: 0.9;
  filter: saturate(0.9) brightness(0.95);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.partner-logo:hover { transform: scale(1.05); opacity: 1; }
@media (min-width: 768px) { .partner-logo { height: 56px; } }

/* -----------------------
   Small animations & helpers
   ----------------------- */
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.animate-float { animation: floatY 6s ease-in-out infinite; will-change: transform; }

/* Aspect-ratio helpers */
.ratio-2-3 { position: relative; width: 100%; padding-top: 150%; }
.ratio-16-9 { position: relative; width: 100%; padding-top: 56.25%; }
.ratio-1-1  { position: relative; width: 100%; padding-top: 100%; }
.ratio-2-3 > img, .ratio-16-9 > img, .ratio-1-1  > img {
  position: absolute; inset:0; width:100%; height:100%; object-fit: cover;
  transform: translate(var(--hero-offset-x), var(--hero-offset-y)) scaleX(var(--hero-scale-x)) scaleY(var(--hero-scale-y));
  transform-origin: center center;
}

/* -----------------------
   Brand animation (letters / tagline)
   ----------------------- */
.brand-anim{
  position: relative;
  display: inline-block;
  background: linear-gradient(#054C5B);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes brandGradient{ 0%{background-position: 0% 50%} 100%{background-position: 100% 50%} }
@keyframes brandGlow{ 0% { text-shadow: 0 0 0 rgba(255,255,255,0); } 50% { text-shadow: 0 0 14px rgba(255,255,255,0.06); } 100% { text-shadow: 0 0 0 rgba(255,255,255,0); } }
}

/* -----------------------
   HOOTER FIX PATCH (force old look, last-resort overrides)
   (appended with careful specificity)
   ----------------------- */
/* Keep nav height consistent */
:root { --nav-h: 112px !important; }

/* Strong selectors to beat utility classes if needed */
#navbar { border-bottom-width: 2px !important; border-bottom-color: rgba(148,163,184,0.06) !important; padding-top: 2px !important; padding-bottom: 2px !important; background-color: rgba(0,0,0,0.95) !important; }

/* Logo + tagline alignment matches old structure */
#navbar .flex.items-center > .flex-col:first-child{
  position: relative !important;
  transform-origin: left top !important;
  will-change: transform;
}

/* Wordmark position */
#navbar .flex.items-center > .hidden.sm\:block {
  position: relative !important;
  left: -50px !important;
  top: 0px !important;
  transform: scale(1) !important;
  transform-origin: left center !important;
}

/* reduce vertical microspacing on tiny devices */
@media (max-width: 767px) {
  :root { --nav-h: 96px !important; }
  #navbar { padding-bottom: 6px !important; }
  #navbar .flex.items-center > .flex-col:first-child { gap: 6px !important; padding-bottom: 6px !important; }
  .section-video__media { transform:none !important; object-position: top center !important; min-height: 220px !important; }
}

/* -----------------------
   Accessibility & utilities
   ----------------------- */
.visually-hidden { position:absolute !important; height:1px; width:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }

/* small helpers */
.text-xs { font-size:0.75rem; }
.uppercase { text-transform:uppercase; letter-spacing:0.12em; }
}
}
}
}
}
}
}
}
}
}
}
}
}


/* Restored footer styles */


/* === Mobile grid alignment patch === */

/* MOBILE: enforce 2-column grid with consistent aspect ratio to avoid large vertical gaps */
@media (max-width: 640px) {
  /* make the container a true grid so rows align */
  #portfolio .mt-12 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
    align-items: start !important;
  }

  /* ensure each poster uses a consistent aspect-ratio instead of padding trick */
  #portfolio .mt-12 .ratio-2-3,
  #portfolio #more-projects .ratio-2-3 {
    aspect-ratio: 2 / 3;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    padding-top: 0 !important;
    margin: 0 !important;
    border-radius: 0.5rem;
    overflow: hidden;
  }

  /* make images fill their containers exactly */
  #portfolio .mt-12 .ratio-2-3 > img,
  #portfolio #more-projects .ratio-2-3 > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  /* tighten caption spacing */
  .poster-caption { margin-top: 0.5rem !important; font-size: 0.85rem !important; }
}


/* === Client mobile large posters patch === */

/* CLIENT MOBILE: larger poster tiles on phones (two columns, big visuals) */
@media (max-width: 640px) {
  #portfolio .mt-12 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.9rem !important;
    align-items: start !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  /* Make posters visually large: use viewport width to scale */
  #portfolio .mt-12 .ratio-2-3,
  #portfolio #more-projects .ratio-2-3 {
    width: 46vw !important;     /* roughly half the viewport width */
    max-width: 46vw !important;
    aspect-ratio: 2 / 3;
    height: auto !important;
    padding-top: 0 !important;
    margin: 0 auto !important;
    border-radius: 0.75rem;
    overflow: hidden;
  }

  /* Ensure images fill container and maintain crop */
  #portfolio .mt-12 .ratio-2-3 > img,
  #portfolio #more-projects .ratio-2-3 > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  .poster-caption { margin-top: 0.45rem !important; font-size: 0.9rem !important; text-align: center; }
}



/* === UNIVERSAL MOBILE POSTER GRID FIX === */
@media (max-width: 1024px) { /* covers all tablets & phones */
  #portfolio .mt-12 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.8rem !important;
    justify-items: center !important;
    padding: 0 0.8rem !important;
  }

  #portfolio .mt-12 .ratio-2-3,
  #portfolio #more-projects .ratio-2-3 {
    aspect-ratio: 2 / 3;
    width: 100% !important;
    max-width: 45vw !important; /* scales automatically with screen width */
    height: auto !important;
    padding-top: 0 !important;
    margin: 0 auto !important;
    border-radius: 0.75rem;
    overflow: hidden;
  }

  #portfolio .mt-12 .ratio-2-3 > img,
  #portfolio #more-projects .ratio-2-3 > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  .poster-caption {
    margin-top: 0.4rem !important;
    font-size: clamp(0.8rem, 2.5vw, 0.95rem) !important;
    text-align: center;
  }
}



/* === FIX: tighter spacing between portfolio heading and posters on small screens === */
@media (max-width: 1024px) {
  /* Reduce top/bottom spacing for the portfolio heading so it sits closer to the cards */
  #portfolio .container-resp > .relative > h3,
  #portfolio .container-resp h3.text-center {
    margin-bottom: 0.6rem !important;
    padding-top: 0.2rem !important;
    font-size: clamp(1.4rem, 4.6vw, 1.9rem) !important;
    line-height: 1.05 !important;
  }

  /* Make the posters sit a bit nearer the heading */
  #portfolio .lg\:col-span-2.grid {
    margin-top: 0.25rem !important;
  }

  /* Reduce caption gap for compact layout */
  #portfolio .poster-caption {
    margin-top: 0.35rem !important;
    font-size: clamp(0.78rem, 2.3vw, 0.9rem) !important;
  }

  /* Ensure RECENT badge doesn't push content down on small screens */
  #portfolio .recent-badge, #portfolio .absolute.top-2.right-2 {
    top: 6px !important;
    right: 6px !important;
    transform: translateY(0) !important;
    padding: 4px 8px !important;
  }
}

/* Extra small phones: even tighter */
@media (max-width: 420px) {
  #portfolio .container-resp h3.text-center {
    margin-bottom: 0.4rem !important;
    font-size: 1.35rem !important;
  }
  #portfolio .mt-12 { gap: 0.6rem !important; }
  #portfolio .poster-caption { margin-top: 0.25rem !important; }
}



/* === RECENT GRID: precise spacing and sizing to avoid layout issues (applies to the top 4 posters) === */
.recent-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important; /* desktop default: 4 columns */
  gap: 1rem !important;
  justify-items: center;
  align-items: start;
  margin-top: 0.6rem !important;
  margin-bottom: 1.0rem !important;
}

/* Size each poster in the recent grid for desktop */
.recent-grid .ratio-2-3 {
  width: 220px;
  height: 330px;
  max-width: 22vw;
  padding-top: 0 !important;
  border-radius: 0.75rem;
  overflow: hidden;
}

/* Center container under heading */
#portfolio .container-resp > .relative {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Responsive: tablets */
@media (max-width: 1024px) {
  .recent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important; /* 2 columns on tablets/mobile */
    gap: 0.9rem !important;
    width: 100%;
    max-width: 860px;
  }
  .recent-grid .ratio-2-3 {
    width: 46vw !important;
    height: auto !important;
    aspect-ratio: 2 / 3;
    max-width: 46vw;
  }
  /* reduce heading bottom space on smaller screens */
  #portfolio .container-resp h3.text-center {
    margin-bottom: 0.45rem !important;
  }
}

/* Extra small phones: tighter */
@media (max-width: 420px) {
  .recent-grid { gap: 0.6rem !important; }
  .recent-grid .ratio-2-3 { max-width: 48vw !important; width: 48vw !important; }
}



/* === RECENT ALIGNMENT: center heading and recent 4 posters, equalize caption baseline === */
.recent-grid-wrapper { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; width: 100%; }
.recent-grid { width: min(100%, 1200px); display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 1.6rem !important; justify-items: center; align-items: start; margin: 0 auto; }
.recent-grid .relative { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0.5rem; }
.recent-grid .poster-caption, .recent-grid .poster-caption { min-height: 2.2rem; /* reserve space to align titles baseline */ line-height: 1.1; text-align: center; }

/* Ensure the heading sits directly above the recent grid and centered */
.recent-heading { text-align: center; margin: 0 0 0.6rem 0 !important; font-size: clamp(1.4rem, 2.6vw, 2.2rem) !important; }

/* Desktop tweaks */
@media (min-width: 1025px) {
  .recent-grid { gap: 1.8rem !important; }
  .recent-grid .ratio-2-3 { width: 220px !important; height: 330px !important; max-width: 22vw !important; }
  .recent-grid .poster-caption { font-size: 0.95rem !important; }
}

/* Tablet and mobile keep 2x2 but centered */
@media (max-width: 1024px) {
  .recent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; max-width: 720px; gap: 0.9rem !important; }
  .recent-grid .ratio-2-3 { max-width: 46vw !important; width: 46vw !important; aspect-ratio: 2/3; height: auto !important; }
  .recent-grid .poster-caption { min-height: 2rem; font-size: clamp(0.8rem, 2.5vw, 0.95rem) !important; }
}

/* Remove stray margins/paddings that cause side vertical lines to appear misaligned */
#portfolio .container-resp { padding-left: clamp(1rem, 4vw, 2rem) !important; padding-right: clamp(1rem, 4vw, 2rem) !important; }
/* Hide decorative side elements if any causing visual vertical lines */
#portfolio .side-decor, .side-decor { display: none !important; }



/* === CLIENT SPACING FIX: Add gap between heading and recent 4 cards === */
.recent-heading {
  margin-bottom: 1.2rem !important;   /* desktop spacing */
}

@media (max-width: 768px) {
  .recent-heading {
    margin-bottom: 0.9rem !important; /* mobile spacing */
  }
}



/* === FIX: reliable spacing between heading and cards for all screens === */
.recent-grid {
  margin-top: 4rem !important;   /* increased space for desktop */   /* ensures clear gap from heading */
}

@media (max-width: 768px) {
  .recent-grid {
    margin-top: 2.5rem !important;   /* increased space for mobile */ /* smaller gap for mobile */
  }
}



/* === FIX: Equal heading spacing for phone and PC === */
#portfolio h3 {
  margin-bottom: 2.5rem !important; /* desktop default spacing */
}

@media (max-width: 768px) {
  #portfolio h3 {
    margin-bottom: 3rem !important; /* slightly more gap on mobile for balance */
  }
}



/* === FIX: equal spacing heading to cards on all devices === */
#portfolio .recent-heading {
  margin-bottom: 2.8rem !important;
}

@media (max-width: 768px) {
  #portfolio .recent-heading {
    margin-bottom: 3.2rem !important; /* slightly more on phone */
  }
}



/* === FINAL FIX: Align heading & cards spacing on mobile === */
@media (max-width: 768px) {
  #portfolio .recent-grid-wrapper {
    padding-top: 1rem !important;
    margin-top: 1.2rem !important;
  }

  #portfolio .recent-heading {
    margin-bottom: 3.8rem !important;  /* extra gap below heading */
  }

  #portfolio .recent-grid {
    margin-top: 0 !important;  /* prevent double stacking */
  }
}

/* ====================== MASTER PORTFOLIO + HEADING FIX (FINAL) ====================== */
/* Goal: preserve heading color, center grid, uniform card sizes, responsive scaling for phones/tablets/desktop */
/* Place this at the very end of your stylesheet (already appended here). */

#portfolio { 
  position: relative !important;
  padding-top: 2rem !important;
  padding-bottom: 2.25rem !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  -webkit-font-smoothing: antialiased !important;
}

/* Force-heading color and disable any filters/mix-blend that may change appearance on some devices */
#portfolio h3, #portfolio h3 * {
  color: #054C5B !important;
  -webkit-text-fill-color: #054C5B !important;
  text-shadow: none !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  opacity: 1 !important;
  background: transparent !important;
  transition: none !important;
}

/* Headline sizing and spacing (fluid but safe) */
#portfolio h3 {
  font-size: clamp(1.25rem, 2.5vw, 2rem) !important;
  font-weight: 600 !important;
  margin: 0 0 2rem 0 !important;
  line-height: 1.15 !important;
  text-align: center !important;
  display: block !important;
  position: relative !important;
  z-index: 20 !important;
  -webkit-font-smoothing: antialiased !important;
}

/* Base grid: center content, give horizontal breathing room */
#portfolio .recent-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 1.15rem 1.15rem !important;
  justify-content: center !important;
  justify-items: center !important;
  align-items: start !important;
  padding: 0 3rem !important;
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 auto !important;
}

/* Uniform poster wrapper behavior */
#portfolio .recent-grid > div,
#portfolio .recent-grid > figure {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.5rem !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 230px !important; /* default max-width for card */
  box-sizing: border-box !important;
}

/* Enforce 2:3 aspect and consistent image behavior */
#portfolio .ratio-2-3 {
  aspect-ratio: 2 / 3 !important;
  width: 100% !important;
  max-width: 230px !important;
  height: auto !important;
  overflow: hidden !important;
  border-radius: 0.75rem !important;
  display: block !important;
}

#portfolio .ratio-2-3 img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: inherit !important;
  transform: none !important;
}

/* Recent badge absolute and non-intrusive */
#portfolio .recent-badge,
#portfolio .absolute.top-2.right-2 {
  position: absolute !important;
  top: 8px !important;
  right: 10px !important;
  pointer-events: none !important;
  z-index: 50 !important;
  transform: none !important;
  animation: none !important;
}

/* Caption styling */
.poster-caption, figcaption {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.85rem !important;
  line-height: 1.15 !important;
  color: #f0f0f0 !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  text-align: center !important;
}

/* Tighten internal spacing so cards are closer but not cut */
#portfolio .recent-grid > div .poster-caption,
#portfolio .recent-grid > div figcaption {
  margin-top: 0.35rem !important;
  margin-bottom: 0.35rem !important;
}

/* Desktop: allow more columns but keep card max width */
@media (min-width: 1200px) {
  #portfolio .recent-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1.25rem !important;
    padding: 0 6rem !important;
  }
  #portfolio .recent-grid > div { max-width: 240px !important; }
  #portfolio .ratio-2-3 { max-width: 240px !important; }
}

/* Tablet devices — slightly larger posters */
@media (min-width: 641px) and (max-width: 1024px) {
  #portfolio .recent-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr)) !important;
    padding: 0 2rem !important;
    gap: 1rem !important;
  }
  #portfolio .recent-grid > div { max-width: 220px !important; }
  #portfolio .ratio-2-3 { max-width: min(260px, 32vw) !important; }
}

/* Mobile: 2 columns, posters scale relative to viewport for better visibility */
@media (max-width: 640px) {
  #portfolio .recent-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr)) !important;
    padding: 0 1rem !important;
    gap: 0.9rem !important;
  }
  #portfolio .recent-grid > div { max-width: 46vw !important; } /* approximate half viewport */
  #portfolio .ratio-2-3 { max-width: min(260px, 46vw) !important; }
}

/* Very narrow phones: single column and wide cards */
@media (max-width: 380px) {
  #portfolio .recent-grid {
    grid-template-columns: 1fr !important;
    padding: 0 1rem !important;
    gap: 1.1rem !important;
  }
  #portfolio .recent-grid > div { max-width: 92% !important; }
  #portfolio .ratio-2-3 { max-width: 92% !important; }
}

/* Defensive: neutralize transforms/filters that may be applied earlier */
#portfolio, #portfolio * {
  transform: none !important;
  -webkit-transform: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

/* Small visual polish */
#portfolio .ratio-2-3 { box-shadow: 0 6px 18px rgba(0,0,0,0.45); }
#portfolio .poster-caption { text-shadow: 0 1px 0 rgba(0,0,0,0.6); }

/* =================================================================================== */